google-apis-networkconnectivity_v1 0.31.0 → 0.33.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: b19aacc4c176f1069f24756fdac8056f7fa390bf2bd0ed8702737835ecf58246
4
+ data.tar.gz: b55735c69650a51f45df7817eceb86ea41e70283217ed949cdd98efe325b0264
5
5
  SHA512:
6
- metadata.gz: 18b8022d77a5291664173b1f6a9d4984e80b38760a28cd72039eefbf56b3cf21b81e44bb240cc32d14707d353cee68625d3f8de767aff64e0e071d0671e5ac76
7
- data.tar.gz: 9c4278d0d8b6155f16bb3b1440000671aae6598fe3ad08d5298de84abb7e20b2a39dd3ea087607cabbec8094aeee3519be5977884450eb9a97c6e0dd1c97a044
6
+ metadata.gz: e35d4308d39d6a3b0cd73b71ecc414b1f7cee264c0ef9c4da764b7de40353cf127d0c7f06e24bcb5ab5eb9a4f5684c9e60b414745fd076a867cd6933a8f020b3
7
+ data.tar.gz: 799711242702b2e51241da1fbd120825664a7b346be03b6ad07b471e40d8c138371735f8ae3858fd4a3746d477d6a6cd86c8170e2c765f25db62c3a6a1477608
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-networkconnectivity_v1
2
2
 
3
+ ### v0.33.0 (2023-09-17)
4
+
5
+ * Regenerated from discovery document revision 20230906
6
+
7
+ ### v0.32.0 (2023-09-10)
8
+
9
+ * Regenerated from discovery document revision 20230831
10
+
3
11
  ### v0.31.0 (2023-08-27)
4
12
 
5
13
  * Regenerated from discovery document revision 20230816
@@ -22,6 +22,64 @@ 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
+
60
+ # The response for HubService.AcceptHubSpoke.
61
+ class AcceptHubSpokeResponse
62
+ include Google::Apis::Core::Hashable
63
+
64
+ # A Network Connectivity Center spoke represents one or more network
65
+ # connectivity resources. When you create a spoke, you associate it with a hub.
66
+ # You must also identify a value for exactly one of the following fields: *
67
+ # linked_vpn_tunnels * linked_interconnect_attachments *
68
+ # linked_router_appliance_instances * linked_vpc_network
69
+ # Corresponds to the JSON property `spoke`
70
+ # @return [Google::Apis::NetworkconnectivityV1::Spoke]
71
+ attr_accessor :spoke
72
+
73
+ def initialize(**args)
74
+ update!(**args)
75
+ end
76
+
77
+ # Update properties of this object
78
+ def update!(**args)
79
+ @spoke = args[:spoke] if args.key?(:spoke)
80
+ end
81
+ end
82
+
25
83
  # The request for HubService.AcceptSpoke.
26
84
  class AcceptSpokeRequest
27
85
  include Google::Apis::Core::Hashable
@@ -655,8 +713,8 @@ module Google
655
713
  # @return [String]
656
714
  attr_accessor :description
657
715
 
658
- # Optional. Labels in key:value format. For more information about labels, see [
659
- # Requirements for labels](https://cloud.google.com/resource-manager/docs/
716
+ # Optional. Labels in key-value pair format. For more information about labels,
717
+ # see [Requirements for labels](https://cloud.google.com/resource-manager/docs/
660
718
  # creating-managing-labels#requirements).
661
719
  # Corresponds to the JSON property `labels`
662
720
  # @return [Hash<String,String>]
@@ -721,8 +779,8 @@ module Google
721
779
  # @return [String]
722
780
  attr_accessor :description
723
781
 
724
- # Optional labels in key:value format. For more information about labels, see [
725
- # Requirements for labels](https://cloud.google.com/resource-manager/docs/
782
+ # Optional labels in key-value pair format. For more information about labels,
783
+ # see [Requirements for labels](https://cloud.google.com/resource-manager/docs/
726
784
  # creating-managing-labels#requirements).
727
785
  # Corresponds to the JSON property `labels`
728
786
  # @return [Hash<String,String>]
@@ -1965,6 +2023,70 @@ module Google
1965
2023
  end
1966
2024
  end
1967
2025
 
2026
+ # The request for HubService.RejectHubSpoke.
2027
+ class RejectHubSpokeRequest
2028
+ include Google::Apis::Core::Hashable
2029
+
2030
+ # Optional. Additional information provided by the hub administrator.
2031
+ # Corresponds to the JSON property `details`
2032
+ # @return [String]
2033
+ attr_accessor :details
2034
+
2035
+ # Optional. A request ID to identify requests. Specify a unique request ID so
2036
+ # that if you must retry your request, the server will know to ignore the
2037
+ # request if it has already been completed. The server guarantees that a request
2038
+ # doesn't result in creation of duplicate commitments for at least 60 minutes.
2039
+ # For example, consider a situation where you make an initial request and the
2040
+ # request times out. If you make the request again with the same request ID, the
2041
+ # server can check to see whether the original operation was received. If it was,
2042
+ # the server ignores the second request. This behavior prevents clients from
2043
+ # mistakenly creating duplicate commitments. The request ID must be a valid UUID,
2044
+ # with the exception that zero UUID is not supported (00000000-0000-0000-0000-
2045
+ # 000000000000).
2046
+ # Corresponds to the JSON property `requestId`
2047
+ # @return [String]
2048
+ attr_accessor :request_id
2049
+
2050
+ # Required. The URI of the spoke to reject from the hub.
2051
+ # Corresponds to the JSON property `spokeUri`
2052
+ # @return [String]
2053
+ attr_accessor :spoke_uri
2054
+
2055
+ def initialize(**args)
2056
+ update!(**args)
2057
+ end
2058
+
2059
+ # Update properties of this object
2060
+ def update!(**args)
2061
+ @details = args[:details] if args.key?(:details)
2062
+ @request_id = args[:request_id] if args.key?(:request_id)
2063
+ @spoke_uri = args[:spoke_uri] if args.key?(:spoke_uri)
2064
+ end
2065
+ end
2066
+
2067
+ # The response for HubService.RejectHubSpoke.
2068
+ class RejectHubSpokeResponse
2069
+ include Google::Apis::Core::Hashable
2070
+
2071
+ # A Network Connectivity Center spoke represents one or more network
2072
+ # connectivity resources. When you create a spoke, you associate it with a hub.
2073
+ # You must also identify a value for exactly one of the following fields: *
2074
+ # linked_vpn_tunnels * linked_interconnect_attachments *
2075
+ # linked_router_appliance_instances * linked_vpc_network
2076
+ # Corresponds to the JSON property `spoke`
2077
+ # @return [Google::Apis::NetworkconnectivityV1::Spoke]
2078
+ attr_accessor :spoke
2079
+
2080
+ def initialize(**args)
2081
+ update!(**args)
2082
+ end
2083
+
2084
+ # Update properties of this object
2085
+ def update!(**args)
2086
+ @spoke = args[:spoke] if args.key?(:spoke)
2087
+ end
2088
+ end
2089
+
1968
2090
  # The request for HubService.RejectSpoke.
