google-apis-dns_v1beta2 0.1.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DnsV1beta2
18
18
  # Version of the google-apis-dns_v1beta2 gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201116"
25
+ REVISION = "20210309"
26
26
  end
27
27
  end
28
28
  end
@@ -208,55 +208,79 @@ module Google
208
208
  include Google::Apis::Core::JsonObjectSupport
209
209
  end
210
210
 
211
- class RrSetRoutingPolicy
211
+ class ResourceRecordSet
212
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
213
213
 
214
214
  include Google::Apis::Core::JsonObjectSupport
215
215
  end
216
216
 
217
- class RrSetRoutingPolicyGeoPolicy
217
+ class ResourceRecordSetsListResponse
218
218
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
219
 
220
220
  include Google::Apis::Core::JsonObjectSupport
221
221
  end
222
222
 
223
- class RrSetRoutingPolicyGeoPolicyGeoPolicyItem
223
+ class ResponseHeader
224
224
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
225
 
226
226
  include Google::Apis::Core::JsonObjectSupport
227
227
  end
228
228
 
229
- class RrSetRoutingPolicyWrrPolicy
229
+ class ResponsePoliciesListResponse
230
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
231
231
 
232
232
  include Google::Apis::Core::JsonObjectSupport
233
233
  end
234
234
 
235
- class RrSetRoutingPolicyWrrPolicyWrrPolicyItem
235
+ class ResponsePoliciesPatchResponse
236
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
237
237
 
238
238
  include Google::Apis::Core::JsonObjectSupport
239
239
  end
240
240
 
241
- class ResourceRecordSet
241
+ class ResponsePoliciesUpdateResponse
242
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
243
243
 
244
244
  include Google::Apis::Core::JsonObjectSupport
245
245
  end
246
246
 
247
- class ResourceRecordSetsDeleteResponse
247
+ class ResponsePolicy
248
248
  class Representation < Google::Apis::Core::JsonRepresentation; end
249
249
 
250
250
  include Google::Apis::Core::JsonObjectSupport
251
251
  end
252
252
 
253
- class ResourceRecordSetsListResponse
253
+ class ResponsePolicyNetwork
254
254
  class Representation < Google::Apis::Core::JsonRepresentation; end
255
255
 
256
256
  include Google::Apis::Core::JsonObjectSupport
257
257
  end
258
258
 
259
- class ResponseHeader
259
+ class ResponsePolicyRule
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
265
+ class ResponsePolicyRuleLocalData
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+
268
+ include Google::Apis::Core::JsonObjectSupport
269
+ end
270
+
271
+ class ResponsePolicyRulesListResponse
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
277
+ class ResponsePolicyRulesPatchResponse
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
283
+ class ResponsePolicyRulesUpdateResponse
260
284
  class Representation < Google::Apis::Core::JsonRepresentation; end
261
285
 
262
286
  include Google::Apis::Core::JsonObjectSupport
@@ -390,6 +414,7 @@ module Google
390
414
  class Representation < Google::Apis::Core::JsonRepresentation
391
415
  property :forwarding_path, as: 'forwardingPath'
392
416
  property :ipv4_address, as: 'ipv4Address'
417
+ property :ipv6_address, as: 'ipv6Address'
393
418
  property :kind, as: 'kind'
394
419
  end
395
420
  end
@@ -576,6 +601,7 @@ module Google
576
601
  class Representation < Google::Apis::Core::JsonRepresentation
577
602
  property :forwarding_path, as: 'forwardingPath'
578
603
  property :ipv4_address, as: 'ipv4Address'
604
+ property :ipv6_address, as: 'ipv6Address'
579
605
  property :kind, as: 'kind'
580
606
  end
581
607
  end
@@ -603,7 +629,6 @@ module Google
603
629
  # @private
604
630
  class Representation < Google::Apis::Core::JsonRepresentation
605
631
  property :dns_keys_per_managed_zone, as: 'dnsKeysPerManagedZone'
606
- property :gke_clusters_per_policy, as: 'gkeClustersPerPolicy'
607
632
  property :kind, as: 'kind'
608
633
  property :managed_zones, as: 'managedZones'
609
634
  property :managed_zones_per_network, as: 'managedZonesPerNetwork'
@@ -611,6 +636,7 @@ module Google
611
636
  property :networks_per_policy, as: 'networksPerPolicy'
612
637
  property :policies, as: 'policies'
613
638
  property :resource_records_per_rrset, as: 'resourceRecordsPerRrset'
639
+ property :response_policy_rules_per_response_policy, as: 'responsePolicyRulesPerResponsePolicy'
614
640
  property :rrset_additions_per_change, as: 'rrsetAdditionsPerChange'
615
641
  property :rrset_deletions_per_change, as: 'rrsetDeletionsPerChange'
616
642
  property :rrsets_per_managed_zone, as: 'rrsetsPerManagedZone'
@@ -622,93 +648,136 @@ module Google
622
648
  end
623
649
  end
624
650
 
625
- class RrSetRoutingPolicy
651
+ class ResourceRecordSet
652
+ # @private
653
+ class Representation < Google::Apis::Core::JsonRepresentation
654
+ property :kind, as: 'kind'
655
+ property :name, as: 'name'
656
+ collection :rrdatas, as: 'rrdatas'
657
+ collection :signature_rrdatas, as: 'signatureRrdatas'
658
+ property :ttl, as: 'ttl'
659
+ property :type, as: 'type'
660
+ end
661
+ end
662
+
663
+ class ResourceRecordSetsListResponse
626
664
  # @private
627
665
  class Representation < Google::Apis::Core::JsonRepresentation
628
- property :geo_policy, as: 'geoPolicy', class: Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicy, decorator: Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicy::Representation
666
+ property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
629
667
 
630
668
  property :kind, as: 'kind'
631
- property :wrr_policy, as: 'wrrPolicy', class: Google::Apis::DnsV1beta2::RrSetRoutingPolicyWrrPolicy, decorator: Google::Apis::DnsV1beta2::RrSetRoutingPolicyWrrPolicy::Representation
669
+ property :next_page_token, as: 'nextPageToken'
670
+ collection :rrsets, as: 'rrsets', class: Google::Apis::DnsV1beta2::ResourceRecordSet, decorator: Google::Apis::DnsV1beta2::ResourceRecordSet::Representation
632
671
 
633
672
  end
634
673
  end
635
674
 
