Autogenerated update (2019-09-17)

Update:
- cloudkms_v1
- dataproc_v1
- dataproc_v1beta2
- translate_v3beta1
- vision_v1
- vision_v1p1beta1
- vision_v1p2beta1
- youtube_partner_v1
This commit is contained in:
Google APIs 2019-09-17 00:37:32 +00:00
parent c86d128d5b
commit 9afae883fa
20 changed files with 1101 additions and 74 deletions

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/kms/
module CloudkmsV1
VERSION = 'V1'
REVISION = '20190824'
REVISION = '20190906'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1209,7 +1209,12 @@ module Google
# @return [String]
attr_accessor :etag
# Deprecated.
# Specifies the format of the policy.
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
# rejected.
# Policies with any conditional bindings must specify version 3. Policies
# without any conditional bindings may specify any valid value or leave the
# field unset.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version

View File

@ -193,9 +193,11 @@ module Google
# See the operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned.
# Acceptable values are 0, 1, and 3.
# If the value is 0, or the field is omitted, policy format version 1 will be
# returned.
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
# rejected.
# Requests for policies with any conditional bindings must specify version 3.
# Policies without any conditional bindings may specify any valid value or
# leave the field unset.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -511,9 +513,11 @@ module Google
# See the operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned.
# Acceptable values are 0, 1, and 3.
# If the value is 0, or the field is omitted, policy format version 1 will be
# returned.
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
# rejected.
# Requests for policies with any conditional bindings must specify version 3.
# Policies without any conditional bindings may specify any valid value or
# leave the field unset.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1208,9 +1212,11 @@ module Google
# See the operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned.
# Acceptable values are 0, 1, and 3.
# If the value is 0, or the field is omitted, policy format version 1 will be
# returned.
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
# rejected.
# Requests for policies with any conditional bindings must specify version 3.
# Policies without any conditional bindings may specify any valid value or
# leave the field unset.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -1186,6 +1186,24 @@ module Google
# @return [Array<Google::Apis::DataflowV1b3::WorkerPool>]
attr_accessor :worker_pools
# The Compute Engine region
# (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
# which worker processing should occur, e.g. "us-west1". Mutually exclusive
# with worker_zone. If neither worker_region nor worker_zone is specified,
# default to the control plane's region.
# Corresponds to the JSON property `workerRegion`
# @return [String]
attr_accessor :worker_region
# The Compute Engine zone
# (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
# which worker processing should occur, e.g. "us-west1-a". Mutually exclusive
# with worker_region. If neither worker_region nor worker_zone is specified,
# a zone in the control plane's region is chosen based on available capacity.
# Corresponds to the JSON property `workerZone`
# @return [String]
attr_accessor :worker_zone
def initialize(**args)
update!(**args)
end
@ -1204,6 +1222,8 @@ module Google
@user_agent = args[:user_agent] if args.key?(:user_agent)
@version = args[:version] if args.key?(:version)
@worker_pools = args[:worker_pools] if args.key?(:worker_pools)
@worker_region = args[:worker_region] if args.key?(:worker_region)
@worker_zone = args[:worker_zone] if args.key?(:worker_zone)
end
end
@ -3313,6 +3333,11 @@ module Google
attr_accessor :bypass_temp_dir_validation
alias_method :bypass_temp_dir_validation?, :bypass_temp_dir_validation
# Configuration for VM IPs.
# Corresponds to the JSON property `ipConfiguration`
# @return [String]
attr_accessor :ip_configuration
# Optional. Name for the Cloud KMS key for the job.
# Key format is:
# projects/<project>/locations/<location>/keyRings/<keyring>/cryptoKeys/<key>
@ -3360,17 +3385,29 @@ module Google
# @return [String]
attr_accessor :temp_location
# Optional. Specifies whether worker pools should be started with private IP
# addresses.
# False by default.
# Corresponds to the JSON property `usePrivateIps`
# @return [Boolean]
attr_accessor :use_private_ips
alias_method :use_private_ips?, :use_private_ips
# The Compute Engine region
# (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
# which worker processing should occur, e.g. "us-west1". Mutually exclusive
# with worker_zone. If neither worker_region nor worker_zone is specified,
# default to the control plane's region.
# Corresponds to the JSON property `workerRegion`
# @return [String]
attr_accessor :worker_region
# The Compute Engine zone
# (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in
# which worker processing should occur, e.g. "us-west1-a". Mutually exclusive
# with worker_region. If neither worker_region nor worker_zone is specified,
# a zone in the control plane's region is chosen based on available capacity.
# If both `worker_zone` and `zone` are set, `worker_zone` takes precedence.
# Corresponds to the JSON property `workerZone`
# @return [String]
attr_accessor :worker_zone
# The Compute Engine [availability
# zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones)
# for launching worker instances to run your pipeline.
# In the future, worker_zone will take precedence.
# Corresponds to the JSON property `zone`
# @return [String]
attr_accessor :zone
@ -3384,6 +3421,7 @@ module Google
@additional_experiments = args[:additional_experiments] if args.key?(:additional_experiments)
@additional_user_labels = args[:additional_user_labels] if args.key?(:additional_user_labels)
@bypass_temp_dir_validation = args[:bypass_temp_dir_validation] if args.key?(:bypass_temp_dir_validation)
@ip_configuration = args[:ip_configuration] if args.key?(:ip_configuration)
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
@machine_type = args[:machine_type] if args.key?(:machine_type)
@max_workers = args[:max_workers] if args.key?(:max_workers)
@ -3392,7 +3430,8 @@ module Google
@service_account_email = args[:service_account_email] if args.key?(:service_account_email)
@subnetwork = args[:subnetwork] if args.key?(:subnetwork)
@temp_location = args[:temp_location] if args.key?(:temp_location)
@use_private_ips = args[:use_private_ips] if args.key?(:use_private_ips)
@worker_region = args[:worker_region] if args.key?(:worker_region)
@worker_zone = args[:worker_zone] if args.key?(:worker_zone)
@zone = args[:zone] if args.key?(:zone)
end
end

