From 9decc6ed53a61955a1cd21c7a95b26a6765c5ee7 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Fri, 8 Jan 2021 08:43:32 -0800 Subject: [PATCH] feat: Automated regeneration of datafusion v1beta1 client (#2254) --- api_names_out.yaml | 4 +++ .../CHANGELOG.md | 4 +++ .../google/apis/datafusion_v1beta1/classes.rb | 36 ++++++++++++++----- .../apis/datafusion_v1beta1/gem_version.rb | 4 +-- .../datafusion_v1beta1/representations.rb | 25 ++++++++++++- .../google/apis/datafusion_v1beta1/service.rb | 35 +++++++++++++++++- .../synth.metadata | 2 +- 7 files changed, 97 insertions(+), 13 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index b6adad70e..269e43efc 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -64406,6 +64406,8 @@ "/datafusion:v1beta1/Policy/rules": rules "/datafusion:v1beta1/Policy/rules/rule": rule "/datafusion:v1beta1/Policy/version": version +"/datafusion:v1beta1/RemoveIamPolicyRequest": remove_iam_policy_request +"/datafusion:v1beta1/RemoveIamPolicyResponse": remove_iam_policy_response "/datafusion:v1beta1/RestartInstanceRequest": restart_instance_request "/datafusion:v1beta1/Rule": rule "/datafusion:v1beta1/Rule/action": action @@ -64492,6 +64494,8 @@ "/datafusion:v1beta1/datafusion.projects.locations.versions.list/pageSize": page_size "/datafusion:v1beta1/datafusion.projects.locations.versions.list/pageToken": page_token "/datafusion:v1beta1/datafusion.projects.locations.versions.list/parent": parent +"/datafusion:v1beta1/datafusion.projects.removeIamPolicy": remove_project_iam_policy +"/datafusion:v1beta1/datafusion.projects.removeIamPolicy/resource": resource "/datafusion:v1beta1/fields": fields "/datafusion:v1beta1/key": key "/datafusion:v1beta1/quotaUser": quota_user diff --git a/generated/google-apis-datafusion_v1beta1/CHANGELOG.md b/generated/google-apis-datafusion_v1beta1/CHANGELOG.md index 7d2a6937c..f7649af36 100644 --- a/generated/google-apis-datafusion_v1beta1/CHANGELOG.md +++ b/generated/google-apis-datafusion_v1beta1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-datafusion_v1beta1 +### v0.2.0 (2021-01-08) + +* Regenerated from discovery document revision 20210107 + ### v0.1.0 (2021-01-07) * Regenerated using generator version 0.1.1 diff --git a/generated/google-apis-datafusion_v1beta1/lib/google/apis/datafusion_v1beta1/classes.rb b/generated/google-apis-datafusion_v1beta1/lib/google/apis/datafusion_v1beta1/classes.rb index bf3ee07fa..34d3d5c3e 100644 --- a/generated/google-apis-datafusion_v1beta1/lib/google/apis/datafusion_v1beta1/classes.rb +++ b/generated/google-apis-datafusion_v1beta1/lib/google/apis/datafusion_v1beta1/classes.rb @@ -116,12 +116,6 @@ module Google class Binding include Google::Apis::Core::Hashable - # A client-specified ID for this binding. Expected to be globally unique to - # support the internal bindings-by-ID API. - # Corresponds to the JSON property `bindingId` - # @return [String] - attr_accessor :binding_id - # Represents a textual expression in the Common Expression Language (CEL) syntax. # CEL is a C-like expression language. The syntax and semantics of CEL are # documented at https://github.com/google/cel-spec. Example (Comparison): title: @@ -183,7 +177,6 @@ module Google # Update properties of this object def update!(**args) - @binding_id = args[:binding_id] if args.key?(:binding_id) @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) @@ -418,7 +411,8 @@ module Google # @return [String] attr_accessor :version - # Name of the zone in which the Data Fusion instance will be created. + # Name of the zone in which the Data Fusion instance will be created. Only + # DEVELOPER instances use this field. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -857,6 +851,32 @@ module Google end end + # Request message for RemoveIamPolicy method. + class RemoveIamPolicyRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Response message for RemoveIamPolicy method. + class RemoveIamPolicyResponse + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # Request message for restarting a Data Fusion instance. class RestartInstanceRequest include Google::Apis::Core::Hashable diff --git a/generated/google-apis-datafusion_v1beta1/lib/google/apis/datafusion_v1beta1/gem_version.rb b/generated/google-apis-datafusion_v1beta1/lib/google/apis/datafusion_v1beta1/gem_version.rb index 6fec947fb..96d43cfda 100644 --- a/generated/google-apis-datafusion_v1beta1/lib/google/apis/datafusion_v1beta1/gem_version.rb +++ b/generated/google-apis-datafusion_v1beta1/lib/google/apis/datafusion_v1beta1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module DatafusionV1beta1 # Version of the google-apis-datafusion_v1beta1 gem - GEM_VERSION = "0.1.0" + GEM_VERSION = "0.2.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.1.1" # Revision of the discovery document this client was generated from - REVISION = "20200901" + REVISION = "20210107" end end end diff --git a/generated/google-apis-datafusion_v1beta1/lib/google/apis/datafusion_v1beta1/representations.rb b/generated/google-apis-datafusion_v1beta1/lib/google/apis/datafusion_v1beta1/representations.rb index f2e601b1d..77a6190f7 100644 --- a/generated/google-apis-datafusion_v1beta1/lib/google/apis/datafusion_v1beta1/representations.rb +++ b/generated/google-apis-datafusion_v1beta1/lib/google/apis/datafusion_v1beta1/representations.rb @@ -124,6 +124,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class RemoveIamPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RemoveIamPolicyResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RestartInstanceRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -193,7 +205,6 @@ module Google class Binding # @private class Representation < Google::Apis::Core::JsonRepresentation - property :binding_id, as: 'bindingId' property :condition, as: 'condition', class: Google::Apis::DatafusionV1beta1::Expr, decorator: Google::Apis::DatafusionV1beta1::Expr::Representation collection :members, as: 'members' @@ -350,6 +361,18 @@ module Google end end + class RemoveIamPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class RemoveIamPolicyResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class RestartInstanceRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google-apis-datafusion_v1beta1/lib/google/apis/datafusion_v1beta1/service.rb b/generated/google-apis-datafusion_v1beta1/lib/google/apis/datafusion_v1beta1/service.rb index 9059bf649..d7e12da6e 100644 --- a/generated/google-apis-datafusion_v1beta1/lib/google/apis/datafusion_v1beta1/service.rb +++ b/generated/google-apis-datafusion_v1beta1/lib/google/apis/datafusion_v1beta1/service.rb @@ -55,6 +55,39 @@ module Google @batch_path = 'batch' end + # Remove IAM policy that is currently set on the given resource. + # @param [String] resource + # The resource on which IAM policy to be removed is attached to. + # @param [Google::Apis::DatafusionV1beta1::RemoveIamPolicyRequest] remove_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::DatafusionV1beta1::RemoveIamPolicyResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DatafusionV1beta1::RemoveIamPolicyResponse] + # + # @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 remove_project_iam_policy(resource, remove_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta1/{+resource}:removeIamPolicy', options) + command.request_representation = Google::Apis::DatafusionV1beta1::RemoveIamPolicyRequest::Representation + command.request_object = remove_iam_policy_request_object + command.response_representation = Google::Apis::DatafusionV1beta1::RemoveIamPolicyResponse::Representation + command.response_class = Google::Apis::DatafusionV1beta1::RemoveIamPolicyResponse + 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. @@ -164,7 +197,7 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a single Date Fusion instance. + # Deletes a single Data Fusion instance. # @param [String] name # The instance resource name in the format projects/`project`/locations/` # location`/instances/`instance` diff --git a/generated/google-apis-datafusion_v1beta1/synth.metadata b/generated/google-apis-datafusion_v1beta1/synth.metadata index 429012f74..b1bac7fed 100644 --- a/generated/google-apis-datafusion_v1beta1/synth.metadata +++ b/generated/google-apis-datafusion_v1beta1/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "c98c719bbab68d0890524d53f8b629d7858af9c2" + "sha": "c6bbfd62e37cc5a444d49a6576fda907b3bfb9b5" } } ]