636
- class RrSetRoutingPolicyGeoPolicy
675
+ class ResponseHeader
637
676
  # @private
638
677
  class Representation < Google::Apis::Core::JsonRepresentation
639
- collection :failovers, as: 'failovers', class: Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicyGeoPolicyItem, decorator: Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicyGeoPolicyItem::Representation
678
+ property :operation_id, as: 'operationId'
679
+ end
680
+ end
640
681
 
641
- collection :items, as: 'items', class: Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicyGeoPolicyItem, decorator: Google::Apis::DnsV1beta2::RrSetRoutingPolicyGeoPolicyGeoPolicyItem::Representation
682
+ class ResponsePoliciesListResponse
683
+ # @private
684
+ class Representation < Google::Apis::Core::JsonRepresentation
685
+ property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
686
+
687
+ property :next_page_token, as: 'nextPageToken'
688
+ collection :response_policies, as: 'responsePolicies', class: Google::Apis::DnsV1beta2::ResponsePolicy, decorator: Google::Apis::DnsV1beta2::ResponsePolicy::Representation
642
689
 
643
- property :kind, as: 'kind'
644
690
  end
645
691
  end
646
692
 
647
- class RrSetRoutingPolicyGeoPolicyGeoPolicyItem
693
+ class ResponsePoliciesPatchResponse
648
694
  # @private
649
695
  class Representation < Google::Apis::Core::JsonRepresentation
650
- property :kind, as: 'kind'
651
- property :location, as: 'location'
652
- collection :rrdatas, as: 'rrdatas'
653
- collection :signature_rrdatas, as: 'signatureRrdatas'
696
+ property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
697
+
698
+ property :response_policy, as: 'responsePolicy', class: Google::Apis::DnsV1beta2::ResponsePolicy, decorator: Google::Apis::DnsV1beta2::ResponsePolicy::Representation
699
+
654
700
  end
655
701
  end
656
702
 
657
- class RrSetRoutingPolicyWrrPolicy
703
+ class ResponsePoliciesUpdateResponse
658
704
  # @private
659
705
  class Representation < Google::Apis::Core::JsonRepresentation
660
- collection :items, as: 'items', class: Google::Apis::DnsV1beta2::RrSetRoutingPolicyWrrPolicyWrrPolicyItem, decorator: Google::Apis::DnsV1beta2::RrSetRoutingPolicyWrrPolicyWrrPolicyItem::Representation
706
+ property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
707
+
708
+ property :response_policy, as: 'responsePolicy', class: Google::Apis::DnsV1beta2::ResponsePolicy, decorator: Google::Apis::DnsV1beta2::ResponsePolicy::Representation
661
709
 
710
+ end
711
+ end
712
+
713
+ class ResponsePolicy
714
+ # @private
715
+ class Representation < Google::Apis::Core::JsonRepresentation
716
+ property :description, as: 'description'
717
+ property :id, :numeric_string => true, as: 'id'
662
718
  property :kind, as: 'kind'
719
+ collection :networks, as: 'networks', class: Google::Apis::DnsV1beta2::ResponsePolicyNetwork, decorator: Google::Apis::DnsV1beta2::ResponsePolicyNetwork::Representation
720
+
721
+ property :response_policy_name, as: 'responsePolicyName'
663
722
  end
664
723
  end
665
724
 
666
- class RrSetRoutingPolicyWrrPolicyWrrPolicyItem
725
+ class ResponsePolicyNetwork
667
726
  # @private
668
727
  class Representation < Google::Apis::Core::JsonRepresentation
669
728
  property :kind, as: 'kind'
670
- collection :rrdatas, as: 'rrdatas'
671
- collection :signature_rrdatas, as: 'signatureRrdatas'
672
- property :weight, as: 'weight'
729
+ property :network_url, as: 'networkUrl'
673
730
  end
674
731
  end
675
732
 
676
- class ResourceRecordSet
733
+ class ResponsePolicyRule
677
734
  # @private
678
735
  class Representation < Google::Apis::Core::JsonRepresentation
736
+ property :behavior, as: 'behavior'
737
+ property :dns_name, as: 'dnsName'
679
738
  property :kind, as: 'kind'
680
- property :name, as: 'name'
681
- property :routing_policy, as: 'routingPolicy', class: Google::Apis::DnsV1beta2::RrSetRoutingPolicy, decorator: Google::Apis::DnsV1beta2::RrSetRoutingPolicy::Representation
739
+ property :local_data, as: 'localData', class: Google::Apis::DnsV1beta2::ResponsePolicyRuleLocalData, decorator: Google::Apis::DnsV1beta2::ResponsePolicyRuleLocalData::Representation
682
740
 
683
- collection :rrdatas, as: 'rrdatas'
684
- collection :signature_rrdatas, as: 'signatureRrdatas'
685
- property :ttl, as: 'ttl'
686
- property :type, as: 'type'
741
+ property :rule_name, as: 'ruleName'
687
742
  end
688
743
  end
689
744
 
690
- class ResourceRecordSetsDeleteResponse
745
+ class ResponsePolicyRuleLocalData
691
746
  # @private
692
747
  class Representation < Google::Apis::Core::JsonRepresentation
748
+ collection :local_datas, as: 'localDatas', class: Google::Apis::DnsV1beta2::ResourceRecordSet, decorator: Google::Apis::DnsV1beta2::ResourceRecordSet::Representation
749
+
693
750
  end
694
751
  end
695
752
 
696
- class ResourceRecordSetsListResponse
753
+ class ResponsePolicyRulesListResponse
697
754
  # @private
698
755
  class Representation < Google::Apis::Core::JsonRepresentation
699
756
  property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
700
757
 
701
- property :kind, as: 'kind'
702
758
  property :next_page_token, as: 'nextPageToken'
703
- collection :rrsets, as: 'rrsets', class: Google::Apis::DnsV1beta2::ResourceRecordSet, decorator: Google::Apis::DnsV1beta2::ResourceRecordSet::Representation
759
+ collection :response_policy_rules, as: 'responsePolicyRules', class: Google::Apis::DnsV1beta2::ResponsePolicyRule, decorator: Google::Apis::DnsV1beta2::ResponsePolicyRule::Representation
704
760
 
705
761
  end
706
762
  end
707
763
 
708
- class ResponseHeader
764
+ class ResponsePolicyRulesPatchResponse
709
765
  # @private
710
766
  class Representation < Google::Apis::Core::JsonRepresentation