View File

@ -1156,6 +1156,8 @@ module Google
hash :version, as: 'version'
collection :worker_pools, as: 'workerPools', class: Google::Apis::DataflowV1b3::WorkerPool, decorator: Google::Apis::DataflowV1b3::WorkerPool::Representation
property :worker_region, as: 'workerRegion'
property :worker_zone, as: 'workerZone'
end
end
@ -1734,6 +1736,7 @@ module Google
collection :additional_experiments, as: 'additionalExperiments'
hash :additional_user_labels, as: 'additionalUserLabels'
property :bypass_temp_dir_validation, as: 'bypassTempDirValidation'
property :ip_configuration, as: 'ipConfiguration'
property :kms_key_name, as: 'kmsKeyName'
property :machine_type, as: 'machineType'
property :max_workers, as: 'maxWorkers'
@ -1742,7 +1745,8 @@ module Google
property :service_account_email, as: 'serviceAccountEmail'
property :subnetwork, as: 'subnetwork'
property :temp_location, as: 'tempLocation'
property :use_private_ips, as: 'usePrivateIps'
property :worker_region, as: 'workerRegion'
property :worker_zone, as: 'workerZone'
property :zone, as: 'zone'
end
end

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataproc/
module DataprocV1
VERSION = 'V1'
REVISION = '20190823'
REVISION = '20190905'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -55,6 +55,174 @@ module Google
end
end
# Autoscaling Policy config associated with the cluster.
class AutoscalingConfig
include Google::Apis::Core::Hashable
# Optional. The autoscaling policy used by the cluster.Only resource names
# including projectid and location (region) are valid. Examples:
# https://www.googleapis.com/compute/v1/projects/[project_id]/locations/[
# dataproc_region]/autoscalingPolicies/[policy_id]
# projects/[project_id]/locations/[dataproc_region]/autoscalingPolicies/[
# policy_id]Note that the policy must be in the same project and Cloud Dataproc
# region.
# Corresponds to the JSON property `policyUri`
# @return [String]
attr_accessor :policy_uri
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@policy_uri = args[:policy_uri] if args.key?(:policy_uri)
end
end
# Describes an autoscaling policy for Dataproc cluster autoscaler.
class AutoscalingPolicy
include Google::Apis::Core::Hashable
# Basic algorithm for autoscaling.
# Corresponds to the JSON property `basicAlgorithm`
# @return [Google::Apis::DataprocV1::BasicAutoscalingAlgorithm]
attr_accessor :basic_algorithm
# Required. The policy id.The id must contain only letters (a-z, A-Z), numbers (
# 0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore or
# hyphen. Must consist of between 3 and 50 characters.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Output only. The "resource name" of the autoscaling policy, as described in
# https://cloud.google.com/apis/design/resource_names.
# For projects.regions.autoscalingPolicies, the resource name of the policy has
# the following format: projects/`project_id`/regions/`region`/
# autoscalingPolicies/`policy_id`
# For projects.locations.autoscalingPolicies, the resource name of the policy
# has the following format: projects/`project_id`/locations/`location`/
# autoscalingPolicies/`policy_id`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Configuration for the size bounds of an instance group, including its
# proportional size to other groups.
# Corresponds to the JSON property `secondaryWorkerConfig`
# @return [Google::Apis::DataprocV1::InstanceGroupAutoscalingPolicyConfig]
attr_accessor :secondary_worker_config
# Configuration for the size bounds of an instance group, including its
# proportional size to other groups.
# Corresponds to the JSON property `workerConfig`
# @return [Google::Apis::DataprocV1::InstanceGroupAutoscalingPolicyConfig]
attr_accessor :worker_config
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@basic_algorithm = args[:basic_algorithm] if args.key?(:basic_algorithm)
@id = args[:id] if args.key?(:id)
@name = args[:name] if args.key?(:name)
@secondary_worker_config = args[:secondary_worker_config] if args.key?(:secondary_worker_config)
@worker_config = args[:worker_config] if args.key?(:worker_config)
end
end
# Basic algorithm for autoscaling.
class BasicAutoscalingAlgorithm
include Google::Apis::Core::Hashable
# Optional. Duration between scaling events. A scaling period starts after the
# update operation from the previous event has completed.Bounds: 2m, 1d. Default:
# 2m.
# Corresponds to the JSON property `cooldownPeriod`
# @return [String]
attr_accessor :cooldown_period
# Basic autoscaling configurations for YARN.
# Corresponds to the JSON property `yarnConfig`
# @return [Google::Apis::DataprocV1::BasicYarnAutoscalingConfig]
attr_accessor :yarn_config
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@cooldown_period = args[:cooldown_period] if args.key?(:cooldown_period)
@yarn_config = args[:yarn_config] if args.key?(:yarn_config)
end
end
# Basic autoscaling configurations for YARN.
class BasicYarnAutoscalingConfig
include Google::Apis::Core::Hashable
# Required. Timeout for YARN graceful decommissioning of Node Managers.
# Specifies the duration to wait for jobs to complete before forcefully removing
# workers (and potentially interrupting jobs). Only applicable to downscaling
# operations.Bounds: 0s, 1d.
# Corresponds to the JSON property `gracefulDecommissionTimeout`
# @return [String]
attr_accessor :graceful_decommission_timeout
# Required. Fraction of average pending memory in the last cooldown period for
# which to remove workers. A scale-down factor of 1 will result in scaling down
# so that there is no available memory remaining after the update (more
# aggressive scaling). A scale-down factor of 0 disables removing workers, which
# can be beneficial for autoscaling a single job.Bounds: 0.0, 1.0.
# Corresponds to the JSON property `scaleDownFactor`
# @return [Float]
attr_accessor :scale_down_factor
# Optional. Minimum scale-down threshold as a fraction of total cluster size
# before scaling occurs. For example, in a 20-worker cluster, a threshold of 0.1
# means the autoscaler must recommend at least a 2 worker scale-down for the
# cluster to scale. A threshold of 0 means the autoscaler will scale down on any
# recommended change.Bounds: 0.0, 1.0. Default: 0.0.
# Corresponds to the JSON property `scaleDownMinWorkerFraction`
# @return [Float]
attr_accessor :scale_down_min_worker_fraction
# Required. Fraction of average pending memory in the last cooldown period for
# which to add workers. A scale-up factor of 1.0 will result in scaling up so
# that there is no pending memory remaining after the update (more aggressive
# scaling). A scale-up factor closer to 0 will result in a smaller magnitude of
# scaling up (less aggressive scaling).Bounds: 0.0, 1.0.
# Corresponds to the JSON property `scaleUpFactor`
# @return [Float]
attr_accessor :scale_up_factor
# Optional. Minimum scale-up threshold as a fraction of total cluster size
# before scaling occurs. For example, in a 20-worker cluster, a threshold of 0.1
# means the autoscaler must recommend at least a 2-worker scale-up for the
# cluster to scale. A threshold of 0 means the autoscaler will scale up on any
# recommended change.Bounds: 0.0, 1.0. Default: 0.0.
# Corresponds to the JSON property `scaleUpMinWorkerFraction`
# @return [Float]
attr_accessor :scale_up_min_worker_fraction
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@graceful_decommission_timeout = args[:graceful_decommission_timeout] if args.key?(:graceful_decommission_timeout)
@scale_down_factor = args[:scale_down_factor] if args.key?(:scale_down_factor)
@scale_down_min_worker_fraction = args[:scale_down_min_worker_fraction] if args.key?(:scale_down_min_worker_fraction)
@scale_up_factor = args[:scale_up_factor] if args.key?(:scale_up_factor)
@scale_up_min_worker_fraction = args[:scale_up_min_worker_fraction] if args.key?(:scale_up_min_worker_fraction)
end
end
# Associates members with a role.
class Binding
include Google::Apis::Core::Hashable
@ -190,6 +358,11 @@ module Google
class ClusterConfig
include Google::Apis::Core::Hashable
# Autoscaling Policy config associated with the cluster.
# Corresponds to the JSON property `autoscalingConfig`
# @return [Google::Apis::DataprocV1::AutoscalingConfig]
attr_accessor :autoscaling_config
# Optional. A Google Cloud Storage bucket used to stage job dependencies, config
# files, and job driver console output. If you do not specify a staging bucket,
# Cloud Dataproc will determine a Cloud Storage location (US, ASIA, or EU) for
@ -265,6 +438,7 @@ module Google
# Update properties of this object
def update!(**args)
@autoscaling_config = args[:autoscaling_config] if args.key?(:autoscaling_config)
@config_bucket = args[:config_bucket] if args.key?(:config_bucket)
@encryption_config = args[:encryption_config] if args.key?(:encryption_config)
@gce_cluster_config = args[:gce_cluster_config] if args.key?(:gce_cluster_config)
@ -783,9 +957,10 @@ module Google
class GetPolicyOptions
include Google::Apis::Core::Hashable
# Optional. The policy format version to be returned. Acceptable values are 0, 1,
# and 3. If the value is 0, or the field is omitted, policy format version 1
# will be returned.
# Optional. The policy format version to be returned.Valid values are 0, 1, and
# 3. Requests specifying an invalid value will be rejected.Requests for policies
# with any conditional bindings must specify version 3. Policies without any
# conditional bindings may specify any valid value or leave the field unset.
# Corresponds to the JSON property `requestedPolicyVersion`
# @return [Fixnum]
attr_accessor :requested_policy_version
@ -936,6 +1111,57 @@ module Google
end
end
# Configuration for the size bounds of an instance group, including its
# proportional size to other groups.
class InstanceGroupAutoscalingPolicyConfig
include Google::Apis::Core::Hashable
# Optional. Maximum number of instances for this group. Required for primary
# workers. Note that by default, clusters will not use secondary workers.
# Required for secondary workers if the minimum secondary instances is set.
# Primary workers - Bounds: [min_instances, ). Required. Secondary workers -
# Bounds: [min_instances, ). Default: 0.
# Corresponds to the JSON property `maxInstances`
# @return [Fixnum]
attr_accessor :max_instances
# Optional. Minimum number of instances for this group.Primary workers - Bounds:
# 2, max_instances. Default: 2. Secondary workers - Bounds: 0, max_instances.
# Default: 0.
# Corresponds to the JSON property `minInstances`
# @return [Fixnum]
attr_accessor :min_instances
# Optional. Weight for the instance group, which is used to determine the
# fraction of total workers in the cluster from this instance group. For example,
# if primary workers have weight 2, and secondary workers have weight 1, the
# cluster will have approximately 2 primary workers for each secondary worker.
# The cluster may not reach the specified balance if constrained by min/max
# bounds or other autoscaling settings. For example, if max_instances for
# secondary workers is 0, then only primary workers will be added. The cluster
# can also be out of balance when created.If weight is not set on any instance
# group, the cluster will default to equal weight for all groups: the cluster
# will attempt to maintain an equal number of workers in each group within the
# configured size bounds for each group. If weight is set for one group only,
# the cluster will default to zero weight on the unset group. For example if
# weight is set only on primary workers, the cluster will use primary workers
# only and no secondary workers.
# Corresponds to the JSON property `weight`
# @return [Fixnum]
attr_accessor :weight
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@max_instances = args[:max_instances] if args.key?(:max_instances)
@min_instances = args[:min_instances] if args.key?(:min_instances)
@weight = args[:weight] if args.key?(:weight)
end
end
# Optional. The config settings for Compute Engine resources in an instance
# group, such as a master or worker group.
class InstanceGroupConfig
@ -1458,6 +1684,32 @@ module Google
end
end
# A response to a request to list autoscaling policies in a project.
class ListAutoscalingPoliciesResponse
include Google::Apis::Core::Hashable
# Output only. This token is included in the response if there are more results
# to fetch.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# Output only. Autoscaling policies list.
# Corresponds to the JSON property `policies`
# @return [Array<Google::Apis::DataprocV1::AutoscalingPolicy>]
attr_accessor :policies
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@policies = args[:policies] if args.key?(:policies)
end
end
# The list of all clusters in a project.
class ListClustersResponse
include Google::Apis::Core::Hashable
@ -1977,7 +2229,10 @@ module Google
# @return [String]
attr_accessor :etag
# Deprecated.
# Specifies the format of the policy.Valid values are 0, 1, and 3. Requests
# specifying an invalid value will be rejected.Policies with any conditional
# bindings must specify version 3. Policies without any conditional bindings may
# specify any valid value or leave the field unset.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version