1969
2091
  class RejectSpokeRequest
1970
2092
  include Google::Apis::Core::Hashable
@@ -2021,8 +2143,8 @@ module Google
2021
2143
  # @return [String]
2022
2144
  attr_accessor :ip_cidr_range
2023
2145
 
2024
- # Optional labels in key:value format. For more information about labels, see [
2025
- # Requirements for labels](https://cloud.google.com/resource-manager/docs/
2146
+ # Optional labels in key-value pair format. For more information about labels,
2147
+ # see [Requirements for labels](https://cloud.google.com/resource-manager/docs/
2026
2148
  # creating-managing-labels#requirements).
2027
2149
  # Corresponds to the JSON property `labels`
2028
2150
  # @return [Hash<String,String>]
@@ -2111,8 +2233,8 @@ module Google
2111
2233
  # @return [String]
2112
2234
  attr_accessor :description
2113
2235
 
2114
- # Optional labels in key:value format. For more information about labels, see [
2115
- # Requirements for labels](https://cloud.google.com/resource-manager/docs/
2236
+ # Optional labels in key-value pair format. For more information about labels,
2237
+ # see [Requirements for labels](https://cloud.google.com/resource-manager/docs/
2116
2238
  # creating-managing-labels#requirements).
2117
2239
  # Corresponds to the JSON property `labels`
2118
2240
  # @return [Hash<String,String>]
@@ -2616,8 +2738,8 @@ module Google
2616
2738
  # @return [String]
2617
2739
  attr_accessor :hub
2618
2740
 
2619
- # Optional labels in key:value format. For more information about labels, see [
2620
- # Requirements for labels](https://cloud.google.com/resource-manager/docs/
2741
+ # Optional labels in key-value pair format. For more information about labels,
2742
+ # see [Requirements for labels](https://cloud.google.com/resource-manager/docs/
2621
2743
  # creating-managing-labels#requirements).
2622
2744
  # Corresponds to the JSON property `labels`
2623
2745
  # @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.33.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 = "20230906"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,18 @@ 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
+
31
+ class AcceptHubSpokeResponse
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
25
37
  class AcceptSpokeRequest
26
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
39
 
@@ -286,6 +298,18 @@ module Google
286
298
  include Google::Apis::Core::JsonObjectSupport
287
299
  end
288
300
 
301
+ class RejectHubSpokeRequest
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
307
+ class RejectHubSpokeResponse
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
289
313
  class RejectSpokeRequest
290
314
  class Representation < Google::Apis::Core::JsonRepresentation; end
291
315
 
@@ -406,6 +430,22 @@ module Google
406
430
  include Google::Apis::Core::JsonObjectSupport
407
431
  end
408
432
 
433
+ class AcceptHubSpokeRequest
434
+ # @private
435
+ class Representation < Google::Apis::Core::JsonRepresentation
436
+ property :request_id, as: 'requestId'
437
+ property :spoke_uri, as: 'spokeUri'
438
+ end
439
+ end
440
+
441
+ class AcceptHubSpokeResponse
442
+ # @private
443
+ class Representation < Google::Apis::Core::JsonRepresentation
444
+ property :spoke, as: 'spoke', class: Google::Apis::NetworkconnectivityV1::Spoke, decorator: Google::Apis::NetworkconnectivityV1::Spoke::Representation
445
+
446
+ end
447
+ end
448
+
409
449
  class AcceptSpokeRequest
410
450
  # @private
411
451
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -869,6 +909,23 @@ module Google
869
909
  end
870
910
  end
871
911
 
912
+ class RejectHubSpokeRequest
913
+ # @private
914
+ class Representation < Google::Apis::Core::JsonRepresentation
915
+ property :details, as: 'details'
916
+ property :request_id, as: 'requestId'
917
+ property :spoke_uri, as: 'spokeUri'
918
+ end
919
+ end
920
+
921
+ class RejectHubSpokeResponse
922
+ # @private
923
+ class Representation < Google::Apis::Core::JsonRepresentation
924
+ property :spoke, as: 'spoke', class: Google::Apis::NetworkconnectivityV1::Spoke, decorator: Google::Apis::NetworkconnectivityV1::Spoke::Representation
925
+
926
+ end
927
+ end
928
+
872
929
  class RejectSpokeRequest
873
930
  # @private
874
931
  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.33.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-17 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.33.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: []