google-apis-networksecurity_v1beta1 0.64.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 +4 -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 +125 -0
- 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
|
@@ -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.
|
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:
|