View File

@ -28,6 +28,30 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class AutoscalingConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class AutoscalingPolicy
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BasicAutoscalingAlgorithm
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class BasicYarnAutoscalingConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class Binding
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -154,6 +178,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class InstanceGroupAutoscalingPolicyConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class InstanceGroupConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -208,6 +238,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ListAutoscalingPoliciesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ListClustersResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
@ -414,6 +450,47 @@ module Google
end
end
class AutoscalingConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :policy_uri, as: 'policyUri'
end
end
class AutoscalingPolicy
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :basic_algorithm, as: 'basicAlgorithm', class: Google::Apis::DataprocV1::BasicAutoscalingAlgorithm, decorator: Google::Apis::DataprocV1::BasicAutoscalingAlgorithm::Representation
property :id, as: 'id'
property :name, as: 'name'
property :secondary_worker_config, as: 'secondaryWorkerConfig', class: Google::Apis::DataprocV1::InstanceGroupAutoscalingPolicyConfig, decorator: Google::Apis::DataprocV1::InstanceGroupAutoscalingPolicyConfig::Representation
property :worker_config, as: 'workerConfig', class: Google::Apis::DataprocV1::InstanceGroupAutoscalingPolicyConfig, decorator: Google::Apis::DataprocV1::InstanceGroupAutoscalingPolicyConfig::Representation
end
end
class BasicAutoscalingAlgorithm
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :cooldown_period, as: 'cooldownPeriod'
property :yarn_config, as: 'yarnConfig', class: Google::Apis::DataprocV1::BasicYarnAutoscalingConfig, decorator: Google::Apis::DataprocV1::BasicYarnAutoscalingConfig::Representation
end
end
class BasicYarnAutoscalingConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :graceful_decommission_timeout, as: 'gracefulDecommissionTimeout'
property :scale_down_factor, as: 'scaleDownFactor'
property :scale_down_min_worker_fraction, as: 'scaleDownMinWorkerFraction'
property :scale_up_factor, as: 'scaleUpFactor'
property :scale_up_min_worker_fraction, as: 'scaleUpMinWorkerFraction'
end
end
class Binding
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -451,6 +528,8 @@ module Google
class ClusterConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :autoscaling_config, as: 'autoscalingConfig', class: Google::Apis::DataprocV1::AutoscalingConfig, decorator: Google::Apis::DataprocV1::AutoscalingConfig::Representation
property :config_bucket, as: 'configBucket'
property :encryption_config, as: 'encryptionConfig', class: Google::Apis::DataprocV1::EncryptionConfig, decorator: Google::Apis::DataprocV1::EncryptionConfig::Representation
@ -636,6 +715,15 @@ module Google
end
end
class InstanceGroupAutoscalingPolicyConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :max_instances, as: 'maxInstances'
property :min_instances, as: 'minInstances'
property :weight, as: 'weight'
end
end
class InstanceGroupConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@ -760,6 +848,15 @@ module Google
end
end
class ListAutoscalingPoliciesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :policies, as: 'policies', class: Google::Apis::DataprocV1::AutoscalingPolicy, decorator: Google::Apis::DataprocV1::AutoscalingPolicy::Representation
end
end
class ListClustersResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -47,6 +47,311 @@ module Google
@batch_path = 'batch'
end
# Creates new autoscaling policy.
# @param [String] parent
# Required. The "resource name" of the region or location, as described in https:
# //cloud.google.com/apis/design/resource_names.
# For projects.regions.autoscalingPolicies.create, the resource name of the
# region has the following format: projects/`project_id`/regions/`region`
# For projects.locations.autoscalingPolicies.create, the resource name of the
# location has the following format: projects/`project_id`/locations/`location`
# @param [Google::Apis::DataprocV1::AutoscalingPolicy] autoscaling_policy_object
# @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::DataprocV1::AutoscalingPolicy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::AutoscalingPolicy]
#
# @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 create_project_location_autoscaling_policy(parent, autoscaling_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/autoscalingPolicies', options)
command.request_representation = Google::Apis::DataprocV1::AutoscalingPolicy::Representation
command.request_object = autoscaling_policy_object
command.response_representation = Google::Apis::DataprocV1::AutoscalingPolicy::Representation
command.response_class = Google::Apis::DataprocV1::AutoscalingPolicy
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes an autoscaling policy. It is an error to delete an autoscaling policy
# that is in use by one or more clusters.
# @param [String] name
# Required. The "resource name" of the autoscaling policy, as described in https:
# //cloud.google.com/apis/design/resource_names.
# For projects.regions.autoscalingPolicies.delete, the resource name of the
# policy has the following format: projects/`project_id`/regions/`region`/
# autoscalingPolicies/`policy_id`
# For projects.locations.autoscalingPolicies.delete, the resource name of the
# policy has the following format: projects/`project_id`/locations/`location`/
# autoscalingPolicies/`policy_id`
# @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::DataprocV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::Empty]
#
# @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 delete_project_location_autoscaling_policy(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
command.response_class = Google::Apis::DataprocV1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Retrieves autoscaling policy.
# @param [String] name
# Required. The "resource name" of the autoscaling policy, as described in https:
# //cloud.google.com/apis/design/resource_names.
# For projects.regions.autoscalingPolicies.get, the resource name of the policy
# has the following format: projects/`project_id`/regions/`region`/
# autoscalingPolicies/`policy_id`
# For projects.locations.autoscalingPolicies.get, the resource name of the
# policy has the following format: projects/`project_id`/locations/`location`/
# autoscalingPolicies/`policy_id`
# @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::DataprocV1::AutoscalingPolicy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::AutoscalingPolicy]
#
# @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_project_location_autoscaling_policy(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::DataprocV1::AutoscalingPolicy::Representation
command.response_class = Google::Apis::DataprocV1::AutoscalingPolicy
command.params['name'] = name unless name.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 access control policy for a resource. Returns an empty policy if the
# resource exists and does not have a policy set.
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested. See the
# operation documentation for the appropriate value for this field.
# @param [Google::Apis::DataprocV1::GetIamPolicyRequest] get_iam_policy_request_object
# @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::DataprocV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::Policy]
#
# @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_project_location_autoscaling_policy_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
command.request_representation = Google::Apis::DataprocV1::GetIamPolicyRequest::Representation
command.request_object = get_iam_policy_request_object
command.response_representation = Google::Apis::DataprocV1::Policy::Representation
command.response_class = Google::Apis::DataprocV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists autoscaling policies in the project.
# @param [String] parent
# Required. The "resource name" of the region or location, as described in https:
# //cloud.google.com/apis/design/resource_names.
# For projects.regions.autoscalingPolicies.list, the resource name of the
# region has the following format: projects/`project_id`/regions/`region`
# For projects.locations.autoscalingPolicies.list, the resource name of the
# location has the following format: projects/`project_id`/locations/`location`
# @param [Fixnum] page_size
# Optional. The maximum number of results to return in each response. Must be
# less than or equal to 1000. Defaults to 100.
# @param [String] page_token
# Optional. The page token, returned by a previous call, to request the next
# page of results.
# @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::DataprocV1::ListAutoscalingPoliciesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::ListAutoscalingPoliciesResponse]
#
# @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 list_project_location_autoscaling_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/autoscalingPolicies', options)
command.response_representation = Google::Apis::DataprocV1::ListAutoscalingPoliciesResponse::Representation
command.response_class = Google::Apis::DataprocV1::ListAutoscalingPoliciesResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified. See the
# operation documentation for the appropriate value for this field.
# @param [Google::Apis::DataprocV1::SetIamPolicyRequest] set_iam_policy_request_object
# @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::DataprocV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::Policy]
#
# @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 set_project_location_autoscaling_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::DataprocV1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::DataprocV1::Policy::Representation
command.response_class = Google::Apis::DataprocV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource. If the
# resource does not exist, this will return an empty set of permissions, not a
# NOT_FOUND error.Note: This operation is designed to be used for building
# permission-aware UIs and command-line tools, not for authorization checking.
# This operation may "fail open" without warning.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. See the
# operation documentation for the appropriate value for this field.
# @param [Google::Apis::DataprocV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @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::DataprocV1::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::TestIamPermissionsResponse]
#
# @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 test_project_location_autoscaling_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::DataprocV1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::DataprocV1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::DataprocV1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates (replaces) autoscaling policy.Disabled check for update_mask, because
# all updates will be full replacements.
# @param [String] name
# Output only. The "resource name" of the autoscaling policy, as described in
# https://cloud.google.com/apis/design/resource_names.
# For projects.regions.autoscalingPolicies, the resource name of the policy has
# the following format: projects/`project_id`/regions/`region`/
# autoscalingPolicies/`policy_id`
# For projects.locations.autoscalingPolicies, the resource name of the policy
# has the following format: projects/`project_id`/locations/`location`/
# autoscalingPolicies/`policy_id`
# @param [Google::Apis::DataprocV1::AutoscalingPolicy] autoscaling_policy_object
# @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::DataprocV1::AutoscalingPolicy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::AutoscalingPolicy]
#
# @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 update_project_location_autoscaling_policy(name, autoscaling_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1/{+name}', options)
command.request_representation = Google::Apis::DataprocV1::AutoscalingPolicy::Representation
command.request_object = autoscaling_policy_object
command.response_representation = Google::Apis::DataprocV1::AutoscalingPolicy::Representation
command.response_class = Google::Apis::DataprocV1::AutoscalingPolicy
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates new workflow template.
# @param [String] parent
# Required. The resource name of the region or location, as described in https://
@ -460,6 +765,311 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates new autoscaling policy.
# @param [String] parent
# Required. The "resource name" of the region or location, as described in https:
# //cloud.google.com/apis/design/resource_names.
# For projects.regions.autoscalingPolicies.create, the resource name of the
# region has the following format: projects/`project_id`/regions/`region`
# For projects.locations.autoscalingPolicies.create, the resource name of the
# location has the following format: projects/`project_id`/locations/`location`
# @param [Google::Apis::DataprocV1::AutoscalingPolicy] autoscaling_policy_object
# @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::DataprocV1::AutoscalingPolicy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::AutoscalingPolicy]
#
# @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 create_project_region_autoscaling_policy(parent, autoscaling_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+parent}/autoscalingPolicies', options)
command.request_representation = Google::Apis::DataprocV1::AutoscalingPolicy::Representation
command.request_object = autoscaling_policy_object
command.response_representation = Google::Apis::DataprocV1::AutoscalingPolicy::Representation
command.response_class = Google::Apis::DataprocV1::AutoscalingPolicy
command.params['parent'] = parent unless parent.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes an autoscaling policy. It is an error to delete an autoscaling policy
# that is in use by one or more clusters.
# @param [String] name
# Required. The "resource name" of the autoscaling policy, as described in https:
# //cloud.google.com/apis/design/resource_names.
# For projects.regions.autoscalingPolicies.delete, the resource name of the
# policy has the following format: projects/`project_id`/regions/`region`/
# autoscalingPolicies/`policy_id`
# For projects.locations.autoscalingPolicies.delete, the resource name of the
# policy has the following format: projects/`project_id`/locations/`location`/
# autoscalingPolicies/`policy_id`
# @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::DataprocV1::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::Empty]
#
# @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 delete_project_region_autoscaling_policy(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v1/{+name}', options)
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
command.response_class = Google::Apis::DataprocV1::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Retrieves autoscaling policy.
# @param [String] name
# Required. The "resource name" of the autoscaling policy, as described in https:
# //cloud.google.com/apis/design/resource_names.
# For projects.regions.autoscalingPolicies.get, the resource name of the policy
# has the following format: projects/`project_id`/regions/`region`/
# autoscalingPolicies/`policy_id`
# For projects.locations.autoscalingPolicies.get, the resource name of the
# policy has the following format: projects/`project_id`/locations/`location`/
# autoscalingPolicies/`policy_id`
# @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::DataprocV1::AutoscalingPolicy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::AutoscalingPolicy]
#
# @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_project_region_autoscaling_policy(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+name}', options)
command.response_representation = Google::Apis::DataprocV1::AutoscalingPolicy::Representation
command.response_class = Google::Apis::DataprocV1::AutoscalingPolicy
command.params['name'] = name unless name.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 access control policy for a resource. Returns an empty policy if the
# resource exists and does not have a policy set.
# @param [String] resource
# REQUIRED: The resource for which the policy is being requested. See the
# operation documentation for the appropriate value for this field.
# @param [Google::Apis::DataprocV1::GetIamPolicyRequest] get_iam_policy_request_object
# @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::DataprocV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::Policy]
#
# @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_project_region_autoscaling_policy_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
command.request_representation = Google::Apis::DataprocV1::GetIamPolicyRequest::Representation
command.request_object = get_iam_policy_request_object
command.response_representation = Google::Apis::DataprocV1::Policy::Representation
command.response_class = Google::Apis::DataprocV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists autoscaling policies in the project.
# @param [String] parent
# Required. The "resource name" of the region or location, as described in https:
# //cloud.google.com/apis/design/resource_names.
# For projects.regions.autoscalingPolicies.list, the resource name of the
# region has the following format: projects/`project_id`/regions/`region`
# For projects.locations.autoscalingPolicies.list, the resource name of the
# location has the following format: projects/`project_id`/locations/`location`
# @param [Fixnum] page_size
# Optional. The maximum number of results to return in each response. Must be
# less than or equal to 1000. Defaults to 100.
# @param [String] page_token
# Optional. The page token, returned by a previous call, to request the next
# page of results.
# @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::DataprocV1::ListAutoscalingPoliciesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::ListAutoscalingPoliciesResponse]
#
# @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 list_project_region_autoscaling_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1/{+parent}/autoscalingPolicies', options)
command.response_representation = Google::Apis::DataprocV1::ListAutoscalingPoliciesResponse::Representation
command.response_class = Google::Apis::DataprocV1::ListAutoscalingPoliciesResponse
command.params['parent'] = parent unless parent.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] resource
# REQUIRED: The resource for which the policy is being specified. See the
# operation documentation for the appropriate value for this field.
# @param [Google::Apis::DataprocV1::SetIamPolicyRequest] set_iam_policy_request_object
# @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::DataprocV1::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::Policy]
#
# @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 set_project_region_autoscaling_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::DataprocV1::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::DataprocV1::Policy::Representation
command.response_class = Google::Apis::DataprocV1::Policy
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns permissions that a caller has on the specified resource. If the
# resource does not exist, this will return an empty set of permissions, not a
# NOT_FOUND error.Note: This operation is designed to be used for building
# permission-aware UIs and command-line tools, not for authorization checking.
# This operation may "fail open" without warning.
# @param [String] resource
# REQUIRED: The resource for which the policy detail is being requested. See the
# operation documentation for the appropriate value for this field.
# @param [Google::Apis::DataprocV1::TestIamPermissionsRequest] test_iam_permissions_request_object
# @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::DataprocV1::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::TestIamPermissionsResponse]
#
# @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 test_project_region_autoscaling_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::DataprocV1::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::DataprocV1::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::DataprocV1::TestIamPermissionsResponse
command.params['resource'] = resource unless resource.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Updates (replaces) autoscaling policy.Disabled check for update_mask, because
# all updates will be full replacements.
# @param [String] name
# Output only. The "resource name" of the autoscaling policy, as described in
# https://cloud.google.com/apis/design/resource_names.
# For projects.regions.autoscalingPolicies, the resource name of the policy has
# the following format: projects/`project_id`/regions/`region`/
# autoscalingPolicies/`policy_id`
# For projects.locations.autoscalingPolicies, the resource name of the policy
# has the following format: projects/`project_id`/locations/`location`/
# autoscalingPolicies/`policy_id`
# @param [Google::Apis::DataprocV1::AutoscalingPolicy] autoscaling_policy_object
# @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::DataprocV1::AutoscalingPolicy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DataprocV1::AutoscalingPolicy]
#
# @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 update_project_region_autoscaling_policy(name, autoscaling_policy_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:put, 'v1/{+name}', options)
command.request_representation = Google::Apis::DataprocV1::AutoscalingPolicy::Representation
command.request_object = autoscaling_policy_object
command.response_representation = Google::Apis::DataprocV1::AutoscalingPolicy::Representation
command.response_class = Google::Apis::DataprocV1::AutoscalingPolicy
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a cluster in a project. The returned Operation.metadata will be
# ClusterOperationMetadata.
# @param [String] project_id

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataproc/
module DataprocV1beta2
VERSION = 'V1beta2'
REVISION = '20190823'
REVISION = '20190905'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -996,9 +996,10 @@ module Google
class GetPolicyOptions
include Google::Apis::Core::Hashable
# Optional. The policy format version to be returned. Acceptable values are 0, 1,
# and 3. If the value is 0, or the field is omitted, policy format version 1
# will be returned.
# Optional. The policy format version to be returned.Valid values are 0, 1, and
# 3. Requests specifying an invalid value will be rejected.Requests for policies
# with any conditional bindings must specify version 3. Policies without any
# conditional bindings may specify any valid value or leave the field unset.
# Corresponds to the JSON property `requestedPolicyVersion`
# @return [Fixnum]
attr_accessor :requested_policy_version
@ -2300,7 +2301,10 @@ module Google
# @return [String]
attr_accessor :etag
# Deprecated.
# Specifies the format of the policy.Valid values are 0, 1, and 3. Requests
# specifying an invalid value will be rejected.Policies with any conditional
# bindings must specify version 3. Policies without any conditional bindings may
# specify any valid value or leave the field unset.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version

