google-apis-beyondcorp_v1 0.19.0 → 0.21.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: 877f3136594685d0db85ef9ddb81744a1299473f478e67b6805a6e472b997332
4
- data.tar.gz: 72556589042d8d1fc08cfb268d27f843f757db5263c64e9ea3f2457599aa0355
3
+ metadata.gz: 401a248fe6ea221cddeaf8a46013ad90b8ca3e2827e0a8400d4bc0b1afb1cf23
4
+ data.tar.gz: 6e9218994f43619eae2741690a5a6775debb00c7aba790f38b6d9f0c45cab45a
5
5
  SHA512:
6
- metadata.gz: 1f0576717f611852e033f36874d51cac67dae5b97ddfba1c7a35e3c2f9dc6ed0d272c2d0dc275211f4111be0b221e9f1c278edc6e3601def9afbad900aba4d06
7
- data.tar.gz: caa0c1508955b07573941d5f86b30d4275d9482f0605a9e7c2547abc688831d1b2dcb2a4f1c7cd250963ae8404b16d690a040c9bfcd82b48e66430ca83244cc9
6
+ metadata.gz: 44bf188e42bfbabcd8861a3c594f2e6be28b9d110e6e4295991d9f03eb2f9e818ec2190191b72726fa5da0c1998cfd7767a9cdbcb09399878fb9cb5aa24bd76e
7
+ data.tar.gz: 5f48b8bee28d72cb285debb5566cf8c74a34bbab558591511366834450fd173fa679f5dd0697c3d046b63b054e2ff3e5d43859066eaf1444590cad42b60f79d7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-beyondcorp_v1
2
2
 
3
+ ### v0.21.0 (2024-01-22)
4
+
5
+ * Regenerated from discovery document revision 20240103
6
+ * Regenerated using generator version 0.13.0
7
+
8
+ ### v0.20.0 (2023-09-17)
9
+
10
+ * Regenerated from discovery document revision 20230911
11
+
3
12
  ### v0.19.0 (2023-09-10)
4
13
 
5
14
  * Regenerated from discovery document revision 20230823
@@ -1828,21 +1828,43 @@ module Google
1828
1828
  # project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:`emailid``: An
1829
1829
  # email address that represents a Google group. For example, `admins@example.com`
1830
1830
  # . * `domain:`domain``: The G Suite domain (primary) that represents all the
1831
- # users of that domain. For example, `google.com` or `example.com`. * `deleted:
1832
- # user:`emailid`?uid=`uniqueid``: An email address (plus unique identifier)
1833
- # representing a user that has been recently deleted. For example, `alice@
1834
- # example.com?uid=123456789012345678901`. If the user is recovered, this value
1835
- # reverts to `user:`emailid`` and the recovered user retains the role in the
1836
- # binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address
1837
- # (plus unique identifier) representing a service account that has been recently
1838
- # deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
1831
+ # users of that domain. For example, `google.com` or `example.com`. * `principal:
1832
+ # //iam.googleapis.com/locations/global/workforcePools/`pool_id`/subject/`
1833
+ # subject_attribute_value``: A single identity in a workforce identity pool. * `
1834
+ # principalSet://iam.googleapis.com/locations/global/workforcePools/`pool_id`/
1835
+ # group/`group_id``: All workforce identities in a group. * `principalSet://iam.
1836
+ # googleapis.com/locations/global/workforcePools/`pool_id`/attribute.`
1837
+ # attribute_name`/`attribute_value``: All workforce identities with a specific
1838
+ # attribute value. * `principalSet://iam.googleapis.com/locations/global/
1839
+ # workforcePools/`pool_id`/*`: All identities in a workforce identity pool. * `
1840
+ # principal://iam.googleapis.com/projects/`project_number`/locations/global/
1841
+ # workloadIdentityPools/`pool_id`/subject/`subject_attribute_value``: A single
1842
+ # identity in a workload identity pool. * `principalSet://iam.googleapis.com/
1843
+ # projects/`project_number`/locations/global/workloadIdentityPools/`pool_id`/
1844
+ # group/`group_id``: A workload identity pool group. * `principalSet://iam.
1845
+ # googleapis.com/projects/`project_number`/locations/global/
1846
+ # workloadIdentityPools/`pool_id`/attribute.`attribute_name`/`attribute_value``:
1847
+ # All identities in a workload identity pool with a certain attribute. * `
1848
+ # principalSet://iam.googleapis.com/projects/`project_number`/locations/global/
1849
+ # workloadIdentityPools/`pool_id`/*`: All identities in a workload identity pool.
1850
+ # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
1851
+ # identifier) representing a user that has been recently deleted. For example, `
1852
+ # alice@example.com?uid=123456789012345678901`. If the user is recovered, this
1853
+ # value reverts to `user:`emailid`` and the recovered user retains the role in
1854
+ # the binding. * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email
1855
+ # address (plus unique identifier) representing a service account that has been
1856
+ # recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
1839
1857
  # 123456789012345678901`. If the service account is undeleted, this value
