Autogenerated update (2019-07-05)

Update:
- bigtableadmin_v2
- dataflow_v1b3
- firebase_v1beta1
This commit is contained in:
Google APIs 2019-07-05 00:37:33 +00:00
parent 23dc0d24b6
commit b1cb073693
9 changed files with 62 additions and 195 deletions

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigtable/
module BigtableadminV2
VERSION = 'V2'
REVISION = '20190506'
REVISION = '20190628'
# Administer your Cloud Bigtable tables and clusters
AUTH_BIGTABLE_ADMIN = 'https://www.googleapis.com/auth/bigtable.admin'

View File

@ -44,10 +44,11 @@ module Google
# @return [String]
attr_accessor :etag
# Read/write requests may be routed to any cluster in the instance, and will
# fail over to another cluster in the event of transient errors or delays.
# Choosing this option sacrifices read-your-writes consistency to improve
# availability.
# Read/write requests are routed to the nearest cluster in the instance, and
# will fail over to the nearest cluster that is available in the event of
# transient errors or delays. Clusters in a region are considered
# equidistant. Choosing this option sacrifices read-your-writes consistency
# to improve availability.
# Corresponds to the JSON property `multiClusterRoutingUseAny`
# @return [Google::Apis::BigtableadminV2::MultiClusterRoutingUseAny]
attr_accessor :multi_cluster_routing_use_any
@ -60,7 +61,7 @@ module Google
attr_accessor :name
# Unconditionally routes all read/write requests to a specific cluster.
# This option preserves read-your-writes consistency, but does not improve
# This option preserves read-your-writes consistency but does not improve
# availability.
# Corresponds to the JSON property `singleClusterRouting`
# @return [Google::Apis::BigtableadminV2::SingleClusterRouting]
@ -569,6 +570,7 @@ module Google
# The name by which the new table should be referred to within the parent
# instance, e.g., `foobar` rather than `<parent>/tables/foobar`.
# Maximum 50 characters.
# Corresponds to the JSON property `tableId`
# @return [String]
attr_accessor :table_id
@ -1139,10 +1141,11 @@ module Google
end
end
# Read/write requests may be routed to any cluster in the instance, and will
# fail over to another cluster in the event of transient errors or delays.
# Choosing this option sacrifices read-your-writes consistency to improve
# availability.
# Read/write requests are routed to the nearest cluster in the instance, and
# will fail over to the nearest cluster that is available in the event of
# transient errors or delays. Clusters in a region are considered
# equidistant. Choosing this option sacrifices read-your-writes consistency
# to improve availability.
class MultiClusterRoutingUseAny
include Google::Apis::Core::Hashable
@ -1170,43 +1173,10 @@ module Google
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
# Corresponds to the JSON property `error`
# @return [Google::Apis::BigtableadminV2::Status]
attr_accessor :error
@ -1221,7 +1191,7 @@ module Google
# The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the
# `name` should have the format of `operations/some/unique/name`.
# `name` should be a resource name ending with `operations/`unique_id``.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
@ -1430,7 +1400,7 @@ module Google
end
# Unconditionally routes all read/write requests to a specific cluster.
# This option preserves read-your-writes consistency, but does not improve
# This option preserves read-your-writes consistency but does not improve
# availability.
class SingleClusterRouting
include Google::Apis::Core::Hashable
@ -1481,43 +1451,10 @@ module Google
# The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
# - Simple to use and understand for most users
# - Flexible enough to meet unexpected needs
# # Overview
# The `Status` message contains three pieces of data: error code, error
# message, and error details. The error code should be an enum value of
# google.rpc.Code, but it may accept additional error codes if needed. The
# error message should be a developer-facing English message that helps
# developers *understand* and *resolve* the error. If a localized user-facing
# error message is needed, put the localized message in the error details or
# localize it in the client. The optional error details may contain arbitrary
# information about the error. There is a predefined set of error detail types
# in the package `google.rpc` that can be used for common error conditions.
# # Language mapping
# The `Status` message is the logical representation of the error model, but it
# is not necessarily the actual wire format. When the `Status` message is
# exposed in different client libraries and different wire protocols, it can be
# mapped differently. For example, it will likely be mapped to some exceptions
# in Java, but more likely mapped to some error codes in C.
# # Other uses
# The error model and the `Status` message can be used in a variety of
# environments, either with or without APIs, to provide a
# consistent developer experience across different environments.
# Example uses of this error model include:
# - Partial errors. If a service needs to return partial errors to the client,
# it may embed the `Status` in the normal response to indicate the partial
# errors.
# - Workflow errors. A typical workflow has multiple steps. Each step may
# have a `Status` message for error reporting.
# - Batch operations. If a client uses batch request and batch response, the
# `Status` message should be used directly inside batch response, one for
# each error sub-response.
# - Asynchronous operations. If an API call embeds asynchronous operation
# results in its response, the status of those operations should be
# represented directly using the `Status` message.
# - Logging. If some API errors are stored in logs, the message `Status` could
# be used directly after any stripping needed for security/privacy reasons.
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
# three pieces of data: error code, error message, and error details.
# You can find out more about this error model and how to work with it in the
# [API Design Guide](https://cloud.google.com/apis/design/errors).
class Status
include Google::Apis::Core::Hashable

View File

