google-apis-networksecurity_v1 0.51.0 → 0.53.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.
@@ -51,6 +51,92 @@ module Google
51
51
  @batch_path = 'batch'
52
52
  end
53
53
 
54
+ # Gets information about a location.
55
+ # @param [String] name
56
+ # Resource name for the location.
57
+ # @param [String] fields
58
+ # Selector specifying which fields to include in a partial response.
59
+ # @param [String] quota_user
60
+ # Available to use for quota purposes for server-side applications. Can be any
61
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
62
+ # @param [Google::Apis::RequestOptions] options
63
+ # Request-specific options
64
+ #
65
+ # @yield [result, err] Result & error if block supplied
66
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Location] parsed result object
67
+ # @yieldparam err [StandardError] error object if request failed
68
+ #
69
+ # @return [Google::Apis::NetworksecurityV1::Location]
70
+ #
71
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
74
+ def get_organization_location(name, fields: nil, quota_user: nil, options: nil, &block)
75
+ command = make_simple_command(:get, 'v1/{+name}', options)
76
+ command.response_representation = Google::Apis::NetworksecurityV1::Location::Representation
77
+ command.response_class = Google::Apis::NetworksecurityV1::Location
78
+ command.params['name'] = name unless name.nil?
79
+ command.query['fields'] = fields unless fields.nil?
80
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
81
+ execute_or_queue_command(command, &block)
82
+ end
83
+
84
+ # Lists information about the supported locations for this service. This method
85
+ # lists locations based on the resource scope provided in the
86
+ # ListLocationsRequest.name field: * **Global locations**: If `name` is empty,
87
+ # the method lists the public locations available to all projects. * **Project-
88
+ # specific locations**: If `name` follows the format `projects/`project``, the
89
+ # method lists locations visible to that specific project. This includes public,
90
+ # private, or other project-specific locations enabled for the project. For gRPC
91
+ # and client library implementations, the resource name is passed as the `name`
92
+ # field. For direct service calls, the resource name is incorporated into the
93
+ # request path based on the specific service implementation and version.
94
+ # @param [String] name
95
+ # The resource that owns the locations collection, if applicable.
96
+ # @param [Array<String>, String] extra_location_types
97
+ # Optional. Do not use this field unless explicitly documented otherwise. This
98
+ # is primarily for internal usage.
99
+ # @param [String] filter
100
+ # A filter to narrow down results to a preferred subset. The filtering language
101
+ # accepts strings like `"displayName=tokyo"`, and is documented in more detail
102
+ # in [AIP-160](https://google.aip.dev/160).
103
+ # @param [Fixnum] page_size
104
+ # The maximum number of results to return. If not set, the service selects a
105
+ # default.
106
+ # @param [String] page_token
107
+ # A page token received from the `next_page_token` field in the response. Send
108
+ # that page token to receive the subsequent page.
109
+ # @param [String] fields
110
+ # Selector specifying which fields to include in a partial response.
111
+ # @param [String] quota_user
112
+ # Available to use for quota purposes for server-side applications. Can be any
113
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
114
+ # @param [Google::Apis::RequestOptions] options
115
+ # Request-specific options
116
+ #
117
+ # @yield [result, err] Result & error if block supplied
118
+ # @yieldparam result [Google::Apis::NetworksecurityV1::ListLocationsResponse] parsed result object
119
+ # @yieldparam err [StandardError] error object if request failed
120
+ #
121
+ # @return [Google::Apis::NetworksecurityV1::ListLocationsResponse]
122
+ #
123
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
124
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
125
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
126
+ def list_organization_locations(name, extra_location_types: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
127
+ command = make_simple_command(:get, 'v1/{+name}/locations', options)
128
+ command.response_representation = Google::Apis::NetworksecurityV1::ListLocationsResponse::Representation
129
+ command.response_class = Google::Apis::NetworksecurityV1::ListLocationsResponse
130
+ command.params['name'] = name unless name.nil?
131
+ command.query['extraLocationTypes'] = extra_location_types unless extra_location_types.nil?
132
+ command.query['filter'] = filter unless filter.nil?
133
+ command.query['pageSize'] = page_size unless page_size.nil?
134
+ command.query['pageToken'] = page_token unless page_token.nil?
135
+ command.query['fields'] = fields unless fields.nil?
136
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
137
+ execute_or_queue_command(command, &block)
138
+ end
139
+
54
140
  # Adds items to an address group.
55
141
  # @param [String] address_group
56
142
  # Required. A name of the AddressGroup to add items to. Must be in the format `
@@ -414,6 +500,45 @@ module Google
414
500
  execute_or_queue_command(command, &block)
415
501
  end
416
502
 
503
+ # Returns permissions that a caller has on the specified resource. If the
504
+ # resource does not exist, this will return an empty set of permissions, not a `
505
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
506
+ # permission-aware UIs and command-line tools, not for authorization checking.
507
+ # This operation may "fail open" without warning.
508
+ # @param [String] resource
509
+ # REQUIRED: The resource for which the policy detail is being requested. See [
510
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
511
+ # appropriate value for this field.
512
+ # @param [Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsRequest] google_iam_v1_test_iam_permissions_request_object
513
+ # @param [String] fields
514
+ # Selector specifying which fields to include in a partial response.
515
+ # @param [String] quota_user
516
+ # Available to use for quota purposes for server-side applications. Can be any
517
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
518
+ # @param [Google::Apis::RequestOptions] options
519
+ # Request-specific options
520
+ #
521
+ # @yield [result, err] Result & error if block supplied
522
+ # @yieldparam result [Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse] parsed result object
523
+ # @yieldparam err [StandardError] error object if request failed
524
+ #
525
+ # @return [Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse]
526
+ #
527
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
528
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
529
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
530
+ def test_organization_location_address_group_iam_permissions(resource, google_iam_v1_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
531
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
532
+ command.request_representation = Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsRequest::Representation
533
+ command.request_object = google_iam_v1_test_iam_permissions_request_object
534
+ command.response_representation = Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse::Representation
535
+ command.response_class = Google::Apis::NetworksecurityV1::GoogleIamV1TestIamPermissionsResponse
536
+ command.params['resource'] = resource unless resource.nil?
537
+ command.query['fields'] = fields unless fields.nil?
538
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
539
+ execute_or_queue_command(command, &block)
540
+ end
541
+
417
542
  # Creates a new FirewallEndpoint in a given organization and location.
418
543
  # @param [String] parent
419
544
  # Required. Value for parent.
@@ -1192,8 +1317,8 @@ module Google
1192
1317
  end
1193
1318
 
1194
1319
  # Lists information about the supported locations for this service. This method
1195
- # lists locations based on the resource scope provided in the [
1196
- # ListLocationsRequest.name] field: * **Global locations**: If `name` is empty,
1320
+ # lists locations based on the resource scope provided in the
1321
+ # ListLocationsRequest.name field: * **Global locations**: If `name` is empty,
1197
1322
  # the method lists the public locations available to all projects. * **Project-
1198
1323
  # specific locations**: If `name` follows the format `projects/`project``, the
1199
1324
  # method lists locations visible to that specific project. This includes public,
@@ -1204,8 +1329,8 @@ module Google
1204
1329
  # @param [String] name
1205
1330
  # The resource that owns the locations collection, if applicable.
1206
1331
  # @param [Array<String>, String] extra_location_types
1207
- # Optional. Do not use this field. It is unsupported and is ignored unless
1208
- # explicitly documented otherwise. This is primarily for internal usage.
1332
+ # Optional. Do not use this field unless explicitly documented otherwise. This
1333
+ # is primarily for internal usage.
1209
1334
  # @param [String] filter
1210
1335
  # A filter to narrow down results to a preferred subset. The filtering language
1211
1336
  # accepts strings like `"displayName=tokyo"`, and is documented in more detail
@@ -3259,16 +3384,25 @@ module Google
3259
3384
  execute_or_queue_command(command, &block)
3260
3385
  end
3261
3386
 
3262
- # Creates a new GatewaySecurityPolicy in a given project and location.
3387
+ # Creates a new FirewallEndpoint in a given project and location.
3263
3388
  # @param [String] parent
3264
- # Required. The parent resource of the GatewaySecurityPolicy. Must be in the
3265
- # format `projects/`project`/locations/`location``.
3266
- # @param [Google::Apis::NetworksecurityV1::GatewaySecurityPolicy] gateway_security_policy_object
3267
- # @param [String] gateway_security_policy_id
3268
- # Required. Short name of the GatewaySecurityPolicy resource to be created. This
3269
- # value should be 1-63 characters long, containing only letters, numbers,
3270
- # hyphens, and underscores, and should not start with a number. E.g. "
3271
- # gateway_security_policy1".
3389
+ # Required. Value for parent.
3390
+ # @param [Google::Apis::NetworksecurityV1::FirewallEndpoint] firewall_endpoint_object
3391
+ # @param [String] firewall_endpoint_id
3392
+ # Required. Id of the requesting object. If auto-generating Id server-side,
3393
+ # remove this field and firewall_endpoint_id from the method_signature of Create
3394
+ # RPC.
3395
+ # @param [String] request_id
3396
+ # Optional. An optional request ID to identify requests. Specify a unique
3397
+ # request ID so that if you must retry your request, the server will know to
3398
+ # ignore the request if it has already been completed. The server will guarantee
3399
+ # that for at least 60 minutes since the first request. For example, consider a
3400
+ # situation where you make an initial request and the request times out. If you
3401
+ # make the request again with the same request ID, the server can check if
3402
+ # original operation with the same request ID was received, and if so, will
3403
+ # ignore the second request. This prevents clients from accidentally creating
3404
+ # duplicate commitments. The request ID must be a valid UUID with the exception
3405
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3272
3406
  # @param [String] fields
3273
3407
  # Selector specifying which fields to include in a partial response.
3274
3408
  # @param [String] quota_user
@@ -3286,23 +3420,34 @@ module Google
3286
3420
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3287
3421
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3288
3422
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3289
- def create_project_location_gateway_security_policy(parent, gateway_security_policy_object = nil, gateway_security_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3290
- command = make_simple_command(:post, 'v1/{+parent}/gatewaySecurityPolicies', options)
3291
- command.request_representation = Google::Apis::NetworksecurityV1::GatewaySecurityPolicy::Representation
3292
- command.request_object = gateway_security_policy_object
3423
+ def create_project_location_firewall_endpoint(parent, firewall_endpoint_object = nil, firewall_endpoint_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3424
+ command = make_simple_command(:post, 'v1/{+parent}/firewallEndpoints', options)
3425
+ command.request_representation = Google::Apis::NetworksecurityV1::FirewallEndpoint::Representation
3426
+ command.request_object = firewall_endpoint_object
3293
3427
  command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
3294
3428
  command.response_class = Google::Apis::NetworksecurityV1::Operation
3295
3429
  command.params['parent'] = parent unless parent.nil?
3296
- command.query['gatewaySecurityPolicyId'] = gateway_security_policy_id unless gateway_security_policy_id.nil?
3430
+ command.query['firewallEndpointId'] = firewall_endpoint_id unless firewall_endpoint_id.nil?
3431
+ command.query['requestId'] = request_id unless request_id.nil?
3297
3432
  command.query['fields'] = fields unless fields.nil?
3298
3433
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3299
3434
  execute_or_queue_command(command, &block)
3300
3435
  end
3301
3436
 
3302
- # Deletes a single GatewaySecurityPolicy.
3437
+ # Deletes a single project Endpoint.
3303
3438
  # @param [String] name
3304
- # Required. A name of the GatewaySecurityPolicy to delete. Must be in the format
3305
- # `projects/`project`/locations/`location`/gatewaySecurityPolicies/*`.
3439
+ # Required. Name of the resource
3440
+ # @param [String] request_id
3441
+ # Optional. An optional request ID to identify requests. Specify a unique
3442
+ # request ID so that if you must retry your request, the server will know to
3443
+ # ignore the request if it has already been completed. The server will guarantee
3444
+ # that for at least 60 minutes after the first request. For example, consider a
3445
+ # situation where you make an initial request and the request times out. If you
3446
+ # make the request again with the same request ID, the server can check if
3447
+ # original operation with the same request ID was received, and if so, will
3448
+ # ignore the second request. This prevents clients from accidentally creating
3449
+ # duplicate commitments. The request ID must be a valid UUID with the exception
3450
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3306
3451
  # @param [String] fields
3307
3452
  # Selector specifying which fields to include in a partial response.
3308
3453
  # @param [String] quota_user
@@ -3320,20 +3465,20 @@ module Google
3320
3465
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3321
3466
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3322
3467
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3323
- def delete_project_location_gateway_security_policy(name, fields: nil, quota_user: nil, options: nil, &block)
3468
+ def delete_project_location_firewall_endpoint(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3324
3469
  command = make_simple_command(:delete, 'v1/{+name}', options)
3325
3470
  command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
3326
3471
  command.response_class = Google::Apis::NetworksecurityV1::Operation
3327
3472
  command.params['name'] = name unless name.nil?
3473
+ command.query['requestId'] = request_id unless request_id.nil?
3328
3474
  command.query['fields'] = fields unless fields.nil?
3329
3475
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3330
3476
  execute_or_queue_command(command, &block)
3331
3477
  end
3332
3478
 
3333
- # Gets details of a single GatewaySecurityPolicy.
3479
+ # Gets details of a single project Endpoint.
3334
3480
  # @param [String] name
3335
- # Required. A name of the GatewaySecurityPolicy to get. Must be in the format `
3336
- # projects/`project`/locations/`location`/gatewaySecurityPolicies/*`.
3481
+ # Required. Name of the resource
3337
3482
  # @param [String] fields
3338
3483
  # Selector specifying which fields to include in a partial response.
3339
3484
  # @param [String] quota_user
@@ -3343,35 +3488,36 @@ module Google
3343
3488
  # Request-specific options
3344
3489
  #
3345
3490
  # @yield [result, err] Result & error if block supplied
3346
- # @yieldparam result [Google::Apis::NetworksecurityV1::GatewaySecurityPolicy] parsed result object
3491
+ # @yieldparam result [Google::Apis::NetworksecurityV1::FirewallEndpoint] parsed result object
3347
3492
  # @yieldparam err [StandardError] error object if request failed
3348
3493
  #
3349
- # @return [Google::Apis::NetworksecurityV1::GatewaySecurityPolicy]
3494
+ # @return [Google::Apis::NetworksecurityV1::FirewallEndpoint]
3350
3495
  #
3351
3496
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3352
3497
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3353
3498
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3354
- def get_project_location_gateway_security_policy(name, fields: nil, quota_user: nil, options: nil, &block)
3499
+ def get_project_location_firewall_endpoint(name, fields: nil, quota_user: nil, options: nil, &block)
3355
3500
  command = make_simple_command(:get, 'v1/{+name}', options)
3356
- command.response_representation = Google::Apis::NetworksecurityV1::GatewaySecurityPolicy::Representation
3357
- command.response_class = Google::Apis::NetworksecurityV1::GatewaySecurityPolicy
3501
+ command.response_representation = Google::Apis::NetworksecurityV1::FirewallEndpoint::Representation
3502
+ command.response_class = Google::Apis::NetworksecurityV1::FirewallEndpoint
3358
3503
  command.params['name'] = name unless name.nil?
3359
3504
  command.query['fields'] = fields unless fields.nil?
3360
3505
  command.query['quotaUser'] = quota_user unless quota_user.nil?
3361
3506
  execute_or_queue_command(command, &block)
3362
3507
  end
3363
3508
 
3364
- # Lists GatewaySecurityPolicies in a given project and location.
3509
+ # Lists FirewallEndpoints in a given project and location.
3365
3510
  # @param [String] parent
3366
- # Required. The project and location from which the GatewaySecurityPolicies
3367
- # should be listed, specified in the format `projects/`project`/locations/`
3368
- # location``.
3511
+ # Required. Parent value for ListEndpointsRequest
3512
+ # @param [String] filter
3513
+ # Optional. Filtering results
3514
+ # @param [String] order_by
3515
+ # Hint for how to order the results
3369
3516
  # @param [Fixnum] page_size
3370
- # Maximum number of GatewaySecurityPolicies to return per call.
3517
+ # Optional. Requested page size. Server may return fewer items than requested.
3518
+ # If unspecified, server will pick an appropriate default.
3371
3519
  # @param [String] page_token
3372
- # The value returned by the last 'ListGatewaySecurityPoliciesResponse' Indicates
3373
- # that this is a continuation of a prior 'ListGatewaySecurityPolicies' call, and
3374
- # that the system should return the next page of data.
3520
+ # A token identifying a page of results the server should return.
3375
3521
  # @param [String] fields
3376
3522
  # Selector specifying which fields to include in a partial response.
3377
3523
  # @param [String] quota_user
@@ -3381,19 +3527,21 @@ module Google
3381
3527
  # Request-specific options
3382
3528
  #
3383
3529
  # @yield [result, err] Result & error if block supplied
3384
- # @yieldparam result [Google::Apis::NetworksecurityV1::ListGatewaySecurityPoliciesResponse] parsed result object
3530
+ # @yieldparam result [Google::Apis::NetworksecurityV1::ListFirewallEndpointsResponse] parsed result object
3385
3531
  # @yieldparam err [StandardError] error object if request failed
3386
3532
  #
3387
- # @return [Google::Apis::NetworksecurityV1::ListGatewaySecurityPoliciesResponse]
3533
+ # @return [Google::Apis::NetworksecurityV1::ListFirewallEndpointsResponse]
3388
3534
  #
3389
3535
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3390
3536
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3391
3537
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3392
- def list_project_location_gateway_security_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3393
- command = make_simple_command(:get, 'v1/{+parent}/gatewaySecurityPolicies', options)
3394
- command.response_representation = Google::Apis::NetworksecurityV1::ListGatewaySecurityPoliciesResponse::Representation
3395
- command.response_class = Google::Apis::NetworksecurityV1::ListGatewaySecurityPoliciesResponse
3538
+ def list_project_location_firewall_endpoints(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3539
+ command = make_simple_command(:get, 'v1/{+parent}/firewallEndpoints', options)
3540
+ command.response_representation = Google::Apis::NetworksecurityV1::ListFirewallEndpointsResponse::Representation
3541
+ command.response_class = Google::Apis::NetworksecurityV1::ListFirewallEndpointsResponse
3396
3542
  command.params['parent'] = parent unless parent.nil?
3543
+ command.query['filter'] = filter unless filter.nil?
3544
+ command.query['orderBy'] = order_by unless order_by.nil?
3397
3545
  command.query['pageSize'] = page_size unless page_size.nil?
3398
3546
  command.query['pageToken'] = page_token unless page_token.nil?
3399
3547
  command.query['fields'] = fields unless fields.nil?
@@ -3401,19 +3549,27 @@ module Google
3401
3549
  execute_or_queue_command(command, &block)
3402
3550
  end
3403
3551
 
3404
- # Updates the parameters of a single GatewaySecurityPolicy.
3552
+ # Update a single project Endpoint.
3405
3553
  # @param [String] name
3406
- # Required. Name of the resource. Name is of the form projects/`project`/
3407
- # locations/`location`/gatewaySecurityPolicies/`gateway_security_policy`
3408
- # gateway_security_policy should match the pattern:(^[a-z]([a-z0-9-]`0,61`[a-z0-
3409
- # 9])?$).
3410
- # @param [Google::Apis::NetworksecurityV1::GatewaySecurityPolicy] gateway_security_policy_object
3554
+ # Immutable. Identifier. Name of resource.
3555
+ # @param [Google::Apis::NetworksecurityV1::FirewallEndpoint] firewall_endpoint_object
3556
+ # @param [String] request_id
3557
+ # Optional. An optional request ID to identify requests. Specify a unique
3558
+ # request ID so that if you must retry your request, the server will know to
3559
+ # ignore the request if it has already been completed. The server will guarantee
3560
+ # that for at least 60 minutes since the first request. For example, consider a
3561
+ # situation where you make an initial request and the request times out. If you
3562
+ # make the request again with the same request ID, the server can check if
3563
+ # original operation with the same request ID was received, and if so, will
3564
+ # ignore the second request. This prevents clients from accidentally creating
3565
+ # duplicate commitments. The request ID must be a valid UUID with the exception
3566
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3411
3567
  # @param [String] update_mask
3412
- # Optional. Field mask is used to specify the fields to be overwritten in the
3413
- # GatewaySecurityPolicy resource by the update. The fields specified in the
3414
- # update_mask are relative to the resource, not the full request. A field will
3415
- # be overwritten if it is in the mask. If the user does not provide a mask then
3416
- # all fields will be overwritten.
3568
+ # Required. Field mask is used to specify the fields to be overwritten in the
3569
+ # Endpoint resource by the update. The fields specified in the update_mask are
3570
+ # relative to the resource, not the full request. A field will be overwritten if
3571
+ # it is in the mask. If the user does not provide a mask then all fields will be
3572
+ # overwritten.
3417
3573
  # @param [String] fields
3418
3574
  # Selector specifying which fields to include in a partial response.
3419
3575
  # @param [String] quota_user
@@ -3431,13 +3587,14 @@ module Google
3431
3587
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3432
3588
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3433
3589
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3434
- def patch_project_location_gateway_security_policy(name, gateway_security_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3590
+ def patch_project_location_firewall_endpoint(name, firewall_endpoint_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3435
3591
  command = make_simple_command(:patch, 'v1/{+name}', options)
3436
- command.request_representation = Google::Apis::NetworksecurityV1::GatewaySecurityPolicy::Representation
3437
- command.request_object = gateway_security_policy_object
3592
+ command.request_representation = Google::Apis::NetworksecurityV1::FirewallEndpoint::Representation
3593
+ command.request_object = firewall_endpoint_object
3438
3594
  command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
3439
3595
  command.response_class = Google::Apis::NetworksecurityV1::Operation
3440
3596
  command.params['name'] = name unless name.nil?
3597
+ command.query['requestId'] = request_id unless request_id.nil?
3441
3598
  command.query['updateMask'] = update_mask unless update_mask.nil?
3442
3599
  command.query['fields'] = fields unless fields.nil?
3443
3600
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -3446,14 +3603,199 @@ module Google
3446
3603
 
3447
3604
  # Creates a new GatewaySecurityPolicy in a given project and location.
3448
3605
  # @param [String] parent
3449
- # Required. The parent where this rule will be created. Format : projects/`
3450
- # project`/location/`location`/gatewaySecurityPolicies/*
3451
- # @param [Google::Apis::NetworksecurityV1::GatewaySecurityPolicyRule] gateway_security_policy_rule_object
3452
- # @param [String] gateway_security_policy_rule_id
3453
- # The ID to use for the rule, which will become the final component of the rule'
3454
- # s resource name. This value should be 4-63 characters, and valid characters
3455
- # are /a-z-/.
3456
- # @param [String] fields
3606
+ # Required. The parent resource of the GatewaySecurityPolicy. Must be in the
3607
+ # format `projects/`project`/locations/`location``.
3608
+ # @param [Google::Apis::NetworksecurityV1::GatewaySecurityPolicy] gateway_security_policy_object
3609
+ # @param [String] gateway_security_policy_id
3610
+ # Required. Short name of the GatewaySecurityPolicy resource to be created. This
3611
+ # value should be 1-63 characters long, containing only letters, numbers,
3612
+ # hyphens, and underscores, and should not start with a number. E.g. "
3613
+ # gateway_security_policy1".
3614
+ # @param [String] fields
3615
+ # Selector specifying which fields to include in a partial response.
3616
+ # @param [String] quota_user
3617
+ # Available to use for quota purposes for server-side applications. Can be any
3618
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3619
+ # @param [Google::Apis::RequestOptions] options
3620
+ # Request-specific options
3621
+ #
3622
+ # @yield [result, err] Result & error if block supplied
3623
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
3624
+ # @yieldparam err [StandardError] error object if request failed
3625
+ #
3626
+ # @return [Google::Apis::NetworksecurityV1::Operation]
3627
+ #
3628
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3629
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3630
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3631
+ def create_project_location_gateway_security_policy(parent, gateway_security_policy_object = nil, gateway_security_policy_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3632
+ command = make_simple_command(:post, 'v1/{+parent}/gatewaySecurityPolicies', options)
3633
+ command.request_representation = Google::Apis::NetworksecurityV1::GatewaySecurityPolicy::Representation
3634
+ command.request_object = gateway_security_policy_object
3635
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
3636
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
3637
+ command.params['parent'] = parent unless parent.nil?
3638
+ command.query['gatewaySecurityPolicyId'] = gateway_security_policy_id unless gateway_security_policy_id.nil?
3639
+ command.query['fields'] = fields unless fields.nil?
3640
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3641
+ execute_or_queue_command(command, &block)
3642
+ end
3643
+
3644
+ # Deletes a single GatewaySecurityPolicy.
3645
+ # @param [String] name
3646
+ # Required. A name of the GatewaySecurityPolicy to delete. Must be in the format
3647
+ # `projects/`project`/locations/`location`/gatewaySecurityPolicies/*`.
3648
+ # @param [String] fields
3649
+ # Selector specifying which fields to include in a partial response.
3650
+ # @param [String] quota_user
3651
+ # Available to use for quota purposes for server-side applications. Can be any
3652
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3653
+ # @param [Google::Apis::RequestOptions] options
3654
+ # Request-specific options
3655
+ #
3656
+ # @yield [result, err] Result & error if block supplied
3657
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
3658
+ # @yieldparam err [StandardError] error object if request failed
3659
+ #
3660
+ # @return [Google::Apis::NetworksecurityV1::Operation]
3661
+ #
3662
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3663
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3664
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3665
+ def delete_project_location_gateway_security_policy(name, fields: nil, quota_user: nil, options: nil, &block)
3666
+ command = make_simple_command(:delete, 'v1/{+name}', options)
3667
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
3668
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
3669
+ command.params['name'] = name unless name.nil?
3670
+ command.query['fields'] = fields unless fields.nil?
3671
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3672
+ execute_or_queue_command(command, &block)
3673
+ end
3674
+
3675
+ # Gets details of a single GatewaySecurityPolicy.
3676
+ # @param [String] name
3677
+ # Required. A name of the GatewaySecurityPolicy to get. Must be in the format `
3678
+ # projects/`project`/locations/`location`/gatewaySecurityPolicies/*`.
3679
+ # @param [String] fields
3680
+ # Selector specifying which fields to include in a partial response.
3681
+ # @param [String] quota_user
3682
+ # Available to use for quota purposes for server-side applications. Can be any
3683
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3684
+ # @param [Google::Apis::RequestOptions] options
3685
+ # Request-specific options
3686
+ #
3687
+ # @yield [result, err] Result & error if block supplied
3688
+ # @yieldparam result [Google::Apis::NetworksecurityV1::GatewaySecurityPolicy] parsed result object
3689
+ # @yieldparam err [StandardError] error object if request failed
3690
+ #
3691
+ # @return [Google::Apis::NetworksecurityV1::GatewaySecurityPolicy]
3692
+ #
3693
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3694
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3695
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3696
+ def get_project_location_gateway_security_policy(name, fields: nil, quota_user: nil, options: nil, &block)
3697
+ command = make_simple_command(:get, 'v1/{+name}', options)
3698
+ command.response_representation = Google::Apis::NetworksecurityV1::GatewaySecurityPolicy::Representation
3699
+ command.response_class = Google::Apis::NetworksecurityV1::GatewaySecurityPolicy
3700
+ command.params['name'] = name unless name.nil?
3701
+ command.query['fields'] = fields unless fields.nil?
3702
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3703
+ execute_or_queue_command(command, &block)
3704
+ end
3705
+
3706
+ # Lists GatewaySecurityPolicies in a given project and location.
3707
+ # @param [String] parent
3708
+ # Required. The project and location from which the GatewaySecurityPolicies
3709
+ # should be listed, specified in the format `projects/`project`/locations/`
3710
+ # location``.
3711
+ # @param [Fixnum] page_size
3712
+ # Maximum number of GatewaySecurityPolicies to return per call.
3713
+ # @param [String] page_token
3714
+ # The value returned by the last 'ListGatewaySecurityPoliciesResponse' Indicates
3715
+ # that this is a continuation of a prior 'ListGatewaySecurityPolicies' call, and
3716
+ # that the system should return the next page of data.
3717
+ # @param [String] fields
3718
+ # Selector specifying which fields to include in a partial response.
3719
+ # @param [String] quota_user
3720
+ # Available to use for quota purposes for server-side applications. Can be any
3721
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3722
+ # @param [Google::Apis::RequestOptions] options
3723
+ # Request-specific options
3724
+ #
3725
+ # @yield [result, err] Result & error if block supplied
3726
+ # @yieldparam result [Google::Apis::NetworksecurityV1::ListGatewaySecurityPoliciesResponse] parsed result object
3727
+ # @yieldparam err [StandardError] error object if request failed
3728
+ #
3729
+ # @return [Google::Apis::NetworksecurityV1::ListGatewaySecurityPoliciesResponse]
3730
+ #
3731
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3732
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3733
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3734
+ def list_project_location_gateway_security_policies(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3735
+ command = make_simple_command(:get, 'v1/{+parent}/gatewaySecurityPolicies', options)
3736
+ command.response_representation = Google::Apis::NetworksecurityV1::ListGatewaySecurityPoliciesResponse::Representation
3737
+ command.response_class = Google::Apis::NetworksecurityV1::ListGatewaySecurityPoliciesResponse
3738
+ command.params['parent'] = parent unless parent.nil?
3739
+ command.query['pageSize'] = page_size unless page_size.nil?
3740
+ command.query['pageToken'] = page_token unless page_token.nil?
3741
+ command.query['fields'] = fields unless fields.nil?
3742
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3743
+ execute_or_queue_command(command, &block)
3744
+ end
3745
+
3746
+ # Updates the parameters of a single GatewaySecurityPolicy.
3747
+ # @param [String] name
3748
+ # Required. Name of the resource. Name is of the form projects/`project`/
3749
+ # locations/`location`/gatewaySecurityPolicies/`gateway_security_policy`
3750
+ # gateway_security_policy should match the pattern:(^[a-z]([a-z0-9-]`0,61`[a-z0-
3751
+ # 9])?$).
3752
+ # @param [Google::Apis::NetworksecurityV1::GatewaySecurityPolicy] gateway_security_policy_object
3753
+ # @param [String] update_mask
3754
+ # Optional. Field mask is used to specify the fields to be overwritten in the
3755
+ # GatewaySecurityPolicy resource by the update. The fields specified in the
3756
+ # update_mask are relative to the resource, not the full request. A field will
3757
+ # be overwritten if it is in the mask. If the user does not provide a mask then
3758
+ # all fields will be overwritten.
3759
+ # @param [String] fields
3760
+ # Selector specifying which fields to include in a partial response.
3761
+ # @param [String] quota_user
3762
+ # Available to use for quota purposes for server-side applications. Can be any
3763
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3764
+ # @param [Google::Apis::RequestOptions] options
3765
+ # Request-specific options
3766
+ #
3767
+ # @yield [result, err] Result & error if block supplied
3768
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
3769
+ # @yieldparam err [StandardError] error object if request failed
3770
+ #
3771
+ # @return [Google::Apis::NetworksecurityV1::Operation]
3772
+ #
3773
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3774
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3775
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3776
+ def patch_project_location_gateway_security_policy(name, gateway_security_policy_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
3777
+ command = make_simple_command(:patch, 'v1/{+name}', options)
3778
+ command.request_representation = Google::Apis::NetworksecurityV1::GatewaySecurityPolicy::Representation
3779
+ command.request_object = gateway_security_policy_object
3780
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
3781
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
3782
+ command.params['name'] = name unless name.nil?
3783
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3784
+ command.query['fields'] = fields unless fields.nil?
3785
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3786
+ execute_or_queue_command(command, &block)
3787
+ end
3788
+
3789
+ # Creates a new GatewaySecurityPolicy in a given project and location.
3790
+ # @param [String] parent
3791
+ # Required. The parent where this rule will be created. Format : projects/`
3792
+ # project`/location/`location`/gatewaySecurityPolicies/*
3793
+ # @param [Google::Apis::NetworksecurityV1::GatewaySecurityPolicyRule] gateway_security_policy_rule_object
3794
+ # @param [String] gateway_security_policy_rule_id
3795
+ # The ID to use for the rule, which will become the final component of the rule'
3796
+ # s resource name. This value should be 4-63 characters, and valid characters
3797
+ # are /a-z-/.
3798
+ # @param [String] fields
3457
3799
  # Selector specifying which fields to include in a partial response.
3458
3800
  # @param [String] quota_user
3459
3801
  # Available to use for quota purposes for server-side applications. Can be any
@@ -5452,6 +5794,723 @@ module Google
5452
5794
  execute_or_queue_command(command, &block)
5453
5795
  end
5454
5796
 
5797
+ # Creates a new SACAttachment in a given project and location.
5798
+ # @param [String] parent
5799
+ # Required. The parent, in the form `projects/`project`/locations/`location``.
5800
+ # @param [Google::Apis::NetworksecurityV1::SacAttachment] sac_attachment_object
5801
+ # @param [String] request_id
5802
+ # Optional. An optional request ID to identify requests. Specify a unique
5803
+ # request ID so that if you must retry your request, the server will know to
5804
+ # ignore the request if it has already been completed. The server will guarantee
5805
+ # that for at least 60 minutes since the first request. For example, consider a
5806
+ # situation where you make an initial request and the request times out. If you
5807
+ # make the request again with the same request ID, the server can check if
5808
+ # original operation with the same request ID was received, and if so, will
5809
+ # ignore the second request. This prevents clients from accidentally creating
5810
+ # duplicate commitments. The request ID must be a valid UUID with the exception
5811
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
5812
+ # @param [String] sac_attachment_id
5813
+ # Required. ID of the created attachment. The ID must be 1-63 characters long,
5814
+ # and comply with RFC1035. Specifically, it must be 1-63 characters long and
5815
+ # match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the
5816
+ # first character must be a lowercase letter, and all following characters must
5817
+ # be a dash, lowercase letter, or digit, except the last character, which cannot
5818
+ # be a dash.
5819
+ # @param [String] fields
5820
+ # Selector specifying which fields to include in a partial response.
5821
+ # @param [String] quota_user
5822
+ # Available to use for quota purposes for server-side applications. Can be any
5823
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5824
+ # @param [Google::Apis::RequestOptions] options
5825
+ # Request-specific options
5826
+ #
5827
+ # @yield [result, err] Result & error if block supplied
5828
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
5829
+ # @yieldparam err [StandardError] error object if request failed
5830
+ #
5831
+ # @return [Google::Apis::NetworksecurityV1::Operation]
5832
+ #
5833
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5834
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5835
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5836
+ def create_project_location_sac_attachment(parent, sac_attachment_object = nil, request_id: nil, sac_attachment_id: nil, fields: nil, quota_user: nil, options: nil, &block)
5837
+ command = make_simple_command(:post, 'v1/{+parent}/sacAttachments', options)
5838
+ command.request_representation = Google::Apis::NetworksecurityV1::SacAttachment::Representation
5839
+ command.request_object = sac_attachment_object
5840
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
5841
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
5842
+ command.params['parent'] = parent unless parent.nil?
5843
+ command.query['requestId'] = request_id unless request_id.nil?
5844
+ command.query['sacAttachmentId'] = sac_attachment_id unless sac_attachment_id.nil?
5845
+ command.query['fields'] = fields unless fields.nil?
5846
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5847
+ execute_or_queue_command(command, &block)
5848
+ end
5849
+
5850
+ # Deletes the specified attachment.
5851
+ # @param [String] name
5852
+ # Required. Name of the resource, in the form `projects/`project`/locations/`
5853
+ # location`/sacAttachments/`sac_attachment``.
5854
+ # @param [String] request_id
5855
+ # Optional. An optional request ID to identify requests. Specify a unique
5856
+ # request ID so that if you must retry your request, the server will know to
5857
+ # ignore the request if it has already been completed. The server will guarantee
5858
+ # that for at least 60 minutes after the first request. For example, consider a
5859
+ # situation where you make an initial request and the request times out. If you
5860
+ # make the request again with the same request ID, the server can check if
5861
+ # original operation with the same request ID was received, and if so, will
5862
+ # ignore the second request. This prevents clients from accidentally creating
5863
+ # duplicate commitments. The request ID must be a valid UUID with the exception
5864
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
5865
+ # @param [String] fields
5866
+ # Selector specifying which fields to include in a partial response.
5867
+ # @param [String] quota_user
5868
+ # Available to use for quota purposes for server-side applications. Can be any
5869
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5870
+ # @param [Google::Apis::RequestOptions] options
5871
+ # Request-specific options
5872
+ #
5873
+ # @yield [result, err] Result & error if block supplied
5874
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
5875
+ # @yieldparam err [StandardError] error object if request failed
5876
+ #
5877
+ # @return [Google::Apis::NetworksecurityV1::Operation]
5878
+ #
5879
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5880
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5881
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5882
+ def delete_project_location_sac_attachment(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
5883
+ command = make_simple_command(:delete, 'v1/{+name}', options)
5884
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
5885
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
5886
+ command.params['name'] = name unless name.nil?
5887
+ command.query['requestId'] = request_id unless request_id.nil?
5888
+ command.query['fields'] = fields unless fields.nil?
5889
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5890
+ execute_or_queue_command(command, &block)
5891
+ end
5892
+
5893
+ # Returns the specified attachment.
5894
+ # @param [String] name
5895
+ # Required. Name of the resource, in the form `projects/`project`/locations/`
5896
+ # location`/sacAttachments/`sac_attachment``.
5897
+ # @param [String] fields
5898
+ # Selector specifying which fields to include in a partial response.
5899
+ # @param [String] quota_user
5900
+ # Available to use for quota purposes for server-side applications. Can be any
5901
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5902
+ # @param [Google::Apis::RequestOptions] options
5903
+ # Request-specific options
5904
+ #
5905
+ # @yield [result, err] Result & error if block supplied
5906
+ # @yieldparam result [Google::Apis::NetworksecurityV1::SacAttachment] parsed result object
5907
+ # @yieldparam err [StandardError] error object if request failed
5908
+ #
5909
+ # @return [Google::Apis::NetworksecurityV1::SacAttachment]
5910
+ #
5911
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5912
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5913
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5914
+ def get_project_location_sac_attachment(name, fields: nil, quota_user: nil, options: nil, &block)
5915
+ command = make_simple_command(:get, 'v1/{+name}', options)
5916
+ command.response_representation = Google::Apis::NetworksecurityV1::SacAttachment::Representation
5917
+ command.response_class = Google::Apis::NetworksecurityV1::SacAttachment
5918
+ command.params['name'] = name unless name.nil?
5919
+ command.query['fields'] = fields unless fields.nil?
5920
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5921
+ execute_or_queue_command(command, &block)
5922
+ end
5923
+
5924
+ # Lists SACAttachments in a given project and location.
5925
+ # @param [String] parent
5926
+ # Required. The parent, in the form `projects/`project`/locations/`location``.
5927
+ # @param [String] filter
5928
+ # Optional. An expression that filters the list of results.
5929
+ # @param [String] order_by
5930
+ # Optional. Sort the results by a certain order.
5931
+ # @param [Fixnum] page_size
5932
+ # Optional. Requested page size. Server may return fewer items than requested.
5933
+ # If unspecified, server will pick an appropriate default.
5934
+ # @param [String] page_token
5935
+ # Optional. A token identifying a page of results the server should return.
5936
+ # @param [String] fields
5937
+ # Selector specifying which fields to include in a partial response.
5938
+ # @param [String] quota_user
5939
+ # Available to use for quota purposes for server-side applications. Can be any
5940
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5941
+ # @param [Google::Apis::RequestOptions] options
5942
+ # Request-specific options
5943
+ #
5944
+ # @yield [result, err] Result & error if block supplied
5945
+ # @yieldparam result [Google::Apis::NetworksecurityV1::ListSacAttachmentsResponse] parsed result object
5946
+ # @yieldparam err [StandardError] error object if request failed
5947
+ #
5948
+ # @return [Google::Apis::NetworksecurityV1::ListSacAttachmentsResponse]
5949
+ #
5950
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5951
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5952
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5953
+ def list_project_location_sac_attachments(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
5954
+ command = make_simple_command(:get, 'v1/{+parent}/sacAttachments', options)
5955
+ command.response_representation = Google::Apis::NetworksecurityV1::ListSacAttachmentsResponse::Representation
5956
+ command.response_class = Google::Apis::NetworksecurityV1::ListSacAttachmentsResponse
5957
+ command.params['parent'] = parent unless parent.nil?
5958
+ command.query['filter'] = filter unless filter.nil?
5959
+ command.query['orderBy'] = order_by unless order_by.nil?
5960
+ command.query['pageSize'] = page_size unless page_size.nil?
5961
+ command.query['pageToken'] = page_token unless page_token.nil?
5962
+ command.query['fields'] = fields unless fields.nil?
5963
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5964
+ execute_or_queue_command(command, &block)
5965
+ end
5966
+
5967
+ # Creates a new SACRealm in a given project.
5968
+ # @param [String] parent
5969
+ # Required. The parent, in the form `projects/`project`/locations/global`.
5970
+ # @param [Google::Apis::NetworksecurityV1::SacRealm] sac_realm_object
5971
+ # @param [String] request_id
5972
+ # Optional. An optional request ID to identify requests. Specify a unique
5973
+ # request ID so that if you must retry your request, the server will know to
5974
+ # ignore the request if it has already been completed. The server will guarantee
5975
+ # that for at least 60 minutes since the first request. For example, consider a
5976
+ # situation where you make an initial request and the request times out. If you
5977
+ # make the request again with the same request ID, the server can check if
5978
+ # original operation with the same request ID was received, and if so, will
5979
+ # ignore the second request. This prevents clients from accidentally creating
5980
+ # duplicate commitments. The request ID must be a valid UUID with the exception
5981
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
5982
+ # @param [String] sac_realm_id
5983
+ # Required. ID of the created realm. The ID must be 1-63 characters long, and
5984
+ # comply with RFC1035. Specifically, it must be 1-63 characters long and match
5985
+ # the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
5986
+ # character must be a lowercase letter, and all following characters must be a
5987
+ # dash, lowercase letter, or digit, except the last character, which cannot be a
5988
+ # dash.
5989
+ # @param [String] fields
5990
+ # Selector specifying which fields to include in a partial response.
5991
+ # @param [String] quota_user
5992
+ # Available to use for quota purposes for server-side applications. Can be any
5993
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5994
+ # @param [Google::Apis::RequestOptions] options
5995
+ # Request-specific options
5996
+ #
5997
+ # @yield [result, err] Result & error if block supplied
5998
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
5999
+ # @yieldparam err [StandardError] error object if request failed
6000
+ #
6001
+ # @return [Google::Apis::NetworksecurityV1::Operation]
6002
+ #
6003
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6004
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6005
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6006
+ def create_project_location_sac_realm(parent, sac_realm_object = nil, request_id: nil, sac_realm_id: nil, fields: nil, quota_user: nil, options: nil, &block)
6007
+ command = make_simple_command(:post, 'v1/{+parent}/sacRealms', options)
6008
+ command.request_representation = Google::Apis::NetworksecurityV1::SacRealm::Representation
6009
+ command.request_object = sac_realm_object
6010
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
6011
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
6012
+ command.params['parent'] = parent unless parent.nil?
6013
+ command.query['requestId'] = request_id unless request_id.nil?
6014
+ command.query['sacRealmId'] = sac_realm_id unless sac_realm_id.nil?
6015
+ command.query['fields'] = fields unless fields.nil?
6016
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6017
+ execute_or_queue_command(command, &block)
6018
+ end
6019
+
6020
+ # Deletes the specified realm.
6021
+ # @param [String] name
6022
+ # Required. Name of the resource, in the form `projects/`project`/locations/
6023
+ # global/sacRealms/`sacRealm``.
6024
+ # @param [String] request_id
6025
+ # Optional. An optional request ID to identify requests. Specify a unique
6026
+ # request ID so that if you must retry your request, the server will know to
6027
+ # ignore the request if it has already been completed. The server will guarantee
6028
+ # that for at least 60 minutes after the first request. For example, consider a
6029
+ # situation where you make an initial request and the request times out. If you
6030
+ # make the request again with the same request ID, the server can check if
6031
+ # original operation with the same request ID was received, and if so, will
6032
+ # ignore the second request. This prevents clients from accidentally creating
6033
+ # duplicate commitments. The request ID must be a valid UUID with the exception
6034
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
6035
+ # @param [String] fields
6036
+ # Selector specifying which fields to include in a partial response.
6037
+ # @param [String] quota_user
6038
+ # Available to use for quota purposes for server-side applications. Can be any
6039
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6040
+ # @param [Google::Apis::RequestOptions] options
6041
+ # Request-specific options
6042
+ #
6043
+ # @yield [result, err] Result & error if block supplied
6044
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
6045
+ # @yieldparam err [StandardError] error object if request failed
6046
+ #
6047
+ # @return [Google::Apis::NetworksecurityV1::Operation]
6048
+ #
6049
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6050
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6051
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6052
+ def delete_project_location_sac_realm(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
6053
+ command = make_simple_command(:delete, 'v1/{+name}', options)
6054
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
6055
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
6056
+ command.params['name'] = name unless name.nil?
6057
+ command.query['requestId'] = request_id unless request_id.nil?
6058
+ command.query['fields'] = fields unless fields.nil?
6059
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6060
+ execute_or_queue_command(command, &block)
6061
+ end
6062
+
6063
+ # Returns the specified realm.
6064
+ # @param [String] name
6065
+ # Required. Name of the resource, in the form `projects/`project`/locations/
6066
+ # global/sacRealms/`sacRealm``.
6067
+ # @param [String] fields
6068
+ # Selector specifying which fields to include in a partial response.
6069
+ # @param [String] quota_user
6070
+ # Available to use for quota purposes for server-side applications. Can be any
6071
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6072
+ # @param [Google::Apis::RequestOptions] options
6073
+ # Request-specific options
6074
+ #
6075
+ # @yield [result, err] Result & error if block supplied
6076
+ # @yieldparam result [Google::Apis::NetworksecurityV1::SacRealm] parsed result object
6077
+ # @yieldparam err [StandardError] error object if request failed
6078
+ #
6079
+ # @return [Google::Apis::NetworksecurityV1::SacRealm]
6080
+ #
6081
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6082
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6083
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6084
+ def get_project_location_sac_realm(name, fields: nil, quota_user: nil, options: nil, &block)
6085
+ command = make_simple_command(:get, 'v1/{+name}', options)
6086
+ command.response_representation = Google::Apis::NetworksecurityV1::SacRealm::Representation
6087
+ command.response_class = Google::Apis::NetworksecurityV1::SacRealm
6088
+ command.params['name'] = name unless name.nil?
6089
+ command.query['fields'] = fields unless fields.nil?
6090
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6091
+ execute_or_queue_command(command, &block)
6092
+ end
6093
+
6094
+ # Lists SACRealms in a given project.
6095
+ # @param [String] parent
6096
+ # Required. The parent, in the form `projects/`project`/locations/global`.
6097
+ # @param [String] filter
6098
+ # Optional. An expression that filters the list of results.
6099
+ # @param [String] order_by
6100
+ # Optional. Sort the results by a certain order.
6101
+ # @param [Fixnum] page_size
6102
+ # Optional. Requested page size. Server may return fewer items than requested.
6103
+ # If unspecified, server will pick an appropriate default.
6104
+ # @param [String] page_token
6105
+ # Optional. A token identifying a page of results the server should return.
6106
+ # @param [String] fields
6107
+ # Selector specifying which fields to include in a partial response.
6108
+ # @param [String] quota_user
6109
+ # Available to use for quota purposes for server-side applications. Can be any
6110
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6111
+ # @param [Google::Apis::RequestOptions] options
6112
+ # Request-specific options
6113
+ #
6114
+ # @yield [result, err] Result & error if block supplied
6115
+ # @yieldparam result [Google::Apis::NetworksecurityV1::ListSacRealmsResponse] parsed result object
6116
+ # @yieldparam err [StandardError] error object if request failed
6117
+ #
6118
+ # @return [Google::Apis::NetworksecurityV1::ListSacRealmsResponse]
6119
+ #
6120
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6121
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6122
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6123
+ def list_project_location_sac_realms(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
6124
+ command = make_simple_command(:get, 'v1/{+parent}/sacRealms', options)
6125
+ command.response_representation = Google::Apis::NetworksecurityV1::ListSacRealmsResponse::Representation
6126
+ command.response_class = Google::Apis::NetworksecurityV1::ListSacRealmsResponse
6127
+ command.params['parent'] = parent unless parent.nil?
6128
+ command.query['filter'] = filter unless filter.nil?
6129
+ command.query['orderBy'] = order_by unless order_by.nil?
6130
+ command.query['pageSize'] = page_size unless page_size.nil?
6131
+ command.query['pageToken'] = page_token unless page_token.nil?
6132
+ command.query['fields'] = fields unless fields.nil?
6133
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6134
+ execute_or_queue_command(command, &block)
6135
+ end
6136
+
6137
+ # Creates a new SecurityProfileGroup in a given project and location.
6138
+ # @param [String] parent
6139
+ # Required. The parent resource of the SecurityProfileGroup. Must be in the
6140
+ # format `projects|organizations/*/locations/`location``.
6141
+ # @param [Google::Apis::NetworksecurityV1::SecurityProfileGroup] security_profile_group_object
6142
+ # @param [String] security_profile_group_id
6143
+ # Required. Short name of the SecurityProfileGroup resource to be created. This
6144
+ # value should be 1-63 characters long, containing only letters, numbers,
6145
+ # hyphens, and underscores, and should not start with a number. E.g. "
6146
+ # security_profile_group1".
6147
+ # @param [String] fields
6148
+ # Selector specifying which fields to include in a partial response.
6149
+ # @param [String] quota_user
6150
+ # Available to use for quota purposes for server-side applications. Can be any
6151
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6152
+ # @param [Google::Apis::RequestOptions] options
6153
+ # Request-specific options
6154
+ #
6155
+ # @yield [result, err] Result & error if block supplied
6156
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
6157
+ # @yieldparam err [StandardError] error object if request failed
6158
+ #
6159
+ # @return [Google::Apis::NetworksecurityV1::Operation]
6160
+ #
6161
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6162
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6163
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6164
+ def create_project_location_security_profile_group(parent, security_profile_group_object = nil, security_profile_group_id: nil, fields: nil, quota_user: nil, options: nil, &block)
6165
+ command = make_simple_command(:post, 'v1/{+parent}/securityProfileGroups', options)
6166
+ command.request_representation = Google::Apis::NetworksecurityV1::SecurityProfileGroup::Representation
6167
+ command.request_object = security_profile_group_object
6168
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
6169
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
6170
+ command.params['parent'] = parent unless parent.nil?
6171
+ command.query['securityProfileGroupId'] = security_profile_group_id unless security_profile_group_id.nil?
6172
+ command.query['fields'] = fields unless fields.nil?
6173
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6174
+ execute_or_queue_command(command, &block)
6175
+ end
6176
+
6177
+ # Deletes a single SecurityProfileGroup.
6178
+ # @param [String] name
6179
+ # Required. A name of the SecurityProfileGroup to delete. Must be in the format `
6180
+ # projects|organizations/*/locations/`location`/securityProfileGroups/`
6181
+ # security_profile_group``.
6182
+ # @param [String] etag
6183
+ # Optional. If client provided etag is out of date, delete will return
6184
+ # FAILED_PRECONDITION error.
6185
+ # @param [String] fields
6186
+ # Selector specifying which fields to include in a partial response.
6187
+ # @param [String] quota_user
6188
+ # Available to use for quota purposes for server-side applications. Can be any
6189
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6190
+ # @param [Google::Apis::RequestOptions] options
6191
+ # Request-specific options
6192
+ #
6193
+ # @yield [result, err] Result & error if block supplied
6194
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
6195
+ # @yieldparam err [StandardError] error object if request failed
6196
+ #
6197
+ # @return [Google::Apis::NetworksecurityV1::Operation]
6198
+ #
6199
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6200
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6201
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6202
+ def delete_project_location_security_profile_group(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block)
6203
+ command = make_simple_command(:delete, 'v1/{+name}', options)
6204
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
6205
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
6206
+ command.params['name'] = name unless name.nil?
6207
+ command.query['etag'] = etag unless etag.nil?
6208
+ command.query['fields'] = fields unless fields.nil?
6209
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6210
+ execute_or_queue_command(command, &block)
6211
+ end
6212
+
6213
+ # Gets details of a single SecurityProfileGroup.
6214
+ # @param [String] name
6215
+ # Required. A name of the SecurityProfileGroup to get. Must be in the format `
6216
+ # projects|organizations/*/locations/`location`/securityProfileGroups/`
6217
+ # security_profile_group``.
6218
+ # @param [String] fields
6219
+ # Selector specifying which fields to include in a partial response.
6220
+ # @param [String] quota_user
6221
+ # Available to use for quota purposes for server-side applications. Can be any
6222
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6223
+ # @param [Google::Apis::RequestOptions] options
6224
+ # Request-specific options
6225
+ #
6226
+ # @yield [result, err] Result & error if block supplied
6227
+ # @yieldparam result [Google::Apis::NetworksecurityV1::SecurityProfileGroup] parsed result object
6228
+ # @yieldparam err [StandardError] error object if request failed
6229
+ #
6230
+ # @return [Google::Apis::NetworksecurityV1::SecurityProfileGroup]
6231
+ #
6232
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6233
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6234
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6235
+ def get_project_location_security_profile_group(name, fields: nil, quota_user: nil, options: nil, &block)
6236
+ command = make_simple_command(:get, 'v1/{+name}', options)
6237
+ command.response_representation = Google::Apis::NetworksecurityV1::SecurityProfileGroup::Representation
6238
+ command.response_class = Google::Apis::NetworksecurityV1::SecurityProfileGroup
6239
+ command.params['name'] = name unless name.nil?
6240
+ command.query['fields'] = fields unless fields.nil?
6241
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6242
+ execute_or_queue_command(command, &block)
6243
+ end
6244
+
6245
+ # Lists SecurityProfileGroups in a given project and location.
6246
+ # @param [String] parent
6247
+ # Required. The project or organization and location from which the
6248
+ # SecurityProfileGroups should be listed, specified in the format `projects|
6249
+ # organizations/*/locations/`location``.
6250
+ # @param [Fixnum] page_size
6251
+ # Optional. Maximum number of SecurityProfileGroups to return per call.
6252
+ # @param [String] page_token
6253
+ # Optional. The value returned by the last `ListSecurityProfileGroupsResponse`
6254
+ # Indicates that this is a continuation of a prior `ListSecurityProfileGroups`
6255
+ # call, and that the system should return the next page of data.
6256
+ # @param [String] fields
6257
+ # Selector specifying which fields to include in a partial response.
6258
+ # @param [String] quota_user
6259
+ # Available to use for quota purposes for server-side applications. Can be any
6260
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6261
+ # @param [Google::Apis::RequestOptions] options
6262
+ # Request-specific options
6263
+ #
6264
+ # @yield [result, err] Result & error if block supplied
6265
+ # @yieldparam result [Google::Apis::NetworksecurityV1::ListSecurityProfileGroupsResponse] parsed result object
6266
+ # @yieldparam err [StandardError] error object if request failed
6267
+ #
6268
+ # @return [Google::Apis::NetworksecurityV1::ListSecurityProfileGroupsResponse]
6269
+ #
6270
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6271
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6272
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6273
+ def list_project_location_security_profile_groups(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
6274
+ command = make_simple_command(:get, 'v1/{+parent}/securityProfileGroups', options)
6275
+ command.response_representation = Google::Apis::NetworksecurityV1::ListSecurityProfileGroupsResponse::Representation
6276
+ command.response_class = Google::Apis::NetworksecurityV1::ListSecurityProfileGroupsResponse
6277
+ command.params['parent'] = parent unless parent.nil?
6278
+ command.query['pageSize'] = page_size unless page_size.nil?
6279
+ command.query['pageToken'] = page_token unless page_token.nil?
6280
+ command.query['fields'] = fields unless fields.nil?
6281
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6282
+ execute_or_queue_command(command, &block)
6283
+ end
6284
+
6285
+ # Updates the parameters of a single SecurityProfileGroup.
6286
+ # @param [String] name
6287
+ # Immutable. Identifier. Name of the SecurityProfileGroup resource. It matches
6288
+ # pattern `projects|organizations/*/locations/`location`/securityProfileGroups/`
6289
+ # security_profile_group``.
6290
+ # @param [Google::Apis::NetworksecurityV1::SecurityProfileGroup] security_profile_group_object
6291
+ # @param [String] update_mask
6292
+ # Required. Field mask is used to specify the fields to be overwritten in the
6293
+ # SecurityProfileGroup resource by the update. The fields specified in the
6294
+ # update_mask are relative to the resource, not the full request. A field will
6295
+ # be overwritten if it is in the mask.
6296
+ # @param [String] fields
6297
+ # Selector specifying which fields to include in a partial response.
6298
+ # @param [String] quota_user
6299
+ # Available to use for quota purposes for server-side applications. Can be any
6300
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6301
+ # @param [Google::Apis::RequestOptions] options
6302
+ # Request-specific options
6303
+ #
6304
+ # @yield [result, err] Result & error if block supplied
6305
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
6306
+ # @yieldparam err [StandardError] error object if request failed
6307
+ #
6308
+ # @return [Google::Apis::NetworksecurityV1::Operation]
6309
+ #
6310
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6311
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6312
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6313
+ def patch_project_location_security_profile_group(name, security_profile_group_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
6314
+ command = make_simple_command(:patch, 'v1/{+name}', options)
6315
+ command.request_representation = Google::Apis::NetworksecurityV1::SecurityProfileGroup::Representation
6316
+ command.request_object = security_profile_group_object
6317
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
6318
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
6319
+ command.params['name'] = name unless name.nil?
6320
+ command.query['updateMask'] = update_mask unless update_mask.nil?
6321
+ command.query['fields'] = fields unless fields.nil?
6322
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6323
+ execute_or_queue_command(command, &block)
6324
+ end
6325
+
6326
+ # Creates a new SecurityProfile in a given project and location.
6327
+ # @param [String] parent
6328
+ # Required. The parent resource of the SecurityProfile. Must be in the format `
6329
+ # projects|organizations/*/locations/`location``.
6330
+ # @param [Google::Apis::NetworksecurityV1::SecurityProfile] security_profile_object
6331
+ # @param [String] security_profile_id
6332
+ # Required. Short name of the SecurityProfile resource to be created. This value
6333
+ # should be 1-63 characters long, containing only letters, numbers, hyphens, and
6334
+ # underscores, and should not start with a number. E.g. "security_profile1".
6335
+ # @param [String] fields
6336
+ # Selector specifying which fields to include in a partial response.
6337
+ # @param [String] quota_user
6338
+ # Available to use for quota purposes for server-side applications. Can be any
6339
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6340
+ # @param [Google::Apis::RequestOptions] options
6341
+ # Request-specific options
6342
+ #
6343
+ # @yield [result, err] Result & error if block supplied
6344
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
6345
+ # @yieldparam err [StandardError] error object if request failed
6346
+ #
6347
+ # @return [Google::Apis::NetworksecurityV1::Operation]
6348
+ #
6349
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6350
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6351
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6352
+ def create_project_location_security_profile(parent, security_profile_object = nil, security_profile_id: nil, fields: nil, quota_user: nil, options: nil, &block)
6353
+ command = make_simple_command(:post, 'v1/{+parent}/securityProfiles', options)
6354
+ command.request_representation = Google::Apis::NetworksecurityV1::SecurityProfile::Representation
6355
+ command.request_object = security_profile_object
6356
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
6357
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
6358
+ command.params['parent'] = parent unless parent.nil?
6359
+ command.query['securityProfileId'] = security_profile_id unless security_profile_id.nil?
6360
+ command.query['fields'] = fields unless fields.nil?
6361
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6362
+ execute_or_queue_command(command, &block)
6363
+ end
6364
+
6365
+ # Deletes a single SecurityProfile.
6366
+ # @param [String] name
6367
+ # Required. A name of the SecurityProfile to delete. Must be in the format `
6368
+ # projects|organizations/*/locations/`location`/securityProfiles/`
6369
+ # security_profile_id``.
6370
+ # @param [String] etag
6371
+ # Optional. If client provided etag is out of date, delete will return
6372
+ # FAILED_PRECONDITION error.
6373
+ # @param [String] fields
6374
+ # Selector specifying which fields to include in a partial response.
6375
+ # @param [String] quota_user
6376
+ # Available to use for quota purposes for server-side applications. Can be any
6377
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6378
+ # @param [Google::Apis::RequestOptions] options
6379
+ # Request-specific options
6380
+ #
6381
+ # @yield [result, err] Result & error if block supplied
6382
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
6383
+ # @yieldparam err [StandardError] error object if request failed
6384
+ #
6385
+ # @return [Google::Apis::NetworksecurityV1::Operation]
6386
+ #
6387
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6388
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6389
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6390
+ def delete_project_location_security_profile(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block)
6391
+ command = make_simple_command(:delete, 'v1/{+name}', options)
6392
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
6393
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
6394
+ command.params['name'] = name unless name.nil?
6395
+ command.query['etag'] = etag unless etag.nil?
6396
+ command.query['fields'] = fields unless fields.nil?
6397
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6398
+ execute_or_queue_command(command, &block)
6399
+ end
6400
+
6401
+ # Gets details of a single SecurityProfile.
6402
+ # @param [String] name
6403
+ # Required. A name of the SecurityProfile to get. Must be in the format `
6404
+ # projects|organizations/*/locations/`location`/securityProfiles/`
6405
+ # security_profile_id``.
6406
+ # @param [String] fields
6407
+ # Selector specifying which fields to include in a partial response.
6408
+ # @param [String] quota_user
6409
+ # Available to use for quota purposes for server-side applications. Can be any
6410
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6411
+ # @param [Google::Apis::RequestOptions] options
6412
+ # Request-specific options
6413
+ #
6414
+ # @yield [result, err] Result & error if block supplied
6415
+ # @yieldparam result [Google::Apis::NetworksecurityV1::SecurityProfile] parsed result object
6416
+ # @yieldparam err [StandardError] error object if request failed
6417
+ #
6418
+ # @return [Google::Apis::NetworksecurityV1::SecurityProfile]
6419
+ #
6420
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6421
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6422
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6423
+ def get_project_location_security_profile(name, fields: nil, quota_user: nil, options: nil, &block)
6424
+ command = make_simple_command(:get, 'v1/{+name}', options)
6425
+ command.response_representation = Google::Apis::NetworksecurityV1::SecurityProfile::Representation
6426
+ command.response_class = Google::Apis::NetworksecurityV1::SecurityProfile
6427
+ command.params['name'] = name unless name.nil?
6428
+ command.query['fields'] = fields unless fields.nil?
6429
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6430
+ execute_or_queue_command(command, &block)
6431
+ end
6432
+
6433
+ # Lists SecurityProfiles in a given project and location.
6434
+ # @param [String] parent
6435
+ # Required. The project or organization and location from which the
6436
+ # SecurityProfiles should be listed, specified in the format `projects|
6437
+ # organizations/*/locations/`location``.
6438
+ # @param [Fixnum] page_size
6439
+ # Optional. Maximum number of SecurityProfiles to return per call.
6440
+ # @param [String] page_token
6441
+ # Optional. The value returned by the last `ListSecurityProfilesResponse`
6442
+ # Indicates that this is a continuation of a prior `ListSecurityProfiles` call,
6443
+ # and that the system should return the next page of data.
6444
+ # @param [String] fields
6445
+ # Selector specifying which fields to include in a partial response.
6446
+ # @param [String] quota_user
6447
+ # Available to use for quota purposes for server-side applications. Can be any
6448
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6449
+ # @param [Google::Apis::RequestOptions] options
6450
+ # Request-specific options
6451
+ #
6452
+ # @yield [result, err] Result & error if block supplied
6453
+ # @yieldparam result [Google::Apis::NetworksecurityV1::ListSecurityProfilesResponse] parsed result object
6454
+ # @yieldparam err [StandardError] error object if request failed
6455
+ #
6456
+ # @return [Google::Apis::NetworksecurityV1::ListSecurityProfilesResponse]
6457
+ #
6458
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6459
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6460
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6461
+ def list_project_location_security_profiles(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
6462
+ command = make_simple_command(:get, 'v1/{+parent}/securityProfiles', options)
6463
+ command.response_representation = Google::Apis::NetworksecurityV1::ListSecurityProfilesResponse::Representation
6464
+ command.response_class = Google::Apis::NetworksecurityV1::ListSecurityProfilesResponse
6465
+ command.params['parent'] = parent unless parent.nil?
6466
+ command.query['pageSize'] = page_size unless page_size.nil?
6467
+ command.query['pageToken'] = page_token unless page_token.nil?
6468
+ command.query['fields'] = fields unless fields.nil?
6469
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6470
+ execute_or_queue_command(command, &block)
6471
+ end
6472
+
6473
+ # Updates the parameters of a single SecurityProfile.
6474
+ # @param [String] name
6475
+ # Immutable. Identifier. Name of the SecurityProfile resource. It matches
6476
+ # pattern `projects|organizations/*/locations/`location`/securityProfiles/`
6477
+ # security_profile``.
6478
+ # @param [Google::Apis::NetworksecurityV1::SecurityProfile] security_profile_object
6479
+ # @param [String] update_mask
6480
+ # Required. Field mask is used to specify the fields to be overwritten in the
6481
+ # SecurityProfile resource by the update. The fields specified in the
6482
+ # update_mask are relative to the resource, not the full request. A field will
6483
+ # be overwritten if it is in the mask.
6484
+ # @param [String] fields
6485
+ # Selector specifying which fields to include in a partial response.
6486
+ # @param [String] quota_user
6487
+ # Available to use for quota purposes for server-side applications. Can be any
6488
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6489
+ # @param [Google::Apis::RequestOptions] options
6490
+ # Request-specific options
6491
+ #
6492
+ # @yield [result, err] Result & error if block supplied
6493
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
6494
+ # @yieldparam err [StandardError] error object if request failed
6495
+ #
6496
+ # @return [Google::Apis::NetworksecurityV1::Operation]
6497
+ #
6498
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6499
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6500
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6501
+ def patch_project_location_security_profile(name, security_profile_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
6502
+ command = make_simple_command(:patch, 'v1/{+name}', options)
6503
+ command.request_representation = Google::Apis::NetworksecurityV1::SecurityProfile::Representation
6504
+ command.request_object = security_profile_object
6505
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
6506
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
6507
+ command.params['name'] = name unless name.nil?
6508
+ command.query['updateMask'] = update_mask unless update_mask.nil?
6509
+ command.query['fields'] = fields unless fields.nil?
6510
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6511
+ execute_or_queue_command(command, &block)
6512
+ end
6513
+
5455
6514
  # Creates a new ServerTlsPolicy in a given project and location.
5456
6515
  # @param [String] parent
5457
6516
  # Required. The parent resource of the ServerTlsPolicy. Must be in the format `