google-apis-networkconnectivity_v1 0.25.0 → 0.27.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/networkconnectivity_v1/classes.rb +590 -5
- data/lib/google/apis/networkconnectivity_v1/gem_version.rb +2 -2
- data/lib/google/apis/networkconnectivity_v1/representations.rb +234 -0
- data/lib/google/apis/networkconnectivity_v1/service.rb +409 -54
- metadata +3 -3
@@ -331,6 +331,62 @@ 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 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
|
@@ -461,6 +517,271 @@ module Google
|
|
461
517
|
execute_or_queue_command(command, &block)
|
462
518
|
end
|
463
519
|
|
520
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
521
|
+
# resource exists and does not have a policy set.
|
522
|
+
# @param [String] resource
|
523
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
524
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
525
|
+
# appropriate value for this field.
|
526
|
+
# @param [Fixnum] options_requested_policy_version
|
527
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
528
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
529
|
+
# rejected. Requests for policies with any conditional role bindings must
|
530
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
531
|
+
# valid value or leave the field unset. The policy in the response might use the
|
532
|
+
# policy version that you specified, or it might use a lower policy version. For
|
533
|
+
# example, if you specify version 3, but the policy has no conditional role
|
534
|
+
# bindings, the response uses version 1. To learn which resources support
|
535
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
536
|
+
# google.com/iam/help/conditions/resource-policies).
|
537
|
+
# @param [String] fields
|
538
|
+
# Selector specifying which fields to include in a partial response.
|
539
|
+
# @param [String] quota_user
|
540
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
541
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
542
|
+
# @param [Google::Apis::RequestOptions] options
|
543
|
+
# Request-specific options
|
544
|
+
#
|
545
|
+
# @yield [result, err] Result & error if block supplied
|
546
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
|
547
|
+
# @yieldparam err [StandardError] error object if request failed
|
548
|
+
#
|
549
|
+
# @return [Google::Apis::NetworkconnectivityV1::Policy]
|
550
|
+
#
|
551
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
552
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
553
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
554
|
+
def get_project_location_global_hub_group_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
555
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
556
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
|
557
|
+
command.response_class = Google::Apis::NetworkconnectivityV1::Policy
|
558
|
+
command.params['resource'] = resource unless resource.nil?
|
559
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
560
|
+
command.query['fields'] = fields unless fields.nil?
|
561
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
562
|
+
execute_or_queue_command(command, &block)
|
563
|
+
end
|
564
|
+
|
565
|
+
# Sets the access control policy on the specified resource. Replaces any
|
566
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
567
|
+
# PERMISSION_DENIED` errors.
|
568
|
+
# @param [String] resource
|
569
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
570
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
571
|
+
# appropriate value for this field.
|
572
|
+
# @param [Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest] set_iam_policy_request_object
|
573
|
+
# @param [String] fields
|
574
|
+
# Selector specifying which fields to include in a partial response.
|
575
|
+
# @param [String] quota_user
|
576
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
577
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
578
|
+
# @param [Google::Apis::RequestOptions] options
|
579
|
+
# Request-specific options
|
580
|
+
#
|
581
|
+
# @yield [result, err] Result & error if block supplied
|
582
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
|
583
|
+
# @yieldparam err [StandardError] error object if request failed
|
584
|
+
#
|
585
|
+
# @return [Google::Apis::NetworkconnectivityV1::Policy]
|
586
|
+
#
|
587
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
588
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
589
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
590
|
+
def set_group_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
591
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
592
|
+
command.request_representation = Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest::Representation
|
593
|
+
command.request_object = set_iam_policy_request_object
|
594
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
|
595
|
+
command.response_class = Google::Apis::NetworkconnectivityV1::Policy
|
596
|
+
command.params['resource'] = resource unless resource.nil?
|
597
|
+
command.query['fields'] = fields unless fields.nil?
|
598
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
599
|
+
execute_or_queue_command(command, &block)
|
600
|
+
end
|
601
|
+
|
602
|
+
# Returns permissions that a caller has on the specified resource. If the
|
603
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
604
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
605
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
606
|
+
# This operation may "fail open" without warning.
|
607
|
+
# @param [String] resource
|
608
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
609
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
610
|
+
# appropriate value for this field.
|
611
|
+
# @param [Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
612
|
+
# @param [String] fields
|
613
|
+
# Selector specifying which fields to include in a partial response.
|
614
|
+
# @param [String] quota_user
|
615
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
616
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
617
|
+
# @param [Google::Apis::RequestOptions] options
|
618
|
+
# Request-specific options
|
619
|
+
#
|
620
|
+
# @yield [result, err] Result & error if block supplied
|
621
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse] parsed result object
|
622
|
+
# @yieldparam err [StandardError] error object if request failed
|
623
|
+
#
|
624
|
+
# @return [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse]
|
625
|
+
#
|
626
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
627
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
628
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
629
|
+
def test_group_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
630
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
631
|
+
command.request_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest::Representation
|
632
|
+
command.request_object = test_iam_permissions_request_object
|
633
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse::Representation
|
634
|
+
command.response_class = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse
|
635
|
+
command.params['resource'] = resource unless resource.nil?
|
636
|
+
command.query['fields'] = fields unless fields.nil?
|
637
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
638
|
+
execute_or_queue_command(command, &block)
|
639
|
+
end
|
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
|
+
|
464
785
|
# Gets the access control policy for a resource. Returns an empty policy if the
|
465
786
|
# resource exists and does not have a policy set.
|
466
787
|
# @param [String] resource
|
@@ -944,59 +1265,12 @@ module Google
|
|
944
1265
|
execute_or_queue_command(command, &block)
|
945
1266
|
end
|
946
1267
|
|
947
|
-
# Creates a new ServiceClass in a given project and location.
|
948
|
-
# @param [String] parent
|
949
|
-
# Required. The parent resource's name of the ServiceClass.
|
950
|
-
# @param [Google::Apis::NetworkconnectivityV1::ServiceClass] service_class_object
|
951
|
-
# @param [String] request_id
|
952
|
-
# Optional. An optional request ID to identify requests. Specify a unique
|
953
|
-
# request ID so that if you must retry your request, the server will know to
|
954
|
-
# ignore the request if it has already been completed. The server will guarantee
|
955
|
-
# that for at least 60 minutes since the first request. For example, consider a
|
956
|
-
# situation where you make an initial request and the request times out. If you
|
957
|
-
# make the request again with the same request ID, the server can check if
|
958
|
-
# original operation with the same request ID was received, and if so, will
|
959
|
-
# ignore the second request. This prevents clients from accidentally creating
|
960
|
-
# duplicate commitments. The request ID must be a valid UUID with the exception
|
961
|
-
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
962
|
-
# @param [String] service_class_id
|
963
|
-
# Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/
|
964
|
-
# serviceClasses/foo') See https://google.aip.dev/122#resource-id-segments
|
965
|
-
# Unique per location. If one is not provided, one will be generated.
|
966
|
-
# @param [String] fields
|
967
|
-
# Selector specifying which fields to include in a partial response.
|
968
|
-
# @param [String] quota_user
|
969
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
970
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
971
|
-
# @param [Google::Apis::RequestOptions] options
|
972
|
-
# Request-specific options
|
973
|
-
#
|
974
|
-
# @yield [result, err] Result & error if block supplied
|
975
|
-
# @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
|
976
|
-
# @yieldparam err [StandardError] error object if request failed
|
977
|
-
#
|
978
|
-
# @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
|
979
|
-
#
|
980
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
981
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
982
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
983
|
-
def create_project_location_service_class(parent, service_class_object = nil, request_id: nil, service_class_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
984
|
-
command = make_simple_command(:post, 'v1/{+parent}/serviceClasses', options)
|
985
|
-
command.request_representation = Google::Apis::NetworkconnectivityV1::ServiceClass::Representation
|
986
|
-
command.request_object = service_class_object
|
987
|
-
command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
|
988
|
-
command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
|
989
|
-
command.params['parent'] = parent unless parent.nil?
|
990
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
991
|
-
command.query['serviceClassId'] = service_class_id unless service_class_id.nil?
|
992
|
-
command.query['fields'] = fields unless fields.nil?
|
993
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
994
|
-
execute_or_queue_command(command, &block)
|
995
|
-
end
|
996
|
-
|
997
1268
|
# Deletes a single ServiceClass.
|
998
1269
|
# @param [String] name
|
999
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.
|
1000
1274
|
# @param [String] request_id
|
1001
1275
|
# Optional. An optional request ID to identify requests. Specify a unique
|
1002
1276
|
# request ID so that if you must retry your request, the server will know to
|
@@ -1025,11 +1299,12 @@ module Google
|
|
1025
1299
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1026
1300
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1027
1301
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1028
|
-
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)
|
1029
1303
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1030
1304
|
command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
|
1031
1305
|
command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
|
1032
1306
|
command.params['name'] = name unless name.nil?
|
1307
|
+
command.query['etag'] = etag unless etag.nil?
|
1033
1308
|
command.query['requestId'] = request_id unless request_id.nil?
|
1034
1309
|
command.query['fields'] = fields unless fields.nil?
|
1035
1310
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1336,6 +1611,9 @@ module Google
|
|
1336
1611
|
# Deletes a single ServiceConnectionMap.
|
1337
1612
|
# @param [String] name
|
1338
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.
|
1339
1617
|
# @param [String] request_id
|
1340
1618
|
# Optional. An optional request ID to identify requests. Specify a unique
|
1341
1619
|
# request ID so that if you must retry your request, the server will know to
|
@@ -1364,11 +1642,12 @@ module Google
|
|
1364
1642
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1365
1643
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1366
1644
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1367
|
-
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)
|
1368
1646
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1369
1647
|
command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
|
1370
1648
|
command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
|
1371
1649
|
command.params['name'] = name unless name.nil?
|
1650
|
+
command.query['etag'] = etag unless etag.nil?
|
1372
1651
|
command.query['requestId'] = request_id unless request_id.nil?
|
1373
1652
|
command.query['fields'] = fields unless fields.nil?
|
1374
1653
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -1675,6 +1954,9 @@ module Google
|
|
1675
1954
|
# Deletes a single ServiceConnectionPolicy.
|
1676
1955
|
# @param [String] name
|
1677
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.
|
1678
1960
|
# @param [String] request_id
|
1679
1961
|
# Optional. An optional request ID to identify requests. Specify a unique
|
1680
1962
|
# request ID so that if you must retry your request, the server will know to
|
@@ -1703,11 +1985,12 @@ module Google
|
|
1703
1985
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1704
1986
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1705
1987
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1706
|
-
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)
|
1707
1989
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
1708
1990
|
command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
|
1709
1991
|
command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
|
1710
1992
|
command.params['name'] = name unless name.nil?
|
1993
|
+
command.query['etag'] = etag unless etag.nil?
|
1711
1994
|
command.query['requestId'] = request_id unless request_id.nil?
|
1712
1995
|
command.query['fields'] = fields unless fields.nil?
|
1713
1996
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -2014,6 +2297,9 @@ module Google
|
|
2014
2297
|
# Deletes a single ServiceConnectionToken.
|
2015
2298
|
# @param [String] name
|
2016
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.
|
2017
2303
|
# @param [String] request_id
|
2018
2304
|
# Optional. An optional request ID to identify requests. Specify a unique
|
2019
2305
|
# request ID so that if you must retry your request, the server will know to
|
@@ -2042,11 +2328,12 @@ module Google
|
|
2042
2328
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2043
2329
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2044
2330
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2045
|
-
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)
|
2046
2332
|
command = make_simple_command(:delete, 'v1/{+name}', options)
|
2047
2333
|
command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
|
2048
2334
|
command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
|
2049
2335
|
command.params['name'] = name unless name.nil?
|
2336
|
+
command.query['etag'] = etag unless etag.nil?
|
2050
2337
|
command.query['requestId'] = request_id unless request_id.nil?
|
2051
2338
|
command.query['fields'] = fields unless fields.nil?
|
2052
2339
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -2125,6 +2412,39 @@ module Google
|
|
2125
2412
|
execute_or_queue_command(command, &block)
|
2126
2413
|
end
|
2127
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
|
+
|
2128
2448
|
# Creates a Network Connectivity Center spoke.
|
2129
2449
|
# @param [String] parent
|
2130
2450
|
# Required. The parent resource.
|
@@ -2390,6 +2710,41 @@ module Google
|
|
2390
2710
|
execute_or_queue_command(command, &block)
|
2391
2711
|
end
|
2392
2712
|
|
2713
|
+
# Does one of the following: * Rejects a proposal to attach a Network
|
2714
|
+
# Connectivity Center spoke to the hub. * Rejects and removes a previously
|
2715
|
+
# attached spoke from the hub.
|
2716
|
+
# @param [String] name
|
2717
|
+
# Required. The name of the spoke to reject.
|
2718
|
+
# @param [Google::Apis::NetworkconnectivityV1::RejectSpokeRequest] reject_spoke_request_object
|
2719
|
+
# @param [String] fields
|
2720
|
+
# Selector specifying which fields to include in a partial response.
|
2721
|
+
# @param [String] quota_user
|
2722
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2723
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2724
|
+
# @param [Google::Apis::RequestOptions] options
|
2725
|
+
# Request-specific options
|
2726
|
+
#
|
2727
|
+
# @yield [result, err] Result & error if block supplied
|
2728
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
|
2729
|
+
# @yieldparam err [StandardError] error object if request failed
|
2730
|
+
#
|
2731
|
+
# @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
|
2732
|
+
#
|
2733
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2734
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2735
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2736
|
+
def reject_spoke(name, reject_spoke_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2737
|
+
command = make_simple_command(:post, 'v1/{+name}:reject', options)
|
2738
|
+
command.request_representation = Google::Apis::NetworkconnectivityV1::RejectSpokeRequest::Representation
|
2739
|
+
command.request_object = reject_spoke_request_object
|
2740
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
|
2741
|
+
command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
|
2742
|
+
command.params['name'] = name unless name.nil?
|
2743
|
+
command.query['fields'] = fields unless fields.nil?
|
2744
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2745
|
+
execute_or_queue_command(command, &block)
|
2746
|
+
end
|
2747
|
+
|
2393
2748
|
# Sets the access control policy on the specified resource. Replaces any
|
2394
2749
|
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
2395
2750
|
# 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.
|
4
|
+
version: 0.27.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-
|
11
|
+
date: 2023-06-25 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-networkconnectivity_v1/v0.27.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: []
|