Skip to content

Commit ffdac54

Browse files
feat: Automated regeneration of dns v1 client (googleapis#3183)
This PR was generated using Autosynth. 🌈 <details><summary>Log from Synthtool</summary> ``` 2021-03-08 04:28:42,142 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py. On branch autosynth-dns-v1 nothing to commit, working tree clean 2021-03-08 04:28:42,219 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace -e USER_GROUP=1000:1000 --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth dns v1 DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace -e USER_GROUP=1000:1000 --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth dns v1 git clean -df bundle install Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. Fetching gem metadata from https://rubygems.org/......... Resolving dependencies... Fetching rake 11.3.0 Installing rake 11.3.0 Fetching minitest 5.14.4 Fetching concurrent-ruby 1.1.8 Fetching zeitwerk 2.4.2 Fetching public_suffix 4.0.6 Installing zeitwerk 2.4.2 Installing minitest 5.14.4 Installing public_suffix 4.0.6 Installing concurrent-ruby 1.1.8 Fetching ast 2.4.2 Installing ast 2.4.2 Using bundler 2.2.13 Fetching byebug 11.1.3 Fetching coderay 1.1.3 Installing byebug 11.1.3 with native extensions Installing coderay 1.1.3 Fetching json 2.5.1 Installing json 2.5.1 with native extensions Fetching docile 1.3.5 Installing docile 1.3.5 Fetching simplecov-html 0.10.2 Using sync 0.5.0 Fetching thor 1.1.0 Installing thor 1.1.0 Installing simplecov-html 0.10.2 Fetching rexml 3.2.4 Fetching declarative 0.0.20 Installing rexml 3.2.4 Installing declarative 0.0.20 Fetching declarative-option 0.1.0 Fetching diff-lcs 1.4.4 Installing declarative-option 0.1.0 Fetching dotenv 2.7.6 Installing diff-lcs 1.4.4 Installing dotenv 2.7.6 Fetching fakefs 0.20.1 Fetching faraday-net_http 1.0.1 Installing fakefs 0.20.1 Installing faraday-net_http 1.0.1 Fetching multipart-post 2.1.1 Fetching ruby2_keywords 0.0.4 Installing multipart-post 2.1.1 Installing ruby2_keywords 0.0.4 Fetching gems 1.2.0 Fetching github-markup 1.7.0 Installing gems 1.2.0 Installing github-markup 1.7.0 Fetching jwt 2.2.2 Installing jwt 2.2.2 Fetching memoist 0.16.2 Fetching multi_json 1.15.0 Installing memoist 0.16.2 Installing multi_json 1.15.0 Fetching os 0.9.6 Fetching httpclient 2.8.3 Installing os 0.9.6 Fetching mini_mime 1.0.2 Installing httpclient 2.8.3 Installing mini_mime 1.0.2 Fetching uber 0.1.0 Installing uber 0.1.0 Fetching retriable 3.1.2 Fetching webrick 1.7.0 Installing retriable 3.1.2 Installing webrick 1.7.0 Fetching hashdiff 1.0.1 Installing hashdiff 1.0.1 Fetching mime-types-data 3.2021.0225 Fetching multi_xml 0.6.0 Fetching rspec-support 3.10.2 Installing multi_xml 0.6.0 Installing rspec-support 3.10.2 Installing mime-types-data 3.2021.0225 Fetching little-plugger 1.1.4 Installing little-plugger 1.1.4 Fetching method_source 1.0.0 Fetching opencensus 0.5.0 Fetching parallel 1.20.1 Installing method_source 1.0.0 Installing parallel 1.20.1 Installing opencensus 0.5.0 Fetching powerpack 0.1.3 Fetching yard 0.9.26 Installing powerpack 0.1.3 Installing yard 0.9.26 Fetching rainbow 2.2.2 Installing rainbow 2.2.2 with native extensions Fetching redcarpet 3.5.1 Installing redcarpet 3.5.1 with native extensions Fetching redis 3.3.5 Installing redis 3.3.5 Fetching rmail 1.1.4 Installing rmail 1.1.4 Fetching ruby-progressbar 1.11.0 Installing ruby-progressbar 1.11.0 Fetching unicode-display_width 1.7.0 Fetching parser 2.7.2.0 Fetching addressable 2.7.0 Installing unicode-display_width 1.7.0 Fetching i18n 1.8.9 Installing addressable 2.7.0 Installing i18n 1.8.9 Installing parser 2.7.2.0 Fetching tzinfo 2.0.4 Installing tzinfo 2.0.4 Fetching tins 1.28.0 Installing tins 1.28.0 Fetching crack 0.4.5 Fetching faraday 1.3.0 Installing crack 0.4.5 Fetching google-id-token 1.4.2 Installing faraday 1.3.0 Installing google-id-token 1.4.2 Fetching representable 3.0.4 Installing representable 3.0.4 Fetching logging 2.3.0 Installing logging 2.3.0 Fetching mime-types 3.3.1 Fetching rspec-core 3.10.1 Installing mime-types 3.3.1 Installing rspec-core 3.10.1 Fetching rspec-expectations 3.10.1 Installing rspec-expectations 3.10.1 Fetching rspec-mocks 3.10.2 Installing rspec-mocks 3.10.2 Fetching pry 0.13.1 Fetching simplecov 0.16.1 Fetching launchy 2.5.0 Installing launchy 2.5.0 Installing simplecov 0.16.1 Installing pry 0.13.1 Fetching activesupport 6.1.3 Fetching rubocop 0.49.1 Installing activesupport 6.1.3 Installing rubocop 0.49.1 Fetching webmock 2.3.2 Installing webmock 2.3.2 Fetching signet 0.15.0 Installing signet 0.15.0 Fetching term-ansicolor 1.7.1 Installing term-ansicolor 1.7.1 Fetching httparty 0.18.1 Installing httparty 0.18.1 Fetching rspec 3.10.0 Installing rspec 3.10.0 Fetching pry-byebug 3.9.0 Installing pry-byebug 3.9.0 Fetching pry-doc 0.13.5 Fetching googleauth 0.16.0 Fetching coveralls 0.8.23 Installing googleauth 0.16.0 Installing coveralls 0.8.23 Fetching json_spec 1.1.5 Installing json_spec 1.1.5 Fetching google-apis-core 0.3.0 Installing google-apis-core 0.3.0 Fetching google-apis-discovery_v1 0.2.0 Installing pry-doc 0.13.5 Installing google-apis-discovery_v1 0.2.0 Using google-apis-generator 0.2.0 from source at `.` Bundle complete! 25 Gemfile dependencies, 82 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. Post-install message from httparty: When you HTTParty, you must party hard! echo a | bundle exec bin/generate-api gen /workspace/generated --api=dns.v1 --names=/workspace/api_names.yaml --names-out=/workspace/api_names_out.yaml --spot-check Loading dns, version v1 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/dns.v1.json conflict google-apis-dns_v1/lib/google/apis/dns_v1/classes.rb </dns_v1/classes.rb? (enter "h" for help) [Ynaqdhm] a force google-apis-dns_v1/lib/google/apis/dns_v1/classes.rb conflict google-apis-dns_v1/lib/google/apis/dns_v1/representations.rb force google-apis-dns_v1/lib/google/apis/dns_v1/representations.rb conflict google-apis-dns_v1/lib/google/apis/dns_v1/service.rb force google-apis-dns_v1/lib/google/apis/dns_v1/service.rb conflict google-apis-dns_v1/lib/google/apis/dns_v1/gem_version.rb force google-apis-dns_v1/lib/google/apis/dns_v1/gem_version.rb conflict google-apis-dns_v1/CHANGELOG.md force google-apis-dns_v1/CHANGELOG.md Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. Fetching gem metadata from https://rubygems.org/......... Resolving dependencies... Using rake 13.0.3 Using public_suffix 4.0.6 Using bundler 2.2.13 Using declarative 0.0.20 Using declarative-option 0.1.0 Using diff-lcs 1.4.4 Using faraday-net_http 1.0.1 Using multipart-post 2.1.1 Using ruby2_keywords 0.0.4 Using jwt 2.2.2 Using memoist 0.16.2 Using multi_json 1.15.0 Fetching os 1.1.1 Using httpclient 2.8.3 Using mini_mime 1.0.2 Using uber 0.1.0 Using retriable 3.1.2 Using rexml 3.2.4 Using webrick 1.7.0 Using opencensus 0.5.0 Using redcarpet 3.5.1 Using rspec-support 3.10.2 Using yard 0.9.26 Using addressable 2.7.0 Using faraday 1.3.0 Using representable 3.0.4 Using rspec-core 3.10.1 Using rspec-expectations 3.10.1 Using rspec-mocks 3.10.2 Using signet 0.15.0 Using rspec 3.10.0 Installing os 1.1.1 Using googleauth 0.16.0 Using google-apis-core 0.3.0 Using google-apis-dns_v1 0.5.0 from source at `.` Bundle complete! 8 Gemfile dependencies, 34 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. /root/.rbenv/versions/2.6.6/bin/ruby -I/root/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rspec-core-3.10.1/lib:/root/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rspec-support-3.10.2/lib /root/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rspec-core-3.10.1/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb Google::Apis::DnsV1 should load Finished in 0.30951 seconds (files took 0.0982 seconds to load) 1 example, 0 failures Files: 4 Modules: 3 ( 1 undocumented) Classes: 36 ( 22 undocumented) Constants: 8 ( 0 undocumented) Attributes: 80 ( 0 undocumented) Methods: 96 ( 0 undocumented) 89.69% documented google-apis-dns_v1 0.5.0 built to pkg/google-apis-dns_v1-0.5.0.gem. conflict /workspace/api_names_out.yaml force /workspace/api_names_out.yaml chown -R 1000:1000 /workspace/generated 2021-03-08 04:29:07,616 synthtool [DEBUG] > Wrote metadata to generated/google-apis-dns_v1/synth.metadata. DEBUG:synthtool:Wrote metadata to generated/google-apis-dns_v1/synth.metadata. ``` </details> Full log will be available here: https://source.cloud.google.com/results/invocations/2f9fe027-169f-4a25-aedc-df65cc9295d6/targets - [ ] To automatically regenerate this PR, check this box.
1 parent 3c8389a commit ffdac54

File tree

7 files changed

+233
-4
lines changed

7 files changed

+233
-4
lines changed

api_names_out.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -103550,6 +103550,7 @@
103550103550
"/dns:v1/ResourceRecordSet/signatureRrdatas/signature_rrdata": signature_rrdata
103551103551
"/dns:v1/ResourceRecordSet/ttl": ttl
103552103552
"/dns:v1/ResourceRecordSet/type": type
103553+
"/dns:v1/ResourceRecordSetsDeleteResponse": resource_record_sets_delete_response
103553103554
"/dns:v1/ResourceRecordSetsListResponse": list_resource_record_sets_response
103554103555
"/dns:v1/ResourceRecordSetsListResponse/header": header
103555103556
"/dns:v1/ResourceRecordSetsListResponse/kind": kind
@@ -103647,6 +103648,28 @@
103647103648
"/dns:v1/dns.projects.get": get_project
103648103649
"/dns:v1/dns.projects.get/clientOperationId": client_operation_id
103649103650
"/dns:v1/dns.projects.get/project": project
103651+
"/dns:v1/dns.projects.managedZones.rrsets.create": create_project_managed_zone_rrset
103652+
"/dns:v1/dns.projects.managedZones.rrsets.create/clientOperationId": client_operation_id
103653+
"/dns:v1/dns.projects.managedZones.rrsets.create/managedZone": managed_zone
103654+
"/dns:v1/dns.projects.managedZones.rrsets.create/project": project
103655+
"/dns:v1/dns.projects.managedZones.rrsets.delete": delete_project_managed_zone_rrset
103656+
"/dns:v1/dns.projects.managedZones.rrsets.delete/clientOperationId": client_operation_id
103657+
"/dns:v1/dns.projects.managedZones.rrsets.delete/managedZone": managed_zone
103658+
"/dns:v1/dns.projects.managedZones.rrsets.delete/name": name
103659+
"/dns:v1/dns.projects.managedZones.rrsets.delete/project": project
103660+
"/dns:v1/dns.projects.managedZones.rrsets.delete/type": type
103661+
"/dns:v1/dns.projects.managedZones.rrsets.get": get_project_managed_zone_rrset
103662+
"/dns:v1/dns.projects.managedZones.rrsets.get/clientOperationId": client_operation_id
103663+
"/dns:v1/dns.projects.managedZones.rrsets.get/managedZone": managed_zone
103664+
"/dns:v1/dns.projects.managedZones.rrsets.get/name": name
103665+
"/dns:v1/dns.projects.managedZones.rrsets.get/project": project
103666+
"/dns:v1/dns.projects.managedZones.rrsets.get/type": type
103667+
"/dns:v1/dns.projects.managedZones.rrsets.patch": patch_project_managed_zone_rrset
103668+
"/dns:v1/dns.projects.managedZones.rrsets.patch/clientOperationId": client_operation_id
103669+
"/dns:v1/dns.projects.managedZones.rrsets.patch/managedZone": managed_zone
103670+
"/dns:v1/dns.projects.managedZones.rrsets.patch/name": name
103671+
"/dns:v1/dns.projects.managedZones.rrsets.patch/project": project
103672+
"/dns:v1/dns.projects.managedZones.rrsets.patch/type": type
103650103673
"/dns:v1/dns.resourceRecordSets.list": list_resource_record_sets
103651103674
"/dns:v1/dns.resourceRecordSets.list/managedZone": managed_zone
103652103675
"/dns:v1/dns.resourceRecordSets.list/maxResults": max_results

generated/google-apis-dns_v1/CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-dns_v1
22

3+
### v0.5.0 (2021-03-08)
4+
5+
* Regenerated from discovery document revision 20210303
6+
* Regenerated using generator version 0.2.0
7+
38
### v0.4.0 (2021-03-04)
49

510
* Regenerated from discovery document revision 20210227

generated/google-apis-dns_v1/lib/google/apis/dns_v1/classes.rb

+13
Original file line numberDiff line numberDiff line change
@@ -1423,6 +1423,19 @@ def update!(**args)
14231423
end
14241424
end
14251425

1426+
#
1427+
class ResourceRecordSetsDeleteResponse
1428+
include Google::Apis::Core::Hashable
1429+
1430+
def initialize(**args)
1431+
update!(**args)
1432+
end
1433+
1434+
# Update properties of this object
1435+
def update!(**args)
1436+
end
1437+
end
1438+
14261439
#
14271440
class ListResourceRecordSetsResponse
14281441
include Google::Apis::Core::Hashable

generated/google-apis-dns_v1/lib/google/apis/dns_v1/gem_version.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module DnsV1
1818
# Version of the google-apis-dns_v1 gem
19-
GEM_VERSION = "0.4.0"
19+
GEM_VERSION = "0.5.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.1.2"
22+
GENERATOR_VERSION = "0.2.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20210227"
25+
REVISION = "20210303"
2626
end
2727
end
2828
end

generated/google-apis-dns_v1/lib/google/apis/dns_v1/representations.rb

+12
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
214214
include Google::Apis::Core::JsonObjectSupport
215215
end
216216

217+
class ResourceRecordSetsDeleteResponse
218+
class Representation < Google::Apis::Core::JsonRepresentation; end
219+
220+
include Google::Apis::Core::JsonObjectSupport
221+
end
222+
217223
class ListResourceRecordSetsResponse
218224
class Representation < Google::Apis::Core::JsonRepresentation; end
219225

@@ -597,6 +603,12 @@ class Representation < Google::Apis::Core::JsonRepresentation
597603
end
598604
end
599605

606+
class ResourceRecordSetsDeleteResponse
607+
# @private
608+
class Representation < Google::Apis::Core::JsonRepresentation
609+
end
610+
end
611+
600612
class ListResourceRecordSetsResponse
601613
# @private
602614
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-dns_v1/lib/google/apis/dns_v1/service.rb

+176
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,182 @@ def get_project(project, client_operation_id: nil, fields: nil, quota_user: nil,
853853
execute_or_queue_command(command, &block)
854854
end
855855

856+
# Create a new ResourceRecordSet.
857+
# @param [String] project
858+
# Identifies the project addressed by this request.
859+
# @param [String] managed_zone
860+
# Identifies the managed zone addressed by this request. Can be the managed zone
861+
# name or ID.
862+
# @param [Google::Apis::DnsV1::ResourceRecordSet] resource_record_set_object
863+
# @param [String] client_operation_id
864+
# For mutating operation requests only. An optional identifier specified by the
865+
# client. Must be unique for operation resources in the Operations collection.
866+
# @param [String] fields
867+
# Selector specifying which fields to include in a partial response.
868+
# @param [String] quota_user
869+
# Available to use for quota purposes for server-side applications. Can be any
870+
# arbitrary string assigned to a user, but should not exceed 40 characters.
871+
# @param [Google::Apis::RequestOptions] options
872+
# Request-specific options
873+
#
874+
# @yield [result, err] Result & error if block supplied
875+
# @yieldparam result [Google::Apis::DnsV1::ResourceRecordSet] parsed result object
876+
# @yieldparam err [StandardError] error object if request failed
877+
#
878+
# @return [Google::Apis::DnsV1::ResourceRecordSet]
879+
#
880+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
881+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
882+
# @raise [Google::Apis::AuthorizationError] Authorization is required
883+
def create_project_managed_zone_rrset(project, managed_zone, resource_record_set_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
884+
command = make_simple_command(:post, 'dns/v1/projects/{project}/managedZones/{managedZone}/rrsets', options)
885+
command.request_representation = Google::Apis::DnsV1::ResourceRecordSet::Representation
886+
command.request_object = resource_record_set_object
887+
command.response_representation = Google::Apis::DnsV1::ResourceRecordSet::Representation
888+
command.response_class = Google::Apis::DnsV1::ResourceRecordSet
889+
command.params['project'] = project unless project.nil?
890+
command.params['managedZone'] = managed_zone unless managed_zone.nil?
891+
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
892+
command.query['fields'] = fields unless fields.nil?
893+
command.query['quotaUser'] = quota_user unless quota_user.nil?
894+
execute_or_queue_command(command, &block)
895+
end
896+
897+
# Delete a previously created ResourceRecordSet.
898+
# @param [String] project
899+
# Identifies the project addressed by this request.
900+
# @param [String] managed_zone
901+
# Identifies the managed zone addressed by this request. Can be the managed zone
902+
# name or ID.
903+
# @param [String] name
904+
# Fully qualified domain name.
905+
# @param [String] type
906+
# RRSet type.
907+
# @param [String] client_operation_id
908+
# For mutating operation requests only. An optional identifier specified by the
909+
# client. Must be unique for operation resources in the Operations collection.
910+
# @param [String] fields
911+
# Selector specifying which fields to include in a partial response.
912+
# @param [String] quota_user
913+
# Available to use for quota purposes for server-side applications. Can be any
914+
# arbitrary string assigned to a user, but should not exceed 40 characters.
915+
# @param [Google::Apis::RequestOptions] options
916+
# Request-specific options
917+
#
918+
# @yield [result, err] Result & error if block supplied
919+
# @yieldparam result [Google::Apis::DnsV1::ResourceRecordSetsDeleteResponse] parsed result object
920+
# @yieldparam err [StandardError] error object if request failed
921+
#
922+
# @return [Google::Apis::DnsV1::ResourceRecordSetsDeleteResponse]
923+
#
924+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
925+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
926+
# @raise [Google::Apis::AuthorizationError] Authorization is required
927+
def delete_project_managed_zone_rrset(project, managed_zone, name, type, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
928+
command = make_simple_command(:delete, 'dns/v1/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}', options)
929+
command.response_representation = Google::Apis::DnsV1::ResourceRecordSetsDeleteResponse::Representation
930+
command.response_class = Google::Apis::DnsV1::ResourceRecordSetsDeleteResponse
931+
command.params['project'] = project unless project.nil?
932+
command.params['managedZone'] = managed_zone unless managed_zone.nil?
933+
command.params['name'] = name unless name.nil?
934+
command.params['type'] = type unless type.nil?
935+
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
936+
command.query['fields'] = fields unless fields.nil?
937+
command.query['quotaUser'] = quota_user unless quota_user.nil?
938+
execute_or_queue_command(command, &block)
939+
end
940+
941+
# Fetch the representation of an existing ResourceRecordSet.
942+
# @param [String] project
943+
# Identifies the project addressed by this request.
944+
# @param [String] managed_zone
945+
# Identifies the managed zone addressed by this request. Can be the managed zone
946+
# name or ID.
947+
# @param [String] name
948+
# Fully qualified domain name.
949+
# @param [String] type
950+
# RRSet type.
951+
# @param [String] client_operation_id
952+
# For mutating operation requests only. An optional identifier specified by the
953+
# client. Must be unique for operation resources in the Operations collection.
954+
# @param [String] fields
955+
# Selector specifying which fields to include in a partial response.
956+
# @param [String] quota_user
957+
# Available to use for quota purposes for server-side applications. Can be any
958+
# arbitrary string assigned to a user, but should not exceed 40 characters.
959+
# @param [Google::Apis::RequestOptions] options
960+
# Request-specific options
961+
#
962+
# @yield [result, err] Result & error if block supplied
963+
# @yieldparam result [Google::Apis::DnsV1::ResourceRecordSet] parsed result object
964+
# @yieldparam err [StandardError] error object if request failed
965+
#
966+
# @return [Google::Apis::DnsV1::ResourceRecordSet]
967+
#
968+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
969+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
970+
# @raise [Google::Apis::AuthorizationError] Authorization is required
971+
def get_project_managed_zone_rrset(project, managed_zone, name, type, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
972+
command = make_simple_command(:get, 'dns/v1/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}', options)
973+
command.response_representation = Google::Apis::DnsV1::ResourceRecordSet::Representation
974+
command.response_class = Google::Apis::DnsV1::ResourceRecordSet
975+
command.params['project'] = project unless project.nil?
976+
command.params['managedZone'] = managed_zone unless managed_zone.nil?
977+
command.params['name'] = name unless name.nil?
978+
command.params['type'] = type unless type.nil?
979+
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
980+
command.query['fields'] = fields unless fields.nil?
981+
command.query['quotaUser'] = quota_user unless quota_user.nil?
982+
execute_or_queue_command(command, &block)
983+
end
984+
985+
# Apply a partial update to an existing ResourceRecordSet.
986+
# @param [String] project
987+
# Identifies the project addressed by this request.
988+
# @param [String] managed_zone
989+
# Identifies the managed zone addressed by this request. Can be the managed zone
990+
# name or ID.
991+
# @param [String] name
992+
# Fully qualified domain name.
993+
# @param [String] type
994+
# RRSet type.
995+
# @param [Google::Apis::DnsV1::ResourceRecordSet] resource_record_set_object
996+
# @param [String] client_operation_id
997+
# For mutating operation requests only. An optional identifier specified by the
998+
# client. Must be unique for operation resources in the Operations collection.
999+
# @param [String] fields
1000+
# Selector specifying which fields to include in a partial response.
1001+
# @param [String] quota_user
1002+
# Available to use for quota purposes for server-side applications. Can be any
1003+
# arbitrary string assigned to a user, but should not exceed 40 characters.
1004+
# @param [Google::Apis::RequestOptions] options
1005+
# Request-specific options
1006+
#
1007+
# @yield [result, err] Result & error if block supplied
1008+
# @yieldparam result [Google::Apis::DnsV1::ResourceRecordSet] parsed result object
1009+
# @yieldparam err [StandardError] error object if request failed
1010+
#
1011+
# @return [Google::Apis::DnsV1::ResourceRecordSet]
1012+
#
1013+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1014+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1015+
# @raise [Google::Apis::AuthorizationError] Authorization is required
1016+
def patch_project_managed_zone_rrset(project, managed_zone, name, type, resource_record_set_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1017+
command = make_simple_command(:patch, 'dns/v1/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}', options)
1018+
command.request_representation = Google::Apis::DnsV1::ResourceRecordSet::Representation
1019+
command.request_object = resource_record_set_object
1020+
command.response_representation = Google::Apis::DnsV1::ResourceRecordSet::Representation
1021+
command.response_class = Google::Apis::DnsV1::ResourceRecordSet
1022+
command.params['project'] = project unless project.nil?
1023+
command.params['managedZone'] = managed_zone unless managed_zone.nil?
1024+
command.params['name'] = name unless name.nil?
1025+
command.params['type'] = type unless type.nil?
1026+
command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1027+
command.query['fields'] = fields unless fields.nil?
1028+
command.query['quotaUser'] = quota_user unless quota_user.nil?
1029+
execute_or_queue_command(command, &block)
1030+
end
1031+
8561032
# Enumerates ResourceRecordSets that you have created but not yet deleted.
8571033
# @param [String] project
8581034
# Identifies the project addressed by this request.

generated/google-apis-dns_v1/synth.metadata

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/google-api-ruby-client.git",
7-
"sha": "c5aa4119f4009b4531f99348de194983ab9aa8e7"
7+
"sha": "3c8389a126d5989479ebcf16befcdab253c7eb96"
88
}
99
}
1010
]

0 commit comments

Comments
 (0)