google-apis-beyondcorp_v1alpha 0.19.0 → 0.20.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: 1e6172855ae029bbf731c66813cc6b662fcbd967331972836c549725f012a038
4
- data.tar.gz: fa1af30ff87eda4072a50706c3e809fa32f2580e2b3ba296c49364169262e930
3
+ metadata.gz: 8566539250196ae6edc9646591ae4206ff2e56b94137a678c6d00dacb6a6986b
4
+ data.tar.gz: 2bfe9bb0c0ba73db0d3c7fbca27940a291242a5808927bbda14ae959f70e5d74
5
5
  SHA512:
6
- metadata.gz: 66366cf0b9920cd1dcdd9ab14f24d58b793031f091c76063046bf18797ecf83612716eac428351e07b37576314db63aeabc69a3e38a979904040d51fdb0d9dc2
7
- data.tar.gz: cd848d9d806e3c2e7fa5b4b1a7c0bc1afad3d0611f94a2dbb3e27c56dbf407f7b86b1b5043796299a5cfc7e3ec934f5c65701485e8cd788b6fd215abf8941be9
6
+ metadata.gz: 0b91eb920002234520a7673749c7762c2ddddcf4e68b1ab90d4cbcbccff80cce4c109b2374913cef1a02bf5a02ccf386ff5ec256848fa622fcb876c7109c51f1
7
+ data.tar.gz: 4bb674e147e1967863f0bf0ab76a7f84189d2c1efd0d6e1f064f787bc39fa78305944a316a92d02ca5e2d32e046b28b4a76fd1f5485c8fccfbbdc20123ea3c29
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-beyondcorp_v1alpha
2
2
 
3
+ ### v0.20.0 (2023-05-28)
4
+
5
+ * Regenerated from discovery document revision 20230517
6
+
3
7
  ### v0.19.0 (2023-05-21)
4
8
 
5
9
  * Regenerated from discovery document revision 20230509
@@ -2121,6 +2121,38 @@ module Google
2121
2121
  end
2122
2122
  end
2123
2123
 
2124
+ # Browser DLP Rule for a PartnerTenant
2125
+ class GoogleCloudBeyondcorpPartnerservicesV1alphaBrowserDlpRule
2126
+ include Google::Apis::Core::Hashable
2127
+
2128
+ # Message to capture group information
2129
+ # Corresponds to the JSON property `group`
2130
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaGroup]
2131
+ attr_accessor :group
2132
+
2133
+ # Output only. Unique resource name. The name is ignored when creating
2134
+ # BrowserDlpRule.
2135
+ # Corresponds to the JSON property `name`
2136
+ # @return [String]
2137
+ attr_accessor :name
2138
+
2139
+ # Message to capture settings for a BrowserDlpRule
2140
+ # Corresponds to the JSON property `ruleSetting`
2141
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaRuleSetting]
2142
+ attr_accessor :rule_setting
2143
+
2144
+ def initialize(**args)
2145
+ update!(**args)
2146
+ end
2147
+
2148
+ # Update properties of this object
2149
+ def update!(**args)
2150
+ @group = args[:group] if args.key?(:group)
2151
+ @name = args[:name] if args.key?(:name)
2152
+ @rule_setting = args[:rule_setting] if args.key?(:rule_setting)
2153
+ end
2154
+ end
2155
+
2124
2156
  # Message contains the JWT encryption information for the proxy server.
2125
2157
  class GoogleCloudBeyondcorpPartnerservicesV1alphaEncryptionInfo
2126
2158
  include Google::Apis::Core::Hashable
@@ -2146,6 +2178,63 @@ module Google
2146
2178
  end
2147
2179
  end
2148
2180
 
2181
+ # Message to capture group information
2182
+ class GoogleCloudBeyondcorpPartnerservicesV1alphaGroup
2183
+ include Google::Apis::Core::Hashable
2184
+
2185
+ # The group email id
2186
+ # Corresponds to the JSON property `email`
2187
+ # @return [String]
2188
+ attr_accessor :email
2189
+
2190
+ # Google group id
2191
+ # Corresponds to the JSON property `id`
2192
+ # @return [String]
2193
+ attr_accessor :id
2194
+
2195
+ def initialize(**args)
2196
+ update!(**args)
2197
+ end
2198
+
2199
+ # Update properties of this object
2200
+ def update!(**args)
2201
+ @email = args[:email] if args.key?(:email)
2202
+ @id = args[:id] if args.key?(:id)
2203
+ end
2204
+ end
2205
+
2206
+ # Message for response to listing PartnerTenants.
2207
+ class GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse
2208
+ include Google::Apis::Core::Hashable
2209
+
2210
+ # A token which can be sent as `page_token` to retrieve the next page. If this
2211
+ # field is omitted, there are no subsequent pages.
2212
+ # Corresponds to the JSON property `nextPageToken`
2213
+ # @return [String]
2214
+ attr_accessor :next_page_token
2215
+
2216
+ # The list of PartnerTenant objects.
2217
+ # Corresponds to the JSON property `partnerTenants`
2218
+ # @return [Array<Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerTenant>]
2219
+ attr_accessor :partner_tenants
2220
+
2221
+ # Locations that could not be reached.
2222
+ # Corresponds to the JSON property `unreachable`
2223
+ # @return [Array<String>]
2224
+ attr_accessor :unreachable
2225
+
2226
+ def initialize(**args)
2227
+ update!(**args)
2228
+ end
2229
+
2230
+ # Update properties of this object
2231
+ def update!(**args)
2232
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2233
+ @partner_tenants = args[:partner_tenants] if args.key?(:partner_tenants)
2234
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
2235
+ end
2236
+ end
2237
+
2149
2238
  # Metadata associated with PartnerTenant and is provided by the Partner.
