google-apis-servicenetworking_v1 0.46.0 → 0.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d790a4204e7bc8aa8f425c1893a23ac01176eefaff8ae22595a0dcdd21012644
4
- data.tar.gz: 1a1b497249249fdd04a57bef216eff2270eac0921ba45de1aed88c89d2ae8648
3
+ metadata.gz: b1b8764208960f0335ed52279f684fcfcea221eddd79a5762edd2d4fee28b784
4
+ data.tar.gz: 0573de6ee426fcd60bb14c6e54551858eeafcd15de26f5e2ad6c89444689ce97
5
5
  SHA512:
6
- metadata.gz: 47c6b84b749981cda5064dd9cd67162ce2856c03ed41c3979feb2ef79eb06d0e220adcee64083933b9f5e660b5525b6e60c97d6f8cfe07b4d9d72d25e9532eb6
7
- data.tar.gz: a0f27e9d0afa9fcd9d7bd2d276707072eaffc90a360c2c4f73aab09d1fb5dc1731c644a2dcdaf245f4557d4397498724d556bce7f815babce1add8e588528ad4
6
+ metadata.gz: a5cbdf33b4149309f1adfb4b1b3541b5f7e2c5ee44b2624b73e7a8481fb93039be31db273990381dd309546b49ff239a033252e502cdb1a19efe905ca5cce2ca
7
+ data.tar.gz: c03c8d5bb4ae5d91bd5e212c54c50244915de72cee2bbcd470e36caf8f2f0d1516ce827c516f0dc454a357bfb40cb33d6b4a3535014ab658fa40a0ee863d0397
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-servicenetworking_v1
2
2
 
3
+ ### v0.48.0 (2023-08-06)
4
+
5
+ * Regenerated from discovery document revision 20230802
6
+
7
+ ### v0.47.0 (2023-07-23)
8
+
9
+ * Regenerated from discovery document revision 20230719
10
+
3
11
  ### v0.46.0 (2023-07-02)
4
12
 
5
13
  * Regenerated from discovery document revision 20230626
@@ -1279,6 +1279,11 @@ module Google
1279
1279
  # @return [String]
1280
1280
  attr_accessor :environment
1281
1281
 
1282
+ # Defines policies applying to the API methods of the service.
1283
+ # Corresponds to the JSON property `methodPolicies`
1284
+ # @return [Array<Google::Apis::ServicenetworkingV1::MethodPolicy>]
1285
+ attr_accessor :method_policies
1286
+
1282
1287
  def initialize(**args)
1283
1288
  update!(**args)
1284
1289
  end
@@ -1286,6 +1291,7 @@ module Google
1286
1291
  # Update properties of this object
1287
1292
  def update!(**args)
1288
1293
  @environment = args[:environment] if args.key?(:environment)
1294
+ @method_policies = args[:method_policies] if args.key?(:method_policies)
1289
1295
  end
1290
1296
  end
1291
1297
 
@@ -1529,6 +1535,31 @@ module Google
1529
1535
  end
1530
1536
  end
1531
1537
 
1538
+ # * Represents a pair of private and peering DNS zone resources. *
1539
+ class DnsZonePair
1540
+ include Google::Apis::Core::Hashable
1541
+
1542
+ # Represents a DNS zone resource.
1543
+ # Corresponds to the JSON property `consumerPeeringZone`
1544
+ # @return [Google::Apis::ServicenetworkingV1::DnsZone]
1545
+ attr_accessor :consumer_peering_zone
1546
+
1547
+ # Represents a DNS zone resource.
1548
+ # Corresponds to the JSON property `producerPrivateZone`
1549
+ # @return [Google::Apis::ServicenetworkingV1::DnsZone]
1550
+ attr_accessor :producer_private_zone
1551
+
1552
+ def initialize(**args)
1553
+ update!(**args)
1554
+ end
1555
+
1556
+ # Update properties of this object
1557
+ def update!(**args)
1558
+ @consumer_peering_zone = args[:consumer_peering_zone] if args.key?(:consumer_peering_zone)
1559
+ @producer_private_zone = args[:producer_private_zone] if args.key?(:producer_private_zone)
1560
+ end
1561
+ end
1562
+
1532
1563
  # `Documentation` provides the information for describing a service. Example:
