google-apis-networkconnectivity_v1alpha1 0.15.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2aea8eebe96e1e37fac21884a9007f74ab63bc558dd487c6fa31d19cce42cbf0
4
- data.tar.gz: edaeaef2233d2f6d79a9364884c84b61380325c7ed56ec50c8853efa500245d5
3
+ metadata.gz: 68c851d57d97195ad77cfdb88bfc3b3f11cc4ef5cc4ec6b9be5145cfa1b44964
4
+ data.tar.gz: 7c52aad4cdf196c53562e1b9337e84f205eec2fb283a9cfdce6c9bb18bcc33de
5
5
  SHA512:
6
- metadata.gz: 30e75b6ae5bc6eb67089bdfd63fcecadc439b8bdd6db11d04b1a3f8fead1ed3d52a66e572dab69f7bfe85feb4748278dd8bc09d93cfea6494e1fe5a85bb8c1af
7
- data.tar.gz: 2f6785d3210340c61911cb035c5779e48f0ec4c9a4979c26ecd196a64df6d8f9b90511956c209492d4b6e26ce35c95d5a325d8db445f055a0cd987e896ed5c37
6
+ metadata.gz: feeb8573c5d47e69e14f734a0e0e316318bbef8ec786f6eff8627b21c41750ad7f59e699a922afb41306e313707e6582282331f07db54644e7c249414e5e6ffb
7
+ data.tar.gz: b5ffd1a1d20edaeb25bc9d79d794011c93ac30d162a676a8008793478e95c47830a8f3b0e749b2c8e86eff00a7c528f8e158172f07543c82418a69eeac0da75c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.15.0 (2022-04-12)
4
8
 
5
9
  * Regenerated from discovery document revision 20220404
@@ -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.15.0"
19
+ GEM_VERSION = "0.16.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 = "20220404"
25
+ REVISION = "20220426"
26
26
  end
27
27
  end
28
28
  end
@@ -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,124 +840,6 @@ module Google
722
840
  execute_or_queue_command(command, &block)
723
841
  end
724
842
 
725
- # Gets the access control policy for a resource. Returns an empty policy if the
726
- # resource exists and does not have a policy set.
727
- # @param [String] resource
728
- # REQUIRED: The resource for which the policy is being requested. See the
729
- # operation documentation for the appropriate value for this field.
730
- # @param [Fixnum] options_requested_policy_version
731
- # Optional. The maximum policy version that will be used to format the policy.
732
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
733
- # rejected. Requests for policies with any conditional role bindings must
734
- # specify version 3. Policies with no conditional role bindings may specify any
735
- # valid value or leave the field unset. The policy in the response might use the
736
- # policy version that you specified, or it might use a lower policy version. For
737
- # example, if you specify version 3, but the policy has no conditional role
738
- # bindings, the response uses version 1. To learn which resources support
739
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
740
- # google.com/iam/help/conditions/resource-policies).
741
- # @param [String] fields
742
- # Selector specifying which fields to include in a partial response.
743
- # @param [String] quota_user
744
- # Available to use for quota purposes for server-side applications. Can be any
745
- # arbitrary string assigned to a user, but should not exceed 40 characters.
746
- # @param [Google::Apis::RequestOptions] options
747
- # Request-specific options
748
- #
749
- # @yield [result, err] Result & error if block supplied
750
- # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::Policy] parsed result object
751
- # @yieldparam err [StandardError] error object if request failed
752
- #
753
- # @return [Google::Apis::NetworkconnectivityV1alpha1::Policy]
754
- #
755
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
756
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
757
- # @raise [Google::Apis::AuthorizationError] Authorization is required
758
- def get_project_location_service_connect_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
759
- command = make_simple_command(:get, 'v1alpha1/{+resource}:getIamPolicy', options)
760
- command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Policy::Representation
761
- command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Policy
762
- command.params['resource'] = resource unless resource.nil?
763
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
764
- command.query['fields'] = fields unless fields.nil?
765
- command.query['quotaUser'] = quota_user unless quota_user.nil?
766
- execute_or_queue_command(command, &block)
767
- end
768
-
769
- # Sets the access control policy on the specified resource. Replaces any
770
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
771
- # PERMISSION_DENIED` errors.
772
- # @param [String] resource
773
- # REQUIRED: The resource for which the policy is being specified. See the
774
- # operation documentation for the appropriate value for this field.
775
- # @param [Google::Apis::NetworkconnectivityV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object
776
- # @param [String] fields
777
- # Selector specifying which fields to include in a partial response.
778
- # @param [String] quota_user
779
- # Available to use for quota purposes for server-side applications. Can be any
780
- # arbitrary string assigned to a user, but should not exceed 40 characters.
781
- # @param [Google::Apis::RequestOptions] options
782
- # Request-specific options
783
- #
784
- # @yield [result, err] Result & error if block supplied
785
- # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::Policy] parsed result object
786
- # @yieldparam err [StandardError] error object if request failed
787
- #
788
- # @return [Google::Apis::NetworkconnectivityV1alpha1::Policy]
789
- #
790
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
791
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
792
- # @raise [Google::Apis::AuthorizationError] Authorization is required
793
- def set_service_connect_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
794
- command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options)
795
- command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::SetIamPolicyRequest::Representation
796
- command.request_object = set_iam_policy_request_object
797
- command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Policy::Representation
798
- command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Policy
799
- command.params['resource'] = resource unless resource.nil?
800
- command.query['fields'] = fields unless fields.nil?
801
- command.query['quotaUser'] = quota_user unless quota_user.nil?
802
- execute_or_queue_command(command, &block)
803
- end
804
-
805
- # Returns permissions that a caller has on the specified resource. If the
806
- # resource does not exist, this will return an empty set of permissions, not a `
807
- # NOT_FOUND` error. Note: This operation is designed to be used for building
808
- # permission-aware UIs and command-line tools, not for authorization checking.
809
- # This operation may "fail open" without warning.
810
- # @param [String] resource
811
- # REQUIRED: The resource for which the policy detail is being requested. See the
812
- # operation documentation for the appropriate value for this field.
813
- # @param [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object
814
- # @param [String] fields
815
- # Selector specifying which fields to include in a partial response.
816
- # @param [String] quota_user
817
- # Available to use for quota purposes for server-side applications. Can be any
818
- # arbitrary string assigned to a user, but should not exceed 40 characters.
819
- # @param [Google::Apis::RequestOptions] options
820
- # Request-specific options
821
- #
822
- # @yield [result, err] Result & error if block supplied
823
- # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse] parsed result object
824
- # @yieldparam err [StandardError] error object if request failed
825
- #
826
- # @return [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse]
827
- #
828
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
829
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
830
- # @raise [Google::Apis::AuthorizationError] Authorization is required
831
- def test_service_connect_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
832
- command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options)
833
- command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsRequest::Representation
834
- command.request_object = test_iam_permissions_request_object
835
- command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse::Representation
836
- command.response_class = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse
837
- command.params['resource'] = resource unless resource.nil?
838
- command.query['fields'] = fields unless fields.nil?
839
- command.query['quotaUser'] = quota_user unless quota_user.nil?
840
- execute_or_queue_command(command, &block)
841
- end
842
-
843
843
  # Gets the access control policy for a resource. Returns an empty policy if the
844
844
  # resource exists and does not have a policy set.
845
845
  # @param [String] resource
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.15.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-04-18 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.15.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: []