2150
2239
  class GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerMetadata
2151
2240
  include Google::Apis::Core::Hashable
@@ -2363,6 +2452,31 @@ module Google
2363
2452
  end
2364
2453
  end
2365
2454
 
2455
+ # Message to capture settings for a BrowserDlpRule
2456
+ class GoogleCloudBeyondcorpPartnerservicesV1alphaRuleSetting
2457
+ include Google::Apis::Core::Hashable
2458
+
2459
+ # Required. Immutable. The type of the Setting. .
2460
+ # Corresponds to the JSON property `type`
2461
+ # @return [String]
2462
+ attr_accessor :type
2463
+
2464
+ # Required. The value of the Setting.
2465
+ # Corresponds to the JSON property `value`
2466
+ # @return [Hash<String,Object>]
2467
+ attr_accessor :value
2468
+
2469
+ def initialize(**args)
2470
+ update!(**args)
2471
+ end
2472
+
2473
+ # Update properties of this object
2474
+ def update!(**args)
2475
+ @type = args[:type] if args.key?(:type)
2476
+ @value = args[:value] if args.key?(:value)
2477
+ end
2478
+ end
2479
+
2366
2480
  # Information about a BeyoncCorp Enterprise Tenant.
2367
2481
  class GoogleCloudBeyondcorpPartnerservicesV1alphaTenant
2368
2482
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module BeyondcorpV1alpha
18
18
  # Version of the google-apis-beyondcorp_v1alpha gem
19
- GEM_VERSION = "0.19.0"
19
+ GEM_VERSION = "0.20.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230509"
25
+ REVISION = "20230517"
26
26
  end
27
27
  end
28
28
  end
@@ -328,12 +328,30 @@ module Google
328
328
  include Google::Apis::Core::JsonObjectSupport
329
329
  end
330
330
 
331
+ class GoogleCloudBeyondcorpPartnerservicesV1alphaBrowserDlpRule
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
331
337
  class GoogleCloudBeyondcorpPartnerservicesV1alphaEncryptionInfo
332
338
  class Representation < Google::Apis::Core::JsonRepresentation; end
333
339
 
334
340
  include Google::Apis::Core::JsonObjectSupport
335
341
  end
336
342
 
343
+ class GoogleCloudBeyondcorpPartnerservicesV1alphaGroup
344
+ class Representation < Google::Apis::Core::JsonRepresentation; end
345
+
346
+ include Google::Apis::Core::JsonObjectSupport
347
+ end
348
+
349
+ class GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse
350
+ class Representation < Google::Apis::Core::JsonRepresentation; end
351
+
352
+ include Google::Apis::Core::JsonObjectSupport
353
+ end
354
+
337
355
  class GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerMetadata
338
356
  class Representation < Google::Apis::Core::JsonRepresentation; end
339
357
 
@@ -364,6 +382,12 @@ module Google
364
382
  include Google::Apis::Core::JsonObjectSupport
365
383
  end
366
384
 
385
+ class GoogleCloudBeyondcorpPartnerservicesV1alphaRuleSetting
386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
387
+
388
+ include Google::Apis::Core::JsonObjectSupport
389
+ end
390
+
367
391
  class GoogleCloudBeyondcorpPartnerservicesV1alphaTenant
368
392
  class Representation < Google::Apis::Core::JsonRepresentation; end
369
393
 
@@ -1189,6 +1213,17 @@ module Google
1189
1213
  end
1190
1214
  end
1191
1215
 
1216
+ class GoogleCloudBeyondcorpPartnerservicesV1alphaBrowserDlpRule
1217
+ # @private
1218
+ class Representation < Google::Apis::Core::JsonRepresentation
1219
+ property :group, as: 'group', class: Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaGroup, decorator: Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaGroup::Representation
1220
+
1221
+ property :name, as: 'name'
1222
+ property :rule_setting, as: 'ruleSetting', class: Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaRuleSetting, decorator: Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaRuleSetting::Representation
1223
+
1224
+ end
1225
+ end
1226
+
1192
1227
  class GoogleCloudBeyondcorpPartnerservicesV1alphaEncryptionInfo
1193
1228
  # @private
1194
1229
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1197,6 +1232,24 @@ module Google
1197
1232
  end
1198
1233
  end
1199
1234
 
1235
+ class GoogleCloudBeyondcorpPartnerservicesV1alphaGroup
1236
+ # @private
1237
+ class Representation < Google::Apis::Core::JsonRepresentation
1238
+ property :email, as: 'email'
1239
+ property :id, as: 'id'
1240
+ end
1241
+ end
1242
+
1243
+ class GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse
1244
+ # @private
1245
+ class Representation < Google::Apis::Core::JsonRepresentation
1246
+ property :next_page_token, as: 'nextPageToken'
1247
+ collection :partner_tenants, as: 'partnerTenants', class: Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerTenant, decorator: Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerTenant::Representation
1248
+
1249
+ collection :unreachable, as: 'unreachable'
1250
+ end
1251
+ end
1252
+
1200
1253
  class GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerMetadata
1201
1254
  # @private
1202
1255
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1255,6 +1308,14 @@ module Google
1255
1308
  end
1256
1309
  end
1257
1310
 
1311
+ class GoogleCloudBeyondcorpPartnerservicesV1alphaRuleSetting
1312
+ # @private
1313
+ class Representation < Google::Apis::Core::JsonRepresentation
1314
+ property :type, as: 'type'
1315
+ hash :value, as: 'value'
1316
+ end
1317
+ end
1318
+
1258
1319
  class GoogleCloudBeyondcorpPartnerservicesV1alphaTenant
