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,280 @@
|
|
|
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
|
+
module NetworkSecurity
|
|
25
|
+
# Path helper methods for the NetworkSecurity API.
|
|
26
|
+
module Paths
|
|
27
|
+
##
|
|
28
|
+
# Create a fully-qualified AuthorizationPolicy resource string.
|
|
29
|
+
#
|
|
30
|
+
# The resource will be in the following format:
|
|
31
|
+
#
|
|
32
|
+
# `projects/{project}/locations/{location}/authorizationPolicies/{authorization_policy}`
|
|
33
|
+
#
|
|
34
|
+
# @param project [String]
|
|
35
|
+
# @param location [String]
|
|
36
|
+
# @param authorization_policy [String]
|
|
37
|
+
#
|
|
38
|
+
# @return [::String]
|
|
39
|
+
def authorization_policy_path project:, location:, authorization_policy:
|
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
42
|
+
|
|
43
|
+
"projects/#{project}/locations/#{location}/authorizationPolicies/#{authorization_policy}"
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
##
|
|
47
|
+
# Create a fully-qualified AuthzPolicy resource string.
|
|
48
|
+
#
|
|
49
|
+
# The resource will be in the following format:
|
|
50
|
+
#
|
|
51
|
+
# `projects/{project}/locations/{location}/authzPolicies/{authz_policy}`
|
|
52
|
+
#
|
|
53
|
+
# @param project [String]
|
|
54
|
+
# @param location [String]
|
|
55
|
+
# @param authz_policy [String]
|
|
56
|
+
#
|
|
57
|
+
# @return [::String]
|
|
58
|
+
def authz_policy_path project:, location:, authz_policy:
|
|
59
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
60
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
61
|
+
|
|
62
|
+
"projects/#{project}/locations/#{location}/authzPolicies/#{authz_policy}"
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
##
|
|
66
|
+
# Create a fully-qualified BackendAuthenticationConfig resource string.
|
|
67
|
+
#
|
|
68
|
+
# The resource will be in the following format:
|
|
69
|
+
#
|
|
70
|
+
# `projects/{project}/locations/{location}/backendAuthenticationConfigs/{backend_authentication_config}`
|
|
71
|
+
#
|
|
72
|
+
# @param project [String]
|
|
73
|
+
# @param location [String]
|
|
74
|
+
# @param backend_authentication_config [String]
|
|
75
|
+
#
|
|
76
|
+
# @return [::String]
|
|
77
|
+
def backend_authentication_config_path project:, location:, backend_authentication_config:
|
|
78
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
79
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
80
|
+
|
|
81
|
+
"projects/#{project}/locations/#{location}/backendAuthenticationConfigs/#{backend_authentication_config}"
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
##
|
|
85
|
+
# Create a fully-qualified CaPool resource string.
|
|
86
|
+
#
|
|
87
|
+
# The resource will be in the following format:
|
|
88
|
+
#
|
|
89
|
+
# `projects/{project}/locations/{location}/caPools/{ca_pool}`
|
|
90
|
+
#
|
|
91
|
+
# @param project [String]
|
|
92
|
+
# @param location [String]
|
|
93
|
+
# @param ca_pool [String]
|
|
94
|
+
#
|
|
95
|
+
# @return [::String]
|
|
96
|
+
def ca_pool_path project:, location:, ca_pool:
|
|
97
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
98
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
99
|
+
|
|
100
|
+
"projects/#{project}/locations/#{location}/caPools/#{ca_pool}"
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
##
|
|
104
|
+
# Create a fully-qualified Certificate resource string.
|
|
105
|
+
#
|
|
106
|
+
# The resource will be in the following format:
|
|
107
|
+
#
|
|
108
|
+
# `projects/{project}/locations/{location}/certificates/{certificate}`
|
|
109
|
+
#
|
|
110
|
+
# @param project [String]
|
|
111
|
+
# @param location [String]
|
|
112
|
+
# @param certificate [String]
|
|
113
|
+
#
|
|
114
|
+
# @return [::String]
|
|
115
|
+
def certificate_path project:, location:, certificate:
|
|
116
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
117
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
118
|
+
|
|
119
|
+
"projects/#{project}/locations/#{location}/certificates/#{certificate}"
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
##
|
|
123
|
+
# Create a fully-qualified ClientTlsPolicy resource string.
|
|
124
|
+
#
|
|
125
|
+
# The resource will be in the following format:
|
|
126
|
+
#
|
|
127
|
+
# `projects/{project}/locations/{location}/clientTlsPolicies/{client_tls_policy}`
|
|
128
|
+
#
|
|
129
|
+
# @param project [String]
|
|
130
|
+
# @param location [String]
|
|
131
|
+
# @param client_tls_policy [String]
|
|
132
|
+
#
|
|
133
|
+
# @return [::String]
|
|
134
|
+
def client_tls_policy_path project:, location:, client_tls_policy:
|
|
135
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
136
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
137
|
+
|
|
138
|
+
"projects/#{project}/locations/#{location}/clientTlsPolicies/#{client_tls_policy}"
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
##
|
|
142
|
+
# Create a fully-qualified GatewaySecurityPolicy resource string.
|
|
143
|
+
#
|
|
144
|
+
# The resource will be in the following format:
|
|
145
|
+
#
|
|
146
|
+
# `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}`
|
|
147
|
+
#
|
|
148
|
+
# @param project [String]
|
|
149
|
+
# @param location [String]
|
|
150
|
+
# @param gateway_security_policy [String]
|
|
151
|
+
#
|
|
152
|
+
# @return [::String]
|
|
153
|
+
def gateway_security_policy_path project:, location:, gateway_security_policy:
|
|
154
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
155
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
156
|
+
|
|
157
|
+
"projects/#{project}/locations/#{location}/gatewaySecurityPolicies/#{gateway_security_policy}"
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
##
|
|
161
|
+
# Create a fully-qualified GatewaySecurityPolicyRule resource string.
|
|
162
|
+
#
|
|
163
|
+
# The resource will be in the following format:
|
|
164
|
+
#
|
|
165
|
+
# `projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule}`
|
|
166
|
+
#
|
|
167
|
+
# @param project [String]
|
|
168
|
+
# @param location [String]
|
|
169
|
+
# @param gateway_security_policy [String]
|
|
170
|
+
# @param rule [String]
|
|
171
|
+
#
|
|
172
|
+
# @return [::String]
|
|
173
|
+
def gateway_security_policy_rule_path project:, location:, gateway_security_policy:, rule:
|
|
174
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
175
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
176
|
+
raise ::ArgumentError, "gateway_security_policy cannot contain /" if gateway_security_policy.to_s.include? "/"
|
|
177
|
+
|
|
178
|
+
"projects/#{project}/locations/#{location}/gatewaySecurityPolicies/#{gateway_security_policy}/rules/#{rule}"
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
##
|
|
182
|
+
# Create a fully-qualified Location resource string.
|
|
183
|
+
#
|
|
184
|
+
# The resource will be in the following format:
|
|
185
|
+
#
|
|
186
|
+
# `projects/{project}/locations/{location}`
|
|
187
|
+
#
|
|
188
|
+
# @param project [String]
|
|
189
|
+
# @param location [String]
|
|
190
|
+
#
|
|
191
|
+
# @return [::String]
|
|
192
|
+
def location_path project:, location:
|
|
193
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
194
|
+
|
|
195
|
+
"projects/#{project}/locations/#{location}"
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
##
|
|
199
|
+
# Create a fully-qualified ServerTlsPolicy resource string.
|
|
200
|
+
#
|
|
201
|
+
# The resource will be in the following format:
|
|
202
|
+
#
|
|
203
|
+
# `projects/{project}/locations/{location}/serverTlsPolicies/{server_tls_policy}`
|
|
204
|
+
#
|
|
205
|
+
# @param project [String]
|
|
206
|
+
# @param location [String]
|
|
207
|
+
# @param server_tls_policy [String]
|
|
208
|
+
#
|
|
209
|
+
# @return [::String]
|
|
210
|
+
def server_tls_policy_path project:, location:, server_tls_policy:
|
|
211
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
212
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
213
|
+
|
|
214
|
+
"projects/#{project}/locations/#{location}/serverTlsPolicies/#{server_tls_policy}"
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
##
|
|
218
|
+
# Create a fully-qualified TlsInspectionPolicy resource string.
|
|
219
|
+
#
|
|
220
|
+
# The resource will be in the following format:
|
|
221
|
+
#
|
|
222
|
+
# `projects/{project}/locations/{location}/tlsInspectionPolicies/{tls_inspection_policy}`
|
|
223
|
+
#
|
|
224
|
+
# @param project [String]
|
|
225
|
+
# @param location [String]
|
|
226
|
+
# @param tls_inspection_policy [String]
|
|
227
|
+
#
|
|
228
|
+
# @return [::String]
|
|
229
|
+
def tls_inspection_policy_path project:, location:, tls_inspection_policy:
|
|
230
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
231
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
232
|
+
|
|
233
|
+
"projects/#{project}/locations/#{location}/tlsInspectionPolicies/#{tls_inspection_policy}"
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
##
|
|
237
|
+
# Create a fully-qualified TrustConfig resource string.
|
|
238
|
+
#
|
|
239
|
+
# The resource will be in the following format:
|
|
240
|
+
#
|
|
241
|
+
# `projects/{project}/locations/{location}/trustConfigs/{trust_config}`
|
|
242
|
+
#
|
|
243
|
+
# @param project [String]
|
|
244
|
+
# @param location [String]
|
|
245
|
+
# @param trust_config [String]
|
|
246
|
+
#
|
|
247
|
+
# @return [::String]
|
|
248
|
+
def trust_config_path project:, location:, trust_config:
|
|
249
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
250
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
251
|
+
|
|
252
|
+
"projects/#{project}/locations/#{location}/trustConfigs/#{trust_config}"
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
##
|
|
256
|
+
# Create a fully-qualified UrlList resource string.
|
|
257
|
+
#
|
|
258
|
+
# The resource will be in the following format:
|
|
259
|
+
#
|
|
260
|
+
# `projects/{project}/locations/{location}/urlLists/{url_list}`
|
|
261
|
+
#
|
|
262
|
+
# @param project [String]
|
|
263
|
+
# @param location [String]
|
|
264
|
+
# @param url_list [String]
|
|
265
|
+
#
|
|
266
|
+
# @return [::String]
|
|
267
|
+
def url_list_path project:, location:, url_list:
|
|
268
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
269
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
270
|
+
|
|
271
|
+
"projects/#{project}/locations/#{location}/urlLists/#{url_list}"
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
extend self
|
|
275
|
+
end
|
|
276
|
+
end
|
|
277
|
+
end
|
|
278
|
+
end
|
|
279
|
+
end
|
|
280
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
require "gapic/common"
|
|
20
|
+
require "gapic/config"
|
|
21
|
+
require "gapic/config/method"
|
|
22
|
+
|
|
23
|
+
require "google/cloud/network_security/v1/version"
|
|
24
|
+
|
|
25
|
+
require "google/cloud/network_security/v1/network_security/credentials"
|
|
26
|
+
require "google/cloud/network_security/v1/network_security/paths"
|
|
27
|
+
require "google/cloud/network_security/v1/network_security/operations"
|
|
28
|
+
require "google/cloud/network_security/v1/network_security/client"
|
|
29
|
+
|
|
30
|
+
module Google
|
|
31
|
+
module Cloud
|
|
32
|
+
module NetworkSecurity
|
|
33
|
+
module V1
|
|
34
|
+
##
|
|
35
|
+
# Network Security API provides resources to configure authentication and
|
|
36
|
+
# authorization policies. Refer to per API resource documentation for more
|
|
37
|
+
# information.
|
|
38
|
+
#
|
|
39
|
+
# @example Load this service and instantiate a gRPC client
|
|
40
|
+
#
|
|
41
|
+
# require "google/cloud/network_security/v1/network_security"
|
|
42
|
+
# client = ::Google::Cloud::NetworkSecurity::V1::NetworkSecurity::Client.new
|
|
43
|
+
#
|
|
44
|
+
module NetworkSecurity
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
helper_path = ::File.join __dir__, "network_security", "helpers.rb"
|
|
52
|
+
require "google/cloud/network_security/v1/network_security/helpers" if ::File.file? helper_path
|