711
- property :operation_id, as: 'operationId'
767
+ property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
768
+
769
+ property :response_policy_rule, as: 'responsePolicyRule', class: Google::Apis::DnsV1beta2::ResponsePolicyRule, decorator: Google::Apis::DnsV1beta2::ResponsePolicyRule::Representation
770
+
771
+ end
772
+ end
773
+
774
+ class ResponsePolicyRulesUpdateResponse
775
+ # @private
776
+ class Representation < Google::Apis::Core::JsonRepresentation
777
+ property :header, as: 'header', class: Google::Apis::DnsV1beta2::ResponseHeader, decorator: Google::Apis::DnsV1beta2::ResponseHeader::Representation
778
+
779
+ property :response_policy_rule, as: 'responsePolicyRule', class: Google::Apis::DnsV1beta2::ResponsePolicyRule, decorator: Google::Apis::DnsV1beta2::ResponsePolicyRule::Representation
780
+
712
781
  end
713
782
  end
714
783
  end
@@ -49,7 +49,7 @@ module Google
49
49
  @batch_path = 'batch'
50
50
  end
51
51
 
52
- # Atomically update the ResourceRecordSet collection.
52
+ # Atomically updates the ResourceRecordSet collection.
53
53
  # @param [String] project
54
54
  # Identifies the project addressed by this request.
55
55
  # @param [String] managed_zone
@@ -90,7 +90,7 @@ module Google
90
90
  execute_or_queue_command(command, &block)
91
91
  end
92
92
 
93
- # Fetch the representation of an existing Change.
93
+ # Fetches the representation of an existing Change.
94
94
  # @param [String] project
95
95
  # Identifies the project addressed by this request.
96
96
  # @param [String] managed_zone
@@ -132,7 +132,7 @@ module Google
132
132
  execute_or_queue_command(command, &block)
133
133
  end
134
134
 
135
- # Enumerate Changes to a ResourceRecordSet collection.
135
+ # Enumerates Changes to a ResourceRecordSet collection.
136
136
  # @param [String] project
137
137
  # Identifies the project addressed by this request.
138
138
  # @param [String] managed_zone
@@ -140,7 +140,7 @@ module Google
140
140
  # name or ID.
141
141
  # @param [Fixnum] max_results
142
142
  # Optional. Maximum number of results to be returned. If unspecified, the server
143
- # will decide how many results to return.
143
+ # decides how many results to return.
144
144
  # @param [String] page_token
145
145
  # Optional. A tag returned by a previous list request that was truncated. Use
146
146
  # this parameter to continue a previous list request.
@@ -180,7 +180,7 @@ module Google
180
180
  execute_or_queue_command(command, &block)
181
181
  end
182
182
 
183
- # Fetch the representation of an existing DnsKey.
183
+ # Fetches the representation of an existing DnsKey.
184
184
  # @param [String] project
185
185
  # Identifies the project addressed by this request.
186
186
  # @param [String] managed_zone
@@ -193,7 +193,7 @@ module Google
193
193
  # client. Must be unique for operation resources in the Operations collection.
194
194
  # @param [String] digest_type
195
195
  # An optional comma-separated list of digest types to compute and display for
196
- # key signing keys. If omitted, the recommended digest type will be computed and
196
+ # key signing keys. If omitted, the recommended digest type is computed and
197
197
  # displayed.
198
198
  # @param [String] fields
199
199
  # Selector specifying which fields to include in a partial response.
@@ -226,7 +226,7 @@ module Google
226
226
  execute_or_queue_command(command, &block)
227
227
  end
228
228
 
229
- # Enumerate DnsKeys to a ResourceRecordSet collection.
229
+ # Enumerates DnsKeys to a ResourceRecordSet collection.
230
230
  # @param [String] project
231
231
  # Identifies the project addressed by this request.
232
232
  # @param [String] managed_zone
@@ -234,11 +234,11 @@ module Google
234
234
  # name or ID.
235
235
  # @param [String] digest_type
236
236
  # An optional comma-separated list of digest types to compute and display for
237
- # key signing keys. If omitted, the recommended digest type will be computed and
237
+ # key signing keys. If omitted, the recommended digest type is computed and
238
238
  # displayed.
239
239
  # @param [Fixnum] max_results
240
240
  # Optional. Maximum number of results to be returned. If unspecified, the server
241
- # will decide how many results to return.
241
+ # decides how many results to return.
242
242
  # @param [String] page_token
243
243
  # Optional. A tag returned by a previous list request that was truncated. Use
244
244
  # this parameter to continue a previous list request.
@@ -273,13 +273,13 @@ module Google
273
273
  execute_or_queue_command(command, &block)
274
274
  end
275
275
 
276
- # Fetch the representation of an existing Operation.
276
+ # Fetches the representation of an existing Operation.
277
277
  # @param [String] project
278
278
  # Identifies the project addressed by this request.
279
279
  # @param [String] managed_zone
280
280
  # Identifies the managed zone addressed by this request.
281
281
  # @param [String] operation
282
- # Identifies the operation addressed by this request.
282
+ # Identifies the operation addressed by this request (ID of the operation).
283
283
  # @param [String] client_operation_id
284
284
  # For mutating operation requests only. An optional identifier specified by the
285
285
  # client. Must be unique for operation resources in the Operations collection.
@@ -313,14 +313,14 @@ module Google
313
313
  execute_or_queue_command(command, &block)
314
314
  end
315
315
 
316
- # Enumerate Operations for the given ManagedZone.
316
+ # Enumerates Operations for the given ManagedZone.
317
317
  # @param [String] project
318
318
  # Identifies the project addressed by this request.
319
319
  # @param [String] managed_zone
320
320
  # Identifies the managed zone addressed by this request.
321
321
  # @param [Fixnum] max_results
322
322
  # Optional. Maximum number of results to be returned. If unspecified, the server
323
- # will decide how many results to return.
323
+ # decides how many results to return.
324
324
  # @param [String] page_token
325
325
  # Optional. A tag returned by a previous list request that was truncated. Use
326
326
  # this parameter to continue a previous list request.
@@ -357,7 +357,7 @@ module Google
357
357
  execute_or_queue_command(command, &block)
358
358
  end
359
359
 
360
- # Create a new ManagedZone.
360
+ # Creates a new ManagedZone.
361
361
  # @param [String] project
362
362
  # Identifies the project addressed by this request.
363
363
  # @param [Google::Apis::DnsV1beta2::ManagedZone] managed_zone_object