1533
1564
  # documentation: summary: > The Google Calendar API gives access to most
1534
1565
  # calendar features. pages: - name: Overview content: (== include google/foo/
@@ -1979,6 +2010,76 @@ module Google
1979
2010
  end
1980
2011
  end
1981
2012
 
2013
+ # Google API Policy Annotation This message defines a simple API policy
2014
+ # annotation that can be used to annotate API request and response message
2015
+ # fields with applicable policies. One field may have multiple applicable
2016
+ # policies that must all be satisfied before a request can be processed. This
2017
+ # policy annotation is used to generate the overall policy that will be used for
2018
+ # automatic runtime policy enforcement and documentation generation.
2019
+ class FieldPolicy
2020
+ include Google::Apis::Core::Hashable
2021
+
2022
+ # Specifies the required permission(s) for the resource referred to by the field.
2023
+ # It requires the field contains a valid resource reference, and the request
2024
+ # must pass the permission checks to proceed. For example, "resourcemanager.
2025
+ # projects.get".
2026
+ # Corresponds to the JSON property `resourcePermission`
2027
+ # @return [String]
2028
+ attr_accessor :resource_permission
2029
+
2030
+ # Specifies the resource type for the resource referred to by the field.
2031
+ # Corresponds to the JSON property `resourceType`
2032
+ # @return [String]
2033
+ attr_accessor :resource_type
2034
+
2035
+ # Selects one or more request or response message fields to apply this `
2036
+ # FieldPolicy`. When a `FieldPolicy` is used in proto annotation, the selector
2037
+ # must be left as empty. The service config generator will automatically fill
2038
+ # the correct value. When a `FieldPolicy` is used in service config, the
2039
+ # selector must be a comma-separated string with valid request or response field
2040
+ # paths, such as "foo.bar" or "foo.bar,foo.baz".
2041
+ # Corresponds to the JSON property `selector`
2042
+ # @return [String]
2043
+ attr_accessor :selector
2044
+
2045
+ def initialize(**args)
2046
+ update!(**args)
2047
+ end
2048
+
2049
+ # Update properties of this object
2050
+ def update!(**args)
2051
+ @resource_permission = args[:resource_permission] if args.key?(:resource_permission)
2052
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
2053
+ @selector = args[:selector] if args.key?(:selector)
2054
+ end
2055
+ end
2056
+
2057
+ # Represents managed DNS zones created in the shared Producer host and consumer
2058
+ # projects.
2059
+ class GetDnsZoneResponse
2060
+ include Google::Apis::Core::Hashable
2061
+
2062
+ # Represents a DNS zone resource.
2063
+ # Corresponds to the JSON property `consumerPeeringZone`
2064
+ # @return [Google::Apis::ServicenetworkingV1::DnsZone]
2065
+ attr_accessor :consumer_peering_zone
2066
+
2067
+ # Represents a DNS zone resource.
2068
+ # Corresponds to the JSON property `producerPrivateZone`
2069
+ # @return [Google::Apis::ServicenetworkingV1::DnsZone]
2070
+ attr_accessor :producer_private_zone
2071
+
2072
+ def initialize(**args)
2073
+ update!(**args)
2074
+ end
2075
+
2076
+ # Update properties of this object
2077
+ def update!(**args)
2078
+ @consumer_peering_zone = args[:consumer_peering_zone] if args.key?(:consumer_peering_zone)
2079
+ @producer_private_zone = args[:producer_private_zone] if args.key?(:producer_private_zone)
2080
+ end
2081
+ end
2082
+
1982
2083
  # Settings for Go client libraries.
1983
2084
  class GoSettings
1984
2085
  include Google::Apis::Core::Hashable
@@ -2497,6 +2598,46 @@ module Google
2497
2598
  end
2498
2599
  end
2499
2600
 
