google-apis-beyondcorp_v1alpha 0.9.0 → 0.10.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: 433d1f364e06a501ff7f780da9596a4c04bf4af33bb2d29d347d42fe408a9abe
4
- data.tar.gz: f40ec3a4390040ea20e678e090e11033e88d1fd7f4887693f0bb3b3d48ca69c1
3
+ metadata.gz: 19babb0fb5ba1209735336a165adddc306274da28dccc4fe62f17376a808f76b
4
+ data.tar.gz: a5f4aa4f35b698dc31378264e57907617c0e3ac63dae62f8ab963cb6763a534f
5
5
  SHA512:
6
- metadata.gz: 255efc2c5b86dd4a2b384d681df56ee0b9f42db9fd0d31e3ab95ae9cafd769825708f6e172aa70960e3bb73265d21e24cc79b7306e7c5abfd02f848c82e721ac
7
- data.tar.gz: e2ca1a3ed6b6c7b4f352a00dc87fe50d7dcd20eb955122b7ceb034e64544bafe4eb62bd259dd45f043912156fee95ed21c146d3bbe6c40e8f546c65e71a3a044
6
+ metadata.gz: 8e26d90cd732fe9dcfdc5d450d98969faf2044a3a96668b35121986a808e17f2d2e3b56cea5a270ed341259dec2af360686f110f87ec326e0158d2460f739856
7
+ data.tar.gz: 24ac2810a8e1090dde104824b464c6d4ac4f00b3d207ed45fd224c375b8734a4d436189ce8000b51e0c7f20f35308b277b7cfdf2beaa30ab4eba3ddb2f812194
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-beyondcorp_v1alpha
2
2
 
3
+ ### v0.10.0 (2022-09-29)
4
+
5
+ * Regenerated from discovery document revision 20220922
6
+
3
7
  ### v0.9.0 (2022-09-20)
4
8
 
5
9
  * Regenerated using generator version 0.10.0
@@ -2292,6 +2292,178 @@ module Google
2292
2292
  end
2293
2293
  end
2294
2294
 
