google-apis-servicenetworking_v1 0.47.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: 997e9523b1fc763060cb251d696f0452b04115984648ca8e360f9beb95feaa71
4
- data.tar.gz: 6fc317915d9f4669fab8ce49495d114f3a4f4cd78ad7c950ba65742709295df9
3
+ metadata.gz: b1b8764208960f0335ed52279f684fcfcea221eddd79a5762edd2d4fee28b784
4
+ data.tar.gz: 0573de6ee426fcd60bb14c6e54551858eeafcd15de26f5e2ad6c89444689ce97
5
5
  SHA512:
6
- metadata.gz: 828a4c327382d0cf1b1c41572f4de1fdc3f0d936573061aa50d4e091c7c6ce17cb970b6a1eac3071128e3d0cc88b960669149dfbd75eb50523dda9fe692a398e
7
- data.tar.gz: a683c56d29e2c8319b944937c4915d08473c44bd2364555631ab593db7e6050c225195d884f93d79c52433e4ab48ae4335586e18d32c9def9d67065b8cd501f0
6
+ metadata.gz: a5cbdf33b4149309f1adfb4b1b3541b5f7e2c5ee44b2624b73e7a8481fb93039be31db273990381dd309546b49ff239a033252e502cdb1a19efe905ca5cce2ca
7
+ data.tar.gz: c03c8d5bb4ae5d91bd5e212c54c50244915de72cee2bbcd470e36caf8f2f0d1516ce827c516f0dc454a357bfb40cb33d6b4a3535014ab658fa40a0ee863d0397
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.47.0 (2023-07-23)
4
8
 
5
9
  * Regenerated from discovery document revision 20230719
@@ -2054,6 +2054,32 @@ module Google
2054
2054
  end
2055
2055
  end
2056
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
+
2057
2083
  # Settings for Go client libraries.
2058
2084
  class GoSettings
2059
2085
  include Google::Apis::Core::Hashable
@@ -2572,6 +2598,25 @@ module Google
2572
2598
  end
2573
2599
  end
2574
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
+
2575
2620
  # Represents all DNS zones in the shared producer host project and the matching
2576
2621
  # peering zones in the consumer project.
2577
2622
  class ListDnsZonesResponse
@@ -3414,13 +3459,13 @@ module Google
3414
3459
  # @return [String]
3415
3460
  attr_accessor :name
3416
3461
 
3417
- # The normal response of the operation in case of success. If the original
3418
- # method returns no data on success, such as `Delete`, the response is `google.
3419
- # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`,
3420
- # the response should be the resource. For other methods, the response should
3421
- # have the type `XxxResponse`, where `Xxx` is the original method name. For
3422
- # example, if the original method name is `TakeSnapshot()`, the inferred
3423
- # 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`.
3424
3469
  # Corresponds to the JSON property `response`
3425
3470
  # @return [Hash<String,Object>]
3426
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.47.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 = "20230719"
25
+ REVISION = "20230802"
26
26
  end
27
27
  end
28
28
  end
@@ -322,6 +322,12 @@ module Google
322
322
  include Google::Apis::Core::JsonObjectSupport
323
323
  end
324
324
 
325
+ class GetDnsZoneResponse
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+
328
+ include Google::Apis::Core::JsonObjectSupport
329
+ end
330
+
325
331
  class GoSettings
326
332
  class Representation < Google::Apis::Core::JsonRepresentation; end
327
333
 
@@ -382,6 +388,12 @@ module Google
382
388
  include Google::Apis::Core::JsonObjectSupport
383
389
  end
384
390
 
391
+ class ListDnsRecordSetsResponse
392
+ class Representation < Google::Apis::Core::JsonRepresentation; end
393
+
394
+ include Google::Apis::Core::JsonObjectSupport
395
+ end
396
+
385
397
  class ListDnsZonesResponse
386
398
  class Representation < Google::Apis::Core::JsonRepresentation; end
387
399
 
@@ -1252,6 +1264,16 @@ module Google
1252
1264
  end
1253
1265
  end
1254
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
+
1255
1277
  class GoSettings
1256
1278
  # @private
1257
1279
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1353,6 +1375,14 @@ module Google
1353
1375
  end
1354
1376
  end
1355
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
+
1356
1386
  class ListDnsZonesResponse
1357
1387
  # @private
1358
1388
  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
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.47.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-23 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.47.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: []