2601
+ # Represents all DNS RecordSets associated with the producer network
2602
+ class ListDnsRecordSetsResponse
2603
+ include Google::Apis::Core::Hashable
2604
+
2605
+ # DNS record Set Resource
2606
+ # Corresponds to the JSON property `dnsRecordSets`
2607
+ # @return [Array<Google::Apis::ServicenetworkingV1::DnsRecordSet>]
2608
+ attr_accessor :dns_record_sets
2609
+
2610
+ def initialize(**args)
2611
+ update!(**args)
2612
+ end
2613
+
2614
+ # Update properties of this object
2615
+ def update!(**args)
2616
+ @dns_record_sets = args[:dns_record_sets] if args.key?(:dns_record_sets)
2617
+ end
2618
+ end
2619
+
2620
+ # Represents all DNS zones in the shared producer host project and the matching
2621
+ # peering zones in the consumer project.
2622
+ class ListDnsZonesResponse
2623
+ include Google::Apis::Core::Hashable
2624
+
2625
+ # All pairs of private DNS zones in the shared producer host project and the
2626
+ # matching peering zones in the consumer project..
2627
+ # Corresponds to the JSON property `dnsZonePairs`
2628
+ # @return [Array<Google::Apis::ServicenetworkingV1::DnsZonePair>]
2629
+ attr_accessor :dns_zone_pairs
2630
+
2631
+ def initialize(**args)
2632
+ update!(**args)
2633
+ end
2634
+
2635
+ # Update properties of this object
2636
+ def update!(**args)
2637
+ @dns_zone_pairs = args[:dns_zone_pairs] if args.key?(:dns_zone_pairs)
2638
+ end
2639
+ end
2640
+
2500
2641
  # The response message for Operations.ListOperations.
2501
2642
  class ListOperationsResponse
2502
2643
  include Google::Apis::Core::Hashable
@@ -2755,6 +2896,34 @@ module Google
2755
2896
  end
2756
2897
  end
2757
2898
 
2899
+ # Defines policies applying to an RPC method.
2900
+ class MethodPolicy
2901
+ include Google::Apis::Core::Hashable
2902
+
2903
+ # Policies that are applicable to the request message.
2904
+ # Corresponds to the JSON property `requestPolicies`
2905
+ # @return [Array<Google::Apis::ServicenetworkingV1::FieldPolicy>]
2906
+ attr_accessor :request_policies
2907
+
2908
+ # Selects a method to which these policies should be enforced, for example, "
2909
+ # google.pubsub.v1.Subscriber.CreateSubscription". Refer to selector for syntax
2910
+ # details. NOTE: This field must not be set in the proto annotation. It will be
2911
+ # automatically filled by the service config compiler .
2912
+ # Corresponds to the JSON property `selector`
2913
+ # @return [String]
2914
+ attr_accessor :selector
2915
+
2916
+ def initialize(**args)
2917
+ update!(**args)
2918
+ end
2919
+
2920
+ # Update properties of this object
2921
+ def update!(**args)
2922
+ @request_policies = args[:request_policies] if args.key?(:request_policies)
2923
+ @selector = args[:selector] if args.key?(:selector)
2924
+ end
2925
+ end
2926
+
2758
2927
  # Describes the generator configuration for a method.
2759
2928
  class MethodSettings
2760
2929
  include Google::Apis::Core::Hashable
@@ -3290,13 +3459,13 @@ module Google
3290
3459
  # @return [String]
3291
3460
  attr_accessor :name
3292
3461
 
3293
- # The normal response of the operation in case of success. If the original
3294
- # method returns no data on success, such as `Delete`, the response is `google.
3295
- # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
3296
- # the response should be the resource. For other methods, the response should
3297
- # have the type `XxxResponse`, where `Xxx` is the original method name. For
3298
- # example, if the original method name is `TakeSnapshot()`, the inferred
3299
- # response type is `TakeSnapshotResponse`.
3462
+ # The normal, successful response of the operation. If the original method
3463
+ # returns no data on success, such as `Delete`, the response is `google.protobuf.
3464
+ # Empty`. If the original method is standard `Get`/`Create`/`Update`, the
3465
+ # response should be the resource. For other methods, the response should have
3466
+ # the type `XxxResponse`, where `Xxx` is the original method name. For example,
3467
+ # if the original method name is `TakeSnapshot()`, the inferred response type is
3468
+ # `TakeSnapshotResponse`.
3300
3469
  # Corresponds to the JSON property `response`
