google-apis-servicenetworking_v1 0.47.0 → 0.49.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: 66e8f913f807ab1799d69ac6733669f67340f4c63200d0c2e0e64f57d9a0750a
4
+ data.tar.gz: da63cb6014416edb5483aac093d15afd2e4cd048294561a7888e0f1cea2cd28d
5
5
  SHA512:
6
- metadata.gz: 828a4c327382d0cf1b1c41572f4de1fdc3f0d936573061aa50d4e091c7c6ce17cb970b6a1eac3071128e3d0cc88b960669149dfbd75eb50523dda9fe692a398e
7
- data.tar.gz: a683c56d29e2c8319b944937c4915d08473c44bd2364555631ab593db7e6050c225195d884f93d79c52433e4ab48ae4335586e18d32c9def9d67065b8cd501f0
6
+ metadata.gz: e02a9c4b5fd22096c076679fc429f5eec1f6170b8d1cc708eb35d96b8042245ab5757ff74da2891038d910259e51c41053cf1d8657784a4b1945cb4ab4f982e4
7
+ data.tar.gz: 4dc6476fa9b16ce74c7d7c7ce303e73fa3379f37ca14b9ebbfbc2f7b7f9234b859a26ab14a7a0040282cfe5288de05d11c6368617946a49be54db43bf82636e6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-servicenetworking_v1
2
2
 
3
+ ### v0.49.0 (2023-08-13)
4
+
5
+ * Regenerated from discovery document revision 20230806
6
+
7
+ ### v0.48.0 (2023-08-06)
8
+
9
+ * Regenerated from discovery document revision 20230802
10
+
3
11
  ### v0.47.0 (2023-07-23)
4
12
 
5
13
  * 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.49.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 = "20230806"
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://cloud.google.com/dns/records/json-record).
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
@@ -695,44 +785,6 @@ module Google
695
785
  execute_or_queue_command(command, &block)
696
786
  end
697
787
 
698
- # * Service producers can use this method to retrieve a list of available DNS
699
- # zones in the shared producer host project and the matching peering zones in
700
- # the consumer project. *
701
- # @param [String] parent
702
- # Required. Parent resource identifying the connection which owns this
703
- # collection of DNS zones in the format services/`service`/projects/`project`/
704
- # global/networks/`network` Service: The service that is managing connectivity
705
- # for the service producer's organization. For Google services that support this
706
- # functionality, this value is `servicenetworking.googleapis.com`. Projects: the
707
- # consumer project containing the consumer network. Network: The consumer
708
- # network accessible from the tenant project.
709
- # @param [String] fields
710
- # Selector specifying which fields to include in a partial response.
711
- # @param [String] quota_user
712
- # Available to use for quota purposes for server-side applications. Can be any
713
- # arbitrary string assigned to a user, but should not exceed 40 characters.
714
- # @param [Google::Apis::RequestOptions] options
715
- # Request-specific options
716
- #
717
- # @yield [result, err] Result & error if block supplied
718
- # @yieldparam result [Google::Apis::ServicenetworkingV1::ListDnsZonesResponse] parsed result object
719
- # @yieldparam err [StandardError] error object if request failed
720
- #
721
- # @return [Google::Apis::ServicenetworkingV1::ListDnsZonesResponse]
722
- #
723
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
724
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
725
- # @raise [Google::Apis::AuthorizationError] Authorization is required
726
- def list_service_dns_zones(parent, fields: nil, quota_user: nil, options: nil, &block)
727
- command = make_simple_command(:get, 'v1/{+parent}/dnsZones:list', options)
728
- command.response_representation = Google::Apis::ServicenetworkingV1::ListDnsZonesResponse::Representation
729
- command.response_class = Google::Apis::ServicenetworkingV1::ListDnsZonesResponse
730
- command.params['parent'] = parent unless parent.nil?
731
- command.query['fields'] = fields unless fields.nil?
732
- command.query['quotaUser'] = quota_user unless quota_user.nil?
733
- execute_or_queue_command(command, &block)
734
- end
735
-
736
788
  # Service producers can use this method to remove private DNS zones in the
737
789
  # shared producer host project and matching peering zones in the consumer
738
790
  # project.
@@ -857,6 +909,80 @@ module Google
857
909
  execute_or_queue_command(command, &block)
858
910
  end
859
911
 
912
+ # Service producers can use this method to retrieve a DNS zone in the shared
913
+ # producer host project and the matching peering zones in consumer project
914
+ # @param [String] name
915
+ # Required. The network that the consumer is using to connect with services.
916
+ # Must be in the form of services/`service`/projects/`project`/global/networks/`
917
+ # network`/zones/`zoneName` Where `service` is the peering service that is
918
+ # managing connectivity for the service producer's organization. For Google
919
+ # services that support this `project` is the project number, as in '12345' `
920
+ # network` is the network name. `zoneName` is the DNS zone name
921
+ # @param [String] fields
922
+ # Selector specifying which fields to include in a partial response.
923
+ # @param [String] quota_user
924
+ # Available to use for quota purposes for server-side applications. Can be any
925
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
926
+ # @param [Google::Apis::RequestOptions] options
927
+ # Request-specific options
928
+ #
929
+ # @yield [result, err] Result & error if block supplied
930
+ # @yieldparam result [Google::Apis::ServicenetworkingV1::GetDnsZoneResponse] parsed result object
931
+ # @yieldparam err [StandardError] error object if request failed
932
+ #
933
+ # @return [Google::Apis::ServicenetworkingV1::GetDnsZoneResponse]
934
+ #
935
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
936
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
937
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
938
+ def get_service_project_global_network_dns_zone(name, fields: nil, quota_user: nil, options: nil, &block)
939
+ command = make_simple_command(:get, 'v1/{+name}', options)
940
+ command.response_representation = Google::Apis::ServicenetworkingV1::GetDnsZoneResponse::Representation
941
+ command.response_class = Google::Apis::ServicenetworkingV1::GetDnsZoneResponse
942
+ command.params['name'] = name unless name.nil?
943
+ command.query['fields'] = fields unless fields.nil?
944
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
945
+ execute_or_queue_command(command, &block)
946
+ end
947
+
948
+ # * Service producers can use this method to retrieve a list of available DNS
949
+ # zones in the shared producer host project and the matching peering zones in
950
+ # the consumer project. *
951
+ # @param [String] parent
952
+ # Required. Parent resource identifying the connection which owns this
953
+ # collection of DNS zones in the format services/`service`/projects/`project`/
954
+ # global/networks/`network` Service: The service that is managing connectivity
955
+ # for the service producer's organization. For Google services that support this
956
+ # functionality, this value is `servicenetworking.googleapis.com`. Projects: the
957
+ # consumer project containing the consumer network. Network: The consumer
958
+ # network accessible from the tenant project.
959
+ # @param [String] fields
960
+ # Selector specifying which fields to include in a partial response.
961
+ # @param [String] quota_user
962
+ # Available to use for quota purposes for server-side applications. Can be any
963
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
964
+ # @param [Google::Apis::RequestOptions] options
965
+ # Request-specific options
966
+ #
967
+ # @yield [result, err] Result & error if block supplied
968
+ # @yieldparam result [Google::Apis::ServicenetworkingV1::ListDnsZonesResponse] parsed result object
969
+ # @yieldparam err [StandardError] error object if request failed
970
+ #
971
+ # @return [Google::Apis::ServicenetworkingV1::ListDnsZonesResponse]
972
+ #
973
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
974
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
975
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
976
+ def list_service_project_global_network_dns_zones(parent, fields: nil, quota_user: nil, options: nil, &block)
977
+ command = make_simple_command(:get, 'v1/{+parent}/dnsZones:list', options)
978
+ command.response_representation = Google::Apis::ServicenetworkingV1::ListDnsZonesResponse::Representation
979
+ command.response_class = Google::Apis::ServicenetworkingV1::ListDnsZonesResponse
980
+ command.params['parent'] = parent unless parent.nil?
981
+ command.query['fields'] = fields unless fields.nil?
982
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
983
+ execute_or_queue_command(command, &block)
984
+ end
985
+
860
986
  # Creates a peered DNS domain which sends requests for records in given
861
987
  # namespace originating in the service producer VPC network to the consumer VPC
862
988
  # network to be resolved.
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.49.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-13 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.49.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: []