1259
1320
  # @private
1260
1321
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -55,7 +55,7 @@ module Google
55
55
  # Creates a new BeyondCorp Enterprise partnerTenant in a given organization and
56
56
  # can only be called by onboarded BeyondCorp Enterprise partner.
57
57
  # @param [String] parent
58
- # Required. The resource name of the PartnerTenant using the form: `
58
+ # Required. The resource name of the parent organization using the form: `
59
59
  # organizations/`organization_id`/locations/global`
60
60
  # @param [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerTenant] google_cloud_beyondcorp_partnerservices_v1alpha_partner_tenant_object
61
61
  # @param [String] request_id
@@ -86,10 +86,508 @@ module Google
86
86
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
87
87
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
88
88
  # @raise [Google::Apis::AuthorizationError] Authorization is required
89
- def create_organization_location_global_partner_tenant(parent, google_cloud_beyondcorp_partnerservices_v1alpha_partner_tenant_object = nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
90
- command = make_simple_command(:post, 'v1alpha/{+parent}/partnerTenants', options)
91
- command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerTenant::Representation
92
- command.request_object = google_cloud_beyondcorp_partnerservices_v1alpha_partner_tenant_object
89
+ def create_organization_location_global_partner_tenant(parent, google_cloud_beyondcorp_partnerservices_v1alpha_partner_tenant_object = nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
90
+ command = make_simple_command(:post, 'v1alpha/{+parent}/partnerTenants', options)
91
+ command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerTenant::Representation
92
+ command.request_object = google_cloud_beyondcorp_partnerservices_v1alpha_partner_tenant_object
93
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
94
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
95
+ command.params['parent'] = parent unless parent.nil?
96
+ command.query['requestId'] = request_id unless request_id.nil?
97
+ command.query['fields'] = fields unless fields.nil?
98
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
99
+ execute_or_queue_command(command, &block)
100
+ end
101
+
102
+ # Deletes a single PartnerTenant.
103
+ # @param [String] name
104
+ # Required. Name of the resource.
105
+ # @param [String] request_id
106
+ # Optional. An optional request ID to identify requests. Specify a unique
107
+ # request ID so that if you must retry your request, the server will know to
108
+ # ignore the request if it has already been completed. The server will guarantee
109
+ # that for at least 60 minutes after the first request. For example, consider a
110
+ # situation where you make an initial request and the request times out. If you
111
+ # make the request again with the same request ID, the server can check if
112
+ # original operation with the same request ID was received, and if so, will
113
+ # ignore the second request. This prevents clients from accidentally creating
114
+ # duplicate commitments. The request ID must be a valid UUID with the exception
115
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
116
+ # @param [String] fields
117
+ # Selector specifying which fields to include in a partial response.
118
+ # @param [String] quota_user
119
+ # Available to use for quota purposes for server-side applications. Can be any
120
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
121
+ # @param [Google::Apis::RequestOptions] options
122
+ # Request-specific options
123
+ #
124
+ # @yield [result, err] Result & error if block supplied
125
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
126
+ # @yieldparam err [StandardError] error object if request failed
127
+ #
128
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
129
+ #
130
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
131
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
132
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
133
+ def delete_organization_location_global_partner_tenant(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
134
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
135
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
136
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
137
+ command.params['name'] = name unless name.nil?
138
+ command.query['requestId'] = request_id unless request_id.nil?
139
+ command.query['fields'] = fields unless fields.nil?
140
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
141
+ execute_or_queue_command(command, &block)
142
+ end
143
+
144
+ # Gets details of a single PartnerTenant.
145
+ # @param [String] name
146
+ # Required. The resource name of the PartnerTenant using the form: `
147
+ # organizations/`organization_id`/locations/global/partnerTenants/`
148
+ # partner_tenant_id``
149
+ # @param [String] fields
150
+ # Selector specifying which fields to include in a partial response.
151
+ # @param [String] quota_user
152
+ # Available to use for quota purposes for server-side applications. Can be any
153
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
154
+ # @param [Google::Apis::RequestOptions] options
155
+ # Request-specific options
156
+ #
157
+ # @yield [result, err] Result & error if block supplied
158
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerTenant] parsed result object
159
+ # @yieldparam err [StandardError] error object if request failed
160
+ #
161
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerTenant]
162
+ #
163
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
164
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
165
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
166
+ def get_organization_location_global_partner_tenant(name, fields: nil, quota_user: nil, options: nil, &block)
167
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
168
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerTenant::Representation
169
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerTenant
170
+ command.params['name'] = name unless name.nil?
171
+ command.query['fields'] = fields unless fields.nil?
172
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
173
+ execute_or_queue_command(command, &block)
174
+ end
175
+
176
+ # Gets the access control policy for a resource. Returns an empty policy if the
177
+ # resource exists and does not have a policy set.
178
+ # @param [String] resource
179
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
180
+ # names](https://cloud.google.com/apis/design/resource_names) for the
181
+ # appropriate value for this field.
182
+ # @param [Fixnum] options_requested_policy_version
183
+ # Optional. The maximum policy version that will be used to format the policy.
184
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
185
+ # rejected. Requests for policies with any conditional role bindings must
186
+ # specify version 3. Policies with no conditional role bindings may specify any
187
+ # valid value or leave the field unset. The policy in the response might use the
188
+ # policy version that you specified, or it might use a lower policy version. For
189
+ # example, if you specify version 3, but the policy has no conditional role
190
+ # bindings, the response uses version 1. To learn which resources support
191
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
192
+ # google.com/iam/help/conditions/resource-policies).
193
+ # @param [String] fields
194
+ # Selector specifying which fields to include in a partial response.
195
+ # @param [String] quota_user
196
+ # Available to use for quota purposes for server-side applications. Can be any
197
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
198
+ # @param [Google::Apis::RequestOptions] options
199
+ # Request-specific options
200
+ #
201
+ # @yield [result, err] Result & error if block supplied
202
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy] parsed result object
203
+ # @yieldparam err [StandardError] error object if request failed
204
+ #
205
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy]
206
+ #
207
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
208
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
209
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
210
+ def get_organization_location_global_partner_tenant_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
211
+ command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', options)
212
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy::Representation
213
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy
214
+ command.params['resource'] = resource unless resource.nil?
215
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
216
+ command.query['fields'] = fields unless fields.nil?
217
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
218
+ execute_or_queue_command(command, &block)
219
+ end
220
+
221
+ # Lists PartnerTenants in a given organization.
222
+ # @param [String] parent
223
+ # Required. The parent organization to which the PartnerTenants belong. Format: `
224
+ # organizations/`organization_id`/locations/global`
225
+ # @param [String] filter
226
+ # Optional. Filter partnerTenants to be returned. See [List Sub-Collections] (
227
+ # https://cloud.google.com/apis/design/design_patterns#list_sub-collections) for
228
+ # more details. All fields can be used in the filter. Usage: field_filter="
229
+ # fieldName1=fieldVal1 AND fieldName2=fieldVal2". NOTE: Only `AND` conditions
230
+ # are allowed.
231
+ # @param [String] order_by
232
+ # Optional. Specifies the ordering of results. Currently, only ordering by the "
233
+ # name" and "create_time" fields are supported. See [Sorting order](https://
234
+ # cloud.google.com/apis/design/design_patterns#sorting_order) for more
235
+ # information.
236
+ # @param [Fixnum] page_size
237
+ # Optional. The maximum number of items to return. The service may return fewer
238
+ # than this value. If unspecified, at most 50 items will be returned. The
239
+ # maximum value is 1000; values above 1000 are coerced to 1000. Regardless of
240
+ # the page_size value, the response may include a partial list and a caller
241
+ # should only rely on response's next_page_token to determine if there are more
242
+ # instances left to be queried.
243
+ # @param [String] page_token
244
+ # Optional. A token identifying a page of results the server should return.
245
+ # @param [String] fields
246
+ # Selector specifying which fields to include in a partial response.
247
+ # @param [String] quota_user
248
+ # Available to use for quota purposes for server-side applications. Can be any
249
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
250
+ # @param [Google::Apis::RequestOptions] options
251
+ # Request-specific options
252
+ #
253
+ # @yield [result, err] Result & error if block supplied
254
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse] parsed result object
255
+ # @yieldparam err [StandardError] error object if request failed
256
+ #
257
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse]
258
+ #
259
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
260
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
261
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
262
+ def list_organization_location_global_partner_tenants(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
263
+ command = make_simple_command(:get, 'v1alpha/{+parent}/partnerTenants', options)
264
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse::Representation
265
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse
266
+ command.params['parent'] = parent unless parent.nil?
267
+ command.query['filter'] = filter unless filter.nil?
268
+ command.query['orderBy'] = order_by unless order_by.nil?
269
+ command.query['pageSize'] = page_size unless page_size.nil?
270
+ command.query['pageToken'] = page_token unless page_token.nil?
271
+ command.query['fields'] = fields unless fields.nil?
272
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
273
+ execute_or_queue_command(command, &block)
274
+ end
275
+
276
+ # Sets the access control policy on the specified resource. Replaces any
277
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
278
+ # PERMISSION_DENIED` errors.
279
+ # @param [String] resource
280
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
281
+ # names](https://cloud.google.com/apis/design/resource_names) for the
282
+ # appropriate value for this field.
283
+ # @param [Google::Apis::BeyondcorpV1alpha::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
284
+ # @param [String] fields
285
+ # Selector specifying which fields to include in a partial response.
286
+ # @param [String] quota_user
287
+ # Available to use for quota purposes for server-side applications. Can be any
288
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
289
+ # @param [Google::Apis::RequestOptions] options
290
+ # Request-specific options
291
+ #
292
+ # @yield [result, err] Result & error if block supplied
293
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy] parsed result object
294
+ # @yieldparam err [StandardError] error object if request failed
295
+ #
296
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy]
297
+ #
298
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
299
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
300
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
301
+ def set_organization_location_global_partner_tenant_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
302
+ command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', options)
303
+ command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1SetIamPolicyRequest::Representation
304
+ command.request_object = google_iam_v1_set_iam_policy_request_object
305
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy::Representation
306
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy
307
+ command.params['resource'] = resource unless resource.nil?
308
+ command.query['fields'] = fields unless fields.nil?
309
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
310
+ execute_or_queue_command(command, &block)
311
+ end
312
+
313
+ # Returns permissions that a caller has on the specified resource. If the
314
+ # resource does not exist, this will return an empty set of permissions, not a `
315
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
316
+ # permission-aware UIs and command-line tools, not for authorization checking.
317
+ # This operation may "fail open" without warning.
318
+ # @param [String] resource
319
+ # REQUIRED: The resource for which the policy detail is being requested. See [
320
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
321
+ # appropriate value for this field.
322
+ # @param [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
323
+ # @param [String] fields
324
+ # Selector specifying which fields to include in a partial response.
325
+ # @param [String] quota_user
326
+ # Available to use for quota purposes for server-side applications. Can be any
327
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
328
+ # @param [Google::Apis::RequestOptions] options
329
+ # Request-specific options
330
+ #
331
+ # @yield [result, err] Result & error if block supplied
332
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse] parsed result object
333
+ # @yieldparam err [StandardError] error object if request failed
334
+ #
335
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse]
336
+ #
337
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
338
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
339
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
340
+ def test_organization_location_global_partner_tenant_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
341
+ command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', options)
342
+ command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsRequest::Representation
343
+ command.request_object = google_iam_v1_test_iam_permissions_request_object
344
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse::Representation
345
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse
346
+ command.params['resource'] = resource unless resource.nil?
347
+ command.query['fields'] = fields unless fields.nil?
348
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
349
+ execute_or_queue_command(command, &block)
350
+ end
351
+
352
+ # Creates a new BrowserDlpRule in a given organization and PartnerTenant.
353
+ # @param [String] parent
354
+ # Required. The resource name of the BrowserDlpRule parent using the form: `
355
+ # organizations/`organization_id`/locations/global/partnerTenants/`
356
+ # partner_tenant_id``
357
+ # @param [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaBrowserDlpRule] google_cloud_beyondcorp_partnerservices_v1alpha_browser_dlp_rule_object
358
+ # @param [String] request_id
359
+ # Optional. An optional request ID to identify requests. Specify a unique
360
+ # request ID so that if you must retry your request, the server will know to
361
+ # ignore the request if it has already been completed. The server will guarantee
362
+ # that for at least 60 minutes since the first request. For example, consider a
363
+ # situation where you make an initial request and the request times out. If you
364
+ # make the request again with the same request ID, the server can check if
365
+ # original operation with the same request ID was received, and if so, will
366
+ # ignore the second request. This prevents clients from accidentally creating
367
+ # duplicate commitments. The request ID must be a valid UUID with the exception
368
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
369
+ # @param [String] fields
370
+ # Selector specifying which fields to include in a partial response.
371
+ # @param [String] quota_user
372
+ # Available to use for quota purposes for server-side applications. Can be any
373
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
374
+ # @param [Google::Apis::RequestOptions] options
375
+ # Request-specific options
376
+ #
377
+ # @yield [result, err] Result & error if block supplied
378
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
379
+ # @yieldparam err [StandardError] error object if request failed
380
+ #
381
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
382
+ #
383
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
384
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
385
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
386
+ def create_organization_location_global_partner_tenant_browser_dlp_rule(parent, google_cloud_beyondcorp_partnerservices_v1alpha_browser_dlp_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
387
+ command = make_simple_command(:post, 'v1alpha/{+parent}/browserDlpRules', options)
388
+ command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaBrowserDlpRule::Representation
389
+ command.request_object = google_cloud_beyondcorp_partnerservices_v1alpha_browser_dlp_rule_object
390
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
391
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
392
+ command.params['parent'] = parent unless parent.nil?
393
+ command.query['requestId'] = request_id unless request_id.nil?
394
+ command.query['fields'] = fields unless fields.nil?
395
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
396
+ execute_or_queue_command(command, &block)
397
+ end
398
+
399
+ # Gets details of a single BrowserDlpRule.
400
+ # @param [String] name
401
+ # Required. The resource name of the BrowserDlpRule using the form: `
402
+ # organizations/`organization_id`/locations/global/partnerTenants/`
403
+ # partner_tenant_id`/browserDlpRules/`browser_dlp_rule_id``
404
+ # @param [String] fields
405
+ # Selector specifying which fields to include in a partial response.
406
+ # @param [String] quota_user
407
+ # Available to use for quota purposes for server-side applications. Can be any
408
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
409
+ # @param [Google::Apis::RequestOptions] options
410
+ # Request-specific options
411
+ #
412
+ # @yield [result, err] Result & error if block supplied
413
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaBrowserDlpRule] parsed result object
414
+ # @yieldparam err [StandardError] error object if request failed
415
+ #
416
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaBrowserDlpRule]
417
+ #
418
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
419
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
420
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
421
+ def get_organization_location_global_partner_tenant_browser_dlp_rule(name, fields: nil, quota_user: nil, options: nil, &block)
422
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
423
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaBrowserDlpRule::Representation
424
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaBrowserDlpRule
425
+ command.params['name'] = name unless name.nil?
426
+ command.query['fields'] = fields unless fields.nil?
427
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
428
+ execute_or_queue_command(command, &block)
429
+ end
430
+
431
+ # Gets the access control policy for a resource. Returns an empty policy if the
432
+ # resource exists and does not have a policy set.
433
+ # @param [String] resource
434
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
435
+ # names](https://cloud.google.com/apis/design/resource_names) for the
436
+ # appropriate value for this field.
437
+ # @param [Fixnum] options_requested_policy_version
438
+ # Optional. The maximum policy version that will be used to format the policy.
439
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
440
+ # rejected. Requests for policies with any conditional role bindings must
441
+ # specify version 3. Policies with no conditional role bindings may specify any
442
+ # valid value or leave the field unset. The policy in the response might use the
443
+ # policy version that you specified, or it might use a lower policy version. For
444
+ # example, if you specify version 3, but the policy has no conditional role
445
+ # bindings, the response uses version 1. To learn which resources support
446
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
447
+ # google.com/iam/help/conditions/resource-policies).
448
+ # @param [String] fields
449
+ # Selector specifying which fields to include in a partial response.
450
+ # @param [String] quota_user
451
+ # Available to use for quota purposes for server-side applications. Can be any
452
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
453
+ # @param [Google::Apis::RequestOptions] options
454
+ # Request-specific options
455
+ #
456
+ # @yield [result, err] Result & error if block supplied
457
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy] parsed result object
458
+ # @yieldparam err [StandardError] error object if request failed
459
+ #
460
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy]
461
+ #
462
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
463
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
464
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
465
+ 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)
466
+ command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', options)
467
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy::Representation
468
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy
469
+ command.params['resource'] = resource unless resource.nil?
470
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
471
+ command.query['fields'] = fields unless fields.nil?
472
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
473
+ execute_or_queue_command(command, &block)
474
+ end
475
+
476
+ # Sets the access control policy on the specified resource. Replaces any
477
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
478
+ # PERMISSION_DENIED` errors.
479
+ # @param [String] resource
480
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
481
+ # names](https://cloud.google.com/apis/design/resource_names) for the
482
+ # appropriate value for this field.
483
+ # @param [Google::Apis::BeyondcorpV1alpha::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
484
+ # @param [String] fields
485
+ # Selector specifying which fields to include in a partial response.
486
+ # @param [String] quota_user
487
+ # Available to use for quota purposes for server-side applications. Can be any
488
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
489
+ # @param [Google::Apis::RequestOptions] options
490
+ # Request-specific options
491
+ #
492
+ # @yield [result, err] Result & error if block supplied
493
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy] parsed result object
494
+ # @yieldparam err [StandardError] error object if request failed
495
+ #
496
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy]
497
+ #
498
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
499
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
500
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
501
+ 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)
502
+ command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', options)
503
+ command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1SetIamPolicyRequest::Representation
504
+ command.request_object = google_iam_v1_set_iam_policy_request_object
505
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy::Representation
506
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy
507
+ command.params['resource'] = resource unless resource.nil?
508
+ command.query['fields'] = fields unless fields.nil?
509
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
510
+ execute_or_queue_command(command, &block)
511
+ end
512
+
513
+ # Returns permissions that a caller has on the specified resource. If the
514
+ # resource does not exist, this will return an empty set of permissions, not a `
515
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
516
+ # permission-aware UIs and command-line tools, not for authorization checking.
517
+ # This operation may "fail open" without warning.
518
+ # @param [String] resource
519
+ # REQUIRED: The resource for which the policy detail is being requested. See [
520
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
521
+ # appropriate value for this field.
522
+ # @param [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
523
+ # @param [String] fields
524
+ # Selector specifying which fields to include in a partial response.
525
+ # @param [String] quota_user
526
+ # Available to use for quota purposes for server-side applications. Can be any
527
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
528
+ # @param [Google::Apis::RequestOptions] options
529
+ # Request-specific options
530
+ #
531
+ # @yield [result, err] Result & error if block supplied
532
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse] parsed result object
533
+ # @yieldparam err [StandardError] error object if request failed
534
+ #
535
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse]
536
+ #
537
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
538
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
539
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
540
+ 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)
541
+ command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', options)
542
+ command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsRequest::Representation
543
+ command.request_object = google_iam_v1_test_iam_permissions_request_object
544
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse::Representation
545
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse
546
+ command.params['resource'] = resource unless resource.nil?
547
+ command.query['fields'] = fields unless fields.nil?
548
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
549
+ execute_or_queue_command(command, &block)
550
+ end
551
+
552
+ # Creates a new BeyondCorp Enterprise ProxyConfig in a given organization and
553
+ # PartnerTenant. Can only be called by on onboarded Beyondcorp Enterprise
554
+ # partner.
555
+ # @param [String] parent
556
+ # Required. The resource name of the Tenant using the form: `organizations/`
557
+ # organization_id`/locations/global/tenants/`tenant_id``
558
+ # @param [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaProxyConfig] google_cloud_beyondcorp_partnerservices_v1alpha_proxy_config_object
559
+ # @param [String] request_id
560
+ # Optional. An optional request ID to identify requests. Specify a unique
561
+ # request ID so that if you must retry your request, the server will know to
562
+ # ignore the request if it has already been completed. The server will guarantee
563
+ # that for at least 60 minutes since the first request. For example, consider a
564
+ # situation where you make an initial request and the request times out. If you
565
+ # make the request again with the same request ID, the server can check if
566
+ # original operation with the same request ID was received, and if so, will
567
+ # ignore the second request. This prevents clients from accidentally creating
568
+ # duplicate commitments. The request ID must be a valid UUID with the exception
569
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
570
+ # @param [String] fields
571
+ # Selector specifying which fields to include in a partial response.
572
+ # @param [String] quota_user
573
+ # Available to use for quota purposes for server-side applications. Can be any
574
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
575
+ # @param [Google::Apis::RequestOptions] options
576
+ # Request-specific options
577
+ #
578
+ # @yield [result, err] Result & error if block supplied
579
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
580
+ # @yieldparam err [StandardError] error object if request failed
581
+ #
582
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
583
+ #
584
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
585
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
586
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
587
+ def create_organization_location_global_partner_tenant_proxy_config(parent, google_cloud_beyondcorp_partnerservices_v1alpha_proxy_config_object = nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
588
+ command = make_simple_command(:post, 'v1alpha/{+parent}/proxyConfigs', options)
589
+ command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaProxyConfig::Representation
590
+ command.request_object = google_cloud_beyondcorp_partnerservices_v1alpha_proxy_config_object
93
591
  command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
94
592
  command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
95
593
  command.params['parent'] = parent unless parent.nil?
@@ -99,11 +597,11 @@ module Google
99
597
  execute_or_queue_command(command, &block)
100
598
  end
101
599
 
102
- # Gets details of a single PartnerTenant.
600
+ # Gets details of a single ProxyConfig.
103
601
  # @param [String] name
104
- # Required. The resource name of the PartnerTenant using the form: `
105
- # organizations/`organization_id`/locations/global/partnerTenants/`
106
- # partner_tenant_id``
602
+ # Required. The resource name of the ProxyConfig using the form: `organizations/`
603
+ # organization_id`/locations/global/tenants/`tenant_id`/proxyConfigs/`
604
+ # proxy_config_id``
107
605
  # @param [String] fields
108
606
  # Selector specifying which fields to include in a partial response.
109
607
  # @param [String] quota_user
@@ -113,24 +611,145 @@ module Google
113
611
  # Request-specific options
114
612
  #
115
613
  # @yield [result, err] Result & error if block supplied
116
- # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerTenant] parsed result object
614
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaProxyConfig] parsed result object
117
615
  # @yieldparam err [StandardError] error object if request failed
118
616
  #
119
- # @return [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerTenant]
617
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaProxyConfig]
120
618
  #
121
619
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
122
620
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
123
621
  # @raise [Google::Apis::AuthorizationError] Authorization is required
124
- def get_organization_location_global_partner_tenant(name, fields: nil, quota_user: nil, options: nil, &block)
622
+ def get_organization_location_global_partner_tenant_proxy_config(name, fields: nil, quota_user: nil, options: nil, &block)
125
623
  command = make_simple_command(:get, 'v1alpha/{+name}', options)
126
- command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerTenant::Representation
127
- command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerTenant
624
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaProxyConfig::Representation
625
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaProxyConfig
128
626
  command.params['name'] = name unless name.nil?
129
627
  command.query['fields'] = fields unless fields.nil?
130
628
  command.query['quotaUser'] = quota_user unless quota_user.nil?
131
629
  execute_or_queue_command(command, &block)
132
630
  end
133
631
 
632
+ # Gets the access control policy for a resource. Returns an empty policy if the
633
+ # resource exists and does not have a policy set.
634
+ # @param [String] resource
635
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
636
+ # names](https://cloud.google.com/apis/design/resource_names) for the
637
+ # appropriate value for this field.
638
+ # @param [Fixnum] options_requested_policy_version
639
+ # Optional. The maximum policy version that will be used to format the policy.
640
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
641
+ # rejected. Requests for policies with any conditional role bindings must
642
+ # specify version 3. Policies with no conditional role bindings may specify any
643
+ # valid value or leave the field unset. The policy in the response might use the
644
+ # policy version that you specified, or it might use a lower policy version. For
645
+ # example, if you specify version 3, but the policy has no conditional role
646
+ # bindings, the response uses version 1. To learn which resources support
647
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
648
+ # google.com/iam/help/conditions/resource-policies).
649
+ # @param [String] fields
650
+ # Selector specifying which fields to include in a partial response.
651
+ # @param [String] quota_user
652
+ # Available to use for quota purposes for server-side applications. Can be any
653
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
654
+ # @param [Google::Apis::RequestOptions] options
655
+ # Request-specific options
656
+ #
657
+ # @yield [result, err] Result & error if block supplied
658
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy] parsed result object
659
+ # @yieldparam err [StandardError] error object if request failed
660
+ #
661
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy]
662
+ #
663
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
664
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
665
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
666
+ def get_organization_location_global_partner_tenant_proxy_config_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
667
+ command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', options)
668
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy::Representation
669
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy
670
+ command.params['resource'] = resource unless resource.nil?
671
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
672
+ command.query['fields'] = fields unless fields.nil?
673
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
674
+ execute_or_queue_command(command, &block)
675
+ end
676
+
677
+ # Sets the access control policy on the specified resource. Replaces any
678
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
679
+ # PERMISSION_DENIED` errors.
680
+ # @param [String] resource
681
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
682
+ # names](https://cloud.google.com/apis/design/resource_names) for the
683
+ # appropriate value for this field.
684
+ # @param [Google::Apis::BeyondcorpV1alpha::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
685
+ # @param [String] fields
686
+ # Selector specifying which fields to include in a partial response.
687
+ # @param [String] quota_user
688
+ # Available to use for quota purposes for server-side applications. Can be any
689
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
690
+ # @param [Google::Apis::RequestOptions] options
691
+ # Request-specific options
692
+ #
693
+ # @yield [result, err] Result & error if block supplied
694
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy] parsed result object
695
+ # @yieldparam err [StandardError] error object if request failed
696
+ #
697
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy]
698
+ #
699
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
700
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
701
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
702
+ def set_organization_location_global_partner_tenant_proxy_config_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
703
+ command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', options)
704
+ command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1SetIamPolicyRequest::Representation
705
+ command.request_object = google_iam_v1_set_iam_policy_request_object
706
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy::Representation
707
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy
708
+ command.params['resource'] = resource unless resource.nil?
709
+ command.query['fields'] = fields unless fields.nil?
710
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
711
+ execute_or_queue_command(command, &block)
712
+ end
713
+
714
+ # Returns permissions that a caller has on the specified resource. If the
715
+ # resource does not exist, this will return an empty set of permissions, not a `
716
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
717
+ # permission-aware UIs and command-line tools, not for authorization checking.
718
+ # This operation may "fail open" without warning.
719
+ # @param [String] resource
720
+ # REQUIRED: The resource for which the policy detail is being requested. See [
721
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
722
+ # appropriate value for this field.
723
+ # @param [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
724
+ # @param [String] fields
725
+ # Selector specifying which fields to include in a partial response.
726
+ # @param [String] quota_user
727
+ # Available to use for quota purposes for server-side applications. Can be any
728
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
729
+ # @param [Google::Apis::RequestOptions] options
730
+ # Request-specific options
731
+ #
732
+ # @yield [result, err] Result & error if block supplied
733
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse] parsed result object
734
+ # @yieldparam err [StandardError] error object if request failed
735
+ #
736
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse]
737
+ #
738
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
739
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
740
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
741
+ def test_organization_location_global_partner_tenant_proxy_config_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
742
+ command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', options)
743
+ command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsRequest::Representation
744
+ command.request_object = google_iam_v1_test_iam_permissions_request_object
745
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse::Representation
746
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse
747
+ command.params['resource'] = resource unless resource.nil?
748
+ command.query['fields'] = fields unless fields.nil?
749
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
750
+ execute_or_queue_command(command, &block)
751
+ end
752
+
134
753
  # Creates a new BeyondCorp Enterprise tenant in a given organization and can