3301
3470
  # @return [Hash<String,Object>]
3302
3471
  attr_accessor :response
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ServicenetworkingV1
18
18
  # Version of the google-apis-servicenetworking_v1 gem
19
- GEM_VERSION = "0.46.0"
19
+ GEM_VERSION = "0.48.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230626"
25
+ REVISION = "20230802"
26
26
  end
27
27
  end
28
28
  end
@@ -256,6 +256,12 @@ module Google
256
256
  include Google::Apis::Core::JsonObjectSupport
257
257
  end
258
258
 
259
+ class DnsZonePair
260
+ class Representation < Google::Apis::Core::JsonRepresentation; end
261
+
262
+ include Google::Apis::Core::JsonObjectSupport
263
+ end
264
+
259
265
  class Documentation
260
266
  class Representation < Google::Apis::Core::JsonRepresentation; end
261
267
 
@@ -310,6 +316,18 @@ module Google
310
316
  include Google::Apis::Core::JsonObjectSupport
311
317
  end
312
318
 
319
+ class FieldPolicy
320
+ class Representation < Google::Apis::Core::JsonRepresentation; end
321
+
322
+ include Google::Apis::Core::JsonObjectSupport
323
+ end
324
+
325
+ class GetDnsZoneResponse
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
313
331
  class GoSettings
314
332
  class Representation < Google::Apis::Core::JsonRepresentation; end
315
333
 
@@ -370,6 +388,18 @@ module Google
370
388
  include Google::Apis::Core::JsonObjectSupport
371
389
  end
372
390
 
391
+ class ListDnsRecordSetsResponse
392
+ class Representation < Google::Apis::Core::JsonRepresentation; end
393
+
394
+ include Google::Apis::Core::JsonObjectSupport
395
+ end
396
+
397
+ class ListDnsZonesResponse
398
+ class Representation < Google::Apis::Core::JsonRepresentation; end
399
+
400
+ include Google::Apis::Core::JsonObjectSupport
401
+ end
402
+
373
403
  class ListOperationsResponse
374
404
  class Representation < Google::Apis::Core::JsonRepresentation; end
375
405
 
@@ -412,6 +442,12 @@ module Google
412
442
  include Google::Apis::Core::JsonObjectSupport
413
443
  end
414
444
 
445
+ class MethodPolicy
446
+ class Representation < Google::Apis::Core::JsonRepresentation; end
447
+
448
+ include Google::Apis::Core::JsonObjectSupport
449
+ end
450
+
415
451
  class MethodSettings
416
452
  class Representation < Google::Apis::Core::JsonRepresentation; end
417
453
 
@@ -1023,6 +1059,8 @@ module Google
1023
1059
  # @private
1024
1060
  class Representation < Google::Apis::Core::JsonRepresentation
1025
1061
  property :environment, as: 'environment'
1062
+ collection :method_policies, as: 'methodPolicies', class: Google::Apis::ServicenetworkingV1::MethodPolicy, decorator: Google::Apis::ServicenetworkingV1::MethodPolicy::Representation
1063
+
1026
1064
  end
1027
1065
  end
1028
1066
 
@@ -1103,6 +1141,16 @@ module Google
1103
1141
  end
1104
1142
  end
1105
1143
 
1144
+ class DnsZonePair
1145
+ # @private
1146
+ class Representation < Google::Apis::Core::JsonRepresentation
1147
+ property :consumer_peering_zone, as: 'consumerPeeringZone', class: Google::Apis::ServicenetworkingV1::DnsZone, decorator: Google::Apis::ServicenetworkingV1::DnsZone::Representation
1148
+
1149
+ property :producer_private_zone, as: 'producerPrivateZone', class: Google::Apis::ServicenetworkingV1::DnsZone, decorator: Google::Apis::ServicenetworkingV1::DnsZone::Representation
1150
+
1151
+ end
1152
+ end
1153
+
1106
1154
  class Documentation
1107
1155
  # @private
1108
1156
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1207,6 +1255,25 @@ module Google
1207
1255
  end
1208
1256
  end
1209
1257
 
