google-apis-servicenetworking_v1 0.21.0 → 0.24.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: 725556be29f6455c9df66a946856b6255f69c6de3c6983e23be131361c6e4f46
4
- data.tar.gz: be4c13853e3f0b03a99037ae885e9aab33a084e321c133aab746005a642ea461
3
+ metadata.gz: 821e6ea3f713aaf689416670624d7d1ef628eb91317df9262d350096943f95dc
4
+ data.tar.gz: feb4bdc5331f1c6bb2b190ef7cf5e35ce0c7cbaded0d5548c20d9a0784835a83
5
5
  SHA512:
6
- metadata.gz: 5ca4137420b53573f9933644735a93baca1d000a44639b758e3fc709757268022294534699281615310ad5169592346e2777a7d2e316d49bc03a074b96da61a9
7
- data.tar.gz: c45c9c9f7052c61726560dd88e99462d0dddaf010e32a7a478c9d98bf59bbc9345b3caff17fdd72a4fcd00028613630374ef3afee4855ea80adb2ec9f8b4758f
6
+ metadata.gz: 8ba066eba35bed2cdea4ac15699e478fa678f4954999d361d47b6e01b8cfcb7b94d7222985212cbc3527b3c6dd6564338c51d163268ff978ea3607d5e758761d
7
+ data.tar.gz: cc6fd5a26f4f6bb0574fb183a027977738865de4e1250077c87cd931699d3c1709f7e096eb3247424f1f578e4caadb4c8c006dea6e4fc8be96d3812fd8be1e05
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-servicenetworking_v1
2
2
 
3
+ ### v0.24.0 (2022-06-03)
4
+
5
+ * Regenerated using generator version 0.5.0
6
+ * Regenerated from discovery document revision 20220528
7
+
8
+ ### v0.23.0 (2022-05-17)
9
+
10
+ * Regenerated from discovery document revision 20220513
11
+
12
+ ### v0.22.0 (2022-04-27)
13
+
14
+ * Regenerated from discovery document revision 20220425
15
+
3
16
  ### v0.21.0 (2022-04-12)
4
17
 
5
18
  * Regenerated from discovery document revision 20220406
@@ -222,6 +222,19 @@ module Google
222
222
  attr_accessor :check_service_networking_use_permission
223
223
  alias_method :check_service_networking_use_permission?, :check_service_networking_use_permission
224
224
 
225
+ # Optional. Specifies a custom time bucket for Arcus subnetwork request
226
+ # idempotency. If two equivalent concurrent requests are made, Arcus will know
227
+ # to ignore the request if it has already been completed or is in progress. Only
228
+ # requests with matching compute_idempotency_window have guaranteed idempotency.
229
+ # Changing this time window between requests results in undefined behavior. Zero
230
+ # (or empty) value with custom_compute_idempotency_window=true specifies no
231
+ # idempotency (i.e. no request ID is provided to Arcus). Maximum value of 14
232
+ # days (enforced by Arcus limit). For more information on how to use, see: go/
233
+ # revisit-sn-idempotency-window
234
+ # Corresponds to the JSON property `computeIdempotencyWindow`
235
+ # @return [String]
236
+ attr_accessor :compute_idempotency_window
237
+
225
238
  # Required. A resource that represents the service consumer, such as `projects/
226
239
  # 123456`. The project number can be different from the value in the consumer
227
240
  # network parameter. For example, the network might be part of a Shared VPC
@@ -313,12 +326,22 @@ module Google
313
326
  # @return [String]
314
327
  attr_accessor :subnetwork
315
328
 
316
- # A list of members that are granted the `compute.networkUser` role on the
317
- # subnet.
329
+ # A list of members that are granted the `roles/servicenetworking.
330
+ # subnetworkAdmin` role on the subnet.
318
331
  # Corresponds to the JSON property `subnetworkUsers`
319
332
  # @return [Array<String>]
320
333
  attr_accessor :subnetwork_users
321
334
 
335
+ # Optional. Specifies if Service Networking should use a custom time bucket for
336
+ # Arcus idempotency. If false, Service Networking uses a 300 second (5 minute)
337
+ # Arcus idempotency window. If true, Service Networking uses a custom
338
+ # idempotency window provided by the user in field compute_idempotency_window.
339
+ # For more information on how to use, see: go/revisit-sn-idempotency-window
340
+ # Corresponds to the JSON property `useCustomComputeIdempotencyWindow`
341
+ # @return [Boolean]
342
+ attr_accessor :use_custom_compute_idempotency_window
343
+ alias_method :use_custom_compute_idempotency_window?, :use_custom_compute_idempotency_window
344
+
322
345
  def initialize(**args)
