google-apis-networkconnectivity_v1alpha1 0.13.0 → 0.16.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: 415f54769e30cc0fcb51eb46ea976a5e7b201fb86ca72f9b1edf628663f3598e
4
- data.tar.gz: 676c11da1291fb3f0fb13f137916a17f1f7fbdee1c4a9ab576cdb5893936d69a
3
+ metadata.gz: 68c851d57d97195ad77cfdb88bfc3b3f11cc4ef5cc4ec6b9be5145cfa1b44964
4
+ data.tar.gz: 7c52aad4cdf196c53562e1b9337e84f205eec2fb283a9cfdce6c9bb18bcc33de
5
5
  SHA512:
6
- metadata.gz: 4767c9574f7404224af412bebb394f2349ca1c967f4a314abe95b0dc652aceada29397914ece3bfe620febbc53cd38f2d2b3a98ca0fb8f2f4780ad8b0a021a5b
7
- data.tar.gz: c6fa6ab5d3aa8fc76cdd646befb7f91faa1a0c22b9a88b4ef635808621d2d28ea2ca6f660629bbc1b3abbf085cd02bbf1c6cff06a44977622ab9ba8265a9e7b1
6
+ metadata.gz: feeb8573c5d47e69e14f734a0e0e316318bbef8ec786f6eff8627b21c41750ad7f59e699a922afb41306e313707e6582282331f07db54644e7c249414e5e6ffb
7
+ data.tar.gz: b5ffd1a1d20edaeb25bc9d79d794011c93ac30d162a676a8008793478e95c47830a8f3b0e749b2c8e86eff00a7c528f8e158172f07543c82418a69eeac0da75c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-networkconnectivity_v1alpha1
2
2
 
3
+ ### v0.16.0 (2022-04-30)
4
+
5
+ * Regenerated from discovery document revision 20220426
6
+
7
+ ### v0.15.0 (2022-04-12)
8
+
9
+ * Regenerated from discovery document revision 20220404
10
+
11
+ ### v0.14.0 (2022-03-26)
12
+
13
+ * Regenerated from discovery document revision 20220321
14
+ * Regenerated using generator version 0.4.1
15
+
3
16
  ### v0.13.0 (2021-12-14)
4
17
 
5
18
  * Unspecified changes
@@ -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 Platform resource. `
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
@@ -167,8 +167,7 @@ module Google
167
167
  # A generic empty message that you can re-use to avoid defining duplicated empty
168
168
  # messages in your APIs. A typical example is to use it as the request or the
169
169
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
170
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
171
- # `Empty` is empty JSON object ````.
170
+ # protobuf.Empty) returns (google.protobuf.Empty); `
172
171
  class Empty
173
172
  include Google::Apis::Core::Hashable
174
173
 
@@ -905,7 +904,7 @@ module Google
905
904
  include Google::Apis::Core::Hashable
906
905
 
907
906
  # The set of permissions to check for the `resource`. Permissions with wildcards
908
- # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
907
+ # (such as `*` or `storage.*`) are not allowed. For more information see [IAM
909
908
  # Overview](https://cloud.google.com/iam/docs/overview#permissions).
910
909
  # Corresponds to the JSON property `permissions`