1258
+ class FieldPolicy
1259
+ # @private
1260
+ class Representation < Google::Apis::Core::JsonRepresentation
1261
+ property :resource_permission, as: 'resourcePermission'
1262
+ property :resource_type, as: 'resourceType'
1263
+ property :selector, as: 'selector'
1264
+ end
1265
+ end
1266
+
1267
+ class GetDnsZoneResponse
1268
+ # @private
1269
+ class Representation < Google::Apis::Core::JsonRepresentation
1270
+ property :consumer_peering_zone, as: 'consumerPeeringZone', class: Google::Apis::ServicenetworkingV1::DnsZone, decorator: Google::Apis::ServicenetworkingV1::DnsZone::Representation
1271
+
1272
+ property :producer_private_zone, as: 'producerPrivateZone', class: Google::Apis::ServicenetworkingV1::DnsZone, decorator: Google::Apis::ServicenetworkingV1::DnsZone::Representation
1273
+
1274
+ end
1275
+ end
1276
+
1210
1277
  class GoSettings
1211
1278
  # @private
1212
1279
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1308,6 +1375,22 @@ module Google
1308
1375
  end
1309
1376
  end
1310
1377
 
1378
+ class ListDnsRecordSetsResponse
1379
+ # @private
1380
+ class Representation < Google::Apis::Core::JsonRepresentation
1381
+ collection :dns_record_sets, as: 'dnsRecordSets', class: Google::Apis::ServicenetworkingV1::DnsRecordSet, decorator: Google::Apis::ServicenetworkingV1::DnsRecordSet::Representation
1382
+
1383
+ end
1384
+ end
1385
+
1386
+ class ListDnsZonesResponse
1387
+ # @private
1388
+ class Representation < Google::Apis::Core::JsonRepresentation
1389
+ collection :dns_zone_pairs, as: 'dnsZonePairs', class: Google::Apis::ServicenetworkingV1::DnsZonePair, decorator: Google::Apis::ServicenetworkingV1::DnsZonePair::Representation
1390
+
1391
+ end
1392
+ end
1393
+
1311
1394
  class ListOperationsResponse
1312
1395
  # @private
1313
1396
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1378,6 +1461,15 @@ module Google
1378
1461
  end
1379
1462
  end
1380
1463
 
1464
+ class MethodPolicy
1465
+ # @private
1466
+ class Representation < Google::Apis::Core::JsonRepresentation
1467
+ collection :request_policies, as: 'requestPolicies', class: Google::Apis::ServicenetworkingV1::FieldPolicy, decorator: Google::Apis::ServicenetworkingV1::FieldPolicy::Representation
1468
+
1469
+ property :selector, as: 'selector'
1470
+ end
1471
+ end
1472
+
1381
1473
  class MethodSettings
1382
1474
  # @private
1383
1475
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -587,6 +587,96 @@ module Google
587
587
  execute_or_queue_command(command, &block)
588
588
  end
589
589
 
