google-apis-networkconnectivity_v1 0.31.0 → 0.32.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: ae5ccd070d0d4d79f94c127ceeacd444f4003de49a91ad1eede2666127ed2f0e
4
- data.tar.gz: 12a8db75ff52d2e7e96a30dbd164b731473c95933b6ecb0afd201a4819e2fcf1
3
+ metadata.gz: 240547e4e42cc7cc6f2fb0837e6425cb38339abd35f4721499ab7e64baa44560
4
+ data.tar.gz: 91204724225f8183be688d695b2db83efda549abdf8a9f04ba5d3a76c44bb59a
5
5
  SHA512:
6
- metadata.gz: 18b8022d77a5291664173b1f6a9d4984e80b38760a28cd72039eefbf56b3cf21b81e44bb240cc32d14707d353cee68625d3f8de767aff64e0e071d0671e5ac76
7
- data.tar.gz: 9c4278d0d8b6155f16bb3b1440000671aae6598fe3ad08d5298de84abb7e20b2a39dd3ea087607cabbec8094aeee3519be5977884450eb9a97c6e0dd1c97a044
6
+ metadata.gz: ff4cbc0053ad11effbdab9db8a23803b3abf02a566610aab2a8fadfc99e6f804fea3da363a3c1c9f7ce952bf2094c3f9308753d0427b4809a35b0f35e6afd5c1
7
+ data.tar.gz: 194b5acf5a288f164533fe85634403916e4191cb25baa8b84bb05c616c6d41a146e11e23c0e848131b66e757f0e2f208c9b455d02f01a54937f3bb9e483a4065
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-networkconnectivity_v1
2
2
 
3
+ ### v0.32.0 (2023-09-10)
4
+
5
+ * Regenerated from discovery document revision 20230831
6
+
3
7
  ### v0.31.0 (2023-08-27)
4
8
 
5
9
  * Regenerated from discovery document revision 20230816
@@ -22,6 +22,41 @@ module Google
22
22
  module Apis
23
23
  module NetworkconnectivityV1
24
24
 
25
+ # The request for HubService.AcceptHubSpoke.
26
+ class AcceptHubSpokeRequest
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Optional. A request ID to identify requests. Specify a unique request ID so
30
+ # that if you must retry your request, the server will know to ignore the
31
+ # request if it has already been completed. The server guarantees that a request
32
+ # doesn't result in creation of duplicate commitments for at least 60 minutes.
33
+ # For example, consider a situation where you make an initial request and the
34
+ # request times out. If you make the request again with the same request ID, the
35
+ # server can check to see whether the original operation was received. If it was,
36
+ # the server ignores the second request. This behavior prevents clients from
37
+ # mistakenly creating duplicate commitments. The request ID must be a valid UUID,
38
+ # with the exception that zero UUID is not supported (00000000-0000-0000-0000-
39
+ # 000000000000).
40
+ # Corresponds to the JSON property `requestId`
41
+ # @return [String]
42
+ attr_accessor :request_id
43
+
44
+ # Required. The URI of the spoke to accept into the hub.
45
+ # Corresponds to the JSON property `spokeUri`
46
+ # @return [String]
47
+ attr_accessor :spoke_uri
48
+
49
+ def initialize(**args)
50
+ update!(**args)
51
+ end
52
+
53
+ # Update properties of this object
54
+ def update!(**args)
55
+ @request_id = args[:request_id] if args.key?(:request_id)
56
+ @spoke_uri = args[:spoke_uri] if args.key?(:spoke_uri)
57
+ end
58
+ end
59
+
25
60
  # The request for HubService.AcceptSpoke.
26
61
  class AcceptSpokeRequest
27
62
  include Google::Apis::Core::Hashable
@@ -655,8 +690,8 @@ module Google
655
690
  # @return [String]
656
691
  attr_accessor :description
657
692
 
658
- # Optional. Labels in key:value format. For more information about labels, see [
659
- # Requirements for labels](https://cloud.google.com/resource-manager/docs/
693
+ # Optional. Labels in key-value pair format. For more information about labels,
694
+ # see [Requirements for labels](https://cloud.google.com/resource-manager/docs/
660
695
  # creating-managing-labels#requirements).
661
696
  # Corresponds to the JSON property `labels`
662
697
  # @return [Hash<String,String>]
@@ -721,8 +756,8 @@ module Google
721
756
  # @return [String]
722
757
  attr_accessor :description
723
758
 
724
- # Optional labels in key:value format. For more information about labels, see [
725
- # Requirements for labels](https://cloud.google.com/resource-manager/docs/
759
+ # Optional labels in key-value pair format. For more information about labels,
760
+ # see [Requirements for labels](https://cloud.google.com/resource-manager/docs/
726
761
  # creating-managing-labels#requirements).
727
762
  # Corresponds to the JSON property `labels`
728
763
  # @return [Hash<String,String>]
@@ -1965,6 +2000,47 @@ module Google
1965
2000
  end