@@ -394,7 +394,7 @@ module Google
394
394
  execute_or_queue_command(command, &block)
395
395
  end
396
396
 
397
- # Delete a previously created ManagedZone.
397
+ # Deletes a previously created ManagedZone.
398
398
  # @param [String] project
399
399
  # Identifies the project addressed by this request.
400
400
  # @param [String] managed_zone
@@ -430,7 +430,7 @@ module Google
430
430
  execute_or_queue_command(command, &block)
431
431
  end
432
432
 
433
- # Fetch the representation of an existing ManagedZone.
433
+ # Fetches the representation of an existing ManagedZone.
434
434
  # @param [String] project
435
435
  # Identifies the project addressed by this request.
436
436
  # @param [String] managed_zone
@@ -468,14 +468,14 @@ module Google
468
468
  execute_or_queue_command(command, &block)
469
469
  end
470
470
 
471
- # Enumerate ManagedZones that have been created but not yet deleted.
471
+ # Enumerates ManagedZones that have been created but not yet deleted.
472
472
  # @param [String] project
473
473
  # Identifies the project addressed by this request.
474
474
  # @param [String] dns_name
475
475
  # Restricts the list to return only zones with this domain name.
476
476
  # @param [Fixnum] max_results
477
477
  # Optional. Maximum number of results to be returned. If unspecified, the server
478
- # will decide how many results to return.
478
+ # decides how many results to return.
479
479
  # @param [String] page_token
480
480
  # Optional. A tag returned by a previous list request that was truncated. Use
481
481
  # this parameter to continue a previous list request.
@@ -509,7 +509,7 @@ module Google
509
509
  execute_or_queue_command(command, &block)
510
510
  end
511
511
 
512
- # Apply a partial update to an existing ManagedZone.
512
+ # Applies a partial update to an existing ManagedZone.
513
513
  # @param [String] project
514
514
  # Identifies the project addressed by this request.
515
515
  # @param [String] managed_zone
@@ -550,7 +550,7 @@ module Google
550
550
  execute_or_queue_command(command, &block)
551
551
  end
552
552
 
553
- # Update an existing ManagedZone.
553
+ # Updates an existing ManagedZone.
554
554
  # @param [String] project
555
555
  # Identifies the project addressed by this request.
556
556
  # @param [String] managed_zone
@@ -591,7 +591,7 @@ module Google
591
591
  execute_or_queue_command(command, &block)
592
592
  end
593
593
 
594
- # Create a new Policy
594
+ # Creates a new Policy.
595
595
  # @param [String] project
596
596
  # Identifies the project addressed by this request.
597
597
  # @param [Google::Apis::DnsV1beta2::Policy] policy_object
@@ -628,7 +628,7 @@ module Google
628
628
  execute_or_queue_command(command, &block)
629
629
  end
630
630
 
631
- # Delete a previously created Policy. Will fail if the policy is still being
631
+ # Deletes a previously created Policy. Fails if the policy is still being
632
632
  # referenced by a network.
633
633
  # @param [String] project
634
634
  # Identifies the project addressed by this request.
@@ -664,7 +664,7 @@ module Google
664
664
  execute_or_queue_command(command, &block)
665
665
  end
666
666
 
667
- # Fetch the representation of an existing Policy.
667
+ # Fetches the representation of an existing Policy.
668
668
  # @param [String] project
669
669
  # Identifies the project addressed by this request.
670
670
  # @param [String] policy
@@ -701,12 +701,12 @@ module Google
701
701
  execute_or_queue_command(command, &block)
702
702
  end
703
703
 
704
- # Enumerate all Policies associated with a project.
704
+ # Enumerates all Policies associated with a project.
705
705
  # @param [String] project
706
706
  # Identifies the project addressed by this request.
707
707
  # @param [Fixnum] max_results
708
708
  # Optional. Maximum number of results to be returned. If unspecified, the server
709
- # will decide how many results to return.
709
+ # decides how many results to return.
710
710
  # @param [String] page_token
711
711
  # Optional. A tag returned by a previous list request that was truncated. Use
712
712
  # this parameter to continue a previous list request.
@@ -739,7 +739,7 @@ module Google
739
739
  execute_or_queue_command(command, &block)
740
740
  end
741
741
 
742
- # Apply a partial update to an existing Policy.
742
+ # Applies a partial update to an existing Policy.
743
743
  # @param [String] project
744
744
  # Identifies the project addressed by this request.
745
745
  # @param [String] policy
@@ -779,7 +779,7 @@ module Google
779
779
  execute_or_queue_command(command, &block)
780
780
  end
781
781
 
782
- # Update an existing Policy.
782
+ # Updates an existing Policy.
783
783
  # @param [String] project
784
784
  # Identifies the project addressed by this request.
785
785
  # @param [String] policy
@@ -853,7 +853,7 @@ module Google
853
853
  execute_or_queue_command(command, &block)
854
854
  end
855
855
 
856
- # Create a new ResourceRecordSet.
856
+ # Creates a new ResourceRecordSet.
857
857
  # @param [String] project
858
858
  # Identifies the project addressed by this request.
859
859
  # @param [String] managed_zone
@@ -894,7 +894,7 @@ module Google
894
894
  execute_or_queue_command(command, &block)
895
895
  end
896
896
 
897
- # Delete a previously created ResourceRecordSet.
897
+ # Deletes a previously created ResourceRecordSet.
898
898
  # @param [String] project
899
899
  # Identifies the project addressed by this request.
900
900
  # @param [String] managed_zone
@@ -916,18 +916,16 @@ module Google
916
916
  # Request-specific options
917
917
  #
918
918
  # @yield [result, err] Result & error if block supplied
919
- # @yieldparam result [Google::Apis::DnsV1beta2::ResourceRecordSetsDeleteResponse] parsed result object
919
+ # @yieldparam result [NilClass] No result returned for this method
920
920
  # @yieldparam err [StandardError] error object if request failed
921
921
  #
922
- # @return [Google::Apis::DnsV1beta2::ResourceRecordSetsDeleteResponse]
922
+ # @return [void]
923
923
  #
924
924
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
925
925
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
926
926
  # @raise [Google::Apis::AuthorizationError] Authorization is required
927
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
928
  command = make_simple_command(:delete, 'dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets/{name}/{type}', options)
