google-apis-servicenetworking_v1 0.46.0 → 0.47.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d790a4204e7bc8aa8f425c1893a23ac01176eefaff8ae22595a0dcdd21012644
4
- data.tar.gz: 1a1b497249249fdd04a57bef216eff2270eac0921ba45de1aed88c89d2ae8648
3
+ metadata.gz: 997e9523b1fc763060cb251d696f0452b04115984648ca8e360f9beb95feaa71
4
+ data.tar.gz: 6fc317915d9f4669fab8ce49495d114f3a4f4cd78ad7c950ba65742709295df9
5
5
  SHA512:
6
- metadata.gz: 47c6b84b749981cda5064dd9cd67162ce2856c03ed41c3979feb2ef79eb06d0e220adcee64083933b9f5e660b5525b6e60c97d6f8cfe07b4d9d72d25e9532eb6
7
- data.tar.gz: a0f27e9d0afa9fcd9d7bd2d276707072eaffc90a360c2c4f73aab09d1fb5dc1731c644a2dcdaf245f4557d4397498724d556bce7f815babce1add8e588528ad4
6
+ metadata.gz: 828a4c327382d0cf1b1c41572f4de1fdc3f0d936573061aa50d4e091c7c6ce17cb970b6a1eac3071128e3d0cc88b960669149dfbd75eb50523dda9fe692a398e
7
+ data.tar.gz: a683c56d29e2c8319b944937c4915d08473c44bd2364555631ab593db7e6050c225195d884f93d79c52433e4ab48ae4335586e18d32c9def9d67065b8cd501f0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-servicenetworking_v1
2
2
 
3
+ ### v0.47.0 (2023-07-23)
4
+
5
+ * Regenerated from discovery document revision 20230719
6
+
3
7
  ### v0.46.0 (2023-07-02)
4
8
 
5
9
  * 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,50 @@ 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
+
1982
2057
  # Settings for Go client libraries.
1983
2058
  class GoSettings
1984
2059
  include Google::Apis::Core::Hashable
@@ -2497,6 +2572,27 @@ module Google
2497
2572
  end
2498
2573
  end
2499
2574
 
2575
+ # Represents all DNS zones in the shared producer host project and the matching
2576
+ # peering zones in the consumer project.
2577
+ class ListDnsZonesResponse
2578
+ include Google::Apis::Core::Hashable
2579
+
2580
+ # All pairs of private DNS zones in the shared producer host project and the
2581
+ # matching peering zones in the consumer project..
2582
+ # Corresponds to the JSON property `dnsZonePairs`
2583
+ # @return [Array<Google::Apis::ServicenetworkingV1::DnsZonePair>]
2584
+ attr_accessor :dns_zone_pairs
2585
+
2586
+ def initialize(**args)
2587
+ update!(**args)
2588
+ end
2589
+
2590
+ # Update properties of this object
2591
+ def update!(**args)
2592
+ @dns_zone_pairs = args[:dns_zone_pairs] if args.key?(:dns_zone_pairs)
2593
+ end
2594
+ end
2595
+
2500
2596
  # The response message for Operations.ListOperations.
2501
2597
  class ListOperationsResponse
2502
2598
  include Google::Apis::Core::Hashable
@@ -2755,6 +2851,34 @@ module Google
2755
2851
  end
2756
2852
  end
2757
2853
 
2854
+ # Defines policies applying to an RPC method.
2855
+ class MethodPolicy
2856
+ include Google::Apis::Core::Hashable
2857
+
2858
+ # Policies that are applicable to the request message.
2859
+ # Corresponds to the JSON property `requestPolicies`
2860
+ # @return [Array<Google::Apis::ServicenetworkingV1::FieldPolicy>]
2861
+ attr_accessor :request_policies
2862
+
2863
+ # Selects a method to which these policies should be enforced, for example, "
2864
+ # google.pubsub.v1.Subscriber.CreateSubscription". Refer to selector for syntax
2865
+ # details. NOTE: This field must not be set in the proto annotation. It will be
2866
+ # automatically filled by the service config compiler .
2867
+ # Corresponds to the JSON property `selector`
2868
+ # @return [String]
2869
+ attr_accessor :selector
2870
+
2871
+ def initialize(**args)
2872
+ update!(**args)
2873
+ end
2874
+
2875
+ # Update properties of this object
2876
+ def update!(**args)
2877
+ @request_policies = args[:request_policies] if args.key?(:request_policies)
2878
+ @selector = args[:selector] if args.key?(:selector)
2879
+ end
2880
+ end
2881
+
2758
2882
  # Describes the generator configuration for a method.
2759
2883
  class MethodSettings