323
346
  update!(**args)
324
347
  end
@@ -326,6 +349,7 @@ module Google
326
349
  # Update properties of this object
327
350
  def update!(**args)
328
351
  @check_service_networking_use_permission = args[:check_service_networking_use_permission] if args.key?(:check_service_networking_use_permission)
352
+ @compute_idempotency_window = args[:compute_idempotency_window] if args.key?(:compute_idempotency_window)
329
353
  @consumer = args[:consumer] if args.key?(:consumer)
330
354
  @consumer_network = args[:consumer_network] if args.key?(:consumer_network)
331
355
  @description = args[:description] if args.key?(:description)
@@ -339,6 +363,7 @@ module Google
339
363
  @secondary_ip_range_specs = args[:secondary_ip_range_specs] if args.key?(:secondary_ip_range_specs)
340
364
  @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
341
365
  @subnetwork_users = args[:subnetwork_users] if args.key?(:subnetwork_users)
366
+ @use_custom_compute_idempotency_window = args[:use_custom_compute_idempotency_window] if args.key?(:use_custom_compute_idempotency_window)
342
367
  end
343
368
  end
344
369
 
@@ -918,6 +943,11 @@ module Google
918
943
  # @return [Array<Google::Apis::ServicenetworkingV1::GoogleCloudServicenetworkingV1ConsumerConfigReservedRange>]
919
944
  attr_accessor :reserved_ranges
920
945
 
946
+ # Output only. The IP ranges already in use by consumer or producer
947
+ # Corresponds to the JSON property `usedIpRanges`
948
+ # @return [Array<String>]
949
+ attr_accessor :used_ip_ranges
950
+
921
951
  # Output only. Indicates whether the VPC Service Controls reference architecture
922
952
  # is configured for the producer VPC host network.
923
953
  # Corresponds to the JSON property `vpcScReferenceArchitectureEnabled`
@@ -941,6 +971,7 @@ module Google
941
971
  @producer_import_subnet_routes_with_public_ip = args[:producer_import_subnet_routes_with_public_ip] if args.key?(:producer_import_subnet_routes_with_public_ip)
942
972
  @producer_network = args[:producer_network] if args.key?(:producer_network)
943
973
  @reserved_ranges = args[:reserved_ranges] if args.key?(:reserved_ranges)
974
+ @used_ip_ranges = args[:used_ip_ranges] if args.key?(:used_ip_ranges)
944
975
  @vpc_sc_reference_architecture_enabled = args[:vpc_sc_reference_architecture_enabled] if args.key?(:vpc_sc_reference_architecture_enabled)
945
976
  end
946
977
  end
@@ -2524,6 +2555,15 @@ module Google
2524
2555
  class MetricRule
2525
2556
  include Google::Apis::Core::Hashable
2526
2557
 
2558
+ # Metrics to update when the selected methods are called. The key of the map is
2559
+ # the metric name, the value is the DynamicCostType to specify how to calculate
2560
+ # the cost from the request. The cost amount will be increased for the metric
2561
+ # against which the quota limits are defined. It is only implemented in CloudESF(
2562
+ # go/cloudesf)
2563
+ # Corresponds to the JSON property `dynamicMetricCosts`
2564
+ # @return [Hash<String,String>]
2565
+ attr_accessor :dynamic_metric_costs
2566
+
2527
2567
  # Metrics to update when the selected methods are called, and the associated
2528
2568
  # cost applied to each metric. The key of the map is the metric name, and the
2529
2569
  # values are the amount increased for the metric against which the quota limits
@@ -2544,6 +2584,7 @@ module Google
2544
2584
 
2545
2585
  # Update properties of this object
2546
2586
  def update!(**args)
2587
+ @dynamic_metric_costs = args[:dynamic_metric_costs] if args.key?(:dynamic_metric_costs)
2547
2588
  @metric_costs = args[:metric_costs] if args.key?(:metric_costs)
2548
2589
  @selector = args[:selector] if args.key?(:selector)
2549
2590
  end
