google-apis-networkconnectivity_v1 0.26.0 → 0.28.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.
@@ -129,17 +129,17 @@ module Google
129
129
  # @param [String] hub_id
130
130
  # Required. A unique identifier for the hub.
131
131
  # @param [String] request_id
132
- # Optional. A unique request ID (optional). If you specify this ID, you can use
133
- # it in cases when you need to retry your request. When you need to retry, this
134
- # ID lets the server know that it can ignore the request if it has already been
135
- # completed. The server guarantees that for at least 60 minutes after the first
136
- # request. For example, consider a situation where you make an initial request
137
- # and the request times out. If you make the request again with the same request
138
- # ID, the server can check to see whether the original operation was received.
139
- # If it was, the server ignores the second request. This behavior prevents
140
- # clients from mistakenly creating duplicate commitments. The request ID must be
141
- # a valid UUID, with the exception that zero UUID is not supported (00000000-
142
- # 0000-0000-0000-000000000000).
132
+ # Optional. A request ID to identify requests. Specify a unique request ID so
133
+ # that if you must retry your request, the server will know to ignore the
134
+ # request if it has already been completed. The server guarantees that a request
135
+ # doesn't result in creation of duplicate commitments for at least 60 minutes.
136
+ # For example, consider a situation where you make an initial request and the
137
+ # request times out. If you make the request again with the same request ID, the
138
+ # server can check to see whether the original operation was received. If it was,
139
+ # the server ignores the second request. This behavior prevents clients from
140
+ # mistakenly creating duplicate commitments. The request ID must be a valid UUID,
141
+ # with the exception that zero UUID is not supported (00000000-0000-0000-0000-
142
+ # 000000000000).
143
143
  # @param [String] fields
144
144
  # Selector specifying which fields to include in a partial response.
145
145
  # @param [String] quota_user
@@ -175,17 +175,17 @@ module Google
175
175
  # @param [String] name
176
176
  # Required. The name of the hub to delete.
177
177
  # @param [String] request_id
178
- # Optional. A unique request ID (optional). If you specify this ID, you can use
179
- # it in cases when you need to retry your request. When you need to retry, this
180
- # ID lets the server know that it can ignore the request if it has already been
181
- # completed. The server guarantees that for at least 60 minutes after the first
182
- # request. For example, consider a situation where you make an initial request
183
- # and the request times out. If you make the request again with the same request
184
- # ID, the server can check to see whether the original operation was received.
185
- # If it was, the server ignores the second request. This behavior prevents
186
- # clients from mistakenly creating duplicate commitments. The request ID must be
187
- # a valid UUID, with the exception that zero UUID is not supported (00000000-
188
- # 0000-0000-0000-000000000000).
178
+ # Optional. A request ID to identify requests. Specify a unique request ID so
179
+ # that if you must retry your request, the server will know to ignore the
180
+ # request if it has already been completed. The server guarantees that a request
181
+ # doesn't result in creation of duplicate commitments for at least 60 minutes.
182
+ # For example, consider a situation where you make an initial request and the
183
+ # request times out. If you make the request again with the same request ID, the
184
+ # server can check to see whether the original operation was received. If it was,
185
+ # the server ignores the second request. This behavior prevents clients from
186
+ # mistakenly creating duplicate commitments. The request ID must be a valid UUID,
187
+ # with the exception that zero UUID is not supported (00000000-0000-0000-0000-
188
+ # 000000000000).
189
189
  # @param [String] fields
190
190
  # Selector specifying which fields to include in a partial response.
191
191
  # @param [String] quota_user
@@ -331,23 +331,79 @@ module Google
331
331
  execute_or_queue_command(command, &block)
332
332
  end
333
333
 