590
+ # Producers can use this method to retrieve information about the DNS record set
591
+ # added to the private zone inside the shared tenant host project associated
592
+ # with a consumer network.
593
+ # @param [String] parent
594
+ # Required. Parent resource identifying the connection which owns this
595
+ # collection of DNS zones in the format services/`service`.
596
+ # @param [String] consumer_network
597
+ # Required. The consumer network containing the record set. Must be in the form
598
+ # of projects/`project`/global/networks/`network`
599
+ # @param [String] domain
600
+ # Required. The domain name of the zone containing the recordset.
601
+ # @param [String] type
602
+ # Required. RecordSet Type eg. type='A'. See the list of [Supported DNS Types](
603
+ # https://dns.corp.google.com/docs/overview).
604
+ # @param [String] zone
605
+ # Required. The name of the zone containing the record set.
606
+ # @param [String] fields
607
+ # Selector specifying which fields to include in a partial response.
608
+ # @param [String] quota_user
609
+ # Available to use for quota purposes for server-side applications. Can be any
610
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
611
+ # @param [Google::Apis::RequestOptions] options
612
+ # Request-specific options
613
+ #
614
+ # @yield [result, err] Result & error if block supplied
615
+ # @yieldparam result [Google::Apis::ServicenetworkingV1::DnsRecordSet] parsed result object
616
+ # @yieldparam err [StandardError] error object if request failed
617
+ #
618
+ # @return [Google::Apis::ServicenetworkingV1::DnsRecordSet]
619
+ #
620
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
621
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
622
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
623
+ def get_service_dns_record_set(parent, consumer_network: nil, domain: nil, type: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
624
+ command = make_simple_command(:get, 'v1/{+parent}/dnsRecordSets:get', options)
625
+ command.response_representation = Google::Apis::ServicenetworkingV1::DnsRecordSet::Representation
626
+ command.response_class = Google::Apis::ServicenetworkingV1::DnsRecordSet
627
+ command.params['parent'] = parent unless parent.nil?
628
+ command.query['consumerNetwork'] = consumer_network unless consumer_network.nil?
629
+ command.query['domain'] = domain unless domain.nil?
630
+ command.query['type'] = type unless type.nil?
631
+ command.query['zone'] = zone unless zone.nil?
632
+ command.query['fields'] = fields unless fields.nil?
633
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
634
+ execute_or_queue_command(command, &block)
635
+ end
636
+
637
+ # Producers can use this method to retrieve a list of available DNS RecordSets
638
+ # available inside the private zone on the tenant host project accessible from
639
+ # their network.
640
+ # @param [String] parent
641
+ # Required. The service that is managing peering connectivity for a service
642
+ # producer's organization. For Google services that support this functionality,
643
+ # this value is `services/servicenetworking.googleapis.com`.
644
+ # @param [String] consumer_network
645
+ # Required. The network that the consumer is using to connect with services.
646
+ # Must be in the form of projects/`project`/global/networks/`network` `project`
647
+ # is the project number, as in '12345' `network` is the network name.
648
+ # @param [String] zone
649
+ # Required. The name of the private DNS zone in the shared producer host project
650
+ # from which the record set will be removed.
651
+ # @param [String] fields
652
+ # Selector specifying which fields to include in a partial response.
653
+ # @param [String] quota_user
654
+ # Available to use for quota purposes for server-side applications. Can be any
655
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
656
+ # @param [Google::Apis::RequestOptions] options
657
+ # Request-specific options
658
+ #
659
+ # @yield [result, err] Result & error if block supplied
660
+ # @yieldparam result [Google::Apis::ServicenetworkingV1::ListDnsRecordSetsResponse] parsed result object
661
+ # @yieldparam err [StandardError] error object if request failed
662
+ #
663
+ # @return [Google::Apis::ServicenetworkingV1::ListDnsRecordSetsResponse]
664
+ #
665
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
666
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
667
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
668
+ def list_service_dns_record_sets(parent, consumer_network: nil, zone: nil, fields: nil, quota_user: nil, options: nil, &block)
669
+ command = make_simple_command(:get, 'v1/{+parent}/dnsRecordSets:list', options)
670
+ command.response_representation = Google::Apis::ServicenetworkingV1::ListDnsRecordSetsResponse::Representation
671
+ command.response_class = Google::Apis::ServicenetworkingV1::ListDnsRecordSetsResponse
672
+ command.params['parent'] = parent unless parent.nil?
673
+ command.query['consumerNetwork'] = consumer_network unless consumer_network.nil?
674
+ command.query['zone'] = zone unless zone.nil?
675
+ command.query['fields'] = fields unless fields.nil?
676
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
677
+ execute_or_queue_command(command, &block)
678
+ end
679
+
590
680
  # Service producers can use this method to remove DNS record sets from private
591
681
  # DNS zones in the shared producer host project.
592
682
  # @param [String] parent
@@ -659,6 +749,42 @@ module Google
659
749
  execute_or_queue_command(command, &block)
660
750
  end
661
751
 
752
+ # Service producers can use this method to retrieve a DNS zone in the shared
753
+ # producer host project and the matching peering zones in consumer project
754
+ # @param [String] name
755
+ # Required. The network that the consumer is using to connect with services.
756
+ # Must be in the form of services/`service`/projects/`project`/global/networks/`
757
+ # network`/zones/`zoneName` Where `service` is the peering service that is
758
+ # managing connectivity for the service producer's organization. For Google
759
+ # services that support this `project` is the project number, as in '12345' `
760
+ # network` is the network name. `zoneName` is the DNS zone name
761
+ # @param [String] fields
762
+ # Selector specifying which fields to include in a partial response.
763
+ # @param [String] quota_user
764
+ # Available to use for quota purposes for server-side applications. Can be any
765
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
766
+ # @param [Google::Apis::RequestOptions] options
767
+ # Request-specific options
768
+ #
769
+ # @yield [result, err] Result & error if block supplied
770
+ # @yieldparam result [Google::Apis::ServicenetworkingV1::GetDnsZoneResponse] parsed result object
771
+ # @yieldparam err [StandardError] error object if request failed
772
+ #
773
+ # @return [Google::Apis::ServicenetworkingV1::GetDnsZoneResponse]
774
+ #
775
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
776
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
777
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
778
+ def get_service_dns_zone(name, fields: nil, quota_user: nil, options: nil, &block)
779
+ command = make_simple_command(:get, 'v1/{+name}/dnsZone:get', options)
780
+ command.response_representation = Google::Apis::ServicenetworkingV1::GetDnsZoneResponse::Representation
781
+ command.response_class = Google::Apis::ServicenetworkingV1::GetDnsZoneResponse
782
+ command.params['name'] = name unless name.nil?
783
+ command.query['fields'] = fields unless fields.nil?
784
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
785
+ execute_or_queue_command(command, &block)
786
+ end
787
+
662
788
  # Service producers can use this method to add private DNS zones in the shared
663
789
  # producer host project and matching peering zones in the consumer project.
664
790
  # @param [String] parent
@@ -695,6 +821,44 @@ module Google
695
821
  execute_or_queue_command(command, &block)
696
822
  end
697
823
 
824
+ # * Service producers can use this method to retrieve a list of available DNS
825
+ # zones in the shared producer host project and the matching peering zones in
826
+ # the consumer project. *
827
+ # @param [String] parent
828
+ # Required. Parent resource identifying the connection which owns this
829
+ # collection of DNS zones in the format services/`service`/projects/`project`/
830
+ # global/networks/`network` Service: The service that is managing connectivity
831
+ # for the service producer's organization. For Google services that support this
832
+ # functionality, this value is `servicenetworking.googleapis.com`. Projects: the
833
+ # consumer project containing the consumer network. Network: The consumer
834
+ # network accessible from the tenant project.
835
+ # @param [String] fields
836
+ # Selector specifying which fields to include in a partial response.
837
+ # @param [String] quota_user
838
+ # Available to use for quota purposes for server-side applications. Can be any
839
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
840
+ # @param [Google::Apis::RequestOptions] options
841
+ # Request-specific options
842
+ #
843
+ # @yield [result, err] Result & error if block supplied
844
+ # @yieldparam result [Google::Apis::ServicenetworkingV1::ListDnsZonesResponse] parsed result object
845
+ # @yieldparam err [StandardError] error object if request failed
846
+ #
847
+ # @return [Google::Apis::ServicenetworkingV1::ListDnsZonesResponse]
848
+ #
849
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
850
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
851
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
852
+ def list_service_dns_zones(parent, fields: nil, quota_user: nil, options: nil, &block)
853
+ command = make_simple_command(:get, 'v1/{+parent}/dnsZones:list', options)
854
+ command.response_representation = Google::Apis::ServicenetworkingV1::ListDnsZonesResponse::Representation
855
+ command.response_class = Google::Apis::ServicenetworkingV1::ListDnsZonesResponse
856
+ command.params['parent'] = parent unless parent.nil?
857
+ command.query['fields'] = fields unless fields.nil?
858
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
859
+ execute_or_queue_command(command, &block)
860
+ end
861
+
698
862
  # Service producers can use this method to remove private DNS zones in the
699
863
  # shared producer host project and matching peering zones in the consumer
700
864
  # project.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-servicenetworking_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.46.0
4
+ version: 0.48.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-02 00:00:00.000000000 Z
11
+ date: 2023-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-servicenetworking_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-servicenetworking_v1/v0.46.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-servicenetworking_v1/v0.48.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-servicenetworking_v1
63
63
  post_install_message:
64
64
  rdoc_options: []