1966
2001
  end
1967
2002
 
2003
+ # The request for HubService.RejectHubSpoke.
2004
+ class RejectHubSpokeRequest
2005
+ include Google::Apis::Core::Hashable
2006
+
2007
+ # Optional. Additional information provided by the hub administrator.
2008
+ # Corresponds to the JSON property `details`
2009
+ # @return [String]
2010
+ attr_accessor :details
2011
+
2012
+ # Optional. A request ID to identify requests. Specify a unique request ID so
2013
+ # that if you must retry your request, the server will know to ignore the
2014
+ # request if it has already been completed. The server guarantees that a request
2015
+ # doesn't result in creation of duplicate commitments for at least 60 minutes.
2016
+ # For example, consider a situation where you make an initial request and the
2017
+ # request times out. If you make the request again with the same request ID, the
2018
+ # server can check to see whether the original operation was received. If it was,
2019
+ # the server ignores the second request. This behavior prevents clients from
2020
+ # mistakenly creating duplicate commitments. The request ID must be a valid UUID,
2021
+ # with the exception that zero UUID is not supported (00000000-0000-0000-0000-
2022
+ # 000000000000).
2023
+ # Corresponds to the JSON property `requestId`
2024
+ # @return [String]
2025
+ attr_accessor :request_id
2026
+
2027
+ # Required. The URI of the spoke to reject from the hub.
2028
+ # Corresponds to the JSON property `spokeUri`
2029
+ # @return [String]
2030
+ attr_accessor :spoke_uri
2031
+
2032
+ def initialize(**args)
2033
+ update!(**args)
2034
+ end
2035
+
2036
+ # Update properties of this object
2037
+ def update!(**args)
2038
+ @details = args[:details] if args.key?(:details)
2039
+ @request_id = args[:request_id] if args.key?(:request_id)
2040
+ @spoke_uri = args[:spoke_uri] if args.key?(:spoke_uri)
2041
+ end
2042
+ end
2043
+
1968
2044
  # The request for HubService.RejectSpoke.
1969
2045
  class RejectSpokeRequest
1970
2046
  include Google::Apis::Core::Hashable
@@ -2021,8 +2097,8 @@ module Google
2021
2097
  # @return [String]
2022
2098
  attr_accessor :ip_cidr_range
2023
2099
 
2024
- # Optional labels in key:value format. For more information about labels, see [
2025
- # Requirements for labels](https://cloud.google.com/resource-manager/docs/
2100
+ # Optional labels in key-value pair format. For more information about labels,
2101
+ # see [Requirements for labels](https://cloud.google.com/resource-manager/docs/
2026
2102
  # creating-managing-labels#requirements).
2027
2103
  # Corresponds to the JSON property `labels`
2028
2104
  # @return [Hash<String,String>]
@@ -2111,8 +2187,8 @@ module Google
2111
2187
  # @return [String]
2112
2188
  attr_accessor :description
2113
2189
 
2114
- # Optional labels in key:value format. For more information about labels, see [
2115
- # Requirements for labels](https://cloud.google.com/resource-manager/docs/
2190
+ # Optional labels in key-value pair format. For more information about labels,
2191
+ # see [Requirements for labels](https://cloud.google.com/resource-manager/docs/
2116
2192
  # creating-managing-labels#requirements).
2117
2193
  # Corresponds to the JSON property `labels`
2118
2194
  # @return [Hash<String,String>]
@@ -2616,8 +2692,8 @@ module Google
2616
2692
  # @return [String]
2617
2693
  attr_accessor :hub
2618
2694
 
2619
- # Optional labels in key:value format. For more information about labels, see [
2620
- # Requirements for labels](https://cloud.google.com/resource-manager/docs/
2695
+ # Optional labels in key-value pair format. For more information about labels,
2696
+ # see [Requirements for labels](https://cloud.google.com/resource-manager/docs/
2621
2697
  # creating-managing-labels#requirements).
2622
2698
  # Corresponds to the JSON property `labels`
2623
2699
  # @return [Hash<String,String>]
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module NetworkconnectivityV1
18
18
  # Version of the google-apis-networkconnectivity_v1 gem
19
- GEM_VERSION = "0.31.0"
19
+ GEM_VERSION = "0.32.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 = "20230816"
25
+ REVISION = "20230831"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,12 @@ module Google
22
22
  module Apis
23
23
  module NetworkconnectivityV1
24
24
 
25
+ class AcceptHubSpokeRequest
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
25
31
  class AcceptSpokeRequest
26
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
33
 
@@ -286,6 +292,12 @@ module Google
286
292
  include Google::Apis::Core::JsonObjectSupport
287
293
  end
288
294
 
295
+ class RejectHubSpokeRequest
296
+ class Representation < Google::Apis::Core::JsonRepresentation; end
297
+
298
+ include Google::Apis::Core::JsonObjectSupport
299
+ end
300
+
289
301
  class RejectSpokeRequest