View File

@ -166,9 +166,10 @@ module Google
# REQUIRED: The resource for which the policy is being requested. See the
# operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned. Acceptable values are 0, 1,
# and 3. If the value is 0, or the field is omitted, policy format version 1
# will be returned.
# Optional. The policy format version to be returned.Valid values are 0, 1, and
# 3. Requests specifying an invalid value will be rejected.Requests for policies
# with any conditional bindings must specify version 3. Policies without any
# conditional bindings may specify any valid value or leave the field unset.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -482,9 +483,10 @@ module Google
# REQUIRED: The resource for which the policy is being requested. See the
# operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned. Acceptable values are 0, 1,
# and 3. If the value is 0, or the field is omitted, policy format version 1
# will be returned.
# Optional. The policy format version to be returned.Valid values are 0, 1, and
# 3. Requests specifying an invalid value will be rejected.Requests for policies
# with any conditional bindings must specify version 3. Policies without any
# conditional bindings may specify any valid value or leave the field unset.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -891,9 +893,10 @@ module Google
# REQUIRED: The resource for which the policy is being requested. See the
# operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned. Acceptable values are 0, 1,
# and 3. If the value is 0, or the field is omitted, policy format version 1
# will be returned.
# Optional. The policy format version to be returned.Valid values are 0, 1, and
# 3. Requests specifying an invalid value will be rejected.Requests for policies
# with any conditional bindings must specify version 3. Policies without any
# conditional bindings may specify any valid value or leave the field unset.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1262,9 +1265,10 @@ module Google
# REQUIRED: The resource for which the policy is being requested. See the
# operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned. Acceptable values are 0, 1,
# and 3. If the value is 0, or the field is omitted, policy format version 1
# will be returned.
# Optional. The policy format version to be returned.Valid values are 0, 1, and
# 3. Requests specifying an invalid value will be rejected.Requests for policies
# with any conditional bindings must specify version 3. Policies without any
# conditional bindings may specify any valid value or leave the field unset.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -1651,9 +1655,10 @@ module Google
# REQUIRED: The resource for which the policy is being requested. See the
# operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned. Acceptable values are 0, 1,
# and 3. If the value is 0, or the field is omitted, policy format version 1
# will be returned.
# Optional. The policy format version to be returned.Valid values are 0, 1, and
# 3. Requests specifying an invalid value will be rejected.Requests for policies
# with any conditional bindings must specify version 3. Policies without any
# conditional bindings may specify any valid value or leave the field unset.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -2001,9 +2006,10 @@ module Google
# REQUIRED: The resource for which the policy is being requested. See the
# operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned. Acceptable values are 0, 1,
# and 3. If the value is 0, or the field is omitted, policy format version 1
# will be returned.
# Optional. The policy format version to be returned.Valid values are 0, 1, and
# 3. Requests specifying an invalid value will be rejected.Requests for policies
# with any conditional bindings must specify version 3. Policies without any
# conditional bindings may specify any valid value or leave the field unset.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -2279,9 +2285,10 @@ module Google
# REQUIRED: The resource for which the policy is being requested. See the
# operation documentation for the appropriate value for this field.
# @param [Fixnum] options_requested_policy_version
# Optional. The policy format version to be returned. Acceptable values are 0, 1,
# and 3. If the value is 0, or the field is omitted, policy format version 1
# will be returned.
# Optional. The policy format version to be returned.Valid values are 0, 1, and
# 3. Requests specifying an invalid value will be rejected.Requests for policies
# with any conditional bindings must specify version 3. Policies without any
# conditional bindings may specify any valid value or leave the field unset.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/translate/docs/quickstarts
module TranslateV3beta1
VERSION = 'V3beta1'
REVISION = '20190831'
REVISION = '20190906'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/
module VisionV1
VERSION = 'V1'
REVISION = '20190907'
REVISION = '20190913'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -10057,12 +10057,12 @@ module Google
attr_accessor :filter
# The list of product categories to search in. Currently, we only consider
# the first category, and either "homegoods-v2", "apparel-v2", or "toys-v2"
# should be specified. The legacy categories "homegoods", "apparel", and
# "toys" are still supported but will be deprecated. For new products, please
# use "homegoods-v2", "apparel-v2", or "toys-v2" for better product search
# accuracy. It is recommended to migrate existing products to these
# categories as well.
# the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
# "packagedgoods-v1", or "general-v1" should be specified. The legacy
# categories "homegoods", "apparel", and "toys" are still supported but will
# be deprecated. For new products, please use "homegoods-v2", "apparel-v2",
# or "toys-v2" for better product search accuracy. It is recommended to
# migrate existing products to these categories as well.
# Corresponds to the JSON property `productCategories`
# @return [Array<String>]
attr_accessor :product_categories

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/
module VisionV1p1beta1
VERSION = 'V1p1beta1'
REVISION = '20190907'
REVISION = '20190913'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2721,12 +2721,12 @@ module Google
attr_accessor :filter
# The list of product categories to search in. Currently, we only consider
# the first category, and either "homegoods-v2", "apparel-v2", or "toys-v2"
# should be specified. The legacy categories "homegoods", "apparel", and
# "toys" are still supported but will be deprecated. For new products, please
# use "homegoods-v2", "apparel-v2", or "toys-v2" for better product search
# accuracy. It is recommended to migrate existing products to these
# categories as well.
# the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
# "packagedgoods-v1", or "general-v1" should be specified. The legacy
# categories "homegoods", "apparel", and "toys" are still supported but will
# be deprecated. For new products, please use "homegoods-v2", "apparel-v2",
# or "toys-v2" for better product search accuracy. It is recommended to
# migrate existing products to these categories as well.
# Corresponds to the JSON property `productCategories`
# @return [Array<String>]
attr_accessor :product_categories

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/vision/
module VisionV1p2beta1
VERSION = 'V1p2beta1'
REVISION = '20190907'
REVISION = '20190913'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -4525,12 +4525,12 @@ module Google
attr_accessor :filter
# The list of product categories to search in. Currently, we only consider
# the first category, and either "homegoods-v2", "apparel-v2", or "toys-v2"
# should be specified. The legacy categories "homegoods", "apparel", and
# "toys" are still supported but will be deprecated. For new products, please
# use "homegoods-v2", "apparel-v2", or "toys-v2" for better product search
# accuracy. It is recommended to migrate existing products to these
# categories as well.
# the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
# "packagedgoods-v1", or "general-v1" should be specified. The legacy
# categories "homegoods", "apparel", and "toys" are still supported but will
# be deprecated. For new products, please use "homegoods-v2", "apparel-v2",
# or "toys-v2" for better product search accuracy. It is recommended to
# migrate existing products to these categories as well.
# Corresponds to the JSON property `productCategories`
# @return [Array<String>]
attr_accessor :product_categories

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/youtube/partner/
module YoutubePartnerV1
VERSION = 'V1'
REVISION = '20190903'
REVISION = '20190915'
# View and manage your assets and associated content on YouTube
AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'