From b1cb0736932d07f2a6241e7f47dd8176af006d73 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Fri, 5 Jul 2019 00:37:33 +0000 Subject: [PATCH] Autogenerated update (2019-07-05) Update: - bigtableadmin_v2 - dataflow_v1b3 - firebase_v1beta1 --- generated/google/apis/bigtableadmin_v2.rb | 2 +- .../google/apis/bigtableadmin_v2/classes.rb | 107 ++++------------- .../google/apis/bigtableadmin_v2/service.rb | 111 +----------------- generated/google/apis/dataflow_v1b3.rb | 2 +- .../google/apis/dataflow_v1b3/classes.rb | 23 ++++ .../apis/dataflow_v1b3/representations.rb | 3 + generated/google/apis/firebase_v1beta1.rb | 2 +- .../google/apis/firebase_v1beta1/classes.rb | 2 +- .../google/apis/firebase_v1beta1/service.rb | 5 +- 9 files changed, 62 insertions(+), 195 deletions(-) diff --git a/generated/google/apis/bigtableadmin_v2.rb b/generated/google/apis/bigtableadmin_v2.rb index fef27e0c4..1b6f40063 100644 --- a/generated/google/apis/bigtableadmin_v2.rb +++ b/generated/google/apis/bigtableadmin_v2.rb @@ -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' diff --git a/generated/google/apis/bigtableadmin_v2/classes.rb b/generated/google/apis/bigtableadmin_v2/classes.rb index c3663945a..0bf65c755 100644 --- a/generated/google/apis/bigtableadmin_v2/classes.rb +++ b/generated/google/apis/bigtableadmin_v2/classes.rb @@ -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 `/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 diff --git a/generated/google/apis/bigtableadmin_v2/service.rb b/generated/google/apis/bigtableadmin_v2/service.rb index 036d59ec0..3e0d4ab97 100644 --- a/generated/google/apis/bigtableadmin_v2/service.rb +++ b/generated/google/apis/bigtableadmin_v2/service.rb @@ -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. diff --git a/generated/google/apis/dataflow_v1b3.rb b/generated/google/apis/dataflow_v1b3.rb index 56d38abb7..af8e512b6 100644 --- a/generated/google/apis/dataflow_v1b3.rb +++ b/generated/google/apis/dataflow_v1b3.rb @@ -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' diff --git a/generated/google/apis/dataflow_v1b3/classes.rb b/generated/google/apis/dataflow_v1b3/classes.rb index 4c9cab248..7a953f062 100644 --- a/generated/google/apis/dataflow_v1b3/classes.rb +++ b/generated/google/apis/dataflow_v1b3/classes.rb @@ -2209,6 +2209,19 @@ module Google # @return [Hash] 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] + 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//locations//keyRings//cryptoKeys/ + # 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) diff --git a/generated/google/apis/dataflow_v1b3/representations.rb b/generated/google/apis/dataflow_v1b3/representations.rb index f83a99408..d83c767da 100644 --- a/generated/google/apis/dataflow_v1b3/representations.rb +++ b/generated/google/apis/dataflow_v1b3/representations.rb @@ -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' diff --git a/generated/google/apis/firebase_v1beta1.rb b/generated/google/apis/firebase_v1beta1.rb index 54b2e3d55..637038be0 100644 --- a/generated/google/apis/firebase_v1beta1.rb +++ b/generated/google/apis/firebase_v1beta1.rb @@ -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' diff --git a/generated/google/apis/firebase_v1beta1/classes.rb b/generated/google/apis/firebase_v1beta1/classes.rb index 15906653c..00678c944 100644 --- a/generated/google/apis/firebase_v1beta1/classes.rb +++ b/generated/google/apis/firebase_v1beta1/classes.rb @@ -870,7 +870,7 @@ module Google # The fully qualified resource name of the `sha-key`, in the format: #
projects/projectId/androidApps/appId/sha/ - # shaHash + # shaId # Corresponds to the JSON property `name` # @return [String] attr_accessor :name diff --git a/generated/google/apis/firebase_v1beta1/service.rb b/generated/google/apis/firebase_v1beta1/service.rb index d9acee543..584560538 100644 --- a/generated/google/apis/firebase_v1beta1/service.rb +++ b/generated/google/apis/firebase_v1beta1/service.rb @@ -646,7 +646,10 @@ module Google # @param [String] name # The fully qualified resource name of the `sha-key`, in the format: #
projects/projectId/androidApps/appId/sha/ - # shaHash + # shaId + #
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