2295
+ # Response message for BeyondCorp.ListNetConnections.
2296
+ class GoogleCloudBeyondcorpNetconnectionsV1alphaListNetConnectionsResponse
2297
+ include Google::Apis::Core::Hashable
2298
+
2299
+ # A list of BeyondCorp NetConnections in the project.
2300
+ # Corresponds to the JSON property `netConnections`
2301
+ # @return [Array<Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpNetconnectionsV1alphaNetConnection>]
2302
+ attr_accessor :net_connections
2303
+
2304
+ # A token to retrieve the next page of results, or empty if there are no more
2305
+ # results in the list.
2306
+ # Corresponds to the JSON property `nextPageToken`
2307
+ # @return [String]
2308
+ attr_accessor :next_page_token
2309
+
2310
+ # A list of locations that could not be reached.
2311
+ # Corresponds to the JSON property `unreachable`
2312
+ # @return [Array<String>]
2313
+ attr_accessor :unreachable
2314
+
2315
+ def initialize(**args)
2316
+ update!(**args)
2317
+ end
2318
+
2319
+ # Update properties of this object
2320
+ def update!(**args)
2321
+ @net_connections = args[:net_connections] if args.key?(:net_connections)
2322
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2323
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
2324
+ end
2325
+ end
2326
+
2327
+ # A BeyondCorp NetConnection resource represents a BeyondCorp protected
2328
+ # connection from BeyondCorp Client Connector to a remote application through a
2329
+ # BeyondCorp AppConnector gateway.
2330
+ class GoogleCloudBeyondcorpNetconnectionsV1alphaNetConnection
2331
+ include Google::Apis::Core::Hashable
2332
+
2333
+ # Optional. List of [google.cloud.beyondcorp.v1main.AppConnector.name] that are
2334
+ # authorized to be associated with this NetConnection. e.g. projects/`project`/
2335
+ # locations/`location`/appConnectors/`app_connector`
2336
+ # Corresponds to the JSON property `connectors`
2337
+ # @return [Array<String>]
2338
+ attr_accessor :connectors
2339
+
2340
+ # Output only. Timestamp when the resource was created.
2341
+ # Corresponds to the JSON property `createTime`
2342
+ # @return [String]
2343
+ attr_accessor :create_time
2344
+
2345
+ # Required. CIDRs for the remote networks to connect to. e.g. IPv4: 198.51.100.
2346
+ # 14/24 IPv6: 2001:db8::/48
2347
+ # Corresponds to the JSON property `destinationCidrs`
2348
+ # @return [Array<String>]
2349
+ attr_accessor :destination_cidrs
2350
+
2351
+ # Optional. An arbitrary user-provided name for the NetConnection. Cannot exceed
2352
+ # 64 characters.
2353
+ # Corresponds to the JSON property `displayName`
2354
+ # @return [String]
2355
+ attr_accessor :display_name
2356
+
2357
+ # Optional. Resource labels to represent user provided metadata.
2358
+ # Corresponds to the JSON property `labels`
2359
+ # @return [Hash<String,String>]
2360
+ attr_accessor :labels
2361
+
2362
+ # Required. Unique resource name of the NetConnection. The name is ignored when
2363
+ # creating a NetConnection.
2364
+ # Corresponds to the JSON property `name`
2365
+ # @return [String]
2366
+ attr_accessor :name
2367
+
2368
+ # Output only. The full name of the VPC network connected to the applications.
2369
+ # Client Connector will send traffic here.
2370
+ # Corresponds to the JSON property `networkVpc`
2371
+ # @return [String]
2372
+ attr_accessor :network_vpc
2373
+
2374
+ # Output only. The current state of the NetConnection.
2375
+ # Corresponds to the JSON property `state`
2376
+ # @return [String]
2377
+ attr_accessor :state
2378
+
2379
+ # Output only. A unique identifier for the instance generated by the system.
2380
+ # Corresponds to the JSON property `uid`
2381
+ # @return [String]
2382
+ attr_accessor :uid
2383
+
2384
+ # Output only. Timestamp when the resource was last modified.
2385
+ # Corresponds to the JSON property `updateTime`
2386
+ # @return [String]
2387
+ attr_accessor :update_time
2388
+
2389
+ def initialize(**args)
2390
+ update!(**args)
2391
+ end
2392
+
2393
+ # Update properties of this object
2394
+ def update!(**args)
2395
+ @connectors = args[:connectors] if args.key?(:connectors)
2396
+ @create_time = args[:create_time] if args.key?(:create_time)
2397
+ @destination_cidrs = args[:destination_cidrs] if args.key?(:destination_cidrs)
2398
+ @display_name = args[:display_name] if args.key?(:display_name)
2399
+ @labels = args[:labels] if args.key?(:labels)
2400
+ @name = args[:name] if args.key?(:name)
2401
+ @network_vpc = args[:network_vpc] if args.key?(:network_vpc)
2402
+ @state = args[:state] if args.key?(:state)
2403
+ @uid = args[:uid] if args.key?(:uid)
2404
+ @update_time = args[:update_time] if args.key?(:update_time)
2405
+ end
2406
+ end
2407
+
2408
+ # Represents the metadata of the long-running operation.
2409
+ class GoogleCloudBeyondcorpNetconnectionsV1alphaNetConnectionOperationMetadata
2410
+ include Google::Apis::Core::Hashable
2411
+
2412
+ # Output only. API version used to start the operation.
2413
+ # Corresponds to the JSON property `apiVersion`
2414
+ # @return [String]
2415
+ attr_accessor :api_version
2416
+
2417
+ # Output only. The time the operation was created.
2418
+ # Corresponds to the JSON property `createTime`
2419
+ # @return [String]
2420
+ attr_accessor :create_time
2421
+
2422
+ # Output only. The time the operation finished running.
2423
+ # Corresponds to the JSON property `endTime`
2424
+ # @return [String]
2425
+ attr_accessor :end_time
2426
+
2427
+ # Output only. Identifies whether the user has requested cancellation of the
2428
+ # operation. Operations that have successfully been cancelled have Operation.
2429
+ # error value with a google.rpc.Status.code of 1, corresponding to `Code.
2430
+ # CANCELLED`.
2431
+ # Corresponds to the JSON property `requestedCancellation`
2432
+ # @return [Boolean]
2433
+ attr_accessor :requested_cancellation
2434
+ alias_method :requested_cancellation?, :requested_cancellation
2435
+
2436
+ # Output only. Human-readable status of the operation, if any.
2437
+ # Corresponds to the JSON property `statusMessage`
2438
+ # @return [String]
2439
+ attr_accessor :status_message
2440
+
2441
+ # Output only. Server-defined resource path for the target of the operation.
2442
+ # Corresponds to the JSON property `target`
2443
+ # @return [String]
2444
+ attr_accessor :target
2445
+
2446
+ # Output only. Name of the verb executed by the operation.
2447
+ # Corresponds to the JSON property `verb`
2448
+ # @return [String]
2449
+ attr_accessor :verb
2450
+
2451
+ def initialize(**args)
2452
+ update!(**args)
2453
+ end
2454
+
2455
+ # Update properties of this object
2456
+ def update!(**args)
2457
+ @api_version = args[:api_version] if args.key?(:api_version)
2458
+ @create_time = args[:create_time] if args.key?(:create_time)
2459
+ @end_time = args[:end_time] if args.key?(:end_time)
2460
+ @requested_cancellation = args[:requested_cancellation] if args.key?(:requested_cancellation)
2461
+ @status_message = args[:status_message] if args.key?(:status_message)
2462
+ @target = args[:target] if args.key?(:target)
2463
+ @verb = args[:verb] if args.key?(:verb)
2464
+ end
2465
+ end
2466
+
2295
2467
  # The configuration that was applied to generate the result.
2296
2468
  class GoogleCloudBeyondcorpSaasplatformInsightsV1alphaAppliedConfig
2297
2469
  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.9.0"
19
+ GEM_VERSION = "0.10.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.10.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220908"
25
+ REVISION = "20220922"
26
26
  end
27
27
  end
28
28
  end
@@ -346,6 +346,24 @@ module Google
346
346
  include Google::Apis::Core::JsonObjectSupport
347
347
  end
348
348
 
349
+ class GoogleCloudBeyondcorpNetconnectionsV1alphaListNetConnectionsResponse
350
+ class Representation < Google::Apis::Core::JsonRepresentation; end
351
+
352
+ include Google::Apis::Core::JsonObjectSupport
353
+ end
354
+
355
+ class GoogleCloudBeyondcorpNetconnectionsV1alphaNetConnection
356
+ class Representation < Google::Apis::Core::JsonRepresentation; end
357
+
358
+ include Google::Apis::Core::JsonObjectSupport
359
+ end
360
+
361
+ class GoogleCloudBeyondcorpNetconnectionsV1alphaNetConnectionOperationMetadata
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+
364
+ include Google::Apis::Core::JsonObjectSupport
365
+ end
366
+
349
367
  class GoogleCloudBeyondcorpSaasplatformInsightsV1alphaAppliedConfig
350
368
  class Representation < Google::Apis::Core::JsonRepresentation; end
351
369
 
@@ -1179,6 +1197,45 @@ module Google
1179
1197
  end
1180
1198
  end
1181
1199
 
1200
+ class GoogleCloudBeyondcorpNetconnectionsV1alphaListNetConnectionsResponse
1201
+ # @private
1202
+ class Representation < Google::Apis::Core::JsonRepresentation
1203
+ collection :net_connections, as: 'netConnections', class: Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpNetconnectionsV1alphaNetConnection, decorator: Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpNetconnectionsV1alphaNetConnection::Representation
1204
+
1205
+ property :next_page_token, as: 'nextPageToken'
1206
+ collection :unreachable, as: 'unreachable'
1207
+ end
1208
+ end
1209
+
1210
+ class GoogleCloudBeyondcorpNetconnectionsV1alphaNetConnection
1211
+ # @private
1212
+ class Representation < Google::Apis::Core::JsonRepresentation
1213
+ collection :connectors, as: 'connectors'
1214
+ property :create_time, as: 'createTime'
1215
+ collection :destination_cidrs, as: 'destinationCidrs'
1216
+ property :display_name, as: 'displayName'
1217
+ hash :labels, as: 'labels'
1218
+ property :name, as: 'name'
1219
+ property :network_vpc, as: 'networkVpc'
1220
+ property :state, as: 'state'
1221
+ property :uid, as: 'uid'
1222
+ property :update_time, as: 'updateTime'
1223
+ end
1224
+ end
1225
+
1226
+ class GoogleCloudBeyondcorpNetconnectionsV1alphaNetConnectionOperationMetadata
1227
+ # @private
1228
+ class Representation < Google::Apis::Core::JsonRepresentation
1229
+ property :api_version, as: 'apiVersion'
1230
+ property :create_time, as: 'createTime'
1231
+ property :end_time, as: 'endTime'
1232
+ property :requested_cancellation, as: 'requestedCancellation'
1233
+ property :status_message, as: 'statusMessage'
1234
+ property :target, as: 'target'
1235
+ property :verb, as: 'verb'
1236
+ end
1237
+ end
1238
+
1182
1239
  class GoogleCloudBeyondcorpSaasplatformInsightsV1alphaAppliedConfig
1183
1240
  # @private
1184
1241
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3230,6 +3230,367 @@ module Google
3230
3230
  execute_or_queue_command(command, &block)
3231
3231
  end
3232
3232
 
3233
+ # Creates a new NetConnection in a given project and location.
3234
+ # @param [String] parent
3235
+ # Required. The resource project name of the NetConnection location using the
3236
+ # form: `projects/`project_id`/locations/`location_id``
3237
+ # @param [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpNetconnectionsV1alphaNetConnection] google_cloud_beyondcorp_netconnections_v1alpha_net_connection_object
3238
+ # @param [String] net_connection_id
3239
+ # Optional. User-settable NetConnection resource ID. * Must start with a letter.
3240
+ # * Must contain between 4-63 characters from `/a-z-/`. * Must end with a number
3241
+ # or a letter.
3242
+ # @param [String] request_id
3243
+ # Optional. An optional request ID to identify requests. Specify a unique
3244
+ # request ID so that if you must retry your request, the server will know to
3245
+ # ignore the request if it has already been completed. The server will guarantee
3246
+ # that for at least 60 minutes since the first request. For example, consider a
3247
+ # situation where you make an initial request and t he request times out. If you
3248
+ # make the request again with the same request ID, the server can check if
3249
+ # original operation with the same request ID was received, and if so, will
3250
+ # ignore the second request. This prevents clients from accidentally creating
3251
+ # duplicate commitments. The request ID must be a valid UUID with the exception
3252
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3253
+ # @param [Boolean] validate_only
3254
+ # Optional. If set, validates request by executing a dry-run which would not
3255
+ # alter the resource in any way.
3256
+ # @param [String] fields
3257
+ # Selector specifying which fields to include in a partial response.
3258
+ # @param [String] quota_user
3259
+ # Available to use for quota purposes for server-side applications. Can be any
3260
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3261
+ # @param [Google::Apis::RequestOptions] options
3262
+ # Request-specific options
3263
+ #
3264
+ # @yield [result, err] Result & error if block supplied
3265
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
3266
+ # @yieldparam err [StandardError] error object if request failed
3267
+ #
3268
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
3269
+ #
3270
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3271
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3272
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3273
+ def create_project_location_net_connection(parent, google_cloud_beyondcorp_netconnections_v1alpha_net_connection_object = nil, net_connection_id: nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
3274
+ command = make_simple_command(:post, 'v1alpha/{+parent}/netConnections', options)
3275
+ command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpNetconnectionsV1alphaNetConnection::Representation
3276
+ command.request_object = google_cloud_beyondcorp_netconnections_v1alpha_net_connection_object
3277
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
3278
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
3279
+ command.params['parent'] = parent unless parent.nil?
3280
+ command.query['netConnectionId'] = net_connection_id unless net_connection_id.nil?
3281
+ command.query['requestId'] = request_id unless request_id.nil?
3282
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
3283
+ command.query['fields'] = fields unless fields.nil?
3284
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3285
+ execute_or_queue_command(command, &block)
3286
+ end
3287
+
3288
+ # Deletes a single NetConnection.
3289
+ # @param [String] name
3290
+ # Required. BeyondCorp Connector name using the form: `projects/`project_id`/
3291
+ # locations/`location_id`/netConnections/`net_connection_id``
3292
+ # @param [String] request_id
3293
+ # Optional. An optional request ID to identify requests. Specify a unique
3294
+ # request ID so that if you must retry your request, the server will know to
3295
+ # ignore the request if it has already been completed. The server will guarantee
3296
+ # that for at least 60 minutes after the first request. For example, consider a
3297
+ # situation where you make an initial request and t he request times out. If you
3298
+ # make the request again with the same request ID, the server can check if
3299
+ # original operation with the same request ID was received, and if so, will
3300
+ # ignore the second request. This prevents clients from accidentally creating
3301
+ # duplicate commitments. The request ID must be a valid UUID with the exception
3302
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3303
+ # @param [Boolean] validate_only
3304
+ # Optional. If set, validates request by executing a dry-run which would not
3305
+ # alter the resource in any way.
3306
+ # @param [String] fields
3307
+ # Selector specifying which fields to include in a partial response.
3308
+ # @param [String] quota_user
3309
+ # Available to use for quota purposes for server-side applications. Can be any
3310
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3311
+ # @param [Google::Apis::RequestOptions] options
3312
+ # Request-specific options
3313
+ #
3314
+ # @yield [result, err] Result & error if block supplied
3315
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
3316
+ # @yieldparam err [StandardError] error object if request failed
3317
+ #
3318
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
3319
+ #
3320
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3321
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3322
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3323
+ def delete_project_location_net_connection(name, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
3324
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
3325
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
3326
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
3327
+ command.params['name'] = name unless name.nil?
3328
+ command.query['requestId'] = request_id unless request_id.nil?
3329
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
3330
+ command.query['fields'] = fields unless fields.nil?
3331
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3332
+ execute_or_queue_command(command, &block)
3333
+ end
3334
+
3335
+ # Gets details of a single NetConnection.
3336
+ # @param [String] name
3337
+ # Required. BeyondCorp NetConnection name using the form: `projects/`project_id`/
3338
+ # locations/`location_id`/netConnections/`net_connection_id``
3339
+ # @param [String] fields
3340
+ # Selector specifying which fields to include in a partial response.
3341
+ # @param [String] quota_user
3342
+ # Available to use for quota purposes for server-side applications. Can be any
3343
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3344
+ # @param [Google::Apis::RequestOptions] options
3345
+ # Request-specific options
3346
+ #
3347
+ # @yield [result, err] Result & error if block supplied
3348
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpNetconnectionsV1alphaNetConnection] parsed result object
3349
+ # @yieldparam err [StandardError] error object if request failed
3350
+ #
3351
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpNetconnectionsV1alphaNetConnection]
3352
+ #
3353
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3354
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3355
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3356
+ def get_project_location_net_connection(name, fields: nil, quota_user: nil, options: nil, &block)
3357
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
3358
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpNetconnectionsV1alphaNetConnection::Representation
3359
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpNetconnectionsV1alphaNetConnection
3360
+ command.params['name'] = name unless name.nil?
3361
+ command.query['fields'] = fields unless fields.nil?
3362
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3363
+ execute_or_queue_command(command, &block)
3364
+ end
3365
+
3366
+ # Gets the access control policy for a resource. Returns an empty policy if the
3367
+ # resource exists and does not have a policy set.
3368
+ # @param [String] resource
3369
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
3370
+ # names](https://cloud.google.com/apis/design/resource_names) for the
3371
+ # appropriate value for this field.
3372
+ # @param [Fixnum] options_requested_policy_version
3373
+ # Optional. The maximum policy version that will be used to format the policy.
3374
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
3375
+ # rejected. Requests for policies with any conditional role bindings must
3376
+ # specify version 3. Policies with no conditional role bindings may specify any
3377
+ # valid value or leave the field unset. The policy in the response might use the
3378
+ # policy version that you specified, or it might use a lower policy version. For
3379
+ # example, if you specify version 3, but the policy has no conditional role
3380
+ # bindings, the response uses version 1. To learn which resources support
3381
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
3382
+ # google.com/iam/help/conditions/resource-policies).
3383
+ # @param [String] fields
3384
+ # Selector specifying which fields to include in a partial response.
3385
+ # @param [String] quota_user
3386
+ # Available to use for quota purposes for server-side applications. Can be any
3387
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3388
+ # @param [Google::Apis::RequestOptions] options
3389
+ # Request-specific options
3390
+ #
3391
+ # @yield [result, err] Result & error if block supplied
3392
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy] parsed result object
3393
+ # @yieldparam err [StandardError] error object if request failed
3394
+ #
3395
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy]
3396
+ #
3397
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3398
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3399
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3400
+ def get_project_location_net_connection_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
3401
+ command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', options)
3402
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy::Representation
3403
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy
3404
+ command.params['resource'] = resource unless resource.nil?
3405
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
3406
+ command.query['fields'] = fields unless fields.nil?
3407
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3408
+ execute_or_queue_command(command, &block)
3409
+ end
3410
+
3411
+ # Lists NetConnections in a given project and location.
3412
+ # @param [String] parent
3413
+ # Required. The resource name of the NetConnection location using the form: `
3414
+ # projects/`project_id`/locations/`location_id``
3415
+ # @param [String] filter
3416
+ # Optional. A filter specifying constraints of a list operation.
3417
+ # @param [String] order_by
3418
+ # Optional. Specifies the ordering of results. See [Sorting order](https://cloud.
3419
+ # google.com/apis/design/design_patterns#sorting_order) for more information.
3420
+ # @param [Fixnum] page_size
3421
+ # Optional. The maximum number of items to return. If not specified, a default
3422
+ # value of 50 will be used by the service. Regardless of the page_size value,
3423
+ # the response may include a partial list and a caller should only rely on
3424
+ # response's next_page_token to determine if there are more instances left to be
3425
+ # queried.
3426
+ # @param [String] page_token
3427
+ # Optional. The next_page_token value returned from a previous
3428
+ # ListNetConnectionsRequest, if any.
3429
+ # @param [String] fields
3430
+ # Selector specifying which fields to include in a partial response.
3431
+ # @param [String] quota_user
3432
+ # Available to use for quota purposes for server-side applications. Can be any
3433
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3434
+ # @param [Google::Apis::RequestOptions] options
3435
+ # Request-specific options
3436
+ #
3437
+ # @yield [result, err] Result & error if block supplied
3438
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpNetconnectionsV1alphaListNetConnectionsResponse] parsed result object
3439
+ # @yieldparam err [StandardError] error object if request failed
3440
+ #
3441
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpNetconnectionsV1alphaListNetConnectionsResponse]
3442
+ #
3443
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3444
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3445
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3446
+ def list_project_location_net_connections(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3447
+ command = make_simple_command(:get, 'v1alpha/{+parent}/netConnections', options)
3448
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpNetconnectionsV1alphaListNetConnectionsResponse::Representation
3449
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpNetconnectionsV1alphaListNetConnectionsResponse
3450
+ command.params['parent'] = parent unless parent.nil?
3451
+ command.query['filter'] = filter unless filter.nil?
3452
+ command.query['orderBy'] = order_by unless order_by.nil?
3453
+ command.query['pageSize'] = page_size unless page_size.nil?
3454
+ command.query['pageToken'] = page_token unless page_token.nil?
3455
+ command.query['fields'] = fields unless fields.nil?
3456
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3457
+ execute_or_queue_command(command, &block)
3458
+ end
3459
+
3460
+ # Updates the parameters of a single NetConnection.
3461
+ # @param [String] name
3462
+ # Required. Unique resource name of the NetConnection. The name is ignored when
3463
+ # creating a NetConnection.
3464
+ # @param [Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpNetconnectionsV1alphaNetConnection] google_cloud_beyondcorp_netconnections_v1alpha_net_connection_object
3465
+ # @param [Boolean] allow_missing
3466
+ # Optional. If set as true, will create the resource if it is not found.
3467
+ # @param [String] request_id
3468
+ # Optional. An optional request ID to identify requests. Specify a unique
3469
+ # request ID so that if you must retry your request, the server will know to
3470
+ # ignore the request if it has already been completed. The server will guarantee
3471
+ # that for at least 60 minutes since the first request. For example, consider a
3472
+ # situation where you make an initial request and t he request times out. If you
3473
+ # make the request again with the same request ID, the server can check if
3474
+ # original operation with the same request ID was received, and if so, will
3475
+ # ignore the second request. This prevents clients from accidentally creating
3476
+ # duplicate commitments. The request ID must be a valid UUID with the exception
3477
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3478
+ # @param [String] update_mask
3479
+ # Required. Mask of fields to update. At least one path must be supplied in this
3480
+ # field. The elements of the repeated paths field may only include these fields
3481
+ # from [BeyondCorp.NetConnection]: * `labels` * `display_name`
3482
+ # @param [Boolean] validate_only
3483
+ # Optional. If set, validates request by executing a dry-run which would not
3484
+ # alter the resource in any way.
3485
+ # @param [String] fields
3486
+ # Selector specifying which fields to include in a partial response.
3487
+ # @param [String] quota_user
3488
+ # Available to use for quota purposes for server-side applications. Can be any
3489
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3490
+ # @param [Google::Apis::RequestOptions] options
3491
+ # Request-specific options
3492
+ #
3493
+ # @yield [result, err] Result & error if block supplied
3494
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation] parsed result object
3495
+ # @yieldparam err [StandardError] error object if request failed
3496
+ #
3497
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation]
3498
+ #
3499
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3500
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3501
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3502
+ def patch_project_location_net_connection(name, google_cloud_beyondcorp_netconnections_v1alpha_net_connection_object = nil, allow_missing: nil, request_id: nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block)
3503
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
3504
+ command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleCloudBeyondcorpNetconnectionsV1alphaNetConnection::Representation
3505
+ command.request_object = google_cloud_beyondcorp_netconnections_v1alpha_net_connection_object
3506
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation::Representation
3507
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleLongrunningOperation
3508
+ command.params['name'] = name unless name.nil?
3509
+ command.query['allowMissing'] = allow_missing unless allow_missing.nil?
3510
+ command.query['requestId'] = request_id unless request_id.nil?
3511
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3512
+ command.query['validateOnly'] = validate_only unless validate_only.nil?
3513
+ command.query['fields'] = fields unless fields.nil?
3514
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3515
+ execute_or_queue_command(command, &block)
3516
+ end
3517
+
3518
+ # Sets the access control policy on the specified resource. Replaces any
3519
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
3520
+ # PERMISSION_DENIED` errors.
3521
+ # @param [String] resource
3522
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
3523
+ # names](https://cloud.google.com/apis/design/resource_names) for the
3524
+ # appropriate value for this field.
3525
+ # @param [Google::Apis::BeyondcorpV1alpha::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
3526
+ # @param [String] fields
3527
+ # Selector specifying which fields to include in a partial response.
3528
+ # @param [String] quota_user
3529
+ # Available to use for quota purposes for server-side applications. Can be any
3530
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3531
+ # @param [Google::Apis::RequestOptions] options
3532
+ # Request-specific options
3533
+ #
3534
+ # @yield [result, err] Result & error if block supplied
3535
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy] parsed result object
3536
+ # @yieldparam err [StandardError] error object if request failed
3537
+ #
3538
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy]
3539
+ #
3540
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3541
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3542
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3543
+ def set_project_location_net_connection_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3544
+ command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', options)
3545
+ command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1SetIamPolicyRequest::Representation
3546
+ command.request_object = google_iam_v1_set_iam_policy_request_object
3547
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy::Representation
3548
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1Policy
3549
+ command.params['resource'] = resource unless resource.nil?
3550
+ command.query['fields'] = fields unless fields.nil?
3551
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3552
+ execute_or_queue_command(command, &block)
3553
+ end
3554
+
3555
+ # Returns permissions that a caller has on the specified resource. If the
3556
+ # resource does not exist, this will return an empty set of permissions, not a `
3557
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
3558
+ # permission-aware UIs and command-line tools, not for authorization checking.
3559
+ # This operation may "fail open" without warning.
3560
+ # @param [String] resource
3561
+ # REQUIRED: The resource for which the policy detail is being requested. See [
3562
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
3563
+ # appropriate value for this field.
3564
+ # @param [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
3565
+ # @param [String] fields
3566
+ # Selector specifying which fields to include in a partial response.
3567
+ # @param [String] quota_user
3568
+ # Available to use for quota purposes for server-side applications. Can be any
3569
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3570
+ # @param [Google::Apis::RequestOptions] options
3571
+ # Request-specific options
3572
+ #
3573
+ # @yield [result, err] Result & error if block supplied
3574
+ # @yieldparam result [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse] parsed result object
3575
+ # @yieldparam err [StandardError] error object if request failed
3576
+ #
3577
+ # @return [Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse]
3578
+ #
3579
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3580
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3581
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3582
+ def test_project_location_net_connection_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
3583
+ command = make_simple_command(:post, 'v1alpha/{+resource}:testIamPermissions', options)
3584
+ command.request_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsRequest::Representation
3585
+ command.request_object = google_iam_v1_test_iam_permissions_request_object
3586
+ command.response_representation = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse::Representation
3587
+ command.response_class = Google::Apis::BeyondcorpV1alpha::GoogleIamV1TestIamPermissionsResponse
3588
+ command.params['resource'] = resource unless resource.nil?
3589
+ command.query['fields'] = fields unless fields.nil?
3590
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3591
+ execute_or_queue_command(command, &block)
3592
+ end
3593
+
3233
3594
  # Starts asynchronous cancellation on a long-running operation. The server makes
3234
3595
  # a best effort to cancel the operation, but success is not guaranteed. If the
3235
3596
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
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.9.0
4
+ version: 0.10.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-09-26 00:00:00.000000000 Z
11
+ date: 2022-10-03 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.9.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-beyondcorp_v1alpha/v0.10.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: []