929
- command.response_representation = Google::Apis::DnsV1beta2::ResourceRecordSetsDeleteResponse::Representation
930
- command.response_class = Google::Apis::DnsV1beta2::ResourceRecordSetsDeleteResponse
931
929
  command.params['project'] = project unless project.nil?
932
930
  command.params['managedZone'] = managed_zone unless managed_zone.nil?
933
931
  command.params['name'] = name unless name.nil?
@@ -938,7 +936,7 @@ module Google
938
936
  execute_or_queue_command(command, &block)
939
937
  end
940
938
 
941
- # Fetch the representation of an existing ResourceRecordSet.
939
+ # Fetches the representation of an existing ResourceRecordSet.
942
940
  # @param [String] project
943
941
  # Identifies the project addressed by this request.
944
942
  # @param [String] managed_zone
@@ -982,7 +980,7 @@ module Google
982
980
  execute_or_queue_command(command, &block)
983
981
  end
984
982
 
985
- # Apply a partial update to an existing ResourceRecordSet.
983
+ # Applies a partial update to an existing ResourceRecordSet.
986
984
  # @param [String] project
987
985
  # Identifies the project addressed by this request.
988
986
  # @param [String] managed_zone
@@ -1029,7 +1027,7 @@ module Google
1029
1027
  execute_or_queue_command(command, &block)
1030
1028
  end
1031
1029
 
1032
- # Enumerate ResourceRecordSets that have been created but not yet deleted.
1030
+ # Enumerates ResourceRecordSets that you have created but not yet deleted.
1033
1031
  # @param [String] project
1034
1032
  # Identifies the project addressed by this request.
1035
1033
  # @param [String] managed_zone
@@ -1037,7 +1035,7 @@ module Google
1037
1035
  # name or ID.
1038
1036
  # @param [Fixnum] max_results
1039
1037
  # Optional. Maximum number of results to be returned. If unspecified, the server
1040
- # will decide how many results to return.
1038
+ # decides how many results to return.
1041
1039
  # @param [String] name
1042
1040
  # Restricts the list to return only records with this fully qualified domain
1043
1041
  # name.
@@ -1078,6 +1076,479 @@ module Google
1078
1076
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1079
1077
  execute_or_queue_command(command, &block)
1080
1078
  end
