google-cloud-network_security-v1 0.a → 0.1.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/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +154 -8
- data/lib/google/cloud/network_security/v1/address_group_service/client.rb +1457 -0
- data/lib/google/cloud/network_security/v1/address_group_service/credentials.rb +47 -0
- data/lib/google/cloud/network_security/v1/address_group_service/operations.rb +843 -0
- data/lib/google/cloud/network_security/v1/address_group_service/paths.rb +110 -0
- data/lib/google/cloud/network_security/v1/address_group_service.rb +52 -0
- data/lib/google/cloud/network_security/v1/dns_threat_detector_service/client.rb +900 -0
- data/lib/google/cloud/network_security/v1/dns_threat_detector_service/credentials.rb +47 -0
- data/lib/google/cloud/network_security/v1/dns_threat_detector_service/paths.rb +86 -0
- data/lib/google/cloud/network_security/v1/dns_threat_detector_service.rb +49 -0
- data/lib/google/cloud/network_security/v1/firewall_activation/client.rb +2098 -0
- data/lib/google/cloud/network_security/v1/firewall_activation/credentials.rb +47 -0
- data/lib/google/cloud/network_security/v1/firewall_activation/operations.rb +843 -0
- data/lib/google/cloud/network_security/v1/firewall_activation/paths.rb +165 -0
- data/lib/google/cloud/network_security/v1/firewall_activation.rb +50 -0
- data/lib/google/cloud/network_security/v1/intercept/client.rb +2599 -0
- data/lib/google/cloud/network_security/v1/intercept/credentials.rb +47 -0
- data/lib/google/cloud/network_security/v1/intercept/operations.rb +843 -0
- data/lib/google/cloud/network_security/v1/intercept/paths.rb +160 -0
- data/lib/google/cloud/network_security/v1/intercept.rb +51 -0
- data/lib/google/cloud/network_security/v1/mirroring/client.rb +2598 -0
- data/lib/google/cloud/network_security/v1/mirroring/credentials.rb +47 -0
- data/lib/google/cloud/network_security/v1/mirroring/operations.rb +843 -0
- data/lib/google/cloud/network_security/v1/mirroring/paths.rb +160 -0
- data/lib/google/cloud/network_security/v1/mirroring.rb +50 -0
- data/lib/google/cloud/network_security/v1/network_security/client.rb +5161 -0
- data/lib/google/cloud/network_security/v1/network_security/credentials.rb +47 -0
- data/lib/google/cloud/network_security/v1/network_security/operations.rb +843 -0
- data/lib/google/cloud/network_security/v1/network_security/paths.rb +280 -0
- data/lib/google/cloud/network_security/v1/network_security.rb +52 -0
- data/lib/google/cloud/network_security/v1/organization_address_group_service/client.rb +1457 -0
- data/lib/google/cloud/network_security/v1/organization_address_group_service/credentials.rb +47 -0
- data/lib/google/cloud/network_security/v1/organization_address_group_service/operations.rb +843 -0
- data/lib/google/cloud/network_security/v1/organization_address_group_service/paths.rb +110 -0
- data/lib/google/cloud/network_security/v1/organization_address_group_service.rb +52 -0
- data/lib/google/cloud/network_security/v1/organization_security_profile_group_service/client.rb +1471 -0
- data/lib/google/cloud/network_security/v1/organization_security_profile_group_service/credentials.rb +47 -0
- data/lib/google/cloud/network_security/v1/organization_security_profile_group_service/operations.rb +843 -0
- data/lib/google/cloud/network_security/v1/organization_security_profile_group_service/paths.rb +191 -0
- data/lib/google/cloud/network_security/v1/organization_security_profile_group_service.rb +50 -0
- data/lib/google/cloud/network_security/v1/security_profile_group_service/client.rb +1472 -0
- data/lib/google/cloud/network_security/v1/security_profile_group_service/credentials.rb +47 -0
- data/lib/google/cloud/network_security/v1/security_profile_group_service/operations.rb +843 -0
- data/lib/google/cloud/network_security/v1/security_profile_group_service/paths.rb +191 -0
- data/lib/google/cloud/network_security/v1/security_profile_group_service.rb +51 -0
- data/lib/google/cloud/network_security/v1/sse_realm_service/client.rb +1316 -0
- data/lib/google/cloud/network_security/v1/sse_realm_service/credentials.rb +47 -0
- data/lib/google/cloud/network_security/v1/sse_realm_service/operations.rb +843 -0
- data/lib/google/cloud/network_security/v1/sse_realm_service/paths.rb +88 -0
- data/lib/google/cloud/network_security/v1/sse_realm_service.rb +50 -0
- data/lib/google/cloud/network_security/v1/version.rb +7 -2
- data/lib/google/cloud/network_security/v1.rb +49 -0
- data/lib/google/cloud/networksecurity/v1/address_group_pb.rb +46 -0
- data/lib/google/cloud/networksecurity/v1/address_group_services_pb.rb +97 -0
- data/lib/google/cloud/networksecurity/v1/authorization_policy_pb.rb +37 -0
- data/lib/google/cloud/networksecurity/v1/authz_policy_pb.rb +56 -0
- data/lib/google/cloud/networksecurity/v1/backend_authentication_config_pb.rb +33 -0
- data/lib/google/cloud/networksecurity/v1/client_tls_policy_pb.rb +33 -0
- data/lib/google/cloud/networksecurity/v1/common_pb.rb +24 -0
- data/lib/google/cloud/networksecurity/v1/dns_threat_detector_pb.rb +36 -0
- data/lib/google/cloud/networksecurity/v1/dns_threat_detector_services_pb.rb +53 -0
- data/lib/google/cloud/networksecurity/v1/firewall_activation_pb.rb +48 -0
- data/lib/google/cloud/networksecurity/v1/firewall_activation_services_pb.rb +73 -0
- data/lib/google/cloud/networksecurity/v1/gateway_security_policy_pb.rb +32 -0
- data/lib/google/cloud/networksecurity/v1/gateway_security_policy_rule_pb.rb +33 -0
- data/lib/google/cloud/networksecurity/v1/intercept_pb.rb +71 -0
- data/lib/google/cloud/networksecurity/v1/intercept_services_pb.rb +104 -0
- data/lib/google/cloud/networksecurity/v1/mirroring_pb.rb +72 -0
- data/lib/google/cloud/networksecurity/v1/mirroring_services_pb.rb +103 -0
- data/lib/google/cloud/networksecurity/v1/network_security_pb.rb +35 -0
- data/lib/google/cloud/networksecurity/v1/network_security_services_pb.rb +138 -0
- data/lib/google/cloud/networksecurity/v1/security_profile_group_intercept_pb.rb +24 -0
- data/lib/google/cloud/networksecurity/v1/security_profile_group_mirroring_pb.rb +24 -0
- data/lib/google/cloud/networksecurity/v1/security_profile_group_pb.rb +31 -0
- data/lib/google/cloud/networksecurity/v1/security_profile_group_service_pb.rb +42 -0
- data/lib/google/cloud/networksecurity/v1/security_profile_group_service_services_pb.rb +98 -0
- data/lib/google/cloud/networksecurity/v1/security_profile_group_threatprevention_pb.rb +30 -0
- data/lib/google/cloud/networksecurity/v1/security_profile_group_urlfiltering_pb.rb +25 -0
- data/lib/google/cloud/networksecurity/v1/server_tls_policy_pb.rb +35 -0
- data/lib/google/cloud/networksecurity/v1/sse_realm_pb.rb +46 -0
- data/lib/google/cloud/networksecurity/v1/sse_realm_services_pb.rb +59 -0
- data/lib/google/cloud/networksecurity/v1/tls_inspection_policy_pb.rb +34 -0
- data/lib/google/cloud/networksecurity/v1/tls_pb.rb +26 -0
- data/lib/google/cloud/networksecurity/v1/url_list_pb.rb +32 -0
- data/lib/google-cloud-network_security-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +593 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/networksecurity/v1/address_group.rb +374 -0
- data/proto_docs/google/cloud/networksecurity/v1/authorization_policy.rb +263 -0
- data/proto_docs/google/cloud/networksecurity/v1/authz_policy.rb +735 -0
- data/proto_docs/google/cloud/networksecurity/v1/backend_authentication_config.rb +217 -0
- data/proto_docs/google/cloud/networksecurity/v1/client_tls_policy.rb +162 -0
- data/proto_docs/google/cloud/networksecurity/v1/common.rb +57 -0
- data/proto_docs/google/cloud/networksecurity/v1/dns_threat_detector.rb +159 -0
- data/proto_docs/google/cloud/networksecurity/v1/firewall_activation.rb +469 -0
- data/proto_docs/google/cloud/networksecurity/v1/gateway_security_policy.rb +144 -0
- data/proto_docs/google/cloud/networksecurity/v1/gateway_security_policy_rule.rb +178 -0
- data/proto_docs/google/cloud/networksecurity/v1/intercept.rb +960 -0
- data/proto_docs/google/cloud/networksecurity/v1/mirroring.rb +970 -0
- data/proto_docs/google/cloud/networksecurity/v1/security_profile_group.rb +166 -0
- data/proto_docs/google/cloud/networksecurity/v1/security_profile_group_intercept.rb +38 -0
- data/proto_docs/google/cloud/networksecurity/v1/security_profile_group_mirroring.rb +38 -0
- data/proto_docs/google/cloud/networksecurity/v1/security_profile_group_service.rb +211 -0
- data/proto_docs/google/cloud/networksecurity/v1/security_profile_group_threatprevention.rb +193 -0
- data/proto_docs/google/cloud/networksecurity/v1/security_profile_group_urlfiltering.rb +66 -0
- data/proto_docs/google/cloud/networksecurity/v1/server_tls_policy.rb +251 -0
- data/proto_docs/google/cloud/networksecurity/v1/sse_realm.rb +388 -0
- data/proto_docs/google/cloud/networksecurity/v1/tls.rb +90 -0
- data/proto_docs/google/cloud/networksecurity/v1/tls_inspection_policy.rb +239 -0
- data/proto_docs/google/cloud/networksecurity/v1/url_list.rb +144 -0
- data/proto_docs/google/longrunning/operations.rb +191 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +186 -9
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module NetworkSecurity
|
|
23
|
+
module V1
|
|
24
|
+
# The GatewaySecurityPolicyRule resource is in a nested collection within a
|
|
25
|
+
# GatewaySecurityPolicy and represents a traffic matching condition and
|
|
26
|
+
# associated action to perform.
|
|
27
|
+
# @!attribute [rw] basic_profile
|
|
28
|
+
# @return [::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyRule::BasicProfile]
|
|
29
|
+
# Required. Profile which tells what the primitive action should be.
|
|
30
|
+
# @!attribute [rw] name
|
|
31
|
+
# @return [::String]
|
|
32
|
+
# Required. Immutable. Name of the resource. ame is the full resource name so
|
|
33
|
+
# projects/\\{project}/locations/\\{location}/gatewaySecurityPolicies/\\{gateway_security_policy}/rules/\\{rule}
|
|
34
|
+
# rule should match the
|
|
35
|
+
# pattern: (^[a-z]([a-z0-9-]\\{0,61}[a-z0-9])?$).
|
|
36
|
+
# @!attribute [r] create_time
|
|
37
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
38
|
+
# Output only. Time when the rule was created.
|
|
39
|
+
# @!attribute [r] update_time
|
|
40
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
41
|
+
# Output only. Time when the rule was updated.
|
|
42
|
+
# @!attribute [rw] enabled
|
|
43
|
+
# @return [::Boolean]
|
|
44
|
+
# Required. Whether the rule is enforced.
|
|
45
|
+
# @!attribute [rw] priority
|
|
46
|
+
# @return [::Integer]
|
|
47
|
+
# Required. Priority of the rule.
|
|
48
|
+
# Lower number corresponds to higher precedence.
|
|
49
|
+
# @!attribute [rw] description
|
|
50
|
+
# @return [::String]
|
|
51
|
+
# Optional. Free-text description of the resource.
|
|
52
|
+
# @!attribute [rw] session_matcher
|
|
53
|
+
# @return [::String]
|
|
54
|
+
# Required. CEL expression for matching on session criteria.
|
|
55
|
+
# @!attribute [rw] application_matcher
|
|
56
|
+
# @return [::String]
|
|
57
|
+
# Optional. CEL expression for matching on L7/application level criteria.
|
|
58
|
+
# @!attribute [rw] tls_inspection_enabled
|
|
59
|
+
# @return [::Boolean]
|
|
60
|
+
# Optional. Flag to enable TLS inspection of traffic matching on
|
|
61
|
+
# <session_matcher>, can only be true if the parent GatewaySecurityPolicy
|
|
62
|
+
# references a TLSInspectionConfig.
|
|
63
|
+
class GatewaySecurityPolicyRule
|
|
64
|
+
include ::Google::Protobuf::MessageExts
|
|
65
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
66
|
+
|
|
67
|
+
# enum to define the primitive action.
|
|
68
|
+
module BasicProfile
|
|
69
|
+
# If there is not a mentioned action for the target.
|
|
70
|
+
BASIC_PROFILE_UNSPECIFIED = 0
|
|
71
|
+
|
|
72
|
+
# Allow the matched traffic.
|
|
73
|
+
ALLOW = 1
|
|
74
|
+
|
|
75
|
+
# Deny the matched traffic.
|
|
76
|
+
DENY = 2
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Methods for GatewaySecurityPolicy RULES/GatewaySecurityPolicyRules.
|
|
81
|
+
# Request used by the CreateGatewaySecurityPolicyRule method.
|
|
82
|
+
# @!attribute [rw] parent
|
|
83
|
+
# @return [::String]
|
|
84
|
+
# Required. The parent where this rule will be created.
|
|
85
|
+
# Format :
|
|
86
|
+
# projects/\\{project}/location/\\{location}/gatewaySecurityPolicies/*
|
|
87
|
+
# @!attribute [rw] gateway_security_policy_rule
|
|
88
|
+
# @return [::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyRule]
|
|
89
|
+
# Required. The rule to be created.
|
|
90
|
+
# @!attribute [rw] gateway_security_policy_rule_id
|
|
91
|
+
# @return [::String]
|
|
92
|
+
# The ID to use for the rule, which will become the final component of
|
|
93
|
+
# the rule's resource name.
|
|
94
|
+
# This value should be 4-63 characters, and valid characters
|
|
95
|
+
# are /[a-z][0-9]-/.
|
|
96
|
+
class CreateGatewaySecurityPolicyRuleRequest
|
|
97
|
+
include ::Google::Protobuf::MessageExts
|
|
98
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Request used by the GetGatewaySecurityPolicyRule method.
|
|
102
|
+
# @!attribute [rw] name
|
|
103
|
+
# @return [::String]
|
|
104
|
+
# Required. The name of the GatewaySecurityPolicyRule to retrieve.
|
|
105
|
+
# Format:
|
|
106
|
+
# projects/\\{project}/location/\\{location}/gatewaySecurityPolicies/*/rules/*
|
|
107
|
+
class GetGatewaySecurityPolicyRuleRequest
|
|
108
|
+
include ::Google::Protobuf::MessageExts
|
|
109
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Request used by the UpdateGatewaySecurityPolicyRule method.
|
|
113
|
+
# @!attribute [rw] update_mask
|
|
114
|
+
# @return [::Google::Protobuf::FieldMask]
|
|
115
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
|
116
|
+
# GatewaySecurityPolicy resource by the update.
|
|
117
|
+
# The fields specified in the update_mask are relative to the resource, not
|
|
118
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
|
119
|
+
# user does not provide a mask then all fields will be overwritten.
|
|
120
|
+
# @!attribute [rw] gateway_security_policy_rule
|
|
121
|
+
# @return [::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyRule]
|
|
122
|
+
# Required. Updated GatewaySecurityPolicyRule resource.
|
|
123
|
+
class UpdateGatewaySecurityPolicyRuleRequest
|
|
124
|
+
include ::Google::Protobuf::MessageExts
|
|
125
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Request used with the ListGatewaySecurityPolicyRules method.
|
|
129
|
+
# @!attribute [rw] parent
|
|
130
|
+
# @return [::String]
|
|
131
|
+
# Required. The project, location and GatewaySecurityPolicy from which the
|
|
132
|
+
# GatewaySecurityPolicyRules should be listed, specified in the format
|
|
133
|
+
# `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}`.
|
|
134
|
+
# @!attribute [rw] page_size
|
|
135
|
+
# @return [::Integer]
|
|
136
|
+
# Maximum number of GatewaySecurityPolicyRules to return per call.
|
|
137
|
+
# @!attribute [rw] page_token
|
|
138
|
+
# @return [::String]
|
|
139
|
+
# The value returned by the last
|
|
140
|
+
# 'ListGatewaySecurityPolicyRulesResponse' Indicates that this is a
|
|
141
|
+
# continuation of a prior 'ListGatewaySecurityPolicyRules' call, and
|
|
142
|
+
# that the system should return the next page of data.
|
|
143
|
+
class ListGatewaySecurityPolicyRulesRequest
|
|
144
|
+
include ::Google::Protobuf::MessageExts
|
|
145
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Response returned by the ListGatewaySecurityPolicyRules method.
|
|
149
|
+
# @!attribute [rw] gateway_security_policy_rules
|
|
150
|
+
# @return [::Array<::Google::Cloud::NetworkSecurity::V1::GatewaySecurityPolicyRule>]
|
|
151
|
+
# List of GatewaySecurityPolicyRule resources.
|
|
152
|
+
# @!attribute [rw] next_page_token
|
|
153
|
+
# @return [::String]
|
|
154
|
+
# If there might be more results than those appearing in this response, then
|
|
155
|
+
# 'next_page_token' is included. To get the next set of results, call this
|
|
156
|
+
# method again using the value of 'next_page_token' as 'page_token'.
|
|
157
|
+
# @!attribute [rw] unreachable
|
|
158
|
+
# @return [::Array<::String>]
|
|
159
|
+
# Locations that could not be reached.
|
|
160
|
+
class ListGatewaySecurityPolicyRulesResponse
|
|
161
|
+
include ::Google::Protobuf::MessageExts
|
|
162
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Request used by the DeleteGatewaySecurityPolicyRule method.
|
|
166
|
+
# @!attribute [rw] name
|
|
167
|
+
# @return [::String]
|
|
168
|
+
# Required. A name of the GatewaySecurityPolicyRule to delete. Must be in the
|
|
169
|
+
# format
|
|
170
|
+
# `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gatewaySecurityPolicy}/rules/*`.
|
|
171
|
+
class DeleteGatewaySecurityPolicyRuleRequest
|
|
172
|
+
include ::Google::Protobuf::MessageExts
|
|
173
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
174
|
+
end
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
end
|