@ -626,7 +626,12 @@ module Google
# e.g., `projects/myproject/instances/-`.
# @param [Fixnum] page_size
# Maximum number of results per page.
# CURRENTLY UNIMPLEMENTED AND IGNORED.
# A page_size of zero lets the server choose the number of items to return.
# A page_size which is strictly positive will return at most that many items.
# A negative page_size will cause an error.
# Following the first request, subsequent paginated calls are not required
# to pass a page_size. If a page_size is set in subsequent calls, it must
# match the page_size given in the first request.
# @param [String] page_token
# The value of `next_page_token` returned by a previous call.
# @param [String] fields
@ -1089,41 +1094,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the access control policy for an instance resource. Returns an empty
# policy if an table exists but 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::BigtableadminV2::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::BigtableadminV2::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigtableadminV2::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_table_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+resource}:getIamPolicy', options)
command.request_representation = Google::Apis::BigtableadminV2::GetIamPolicyRequest::Representation
command.request_object = get_iam_policy_request_object
command.response_representation = Google::Apis::BigtableadminV2::Policy::Representation
command.response_class = Google::Apis::BigtableadminV2::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 all tables served from a specified instance.
# @param [String] parent
# The unique name of the instance for which tables should be listed.
@ -1209,75 +1179,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Sets the access control policy on a table 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::BigtableadminV2::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::BigtableadminV2::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigtableadminV2::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_table_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+resource}:setIamPolicy', options)
command.request_representation = Google::Apis::BigtableadminV2::SetIamPolicyRequest::Representation
command.request_object = set_iam_policy_request_object
command.response_representation = Google::Apis::BigtableadminV2::Policy::Representation
command.response_class = Google::Apis::BigtableadminV2::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 the caller has on the specified table resource.
# @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::BigtableadminV2::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::BigtableadminV2::TestIamPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::BigtableadminV2::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_table_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v2/{+resource}:testIamPermissions', options)
command.request_representation = Google::Apis::BigtableadminV2::TestIamPermissionsRequest::Representation
command.request_object = test_iam_permissions_request_object
command.response_representation = Google::Apis::BigtableadminV2::TestIamPermissionsResponse::Representation
command.response_class = Google::Apis::BigtableadminV2::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
# Gets information about a location.
# @param [String] name
# Resource name for the location.

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/dataflow
module DataflowV1b3
VERSION = 'V1b3'
REVISION = '20190607'
REVISION = '20190628'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2209,6 +2209,19 @@ module Google
# @return [Hash<String,String>]
attr_accessor :parameters
# Only applicable when updating a pipeline. Map of transform name prefixes of
# the job to be replaced to the corresponding name prefixes of the new job.
# Corresponds to the JSON property `transformNameMapping`
# @return [Hash<String,String>]
attr_accessor :transform_name_mapping
# If set, replace the existing pipeline with the name specified by jobName
# with this pipeline, preserving state.
# Corresponds to the JSON property `update`
# @return [Boolean]
attr_accessor :update
alias_method :update?, :update
def initialize(**args)
update!(**args)
end
@ -2218,6 +2231,8 @@ module Google
@environment = args[:environment] if args.key?(:environment)
@job_name = args[:job_name] if args.key?(:job_name)
@parameters = args[:parameters] if args.key?(:parameters)
@transform_name_mapping = args[:transform_name_mapping] if args.key?(:transform_name_mapping)
@update = args[:update] if args.key?(:update)
end
end
@ -3330,6 +3345,13 @@ module Google
attr_accessor :bypass_temp_dir_validation
alias_method :bypass_temp_dir_validation?, :bypass_temp_dir_validation
# Optional. Name for the Cloud KMS key for the job.
# Key format is:
# projects/<project>/locations/<location>/keyRings/<keyring>/cryptoKeys/<key>
# Corresponds to the JSON property `kmsKeyName`
# @return [String]
attr_accessor :kms_key_name
# The machine type to use for the job. Defaults to the value from the
# template if not specified.
# Corresponds to the JSON property `machineType`
@ -3386,6 +3408,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)
@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)
@network = args[:network] if args.key?(:network)

View File

@ -1460,6 +1460,8 @@ module Google
property :job_name, as: 'jobName'
hash :parameters, as: 'parameters'
hash :transform_name_mapping, as: 'transformNameMapping'
property :update, as: 'update'
end
end
@ -1770,6 +1772,7 @@ module Google
collection :additional_experiments, as: 'additionalExperiments'
hash :additional_user_labels, as: 'additionalUserLabels'
property :bypass_temp_dir_validation, as: 'bypassTempDirValidation'
property :kms_key_name, as: 'kmsKeyName'
property :machine_type, as: 'machineType'
property :max_workers, as: 'maxWorkers'
property :network, as: 'network'

View File

@ -26,7 +26,7 @@ module Google
# @see https://firebase.google.com
module FirebaseV1beta1
VERSION = 'V1beta1'
REVISION = '20190620'
REVISION = '20190703'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -870,7 +870,7 @@ module Google
# The fully qualified resource name of the `sha-key`, in the format:
# <br><code>projects/<var>projectId</var>/androidApps/<var>appId</var>/sha/<var>
# shaHash</var></code>
# shaId</var></code>
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name

View File

@ -646,7 +646,10 @@ module Google
# @param [String] name
# The fully qualified resource name of the `sha-key`, in the format:
# <br><code>projects/<var>projectId</var>/androidApps/<var>appId</var>/sha/<var>
# shaHash</var></code>
# shaId</var></code>
# <br>You can obtain the full name from the response of
# [`ListShaCertificates`](../projects.androidApps.sha/list) or the original
# [`CreateShaCertificate`](../projects.androidApps.sha/create).
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user