911
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.13.0"
19
+ GEM_VERSION = "0.16.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211113"
25
+ REVISION = "20220426"
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", and is documented in more detail in [
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,124 @@ 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 the
129
+ # operation documentation for the appropriate value for this field.
130
+ # @param [Fixnum] options_requested_policy_version
131
+ # Optional. The maximum policy version that will be used to format the policy.
132
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
133
+ # rejected. Requests for policies with any conditional role bindings must
134
+ # specify version 3. Policies with no conditional role bindings may specify any
135
+ # valid value or leave the field unset. The policy in the response might use the
136
+ # policy version that you specified, or it might use a lower policy version. For
137
+ # example, if you specify version 3, but the policy has no conditional role
138
+ # bindings, the response uses version 1. To learn which resources support
139
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
140
+ # google.com/iam/help/conditions/resource-policies).
141
+ # @param [String] fields
142
+ # Selector specifying which fields to include in a partial response.
143
+ # @param [String] quota_user
144
+ # Available to use for quota purposes for server-side applications. Can be any
145
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
146
+ # @param [Google::Apis::RequestOptions] options
147
+ # Request-specific options
148
+ #
149
+ # @yield [result, err] Result & error if block supplied
150
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::Policy] parsed result object
151
+ # @yieldparam err [StandardError] error object if request failed
152
+ #
153
+ # @return [Google::Apis::NetworkconnectivityV1alpha1::Policy]
154
+ #
155
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
156
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
157
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
158
+ def get_project_location_connection_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
159
+ command = make_simple_command(:get, 'v1alpha1/{+resource}:getIamPolicy', options)
160
+ command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Policy::Representation
161
+ command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Policy
162
+ command.params['resource'] = resource unless resource.nil?
163
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
164
+ command.query['fields'] = fields unless fields.nil?
165
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
166
+ execute_or_queue_command(command, &block)
167
+ end
168
+
169
+ # Sets the access control policy on the specified resource. Replaces any
170
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
171
+ # PERMISSION_DENIED` errors.
172
+ # @param [String] resource
173
+ # REQUIRED: The resource for which the policy is being specified. See the
174
+ # operation documentation for the appropriate value for this field.
175
+ # @param [Google::Apis::NetworkconnectivityV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object
176
+ # @param [String] fields
177
+ # Selector specifying which fields to include in a partial response.
178
+ # @param [String] quota_user
179
+ # Available to use for quota purposes for server-side applications. Can be any
180
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
181
+ # @param [Google::Apis::RequestOptions] options
182
+ # Request-specific options
183
+ #
184
+ # @yield [result, err] Result & error if block supplied
185
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::Policy] parsed result object
186
+ # @yieldparam err [StandardError] error object if request failed
187
+ #
188
+ # @return [Google::Apis::NetworkconnectivityV1alpha1::Policy]
189
+ #
190
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
191
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
192
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
193
+ def set_connection_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
194
+ command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options)
195
+ command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::SetIamPolicyRequest::Representation
196
+ command.request_object = set_iam_policy_request_object
197
+ command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Policy::Representation
198
+ command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Policy
199
+ command.params['resource'] = resource unless resource.nil?
200
+ command.query['fields'] = fields unless fields.nil?
201
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
202
+ execute_or_queue_command(command, &block)
203
+ end
204
+
205
+ # Returns permissions that a caller has on the specified resource. If the
206
+ # resource does not exist, this will return an empty set of permissions, not a `
207
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
208
+ # permission-aware UIs and command-line tools, not for authorization checking.
209
+ # This operation may "fail open" without warning.
210
+ # @param [String] resource
211
+ # REQUIRED: The resource for which the policy detail is being requested. See the
212
+ # operation documentation for the appropriate value for this field.
213
+ # @param [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object
214
+ # @param [String] fields
215
+ # Selector specifying which fields to include in a partial response.
216
+ # @param [String] quota_user
217
+ # Available to use for quota purposes for server-side applications. Can be any
218
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
219
+ # @param [Google::Apis::RequestOptions] options
220
+ # Request-specific options
221
+ #
222
+ # @yield [result, err] Result & error if block supplied
223
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse] parsed result object
224
+ # @yieldparam err [StandardError] error object if request failed
225
+ #
226
+ # @return [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse]
227
+ #
228
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
229
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
230
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
231
+ def test_connection_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
232
+ command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options)
233
+ command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsRequest::Representation
234
+ command.request_object = test_iam_permissions_request_object
235
+ command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse::Representation
236
+ command.response_class = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse
237
+ command.params['resource'] = resource unless resource.nil?
238
+ command.query['fields'] = fields unless fields.nil?
239
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
240
+ execute_or_queue_command(command, &block)
241
+ end
242
+
125
243
  # Creates a new Hub in a given project and location.
126
244
  # @param [String] parent
127
245
  # Required. The parent resource's name of the Hub.
@@ -722,6 +840,124 @@ module Google
722
840
  execute_or_queue_command(command, &block)
723
841
  end
724
842
 
843
+ # Gets the access control policy for a resource. Returns an empty policy if the
844
+ # resource exists and does not have a policy set.
845
+ # @param [String] resource
846
+ # REQUIRED: The resource for which the policy is being requested. See the
847
+ # operation documentation for the appropriate value for this field.
848
+ # @param [Fixnum] options_requested_policy_version
849
+ # Optional. The maximum policy version that will be used to format the policy.
850
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
851
+ # rejected. Requests for policies with any conditional role bindings must
852
+ # specify version 3. Policies with no conditional role bindings may specify any
853
+ # valid value or leave the field unset. The policy in the response might use the
854
+ # policy version that you specified, or it might use a lower policy version. For
855
+ # example, if you specify version 3, but the policy has no conditional role
856
+ # bindings, the response uses version 1. To learn which resources support
857
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
858
+ # google.com/iam/help/conditions/resource-policies).
859
+ # @param [String] fields
860
+ # Selector specifying which fields to include in a partial response.
861
+ # @param [String] quota_user
862
+ # Available to use for quota purposes for server-side applications. Can be any
863
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
864
+ # @param [Google::Apis::RequestOptions] options
865
+ # Request-specific options
866
+ #
867
+ # @yield [result, err] Result & error if block supplied
868
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::Policy] parsed result object
869
+ # @yieldparam err [StandardError] error object if request failed
870
+ #
871
+ # @return [Google::Apis::NetworkconnectivityV1alpha1::Policy]
872
+ #
873
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
874
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
875
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
876
+ def get_project_location_service_instance_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
877
+ command = make_simple_command(:get, 'v1alpha1/{+resource}:getIamPolicy', options)
878
+ command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Policy::Representation
879
+ command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Policy
880
+ command.params['resource'] = resource unless resource.nil?
881
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
882
+ command.query['fields'] = fields unless fields.nil?
883
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
884
+ execute_or_queue_command(command, &block)
885
+ end
886
+
887
+ # Sets the access control policy on the specified resource. Replaces any
888
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
889
+ # PERMISSION_DENIED` errors.
890
+ # @param [String] resource
891
+ # REQUIRED: The resource for which the policy is being specified. See the
892
+ # operation documentation for the appropriate value for this field.
893
+ # @param [Google::Apis::NetworkconnectivityV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object
894
+ # @param [String] fields
895
+ # Selector specifying which fields to include in a partial response.
896
+ # @param [String] quota_user
897
+ # Available to use for quota purposes for server-side applications. Can be any
898
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
899
+ # @param [Google::Apis::RequestOptions] options
900
+ # Request-specific options
901
+ #
902
+ # @yield [result, err] Result & error if block supplied
903
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::Policy] parsed result object
904
+ # @yieldparam err [StandardError] error object if request failed
905
+ #
906
+ # @return [Google::Apis::NetworkconnectivityV1alpha1::Policy]
907
+ #
908
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
909
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
910
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
911
+ def set_service_instance_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
912
+ command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options)
913
+ command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::SetIamPolicyRequest::Representation
914
+ command.request_object = set_iam_policy_request_object
915
+ command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Policy::Representation
916
+ command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Policy
917
+ command.params['resource'] = resource unless resource.nil?
918
+ command.query['fields'] = fields unless fields.nil?
919
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
920
+ execute_or_queue_command(command, &block)
921
+ end
922
+
923
+ # Returns permissions that a caller has on the specified resource. If the
924
+ # resource does not exist, this will return an empty set of permissions, not a `
925
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
926
+ # permission-aware UIs and command-line tools, not for authorization checking.
927
+ # This operation may "fail open" without warning.
928
+ # @param [String] resource
929
+ # REQUIRED: The resource for which the policy detail is being requested. See the
930
+ # operation documentation for the appropriate value for this field.
931
+ # @param [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object
932
+ # @param [String] fields
933
+ # Selector specifying which fields to include in a partial response.
934
+ # @param [String] quota_user
935
+ # Available to use for quota purposes for server-side applications. Can be any
936
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
937
+ # @param [Google::Apis::RequestOptions] options
938
+ # Request-specific options
939
+ #
940
+ # @yield [result, err] Result & error if block supplied
941
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse] parsed result object
942
+ # @yieldparam err [StandardError] error object if request failed
943
+ #
944
+ # @return [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse]
945
+ #
946
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
947
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
948
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
949
+ def test_service_instance_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
950
+ command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options)
951
+ command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsRequest::Representation
952
+ command.request_object = test_iam_permissions_request_object
953
+ command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse::Representation
954
+ command.response_class = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse
955
+ command.params['resource'] = resource unless resource.nil?
956
+ command.query['fields'] = fields unless fields.nil?
957
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
958
+ execute_or_queue_command(command, &block)
959
+ end
960
+
725
961
  # Creates a new Spoke in a given project and location.
726
962
  # @param [String] parent
727
963
  # Required. The parent's resource name of the Spoke.
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.13.0
4
+ version: 0.16.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-01-10 00:00:00.000000000 Z
11
+ date: 2022-05-02 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.13.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-networkconnectivity_v1alpha1/v0.16.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: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.4
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Network Connectivity API V1alpha1