diff --git a/generated/google/apis/cloudtasks_v2beta3.rb b/generated/google/apis/cloudtasks_v2beta3.rb index 272c8fb05..acca58481 100644 --- a/generated/google/apis/cloudtasks_v2beta3.rb +++ b/generated/google/apis/cloudtasks_v2beta3.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/tasks/ module CloudtasksV2beta3 VERSION = 'V2beta3' - REVISION = '20200513' + REVISION = '20200529' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudtasks_v2beta3/classes.rb b/generated/google/apis/cloudtasks_v2beta3/classes.rb index a0c34d290..229ada5cd 100644 --- a/generated/google/apis/cloudtasks_v2beta3/classes.rb +++ b/generated/google/apis/cloudtasks_v2beta3/classes.rb @@ -1157,6 +1157,14 @@ module Google # @return [String] attr_accessor :state + # Immutable. The type of a queue (push or pull). + # `Queue.type` is an immutable property of the queue that is set at the queue + # creation time. When left unspecified, the default value of `PUSH` is + # selected. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + def initialize(**args) update!(**args) end @@ -1170,6 +1178,7 @@ module Google @retry_config = args[:retry_config] if args.key?(:retry_config) @stackdriver_logging_config = args[:stackdriver_logging_config] if args.key?(:stackdriver_logging_config) @state = args[:state] if args.key?(:state) + @type = args[:type] if args.key?(:type) end end diff --git a/generated/google/apis/cloudtasks_v2beta3/representations.rb b/generated/google/apis/cloudtasks_v2beta3/representations.rb index 7a5f8f6d6..9d3c6f78c 100644 --- a/generated/google/apis/cloudtasks_v2beta3/representations.rb +++ b/generated/google/apis/cloudtasks_v2beta3/representations.rb @@ -403,6 +403,7 @@ module Google property :stackdriver_logging_config, as: 'stackdriverLoggingConfig', class: Google::Apis::CloudtasksV2beta3::StackdriverLoggingConfig, decorator: Google::Apis::CloudtasksV2beta3::StackdriverLoggingConfig::Representation property :state, as: 'state' + property :type, as: 'type' end end diff --git a/generated/google/apis/compute_alpha.rb b/generated/google/apis/compute_alpha.rb index e2f9835ad..234e382b4 100644 --- a/generated/google/apis/compute_alpha.rb +++ b/generated/google/apis/compute_alpha.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeAlpha VERSION = 'Alpha' - REVISION = '20200501' + REVISION = '20200511' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/compute_alpha/classes.rb b/generated/google/apis/compute_alpha/classes.rb index af268fb5e..46bd7c2bd 100644 --- a/generated/google/apis/compute_alpha/classes.rb +++ b/generated/google/apis/compute_alpha/classes.rb @@ -2276,11 +2276,6 @@ module Google # @return [String] attr_accessor :mode - # Configuration parameters of autoscaling based on queuing system. - # Corresponds to the JSON property `queueBasedScaling` - # @return [Google::Apis::ComputeAlpha::AutoscalingPolicyQueueBasedScaling] - attr_accessor :queue_based_scaling - # Configuration that allows for slower scale down so that even if Autoscaler # recommends an abrupt scale down of a MIG, it will be throttled as specified by # the parameters below. @@ -2308,7 +2303,6 @@ module Google @max_num_replicas = args[:max_num_replicas] if args.key?(:max_num_replicas) @min_num_replicas = args[:min_num_replicas] if args.key?(:min_num_replicas) @mode = args[:mode] if args.key?(:mode) - @queue_based_scaling = args[:queue_based_scaling] if args.key?(:queue_based_scaling) @scale_down_control = args[:scale_down_control] if args.key?(:scale_down_control) @scale_in_control = args[:scale_in_control] if args.key?(:scale_in_control) end @@ -2460,74 +2454,6 @@ module Google end end - # Configuration parameters of autoscaling based on queuing system. - class AutoscalingPolicyQueueBasedScaling - include Google::Apis::Core::Hashable - - # Scaling based on the average number of tasks in the queue per each active - # instance. The autoscaler keeps the average number of tasks per instance below - # this number, based on data collected in the last couple of minutes. The - # autoscaler will also take into account incoming tasks when calculating when to - # scale. - # Corresponds to the JSON property `acceptableBacklogPerInstance` - # @return [Float] - attr_accessor :acceptable_backlog_per_instance - - # Configuration parameters for scaling based on Cloud Pub/Sub subscription queue. - # Corresponds to the JSON property `cloudPubSub` - # @return [Google::Apis::ComputeAlpha::AutoscalingPolicyQueueBasedScalingCloudPubSub] - attr_accessor :cloud_pub_sub - - # The scaling algorithm will also calculate throughput estimates on its own; if - # you explicitly provide this value, the autoscaler will take into account your - # value as well as automatic estimates when deciding how to scale. - # Corresponds to the JSON property `singleWorkerThroughputPerSec` - # @return [Float] - attr_accessor :single_worker_throughput_per_sec - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @acceptable_backlog_per_instance = args[:acceptable_backlog_per_instance] if args.key?(:acceptable_backlog_per_instance) - @cloud_pub_sub = args[:cloud_pub_sub] if args.key?(:cloud_pub_sub) - @single_worker_throughput_per_sec = args[:single_worker_throughput_per_sec] if args.key?(:single_worker_throughput_per_sec) - end - end - - # Configuration parameters for scaling based on Cloud Pub/Sub subscription queue. - class AutoscalingPolicyQueueBasedScalingCloudPubSub - include Google::Apis::Core::Hashable - - # Cloud Pub/Sub subscription used for scaling. Provide the partial URL (starting - # with projects/) or just the subscription name. The subscription must be - # assigned to the topic specified in topicName and must be in a pull - # configuration. The subscription must belong to the same project as the - # Autoscaler. - # Corresponds to the JSON property `subscription` - # @return [String] - attr_accessor :subscription - - # Cloud Pub/Sub topic used for scaling. Provide the partial URL or partial URL ( - # starting with projects/) or just the topic name. The topic must belong to the - # same project as the Autoscaler resource. - # Corresponds to the JSON property `topic` - # @return [String] - attr_accessor :topic - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @subscription = args[:subscription] if args.key?(:subscription) - @topic = args[:topic] if args.key?(:topic) - end - end - # Configuration that allows for slower scale down so that even if Autoscaler # recommends an abrupt scale down of a MIG, it will be throttled as specified by # the parameters below. @@ -5435,6 +5361,12 @@ module Google # @return [Fixnum] attr_accessor :id + # Specifies the disk interface to use for attaching this disk, which is either + # SCSI or NVME. The default is SCSI. + # Corresponds to the JSON property `interface` + # @return [String] + attr_accessor :interface + # [Output Only] Type of the resource. Always compute#disk for disks. # Corresponds to the JSON property `kind` # @return [String] @@ -5665,7 +5597,7 @@ module Google # URL of the disk type resource describing which disk type to use to create the # disk. Provide this when creating the disk. For example: projects/project/zones/ - # zone/diskTypes/pd-standard or pd-ssd + # zone/diskTypes/pd-standard or pd-ssd # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -5695,6 +5627,7 @@ module Google @erase_windows_vss_signature = args[:erase_windows_vss_signature] if args.key?(:erase_windows_vss_signature) @guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features) @id = args[:id] if args.key?(:id) + @interface = args[:interface] if args.key?(:interface) @kind = args[:kind] if args.key?(:kind) @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) @labels = args[:labels] if args.key?(:labels) @@ -8452,6 +8385,25 @@ module Google end end + # + class GetOwnerInstanceResponse + include Google::Apis::Core::Hashable + + # Full instance resource URL. + # Corresponds to the JSON property `instance` + # @return [String] + attr_accessor :instance + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @instance = args[:instance] if args.key?(:instance) + end + end + # class GlobalNetworkEndpointGroupsAttachEndpointsRequest include Google::Apis::Core::Hashable @@ -9329,6 +9281,7 @@ module Google # @return [String] attr_accessor :health_status_aggregation_policy + # This field is deprecated. Use health_status_aggregation_policy instead. # Policy for how the results from multiple health checks for the same endpoint # are aggregated. # - NO_AGGREGATION. An EndpointHealth message is returned for each backend in @@ -12068,8 +12021,8 @@ module Google alias_method :start_restricted?, :start_restricted # [Output Only] The status of the instance. One of the following values: - # PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and - # TERMINATED. + # PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, + # and TERMINATED. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -29165,7 +29118,7 @@ module Google end # Represents a Cloud Router resource. - # For more information about Cloud Router, read the the Cloud Router overview. + # For more information about Cloud Router, read the Cloud Router overview. class Router include Google::Apis::Core::Hashable @@ -29451,12 +29404,14 @@ module Google attr_accessor :asn # The interval in seconds between BGP keepalive messages that are sent to the - # peer. Hold time is three times the interval at which keepalive messages are - # sent, and the hold time is the maximum number of seconds allowed to elapse - # between successive keepalive messages that BGP receives from a peer. BGP will - # use the smaller of either the local hold time value or the peer's hold time - # value as the hold time for the BGP connection between the two peers. If set, - # this value must be between 1 and 120. The default is 20. + # peer. + # Not currently available publicly. + # Hold time is three times the interval at which keepalive messages are sent, + # and the hold time is the maximum number of seconds allowed to elapse between + # successive keepalive messages that BGP receives from a peer. + # BGP will use the smaller of either the local hold time value or the peer's + # hold time value as the hold time for the BGP connection between the two peers. + # If set, this value must be between 1 and 120. The default is 20. # Corresponds to the JSON property `keepaliveInterval` # @return [Fixnum] attr_accessor :keepalive_interval @@ -29514,14 +29469,16 @@ module Google attr_accessor :advertised_route_priority # BFD configuration for the BGP peering. + # Not currently available publicly. # Corresponds to the JSON property `bfd` # @return [Google::Apis::ComputeAlpha::RouterBgpPeerBfd] attr_accessor :bfd - # The status of the BGP peer connection. If set to FALSE, any active session - # with the peer is terminated and all associated routing information is removed. - # If set to TRUE, the peer connection can be established with routing - # information. The default is TRUE. + # The status of the BGP peer connection. + # Not currently available publicly. + # If set to FALSE, any active session with the peer is terminated and all + # associated routing information is removed. If set to TRUE, the peer connection + # can be established with routing information. The default is TRUE. # Corresponds to the JSON property `enable` # @return [String] attr_accessor :enable @@ -29598,8 +29555,10 @@ module Google # The minimum interval, in milliseconds, between BFD control packets received # from the peer router. The actual value is negotiated between the two routers # and is equal to the greater of this value and the transmit interval of the - # other router. If set, this value must be between 100 and 30000. The default is - # 300. + # other router. + # Not currently available publicly. + # If set, this value must be between 100 and 30000. + # The default is 300. # Corresponds to the JSON property `minReceiveInterval` # @return [Fixnum] attr_accessor :min_receive_interval @@ -29607,8 +29566,10 @@ module Google # The minimum interval, in milliseconds, between BFD control packets transmitted # to the peer router. The actual value is negotiated between the two routers and # is equal to the greater of this value and the corresponding receive interval - # of the other router. If set, this value must be between 100 and 30000. The - # default is 300. + # of the other router. + # Not currently available publicly. + # If set, this value must be between 100 and 30000. + # The default is 300. # Corresponds to the JSON property `minTransmitInterval` # @return [Fixnum] attr_accessor :min_transmit_interval @@ -29623,7 +29584,9 @@ module Google attr_accessor :mode # The number of consecutive BFD packets that must be missed before BFD declares - # that a peer is unavailable. If set, the value must be a value between 2 and 16. + # that a peer is unavailable. + # Not currently available publicly. + # If set, the value must be a value between 2 and 16. # The default is 3. # Corresponds to the JSON property `multiplier` # @return [Fixnum] @@ -29641,11 +29604,12 @@ module Google # @return [String] attr_accessor :packet_mode - # The BFD session initialization mode for this BGP peer. If set to ACTIVE, the - # Cloud Router will initiate the BFD session for this BGP peer. If set to - # PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD - # session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP - # peer. The default is PASSIVE. + # The BFD session initialization mode for this BGP peer. + # Not currently available publicly. + # If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP + # peer. If set to PASSIVE, the Cloud Router will wait for the peer router to + # initiate the BFD session for this BGP peer. If set to DISABLED, BFD is + # disabled for this BGP peer. The default is PASSIVE. # Corresponds to the JSON property `sessionInitializationMode` # @return [String] attr_accessor :session_initialization_mode @@ -30346,7 +30310,7 @@ module Google include Google::Apis::Core::Hashable # Represents a Cloud Router resource. - # For more information about Cloud Router, read the the Cloud Router overview. + # For more information about Cloud Router, read the Cloud Router overview. # Corresponds to the JSON property `resource` # @return [Google::Apis::ComputeAlpha::Router] attr_accessor :resource diff --git a/generated/google/apis/compute_alpha/representations.rb b/generated/google/apis/compute_alpha/representations.rb index 1527b76fb..495f5fc18 100644 --- a/generated/google/apis/compute_alpha/representations.rb +++ b/generated/google/apis/compute_alpha/representations.rb @@ -310,18 +310,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class AutoscalingPolicyQueueBasedScaling - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class AutoscalingPolicyQueueBasedScalingCloudPubSub - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class AutoscalingPolicyScaleDownControl class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1012,6 +1000,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GetOwnerInstanceResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GlobalNetworkEndpointGroupsAttachEndpointsRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -5953,8 +5947,6 @@ module Google property :max_num_replicas, as: 'maxNumReplicas' property :min_num_replicas, as: 'minNumReplicas' property :mode, as: 'mode' - property :queue_based_scaling, as: 'queueBasedScaling', class: Google::Apis::ComputeAlpha::AutoscalingPolicyQueueBasedScaling, decorator: Google::Apis::ComputeAlpha::AutoscalingPolicyQueueBasedScaling::Representation - property :scale_down_control, as: 'scaleDownControl', class: Google::Apis::ComputeAlpha::AutoscalingPolicyScaleDownControl, decorator: Google::Apis::ComputeAlpha::AutoscalingPolicyScaleDownControl::Representation property :scale_in_control, as: 'scaleInControl', class: Google::Apis::ComputeAlpha::AutoscalingPolicyScaleInControl, decorator: Google::Apis::ComputeAlpha::AutoscalingPolicyScaleInControl::Representation @@ -5988,24 +5980,6 @@ module Google end end - class AutoscalingPolicyQueueBasedScaling - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :acceptable_backlog_per_instance, as: 'acceptableBacklogPerInstance' - property :cloud_pub_sub, as: 'cloudPubSub', class: Google::Apis::ComputeAlpha::AutoscalingPolicyQueueBasedScalingCloudPubSub, decorator: Google::Apis::ComputeAlpha::AutoscalingPolicyQueueBasedScalingCloudPubSub::Representation - - property :single_worker_throughput_per_sec, as: 'singleWorkerThroughputPerSec' - end - end - - class AutoscalingPolicyQueueBasedScalingCloudPubSub - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :subscription, as: 'subscription' - property :topic, as: 'topic' - end - end - class AutoscalingPolicyScaleDownControl # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -6667,6 +6641,7 @@ module Google collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeAlpha::GuestOsFeature, decorator: Google::Apis::ComputeAlpha::GuestOsFeature::Representation property :id, :numeric_string => true, as: 'id' + property :interface, as: 'interface' property :kind, as: 'kind' property :label_fingerprint, :base64 => true, as: 'labelFingerprint' hash :labels, as: 'labels' @@ -7339,6 +7314,13 @@ module Google end end + class GetOwnerInstanceResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :instance, as: 'instance' + end + end + class GlobalNetworkEndpointGroupsAttachEndpointsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/compute_alpha/service.rb b/generated/google/apis/compute_alpha/service.rb index 2ed13fbfa..02cec3903 100644 --- a/generated/google/apis/compute_alpha/service.rb +++ b/generated/google/apis/compute_alpha/service.rb @@ -4443,6 +4443,43 @@ module Google execute_or_queue_command(command, &block) end + # Find owner instance from given ip address + # @param [String] project + # Project ID for this request. + # @param [String] ip_address + # The ip_address could be external IPv4, or internal IPv4 within IPv6 form of + # virtual_network_id with internal IPv4. IPv6 is not supported yet. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # An opaque string that represents a user for quota purposes. Must not exceed 40 + # characters. + # @param [String] user_ip + # Deprecated. Please use quotaUser instead. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::ComputeAlpha::GetOwnerInstanceResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeAlpha::GetOwnerInstanceResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_global_address_owner_instance(project, ip_address: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/global/addresses/getOwnerInstance', options) + command.response_representation = Google::Apis::ComputeAlpha::GetOwnerInstanceResponse::Representation + command.response_class = Google::Apis::ComputeAlpha::GetOwnerInstanceResponse + command.params['project'] = project unless project.nil? + command.query['ipAddress'] = ip_address unless ip_address.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['userIp'] = user_ip unless user_ip.nil? + execute_or_queue_command(command, &block) + end + # Creates an address resource in the specified project by using the data # included in the request. # @param [String] project diff --git a/generated/google/apis/compute_beta.rb b/generated/google/apis/compute_beta.rb index a22895556..93a4e4fce 100644 --- a/generated/google/apis/compute_beta.rb +++ b/generated/google/apis/compute_beta.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeBeta VERSION = 'Beta' - REVISION = '20200501' + REVISION = '20200511' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/compute_beta/classes.rb b/generated/google/apis/compute_beta/classes.rb index 19ba53ce2..1a3bb7881 100644 --- a/generated/google/apis/compute_beta/classes.rb +++ b/generated/google/apis/compute_beta/classes.rb @@ -4866,6 +4866,12 @@ module Google # @return [Fixnum] attr_accessor :id + # Specifies the disk interface to use for attaching this disk, which is either + # SCSI or NVME. The default is SCSI. + # Corresponds to the JSON property `interface` + # @return [String] + attr_accessor :interface + # [Output Only] Type of the resource. Always compute#disk for disks. # Corresponds to the JSON property `kind` # @return [String] @@ -5037,7 +5043,7 @@ module Google # URL of the disk type resource describing which disk type to use to create the # disk. Provide this when creating the disk. For example: projects/project/zones/ - # zone/diskTypes/pd-standard or pd-ssd + # zone/diskTypes/pd-standard or pd-ssd # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -5067,6 +5073,7 @@ module Google @erase_windows_vss_signature = args[:erase_windows_vss_signature] if args.key?(:erase_windows_vss_signature) @guest_os_features = args[:guest_os_features] if args.key?(:guest_os_features) @id = args[:id] if args.key?(:id) + @interface = args[:interface] if args.key?(:interface) @kind = args[:kind] if args.key?(:kind) @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) @labels = args[:labels] if args.key?(:labels) @@ -8540,6 +8547,7 @@ module Google # @return [String] attr_accessor :health_status_aggregation_policy + # This field is deprecated. Use health_status_aggregation_policy instead. # Policy for how the results from multiple health checks for the same endpoint # are aggregated. # - NO_AGGREGATION. An EndpointHealth message is returned for each backend in @@ -8548,7 +8556,7 @@ module Google # HealthState of the entire health check service. If all backend's are healthy, # the HealthState of the health check service is HEALTHY. . # Corresponds to the JSON property `healthStatusAggregationStrategy` - # @return [Object] + # @return [String] attr_accessor :health_status_aggregation_strategy # [Output Only] The unique identifier for the resource. This identifier is @@ -10693,6 +10701,11 @@ module Google attr_accessor :can_ip_forward alias_method :can_ip_forward?, :can_ip_forward + # A set of Confidential Instance options. + # Corresponds to the JSON property `confidentialInstanceConfig` + # @return [Google::Apis::ComputeBeta::ConfidentialInstanceConfig] + attr_accessor :confidential_instance_config + # [Output Only] The CPU platform used by this instance. # Corresponds to the JSON property `cpuPlatform` # @return [String] @@ -10907,8 +10920,8 @@ module Google alias_method :start_restricted?, :start_restricted # [Output Only] The status of the instance. One of the following values: - # PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and - # TERMINATED. + # PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, + # and TERMINATED. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -10937,6 +10950,7 @@ module Google # Update properties of this object def update!(**args) @can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward) + @confidential_instance_config = args[:confidential_instance_config] if args.key?(:confidential_instance_config) @cpu_platform = args[:cpu_platform] if args.key?(:cpu_platform) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @deletion_protection = args[:deletion_protection] if args.key?(:deletion_protection) @@ -25778,7 +25792,7 @@ module Google end # Represents a Cloud Router resource. - # For more information about Cloud Router, read the the Cloud Router overview. + # For more information about Cloud Router, read the Cloud Router overview. class Router include Google::Apis::Core::Hashable @@ -26052,12 +26066,14 @@ module Google attr_accessor :asn # The interval in seconds between BGP keepalive messages that are sent to the - # peer. Hold time is three times the interval at which keepalive messages are - # sent, and the hold time is the maximum number of seconds allowed to elapse - # between successive keepalive messages that BGP receives from a peer. BGP will - # use the smaller of either the local hold time value or the peer's hold time - # value as the hold time for the BGP connection between the two peers. If set, - # this value must be between 1 and 120. The default is 20. + # peer. + # Not currently available publicly. + # Hold time is three times the interval at which keepalive messages are sent, + # and the hold time is the maximum number of seconds allowed to elapse between + # successive keepalive messages that BGP receives from a peer. + # BGP will use the smaller of either the local hold time value or the peer's + # hold time value as the hold time for the BGP connection between the two peers. + # If set, this value must be between 1 and 120. The default is 20. # Corresponds to the JSON property `keepaliveInterval` # @return [Fixnum] attr_accessor :keepalive_interval @@ -26115,14 +26131,16 @@ module Google attr_accessor :advertised_route_priority # BFD configuration for the BGP peering. + # Not currently available publicly. # Corresponds to the JSON property `bfd` # @return [Google::Apis::ComputeBeta::RouterBgpPeerBfd] attr_accessor :bfd - # The status of the BGP peer connection. If set to FALSE, any active session - # with the peer is terminated and all associated routing information is removed. - # If set to TRUE, the peer connection can be established with routing - # information. The default is TRUE. + # The status of the BGP peer connection. + # Not currently available publicly. + # If set to FALSE, any active session with the peer is terminated and all + # associated routing information is removed. If set to TRUE, the peer connection + # can be established with routing information. The default is TRUE. # Corresponds to the JSON property `enable` # @return [String] attr_accessor :enable @@ -26199,8 +26217,10 @@ module Google # The minimum interval, in milliseconds, between BFD control packets received # from the peer router. The actual value is negotiated between the two routers # and is equal to the greater of this value and the transmit interval of the - # other router. If set, this value must be between 100 and 30000. The default is - # 300. + # other router. + # Not currently available publicly. + # If set, this value must be between 100 and 30000. + # The default is 300. # Corresponds to the JSON property `minReceiveInterval` # @return [Fixnum] attr_accessor :min_receive_interval @@ -26208,24 +26228,29 @@ module Google # The minimum interval, in milliseconds, between BFD control packets transmitted # to the peer router. The actual value is negotiated between the two routers and # is equal to the greater of this value and the corresponding receive interval - # of the other router. If set, this value must be between 100 and 30000. The - # default is 300. + # of the other router. + # Not currently available publicly. + # If set, this value must be between 100 and 30000. + # The default is 300. # Corresponds to the JSON property `minTransmitInterval` # @return [Fixnum] attr_accessor :min_transmit_interval # The number of consecutive BFD packets that must be missed before BFD declares - # that a peer is unavailable. If set, the value must be a value between 2 and 16. + # that a peer is unavailable. + # Not currently available publicly. + # If set, the value must be a value between 2 and 16. # The default is 3. # Corresponds to the JSON property `multiplier` # @return [Fixnum] attr_accessor :multiplier - # The BFD session initialization mode for this BGP peer. If set to ACTIVE, the - # Cloud Router will initiate the BFD session for this BGP peer. If set to - # PASSIVE, the Cloud Router will wait for the peer router to initiate the BFD - # session for this BGP peer. If set to DISABLED, BFD is disabled for this BGP - # peer. The default is PASSIVE. + # The BFD session initialization mode for this BGP peer. + # Not currently available publicly. + # If set to ACTIVE, the Cloud Router will initiate the BFD session for this BGP + # peer. If set to PASSIVE, the Cloud Router will wait for the peer router to + # initiate the BFD session for this BGP peer. If set to DISABLED, BFD is + # disabled for this BGP peer. The default is PASSIVE. # Corresponds to the JSON property `sessionInitializationMode` # @return [String] attr_accessor :session_initialization_mode @@ -26820,7 +26845,7 @@ module Google include Google::Apis::Core::Hashable # Represents a Cloud Router resource. - # For more information about Cloud Router, read the the Cloud Router overview. + # For more information about Cloud Router, read the Cloud Router overview. # Corresponds to the JSON property `resource` # @return [Google::Apis::ComputeBeta::Router] attr_accessor :resource diff --git a/generated/google/apis/compute_beta/representations.rb b/generated/google/apis/compute_beta/representations.rb index 0101cd4e3..df06d1966 100644 --- a/generated/google/apis/compute_beta/representations.rb +++ b/generated/google/apis/compute_beta/representations.rb @@ -6018,6 +6018,7 @@ module Google collection :guest_os_features, as: 'guestOsFeatures', class: Google::Apis::ComputeBeta::GuestOsFeature, decorator: Google::Apis::ComputeBeta::GuestOsFeature::Representation property :id, :numeric_string => true, as: 'id' + property :interface, as: 'interface' property :kind, as: 'kind' property :label_fingerprint, :base64 => true, as: 'labelFingerprint' hash :labels, as: 'labels' @@ -7359,6 +7360,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :can_ip_forward, as: 'canIpForward' + property :confidential_instance_config, as: 'confidentialInstanceConfig', class: Google::Apis::ComputeBeta::ConfidentialInstanceConfig, decorator: Google::Apis::ComputeBeta::ConfidentialInstanceConfig::Representation + property :cpu_platform, as: 'cpuPlatform' property :creation_timestamp, as: 'creationTimestamp' property :deletion_protection, as: 'deletionProtection' diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index 85a382107..b16ef7b53 100644 --- a/generated/google/apis/compute_v1.rb +++ b/generated/google/apis/compute_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeV1 VERSION = 'V1' - REVISION = '20200501' + REVISION = '20200511' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/compute_v1/classes.rb b/generated/google/apis/compute_v1/classes.rb index db5ce3c53..a6a6819ed 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -4600,7 +4600,7 @@ module Google # URL of the disk type resource describing which disk type to use to create the # disk. Provide this when creating the disk. For example: projects/project/zones/ - # zone/diskTypes/pd-standard or pd-ssd + # zone/diskTypes/pd-standard or pd-ssd # Corresponds to the JSON property `type` # @return [String] attr_accessor :type @@ -10078,8 +10078,8 @@ module Google alias_method :start_restricted?, :start_restricted # [Output Only] The status of the instance. One of the following values: - # PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, and - # TERMINATED. + # PROVISIONING, STAGING, RUNNING, STOPPING, SUSPENDING, SUSPENDED, REPAIRING, + # and TERMINATED. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -23483,7 +23483,7 @@ module Google end # Represents a Cloud Router resource. - # For more information about Cloud Router, read the the Cloud Router overview. + # For more information about Cloud Router, read the Cloud Router overview. class Router include Google::Apis::Core::Hashable @@ -24441,7 +24441,7 @@ module Google include Google::Apis::Core::Hashable # Represents a Cloud Router resource. - # For more information about Cloud Router, read the the Cloud Router overview. + # For more information about Cloud Router, read the Cloud Router overview. # Corresponds to the JSON property `resource` # @return [Google::Apis::ComputeV1::Router] attr_accessor :resource diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index 6c4aac46a..aa1aa56b0 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2 VERSION = 'V2' - REVISION = '20200421' + REVISION = '20200526' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2/classes.rb b/generated/google/apis/content_v2/classes.rb index 925ef9905..c9d25f7f0 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -5740,6 +5740,11 @@ module Google # @return [Array] attr_accessor :line_items + # Delivery details of the shipment if scheduling is needed. + # Corresponds to the JSON property `scheduledDeliveryDetails` + # @return [Google::Apis::ContentV2::OrderShipmentScheduledDeliveryDetails] + attr_accessor :scheduled_delivery_details + # The status of the shipment. # Acceptable values are: # - "`delivered`" @@ -5766,6 +5771,7 @@ module Google @delivery_date = args[:delivery_date] if args.key?(:delivery_date) @id = args[:id] if args.key?(:id) @line_items = args[:line_items] if args.key?(:line_items) + @scheduled_delivery_details = args[:scheduled_delivery_details] if args.key?(:scheduled_delivery_details) @status = args[:status] if args.key?(:status) @tracking_id = args[:tracking_id] if args.key?(:tracking_id) end @@ -5804,6 +5810,31 @@ module Google end end + # + class OrderShipmentScheduledDeliveryDetails + include Google::Apis::Core::Hashable + + # The phone number of the carrier fulfilling the delivery. + # Corresponds to the JSON property `carrierPhoneNumber` + # @return [String] + attr_accessor :carrier_phone_number + + # The date a shipment is scheduled for delivery, in ISO 8601 format. + # Corresponds to the JSON property `scheduledDate` + # @return [String] + attr_accessor :scheduled_date + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @carrier_phone_number = args[:carrier_phone_number] if args.key?(:carrier_phone_number) + @scheduled_date = args[:scheduled_date] if args.key?(:scheduled_date) + end + end + # class OrderinvoicesCreateChargeInvoiceRequest include Google::Apis::Core::Hashable @@ -10955,6 +10986,7 @@ module Google # - "`new`" # - "`shipped`" # - "`undeliverable`" + # - "`pending`" # Corresponds to the JSON property `state` # @return [String] attr_accessor :state diff --git a/generated/google/apis/content_v2/representations.rb b/generated/google/apis/content_v2/representations.rb index 5a0367c59..6aba1231c 100644 --- a/generated/google/apis/content_v2/representations.rb +++ b/generated/google/apis/content_v2/representations.rb @@ -808,6 +808,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class OrderShipmentScheduledDeliveryDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class OrderinvoicesCreateChargeInvoiceRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3115,6 +3121,8 @@ module Google property :id, as: 'id' collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2::OrderShipmentLineItemShipment, decorator: Google::Apis::ContentV2::OrderShipmentLineItemShipment::Representation + property :scheduled_delivery_details, as: 'scheduledDeliveryDetails', class: Google::Apis::ContentV2::OrderShipmentScheduledDeliveryDetails, decorator: Google::Apis::ContentV2::OrderShipmentScheduledDeliveryDetails::Representation + property :status, as: 'status' property :tracking_id, as: 'trackingId' end @@ -3129,6 +3137,14 @@ module Google end end + class OrderShipmentScheduledDeliveryDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :carrier_phone_number, as: 'carrierPhoneNumber' + property :scheduled_date, as: 'scheduledDate' + end + end + class OrderinvoicesCreateChargeInvoiceRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/content_v2/service.rb b/generated/google/apis/content_v2/service.rb index e025e1cb0..5e30c11fc 100644 --- a/generated/google/apis/content_v2/service.rb +++ b/generated/google/apis/content_v2/service.rb @@ -2519,7 +2519,11 @@ module Google end # Returns and refunds a line item. Note that this method can only be called on - # fully shipped orders. + # fully shipped orders. Please also note that the Orderreturns API is the + # preferred way to handle returns after you receive a return from a customer. + # You can use Orderreturns.list or Orderreturns.get to search for the return, + # and then use Orderreturns.processreturn to issue the refund. If the return + # cannot be found, then we recommend using this API to issue a refund. # @param [Fixnum] merchant_id # The ID of the account that manages the order. This cannot be a multi-client # account. diff --git a/generated/google/apis/content_v2_1.rb b/generated/google/apis/content_v2_1.rb index adda9ff9d..367b55721 100644 --- a/generated/google/apis/content_v2_1.rb +++ b/generated/google/apis/content_v2_1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2_1 VERSION = 'V2_1' - REVISION = '20200512' + REVISION = '20200526' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2_1/classes.rb b/generated/google/apis/content_v2_1/classes.rb index 6cdb8429c..cfa5f4791 100644 --- a/generated/google/apis/content_v2_1/classes.rb +++ b/generated/google/apis/content_v2_1/classes.rb @@ -4984,14 +4984,16 @@ module Google class OrderPromotion include Google::Apis::Core::Hashable - # Items which this promotion may be applied to. If empty, there are no - # restrictions on applicable items and quantity. + # Items that this promotion may be applied to. If empty, there are no + # restrictions on applicable items and quantity. This field will also be empty + # for shipping promotions because shipping is not tied to any specific item. # Corresponds to the JSON property `applicableItems` # @return [Array] attr_accessor :applicable_items - # Items which this promotion have been applied to. Do not provide for `orders. - # createtestorder`. + # Items that this promotion have been applied to. Do not provide for `orders. + # createtestorder`. This field will be empty for shipping promotions because + # shipping is not tied to any specific item. # Corresponds to the JSON property `appliedItems` # @return [Array] attr_accessor :applied_items @@ -5478,6 +5480,11 @@ module Google # @return [Array] attr_accessor :line_items + # Delivery details of the shipment if scheduling is needed. + # Corresponds to the JSON property `scheduledDeliveryDetails` + # @return [Google::Apis::ContentV2_1::OrderShipmentScheduledDeliveryDetails] + attr_accessor :scheduled_delivery_details + # The shipment group ID of the shipment. This is set in shiplineitems request. # Corresponds to the JSON property `shipmentGroupId` # @return [String] @@ -5509,6 +5516,7 @@ module Google @delivery_date = args[:delivery_date] if args.key?(:delivery_date) @id = args[:id] if args.key?(:id) @line_items = args[:line_items] if args.key?(:line_items) + @scheduled_delivery_details = args[:scheduled_delivery_details] if args.key?(:scheduled_delivery_details) @shipment_group_id = args[:shipment_group_id] if args.key?(:shipment_group_id) @status = args[:status] if args.key?(:status) @tracking_id = args[:tracking_id] if args.key?(:tracking_id) @@ -5548,6 +5556,31 @@ module Google end end + # + class OrderShipmentScheduledDeliveryDetails + include Google::Apis::Core::Hashable + + # The phone number of the carrier fulfilling the delivery. + # Corresponds to the JSON property `carrierPhoneNumber` + # @return [String] + attr_accessor :carrier_phone_number + + # The date a shipment is scheduled for delivery, in ISO 8601 format. + # Corresponds to the JSON property `scheduledDate` + # @return [String] + attr_accessor :scheduled_date + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @carrier_phone_number = args[:carrier_phone_number] if args.key?(:carrier_phone_number) + @scheduled_date = args[:scheduled_date] if args.key?(:scheduled_date) + end + end + # class OrderinvoicesCreateChargeInvoiceRequest include Google::Apis::Core::Hashable @@ -8896,7 +8929,7 @@ module Google # @return [String] attr_accessor :destination - # + # Destination approval status in targetCountry of the offer. # Corresponds to the JSON property `status` # @return [String] attr_accessor :status @@ -10128,6 +10161,7 @@ module Google # - "`new`" # - "`shipped`" # - "`undeliverable`" + # - "`pending`" # Corresponds to the JSON property `state` # @return [String] attr_accessor :state diff --git a/generated/google/apis/content_v2_1/representations.rb b/generated/google/apis/content_v2_1/representations.rb index 4af291469..9fbc622ee 100644 --- a/generated/google/apis/content_v2_1/representations.rb +++ b/generated/google/apis/content_v2_1/representations.rb @@ -808,6 +808,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class OrderShipmentScheduledDeliveryDetails + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class OrderinvoicesCreateChargeInvoiceRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3152,6 +3158,8 @@ module Google property :id, as: 'id' collection :line_items, as: 'lineItems', class: Google::Apis::ContentV2_1::OrderShipmentLineItemShipment, decorator: Google::Apis::ContentV2_1::OrderShipmentLineItemShipment::Representation + property :scheduled_delivery_details, as: 'scheduledDeliveryDetails', class: Google::Apis::ContentV2_1::OrderShipmentScheduledDeliveryDetails, decorator: Google::Apis::ContentV2_1::OrderShipmentScheduledDeliveryDetails::Representation + property :shipment_group_id, as: 'shipmentGroupId' property :status, as: 'status' property :tracking_id, as: 'trackingId' @@ -3167,6 +3175,14 @@ module Google end end + class OrderShipmentScheduledDeliveryDetails + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :carrier_phone_number, as: 'carrierPhoneNumber' + property :scheduled_date, as: 'scheduledDate' + end + end + class OrderinvoicesCreateChargeInvoiceRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/content_v2_1/service.rb b/generated/google/apis/content_v2_1/service.rb index 2f7c234f3..e9a426ff4 100644 --- a/generated/google/apis/content_v2_1/service.rb +++ b/generated/google/apis/content_v2_1/service.rb @@ -2504,7 +2504,11 @@ module Google end # Returns and refunds a line item. Note that this method can only be called on - # fully shipped orders. + # fully shipped orders. Please also note that the Orderreturns API is the + # preferred way to handle returns after you receive a return from a customer. + # You can use Orderreturns.list or Orderreturns.get to search for the return, + # and then use Orderreturns.processreturn to issue the refund. If the return + # cannot be found, then we recommend using this API to issue a refund. # @param [Fixnum] merchant_id # The ID of the account that manages the order. This cannot be a multi-client # account. diff --git a/generated/google/apis/games_v1.rb b/generated/google/apis/games_v1.rb index 49423cc5d..7bec8da0d 100644 --- a/generated/google/apis/games_v1.rb +++ b/generated/google/apis/games_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services/ module GamesV1 VERSION = 'V1' - REVISION = '20200416' + REVISION = '20200528' # View and manage its own configuration data in your Google Drive AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata' diff --git a/generated/google/apis/people_v1.rb b/generated/google/apis/people_v1.rb index eed6478ec..2fcff86f1 100644 --- a/generated/google/apis/people_v1.rb +++ b/generated/google/apis/people_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/people/ module PeopleV1 VERSION = 'V1' - REVISION = '20200601' + REVISION = '20200604' # See, edit, download, and permanently delete your contacts AUTH_CONTACTS = 'https://www.googleapis.com/auth/contacts' diff --git a/generated/google/apis/people_v1/classes.rb b/generated/google/apis/people_v1/classes.rb index 67e770b55..2b536f4cc 100644 --- a/generated/google/apis/people_v1/classes.rb +++ b/generated/google/apis/people_v1/classes.rb @@ -1239,6 +1239,11 @@ module Google # @return [String] attr_accessor :phonetic_middle_name + # The free form name value. + # Corresponds to the JSON property `unstructuredName` + # @return [String] + attr_accessor :unstructured_name + def initialize(**args) update!(**args) end @@ -1259,6 +1264,7 @@ module Google @phonetic_honorific_prefix = args[:phonetic_honorific_prefix] if args.key?(:phonetic_honorific_prefix) @phonetic_honorific_suffix = args[:phonetic_honorific_suffix] if args.key?(:phonetic_honorific_suffix) @phonetic_middle_name = args[:phonetic_middle_name] if args.key?(:phonetic_middle_name) + @unstructured_name = args[:unstructured_name] if args.key?(:unstructured_name) end end diff --git a/generated/google/apis/people_v1/representations.rb b/generated/google/apis/people_v1/representations.rb index ebd2aa9da..e9f743d56 100644 --- a/generated/google/apis/people_v1/representations.rb +++ b/generated/google/apis/people_v1/representations.rb @@ -679,6 +679,7 @@ module Google property :phonetic_honorific_prefix, as: 'phoneticHonorificPrefix' property :phonetic_honorific_suffix, as: 'phoneticHonorificSuffix' property :phonetic_middle_name, as: 'phoneticMiddleName' + property :unstructured_name, as: 'unstructuredName' end end diff --git a/generated/google/apis/pubsub_v1.rb b/generated/google/apis/pubsub_v1.rb index 0463866ea..95667ca73 100644 --- a/generated/google/apis/pubsub_v1.rb +++ b/generated/google/apis/pubsub_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/pubsub/docs module PubsubV1 VERSION = 'V1' - REVISION = '20200505' + REVISION = '20200525' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/pubsub_v1/classes.rb b/generated/google/apis/pubsub_v1/classes.rb index 95b3d5e97..8627cc038 100644 --- a/generated/google/apis/pubsub_v1/classes.rb +++ b/generated/google/apis/pubsub_v1/classes.rb @@ -203,6 +203,20 @@ module Google end end + # Response for the DetachSubscription method. + # Reserved for future use. + class DetachSubscriptionResponse + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # A generic empty message that you can re-use to avoid defining duplicated # empty messages in your APIs. A typical example is to use it as the request # or the response type of an API method. For instance: @@ -401,7 +415,7 @@ module Google # @return [String] attr_accessor :next_page_token - # The names of the subscriptions that match the request. + # The names of subscriptions attached to the topic specified in the request. # Corresponds to the JSON property `subscriptions` # @return [Array] attr_accessor :subscriptions diff --git a/generated/google/apis/pubsub_v1/representations.rb b/generated/google/apis/pubsub_v1/representations.rb index 88ca86459..94fb7c628 100644 --- a/generated/google/apis/pubsub_v1/representations.rb +++ b/generated/google/apis/pubsub_v1/representations.rb @@ -46,6 +46,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class DetachSubscriptionResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Empty class Representation < Google::Apis::Core::JsonRepresentation; end @@ -265,6 +271,12 @@ module Google end end + class DetachSubscriptionResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class Empty # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/pubsub_v1/service.rb b/generated/google/apis/pubsub_v1/service.rb index eb99f298c..3d92fef48 100644 --- a/generated/google/apis/pubsub_v1/service.rb +++ b/generated/google/apis/pubsub_v1/service.rb @@ -502,6 +502,40 @@ module Google execute_or_queue_command(command, &block) end + # Detaches a subscription from this topic. All messages retained in the + # subscription are dropped. Subsequent `Pull` and `StreamingPull` requests + # will return FAILED_PRECONDITION. If the subscription is a push + # subscription, pushes to the endpoint will stop. + # @param [String] subscription + # Required. The subscription to detach. + # Format is `projects/`project`/subscriptions/`subscription``. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::PubsubV1::DetachSubscriptionResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::DetachSubscriptionResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def detach_project_subscription(subscription, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+subscription}:detach', options) + command.response_representation = Google::Apis::PubsubV1::DetachSubscriptionResponse::Representation + command.response_class = Google::Apis::PubsubV1::DetachSubscriptionResponse + command.params['subscription'] = subscription unless subscription.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Gets the configuration details of a subscription. # @param [String] subscription # Required. The name of the subscription to get. @@ -1264,7 +1298,7 @@ module Google execute_or_queue_command(command, &block) end - # Lists the names of the subscriptions on this topic. + # Lists the names of the attached subscriptions on this topic. # @param [String] topic # Required. The name of the topic that subscriptions are attached to. # Format is `projects/`project`/topics/`topic``. diff --git a/generated/google/apis/serviceconsumermanagement_v1.rb b/generated/google/apis/serviceconsumermanagement_v1.rb index c36b23dd6..0ec423764 100644 --- a/generated/google/apis/serviceconsumermanagement_v1.rb +++ b/generated/google/apis/serviceconsumermanagement_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/service-consumer-management/docs/overview module ServiceconsumermanagementV1 VERSION = 'V1' - REVISION = '20200516' + REVISION = '20200603' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/serviceconsumermanagement_v1/classes.rb b/generated/google/apis/serviceconsumermanagement_v1/classes.rb index 95c83964b..774a116bb 100644 --- a/generated/google/apis/serviceconsumermanagement_v1/classes.rb +++ b/generated/google/apis/serviceconsumermanagement_v1/classes.rb @@ -4071,6 +4071,103 @@ module Google end end + # Response message for ImportProducerQuotaPolicies + class V1Beta1ImportProducerQuotaPoliciesResponse + include Google::Apis::Core::Hashable + + # The policies that were created from the imported data. + # Corresponds to the JSON property `policies` + # @return [Array] + attr_accessor :policies + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @policies = args[:policies] if args.key?(:policies) + end + end + + # Quota policy created by service producer. + class V1Beta1ProducerQuotaPolicy + include Google::Apis::Core::Hashable + + # The cloud resource container at which the quota policy is created. The + # format is `container_type`/`container_number` + # Corresponds to the JSON property `container` + # @return [String] + attr_accessor :container + + # If this map is nonempty, then this policy applies only to specific values + # for dimensions defined in the limit unit. + # For example, an policy on a limit with the unit 1/`project`/`region` + # could contain an entry with the key "region" and the value "us-east-1"; + # the policy is only applied to quota consumed in that region. + # This map has the following restrictions: + # * Keys that are not defined in the limit's unit are not valid keys. + # Any string appearing in `brackets` in the unit (besides `project` or + # `user`) is a defined key. + # * "project" is not a valid key; the project is already specified in + # the parent resource name. + # * "user" is not a valid key; the API does not support quota polcies + # that apply only to a specific user. + # * If "region" appears as a key, its value must be a valid Cloud region. + # * If "zone" appears as a key, its value must be a valid Cloud zone. + # * If any valid key other than "region" or "zone" appears in the map, then + # all valid keys other than "region" or "zone" must also appear in the + # map. + # Corresponds to the JSON property `dimensions` + # @return [Hash] + attr_accessor :dimensions + + # The name of the metric to which this policy applies. + # An example name would be: + # `compute.googleapis.com/cpus` + # Corresponds to the JSON property `metric` + # @return [String] + attr_accessor :metric + + # The resource name of the producer policy. + # An example name would be: + # `services/compute.googleapis.com/organizations/123/consumerQuotaMetrics/ + # compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerQuotaPolicies/ + # 4a3f2c1d` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The quota policy value. + # Can be any nonnegative integer, or -1 (unlimited quota). + # Corresponds to the JSON property `policyValue` + # @return [Fixnum] + attr_accessor :policy_value + + # The limit unit of the limit to which this policy applies. + # An example unit would be: + # `1/`project`/`region`` + # Note that ``project`` and ``region`` are not placeholders in this example; + # the literal characters ``` and ``` occur in the string. + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @container = args[:container] if args.key?(:container) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @metric = args[:metric] if args.key?(:metric) + @name = args[:name] if args.key?(:name) + @policy_value = args[:policy_value] if args.key?(:policy_value) + @unit = args[:unit] if args.key?(:unit) + end + end + # A quota override class V1Beta1QuotaOverride include Google::Apis::Core::Hashable diff --git a/generated/google/apis/serviceconsumermanagement_v1/representations.rb b/generated/google/apis/serviceconsumermanagement_v1/representations.rb index b420a2c68..07f2de338 100644 --- a/generated/google/apis/serviceconsumermanagement_v1/representations.rb +++ b/generated/google/apis/serviceconsumermanagement_v1/representations.rb @@ -490,6 +490,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class V1Beta1ImportProducerQuotaPoliciesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class V1Beta1ProducerQuotaPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class V1Beta1QuotaOverride class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1361,6 +1373,26 @@ module Google end end + class V1Beta1ImportProducerQuotaPoliciesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :policies, as: 'policies', class: Google::Apis::ServiceconsumermanagementV1::V1Beta1ProducerQuotaPolicy, decorator: Google::Apis::ServiceconsumermanagementV1::V1Beta1ProducerQuotaPolicy::Representation + + end + end + + class V1Beta1ProducerQuotaPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :container, as: 'container' + hash :dimensions, as: 'dimensions' + property :metric, as: 'metric' + property :name, as: 'name' + property :policy_value, :numeric_string => true, as: 'policyValue' + property :unit, as: 'unit' + end + end + class V1Beta1QuotaOverride # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/serviceconsumermanagement_v1beta1.rb b/generated/google/apis/serviceconsumermanagement_v1beta1.rb index af15f0be3..eda2a4b97 100644 --- a/generated/google/apis/serviceconsumermanagement_v1beta1.rb +++ b/generated/google/apis/serviceconsumermanagement_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/service-consumer-management/docs/overview module ServiceconsumermanagementV1beta1 VERSION = 'V1beta1' - REVISION = '20200516' + REVISION = '20200603' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb b/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb index b7fd26622..c83371f79 100644 --- a/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +++ b/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb @@ -3673,6 +3673,25 @@ module Google end end + # Response message for ImportProducerQuotaPolicies + class V1Beta1ImportProducerQuotaPoliciesResponse + include Google::Apis::Core::Hashable + + # The policies that were created from the imported data. + # Corresponds to the JSON property `policies` + # @return [Array] + attr_accessor :policies + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @policies = args[:policies] if args.key?(:policies) + end + end + # Response message for ListConsumerQuotaMetrics. class V1Beta1ListConsumerQuotaMetricsResponse include Google::Apis::Core::Hashable @@ -3746,6 +3765,84 @@ module Google end end + # Quota policy created by service producer. + class V1Beta1ProducerQuotaPolicy + include Google::Apis::Core::Hashable + + # The cloud resource container at which the quota policy is created. The + # format is `container_type`/`container_number` + # Corresponds to the JSON property `container` + # @return [String] + attr_accessor :container + + # If this map is nonempty, then this policy applies only to specific values + # for dimensions defined in the limit unit. + # For example, an policy on a limit with the unit 1/`project`/`region` + # could contain an entry with the key "region" and the value "us-east-1"; + # the policy is only applied to quota consumed in that region. + # This map has the following restrictions: + # * Keys that are not defined in the limit's unit are not valid keys. + # Any string appearing in `brackets` in the unit (besides `project` or + # `user`) is a defined key. + # * "project" is not a valid key; the project is already specified in + # the parent resource name. + # * "user" is not a valid key; the API does not support quota polcies + # that apply only to a specific user. + # * If "region" appears as a key, its value must be a valid Cloud region. + # * If "zone" appears as a key, its value must be a valid Cloud zone. + # * If any valid key other than "region" or "zone" appears in the map, then + # all valid keys other than "region" or "zone" must also appear in the + # map. + # Corresponds to the JSON property `dimensions` + # @return [Hash] + attr_accessor :dimensions + + # The name of the metric to which this policy applies. + # An example name would be: + # `compute.googleapis.com/cpus` + # Corresponds to the JSON property `metric` + # @return [String] + attr_accessor :metric + + # The resource name of the producer policy. + # An example name would be: + # `services/compute.googleapis.com/organizations/123/consumerQuotaMetrics/ + # compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerQuotaPolicies/ + # 4a3f2c1d` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The quota policy value. + # Can be any nonnegative integer, or -1 (unlimited quota). + # Corresponds to the JSON property `policyValue` + # @return [Fixnum] + attr_accessor :policy_value + + # The limit unit of the limit to which this policy applies. + # An example unit would be: + # `1/`project`/`region`` + # Note that ``project`` and ``region`` are not placeholders in this example; + # the literal characters ``` and ``` occur in the string. + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @container = args[:container] if args.key?(:container) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @metric = args[:metric] if args.key?(:metric) + @name = args[:name] if args.key?(:name) + @policy_value = args[:policy_value] if args.key?(:policy_value) + @unit = args[:unit] if args.key?(:unit) + end + end + # A quota bucket is a quota provisioning unit for a specific set of dimensions. class V1Beta1QuotaBucket include Google::Apis::Core::Hashable diff --git a/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb b/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb index 737d5ae57..284418064 100644 --- a/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +++ b/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb @@ -394,6 +394,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class V1Beta1ImportProducerQuotaPoliciesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class V1Beta1ListConsumerQuotaMetricsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -412,6 +418,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class V1Beta1ProducerQuotaPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class V1Beta1QuotaBucket class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1165,6 +1177,14 @@ module Google end end + class V1Beta1ImportProducerQuotaPoliciesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :policies, as: 'policies', class: Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ProducerQuotaPolicy, decorator: Google::Apis::ServiceconsumermanagementV1beta1::V1Beta1ProducerQuotaPolicy::Representation + + end + end + class V1Beta1ListConsumerQuotaMetricsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1191,6 +1211,18 @@ module Google end end + class V1Beta1ProducerQuotaPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :container, as: 'container' + hash :dimensions, as: 'dimensions' + property :metric, as: 'metric' + property :name, as: 'name' + property :policy_value, :numeric_string => true, as: 'policyValue' + property :unit, as: 'unit' + end + end + class V1Beta1QuotaBucket # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/serviceusage_v1.rb b/generated/google/apis/serviceusage_v1.rb index 6183967df..b0fc3f6b6 100644 --- a/generated/google/apis/serviceusage_v1.rb +++ b/generated/google/apis/serviceusage_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-usage/ module ServiceusageV1 VERSION = 'V1' - REVISION = '20200516' + REVISION = '20200603' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/serviceusage_v1/classes.rb b/generated/google/apis/serviceusage_v1/classes.rb index b8be73eed..3be6cbab7 100644 --- a/generated/google/apis/serviceusage_v1/classes.rb +++ b/generated/google/apis/serviceusage_v1/classes.rb @@ -22,6 +22,76 @@ module Google module Apis module ServiceusageV1 + # Quota policy created by quota administrator. + class AdminQuotaPolicy + include Google::Apis::Core::Hashable + + # The cloud resource container at which the quota policy is created. The + # format is `container_type`/`container_number` + # Corresponds to the JSON property `container` + # @return [String] + attr_accessor :container + + # If this map is nonempty, then this policy applies only to specific values + # for dimensions defined in the limit unit. + # For example, an policy on a limit with the unit 1/`project`/`region` + # could contain an entry with the key "region" and the value "us-east-1"; + # the policy is only applied to quota consumed in that region. + # This map has the following restrictions: + # * If "region" appears as a key, its value must be a valid Cloud region. + # * If "zone" appears as a key, its value must be a valid Cloud zone. + # * Keys other than "region" or "zone" are not valid. + # Corresponds to the JSON property `dimensions` + # @return [Hash] + attr_accessor :dimensions + + # The name of the metric to which this policy applies. + # An example name would be: + # `compute.googleapis.com/cpus` + # Corresponds to the JSON property `metric` + # @return [String] + attr_accessor :metric + + # The resource name of the policy. + # This name is generated by the server when the policy is created. + # Example names would be: + # `organizations/123/services/compute.googleapis.com/consumerQuotaMetrics/ + # compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminPolicies/ + # 4a3f2c1d` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The quota policy value. + # Can be any nonnegative integer, or -1 (unlimited quota). + # Corresponds to the JSON property `policyValue` + # @return [Fixnum] + attr_accessor :policy_value + + # The limit unit of the limit to which this policy applies. + # An example unit would be: + # `1/`project`/`region`` + # Note that ``project`` and ``region`` are not placeholders in this example; + # the literal characters ``` and ``` occur in the string. + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @container = args[:container] if args.key?(:container) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @metric = args[:metric] if args.key?(:metric) + @name = args[:name] if args.key?(:name) + @policy_value = args[:policy_value] if args.key?(:policy_value) + @unit = args[:unit] if args.key?(:unit) + end + end + # Api is a light-weight descriptor for an API Interface. # Interfaces are also described as "protocol buffer services" in some contexts, # such as by the "service" keyword in a .proto file, but they are different @@ -2534,6 +2604,25 @@ module Google end end + # Response message for ImportAdminQuotaPolicies + class ImportAdminQuotaPoliciesResponse + include Google::Apis::Core::Hashable + + # The policies that were created from the imported data. + # Corresponds to the JSON property `policies` + # @return [Array] + attr_accessor :policies + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @policies = args[:policies] if args.key?(:policies) + end + end + # Response message for ImportConsumerOverrides class ImportConsumerOverridesResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/serviceusage_v1/representations.rb b/generated/google/apis/serviceusage_v1/representations.rb index 0ee2ac3f4..e41a7396e 100644 --- a/generated/google/apis/serviceusage_v1/representations.rb +++ b/generated/google/apis/serviceusage_v1/representations.rb @@ -22,6 +22,12 @@ module Google module Apis module ServiceusageV1 + class AdminQuotaPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Api class Representation < Google::Apis::Core::JsonRepresentation; end @@ -286,6 +292,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ImportAdminQuotaPoliciesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ImportConsumerOverridesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -490,6 +502,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AdminQuotaPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :container, as: 'container' + hash :dimensions, as: 'dimensions' + property :metric, as: 'metric' + property :name, as: 'name' + property :policy_value, :numeric_string => true, as: 'policyValue' + property :unit, as: 'unit' + end + end + class Api # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -969,6 +993,14 @@ module Google end end + class ImportAdminQuotaPoliciesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :policies, as: 'policies', class: Google::Apis::ServiceusageV1::AdminQuotaPolicy, decorator: Google::Apis::ServiceusageV1::AdminQuotaPolicy::Representation + + end + end + class ImportConsumerOverridesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/serviceusage_v1beta1.rb b/generated/google/apis/serviceusage_v1beta1.rb index cb8711e44..12a7475be 100644 --- a/generated/google/apis/serviceusage_v1beta1.rb +++ b/generated/google/apis/serviceusage_v1beta1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/service-usage/ module ServiceusageV1beta1 VERSION = 'V1beta1' - REVISION = '20200516' + REVISION = '20200603' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/serviceusage_v1beta1/classes.rb b/generated/google/apis/serviceusage_v1beta1/classes.rb index ef4fb206e..b872ccaa8 100644 --- a/generated/google/apis/serviceusage_v1beta1/classes.rb +++ b/generated/google/apis/serviceusage_v1beta1/classes.rb @@ -22,6 +22,76 @@ module Google module Apis module ServiceusageV1beta1 + # Quota policy created by quota administrator. + class AdminQuotaPolicy + include Google::Apis::Core::Hashable + + # The cloud resource container at which the quota policy is created. The + # format is `container_type`/`container_number` + # Corresponds to the JSON property `container` + # @return [String] + attr_accessor :container + + # If this map is nonempty, then this policy applies only to specific values + # for dimensions defined in the limit unit. + # For example, an policy on a limit with the unit 1/`project`/`region` + # could contain an entry with the key "region" and the value "us-east-1"; + # the policy is only applied to quota consumed in that region. + # This map has the following restrictions: + # * If "region" appears as a key, its value must be a valid Cloud region. + # * If "zone" appears as a key, its value must be a valid Cloud zone. + # * Keys other than "region" or "zone" are not valid. + # Corresponds to the JSON property `dimensions` + # @return [Hash] + attr_accessor :dimensions + + # The name of the metric to which this policy applies. + # An example name would be: + # `compute.googleapis.com/cpus` + # Corresponds to the JSON property `metric` + # @return [String] + attr_accessor :metric + + # The resource name of the policy. + # This name is generated by the server when the policy is created. + # Example names would be: + # `organizations/123/services/compute.googleapis.com/consumerQuotaMetrics/ + # compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminPolicies/ + # 4a3f2c1d` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The quota policy value. + # Can be any nonnegative integer, or -1 (unlimited quota). + # Corresponds to the JSON property `policyValue` + # @return [Fixnum] + attr_accessor :policy_value + + # The limit unit of the limit to which this policy applies. + # An example unit would be: + # `1/`project`/`region`` + # Note that ``project`` and ``region`` are not placeholders in this example; + # the literal characters ``` and ``` occur in the string. + # Corresponds to the JSON property `unit` + # @return [String] + attr_accessor :unit + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @container = args[:container] if args.key?(:container) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @metric = args[:metric] if args.key?(:metric) + @name = args[:name] if args.key?(:name) + @policy_value = args[:policy_value] if args.key?(:policy_value) + @unit = args[:unit] if args.key?(:unit) + end + end + # Api is a light-weight descriptor for an API Interface. # Interfaces are also described as "protocol buffer services" in some contexts, # such as by the "service" keyword in a .proto file, but they are different @@ -2603,6 +2673,25 @@ module Google end end + # Response message for ImportAdminQuotaPolicies + class ImportAdminQuotaPoliciesResponse + include Google::Apis::Core::Hashable + + # The policies that were created from the imported data. + # Corresponds to the JSON property `policies` + # @return [Array] + attr_accessor :policies + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @policies = args[:policies] if args.key?(:policies) + end + end + # Response message for ImportConsumerOverrides class ImportConsumerOverridesResponse include Google::Apis::Core::Hashable diff --git a/generated/google/apis/serviceusage_v1beta1/representations.rb b/generated/google/apis/serviceusage_v1beta1/representations.rb index 22ecc9a22..4a19664a8 100644 --- a/generated/google/apis/serviceusage_v1beta1/representations.rb +++ b/generated/google/apis/serviceusage_v1beta1/representations.rb @@ -22,6 +22,12 @@ module Google module Apis module ServiceusageV1beta1 + class AdminQuotaPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Api class Representation < Google::Apis::Core::JsonRepresentation; end @@ -286,6 +292,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ImportAdminQuotaPoliciesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ImportConsumerOverridesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -526,6 +538,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class AdminQuotaPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :container, as: 'container' + hash :dimensions, as: 'dimensions' + property :metric, as: 'metric' + property :name, as: 'name' + property :policy_value, :numeric_string => true, as: 'policyValue' + property :unit, as: 'unit' + end + end + class Api # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1014,6 +1038,14 @@ module Google end end + class ImportAdminQuotaPoliciesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :policies, as: 'policies', class: Google::Apis::ServiceusageV1beta1::AdminQuotaPolicy, decorator: Google::Apis::ServiceusageV1beta1::AdminQuotaPolicy::Representation + + end + end + class ImportConsumerOverridesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/testing_v1.rb b/generated/google/apis/testing_v1.rb index 11262f612..1b509981a 100644 --- a/generated/google/apis/testing_v1.rb +++ b/generated/google/apis/testing_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/cloud-test-lab/ module TestingV1 VERSION = 'V1' - REVISION = '20200508' + REVISION = '20200603' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/testing_v1/classes.rb b/generated/google/apis/testing_v1/classes.rb index c6f5ae3ab..9578148b0 100644 --- a/generated/google/apis/testing_v1/classes.rb +++ b/generated/google/apis/testing_v1/classes.rb @@ -1004,7 +1004,8 @@ module Google include Google::Apis::Core::Hashable # A path to a file in Google Cloud Storage. - # Example: gs://build-app-1414623860166/app-debug-unaligned.apk + # Example: gs://build-app-1414623860166/app%40debug-unaligned.apk + # These paths are expected to be url encoded (percent encoding) # Corresponds to the JSON property `gcsPath` # @return [String] attr_accessor :gcs_path