2760
2884
  include Google::Apis::Core::Hashable
@@ -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.47.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 = "20230719"
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,12 @@ 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
+
313
325
  class GoSettings
314
326
  class Representation < Google::Apis::Core::JsonRepresentation; end
315
327
 
@@ -370,6 +382,12 @@ module Google
370
382
  include Google::Apis::Core::JsonObjectSupport
371
383
  end
372
384
 
385
+ class ListDnsZonesResponse
386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
387
+
388
+ include Google::Apis::Core::JsonObjectSupport
389
+ end
390
+
373
391
  class ListOperationsResponse
374
392
  class Representation < Google::Apis::Core::JsonRepresentation; end
375
393
 
@@ -412,6 +430,12 @@ module Google
412
430
  include Google::Apis::Core::JsonObjectSupport
413
431
  end
414
432
 
433
+ class MethodPolicy
434
+ class Representation < Google::Apis::Core::JsonRepresentation; end
435
+
436
+ include Google::Apis::Core::JsonObjectSupport
437
+ end
438
+
415
439
  class MethodSettings
416
440
  class Representation < Google::Apis::Core::JsonRepresentation; end
417
441
 
@@ -1023,6 +1047,8 @@ module Google
1023
1047
  # @private
1024
1048
  class Representation < Google::Apis::Core::JsonRepresentation
1025
1049
  property :environment, as: 'environment'
1050
+ collection :method_policies, as: 'methodPolicies', class: Google::Apis::ServicenetworkingV1::MethodPolicy, decorator: Google::Apis::ServicenetworkingV1::MethodPolicy::Representation
1051
+
1026
1052
  end
1027
1053
  end
1028
1054
 
@@ -1103,6 +1129,16 @@ module Google
1103
1129
  end
1104
1130
  end
1105
1131
 
1132
+ class DnsZonePair
1133
+ # @private
1134
+ class Representation < Google::Apis::Core::JsonRepresentation
1135
+ property :consumer_peering_zone, as: 'consumerPeeringZone', class: Google::Apis::ServicenetworkingV1::DnsZone, decorator: Google::Apis::ServicenetworkingV1::DnsZone::Representation
1136
+
1137
+ property :producer_private_zone, as: 'producerPrivateZone', class: Google::Apis::ServicenetworkingV1::DnsZone, decorator: Google::Apis::ServicenetworkingV1::DnsZone::Representation
1138
+
1139
+ end
1140
+ end
1141
+
1106
1142
  class Documentation
1107
1143
  # @private
1108
1144
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1207,6 +1243,15 @@ module Google
1207
1243
  end
1208
1244
  end
1209
1245
 
1246
+ class FieldPolicy
1247
+ # @private
1248
+ class Representation < Google::Apis::Core::JsonRepresentation
1249
+ property :resource_permission, as: 'resourcePermission'
1250
+ property :resource_type, as: 'resourceType'
1251
+ property :selector, as: 'selector'
1252
+ end
1253
+ end
1254
+
1210
1255
  class GoSettings
1211
1256
  # @private
1212
1257
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1308,6 +1353,14 @@ module Google
1308
1353
  end
1309
1354
  end
1310
1355
 
1356
+ class ListDnsZonesResponse
1357
+ # @private
1358
+ class Representation < Google::Apis::Core::JsonRepresentation
1359
+ collection :dns_zone_pairs, as: 'dnsZonePairs', class: Google::Apis::ServicenetworkingV1::DnsZonePair, decorator: Google::Apis::ServicenetworkingV1::DnsZonePair::Representation
1360
+
1361
+ end
1362
+ end
1363
+
1311
1364
  class ListOperationsResponse
1312
1365
  # @private
1313
1366
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1378,6 +1431,15 @@ module Google
1378
1431
  end
1379
1432
  end
1380
1433
 
1434
+ class MethodPolicy
1435
+ # @private
1436
+ class Representation < Google::Apis::Core::JsonRepresentation
1437
+ collection :request_policies, as: 'requestPolicies', class: Google::Apis::ServicenetworkingV1::FieldPolicy, decorator: Google::Apis::ServicenetworkingV1::FieldPolicy::Representation
1438
+
1439
+ property :selector, as: 'selector'
1440
+ end
1441
+ end
1442
+
1381
1443
  class MethodSettings
1382
1444
  # @private
1383
1445
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -695,6 +695,44 @@ module Google
695
695
  execute_or_queue_command(command, &block)
696
696
  end
697
697
 
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
+
698
736
  # Service producers can use this method to remove private DNS zones in the
699
737
  # shared producer host project and matching peering zones in the consumer
700
738
  # 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.47.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-07-23 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.47.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: []