google-apis-networkconnectivity_v1alpha1 0.14.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e87348781f8cbf6ec36bcfae4f0862097ce93bdefc8866ddcf2dd914395e5f1d
|
4
|
+
data.tar.gz: 49409f0bd3b120520aeaa9f9d95b65d62251090fdad52c480426c13427a7002d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 999c1f296ef5568643e1cf983b941143cb7fc18a968ef695c1084f204e977dd598bb33670a8bc041b9350479f95b38acccc108951bdb70792cd22062a9d665bf
|
7
|
+
data.tar.gz: a6dde662e9e4de4ec1fad32ab1fa9bea965e95d439c38e403a31a0abd2911bfee33666b51bf96824e737f50718e2c3508234a99d8b275c265e80cb79f1733129
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-networkconnectivity_v1alpha1
|
2
2
|
|
3
|
+
### v0.17.0 (2022-05-10)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220505
|
6
|
+
|
7
|
+
### v0.16.0 (2022-04-30)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220426
|
10
|
+
|
11
|
+
### v0.15.0 (2022-04-12)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220404
|
14
|
+
|
3
15
|
### v0.14.0 (2022-03-26)
|
4
16
|
|
5
17
|
* Regenerated from discovery document revision 20220321
|
@@ -35,8 +35,8 @@ module Google
|
|
35
35
|
# "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
|
36
36
|
# , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
|
37
37
|
# this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also
|
38
|
-
# exempts jose@example.com from DATA_READ logging, and aliya@example.com
|
39
|
-
# DATA_WRITE logging.
|
38
|
+
# exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com`
|
39
|
+
# from DATA_WRITE logging.
|
40
40
|
class AuditConfig
|
41
41
|
include Google::Apis::Core::Hashable
|
42
42
|
|
@@ -116,7 +116,7 @@ module Google
|
|
116
116
|
# @return [Google::Apis::NetworkconnectivityV1alpha1::Expr]
|
117
117
|
attr_accessor :condition
|
118
118
|
|
119
|
-
# Specifies the principals requesting access for a Cloud
|
119
|
+
# Specifies the principals requesting access for a Google Cloud resource. `
|
120
120
|
# members` can have the following values: * `allUsers`: A special identifier
|
121
121
|
# that represents anyone who is on the internet; with or without a Google
|
122
122
|
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
@@ -904,7 +904,7 @@ module Google
|
|
904
904
|
include Google::Apis::Core::Hashable
|
905
905
|
|
906
906
|
# The set of permissions to check for the `resource`. Permissions with wildcards
|
907
|
-
# (such as
|
907
|
+
# (such as `*` or `storage.*`) are not allowed. For more information see [IAM
|
908
908
|
# Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
909
909
|
# Corresponds to the JSON property `permissions`
|
910
910
|
# @return [Array<String>]
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module NetworkconnectivityV1alpha1
|
18
18
|
# Version of the google-apis-networkconnectivity_v1alpha1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.17.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220505"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -84,8 +84,8 @@ module Google
|
|
84
84
|
# The resource that owns the locations collection, if applicable.
|
85
85
|
# @param [String] filter
|
86
86
|
# A filter to narrow down results to a preferred subset. The filtering language
|
87
|
-
# accepts strings like "displayName=tokyo"
|
88
|
-
# AIP-160](https://google.aip.dev/160).
|
87
|
+
# accepts strings like `"displayName=tokyo"`, and is documented in more detail
|
88
|
+
# in [AIP-160](https://google.aip.dev/160).
|
89
89
|
# @param [Fixnum] page_size
|
90
90
|
# The maximum number of results to return. If not set, the service selects a
|
91
91
|
# default.
|
@@ -122,6 +122,127 @@ module Google
|
|
122
122
|
execute_or_queue_command(command, &block)
|
123
123
|
end
|
124
124
|
|
125
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
126
|
+
# resource exists and does not have a policy set.
|
127
|
+
# @param [String] resource
|
128
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
129
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
130
|
+
# appropriate value for this field.
|
131
|
+
# @param [Fixnum] options_requested_policy_version
|
132
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
133
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
134
|
+
# rejected. Requests for policies with any conditional role bindings must
|
135
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
136
|
+
# valid value or leave the field unset. The policy in the response might use the
|
137
|
+
# policy version that you specified, or it might use a lower policy version. For
|
138
|
+
# example, if you specify version 3, but the policy has no conditional role
|
139
|
+
# bindings, the response uses version 1. To learn which resources support
|
140
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
141
|
+
# google.com/iam/help/conditions/resource-policies).
|
142
|
+
# @param [String] fields
|
143
|
+
# Selector specifying which fields to include in a partial response.
|
144
|
+
# @param [String] quota_user
|
145
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
146
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
147
|
+
# @param [Google::Apis::RequestOptions] options
|
148
|
+
# Request-specific options
|
149
|
+
#
|
150
|
+
# @yield [result, err] Result & error if block supplied
|
151
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::Policy] parsed result object
|
152
|
+
# @yieldparam err [StandardError] error object if request failed
|
153
|
+
#
|
154
|
+
# @return [Google::Apis::NetworkconnectivityV1alpha1::Policy]
|
155
|
+
#
|
156
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
157
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
158
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
159
|
+
def get_project_location_connection_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
160
|
+
command = make_simple_command(:get, 'v1alpha1/{+resource}:getIamPolicy', options)
|
161
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Policy::Representation
|
162
|
+
command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Policy
|
163
|
+
command.params['resource'] = resource unless resource.nil?
|
164
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
165
|
+
command.query['fields'] = fields unless fields.nil?
|
166
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
167
|
+
execute_or_queue_command(command, &block)
|
168
|
+
end
|
169
|
+
|
170
|
+
# Sets the access control policy on the specified resource. Replaces any
|
171
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
172
|
+
# PERMISSION_DENIED` errors.
|
173
|
+
# @param [String] resource
|
174
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
175
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
176
|
+
# appropriate value for this field.
|
177
|
+
# @param [Google::Apis::NetworkconnectivityV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object
|
178
|
+
# @param [String] fields
|
179
|
+
# Selector specifying which fields to include in a partial response.
|
180
|
+
# @param [String] quota_user
|
181
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
182
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
183
|
+
# @param [Google::Apis::RequestOptions] options
|
184
|
+
# Request-specific options
|
185
|
+
#
|
186
|
+
# @yield [result, err] Result & error if block supplied
|
187
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::Policy] parsed result object
|
188
|
+
# @yieldparam err [StandardError] error object if request failed
|
189
|
+
#
|
190
|
+
# @return [Google::Apis::NetworkconnectivityV1alpha1::Policy]
|
191
|
+
#
|
192
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
193
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
194
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
195
|
+
def set_connection_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
196
|
+
command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options)
|
197
|
+
command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::SetIamPolicyRequest::Representation
|
198
|
+
command.request_object = set_iam_policy_request_object
|
199
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Policy::Representation
|
200
|
+
command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Policy
|
201
|
+
command.params['resource'] = resource unless resource.nil?
|
202
|
+
command.query['fields'] = fields unless fields.nil?
|
203
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
204
|
+
execute_or_queue_command(command, &block)
|
205
|
+
end
|
206
|
+
|
207
|
+
# Returns permissions that a caller has on the specified resource. If the
|
208
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
209
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
210
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
211
|
+
# This operation may "fail open" without warning.
|
212
|
+
# @param [String] resource
|
213
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
214
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
215
|
+
# appropriate value for this field.
|
216
|
+
# @param [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
217
|
+
# @param [String] fields
|
218
|
+
# Selector specifying which fields to include in a partial response.
|
219
|
+
# @param [String] quota_user
|
220
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
221
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
222
|
+
# @param [Google::Apis::RequestOptions] options
|
223
|
+
# Request-specific options
|
224
|
+
#
|
225
|
+
# @yield [result, err] Result & error if block supplied
|
226
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse] parsed result object
|
227
|
+
# @yieldparam err [StandardError] error object if request failed
|
228
|
+
#
|
229
|
+
# @return [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse]
|
230
|
+
#
|
231
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
232
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
233
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
234
|
+
def test_connection_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
235
|
+
command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options)
|
236
|
+
command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsRequest::Representation
|
237
|
+
command.request_object = test_iam_permissions_request_object
|
238
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse::Representation
|
239
|
+
command.response_class = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse
|
240
|
+
command.params['resource'] = resource unless resource.nil?
|
241
|
+
command.query['fields'] = fields unless fields.nil?
|
242
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
243
|
+
execute_or_queue_command(command, &block)
|
244
|
+
end
|
245
|
+
|
125
246
|
# Creates a new Hub in a given project and location.
|
126
247
|
# @param [String] parent
|
127
248
|
# Required. The parent resource's name of the Hub.
|
@@ -245,8 +366,9 @@ module Google
|
|
245
366
|
# Gets the access control policy for a resource. Returns an empty policy if the
|
246
367
|
# resource exists and does not have a policy set.
|
247
368
|
# @param [String] resource
|
248
|
-
# REQUIRED: The resource for which the policy is being requested. See
|
249
|
-
#
|
369
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
370
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
371
|
+
# appropriate value for this field.
|
250
372
|
# @param [Fixnum] options_requested_policy_version
|
251
373
|
# Optional. The maximum policy version that will be used to format the policy.
|
252
374
|
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
@@ -384,8 +506,9 @@ module Google
|
|
384
506
|
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
385
507
|
# PERMISSION_DENIED` errors.
|
386
508
|
# @param [String] resource
|
387
|
-
# REQUIRED: The resource for which the policy is being specified. See
|
388
|
-
#
|
509
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
510
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
511
|
+
# appropriate value for this field.
|
389
512
|
# @param [Google::Apis::NetworkconnectivityV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object
|
390
513
|
# @param [String] fields
|
391
514
|
# Selector specifying which fields to include in a partial response.
|
@@ -422,8 +545,9 @@ module Google
|
|
422
545
|
# permission-aware UIs and command-line tools, not for authorization checking.
|
423
546
|
# This operation may "fail open" without warning.
|
424
547
|
# @param [String] resource
|
425
|
-
# REQUIRED: The resource for which the policy detail is being requested. See
|
426
|
-
#
|
548
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
549
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
550
|
+
# appropriate value for this field.
|
427
551
|
# @param [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
428
552
|
# @param [String] fields
|
429
553
|
# Selector specifying which fields to include in a partial response.
|
@@ -457,8 +581,9 @@ module Google
|
|
457
581
|
# Gets the access control policy for a resource. Returns an empty policy if the
|
458
582
|
# resource exists and does not have a policy set.
|
459
583
|
# @param [String] resource
|
460
|
-
# REQUIRED: The resource for which the policy is being requested. See
|
461
|
-
#
|
584
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
585
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
586
|
+
# appropriate value for this field.
|
462
587
|
# @param [Fixnum] options_requested_policy_version
|
463
588
|
# Optional. The maximum policy version that will be used to format the policy.
|
464
589
|
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
@@ -502,8 +627,9 @@ module Google
|
|
502
627
|
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
503
628
|
# PERMISSION_DENIED` errors.
|
504
629
|
# @param [String] resource
|
505
|
-
# REQUIRED: The resource for which the policy is being specified. See
|
506
|
-
#
|
630
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
631
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
632
|
+
# appropriate value for this field.
|
507
633
|
# @param [Google::Apis::NetworkconnectivityV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object
|
508
634
|
# @param [String] fields
|
509
635
|
# Selector specifying which fields to include in a partial response.
|
@@ -540,8 +666,9 @@ module Google
|
|
540
666
|
# permission-aware UIs and command-line tools, not for authorization checking.
|
541
667
|
# This operation may "fail open" without warning.
|
542
668
|
# @param [String] resource
|
543
|
-
# REQUIRED: The resource for which the policy detail is being requested. See
|
544
|
-
#
|
669
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
670
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
671
|
+
# appropriate value for this field.
|
545
672
|
# @param [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
546
673
|
# @param [String] fields
|
547
674
|
# Selector specifying which fields to include in a partial response.
|
@@ -722,6 +849,127 @@ module Google
|
|
722
849
|
execute_or_queue_command(command, &block)
|
723
850
|
end
|
724
851
|
|
852
|
+
# Gets the access control policy for a resource. Returns an empty policy if the
|
853
|
+
# resource exists and does not have a policy set.
|
854
|
+
# @param [String] resource
|
855
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
856
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
857
|
+
# appropriate value for this field.
|
858
|
+
# @param [Fixnum] options_requested_policy_version
|
859
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
860
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
861
|
+
# rejected. Requests for policies with any conditional role bindings must
|
862
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
863
|
+
# valid value or leave the field unset. The policy in the response might use the
|
864
|
+
# policy version that you specified, or it might use a lower policy version. For
|
865
|
+
# example, if you specify version 3, but the policy has no conditional role
|
866
|
+
# bindings, the response uses version 1. To learn which resources support
|
867
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
868
|
+
# google.com/iam/help/conditions/resource-policies).
|
869
|
+
# @param [String] fields
|
870
|
+
# Selector specifying which fields to include in a partial response.
|
871
|
+
# @param [String] quota_user
|
872
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
873
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
874
|
+
# @param [Google::Apis::RequestOptions] options
|
875
|
+
# Request-specific options
|
876
|
+
#
|
877
|
+
# @yield [result, err] Result & error if block supplied
|
878
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::Policy] parsed result object
|
879
|
+
# @yieldparam err [StandardError] error object if request failed
|
880
|
+
#
|
881
|
+
# @return [Google::Apis::NetworkconnectivityV1alpha1::Policy]
|
882
|
+
#
|
883
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
884
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
885
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
886
|
+
def get_project_location_service_instance_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
887
|
+
command = make_simple_command(:get, 'v1alpha1/{+resource}:getIamPolicy', options)
|
888
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Policy::Representation
|
889
|
+
command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Policy
|
890
|
+
command.params['resource'] = resource unless resource.nil?
|
891
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
892
|
+
command.query['fields'] = fields unless fields.nil?
|
893
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
894
|
+
execute_or_queue_command(command, &block)
|
895
|
+
end
|
896
|
+
|
897
|
+
# Sets the access control policy on the specified resource. Replaces any
|
898
|
+
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
899
|
+
# PERMISSION_DENIED` errors.
|
900
|
+
# @param [String] resource
|
901
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
902
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
903
|
+
# appropriate value for this field.
|
904
|
+
# @param [Google::Apis::NetworkconnectivityV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object
|
905
|
+
# @param [String] fields
|
906
|
+
# Selector specifying which fields to include in a partial response.
|
907
|
+
# @param [String] quota_user
|
908
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
909
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
910
|
+
# @param [Google::Apis::RequestOptions] options
|
911
|
+
# Request-specific options
|
912
|
+
#
|
913
|
+
# @yield [result, err] Result & error if block supplied
|
914
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::Policy] parsed result object
|
915
|
+
# @yieldparam err [StandardError] error object if request failed
|
916
|
+
#
|
917
|
+
# @return [Google::Apis::NetworkconnectivityV1alpha1::Policy]
|
918
|
+
#
|
919
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
920
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
921
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
922
|
+
def set_service_instance_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
923
|
+
command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options)
|
924
|
+
command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::SetIamPolicyRequest::Representation
|
925
|
+
command.request_object = set_iam_policy_request_object
|
926
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Policy::Representation
|
927
|
+
command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Policy
|
928
|
+
command.params['resource'] = resource unless resource.nil?
|
929
|
+
command.query['fields'] = fields unless fields.nil?
|
930
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
931
|
+
execute_or_queue_command(command, &block)
|
932
|
+
end
|
933
|
+
|
934
|
+
# Returns permissions that a caller has on the specified resource. If the
|
935
|
+
# resource does not exist, this will return an empty set of permissions, not a `
|
936
|
+
# NOT_FOUND` error. Note: This operation is designed to be used for building
|
937
|
+
# permission-aware UIs and command-line tools, not for authorization checking.
|
938
|
+
# This operation may "fail open" without warning.
|
939
|
+
# @param [String] resource
|
940
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
941
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
942
|
+
# appropriate value for this field.
|
943
|
+
# @param [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
944
|
+
# @param [String] fields
|
945
|
+
# Selector specifying which fields to include in a partial response.
|
946
|
+
# @param [String] quota_user
|
947
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
948
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
949
|
+
# @param [Google::Apis::RequestOptions] options
|
950
|
+
# Request-specific options
|
951
|
+
#
|
952
|
+
# @yield [result, err] Result & error if block supplied
|
953
|
+
# @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse] parsed result object
|
954
|
+
# @yieldparam err [StandardError] error object if request failed
|
955
|
+
#
|
956
|
+
# @return [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse]
|
957
|
+
#
|
958
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
959
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
960
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
961
|
+
def test_service_instance_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
962
|
+
command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options)
|
963
|
+
command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsRequest::Representation
|
964
|
+
command.request_object = test_iam_permissions_request_object
|
965
|
+
command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse::Representation
|
966
|
+
command.response_class = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse
|
967
|
+
command.params['resource'] = resource unless resource.nil?
|
968
|
+
command.query['fields'] = fields unless fields.nil?
|
969
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
970
|
+
execute_or_queue_command(command, &block)
|
971
|
+
end
|
972
|
+
|
725
973
|
# Creates a new Spoke in a given project and location.
|
726
974
|
# @param [String] parent
|
727
975
|
# Required. The parent's resource name of the Spoke.
|
@@ -845,8 +1093,9 @@ module Google
|
|
845
1093
|
# Gets the access control policy for a resource. Returns an empty policy if the
|
846
1094
|
# resource exists and does not have a policy set.
|
847
1095
|
# @param [String] resource
|
848
|
-
# REQUIRED: The resource for which the policy is being requested. See
|
849
|
-
#
|
1096
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
1097
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1098
|
+
# appropriate value for this field.
|
850
1099
|
# @param [Fixnum] options_requested_policy_version
|
851
1100
|
# Optional. The maximum policy version that will be used to format the policy.
|
852
1101
|
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
@@ -984,8 +1233,9 @@ module Google
|
|
984
1233
|
# existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
|
985
1234
|
# PERMISSION_DENIED` errors.
|
986
1235
|
# @param [String] resource
|
987
|
-
# REQUIRED: The resource for which the policy is being specified. See
|
988
|
-
#
|
1236
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
1237
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
1238
|
+
# appropriate value for this field.
|
989
1239
|
# @param [Google::Apis::NetworkconnectivityV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object
|
990
1240
|
# @param [String] fields
|
991
1241
|
# Selector specifying which fields to include in a partial response.
|
@@ -1022,8 +1272,9 @@ module Google
|
|
1022
1272
|
# permission-aware UIs and command-line tools, not for authorization checking.
|
1023
1273
|
# This operation may "fail open" without warning.
|
1024
1274
|
# @param [String] resource
|
1025
|
-
# REQUIRED: The resource for which the policy detail is being requested. See
|
1026
|
-
#
|
1275
|
+
# REQUIRED: The resource for which the policy detail is being requested. See [
|
1276
|
+
# Resource names](https://cloud.google.com/apis/design/resource_names) for the
|
1277
|
+
# appropriate value for this field.
|
1027
1278
|
# @param [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
1028
1279
|
# @param [String] fields
|
1029
1280
|
# Selector specifying which fields to include in a partial response.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.17.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: 2022-
|
11
|
+
date: 2022-05-16 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_v1alpha1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-networkconnectivity_v1alpha1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-networkconnectivity_v1alpha1/v0.17.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkconnectivity_v1alpha1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|