google-apis-networksecurity_v1beta1 0.63.0 → 0.65.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/networksecurity_v1beta1/classes.rb +25 -4
- data/lib/google/apis/networksecurity_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/networksecurity_v1beta1/representations.rb +4 -0
- data/lib/google/apis/networksecurity_v1beta1/service.rb +785 -66
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b54862202765195d19ac3a07011dc53550e08a6907747e2a13cfbad09b94c2b5
|
|
4
|
+
data.tar.gz: 6a2b0d3f0e3e7310f50df551f2d2b2adefc85717dc6e32d58297a22f9a460ade
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 40ba21f45e7526db8df6a0c85bdf68663ae9524b9530c3e37b36f02f9027b170d0c2f304f6132fa70250718bf8d09cb8542a78c1a5483a3593cd2869b0fd4f01
|
|
7
|
+
data.tar.gz: 7de9d3960c05c503fa625e5f37d83ece6d1802bcb1bbe5bebcacab6e6bf9183f3f72427460b014039a1a47bfee87d533cb124ee2581353945265532816d58d77
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Release history for google-apis-networksecurity_v1beta1
|
|
2
2
|
|
|
3
|
+
### v0.65.0 (2026-05-24)
|
|
4
|
+
|
|
5
|
+
* Regenerated from discovery document revision 20260518
|
|
6
|
+
|
|
7
|
+
### v0.64.0 (2026-05-03)
|
|
8
|
+
|
|
9
|
+
* Regenerated from discovery document revision 20260426
|
|
10
|
+
|
|
3
11
|
### v0.63.0 (2026-04-19)
|
|
4
12
|
|
|
5
13
|
* Regenerated from discovery document revision 20260407
|
|
@@ -278,6 +278,15 @@ module Google
|
|
|
278
278
|
# @return [String]
|
|
279
279
|
attr_accessor :name
|
|
280
280
|
|
|
281
|
+
# Optional. A list of authorization network rules to match against the incoming
|
|
282
|
+
# request. A policy match occurs when at least one network rule matches the
|
|
283
|
+
# request. At least one network rule is required for Allow or Deny Action if no
|
|
284
|
+
# HTTP rules are provided. Network rules are mutually exclusive with HTTP rules.
|
|
285
|
+
# Limited to 5 rules.
|
|
286
|
+
# Corresponds to the JSON property `networkRules`
|
|
287
|
+
# @return [Array<Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRule>]
|
|
288
|
+
attr_accessor :network_rules
|
|
289
|
+
|
|
281
290
|
# Optional. Immutable. Defines the type of authorization being performed. If not
|
|
282
291
|
# specified, `REQUEST_AUTHZ` is applied. This field cannot be changed once
|
|
283
292
|
# AuthzPolicy is created.
|
|
@@ -308,6 +317,7 @@ module Google
|
|
|
308
317
|
@http_rules = args[:http_rules] if args.key?(:http_rules)
|
|
309
318
|
@labels = args[:labels] if args.key?(:labels)
|
|
310
319
|
@name = args[:name] if args.key?(:name)
|
|
320
|
+
@network_rules = args[:network_rules] if args.key?(:network_rules)
|
|
311
321
|
@policy_profile = args[:policy_profile] if args.key?(:policy_profile)
|
|
312
322
|
@target = args[:target] if args.key?(:target)
|
|
313
323
|
@update_time = args[:update_time] if args.key?(:update_time)
|
|
@@ -674,6 +684,15 @@ module Google
|
|
|
674
684
|
# @return [Array<Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleStringMatch>]
|
|
675
685
|
attr_accessor :paths
|
|
676
686
|
|
|
687
|
+
# Optional. A list of SNIs to match against. The match can be one of exact,
|
|
688
|
+
# prefix, suffix, or contains (substring match). If there is no SNI (i.e.
|
|
689
|
+
# plaintext HTTP traffic), the request will be denied. Matches are always case
|
|
690
|
+
# sensitive unless the ignoreCase is set. Limited to 10 SNIs per Authorization
|
|
691
|
+
# Policy.
|
|
692
|
+
# Corresponds to the JSON property `snis`
|
|
693
|
+
# @return [Array<Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleStringMatch>]
|
|
694
|
+
attr_accessor :snis
|
|
695
|
+
|
|
677
696
|
def initialize(**args)
|
|
678
697
|
update!(**args)
|
|
679
698
|
end
|
|
@@ -685,6 +704,7 @@ module Google
|
|
|
685
704
|
@mcp = args[:mcp] if args.key?(:mcp)
|
|
686
705
|
@methods_prop = args[:methods_prop] if args.key?(:methods_prop)
|
|
687
706
|
@paths = args[:paths] if args.key?(:paths)
|
|
707
|
+
@snis = args[:snis] if args.key?(:snis)
|
|
688
708
|
end
|
|
689
709
|
end
|
|
690
710
|
|
|
@@ -1316,10 +1336,11 @@ module Google
|
|
|
1316
1336
|
class FirewallEndpoint
|
|
1317
1337
|
include Google::Apis::Core::Hashable
|
|
1318
1338
|
|
|
1319
|
-
# Output only. List of networks that are associated with this
|
|
1320
|
-
# local zone. This is a projection of the
|
|
1321
|
-
# at this endpoint. A network will only
|
|
1322
|
-
# routing is fully configured. Format:
|
|
1339
|
+
# Output only. Deprecated: List of networks that are associated with this
|
|
1340
|
+
# endpoint in the local zone. This is a projection of the
|
|
1341
|
+
# FirewallEndpointAssociations pointing at this endpoint. A network will only
|
|
1342
|
+
# appear in this list after traffic routing is fully configured. Format:
|
|
1343
|
+
# projects/`project`/global/networks/`name`.
|
|
1323
1344
|
# Corresponds to the JSON property `associatedNetworks`
|
|
1324
1345
|
# @return [Array<String>]
|
|
1325
1346
|
attr_accessor :associated_networks
|
|
@@ -16,13 +16,13 @@ module Google
|
|
|
16
16
|
module Apis
|
|
17
17
|
module NetworksecurityV1beta1
|
|
18
18
|
# Version of the google-apis-networksecurity_v1beta1 gem
|
|
19
|
-
GEM_VERSION = "0.
|
|
19
|
+
GEM_VERSION = "0.65.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 = "
|
|
25
|
+
REVISION = "20260518"
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
28
|
end
|
|
@@ -818,6 +818,8 @@ module Google
|
|
|
818
818
|
|
|
819
819
|
hash :labels, as: 'labels'
|
|
820
820
|
property :name, as: 'name'
|
|
821
|
+
collection :network_rules, as: 'networkRules', class: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRule, decorator: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRule::Representation
|
|
822
|
+
|
|
821
823
|
property :policy_profile, as: 'policyProfile'
|
|
822
824
|
property :target, as: 'target', class: Google::Apis::NetworksecurityV1beta1::AuthzPolicyTarget, decorator: Google::Apis::NetworksecurityV1beta1::AuthzPolicyTarget::Representation
|
|
823
825
|
|
|
@@ -934,6 +936,8 @@ module Google
|
|
|
934
936
|
collection :methods_prop, as: 'methods'
|
|
935
937
|
collection :paths, as: 'paths', class: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleStringMatch, decorator: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleStringMatch::Representation
|
|
936
938
|
|
|
939
|
+
collection :snis, as: 'snis', class: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleStringMatch, decorator: Google::Apis::NetworksecurityV1beta1::AuthzPolicyAuthzRuleStringMatch::Representation
|
|
940
|
+
|
|
937
941
|
end
|
|
938
942
|
end
|
|
939
943
|
|
|
@@ -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::NetworksecurityV1beta1::Location] parsed result object
|
|
67
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
68
|
+
#
|
|
69
|
+
# @return [Google::Apis::NetworksecurityV1beta1::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, 'v1beta1/{+name}', options)
|
|
76
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Location::Representation
|
|
77
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::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::NetworksecurityV1beta1::ListLocationsResponse] parsed result object
|
|
119
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
120
|
+
#
|
|
121
|
+
# @return [Google::Apis::NetworksecurityV1beta1::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, 'v1beta1/{+name}/locations', options)
|
|
128
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::ListLocationsResponse::Representation
|
|
129
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::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::NetworksecurityV1beta1::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::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse] parsed result object
|
|
523
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
524
|
+
#
|
|
525
|
+
# @return [Google::Apis::NetworksecurityV1beta1::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, 'v1beta1/{+resource}:testIamPermissions', options)
|
|
532
|
+
command.request_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsRequest::Representation
|
|
533
|
+
command.request_object = google_iam_v1_test_iam_permissions_request_object
|
|
534
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::GoogleIamV1TestIamPermissionsResponse::Representation
|
|
535
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::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
|
|
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
|
|
1208
|
-
#
|
|
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
|
|
3387
|
+
# Creates a new FirewallEndpoint in a given project and location.
|
|
3263
3388
|
# @param [String] parent
|
|
3264
|
-
# Required.
|
|
3265
|
-
#
|
|
3266
|
-
# @param [
|
|
3267
|
-
#
|
|
3268
|
-
#
|
|
3269
|
-
#
|
|
3270
|
-
#
|
|
3271
|
-
#
|
|
3389
|
+
# Required. Value for parent.
|
|
3390
|
+
# @param [Google::Apis::NetworksecurityV1beta1::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
|
|
3290
|
-
command = make_simple_command(:post, 'v1beta1/{+parent}/
|
|
3291
|
-
command.request_representation = Google::Apis::NetworksecurityV1beta1::
|
|
3292
|
-
command.request_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, 'v1beta1/{+parent}/firewallEndpoints', options)
|
|
3425
|
+
command.request_representation = Google::Apis::NetworksecurityV1beta1::FirewallEndpoint::Representation
|
|
3426
|
+
command.request_object = firewall_endpoint_object
|
|
3293
3427
|
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
|
3294
3428
|
command.response_class = Google::Apis::NetworksecurityV1beta1::Operation
|
|
3295
3429
|
command.params['parent'] = parent unless parent.nil?
|
|
3296
|
-
command.query['
|
|
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
|
|
3437
|
+
# Deletes a single project Endpoint.
|
|
3303
3438
|
# @param [String] name
|
|
3304
|
-
# Required.
|
|
3305
|
-
#
|
|
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
|
|
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, 'v1beta1/{+name}', options)
|
|
3325
3470
|
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
|
3326
3471
|
command.response_class = Google::Apis::NetworksecurityV1beta1::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
|
|
3479
|
+
# Gets details of a single project Endpoint.
|
|
3334
3480
|
# @param [String] name
|
|
3335
|
-
# Required.
|
|
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::NetworksecurityV1beta1::
|
|
3491
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::FirewallEndpoint] parsed result object
|
|
3347
3492
|
# @yieldparam err [StandardError] error object if request failed
|
|
3348
3493
|
#
|
|
3349
|
-
# @return [Google::Apis::NetworksecurityV1beta1::
|
|
3494
|
+
# @return [Google::Apis::NetworksecurityV1beta1::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
|
|
3499
|
+
def get_project_location_firewall_endpoint(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
3355
3500
|
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
|
3356
|
-
command.response_representation = Google::Apis::NetworksecurityV1beta1::
|
|
3357
|
-
command.response_class = Google::Apis::NetworksecurityV1beta1::
|
|
3501
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::FirewallEndpoint::Representation
|
|
3502
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::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
|
|
3509
|
+
# Lists FirewallEndpoints in a given project and location.
|
|
3365
3510
|
# @param [String] parent
|
|
3366
|
-
# Required.
|
|
3367
|
-
#
|
|
3368
|
-
#
|
|
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
|
-
#
|
|
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
|
-
#
|
|
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::NetworksecurityV1beta1::
|
|
3530
|
+
# @yieldparam result [Google::Apis::NetworksecurityV1beta1::ListFirewallEndpointsResponse] parsed result object
|
|
3385
3531
|
# @yieldparam err [StandardError] error object if request failed
|
|
3386
3532
|
#
|
|
3387
|
-
# @return [Google::Apis::NetworksecurityV1beta1::
|
|
3533
|
+
# @return [Google::Apis::NetworksecurityV1beta1::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
|
|
3393
|
-
command = make_simple_command(:get, 'v1beta1/{+parent}/
|
|
3394
|
-
command.response_representation = Google::Apis::NetworksecurityV1beta1::
|
|
3395
|
-
command.response_class = Google::Apis::NetworksecurityV1beta1::
|
|
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, 'v1beta1/{+parent}/firewallEndpoints', options)
|
|
3540
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::ListFirewallEndpointsResponse::Representation
|
|
3541
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::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
|
-
#
|
|
3552
|
+
# Update a single project Endpoint.
|
|
3405
3553
|
# @param [String] name
|
|
3406
|
-
#
|
|
3407
|
-
#
|
|
3408
|
-
#
|
|
3409
|
-
#
|
|
3410
|
-
#
|
|
3554
|
+
# Immutable. Identifier. Name of resource.
|
|
3555
|
+
# @param [Google::Apis::NetworksecurityV1beta1::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
|
-
#
|
|
3413
|
-
#
|
|
3414
|
-
#
|
|
3415
|
-
#
|
|
3416
|
-
#
|
|
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
|
|
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, 'v1beta1/{+name}', options)
|
|
3436
|
-
command.request_representation = Google::Apis::NetworksecurityV1beta1::
|
|
3437
|
-
command.request_object =
|
|
3592
|
+
command.request_representation = Google::Apis::NetworksecurityV1beta1::FirewallEndpoint::Representation
|
|
3593
|
+
command.request_object = firewall_endpoint_object
|
|
3438
3594
|
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
|
3439
3595
|
command.response_class = Google::Apis::NetworksecurityV1beta1::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
|
|
3450
|
-
# project`/
|
|
3451
|
-
# @param [Google::Apis::NetworksecurityV1beta1::
|
|
3452
|
-
# @param [String]
|
|
3453
|
-
#
|
|
3454
|
-
#
|
|
3455
|
-
#
|
|
3456
|
-
#
|
|
3606
|
+
# Required. The parent resource of the GatewaySecurityPolicy. Must be in the
|
|
3607
|
+
# format `projects/`project`/locations/`location``.
|
|
3608
|
+
# @param [Google::Apis::NetworksecurityV1beta1::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::NetworksecurityV1beta1::Operation] parsed result object
|
|
3624
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3625
|
+
#
|
|
3626
|
+
# @return [Google::Apis::NetworksecurityV1beta1::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, 'v1beta1/{+parent}/gatewaySecurityPolicies', options)
|
|
3633
|
+
command.request_representation = Google::Apis::NetworksecurityV1beta1::GatewaySecurityPolicy::Representation
|
|
3634
|
+
command.request_object = gateway_security_policy_object
|
|
3635
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
|
3636
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::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::NetworksecurityV1beta1::Operation] parsed result object
|
|
3658
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3659
|
+
#
|
|
3660
|
+
# @return [Google::Apis::NetworksecurityV1beta1::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, 'v1beta1/{+name}', options)
|
|
3667
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
|
3668
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::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::NetworksecurityV1beta1::GatewaySecurityPolicy] parsed result object
|
|
3689
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3690
|
+
#
|
|
3691
|
+
# @return [Google::Apis::NetworksecurityV1beta1::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, 'v1beta1/{+name}', options)
|
|
3698
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::GatewaySecurityPolicy::Representation
|
|
3699
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::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::NetworksecurityV1beta1::ListGatewaySecurityPoliciesResponse] parsed result object
|
|
3727
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3728
|
+
#
|
|
3729
|
+
# @return [Google::Apis::NetworksecurityV1beta1::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, 'v1beta1/{+parent}/gatewaySecurityPolicies', options)
|
|
3736
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::ListGatewaySecurityPoliciesResponse::Representation
|
|
3737
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::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::NetworksecurityV1beta1::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::NetworksecurityV1beta1::Operation] parsed result object
|
|
3769
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
3770
|
+
#
|
|
3771
|
+
# @return [Google::Apis::NetworksecurityV1beta1::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, 'v1beta1/{+name}', options)
|
|
3778
|
+
command.request_representation = Google::Apis::NetworksecurityV1beta1::GatewaySecurityPolicy::Representation
|
|
3779
|
+
command.request_object = gateway_security_policy_object
|
|
3780
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
|
3781
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::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::NetworksecurityV1beta1::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
|
|
@@ -5792,6 +6134,383 @@ module Google
|
|
|
5792
6134
|
execute_or_queue_command(command, &block)
|
|
5793
6135
|
end
|
|
5794
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::NetworksecurityV1beta1::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::NetworksecurityV1beta1::Operation] parsed result object
|
|
6157
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
6158
|
+
#
|
|
6159
|
+
# @return [Google::Apis::NetworksecurityV1beta1::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, 'v1beta1/{+parent}/securityProfileGroups', options)
|
|
6166
|
+
command.request_representation = Google::Apis::NetworksecurityV1beta1::SecurityProfileGroup::Representation
|
|
6167
|
+
command.request_object = security_profile_group_object
|
|
6168
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
|
6169
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::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::NetworksecurityV1beta1::Operation] parsed result object
|
|
6195
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
6196
|
+
#
|
|
6197
|
+
# @return [Google::Apis::NetworksecurityV1beta1::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, 'v1beta1/{+name}', options)
|
|
6204
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
|
6205
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::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::NetworksecurityV1beta1::SecurityProfileGroup] parsed result object
|
|
6228
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
6229
|
+
#
|
|
6230
|
+
# @return [Google::Apis::NetworksecurityV1beta1::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, 'v1beta1/{+name}', options)
|
|
6237
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::SecurityProfileGroup::Representation
|
|
6238
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::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::NetworksecurityV1beta1::ListSecurityProfileGroupsResponse] parsed result object
|
|
6266
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
6267
|
+
#
|
|
6268
|
+
# @return [Google::Apis::NetworksecurityV1beta1::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, 'v1beta1/{+parent}/securityProfileGroups', options)
|
|
6275
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::ListSecurityProfileGroupsResponse::Representation
|
|
6276
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::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::NetworksecurityV1beta1::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::NetworksecurityV1beta1::Operation] parsed result object
|
|
6306
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
6307
|
+
#
|
|
6308
|
+
# @return [Google::Apis::NetworksecurityV1beta1::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, 'v1beta1/{+name}', options)
|
|
6315
|
+
command.request_representation = Google::Apis::NetworksecurityV1beta1::SecurityProfileGroup::Representation
|
|
6316
|
+
command.request_object = security_profile_group_object
|
|
6317
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
|
6318
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::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::NetworksecurityV1beta1::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::NetworksecurityV1beta1::Operation] parsed result object
|
|
6345
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
6346
|
+
#
|
|
6347
|
+
# @return [Google::Apis::NetworksecurityV1beta1::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, 'v1beta1/{+parent}/securityProfiles', options)
|
|
6354
|
+
command.request_representation = Google::Apis::NetworksecurityV1beta1::SecurityProfile::Representation
|
|
6355
|
+
command.request_object = security_profile_object
|
|
6356
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
|
6357
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::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::NetworksecurityV1beta1::Operation] parsed result object
|
|
6383
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
6384
|
+
#
|
|
6385
|
+
# @return [Google::Apis::NetworksecurityV1beta1::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, 'v1beta1/{+name}', options)
|
|
6392
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
|
6393
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::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::NetworksecurityV1beta1::SecurityProfile] parsed result object
|
|
6416
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
6417
|
+
#
|
|
6418
|
+
# @return [Google::Apis::NetworksecurityV1beta1::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, 'v1beta1/{+name}', options)
|
|
6425
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::SecurityProfile::Representation
|
|
6426
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::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::NetworksecurityV1beta1::ListSecurityProfilesResponse] parsed result object
|
|
6454
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
6455
|
+
#
|
|
6456
|
+
# @return [Google::Apis::NetworksecurityV1beta1::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, 'v1beta1/{+parent}/securityProfiles', options)
|
|
6463
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::ListSecurityProfilesResponse::Representation
|
|
6464
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::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::NetworksecurityV1beta1::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::NetworksecurityV1beta1::Operation] parsed result object
|
|
6494
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
6495
|
+
#
|
|
6496
|
+
# @return [Google::Apis::NetworksecurityV1beta1::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, 'v1beta1/{+name}', options)
|
|
6503
|
+
command.request_representation = Google::Apis::NetworksecurityV1beta1::SecurityProfile::Representation
|
|
6504
|
+
command.request_object = security_profile_object
|
|
6505
|
+
command.response_representation = Google::Apis::NetworksecurityV1beta1::Operation::Representation
|
|
6506
|
+
command.response_class = Google::Apis::NetworksecurityV1beta1::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
|
+
|
|
5795
6514
|
# Creates a new ServerTlsPolicy in a given project and location.
|
|
5796
6515
|
# @param [String] parent
|
|
5797
6516
|
# 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_v1beta1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.65.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_v1beta1/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-networksecurity_v1beta1/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-networksecurity_v1beta1/v0.65.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networksecurity_v1beta1
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|