1840
1858
  # reverts to `serviceAccount:`emailid`` and the undeleted service account
1841
1859
  # retains the role in the binding. * `deleted:group:`emailid`?uid=`uniqueid``:
1842
1860
  # An email address (plus unique identifier) representing a Google group that has
1843
1861
  # been recently deleted. For example, `admins@example.com?uid=
1844
1862
  # 123456789012345678901`. If the group is recovered, this value reverts to `
1845
- # group:`emailid`` and the recovered group retains the role in the binding.
1863
+ # group:`emailid`` and the recovered group retains the role in the binding. * `
1864
+ # deleted:principal://iam.googleapis.com/locations/global/workforcePools/`
1865
+ # pool_id`/subject/`subject_attribute_value``: Deleted single identity in a
1866
+ # workforce identity pool. For example, `deleted:principal://iam.googleapis.com/
1867
+ # locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`.
1846
1868
  # Corresponds to the JSON property `members`
1847
1869
  # @return [Array<String>]
1848
1870
  attr_accessor :members
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module BeyondcorpV1
18
18
  # Version of the google-apis-beyondcorp_v1 gem
19
- GEM_VERSION = "0.19.0"
19
+ GEM_VERSION = "0.21.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.13.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230823"
25
+ REVISION = "20240103"
26
26
  end
27
27
  end
28
28
  end
@@ -35,6 +35,8 @@ module Google
35
35
  #
36
36
  # @see https://cloud.google.com/
37
37
  class BeyondCorpService < Google::Apis::Core::BaseService
38
+ DEFAULT_ENDPOINT_TEMPLATE = "https://beyondcorp.$UNIVERSE_DOMAIN$/"
39
+
38
40
  # @return [String]
39
41
  # API key. Your API key identifies your project and provides you with API access,
40
42
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -46,7 +48,7 @@ module Google
46
48
  attr_accessor :quota_user
47
49
 
48
50
  def initialize
49
- super('https://beyondcorp.googleapis.com/', '',
51
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
50
52
  client_name: 'google-apis-beyondcorp_v1',
51
53
  client_version: Google::Apis::BeyondcorpV1::GEM_VERSION)
52
54
  @batch_path = 'batch'
@@ -173,6 +175,127 @@ module Google
173
175
  execute_or_queue_command(command, &block)
174
176
  end
175
177
 
178
+ # Gets the access control policy for a resource. Returns an empty policy if the
179
+ # resource exists and does not have a policy set.
180
+ # @param [String] resource
181
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
182
+ # names](https://cloud.google.com/apis/design/resource_names) for the
183
+ # appropriate value for this field.
184
+ # @param [Fixnum] options_requested_policy_version
185
+ # Optional. The maximum policy version that will be used to format the policy.
186
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
187
+ # rejected. Requests for policies with any conditional role bindings must
188
+ # specify version 3. Policies with no conditional role bindings may specify any
189
+ # valid value or leave the field unset. The policy in the response might use the
190
+ # policy version that you specified, or it might use a lower policy version. For
191
+ # example, if you specify version 3, but the policy has no conditional role
192
+ # bindings, the response uses version 1. To learn which resources support
193
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
194
+ # google.com/iam/help/conditions/resource-policies).
195
+ # @param [String] fields
196
+ # Selector specifying which fields to include in a partial response.
197
+ # @param [String] quota_user
198
+ # Available to use for quota purposes for server-side applications. Can be any
199
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
200
+ # @param [Google::Apis::RequestOptions] options
201
+ # Request-specific options
202
+ #
203
+ # @yield [result, err] Result & error if block supplied
204
+ # @yieldparam result [Google::Apis::BeyondcorpV1::GoogleIamV1Policy] parsed result object
205
+ # @yieldparam err [StandardError] error object if request failed
206
+ #
207
+ # @return [Google::Apis::BeyondcorpV1::GoogleIamV1Policy]
208
+ #
209
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
210
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
211
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
212
+ def get_organization_location_global_partner_tenant_browser_dlp_rule_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
213
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
214
+ command.response_representation = Google::Apis::BeyondcorpV1::GoogleIamV1Policy::Representation
215
+ command.response_class = Google::Apis::BeyondcorpV1::GoogleIamV1Policy
216
+ command.params['resource'] = resource unless resource.nil?
217
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
218
+ command.query['fields'] = fields unless fields.nil?
219
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
220
+ execute_or_queue_command(command, &block)
221
+ end
222
+
223
+ # Sets the access control policy on the specified resource. Replaces any
224
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
225
+ # PERMISSION_DENIED` errors.
226
+ # @param [String] resource
227
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
228
+ # names](https://cloud.google.com/apis/design/resource_names) for the
229
+ # appropriate value for this field.
230
+ # @param [Google::Apis::BeyondcorpV1::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
231
+ # @param [String] fields
232
+ # Selector specifying which fields to include in a partial response.
233
+ # @param [String] quota_user
234
+ # Available to use for quota purposes for server-side applications. Can be any
235
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
236
+ # @param [Google::Apis::RequestOptions] options
237
+ # Request-specific options
238
+ #
239
+ # @yield [result, err] Result & error if block supplied
240
+ # @yieldparam result [Google::Apis::BeyondcorpV1::GoogleIamV1Policy] parsed result object
241
+ # @yieldparam err [StandardError] error object if request failed
242
+ #
243
+ # @return [Google::Apis::BeyondcorpV1::GoogleIamV1Policy]
244
+ #
245
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
246
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
247
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
248
+ def set_organization_location_global_partner_tenant_browser_dlp_rule_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
249
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
250
+ command.request_representation = Google::Apis::BeyondcorpV1::GoogleIamV1SetIamPolicyRequest::Representation
251
+ command.request_object = google_iam_v1_set_iam_policy_request_object
252
+ command.response_representation = Google::Apis::BeyondcorpV1::GoogleIamV1Policy::Representation
253
+ command.response_class = Google::Apis::BeyondcorpV1::GoogleIamV1Policy
254
+ command.params['resource'] = resource unless resource.nil?
255
+ command.query['fields'] = fields unless fields.nil?
256
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
257
+ execute_or_queue_command(command, &block)
258
+ end
259
+
260
+ # Returns permissions that a caller has on the specified resource. If the
261
+ # resource does not exist, this will return an empty set of permissions, not a `
262
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
263
+ # permission-aware UIs and command-line tools, not for authorization checking.
264
+ # This operation may "fail open" without warning.
265
+ # @param [String] resource
266
+ # REQUIRED: The resource for which the policy detail is being requested. See [
267
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
268
+ # appropriate value for this field.
269
+ # @param [Google::Apis::BeyondcorpV1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
270
+ # @param [String] fields
271
+ # Selector specifying which fields to include in a partial response.
272
+ # @param [String] quota_user
273
+ # Available to use for quota purposes for server-side applications. Can be any
274
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
275
+ # @param [Google::Apis::RequestOptions] options
276
+ # Request-specific options
277
+ #
278
+ # @yield [result, err] Result & error if block supplied
279
+ # @yieldparam result [Google::Apis::BeyondcorpV1::GoogleIamV1TestIamPermissionsResponse] parsed result object
280
+ # @yieldparam err [StandardError] error object if request failed
281
+ #
282
+ # @return [Google::Apis::BeyondcorpV1::GoogleIamV1TestIamPermissionsResponse]
283
+ #
284
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
285
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
286
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
287
+ def test_organization_location_global_partner_tenant_browser_dlp_rule_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
288
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
289
+ command.request_representation = Google::Apis::BeyondcorpV1::GoogleIamV1TestIamPermissionsRequest::Representation
290
+ command.request_object = google_iam_v1_test_iam_permissions_request_object
291
+ command.response_representation = Google::Apis::BeyondcorpV1::GoogleIamV1TestIamPermissionsResponse::Representation
292
+ command.response_class = Google::Apis::BeyondcorpV1::GoogleIamV1TestIamPermissionsResponse
293
+ command.params['resource'] = resource unless resource.nil?
294
+ command.query['fields'] = fields unless fields.nil?
295
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
296
+ execute_or_queue_command(command, &block)
297
+ end
298
+
176
299
  # Gets the access control policy for a resource. Returns an empty policy if the
177
300
  # resource exists and does not have a policy set.
178
301
  # @param [String] resource
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-beyondcorp_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-10 00:00:00.000000000 Z
11
+ date: 2024-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.12.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.11.0
29
+ version: 0.12.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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-beyondcorp_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-beyondcorp_v1/v0.19.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-beyondcorp_v1/v0.21.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-beyondcorp_v1
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.4.19
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for BeyondCorp API V1