@@ -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.21.0"
19
+ GEM_VERSION = "0.24.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.1"
22
+ GENERATOR_VERSION = "0.5.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220406"
25
+ REVISION = "20220528"
26
26
  end
27
27
  end
28
28
  end
@@ -702,6 +702,7 @@ module Google
702
702
  # @private
703
703
  class Representation < Google::Apis::Core::JsonRepresentation
704
704
  property :check_service_networking_use_permission, as: 'checkServiceNetworkingUsePermission'
705
+ property :compute_idempotency_window, as: 'computeIdempotencyWindow'
705
706
  property :consumer, as: 'consumer'
706
707
  property :consumer_network, as: 'consumerNetwork'
707
708
  property :description, as: 'description'
@@ -716,6 +717,7 @@ module Google
716
717
 
717
718
  property :subnetwork, as: 'subnetwork'
718
719
  collection :subnetwork_users, as: 'subnetworkUsers'
720
+ property :use_custom_compute_idempotency_window, as: 'useCustomComputeIdempotencyWindow'
719
721
  end
720
722
  end
721
723
 
@@ -847,6 +849,7 @@ module Google
847
849
  property :producer_network, as: 'producerNetwork'
848
850
  collection :reserved_ranges, as: 'reservedRanges', class: Google::Apis::ServicenetworkingV1::GoogleCloudServicenetworkingV1ConsumerConfigReservedRange, decorator: Google::Apis::ServicenetworkingV1::GoogleCloudServicenetworkingV1ConsumerConfigReservedRange::Representation
849
851
 
852
+ collection :used_ip_ranges, as: 'usedIpRanges'
850
853
  property :vpc_sc_reference_architecture_enabled, as: 'vpcScReferenceArchitectureEnabled'
851
854
  end
852
855
  end
@@ -1219,6 +1222,7 @@ module Google
1219
1222
  class MetricRule
1220
1223
  # @private
1221
1224
  class Representation < Google::Apis::Core::JsonRepresentation
1225
+ hash :dynamic_metric_costs, as: 'dynamicMetricCosts'
1222
1226
  hash :metric_costs, as: 'metricCosts'
1223
1227
  property :selector, as: 'selector'
1224
1228
  end
@@ -749,6 +749,12 @@ module Google
749
749
  # is `servicenetworking.googleapis.com`. `project` is a project number e.g. `
750
750
  # 12345` that contains the service consumer's VPC network. `network` is the name
751
751
  # of the service consumer's VPC network.
752
+ # @param [Boolean] include_used_ip_ranges
753
+ # Optional. When true, include the used IP ranges as part of the
754
+ # GetConsumerConfig output. This includes routes created inside the service
755
+ # networking network, consumer network, peers of the consumer network, and
756
+ # reserved ranges inside the service networking network. By default, this is
757
+ # false
752
758
  # @param [String] fields
753
759
  # Selector specifying which fields to include in a partial response.
754
760
  # @param [String] quota_user
@@ -766,11 +772,12 @@ module Google
766
772
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
767
773
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
768
774
  # @raise [Google::Apis::AuthorizationError] Authorization is required
769
- def get_service_project_global_network(name, fields: nil, quota_user: nil, options: nil, &block)
775
+ def get_service_project_global_network(name, include_used_ip_ranges: nil, fields: nil, quota_user: nil, options: nil, &block)
770
776
  command = make_simple_command(:get, 'v1/{+name}', options)
771
777
  command.response_representation = Google::Apis::ServicenetworkingV1::ConsumerConfig::Representation
772
778
  command.response_class = Google::Apis::ServicenetworkingV1::ConsumerConfig
773
779
  command.params['name'] = name unless name.nil?
780
+ command.query['includeUsedIpRanges'] = include_used_ip_ranges unless include_used_ip_ranges.nil?
774
781
  command.query['fields'] = fields unless fields.nil?
775
782
  command.query['quotaUser'] = quota_user unless quota_user.nil?
776
783
  execute_or_queue_command(command, &block)
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.21.0
4
+ version: 0.24.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: 2022-04-18 00:00:00.000000000 Z
11
+ date: 2022-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.4'
19
+ version: '0.5'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.4'
29
+ version: '0.5'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.21.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-servicenetworking_v1/v0.24.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.5
78
+ rubygems_version: 3.3.14
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Service Networking API V1