1079
+
1080
+ # Creates a new Response Policy
1081
+ # @param [String] project
1082
+ # Identifies the project addressed by this request.
1083
+ # @param [Google::Apis::DnsV1beta2::ResponsePolicy] response_policy_object
1084
+ # @param [String] client_operation_id
1085
+ # For mutating operation requests only. An optional identifier specified by the
1086
+ # client. Must be unique for operation resources in the Operations collection.
1087
+ # @param [String] fields
1088
+ # Selector specifying which fields to include in a partial response.
1089
+ # @param [String] quota_user
1090
+ # Available to use for quota purposes for server-side applications. Can be any
1091
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1092
+ # @param [Google::Apis::RequestOptions] options
1093
+ # Request-specific options
1094
+ #
1095
+ # @yield [result, err] Result & error if block supplied
1096
+ # @yieldparam result [Google::Apis::DnsV1beta2::ResponsePolicy] parsed result object
1097
+ # @yieldparam err [StandardError] error object if request failed
1098
+ #
1099
+ # @return [Google::Apis::DnsV1beta2::ResponsePolicy]
1100
+ #
1101
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1102
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1103
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1104
+ def create_response_policy(project, response_policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1105
+ command = make_simple_command(:post, 'dns/v1beta2/projects/{project}/responsePolicies', options)
1106
+ command.request_representation = Google::Apis::DnsV1beta2::ResponsePolicy::Representation
1107
+ command.request_object = response_policy_object
1108
+ command.response_representation = Google::Apis::DnsV1beta2::ResponsePolicy::Representation
1109
+ command.response_class = Google::Apis::DnsV1beta2::ResponsePolicy
1110
+ command.params['project'] = project unless project.nil?
1111
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1112
+ command.query['fields'] = fields unless fields.nil?
1113
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1114
+ execute_or_queue_command(command, &block)
1115
+ end
1116
+
1117
+ # Deletes a previously created Response Policy. Fails if the response policy is
1118
+ # non-empty or still being referenced by a network.
1119
+ # @param [String] project
1120
+ # Identifies the project addressed by this request.
1121
+ # @param [String] response_policy
1122
+ # User assigned name of the Response Policy addressed by this request.
1123
+ # @param [String] client_operation_id
1124
+ # For mutating operation requests only. An optional identifier specified by the
1125
+ # client. Must be unique for operation resources in the Operations collection.
1126
+ # @param [String] fields
1127
+ # Selector specifying which fields to include in a partial response.
1128
+ # @param [String] quota_user
1129
+ # Available to use for quota purposes for server-side applications. Can be any
1130
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1131
+ # @param [Google::Apis::RequestOptions] options
1132
+ # Request-specific options
1133
+ #
1134
+ # @yield [result, err] Result & error if block supplied
1135
+ # @yieldparam result [NilClass] No result returned for this method
1136
+ # @yieldparam err [StandardError] error object if request failed
1137
+ #
1138
+ # @return [void]
1139
+ #
1140
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1141
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1142
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1143
+ def delete_response_policy(project, response_policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1144
+ command = make_simple_command(:delete, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}', options)
1145
+ command.params['project'] = project unless project.nil?
1146
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1147
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1148
+ command.query['fields'] = fields unless fields.nil?
1149
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1150
+ execute_or_queue_command(command, &block)
1151
+ end
1152
+
1153
+ # Fetches the representation of an existing Response Policy.
1154
+ # @param [String] project
1155
+ # Identifies the project addressed by this request.
1156
+ # @param [String] response_policy
1157
+ # User assigned name of the Response Policy addressed by this request.
1158
+ # @param [String] client_operation_id
1159
+ # For mutating operation requests only. An optional identifier specified by the
1160
+ # client. Must be unique for operation resources in the Operations collection.
1161
+ # @param [String] fields
1162
+ # Selector specifying which fields to include in a partial response.
1163
+ # @param [String] quota_user
1164
+ # Available to use for quota purposes for server-side applications. Can be any
1165
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1166
+ # @param [Google::Apis::RequestOptions] options
1167
+ # Request-specific options
1168
+ #
1169
+ # @yield [result, err] Result & error if block supplied
1170
+ # @yieldparam result [Google::Apis::DnsV1beta2::ResponsePolicy] parsed result object
1171
+ # @yieldparam err [StandardError] error object if request failed
1172
+ #
1173
+ # @return [Google::Apis::DnsV1beta2::ResponsePolicy]
1174
+ #
1175
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1176
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1177
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1178
+ def get_response_policy(project, response_policy, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1179
+ command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}', options)
1180
+ command.response_representation = Google::Apis::DnsV1beta2::ResponsePolicy::Representation
1181
+ command.response_class = Google::Apis::DnsV1beta2::ResponsePolicy
1182
+ command.params['project'] = project unless project.nil?
1183
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1184
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1185
+ command.query['fields'] = fields unless fields.nil?
1186
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1187
+ execute_or_queue_command(command, &block)
1188
+ end
1189
+
1190
+ # Enumerates all Response Policies associated with a project.
1191
+ # @param [String] project
1192
+ # Identifies the project addressed by this request.
1193
+ # @param [Fixnum] max_results
1194
+ # Optional. Maximum number of results to be returned. If unspecified, the server
1195
+ # decides how many results to return.
1196
+ # @param [String] page_token
1197
+ # Optional. A tag returned by a previous list request that was truncated. Use
1198
+ # this parameter to continue a previous list request.
1199
+ # @param [String] fields
1200
+ # Selector specifying which fields to include in a partial response.
1201
+ # @param [String] quota_user
1202
+ # Available to use for quota purposes for server-side applications. Can be any
1203
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1204
+ # @param [Google::Apis::RequestOptions] options
1205
+ # Request-specific options
1206
+ #
1207
+ # @yield [result, err] Result & error if block supplied
1208
+ # @yieldparam result [Google::Apis::DnsV1beta2::ResponsePoliciesListResponse] parsed result object
1209
+ # @yieldparam err [StandardError] error object if request failed
1210
+ #
1211
+ # @return [Google::Apis::DnsV1beta2::ResponsePoliciesListResponse]
1212
+ #
1213
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1214
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1215
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1216
+ def list_response_policies(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1217
+ command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/responsePolicies', options)
1218
+ command.response_representation = Google::Apis::DnsV1beta2::ResponsePoliciesListResponse::Representation
1219
+ command.response_class = Google::Apis::DnsV1beta2::ResponsePoliciesListResponse
1220
+ command.params['project'] = project unless project.nil?
1221
+ command.query['maxResults'] = max_results unless max_results.nil?
1222
+ command.query['pageToken'] = page_token unless page_token.nil?
1223
+ command.query['fields'] = fields unless fields.nil?
1224
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1225
+ execute_or_queue_command(command, &block)
1226
+ end
1227
+
1228
+ # Applies a partial update to an existing Response Policy.
1229
+ # @param [String] project
1230
+ # Identifies the project addressed by this request.
1231
+ # @param [String] response_policy
1232
+ # User assigned name of the Respones Policy addressed by this request.
1233
+ # @param [Google::Apis::DnsV1beta2::ResponsePolicy] response_policy_object
1234
+ # @param [String] client_operation_id
1235
+ # For mutating operation requests only. An optional identifier specified by the
1236
+ # client. Must be unique for operation resources in the Operations collection.
1237
+ # @param [String] fields
1238
+ # Selector specifying which fields to include in a partial response.
1239
+ # @param [String] quota_user
1240
+ # Available to use for quota purposes for server-side applications. Can be any
1241
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1242
+ # @param [Google::Apis::RequestOptions] options
1243
+ # Request-specific options
1244
+ #
1245
+ # @yield [result, err] Result & error if block supplied
1246
+ # @yieldparam result [Google::Apis::DnsV1beta2::ResponsePoliciesPatchResponse] parsed result object
1247
+ # @yieldparam err [StandardError] error object if request failed
1248
+ #
1249
+ # @return [Google::Apis::DnsV1beta2::ResponsePoliciesPatchResponse]
1250
+ #
1251
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1252
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1253
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1254
+ def patch_response_policy(project, response_policy, response_policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1255
+ command = make_simple_command(:patch, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}', options)
1256
+ command.request_representation = Google::Apis::DnsV1beta2::ResponsePolicy::Representation
1257
+ command.request_object = response_policy_object
1258
+ command.response_representation = Google::Apis::DnsV1beta2::ResponsePoliciesPatchResponse::Representation
1259
+ command.response_class = Google::Apis::DnsV1beta2::ResponsePoliciesPatchResponse
1260
+ command.params['project'] = project unless project.nil?
1261
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1262
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1263
+ command.query['fields'] = fields unless fields.nil?
1264
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1265
+ execute_or_queue_command(command, &block)
1266
+ end
1267
+
1268
+ # Updates an existing Response Policy.
1269
+ # @param [String] project
1270
+ # Identifies the project addressed by this request.
1271
+ # @param [String] response_policy
1272
+ # User assigned name of the Response Policy addressed by this request.
1273
+ # @param [Google::Apis::DnsV1beta2::ResponsePolicy] response_policy_object
1274
+ # @param [String] client_operation_id
1275
+ # For mutating operation requests only. An optional identifier specified by the
1276
+ # client. Must be unique for operation resources in the Operations collection.
1277
+ # @param [String] fields
1278
+ # Selector specifying which fields to include in a partial response.
1279
+ # @param [String] quota_user
1280
+ # Available to use for quota purposes for server-side applications. Can be any
1281
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1282
+ # @param [Google::Apis::RequestOptions] options
1283
+ # Request-specific options
1284
+ #
1285
+ # @yield [result, err] Result & error if block supplied
1286
+ # @yieldparam result [Google::Apis::DnsV1beta2::ResponsePoliciesUpdateResponse] parsed result object
1287
+ # @yieldparam err [StandardError] error object if request failed
1288
+ #
1289
+ # @return [Google::Apis::DnsV1beta2::ResponsePoliciesUpdateResponse]
1290
+ #
1291
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1292
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1293
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1294
+ def update_response_policy(project, response_policy, response_policy_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1295
+ command = make_simple_command(:put, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}', options)
1296
+ command.request_representation = Google::Apis::DnsV1beta2::ResponsePolicy::Representation
1297
+ command.request_object = response_policy_object
1298
+ command.response_representation = Google::Apis::DnsV1beta2::ResponsePoliciesUpdateResponse::Representation
1299
+ command.response_class = Google::Apis::DnsV1beta2::ResponsePoliciesUpdateResponse
1300
+ command.params['project'] = project unless project.nil?
1301
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1302
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1303
+ command.query['fields'] = fields unless fields.nil?
1304
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1305
+ execute_or_queue_command(command, &block)
1306
+ end
1307
+
1308
+ # Creates a new Response Policy Rule.
1309
+ # @param [String] project
1310
+ # Identifies the project addressed by this request.
1311
+ # @param [String] response_policy
1312
+ # User assigned name of the Response Policy containing the Response Policy Rule.
1313
+ # @param [Google::Apis::DnsV1beta2::ResponsePolicyRule] response_policy_rule_object
1314
+ # @param [String] client_operation_id
1315
+ # For mutating operation requests only. An optional identifier specified by the
1316
+ # client. Must be unique for operation resources in the Operations collection.
1317
+ # @param [String] fields
1318
+ # Selector specifying which fields to include in a partial response.
1319
+ # @param [String] quota_user
1320
+ # Available to use for quota purposes for server-side applications. Can be any
1321
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1322
+ # @param [Google::Apis::RequestOptions] options
1323
+ # Request-specific options
1324
+ #
1325
+ # @yield [result, err] Result & error if block supplied
1326
+ # @yieldparam result [Google::Apis::DnsV1beta2::ResponsePolicyRule] parsed result object
1327
+ # @yieldparam err [StandardError] error object if request failed
1328
+ #
1329
+ # @return [Google::Apis::DnsV1beta2::ResponsePolicyRule]
1330
+ #
1331
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1332
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1333
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1334
+ def create_response_policy_rule(project, response_policy, response_policy_rule_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1335
+ command = make_simple_command(:post, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules', options)
1336
+ command.request_representation = Google::Apis::DnsV1beta2::ResponsePolicyRule::Representation
1337
+ command.request_object = response_policy_rule_object
1338
+ command.response_representation = Google::Apis::DnsV1beta2::ResponsePolicyRule::Representation
1339
+ command.response_class = Google::Apis::DnsV1beta2::ResponsePolicyRule
1340
+ command.params['project'] = project unless project.nil?
1341
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1342
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1343
+ command.query['fields'] = fields unless fields.nil?
1344
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1345
+ execute_or_queue_command(command, &block)
1346
+ end
1347
+
1348
+ # Deletes a previously created Response Policy Rule.
1349
+ # @param [String] project
1350
+ # Identifies the project addressed by this request.
1351
+ # @param [String] response_policy
1352
+ # User assigned name of the Response Policy containing the Response Policy Rule.
1353
+ # @param [String] response_policy_rule
1354
+ # User assigned name of the Response Policy Rule addressed by this request.
1355
+ # @param [String] client_operation_id
1356
+ # For mutating operation requests only. An optional identifier specified by the
1357
+ # client. Must be unique for operation resources in the Operations collection.
1358
+ # @param [String] fields
1359
+ # Selector specifying which fields to include in a partial response.
1360
+ # @param [String] quota_user
1361
+ # Available to use for quota purposes for server-side applications. Can be any
1362
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1363
+ # @param [Google::Apis::RequestOptions] options
1364
+ # Request-specific options
1365
+ #
1366
+ # @yield [result, err] Result & error if block supplied
1367
+ # @yieldparam result [NilClass] No result returned for this method
1368
+ # @yieldparam err [StandardError] error object if request failed
1369
+ #
1370
+ # @return [void]
1371
+ #
1372
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1373
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1374
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1375
+ def delete_response_policy_rule(project, response_policy, response_policy_rule, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1376
+ command = make_simple_command(:delete, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}', options)
1377
+ command.params['project'] = project unless project.nil?
1378
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1379
+ command.params['responsePolicyRule'] = response_policy_rule unless response_policy_rule.nil?
1380
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1381
+ command.query['fields'] = fields unless fields.nil?
1382
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1383
+ execute_or_queue_command(command, &block)
1384
+ end
1385
+
1386
+ # Fetches the representation of an existing Response Policy Rule.
1387
+ # @param [String] project
1388
+ # Identifies the project addressed by this request.
1389
+ # @param [String] response_policy
1390
+ # User assigned name of the Response Policy containing the Response Policy Rule.
1391
+ # @param [String] response_policy_rule
1392
+ # User assigned name of the Response Policy Rule addressed by this request.
1393
+ # @param [String] client_operation_id
1394
+ # For mutating operation requests only. An optional identifier specified by the
1395
+ # client. Must be unique for operation resources in the Operations collection.
1396
+ # @param [String] fields
1397
+ # Selector specifying which fields to include in a partial response.
1398
+ # @param [String] quota_user
1399
+ # Available to use for quota purposes for server-side applications. Can be any
1400
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1401
+ # @param [Google::Apis::RequestOptions] options
1402
+ # Request-specific options
1403
+ #
1404
+ # @yield [result, err] Result & error if block supplied
1405
+ # @yieldparam result [Google::Apis::DnsV1beta2::ResponsePolicyRule] parsed result object
1406
+ # @yieldparam err [StandardError] error object if request failed
1407
+ #
1408
+ # @return [Google::Apis::DnsV1beta2::ResponsePolicyRule]
1409
+ #
1410
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1411
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1412
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1413
+ def get_response_policy_rule(project, response_policy, response_policy_rule, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1414
+ command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}', options)
1415
+ command.response_representation = Google::Apis::DnsV1beta2::ResponsePolicyRule::Representation
1416
+ command.response_class = Google::Apis::DnsV1beta2::ResponsePolicyRule
1417
+ command.params['project'] = project unless project.nil?
1418
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1419
+ command.params['responsePolicyRule'] = response_policy_rule unless response_policy_rule.nil?
1420
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1421
+ command.query['fields'] = fields unless fields.nil?
1422
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1423
+ execute_or_queue_command(command, &block)
1424
+ end
1425
+
1426
+ # Enumerates all Response Policy Rules associated with a project.
1427
+ # @param [String] project
1428
+ # Identifies the project addressed by this request.
1429
+ # @param [String] response_policy
1430
+ # User assigned name of the Response Policy to list.
1431
+ # @param [Fixnum] max_results
1432
+ # Optional. Maximum number of results to be returned. If unspecified, the server
1433
+ # decides how many results to return.
1434
+ # @param [String] page_token
1435
+ # Optional. A tag returned by a previous list request that was truncated. Use
1436
+ # this parameter to continue a previous list request.
1437
+ # @param [String] fields
1438
+ # Selector specifying which fields to include in a partial response.
1439
+ # @param [String] quota_user
1440
+ # Available to use for quota purposes for server-side applications. Can be any
1441
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1442
+ # @param [Google::Apis::RequestOptions] options
1443
+ # Request-specific options
1444
+ #
1445
+ # @yield [result, err] Result & error if block supplied
1446
+ # @yieldparam result [Google::Apis::DnsV1beta2::ResponsePolicyRulesListResponse] parsed result object
1447
+ # @yieldparam err [StandardError] error object if request failed
1448
+ #
1449
+ # @return [Google::Apis::DnsV1beta2::ResponsePolicyRulesListResponse]
1450
+ #
1451
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1452
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1453
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1454
+ def list_response_policy_rules(project, response_policy, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1455
+ command = make_simple_command(:get, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules', options)
1456
+ command.response_representation = Google::Apis::DnsV1beta2::ResponsePolicyRulesListResponse::Representation
1457
+ command.response_class = Google::Apis::DnsV1beta2::ResponsePolicyRulesListResponse
1458
+ command.params['project'] = project unless project.nil?
1459
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1460
+ command.query['maxResults'] = max_results unless max_results.nil?
1461
+ command.query['pageToken'] = page_token unless page_token.nil?
1462
+ command.query['fields'] = fields unless fields.nil?
1463
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1464
+ execute_or_queue_command(command, &block)
1465
+ end
1466
+
1467
+ # Applies a partial update to an existing Response Policy Rule.
1468
+ # @param [String] project
1469
+ # Identifies the project addressed by this request.
1470
+ # @param [String] response_policy
1471
+ # User assigned name of the Response Policy containing the Response Policy Rule.
1472
+ # @param [String] response_policy_rule
1473
+ # User assigned name of the Response Policy Rule addressed by this request.
1474
+ # @param [Google::Apis::DnsV1beta2::ResponsePolicyRule] response_policy_rule_object
1475
+ # @param [String] client_operation_id
1476
+ # For mutating operation requests only. An optional identifier specified by the
1477
+ # client. Must be unique for operation resources in the Operations collection.
1478
+ # @param [String] fields
1479
+ # Selector specifying which fields to include in a partial response.
1480
+ # @param [String] quota_user
1481
+ # Available to use for quota purposes for server-side applications. Can be any
1482
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1483
+ # @param [Google::Apis::RequestOptions] options
1484
+ # Request-specific options
1485
+ #
1486
+ # @yield [result, err] Result & error if block supplied
1487
+ # @yieldparam result [Google::Apis::DnsV1beta2::ResponsePolicyRulesPatchResponse] parsed result object
1488
+ # @yieldparam err [StandardError] error object if request failed
1489
+ #
1490
+ # @return [Google::Apis::DnsV1beta2::ResponsePolicyRulesPatchResponse]
1491
+ #
1492
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1493
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1494
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1495
+ def patch_response_policy_rule(project, response_policy, response_policy_rule, response_policy_rule_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1496
+ command = make_simple_command(:patch, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}', options)
1497
+ command.request_representation = Google::Apis::DnsV1beta2::ResponsePolicyRule::Representation
1498
+ command.request_object = response_policy_rule_object
1499
+ command.response_representation = Google::Apis::DnsV1beta2::ResponsePolicyRulesPatchResponse::Representation
1500
+ command.response_class = Google::Apis::DnsV1beta2::ResponsePolicyRulesPatchResponse
1501
+ command.params['project'] = project unless project.nil?
1502
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1503
+ command.params['responsePolicyRule'] = response_policy_rule unless response_policy_rule.nil?
1504
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1505
+ command.query['fields'] = fields unless fields.nil?
1506
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1507
+ execute_or_queue_command(command, &block)
1508
+ end
1509
+
1510
+ # Updates an existing Response Policy Rule.
1511
+ # @param [String] project
1512
+ # Identifies the project addressed by this request.
1513
+ # @param [String] response_policy
1514
+ # User assigned name of the Response Policy containing the Response Policy Rule.
1515
+ # @param [String] response_policy_rule
1516
+ # User assigned name of the Response Policy Rule addressed by this request.
1517
+ # @param [Google::Apis::DnsV1beta2::ResponsePolicyRule] response_policy_rule_object
1518
+ # @param [String] client_operation_id
1519
+ # For mutating operation requests only. An optional identifier specified by the
1520
+ # client. Must be unique for operation resources in the Operations collection.
1521
+ # @param [String] fields
1522
+ # Selector specifying which fields to include in a partial response.
1523
+ # @param [String] quota_user
1524
+ # Available to use for quota purposes for server-side applications. Can be any
1525
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1526
+ # @param [Google::Apis::RequestOptions] options
1527
+ # Request-specific options
1528
+ #
1529
+ # @yield [result, err] Result & error if block supplied
1530
+ # @yieldparam result [Google::Apis::DnsV1beta2::ResponsePolicyRulesUpdateResponse] parsed result object
1531
+ # @yieldparam err [StandardError] error object if request failed
1532
+ #
1533
+ # @return [Google::Apis::DnsV1beta2::ResponsePolicyRulesUpdateResponse]
1534
+ #
1535
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1536
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1537
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1538
+ def update_response_policy_rule(project, response_policy, response_policy_rule, response_policy_rule_object = nil, client_operation_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1539
+ command = make_simple_command(:put, 'dns/v1beta2/projects/{project}/responsePolicies/{responsePolicy}/rules/{responsePolicyRule}', options)
1540
+ command.request_representation = Google::Apis::DnsV1beta2::ResponsePolicyRule::Representation
1541
+ command.request_object = response_policy_rule_object
1542
+ command.response_representation = Google::Apis::DnsV1beta2::ResponsePolicyRulesUpdateResponse::Representation
1543
+ command.response_class = Google::Apis::DnsV1beta2::ResponsePolicyRulesUpdateResponse
1544
+ command.params['project'] = project unless project.nil?
1545
+ command.params['responsePolicy'] = response_policy unless response_policy.nil?
1546
+ command.params['responsePolicyRule'] = response_policy_rule unless response_policy_rule.nil?
1547
+ command.query['clientOperationId'] = client_operation_id unless client_operation_id.nil?
1548
+ command.query['fields'] = fields unless fields.nil?
1549
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1550
+ execute_or_queue_command(command, &block)
1551
+ end
1081
1552
 
1082
1553
  protected
1083
1554