290
302
  class Representation < Google::Apis::Core::JsonRepresentation; end
291
303
 
@@ -406,6 +418,14 @@ module Google
406
418
  include Google::Apis::Core::JsonObjectSupport
407
419
  end
408
420
 
421
+ class AcceptHubSpokeRequest
422
+ # @private
423
+ class Representation < Google::Apis::Core::JsonRepresentation
424
+ property :request_id, as: 'requestId'
425
+ property :spoke_uri, as: 'spokeUri'
426
+ end
427
+ end
428
+
409
429
  class AcceptSpokeRequest
410
430
  # @private
411
431
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -869,6 +889,15 @@ module Google
869
889
  end
870
890
  end
871
891
 
892
+ class RejectHubSpokeRequest
893
+ # @private
894
+ class Representation < Google::Apis::Core::JsonRepresentation
895
+ property :details, as: 'details'
896
+ property :request_id, as: 'requestId'
897
+ property :spoke_uri, as: 'spokeUri'
898
+ end
899
+ end
900
+
872
901
  class RejectSpokeRequest
873
902
  # @private
874
903
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -122,6 +122,39 @@ module Google
122
122
  execute_or_queue_command(command, &block)
123
123
  end
124
124
 
125
+ # Accepts a proposal to attach a Network Connectivity Center spoke to the hub.
126
+ # @param [String] name
127
+ # Required. The name of the hub.
128
+ # @param [Google::Apis::NetworkconnectivityV1::AcceptHubSpokeRequest] accept_hub_spoke_request_object
129
+ # @param [String] fields
130
+ # Selector specifying which fields to include in a partial response.
131
+ # @param [String] quota_user
132
+ # Available to use for quota purposes for server-side applications. Can be any
133
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
134
+ # @param [Google::Apis::RequestOptions] options
135
+ # Request-specific options
136
+ #
137
+ # @yield [result, err] Result & error if block supplied
138
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
139
+ # @yieldparam err [StandardError] error object if request failed
140
+ #
141
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
142
+ #
143
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
144
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
145
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
146
+ def accept_project_location_global_hub_spoke(name, accept_hub_spoke_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
147
+ command = make_simple_command(:post, 'v1/{+name}:acceptSpoke', options)
148
+ command.request_representation = Google::Apis::NetworkconnectivityV1::AcceptHubSpokeRequest::Representation
149
+ command.request_object = accept_hub_spoke_request_object
150
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
151
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
152
+ command.params['name'] = name unless name.nil?
153
+ command.query['fields'] = fields unless fields.nil?
154
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
155
+ execute_or_queue_command(command, &block)
156
+ end
157
+
125
158
  # Creates a new Network Connectivity Center hub in the specified project.
126
159
  # @param [String] parent
127
160
  # Required. The parent resource.
@@ -441,6 +474,42 @@ module Google
441
474
  execute_or_queue_command(command, &block)
442
475
  end
443
476
 
477
+ # Rejects a Network Connectivity Center spoke from being attached to the hub. If
478
+ # the spoke was previously in the `ACTIVE` state, it transitions to the `
479
+ # INACTIVE` state and is no longer able to connect to other spokes that are
480
+ # attached to the hub.
481
+ # @param [String] name
482
+ # Required. The name of the hub.
483
+ # @param [Google::Apis::NetworkconnectivityV1::RejectHubSpokeRequest] reject_hub_spoke_request_object
484
+ # @param [String] fields
485
+ # Selector specifying which fields to include in a partial response.
486
+ # @param [String] quota_user
487
+ # Available to use for quota purposes for server-side applications. Can be any
488
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
489
+ # @param [Google::Apis::RequestOptions] options
490
+ # Request-specific options
491
+ #
492
+ # @yield [result, err] Result & error if block supplied
493
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
494
+ # @yieldparam err [StandardError] error object if request failed
495
+ #
496
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
497
+ #
498
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
499
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
500
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
501
+ def reject_project_location_global_hub_spoke(name, reject_hub_spoke_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
502
+ command = make_simple_command(:post, 'v1/{+name}:rejectSpoke', options)
503
+ command.request_representation = Google::Apis::NetworkconnectivityV1::RejectHubSpokeRequest::Representation
504
+ command.request_object = reject_hub_spoke_request_object
505
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
506
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
507
+ command.params['name'] = name unless name.nil?
508
+ command.query['fields'] = fields unless fields.nil?
509
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
510
+ execute_or_queue_command(command, &block)
511
+ end
512
+
444
513
  # Sets the access control policy on the specified resource. Replaces any
445
514
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
446
515
  # PERMISSION_DENIED` errors.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-networkconnectivity_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.0
4
+ version: 0.32.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-08-27 00:00:00.000000000 Z
11
+ date: 2023-09-10 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-networkconnectivity_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-networkconnectivity_v1/v0.31.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-networkconnectivity_v1/v0.32.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkconnectivity_v1
63
63
  post_install_message:
64
64
  rdoc_options: []