334
+ # Lists the Network Connectivity Center spokes associated with a specified hub
335
+ # and location. The list includes both spokes that are attached to the hub and
336
+ # spokes that have been proposed but not yet accepted.
337
+ # @param [String] name
338
+ # Required. The name of the hub.
339
+ # @param [String] filter
340
+ # An expression that filters the list of results.
341
+ # @param [String] order_by
342
+ # Sort the results by name or create_time.
343
+ # @param [Fixnum] page_size
344
+ # The maximum number of results to return per page.
345
+ # @param [String] page_token
346
+ # The page token.
347
+ # @param [Array<String>, String] spoke_locations
348
+ # A list of locations. Specify one of the following: `[global]`, a single region
349
+ # (for example, `[us-central1]`), or a combination of values (for example, `[
350
+ # global, us-central1, us-west1]`). If the spoke_locations field is populated,
351
+ # the list of results includes only spokes in the specified location. If the
352
+ # spoke_locations field is not populated, the list of results includes spokes in
353
+ # all locations.
354
+ # @param [String] view
355
+ # The view of the spoke to return. The view that you use determines which spoke
356
+ # fields are included in the response.
357
+ # @param [String] fields
358
+ # Selector specifying which fields to include in a partial response.
359
+ # @param [String] quota_user
360
+ # Available to use for quota purposes for server-side applications. Can be any
361
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
362
+ # @param [Google::Apis::RequestOptions] options
363
+ # Request-specific options
364
+ #
365
+ # @yield [result, err] Result & error if block supplied
366
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::ListHubSpokesResponse] parsed result object
367
+ # @yieldparam err [StandardError] error object if request failed
368
+ #
369
+ # @return [Google::Apis::NetworkconnectivityV1::ListHubSpokesResponse]
370
+ #
371
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
372
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
373
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
374
+ def list_project_location_global_hub_spokes(name, filter: nil, order_by: nil, page_size: nil, page_token: nil, spoke_locations: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
375
+ command = make_simple_command(:get, 'v1/{+name}:listSpokes', options)
376
+ command.response_representation = Google::Apis::NetworkconnectivityV1::ListHubSpokesResponse::Representation
377
+ command.response_class = Google::Apis::NetworkconnectivityV1::ListHubSpokesResponse
378
+ command.params['name'] = name unless name.nil?
379
+ command.query['filter'] = filter unless filter.nil?
380
+ command.query['orderBy'] = order_by unless order_by.nil?
381
+ command.query['pageSize'] = page_size unless page_size.nil?
382
+ command.query['pageToken'] = page_token unless page_token.nil?
383
+ command.query['spokeLocations'] = spoke_locations unless spoke_locations.nil?
384
+ command.query['view'] = view unless view.nil?
385
+ command.query['fields'] = fields unless fields.nil?
386
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
387
+ execute_or_queue_command(command, &block)
388
+ end
389
+
334
390
  # Updates the description and/or labels of a Network Connectivity Center hub.
335
391
  # @param [String] name
336
392
  # Immutable. The name of the hub. Hub names must be unique. They use the
337
393
  # following form: `projects/`project_number`/locations/global/hubs/`hub_id``
338
394
  # @param [Google::Apis::NetworkconnectivityV1::Hub] hub_object
339
395
  # @param [String] request_id
340
- # Optional. A unique request ID (optional). If you specify this ID, you can use
341
- # it in cases when you need to retry your request. When you need to retry, this
342
- # ID lets the server know that it can ignore the request if it has already been
343
- # completed. The server guarantees that for at least 60 minutes after the first
344
- # request. For example, consider a situation where you make an initial request
345
- # and the request times out. If you make the request again with the same request
346
- # ID, the server can check to see whether the original operation was received.
347
- # If it was, the server ignores the second request. This behavior prevents
348
- # clients from mistakenly creating duplicate commitments. The request ID must be
349
- # a valid UUID, with the exception that zero UUID is not supported (00000000-
350
- # 0000-0000-0000-000000000000).
396
+ # Optional. A request ID to identify requests. Specify a unique request ID so
397
+ # that if you must retry your request, the server will know to ignore the
398
+ # request if it has already been completed. The server guarantees that a request
399
+ # doesn't result in creation of duplicate commitments for at least 60 minutes.
400
+ # For example, consider a situation where you make an initial request and the
401
+ # request times out. If you make the request again with the same request ID, the
402
+ # server can check to see whether the original operation was received. If it was,
403
+ # the server ignores the second request. This behavior prevents clients from
404
+ # mistakenly creating duplicate commitments. The request ID must be a valid UUID,
405
+ # with the exception that zero UUID is not supported (00000000-0000-0000-0000-
406
+ # 000000000000).
351
407
  # @param [String] update_mask
352
408
  # Optional. In the case of an update to an existing hub, field mask is used to
353
409
  # specify the fields to be overwritten. The fields specified in the update_mask
@@ -582,6 +638,150 @@ module Google
582
638
  execute_or_queue_command(command, &block)
583
639
  end
584
640
 
641
+ # Gets details about a Network Connectivity Center route table.
642
+ # @param [String] name
643
+ # Required. The name of the route table resource.
644
+ # @param [String] fields
645
+ # Selector specifying which fields to include in a partial response.
646
+ # @param [String] quota_user
647
+ # Available to use for quota purposes for server-side applications. Can be any
648
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
649
+ # @param [Google::Apis::RequestOptions] options
650
+ # Request-specific options
651
+ #
652
+ # @yield [result, err] Result & error if block supplied
653
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::RouteTable] parsed result object
654
+ # @yieldparam err [StandardError] error object if request failed
655
+ #
656
+ # @return [Google::Apis::NetworkconnectivityV1::RouteTable]
657
+ #
658
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
659
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
660
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
661
+ def get_project_location_global_hub_route_table(name, fields: nil, quota_user: nil, options: nil, &block)
662
+ command = make_simple_command(:get, 'v1/{+name}', options)
663
+ command.response_representation = Google::Apis::NetworkconnectivityV1::RouteTable::Representation
664
+ command.response_class = Google::Apis::NetworkconnectivityV1::RouteTable
665
+ command.params['name'] = name unless name.nil?
666
+ command.query['fields'] = fields unless fields.nil?
667
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
668
+ execute_or_queue_command(command, &block)
669
+ end
670
+
671
+ # Lists route tables in a given project.
672
+ # @param [String] parent
673
+ # Required. The parent resource's name.
674
+ # @param [String] filter
675
+ # An expression that filters the list of results.
676
+ # @param [String] order_by
677
+ # Sort the results by a certain order.
678
+ # @param [Fixnum] page_size
679
+ # The maximum number of results to return per page.
680
+ # @param [String] page_token
681
+ # The page token.
682
+ # @param [String] fields
683
+ # Selector specifying which fields to include in a partial response.
684
+ # @param [String] quota_user
685
+ # Available to use for quota purposes for server-side applications. Can be any
686
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
687
+ # @param [Google::Apis::RequestOptions] options
688
+ # Request-specific options
689
+ #
690
+ # @yield [result, err] Result & error if block supplied
691
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::ListRouteTablesResponse] parsed result object
692
+ # @yieldparam err [StandardError] error object if request failed
693
+ #
694
+ # @return [Google::Apis::NetworkconnectivityV1::ListRouteTablesResponse]
695
+ #
696
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
697
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
698
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
699
+ def list_project_location_global_hub_route_tables(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
700
+ command = make_simple_command(:get, 'v1/{+parent}/routeTables', options)
701
+ command.response_representation = Google::Apis::NetworkconnectivityV1::ListRouteTablesResponse::Representation
702
+ command.response_class = Google::Apis::NetworkconnectivityV1::ListRouteTablesResponse
703
+ command.params['parent'] = parent unless parent.nil?
704
+ command.query['filter'] = filter unless filter.nil?
705
+ command.query['orderBy'] = order_by unless order_by.nil?
706
+ command.query['pageSize'] = page_size unless page_size.nil?
707
+ command.query['pageToken'] = page_token unless page_token.nil?
708
+ command.query['fields'] = fields unless fields.nil?
709
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
710
+ execute_or_queue_command(command, &block)
711
+ end
712
+
713
+ # Gets details about the specified route.
714
+ # @param [String] name
715
+ # Required. The name of the route resource.
716
+ # @param [String] fields
717
+ # Selector specifying which fields to include in a partial response.
718
+ # @param [String] quota_user
719
+ # Available to use for quota purposes for server-side applications. Can be any
720
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
721
+ # @param [Google::Apis::RequestOptions] options
722
+ # Request-specific options
723
+ #
724
+ # @yield [result, err] Result & error if block supplied
725
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::Route] parsed result object
726
+ # @yieldparam err [StandardError] error object if request failed
727
+ #
728
+ # @return [Google::Apis::NetworkconnectivityV1::Route]
729
+ #
730
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
731
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
732
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
733
+ def get_project_location_global_hub_route_table_route(name, fields: nil, quota_user: nil, options: nil, &block)
734
+ command = make_simple_command(:get, 'v1/{+name}', options)
735
+ command.response_representation = Google::Apis::NetworkconnectivityV1::Route::Representation
736
+ command.response_class = Google::Apis::NetworkconnectivityV1::Route
737
+ command.params['name'] = name unless name.nil?
738
+ command.query['fields'] = fields unless fields.nil?
739
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
740
+ execute_or_queue_command(command, &block)
741
+ end
742
+
743
+ # Lists routes in a given project.
744
+ # @param [String] parent
745
+ # Required. The parent resource's name.
746
+ # @param [String] filter
747
+ # An expression that filters the list of results.
748
+ # @param [String] order_by
749
+ # Sort the results by a certain order.
750
+ # @param [Fixnum] page_size
751
+ # The maximum number of results to return per page.
752
+ # @param [String] page_token
753
+ # The page token.
754
+ # @param [String] fields
755
+ # Selector specifying which fields to include in a partial response.
756
+ # @param [String] quota_user
757
+ # Available to use for quota purposes for server-side applications. Can be any
758
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
759
+ # @param [Google::Apis::RequestOptions] options
760
+ # Request-specific options
761
+ #
762
+ # @yield [result, err] Result & error if block supplied
763
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::ListRoutesResponse] parsed result object
764
+ # @yieldparam err [StandardError] error object if request failed
765
+ #
766
+ # @return [Google::Apis::NetworkconnectivityV1::ListRoutesResponse]
767
+ #
768
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
769
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
770
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
771
+ def list_project_location_global_hub_route_table_routes(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
772
+ command = make_simple_command(:get, 'v1/{+parent}/routes', options)
773
+ command.response_representation = Google::Apis::NetworkconnectivityV1::ListRoutesResponse::Representation
774
+ command.response_class = Google::Apis::NetworkconnectivityV1::ListRoutesResponse
775
+ command.params['parent'] = parent unless parent.nil?
776
+ command.query['filter'] = filter unless filter.nil?
777
+ command.query['orderBy'] = order_by unless order_by.nil?
778
+ command.query['pageSize'] = page_size unless page_size.nil?
779
+ command.query['pageToken'] = page_token unless page_token.nil?
780
+ command.query['fields'] = fields unless fields.nil?
781
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
782
+ execute_or_queue_command(command, &block)
783
+ end
784
+
585
785
  # Gets the access control policy for a resource. Returns an empty policy if the
586
786
  # resource exists and does not have a policy set.
587
787
  # @param [String] resource
@@ -1068,6 +1268,9 @@ module Google
1068
1268
  # Deletes a single ServiceClass.
1069
1269
  # @param [String] name
1070
1270
  # Required. The name of the ServiceClass to delete.
1271
+ # @param [String] etag
1272
+ # Optional. The etag is computed by the server, and may be sent on update and
1273
+ # delete requests to ensure the client has an up-to-date value before proceeding.
1071
1274
  # @param [String] request_id
1072
1275
  # Optional. An optional request ID to identify requests. Specify a unique
1073
1276
  # request ID so that if you must retry your request, the server will know to
@@ -1096,11 +1299,12 @@ module Google
1096
1299
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1097
1300
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1098
1301
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1099
- def delete_project_location_service_class(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1302
+ def delete_project_location_service_class(name, etag: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1100
1303
  command = make_simple_command(:delete, 'v1/{+name}', options)
1101
1304
  command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
1102
1305
  command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
1103
1306
  command.params['name'] = name unless name.nil?
1307
+ command.query['etag'] = etag unless etag.nil?
1104
1308
  command.query['requestId'] = request_id unless request_id.nil?
1105
1309
  command.query['fields'] = fields unless fields.nil?
1106
1310
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1407,6 +1611,9 @@ module Google
1407
1611
  # Deletes a single ServiceConnectionMap.
1408
1612
  # @param [String] name
1409
1613
  # Required. The name of the ServiceConnectionMap to delete.
1614
+ # @param [String] etag
1615
+ # Optional. The etag is computed by the server, and may be sent on update and
1616
+ # delete requests to ensure the client has an up-to-date value before proceeding.
1410
1617
  # @param [String] request_id
1411
1618
  # Optional. An optional request ID to identify requests. Specify a unique
1412
1619
  # request ID so that if you must retry your request, the server will know to
@@ -1435,11 +1642,12 @@ module Google
1435
1642
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1436
1643
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1437
1644
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1438
- def delete_project_location_service_connection_map(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1645
+ def delete_project_location_service_connection_map(name, etag: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1439
1646
  command = make_simple_command(:delete, 'v1/{+name}', options)
1440
1647
  command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
1441
1648
  command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
1442
1649
  command.params['name'] = name unless name.nil?
1650
+ command.query['etag'] = etag unless etag.nil?
1443
1651
  command.query['requestId'] = request_id unless request_id.nil?
1444
1652
  command.query['fields'] = fields unless fields.nil?
1445
1653
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1746,6 +1954,9 @@ module Google
1746
1954
  # Deletes a single ServiceConnectionPolicy.
1747
1955
  # @param [String] name
1748
1956
  # Required. The name of the ServiceConnectionPolicy to delete.
1957
+ # @param [String] etag
1958
+ # Optional. The etag is computed by the server, and may be sent on update and
1959
+ # delete requests to ensure the client has an up-to-date value before proceeding.
1749
1960
  # @param [String] request_id
1750
1961
  # Optional. An optional request ID to identify requests. Specify a unique
1751
1962
  # request ID so that if you must retry your request, the server will know to
@@ -1774,11 +1985,12 @@ module Google
1774
1985
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1775
1986
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1776
1987
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1777
- def delete_project_location_service_connection_policy(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1988
+ def delete_project_location_service_connection_policy(name, etag: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1778
1989
  command = make_simple_command(:delete, 'v1/{+name}', options)
1779
1990
  command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
1780
1991
  command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
1781
1992
  command.params['name'] = name unless name.nil?
1993
+ command.query['etag'] = etag unless etag.nil?
1782
1994
  command.query['requestId'] = request_id unless request_id.nil?
1783
1995
  command.query['fields'] = fields unless fields.nil?
1784
1996
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -2085,6 +2297,9 @@ module Google
2085
2297
  # Deletes a single ServiceConnectionToken.
2086
2298
  # @param [String] name
2087
2299
  # Required. The name of the ServiceConnectionToken to delete.
2300
+ # @param [String] etag
2301
+ # Optional. The etag is computed by the server, and may be sent on update and
2302
+ # delete requests to ensure the client has an up-to-date value before proceeding.
2088
2303
  # @param [String] request_id
2089
2304
  # Optional. An optional request ID to identify requests. Specify a unique
2090
2305
  # request ID so that if you must retry your request, the server will know to
@@ -2113,11 +2328,12 @@ module Google
2113
2328
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2114
2329
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2115
2330
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2116
- def delete_project_location_service_connection_token(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2331
+ def delete_project_location_service_connection_token(name, etag: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2117
2332
  command = make_simple_command(:delete, 'v1/{+name}', options)
2118
2333
  command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
2119
2334
  command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
2120
2335
  command.params['name'] = name unless name.nil?
2336
+ command.query['etag'] = etag unless etag.nil?
2121
2337
  command.query['requestId'] = request_id unless request_id.nil?
2122
2338
  command.query['fields'] = fields unless fields.nil?
2123
2339
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -2196,22 +2412,55 @@ module Google
2196
2412
  execute_or_queue_command(command, &block)
2197
2413
  end
2198
2414
 
2415
+ # Accepts a proposal to attach a Network Connectivity Center spoke to the hub.
2416
+ # @param [String] name
2417
+ # Required. The name of the spoke to accept.
2418
+ # @param [Google::Apis::NetworkconnectivityV1::AcceptSpokeRequest] accept_spoke_request_object
2419
+ # @param [String] fields
2420
+ # Selector specifying which fields to include in a partial response.
2421
+ # @param [String] quota_user
2422
+ # Available to use for quota purposes for server-side applications. Can be any
2423
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2424
+ # @param [Google::Apis::RequestOptions] options
2425
+ # Request-specific options
2426
+ #
2427
+ # @yield [result, err] Result & error if block supplied
2428
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
2429
+ # @yieldparam err [StandardError] error object if request failed
2430
+ #
2431
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
2432
+ #
2433
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2434
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2435
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2436
+ def accept_spoke(name, accept_spoke_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2437
+ command = make_simple_command(:post, 'v1/{+name}:accept', options)
2438
+ command.request_representation = Google::Apis::NetworkconnectivityV1::AcceptSpokeRequest::Representation
2439
+ command.request_object = accept_spoke_request_object
2440
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
2441
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
2442
+ command.params['name'] = name unless name.nil?
2443
+ command.query['fields'] = fields unless fields.nil?
2444
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2445
+ execute_or_queue_command(command, &block)
2446
+ end
2447
+
2199
2448
  # Creates a Network Connectivity Center spoke.
2200
2449
  # @param [String] parent
2201
2450
  # Required. The parent resource.
2202
2451
  # @param [Google::Apis::NetworkconnectivityV1::Spoke] spoke_object
2203
2452
  # @param [String] request_id
2204
- # Optional. A unique request ID (optional). If you specify this ID, you can use
2205
- # it in cases when you need to retry your request. When you need to retry, this
2206
- # ID lets the server know that it can ignore the request if it has already been
2207
- # completed. The server guarantees that for at least 60 minutes after the first
2208
- # request. For example, consider a situation where you make an initial request
2209
- # and the request times out. If you make the request again with the same request
2210
- # ID, the server can check to see whether the original operation was received.
2211
- # If it was, the server ignores the second request. This behavior prevents
2212
- # clients from mistakenly creating duplicate commitments. The request ID must be
2213
- # a valid UUID, with the exception that zero UUID is not supported (00000000-
2214
- # 0000-0000-0000-000000000000).
2453
+ # Optional. A request ID to identify requests. Specify a unique request ID so
2454
+ # that if you must retry your request, the server will know to ignore the
2455
+ # request if it has already been completed. The server guarantees that a request
2456
+ # doesn't result in creation of duplicate commitments for at least 60 minutes.
2457
+ # For example, consider a situation where you make an initial request and the
2458
+ # request times out. If you make the request again with the same request ID, the
2459
+ # server can check to see whether the original operation was received. If it was,
2460
+ # the server ignores the second request. This behavior prevents clients from
2461
+ # mistakenly creating duplicate commitments. The request ID must be a valid UUID,
2462
+ # with the exception that zero UUID is not supported (00000000-0000-0000-0000-
2463
+ # 000000000000).
2215
2464
  # @param [String] spoke_id
2216
2465
  # Required. Unique id for the spoke to create.
2217
2466
  # @param [String] fields
@@ -2249,17 +2498,17 @@ module Google
2249
2498
  # @param [String] name
2250
2499
  # Required. The name of the spoke to delete.
2251
2500
  # @param [String] request_id
2252
- # Optional. A unique request ID (optional). If you specify this ID, you can use
2253
- # it in cases when you need to retry your request. When you need to retry, this
2254
- # ID lets the server know that it can ignore the request if it has already been
2255
- # completed. The server guarantees that for at least 60 minutes after the first
2256
- # request. For example, consider a situation where you make an initial request
2257
- # and the request times out. If you make the request again with the same request
2258
- # ID, the server can check to see whether the original operation was received.
2259
- # If it was, the server ignores the second request. This behavior prevents
2260
- # clients from mistakenly creating duplicate commitments. The request ID must be
2261
- # a valid UUID, with the exception that zero UUID is not supported (00000000-
2262
- # 0000-0000-0000-000000000000).
2501
+ # Optional. A request ID to identify requests. Specify a unique request ID so
2502
+ # that if you must retry your request, the server will know to ignore the
2503
+ # request if it has already been completed. The server guarantees that a request
2504
+ # doesn't result in creation of duplicate commitments for at least 60 minutes.
2505
+ # For example, consider a situation where you make an initial request and the
2506
+ # request times out. If you make the request again with the same request ID, the
2507
+ # server can check to see whether the original operation was received. If it was,
2508
+ # the server ignores the second request. This behavior prevents clients from
2509
+ # mistakenly creating duplicate commitments. The request ID must be a valid UUID,
2510
+ # with the exception that zero UUID is not supported (00000000-0000-0000-0000-
2511
+ # 000000000000).
2263
2512
  # @param [String] fields
2264
2513
  # Selector specifying which fields to include in a partial response.
2265
2514
  # @param [String] quota_user
@@ -2413,17 +2662,17 @@ module Google
2413
2662
  # `
2414
2663
  # @param [Google::Apis::NetworkconnectivityV1::Spoke] spoke_object
2415
2664
  # @param [String] request_id
2416
- # Optional. A unique request ID (optional). If you specify this ID, you can use
2417
- # it in cases when you need to retry your request. When you need to retry, this
2418
- # ID lets the server know that it can ignore the request if it has already been
2419
- # completed. The server guarantees that for at least 60 minutes after the first
2420
- # request. For example, consider a situation where you make an initial request
2421
- # and the request times out. If you make the request again with the same request
2422
- # ID, the server can check to see whether the original operation was received.
2423
- # If it was, the server ignores the second request. This behavior prevents
2424
- # clients from mistakenly creating duplicate commitments. The request ID must be
2425
- # a valid UUID, with the exception that zero UUID is not supported (00000000-
2426
- # 0000-0000-0000-000000000000).
2665
+ # Optional. A request ID to identify requests. Specify a unique request ID so
2666
+ # that if you must retry your request, the server will know to ignore the
2667
+ # request if it has already been completed. The server guarantees that a request
2668
+ # doesn't result in creation of duplicate commitments for at least 60 minutes.
2669
+ # For example, consider a situation where you make an initial request and the
2670
+ # request times out. If you make the request again with the same request ID, the
2671
+ # server can check to see whether the original operation was received. If it was,
2672
+ # the server ignores the second request. This behavior prevents clients from
2673
+ # mistakenly creating duplicate commitments. The request ID must be a valid UUID,
2674
+ # with the exception that zero UUID is not supported (00000000-0000-0000-0000-
2675
+ # 000000000000).
2427
2676
  # @param [String] update_mask
2428
2677
  # Optional. In the case of an update to an existing spoke, field mask is used to
2429
2678
  # specify the fields to be overwritten. The fields specified in the update_mask
@@ -2461,6 +2710,42 @@ module Google
2461
2710
  execute_or_queue_command(command, &block)
2462
2711
  end
2463
2712
 
2713
+ # Rejects a Network Connectivity Center spoke from being attached to the hub. If
2714
+ # the spoke was previously in the `ACTIVE` state, it transitions to the `
2715
+ # INACTIVE` state and is no longer able to connect to other spokes that are
2716
+ # attached to the hub.
2717
+ # @param [String] name
2718
+ # Required. The name of the spoke to reject.
2719
+ # @param [Google::Apis::NetworkconnectivityV1::RejectSpokeRequest] reject_spoke_request_object
2720
+ # @param [String] fields
2721
+ # Selector specifying which fields to include in a partial response.
2722
+ # @param [String] quota_user
2723
+ # Available to use for quota purposes for server-side applications. Can be any
2724
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2725
+ # @param [Google::Apis::RequestOptions] options
2726
+ # Request-specific options
2727
+ #
2728
+ # @yield [result, err] Result & error if block supplied
2729
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
2730
+ # @yieldparam err [StandardError] error object if request failed
2731
+ #
2732
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
2733
+ #
2734
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2735
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2736
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2737
+ def reject_spoke(name, reject_spoke_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2738
+ command = make_simple_command(:post, 'v1/{+name}:reject', options)
2739
+ command.request_representation = Google::Apis::NetworkconnectivityV1::RejectSpokeRequest::Representation
2740
+ command.request_object = reject_spoke_request_object
2741
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
2742
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
2743
+ command.params['name'] = name unless name.nil?
2744
+ command.query['fields'] = fields unless fields.nil?
2745
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2746
+ execute_or_queue_command(command, &block)
2747
+ end
2748
+
2464
2749
  # Sets the access control policy on the specified resource. Replaces any
2465
2750
  # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
2466
2751
  # 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.26.0
4
+ version: 0.28.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-06-04 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-networkconnectivity_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-networkconnectivity_v1/v0.26.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-networkconnectivity_v1/v0.28.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: []