google-apis-networkconnectivity_v1alpha1 0.3.0 → 0.8.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 +22 -0
- data/lib/google/apis/networkconnectivity_v1alpha1.rb +1 -2
- data/lib/google/apis/networkconnectivity_v1alpha1/classes.rb +3 -1107
- data/lib/google/apis/networkconnectivity_v1alpha1/gem_version.rb +3 -3
- data/lib/google/apis/networkconnectivity_v1alpha1/representations.rb +0 -382
- data/lib/google/apis/networkconnectivity_v1alpha1/service.rb +117 -118
- metadata +14 -8
@@ -22,8 +22,7 @@ module Google
|
|
22
22
|
module NetworkconnectivityV1alpha1
|
23
23
|
# Network Connectivity API
|
24
24
|
#
|
25
|
-
# The Network Connectivity API
|
26
|
-
# information pertaining to network connectivity.
|
25
|
+
# The Network Connectivity API provides access to Network Connectivity Center.
|
27
26
|
#
|
28
27
|
# @example
|
29
28
|
# require 'google/apis/networkconnectivity_v1alpha1'
|
@@ -88,7 +87,7 @@ module Google
|
|
88
87
|
# accepts strings like "displayName=tokyo", and is documented in more detail in [
|
89
88
|
# AIP-160](https://google.aip.dev/160).
|
90
89
|
# @param [Fixnum] page_size
|
91
|
-
# The maximum number of results to return. If not set, the service
|
90
|
+
# The maximum number of results to return. If not set, the service selects a
|
92
91
|
# default.
|
93
92
|
# @param [String] page_token
|
94
93
|
# A page token received from the `next_page_token` field in the response. Send
|
@@ -452,6 +451,121 @@ module Google
|
|
452
451
|
execute_or_queue_command(command, &block)
|
453
452
|
end
|
454
453
|
|
454
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
455
|
+
# resource exists and does not have a policy set.
|
456
|
+
# @param [String] resource
|
457
|
+
# REQUIRED: The resource for which the policy is being requested. See the
|
458
|
+
# operation documentation for the appropriate value for this field.
|
459
|
+
# @param [Fixnum] options_requested_policy_version
|
460
|
+
# Optional. The policy format version to be returned. Valid values are 0, 1, and
|
461
|
+
# 3. Requests specifying an invalid value will be rejected. Requests for
|
462
|
+
# policies with any conditional bindings must specify version 3. Policies
|
463
|
+
# without any conditional bindings may specify any valid value or leave the
|
464
|
+
# field unset. To learn which resources support conditions in their IAM policies,
|
465
|
+
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
466
|
+
# resource-policies).
|
467
|
+
# @param [String] fields
|
468
|
+
# Selector specifying which fields to include in a partial response.
|
469
|
+
# @param [String] quota_user
|
470
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
471
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
472
|
+
# @param [Google::Apis::RequestOptions] options
|
473
|
+
# Request-specific options
|
474
|
+
#
|
475
|
+
# @yield [result, err] Result & error if block supplied
|
476
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::Policy] parsed result object
|
477
|
+
# @yieldparam err [StandardError] error object if request failed
|
478
|
+
#
|
479
|
+
# @return [Google::Apis::NetworkconnectivityV1alpha1::Policy]
|
480
|
+
#
|
481
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
482
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
483
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
484
|
+
def get_project_location_global_policy_based_route_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
485
|
+
command = make_simple_command(:get, 'v1alpha1/{+resource}:getIamPolicy', options)
|
486
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Policy::Representation
|
487
|
+
command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Policy
|
488
|
+
command.params['resource'] = resource unless resource.nil?
|
489
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
490
|
+
command.query['fields'] = fields unless fields.nil?
|
491
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
492
|
+
execute_or_queue_command(command, &block)
|
493
|
+
end
|
494
|
+
|
495
|
+
# Sets the access control policy on the specified resource. Replaces any
|
496
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
497
|
+
# PERMISSION_DENIED` errors.
|
498
|
+
# @param [String] resource
|
499
|
+
# REQUIRED: The resource for which the policy is being specified. See the
|
500
|
+
# operation documentation for the appropriate value for this field.
|
501
|
+
# @param [Google::Apis::NetworkconnectivityV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object
|
502
|
+
# @param [String] fields
|
503
|
+
# Selector specifying which fields to include in a partial response.
|
504
|
+
# @param [String] quota_user
|
505
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
506
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
507
|
+
# @param [Google::Apis::RequestOptions] options
|
508
|
+
# Request-specific options
|
509
|
+
#
|
510
|
+
# @yield [result, err] Result & error if block supplied
|
511
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::Policy] parsed result object
|
512
|
+
# @yieldparam err [StandardError] error object if request failed
|
513
|
+
#
|
514
|
+
# @return [Google::Apis::NetworkconnectivityV1alpha1::Policy]
|
515
|
+
#
|
516
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
517
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
518
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
519
|
+
def set_policy_based_route_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
520
|
+
command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options)
|
521
|
+
command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::SetIamPolicyRequest::Representation
|
522
|
+
command.request_object = set_iam_policy_request_object
|
523
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Policy::Representation
|
524
|
+
command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Policy
|
525
|
+
command.params['resource'] = resource unless resource.nil?
|
526
|
+
command.query['fields'] = fields unless fields.nil?
|
527
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
528
|
+
execute_or_queue_command(command, &block)
|
529
|
+
end
|
530
|
+
|
531
|
+
# Returns permissions that a caller has on the specified resource. If the
|
532
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
533
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
534
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
535
|
+
# This operation may "fail open" without warning.
|
536
|
+
# @param [String] resource
|
537
|
+
# REQUIRED: The resource for which the policy detail is being requested. See the
|
538
|
+
# operation documentation for the appropriate value for this field.
|
539
|
+
# @param [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
540
|
+
# @param [String] fields
|
541
|
+
# Selector specifying which fields to include in a partial response.
|
542
|
+
# @param [String] quota_user
|
543
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
544
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
545
|
+
# @param [Google::Apis::RequestOptions] options
|
546
|
+
# Request-specific options
|
547
|
+
#
|
548
|
+
# @yield [result, err] Result & error if block supplied
|
549
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse] parsed result object
|
550
|
+
# @yieldparam err [StandardError] error object if request failed
|
551
|
+
#
|
552
|
+
# @return [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse]
|
553
|
+
#
|
554
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
555
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
556
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
557
|
+
def test_policy_based_route_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
558
|
+
command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options)
|
559
|
+
command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsRequest::Representation
|
560
|
+
command.request_object = test_iam_permissions_request_object
|
561
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse::Representation
|
562
|
+
command.response_class = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse
|
563
|
+
command.params['resource'] = resource unless resource.nil?
|
564
|
+
command.query['fields'] = fields unless fields.nil?
|
565
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
566
|
+
execute_or_queue_command(command, &block)
|
567
|
+
end
|
568
|
+
|
455
569
|
# Gets the access control policy for a resource. Returns an empty policy if the
|
456
570
|
# resource exists and does not have a policy set.
|
457
571
|
# @param [String] resource
|
@@ -717,121 +831,6 @@ module Google
|
|
717
831
|
execute_or_queue_command(command, &block)
|
718
832
|
end
|
719
833
|
|
720
|
-
# Gets the access control policy for a resource. Returns an empty policy if the
|
721
|
-
# resource exists and does not have a policy set.
|
722
|
-
# @param [String] resource
|
723
|
-
# REQUIRED: The resource for which the policy is being requested. See the
|
724
|
-
# operation documentation for the appropriate value for this field.
|
725
|
-
# @param [Fixnum] options_requested_policy_version
|
726
|
-
# Optional. The policy format version to be returned. Valid values are 0, 1, and
|
727
|
-
# 3. Requests specifying an invalid value will be rejected. Requests for
|
728
|
-
# policies with any conditional bindings must specify version 3. Policies
|
729
|
-
# without any conditional bindings may specify any valid value or leave the
|
730
|
-
# field unset. To learn which resources support conditions in their IAM policies,
|
731
|
-
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
732
|
-
# resource-policies).
|
733
|
-
# @param [String] fields
|
734
|
-
# Selector specifying which fields to include in a partial response.
|
735
|
-
# @param [String] quota_user
|
736
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
737
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
738
|
-
# @param [Google::Apis::RequestOptions] options
|
739
|
-
# Request-specific options
|
740
|
-
#
|
741
|
-
# @yield [result, err] Result & error if block supplied
|
742
|
-
# @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::Policy] parsed result object
|
743
|
-
# @yieldparam err [StandardError] error object if request failed
|
744
|
-
#
|
745
|
-
# @return [Google::Apis::NetworkconnectivityV1alpha1::Policy]
|
746
|
-
#
|
747
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
748
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
749
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
750
|
-
def get_project_location_policy_based_route_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
751
|
-
command = make_simple_command(:get, 'v1alpha1/{+resource}:getIamPolicy', options)
|
752
|
-
command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Policy::Representation
|
753
|
-
command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Policy
|
754
|
-
command.params['resource'] = resource unless resource.nil?
|
755
|
-
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
756
|
-
command.query['fields'] = fields unless fields.nil?
|
757
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
758
|
-
execute_or_queue_command(command, &block)
|
759
|
-
end
|
760
|
-
|
761
|
-
# Sets the access control policy on the specified resource. Replaces any
|
762
|
-
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
763
|
-
# PERMISSION_DENIED` errors.
|
764
|
-
# @param [String] resource
|
765
|
-
# REQUIRED: The resource for which the policy is being specified. See the
|
766
|
-
# operation documentation for the appropriate value for this field.
|
767
|
-
# @param [Google::Apis::NetworkconnectivityV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object
|
768
|
-
# @param [String] fields
|
769
|
-
# Selector specifying which fields to include in a partial response.
|
770
|
-
# @param [String] quota_user
|
771
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
772
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
773
|
-
# @param [Google::Apis::RequestOptions] options
|
774
|
-
# Request-specific options
|
775
|
-
#
|
776
|
-
# @yield [result, err] Result & error if block supplied
|
777
|
-
# @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::Policy] parsed result object
|
778
|
-
# @yieldparam err [StandardError] error object if request failed
|
779
|
-
#
|
780
|
-
# @return [Google::Apis::NetworkconnectivityV1alpha1::Policy]
|
781
|
-
#
|
782
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
783
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
784
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
785
|
-
def set_policy_based_route_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
786
|
-
command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options)
|
787
|
-
command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::SetIamPolicyRequest::Representation
|
788
|
-
command.request_object = set_iam_policy_request_object
|
789
|
-
command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Policy::Representation
|
790
|
-
command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Policy
|
791
|
-
command.params['resource'] = resource unless resource.nil?
|
792
|
-
command.query['fields'] = fields unless fields.nil?
|
793
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
794
|
-
execute_or_queue_command(command, &block)
|
795
|
-
end
|
796
|
-
|
797
|
-
# Returns permissions that a caller has on the specified resource. If the
|
798
|
-
# resource does not exist, this will return an empty set of permissions, not a `
|
799
|
-
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
800
|
-
# permission-aware UIs and command-line tools, not for authorization checking.
|
801
|
-
# This operation may "fail open" without warning.
|
802
|
-
# @param [String] resource
|
803
|
-
# REQUIRED: The resource for which the policy detail is being requested. See the
|
804
|
-
# operation documentation for the appropriate value for this field.
|
805
|
-
# @param [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
806
|
-
# @param [String] fields
|
807
|
-
# Selector specifying which fields to include in a partial response.
|
808
|
-
# @param [String] quota_user
|
809
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
810
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
811
|
-
# @param [Google::Apis::RequestOptions] options
|
812
|
-
# Request-specific options
|
813
|
-
#
|
814
|
-
# @yield [result, err] Result & error if block supplied
|
815
|
-
# @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse] parsed result object
|
816
|
-
# @yieldparam err [StandardError] error object if request failed
|
817
|
-
#
|
818
|
-
# @return [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse]
|
819
|
-
#
|
820
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
821
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
822
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
823
|
-
def test_policy_based_route_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
824
|
-
command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options)
|
825
|
-
command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsRequest::Representation
|
826
|
-
command.request_object = test_iam_permissions_request_object
|
827
|
-
command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse::Representation
|
828
|
-
command.response_class = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse
|
829
|
-
command.params['resource'] = resource unless resource.nil?
|
830
|
-
command.query['fields'] = fields unless fields.nil?
|
831
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
832
|
-
execute_or_queue_command(command, &block)
|
833
|
-
end
|
834
|
-
|
835
834
|
# Creates a new Spoke in a given project and location.
|
836
835
|
# @param [String] parent
|
837
836
|
# Required. The parent's resource name of the Spoke.
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-networkconnectivity_v1alpha1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.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: 2021-
|
11
|
+
date: 2021-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.4'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
description: This is the simple REST client for Network Connectivity API V1alpha1.
|
28
34
|
Simple REST clients are Ruby client libraries that provide access to Google services
|
29
35
|
via their HTTP REST API endpoints. These libraries are generated and updated automatically
|
@@ -52,7 +58,7 @@ licenses:
|
|
52
58
|
metadata:
|
53
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-networkconnectivity_v1alpha1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-networkconnectivity_v1alpha1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-networkconnectivity_v1alpha1/v0.8.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-networkconnectivity_v1alpha1
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|
@@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
75
|
- !ruby/object:Gem::Version
|
70
76
|
version: '0'
|
71
77
|
requirements: []
|
72
|
-
rubygems_version: 3.2.
|
78
|
+
rubygems_version: 3.2.17
|
73
79
|
signing_key:
|
74
80
|
specification_version: 4
|
75
81
|
summary: Simple REST client for Network Connectivity API V1alpha1
|