135
754
  # only be called by onboarded BeyondCorp Enterprise partner.
136
755
  # @param [String] parent
@@ -178,6 +797,48 @@ module Google
178
797
  execute_or_queue_command(command, &block)
179
798
  end
180
799
 
800
+ # Deletes a single Tenant.
801
+ # @param [String] name
802
+ # Required. Name of the resource.
803
+ # @param [String] request_id
804
+ # Optional. An optional request ID to identify requests. Specify a unique
805
+ # request ID so that if you must retry your request, the server will know to
806
+ # ignore the request if it has already been completed. The server will guarantee
807
+ # that for at least 60 minutes after the first request. For example, consider a
808
+ # situation where you make an initial request and the request times out. If you
809
+ # make the request again with the same request ID, the server can check if
810
+ # original operation with the same request ID was received, and if so, will
811
+ # ignore the second request. This prevents clients from accidentally creating
812
+ # duplicate commitments. The request ID must be a valid UUID with the exception
813
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
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::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
824
+ # @yieldparam err [StandardError] error object if request failed
825
+ #
826
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
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 delete_organization_location_global_tenant(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
832
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
833
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
834
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
835
+ command.params['name'] = name unless name.nil?
836
+ command.query['requestId'] = request_id unless request_id.nil?
837
+ command.query['fields'] = fields unless fields.nil?
838
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
839
+ execute_or_queue_command(command, &block)
840
+ end
841
+
181
842
  # Gets details of a single Tenant.
182
843
  # @param [String] name
183
844
  # Required. The resource name of the Tenant using the form: `organizations/`
@@ -209,11 +870,10 @@ module Google
209
870
  execute_or_queue_command(command, &block)
210
871
  end
211
872
 
212
- # Creates a new BeyondCorp Enterprise ProxyConfiguration in a given organization
213
- # and PartnerTenant. Can only be called by on onboarded Beyondcorp Enterprise
214
- # partner.
873
+ # Creates a new BeyondCorp Enterprise ProxyConfig in a given organization and
874
+ # Tenant. Can only be called by on onboarded Beyondcorp Enterprise partner.
215
875
  # @param [String] parent
216
- # Required. The resource name of the ProxyConfig using the form: `organizations/`
876
+ # Required. The resource name of the Tenant using the form: `organizations/`
217
877
  # organization_id`/locations/global/tenants/`tenant_id``
218
878
  # @param [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpPartnerservicesV1alphaProxyConfig] google_cloud_beyondcorp_partnerservices_v1alpha_proxy_config_object
219
879
  # @param [String] request_id
@@ -257,9 +917,51 @@ module Google
257
917
  execute_or_queue_command(command, &block)
258
918
  end
259
919
 
920
+ # Deletes a single ProxyConfig.
921
+ # @param [String] name
922
+ # Required. Name of the resource.
923
+ # @param [String] request_id
924
+ # Optional. An optional request ID to identify requests. Specify a unique
925
+ # request ID so that if you must retry your request, the server will know to
926
+ # ignore the request if it has already been completed. The server will guarantee
927
+ # that for at least 60 minutes after the first request. For example, consider a
928
+ # situation where you make an initial request and the request times out. If you
929
+ # make the request again with the same request ID, the server can check if
930
+ # original operation with the same request ID was received, and if so, will
931
+ # ignore the second request. This prevents clients from accidentally creating
932
+ # duplicate commitments. The request ID must be a valid UUID with the exception
933
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
934
+ # @param [String] fields
935
+ # Selector specifying which fields to include in a partial response.
936
+ # @param [String] quota_user
937
+ # Available to use for quota purposes for server-side applications. Can be any
938
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
939
+ # @param [Google::Apis::RequestOptions] options
940
+ # Request-specific options
941
+ #
942
+ # @yield [result, err] Result & error if block supplied
943
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
944
+ # @yieldparam err [StandardError] error object if request failed
945
+ #
946
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
947
+ #
948
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
949
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
950
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
951
+ def delete_organization_location_global_tenant_proxy_config(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
952
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
953
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
954
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
955
+ command.params['name'] = name unless name.nil?
956
+ command.query['requestId'] = request_id unless request_id.nil?
957
+ command.query['fields'] = fields unless fields.nil?
958
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
959
+ execute_or_queue_command(command, &block)
960
+ end
961
+
260
962
  # Gets details of a single ProxyConfig.
261
963
  # @param [String] name
262
- # Required. The resource name of the Tenant using the form: `organizations/`
964
+ # Required. The resource name of the ProxyConfig using the form: `organizations/`
263
965
  # organization_id`/locations/global/tenants/`tenant_id`/proxyConfigs/`
264
966
  # proxy_config_id``
265
967
  # @param [String] fields
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-beyondcorp_v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.20.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-05-21 00:00:00.000000000 Z
11
+ date: 2023-05-28 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-beyondcorp_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-beyondcorp_v1alpha/v0.19.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-beyondcorp_v1alpha/v0.20.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-beyondcorp_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []