google-apis-networksecurity_v1 0.50.0 → 0.52.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: 9aef5dadff7530667fa2ffaa4030381c6d207e4f56c784f04409f152b7080482
4
- data.tar.gz: 30648081221c637ee2cff2e630c18bf4e8ef679450ce4c70285d7deadbf0fab6
3
+ metadata.gz: a1f72f041a684140c183ff3c0268e39de83a158189d454669d24b90b095e15fb
4
+ data.tar.gz: 61124e5bd34b85722b4e807b58551d3f210a1f70af723489530a22c5a7630601
5
5
  SHA512:
6
- metadata.gz: 6243fcfce673e580583b74e20405ec873a07b7a316afea1cbc7203948ee49c51104fcf4778ebddb79b4d8a5e89a8b1ee622dce8e87ee8524c18731d76682b388
7
- data.tar.gz: aab56301b794c5730e34ce1f71b7cf48eb2c2bccb8b1af35a256caa7cad964970ca066b9ed6685f9f4244ce328fd1db1b2017be32f025863931ad8fb0ff20211
6
+ metadata.gz: e9d7b73f023d628e860ac9245bedb94845e0fef2365b3630a0ce8d596a99baf096dbc954eb1cc7467be152b011f0dfa28fa71660b8bdd042b3143a5d83b2ec15
7
+ data.tar.gz: d7c8b8e6aa835ae435eac1b668aaffceb30dab72a2a9530c2a57ab3f7929725aea688c134cec18fc758d5a710a05faf95395e7e405e26bd651564cbcd586dae4
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-networksecurity_v1
2
2
 
3
+ ### v0.52.0 (2026-05-03)
4
+
5
+ * Regenerated from discovery document revision 20260426
6
+
7
+ ### v0.51.0 (2026-04-19)
8
+
9
+ * Regenerated from discovery document revision 20260407
10
+
3
11
  ### v0.50.0 (2026-03-08)
4
12
 
5
13
  * Regenerated from discovery document revision 20260226
@@ -278,6 +278,13 @@ module Google
278
278
  # @return [String]
279
279
  attr_accessor :name
280
280
 
281
+ # Optional. Immutable. Defines the type of authorization being performed. If not
282
+ # specified, `REQUEST_AUTHZ` is applied. This field cannot be changed once
283
+ # AuthzPolicy is created.
284
+ # Corresponds to the JSON property `policyProfile`
285
+ # @return [String]
286
+ attr_accessor :policy_profile
287
+
281
288
  # Specifies the set of targets to which this policy should be applied to.
282
289
  # Corresponds to the JSON property `target`
283
290
  # @return [Google::Apis::NetworksecurityV1::AuthzPolicyTarget]
@@ -301,6 +308,7 @@ module Google
301
308
  @http_rules = args[:http_rules] if args.key?(:http_rules)
302
309
  @labels = args[:labels] if args.key?(:labels)
303
310
  @name = args[:name] if args.key?(:name)
311
+ @policy_profile = args[:policy_profile] if args.key?(:policy_profile)
304
312
  @target = args[:target] if args.key?(:target)
305
313
  @update_time = args[:update_time] if args.key?(:update_time)
306
314
  end
@@ -642,6 +650,12 @@ module Google
642
650
  # @return [Array<Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleStringMatch>]
643
651
  attr_accessor :hosts
644
652
 
653
+ # Describes a set of MCP protocol attributes to match against for a given MCP
654
+ # request.
655
+ # Corresponds to the JSON property `mcp`
656
+ # @return [Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleToRequestOperationMcp]
657
+ attr_accessor :mcp
658
+
645
659
  # Optional. A list of HTTP methods to match against. Each entry must be a valid
646
660
  # HTTP method name (GET, PUT, POST, HEAD, PATCH, DELETE, OPTIONS). It only
647
661
  # allows exact match and is always case sensitive. Limited to 10 methods per
@@ -668,6 +682,7 @@ module Google
668
682
  def update!(**args)
669
683
  @header_set = args[:header_set] if args.key?(:header_set)
670
684
  @hosts = args[:hosts] if args.key?(:hosts)
685
+ @mcp = args[:mcp] if args.key?(:mcp)
671
686
  @methods_prop = args[:methods_prop] if args.key?(:methods_prop)
672
687
  @paths = args[:paths] if args.key?(:paths)
673
688
  end
@@ -696,6 +711,71 @@ module Google
696
711
  end
697
712
  end
698
713
 
714
+ # Describes a set of MCP protocol attributes to match against for a given MCP
715
+ # request.
716
+ class AuthzPolicyAuthzRuleToRequestOperationMcp
717
+ include Google::Apis::Core::Hashable
718
+
719
+ # Optional. If specified, matches on the MCP protocol’s non-access specific
720
+ # methods namely: * initialize * completion/ * logging/ * notifications/ * ping
721
+ # Defaults to SKIP_BASE_PROTOCOL_METHODS if not specified.
722
+ # Corresponds to the JSON property `baseProtocolMethodsOption`
723
+ # @return [String]
724
+ attr_accessor :base_protocol_methods_option
725
+
726
+ # Optional. A list of MCP methods and associated parameters to match on. It is
727
+ # recommended to use this field to match on tools, prompts and resource accesses
728
+ # while setting the baseProtocolMethodsOption to MATCH_BASE_PROTOCOL_METHODS to
729
+ # match on all the other MCP protocol methods. Limited to 10 MCP methods per
730
+ # Authorization Policy.
731
+ # Corresponds to the JSON property `methods`
732
+ # @return [Array<Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleToRequestOperationMcpMethod>]
733
+ attr_accessor :methods_prop
734
+
735
+ def initialize(**args)
736
+ update!(**args)
737
+ end
738
+
739
+ # Update properties of this object
740
+ def update!(**args)
741
+ @base_protocol_methods_option = args[:base_protocol_methods_option] if args.key?(:base_protocol_methods_option)
742
+ @methods_prop = args[:methods_prop] if args.key?(:methods_prop)
743
+ end
744
+ end
745
+
746
+ # Describes a set of MCP methods to match against.
747
+ class AuthzPolicyAuthzRuleToRequestOperationMcpMethod
748
+ include Google::Apis::Core::Hashable
749
+
750
+ # Required. The MCP method to match against. Allowed values are as follows: 1. `
751
+ # tools`, `prompts`, `resources` - these will match against all sub methods
752
+ # under the respective methods. 2. `prompts/list`, `tools/list`, `resources/list`
753
+ # , `resources/templates/list` 3. `prompts/get`, `tools/call`, `resources/
754
+ # subscribe`, `resources/unsubscribe`, `resources/read` Params cannot be
755
+ # specified for categories 1 and 2.
756
+ # Corresponds to the JSON property `name`
757
+ # @return [String]
758
+ attr_accessor :name
759
+
760
+ # Optional. A list of MCP method parameters to match against. The match can be
761
+ # one of exact, prefix, suffix, or contains (substring match). Matches are
762
+ # always case sensitive unless the ignoreCase is set. Limited to 10 MCP method
763
+ # parameters per Authorization Policy.
764
+ # Corresponds to the JSON property `params`
765
+ # @return [Array<Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleStringMatch>]
766
+ attr_accessor :params
767
+
768
+ def initialize(**args)
769
+ update!(**args)
770
+ end
771
+
772
+ # Update properties of this object
773
+ def update!(**args)
774
+ @name = args[:name] if args.key?(:name)
775
+ @params = args[:params] if args.key?(:params)
776
+ end
777
+ end
778
+
699
779
  # Allows delegating authorization decisions to Cloud IAP or to Service
700
780
  # Extensions.
701
781
  class AuthzPolicyCustomProvider
@@ -769,17 +849,19 @@ module Google
769
849
  class AuthzPolicyTarget
770
850
  include Google::Apis::Core::Hashable
771
851
 
772
- # Required. All gateways and forwarding rules referenced by this policy and
773
- # extensions must share the same load balancing scheme. Supported values: `
774
- # INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more information, refer to [
775
- # Backend services overview](https://cloud.google.com/load-balancing/docs/
776
- # backend-service).
852
+ # Optional. All gateways and forwarding rules referenced by this policy and
853
+ # extensions must share the same load balancing scheme. Required only when
854
+ # targeting forwarding rules. If targeting Secure Web Proxy, this field must be `
855
+ # INTERNAL_MANAGED` or not specified. Must not be specified when targeting Agent
856
+ # Gateway. Supported values: `INTERNAL_MANAGED` and `EXTERNAL_MANAGED`. For more
857
+ # information, refer to [Backend services overview](https://cloud.google.com/
858
+ # load-balancing/docs/backend-service).
777
859
  # Corresponds to the JSON property `loadBalancingScheme`
778
860
  # @return [String]
779
861
  attr_accessor :load_balancing_scheme
780
862
 
781
- # Required. A list of references to the Forwarding Rules on which this policy
782
- # will be applied.
863
+ # Required. A list of references to the Forwarding Rules, Secure Web Proxy
864
+ # Gateways, or Agent Gateways on which this policy will be applied.
783
865
  # Corresponds to the JSON property `resources`
784
866
  # @return [Array<String>]
785
867
  attr_accessor :resources
@@ -1249,7 +1331,9 @@ module Google
1249
1331
  # @return [Array<Google::Apis::NetworksecurityV1::FirewallEndpointAssociationReference>]
1250
1332
  attr_accessor :associations
1251
1333
 
1252
- # Required. Project to bill on endpoint uptime usage.
1334
+ # Optional. Project to charge for the deployed firewall endpoint. This field
1335
+ # must be specified when creating the endpoint in the organization scope, and
1336
+ # should be omitted otherwise.
1253
1337
  # Corresponds to the JSON property `billingProjectId`
1254
1338
  # @return [String]
1255
1339
  attr_accessor :billing_project_id
@@ -2396,6 +2480,13 @@ module Google
2396
2480
  # @return [String]
2397
2481
  attr_accessor :network
2398
2482
 
2483
+ # Output only. Identifier used by the data-path. See the NSI GENEVE format for
2484
+ # more details: https://docs.cloud.google.com/network-security-integration/docs/
2485
+ # understand-geneve#network_id
2486
+ # Corresponds to the JSON property `networkCookie`
2487
+ # @return [Fixnum]
2488
+ attr_accessor :network_cookie
2489
+
2399
2490
  # Output only. The current state of the resource does not match the user's
2400
2491
  # intended state, and the system is working to reconcile them. This part of the
2401
2492
  # normal operation (e.g. adding a new location to the target deployment group).
@@ -2429,6 +2520,7 @@ module Google
2429
2520
  @locations_details = args[:locations_details] if args.key?(:locations_details)
2430
2521
  @name = args[:name] if args.key?(:name)
2431
2522
  @network = args[:network] if args.key?(:network)
2523
+ @network_cookie = args[:network_cookie] if args.key?(:network_cookie)
2432
2524
  @reconciling = args[:reconciling] if args.key?(:reconciling)
2433
2525
  @state = args[:state] if args.key?(:state)
2434
2526
  @update_time = args[:update_time] if args.key?(:update_time)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module NetworksecurityV1
18
18
  # Version of the google-apis-networksecurity_v1 gem
19
- GEM_VERSION = "0.50.0"
19
+ GEM_VERSION = "0.52.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20260226"
25
+ REVISION = "20260426"
26
26
  end
27
27
  end
28
28
  end
@@ -124,6 +124,18 @@ module Google
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
+ class AuthzPolicyAuthzRuleToRequestOperationMcp
128
+ class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ include Google::Apis::Core::JsonObjectSupport
131
+ end
132
+
133
+ class AuthzPolicyAuthzRuleToRequestOperationMcpMethod
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+
136
+ include Google::Apis::Core::JsonObjectSupport
137
+ end
138
+
127
139
  class AuthzPolicyCustomProvider
128
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
141
 
@@ -764,6 +776,7 @@ module Google
764
776
 
765
777
  hash :labels, as: 'labels'
766
778
  property :name, as: 'name'
779
+ property :policy_profile, as: 'policyProfile'
767
780
  property :target, as: 'target', class: Google::Apis::NetworksecurityV1::AuthzPolicyTarget, decorator: Google::Apis::NetworksecurityV1::AuthzPolicyTarget::Representation
768
781
 
769
782
  property :update_time, as: 'updateTime'
@@ -874,6 +887,8 @@ module Google
874
887
 
875
888
  collection :hosts, as: 'hosts', class: Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleStringMatch, decorator: Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleStringMatch::Representation
876
889
 
890
+ property :mcp, as: 'mcp', class: Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleToRequestOperationMcp, decorator: Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleToRequestOperationMcp::Representation
891
+
877
892
  collection :methods_prop, as: 'methods'
878
893
  collection :paths, as: 'paths', class: Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleStringMatch, decorator: Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleStringMatch::Representation
879
894
 
@@ -888,6 +903,24 @@ module Google
888
903
  end
889
904
  end
890
905
 
906
+ class AuthzPolicyAuthzRuleToRequestOperationMcp
907
+ # @private
908
+ class Representation < Google::Apis::Core::JsonRepresentation
909
+ property :base_protocol_methods_option, as: 'baseProtocolMethodsOption'
910
+ collection :methods_prop, as: 'methods', class: Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleToRequestOperationMcpMethod, decorator: Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleToRequestOperationMcpMethod::Representation
911
+
912
+ end
913
+ end
914
+
915
+ class AuthzPolicyAuthzRuleToRequestOperationMcpMethod
916
+ # @private
917
+ class Representation < Google::Apis::Core::JsonRepresentation
918
+ property :name, as: 'name'
919
+ collection :params, as: 'params', class: Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleStringMatch, decorator: Google::Apis::NetworksecurityV1::AuthzPolicyAuthzRuleStringMatch::Representation
920
+
921
+ end
922
+ end
923
+
891
924
  class AuthzPolicyCustomProvider
892
925
  # @private
893
926
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1270,6 +1303,7 @@ module Google
1270
1303
 
1271
1304
  property :name, as: 'name'
1272
1305
  property :network, as: 'network'
1306
+ property :network_cookie, as: 'networkCookie'
1273
1307
  property :reconciling, as: 'reconciling'
1274
1308
  property :state, as: 'state'
1275
1309
  property :update_time, as: 'updateTime'
@@ -1192,15 +1192,20 @@ module Google
1192
1192
  end
1193
1193
 
1194
1194
  # Lists information about the supported locations for this service. This method
1195
- # can be called in two ways: * **List all public locations:** Use the path `GET /
1196
- # v1/locations`. * **List project-visible locations:** Use the path `GET /v1/
1197
- # projects/`project_id`/locations`. This may include public locations as well as
1198
- # private or other locations specifically visible to the project.
1195
+ # lists locations based on the resource scope provided in the
1196
+ # ListLocationsRequest.name field: * **Global locations**: If `name` is empty,
1197
+ # the method lists the public locations available to all projects. * **Project-
1198
+ # specific locations**: If `name` follows the format `projects/`project``, the
1199
+ # method lists locations visible to that specific project. This includes public,
1200
+ # private, or other project-specific locations enabled for the project. For gRPC
1201
+ # and client library implementations, the resource name is passed as the `name`
1202
+ # field. For direct service calls, the resource name is incorporated into the
1203
+ # request path based on the specific service implementation and version.
1199
1204
  # @param [String] name
1200
1205
  # The resource that owns the locations collection, if applicable.
1201
1206
  # @param [Array<String>, String] extra_location_types
1202
- # Optional. Do not use this field. It is unsupported and is ignored unless
1203
- # explicitly documented otherwise. This is primarily for internal usage.
1207
+ # Optional. Do not use this field unless explicitly documented otherwise. This
1208
+ # is primarily for internal usage.
1204
1209
  # @param [String] filter
1205
1210
  # A filter to narrow down results to a preferred subset. The filtering language
1206
1211
  # accepts strings like `"displayName=tokyo"`, and is documented in more detail
@@ -3254,6 +3259,223 @@ module Google
3254
3259
  execute_or_queue_command(command, &block)
3255
3260
  end
3256
3261
 
3262
+ # Creates a new FirewallEndpoint in a given project and location.
3263
+ # @param [String] parent
3264
+ # Required. Value for parent.
3265
+ # @param [Google::Apis::NetworksecurityV1::FirewallEndpoint] firewall_endpoint_object
3266
+ # @param [String] firewall_endpoint_id
3267
+ # Required. Id of the requesting object. If auto-generating Id server-side,
3268
+ # remove this field and firewall_endpoint_id from the method_signature of Create
3269
+ # RPC.
3270
+ # @param [String] request_id
3271
+ # Optional. An optional request ID to identify requests. Specify a unique
3272
+ # request ID so that if you must retry your request, the server will know to
3273
+ # ignore the request if it has already been completed. The server will guarantee
3274
+ # that for at least 60 minutes since the first request. For example, consider a
3275
+ # situation where you make an initial request and the request times out. If you
3276
+ # make the request again with the same request ID, the server can check if
3277
+ # original operation with the same request ID was received, and if so, will
3278
+ # ignore the second request. This prevents clients from accidentally creating
3279
+ # duplicate commitments. The request ID must be a valid UUID with the exception
3280
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3281
+ # @param [String] fields
3282
+ # Selector specifying which fields to include in a partial response.
3283
+ # @param [String] quota_user
3284
+ # Available to use for quota purposes for server-side applications. Can be any
3285
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3286
+ # @param [Google::Apis::RequestOptions] options
3287
+ # Request-specific options
3288
+ #
3289
+ # @yield [result, err] Result & error if block supplied
3290
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
3291
+ # @yieldparam err [StandardError] error object if request failed
3292
+ #
3293
+ # @return [Google::Apis::NetworksecurityV1::Operation]
3294
+ #
3295
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3296
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3297
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3298
+ 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)
3299
+ command = make_simple_command(:post, 'v1/{+parent}/firewallEndpoints', options)
3300
+ command.request_representation = Google::Apis::NetworksecurityV1::FirewallEndpoint::Representation
3301
+ command.request_object = firewall_endpoint_object
3302
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
3303
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
3304
+ command.params['parent'] = parent unless parent.nil?
3305
+ command.query['firewallEndpointId'] = firewall_endpoint_id unless firewall_endpoint_id.nil?
3306
+ command.query['requestId'] = request_id unless request_id.nil?
3307
+ command.query['fields'] = fields unless fields.nil?
3308
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3309
+ execute_or_queue_command(command, &block)
3310
+ end
3311
+
3312
+ # Deletes a single project Endpoint.
3313
+ # @param [String] name
3314
+ # Required. Name of the resource
3315
+ # @param [String] request_id
3316
+ # Optional. An optional request ID to identify requests. Specify a unique
3317
+ # request ID so that if you must retry your request, the server will know to
3318
+ # ignore the request if it has already been completed. The server will guarantee
3319
+ # that for at least 60 minutes after the first request. For example, consider a
3320
+ # situation where you make an initial request and the request times out. If you
3321
+ # make the request again with the same request ID, the server can check if
3322
+ # original operation with the same request ID was received, and if so, will
3323
+ # ignore the second request. This prevents clients from accidentally creating
3324
+ # duplicate commitments. The request ID must be a valid UUID with the exception
3325
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3326
+ # @param [String] fields
3327
+ # Selector specifying which fields to include in a partial response.
3328
+ # @param [String] quota_user
3329
+ # Available to use for quota purposes for server-side applications. Can be any
3330
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3331
+ # @param [Google::Apis::RequestOptions] options
3332
+ # Request-specific options
3333
+ #
3334
+ # @yield [result, err] Result & error if block supplied
3335
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
3336
+ # @yieldparam err [StandardError] error object if request failed
3337
+ #
3338
+ # @return [Google::Apis::NetworksecurityV1::Operation]
3339
+ #
3340
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3341
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3342
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3343
+ def delete_project_location_firewall_endpoint(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
3344
+ command = make_simple_command(:delete, 'v1/{+name}', options)
3345
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
3346
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
3347
+ command.params['name'] = name unless name.nil?
3348
+ command.query['requestId'] = request_id unless request_id.nil?
3349
+ command.query['fields'] = fields unless fields.nil?
3350
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3351
+ execute_or_queue_command(command, &block)
3352
+ end
3353
+
3354
+ # Gets details of a single project Endpoint.
3355
+ # @param [String] name
3356
+ # Required. Name of the resource
3357
+ # @param [String] fields
3358
+ # Selector specifying which fields to include in a partial response.
3359
+ # @param [String] quota_user
3360
+ # Available to use for quota purposes for server-side applications. Can be any
3361
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3362
+ # @param [Google::Apis::RequestOptions] options
3363
+ # Request-specific options
3364
+ #
3365
+ # @yield [result, err] Result & error if block supplied
3366
+ # @yieldparam result [Google::Apis::NetworksecurityV1::FirewallEndpoint] parsed result object
3367
+ # @yieldparam err [StandardError] error object if request failed
3368
+ #
3369
+ # @return [Google::Apis::NetworksecurityV1::FirewallEndpoint]
3370
+ #
3371
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3372
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3373
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3374
+ def get_project_location_firewall_endpoint(name, fields: nil, quota_user: nil, options: nil, &block)
3375
+ command = make_simple_command(:get, 'v1/{+name}', options)
3376
+ command.response_representation = Google::Apis::NetworksecurityV1::FirewallEndpoint::Representation
3377
+ command.response_class = Google::Apis::NetworksecurityV1::FirewallEndpoint
3378
+ command.params['name'] = name unless name.nil?
3379
+ command.query['fields'] = fields unless fields.nil?
3380
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3381
+ execute_or_queue_command(command, &block)
3382
+ end
3383
+
3384
+ # Lists FirewallEndpoints in a given project and location.
3385
+ # @param [String] parent
3386
+ # Required. Parent value for ListEndpointsRequest
3387
+ # @param [String] filter
3388
+ # Optional. Filtering results
3389
+ # @param [String] order_by
3390
+ # Hint for how to order the results
3391
+ # @param [Fixnum] page_size
3392
+ # Optional. Requested page size. Server may return fewer items than requested.
3393
+ # If unspecified, server will pick an appropriate default.
3394
+ # @param [String] page_token
3395
+ # A token identifying a page of results the server should return.
3396
+ # @param [String] fields
3397
+ # Selector specifying which fields to include in a partial response.
3398
+ # @param [String] quota_user
3399
+ # Available to use for quota purposes for server-side applications. Can be any
3400
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3401
+ # @param [Google::Apis::RequestOptions] options
3402
+ # Request-specific options
3403
+ #
3404
+ # @yield [result, err] Result & error if block supplied
3405
+ # @yieldparam result [Google::Apis::NetworksecurityV1::ListFirewallEndpointsResponse] parsed result object
3406
+ # @yieldparam err [StandardError] error object if request failed
3407
+ #
3408
+ # @return [Google::Apis::NetworksecurityV1::ListFirewallEndpointsResponse]
3409
+ #
3410
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3411
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3412
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3413
+ 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)
3414
+ command = make_simple_command(:get, 'v1/{+parent}/firewallEndpoints', options)
3415
+ command.response_representation = Google::Apis::NetworksecurityV1::ListFirewallEndpointsResponse::Representation
3416
+ command.response_class = Google::Apis::NetworksecurityV1::ListFirewallEndpointsResponse
3417
+ command.params['parent'] = parent unless parent.nil?
3418
+ command.query['filter'] = filter unless filter.nil?
3419
+ command.query['orderBy'] = order_by unless order_by.nil?
3420
+ command.query['pageSize'] = page_size unless page_size.nil?
3421
+ command.query['pageToken'] = page_token unless page_token.nil?
3422
+ command.query['fields'] = fields unless fields.nil?
3423
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3424
+ execute_or_queue_command(command, &block)
3425
+ end
3426
+
3427
+ # Update a single project Endpoint.
3428
+ # @param [String] name
3429
+ # Immutable. Identifier. Name of resource.
3430
+ # @param [Google::Apis::NetworksecurityV1::FirewallEndpoint] firewall_endpoint_object
3431
+ # @param [String] request_id
3432
+ # Optional. An optional request ID to identify requests. Specify a unique
3433
+ # request ID so that if you must retry your request, the server will know to
3434
+ # ignore the request if it has already been completed. The server will guarantee
3435
+ # that for at least 60 minutes since the first request. For example, consider a
3436
+ # situation where you make an initial request and the request times out. If you
3437
+ # make the request again with the same request ID, the server can check if
3438
+ # original operation with the same request ID was received, and if so, will
3439
+ # ignore the second request. This prevents clients from accidentally creating
3440
+ # duplicate commitments. The request ID must be a valid UUID with the exception
3441
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3442
+ # @param [String] update_mask
3443
+ # Required. Field mask is used to specify the fields to be overwritten in the
3444
+ # Endpoint resource by the update. The fields specified in the update_mask are
3445
+ # relative to the resource, not the full request. A field will be overwritten if
3446
+ # it is in the mask. If the user does not provide a mask then all fields will be
3447
+ # overwritten.
3448
+ # @param [String] fields
3449
+ # Selector specifying which fields to include in a partial response.
3450
+ # @param [String] quota_user
3451
+ # Available to use for quota purposes for server-side applications. Can be any
3452
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3453
+ # @param [Google::Apis::RequestOptions] options
3454
+ # Request-specific options
3455
+ #
3456
+ # @yield [result, err] Result & error if block supplied
3457
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
3458
+ # @yieldparam err [StandardError] error object if request failed
3459
+ #
3460
+ # @return [Google::Apis::NetworksecurityV1::Operation]
3461
+ #
3462
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3463
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3464
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3465
+ 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)
3466
+ command = make_simple_command(:patch, 'v1/{+name}', options)
3467
+ command.request_representation = Google::Apis::NetworksecurityV1::FirewallEndpoint::Representation
3468
+ command.request_object = firewall_endpoint_object
3469
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
3470
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
3471
+ command.params['name'] = name unless name.nil?
3472
+ command.query['requestId'] = request_id unless request_id.nil?
3473
+ command.query['updateMask'] = update_mask unless update_mask.nil?
3474
+ command.query['fields'] = fields unless fields.nil?
3475
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3476
+ execute_or_queue_command(command, &block)
3477
+ end
3478
+
3257
3479
  # Creates a new GatewaySecurityPolicy in a given project and location.
3258
3480
  # @param [String] parent
3259
3481
  # Required. The parent resource of the GatewaySecurityPolicy. Must be in the
@@ -5447,6 +5669,383 @@ module Google
5447
5669
  execute_or_queue_command(command, &block)
5448
5670
  end
5449
5671
 
5672
+ # Creates a new SecurityProfileGroup in a given project and location.
5673
+ # @param [String] parent
5674
+ # Required. The parent resource of the SecurityProfileGroup. Must be in the
5675
+ # format `projects|organizations/*/locations/`location``.
5676
+ # @param [Google::Apis::NetworksecurityV1::SecurityProfileGroup] security_profile_group_object
5677
+ # @param [String] security_profile_group_id
5678
+ # Required. Short name of the SecurityProfileGroup resource to be created. This
5679
+ # value should be 1-63 characters long, containing only letters, numbers,
5680
+ # hyphens, and underscores, and should not start with a number. E.g. "
5681
+ # security_profile_group1".
5682
+ # @param [String] fields
5683
+ # Selector specifying which fields to include in a partial response.
5684
+ # @param [String] quota_user
5685
+ # Available to use for quota purposes for server-side applications. Can be any
5686
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5687
+ # @param [Google::Apis::RequestOptions] options
5688
+ # Request-specific options
5689
+ #
5690
+ # @yield [result, err] Result & error if block supplied
5691
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
5692
+ # @yieldparam err [StandardError] error object if request failed
5693
+ #
5694
+ # @return [Google::Apis::NetworksecurityV1::Operation]
5695
+ #
5696
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5697
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5698
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5699
+ 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)
5700
+ command = make_simple_command(:post, 'v1/{+parent}/securityProfileGroups', options)
5701
+ command.request_representation = Google::Apis::NetworksecurityV1::SecurityProfileGroup::Representation
5702
+ command.request_object = security_profile_group_object
5703
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
5704
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
5705
+ command.params['parent'] = parent unless parent.nil?
5706
+ command.query['securityProfileGroupId'] = security_profile_group_id unless security_profile_group_id.nil?
5707
+ command.query['fields'] = fields unless fields.nil?
5708
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5709
+ execute_or_queue_command(command, &block)
5710
+ end
5711
+
5712
+ # Deletes a single SecurityProfileGroup.
5713
+ # @param [String] name
5714
+ # Required. A name of the SecurityProfileGroup to delete. Must be in the format `
5715
+ # projects|organizations/*/locations/`location`/securityProfileGroups/`
5716
+ # security_profile_group``.
5717
+ # @param [String] etag
5718
+ # Optional. If client provided etag is out of date, delete will return
5719
+ # FAILED_PRECONDITION error.
5720
+ # @param [String] fields
5721
+ # Selector specifying which fields to include in a partial response.
5722
+ # @param [String] quota_user
5723
+ # Available to use for quota purposes for server-side applications. Can be any
5724
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5725
+ # @param [Google::Apis::RequestOptions] options
5726
+ # Request-specific options
5727
+ #
5728
+ # @yield [result, err] Result & error if block supplied
5729
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
5730
+ # @yieldparam err [StandardError] error object if request failed
5731
+ #
5732
+ # @return [Google::Apis::NetworksecurityV1::Operation]
5733
+ #
5734
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5735
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5736
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5737
+ def delete_project_location_security_profile_group(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block)
5738
+ command = make_simple_command(:delete, 'v1/{+name}', options)
5739
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
5740
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
5741
+ command.params['name'] = name unless name.nil?
5742
+ command.query['etag'] = etag unless etag.nil?
5743
+ command.query['fields'] = fields unless fields.nil?
5744
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5745
+ execute_or_queue_command(command, &block)
5746
+ end
5747
+
5748
+ # Gets details of a single SecurityProfileGroup.
5749
+ # @param [String] name
5750
+ # Required. A name of the SecurityProfileGroup to get. Must be in the format `
5751
+ # projects|organizations/*/locations/`location`/securityProfileGroups/`
5752
+ # security_profile_group``.
5753
+ # @param [String] fields
5754
+ # Selector specifying which fields to include in a partial response.
5755
+ # @param [String] quota_user
5756
+ # Available to use for quota purposes for server-side applications. Can be any
5757
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5758
+ # @param [Google::Apis::RequestOptions] options
5759
+ # Request-specific options
5760
+ #
5761
+ # @yield [result, err] Result & error if block supplied
5762
+ # @yieldparam result [Google::Apis::NetworksecurityV1::SecurityProfileGroup] parsed result object
5763
+ # @yieldparam err [StandardError] error object if request failed
5764
+ #
5765
+ # @return [Google::Apis::NetworksecurityV1::SecurityProfileGroup]
5766
+ #
5767
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5768
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5769
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5770
+ def get_project_location_security_profile_group(name, fields: nil, quota_user: nil, options: nil, &block)
5771
+ command = make_simple_command(:get, 'v1/{+name}', options)
5772
+ command.response_representation = Google::Apis::NetworksecurityV1::SecurityProfileGroup::Representation
5773
+ command.response_class = Google::Apis::NetworksecurityV1::SecurityProfileGroup
5774
+ command.params['name'] = name unless name.nil?
5775
+ command.query['fields'] = fields unless fields.nil?
5776
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5777
+ execute_or_queue_command(command, &block)
5778
+ end
5779
+
5780
+ # Lists SecurityProfileGroups in a given project and location.
5781
+ # @param [String] parent
5782
+ # Required. The project or organization and location from which the
5783
+ # SecurityProfileGroups should be listed, specified in the format `projects|
5784
+ # organizations/*/locations/`location``.
5785
+ # @param [Fixnum] page_size
5786
+ # Optional. Maximum number of SecurityProfileGroups to return per call.
5787
+ # @param [String] page_token
5788
+ # Optional. The value returned by the last `ListSecurityProfileGroupsResponse`
5789
+ # Indicates that this is a continuation of a prior `ListSecurityProfileGroups`
5790
+ # call, and that the system should return the next page of data.
5791
+ # @param [String] fields
5792
+ # Selector specifying which fields to include in a partial response.
5793
+ # @param [String] quota_user
5794
+ # Available to use for quota purposes for server-side applications. Can be any
5795
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5796
+ # @param [Google::Apis::RequestOptions] options
5797
+ # Request-specific options
5798
+ #
5799
+ # @yield [result, err] Result & error if block supplied
5800
+ # @yieldparam result [Google::Apis::NetworksecurityV1::ListSecurityProfileGroupsResponse] parsed result object
5801
+ # @yieldparam err [StandardError] error object if request failed
5802
+ #
5803
+ # @return [Google::Apis::NetworksecurityV1::ListSecurityProfileGroupsResponse]
5804
+ #
5805
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5806
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5807
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5808
+ def list_project_location_security_profile_groups(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
5809
+ command = make_simple_command(:get, 'v1/{+parent}/securityProfileGroups', options)
5810
+ command.response_representation = Google::Apis::NetworksecurityV1::ListSecurityProfileGroupsResponse::Representation
5811
+ command.response_class = Google::Apis::NetworksecurityV1::ListSecurityProfileGroupsResponse
5812
+ command.params['parent'] = parent unless parent.nil?
5813
+ command.query['pageSize'] = page_size unless page_size.nil?
5814
+ command.query['pageToken'] = page_token unless page_token.nil?
5815
+ command.query['fields'] = fields unless fields.nil?
5816
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5817
+ execute_or_queue_command(command, &block)
5818
+ end
5819
+
5820
+ # Updates the parameters of a single SecurityProfileGroup.
5821
+ # @param [String] name
5822
+ # Immutable. Identifier. Name of the SecurityProfileGroup resource. It matches
5823
+ # pattern `projects|organizations/*/locations/`location`/securityProfileGroups/`
5824
+ # security_profile_group``.
5825
+ # @param [Google::Apis::NetworksecurityV1::SecurityProfileGroup] security_profile_group_object
5826
+ # @param [String] update_mask
5827
+ # Required. Field mask is used to specify the fields to be overwritten in the
5828
+ # SecurityProfileGroup resource by the update. The fields specified in the
5829
+ # update_mask are relative to the resource, not the full request. A field will
5830
+ # be overwritten if it is in the mask.
5831
+ # @param [String] fields
5832
+ # Selector specifying which fields to include in a partial response.
5833
+ # @param [String] quota_user
5834
+ # Available to use for quota purposes for server-side applications. Can be any
5835
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5836
+ # @param [Google::Apis::RequestOptions] options
5837
+ # Request-specific options
5838
+ #
5839
+ # @yield [result, err] Result & error if block supplied
5840
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
5841
+ # @yieldparam err [StandardError] error object if request failed
5842
+ #
5843
+ # @return [Google::Apis::NetworksecurityV1::Operation]
5844
+ #
5845
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5846
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5847
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5848
+ def patch_project_location_security_profile_group(name, security_profile_group_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
5849
+ command = make_simple_command(:patch, 'v1/{+name}', options)
5850
+ command.request_representation = Google::Apis::NetworksecurityV1::SecurityProfileGroup::Representation
5851
+ command.request_object = security_profile_group_object
5852
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
5853
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
5854
+ command.params['name'] = name unless name.nil?
5855
+ command.query['updateMask'] = update_mask unless update_mask.nil?
5856
+ command.query['fields'] = fields unless fields.nil?
5857
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5858
+ execute_or_queue_command(command, &block)
5859
+ end
5860
+
5861
+ # Creates a new SecurityProfile in a given project and location.
5862
+ # @param [String] parent
5863
+ # Required. The parent resource of the SecurityProfile. Must be in the format `
5864
+ # projects|organizations/*/locations/`location``.
5865
+ # @param [Google::Apis::NetworksecurityV1::SecurityProfile] security_profile_object
5866
+ # @param [String] security_profile_id
5867
+ # Required. Short name of the SecurityProfile resource to be created. This value
5868
+ # should be 1-63 characters long, containing only letters, numbers, hyphens, and
5869
+ # underscores, and should not start with a number. E.g. "security_profile1".
5870
+ # @param [String] fields
5871
+ # Selector specifying which fields to include in a partial response.
5872
+ # @param [String] quota_user
5873
+ # Available to use for quota purposes for server-side applications. Can be any
5874
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5875
+ # @param [Google::Apis::RequestOptions] options
5876
+ # Request-specific options
5877
+ #
5878
+ # @yield [result, err] Result & error if block supplied
5879
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
5880
+ # @yieldparam err [StandardError] error object if request failed
5881
+ #
5882
+ # @return [Google::Apis::NetworksecurityV1::Operation]
5883
+ #
5884
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5885
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5886
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5887
+ def create_project_location_security_profile(parent, security_profile_object = nil, security_profile_id: nil, fields: nil, quota_user: nil, options: nil, &block)
5888
+ command = make_simple_command(:post, 'v1/{+parent}/securityProfiles', options)
5889
+ command.request_representation = Google::Apis::NetworksecurityV1::SecurityProfile::Representation
5890
+ command.request_object = security_profile_object
5891
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
5892
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
5893
+ command.params['parent'] = parent unless parent.nil?
5894
+ command.query['securityProfileId'] = security_profile_id unless security_profile_id.nil?
5895
+ command.query['fields'] = fields unless fields.nil?
5896
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5897
+ execute_or_queue_command(command, &block)
5898
+ end
5899
+
5900
+ # Deletes a single SecurityProfile.
5901
+ # @param [String] name
5902
+ # Required. A name of the SecurityProfile to delete. Must be in the format `
5903
+ # projects|organizations/*/locations/`location`/securityProfiles/`
5904
+ # security_profile_id``.
5905
+ # @param [String] etag
5906
+ # Optional. If client provided etag is out of date, delete will return
5907
+ # FAILED_PRECONDITION error.
5908
+ # @param [String] fields
5909
+ # Selector specifying which fields to include in a partial response.
5910
+ # @param [String] quota_user
5911
+ # Available to use for quota purposes for server-side applications. Can be any
5912
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5913
+ # @param [Google::Apis::RequestOptions] options
5914
+ # Request-specific options
5915
+ #
5916
+ # @yield [result, err] Result & error if block supplied
5917
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
5918
+ # @yieldparam err [StandardError] error object if request failed
5919
+ #
5920
+ # @return [Google::Apis::NetworksecurityV1::Operation]
5921
+ #
5922
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5923
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5924
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5925
+ def delete_project_location_security_profile(name, etag: nil, fields: nil, quota_user: nil, options: nil, &block)
5926
+ command = make_simple_command(:delete, 'v1/{+name}', options)
5927
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
5928
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
5929
+ command.params['name'] = name unless name.nil?
5930
+ command.query['etag'] = etag unless etag.nil?
5931
+ command.query['fields'] = fields unless fields.nil?
5932
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5933
+ execute_or_queue_command(command, &block)
5934
+ end
5935
+
5936
+ # Gets details of a single SecurityProfile.
5937
+ # @param [String] name
5938
+ # Required. A name of the SecurityProfile to get. Must be in the format `
5939
+ # projects|organizations/*/locations/`location`/securityProfiles/`
5940
+ # security_profile_id``.
5941
+ # @param [String] fields
5942
+ # Selector specifying which fields to include in a partial response.
5943
+ # @param [String] quota_user
5944
+ # Available to use for quota purposes for server-side applications. Can be any
5945
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5946
+ # @param [Google::Apis::RequestOptions] options
5947
+ # Request-specific options
5948
+ #
5949
+ # @yield [result, err] Result & error if block supplied
5950
+ # @yieldparam result [Google::Apis::NetworksecurityV1::SecurityProfile] parsed result object
5951
+ # @yieldparam err [StandardError] error object if request failed
5952
+ #
5953
+ # @return [Google::Apis::NetworksecurityV1::SecurityProfile]
5954
+ #
5955
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5956
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5957
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5958
+ def get_project_location_security_profile(name, fields: nil, quota_user: nil, options: nil, &block)
5959
+ command = make_simple_command(:get, 'v1/{+name}', options)
5960
+ command.response_representation = Google::Apis::NetworksecurityV1::SecurityProfile::Representation
5961
+ command.response_class = Google::Apis::NetworksecurityV1::SecurityProfile
5962
+ command.params['name'] = name unless name.nil?
5963
+ command.query['fields'] = fields unless fields.nil?
5964
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5965
+ execute_or_queue_command(command, &block)
5966
+ end
5967
+
5968
+ # Lists SecurityProfiles in a given project and location.
5969
+ # @param [String] parent
5970
+ # Required. The project or organization and location from which the
5971
+ # SecurityProfiles should be listed, specified in the format `projects|
5972
+ # organizations/*/locations/`location``.
5973
+ # @param [Fixnum] page_size
5974
+ # Optional. Maximum number of SecurityProfiles to return per call.
5975
+ # @param [String] page_token
5976
+ # Optional. The value returned by the last `ListSecurityProfilesResponse`
5977
+ # Indicates that this is a continuation of a prior `ListSecurityProfiles` call,
5978
+ # and that the system should return the next page of data.
5979
+ # @param [String] fields
5980
+ # Selector specifying which fields to include in a partial response.
5981
+ # @param [String] quota_user
5982
+ # Available to use for quota purposes for server-side applications. Can be any
5983
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5984
+ # @param [Google::Apis::RequestOptions] options
5985
+ # Request-specific options
5986
+ #
5987
+ # @yield [result, err] Result & error if block supplied
5988
+ # @yieldparam result [Google::Apis::NetworksecurityV1::ListSecurityProfilesResponse] parsed result object
5989
+ # @yieldparam err [StandardError] error object if request failed
5990
+ #
5991
+ # @return [Google::Apis::NetworksecurityV1::ListSecurityProfilesResponse]
5992
+ #
5993
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5994
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5995
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5996
+ def list_project_location_security_profiles(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
5997
+ command = make_simple_command(:get, 'v1/{+parent}/securityProfiles', options)
5998
+ command.response_representation = Google::Apis::NetworksecurityV1::ListSecurityProfilesResponse::Representation
5999
+ command.response_class = Google::Apis::NetworksecurityV1::ListSecurityProfilesResponse
6000
+ command.params['parent'] = parent unless parent.nil?
6001
+ command.query['pageSize'] = page_size unless page_size.nil?
6002
+ command.query['pageToken'] = page_token unless page_token.nil?
6003
+ command.query['fields'] = fields unless fields.nil?
6004
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6005
+ execute_or_queue_command(command, &block)
6006
+ end
6007
+
6008
+ # Updates the parameters of a single SecurityProfile.
6009
+ # @param [String] name
6010
+ # Immutable. Identifier. Name of the SecurityProfile resource. It matches
6011
+ # pattern `projects|organizations/*/locations/`location`/securityProfiles/`
6012
+ # security_profile``.
6013
+ # @param [Google::Apis::NetworksecurityV1::SecurityProfile] security_profile_object
6014
+ # @param [String] update_mask
6015
+ # Required. Field mask is used to specify the fields to be overwritten in the
6016
+ # SecurityProfile resource by the update. The fields specified in the
6017
+ # update_mask are relative to the resource, not the full request. A field will
6018
+ # be overwritten if it is in the mask.
6019
+ # @param [String] fields
6020
+ # Selector specifying which fields to include in a partial response.
6021
+ # @param [String] quota_user
6022
+ # Available to use for quota purposes for server-side applications. Can be any
6023
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6024
+ # @param [Google::Apis::RequestOptions] options
6025
+ # Request-specific options
6026
+ #
6027
+ # @yield [result, err] Result & error if block supplied
6028
+ # @yieldparam result [Google::Apis::NetworksecurityV1::Operation] parsed result object
6029
+ # @yieldparam err [StandardError] error object if request failed
6030
+ #
6031
+ # @return [Google::Apis::NetworksecurityV1::Operation]
6032
+ #
6033
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6034
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6035
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6036
+ def patch_project_location_security_profile(name, security_profile_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
6037
+ command = make_simple_command(:patch, 'v1/{+name}', options)
6038
+ command.request_representation = Google::Apis::NetworksecurityV1::SecurityProfile::Representation
6039
+ command.request_object = security_profile_object
6040
+ command.response_representation = Google::Apis::NetworksecurityV1::Operation::Representation
6041
+ command.response_class = Google::Apis::NetworksecurityV1::Operation
6042
+ command.params['name'] = name unless name.nil?
6043
+ command.query['updateMask'] = update_mask unless update_mask.nil?
6044
+ command.query['fields'] = fields unless fields.nil?
6045
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6046
+ execute_or_queue_command(command, &block)
6047
+ end
6048
+
5450
6049
  # Creates a new ServerTlsPolicy in a given project and location.
5451
6050
  # @param [String] parent
5452
6051
  # Required. The parent resource of the ServerTlsPolicy. Must be in the format `
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-networksecurity_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.50.0
4
+ version: 0.52.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networksecurity_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-networksecurity_v1/v0.50.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-networksecurity_v1/v0.52.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networksecurity_v1
62
62
  rdoc_options: []
63
63
  require_paths: