google-cloud-network_security-v1beta1 0.3.0 → 0.5.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/AUTHENTICATION.md +1 -1
- data/README.md +2 -2
- data/lib/google/cloud/network_security/v1beta1/bindings_override.rb +183 -0
- data/lib/google/cloud/network_security/v1beta1/network_security/client.rb +50 -56
- data/lib/google/cloud/network_security/v1beta1/network_security/operations.rb +14 -16
- data/lib/google/cloud/network_security/v1beta1/network_security/rest/client.rb +1451 -0
- data/lib/google/cloud/network_security/v1beta1/network_security/rest/operations.rb +793 -0
- data/lib/google/cloud/network_security/v1beta1/network_security/rest/service_stub.rb +939 -0
- data/lib/google/cloud/network_security/v1beta1/network_security/rest.rb +56 -0
- data/lib/google/cloud/network_security/v1beta1/network_security.rb +7 -1
- data/lib/google/cloud/network_security/v1beta1/rest.rb +38 -0
- data/lib/google/cloud/network_security/v1beta1/version.rb +1 -1
- data/lib/google/cloud/network_security/v1beta1.rb +7 -2
- data/lib/google/cloud/networksecurity/v1beta1/authorization_policy_pb.rb +26 -59
- data/lib/google/cloud/networksecurity/v1beta1/client_tls_policy_pb.rb +27 -35
- data/lib/google/cloud/networksecurity/v1beta1/common_pb.rb +25 -10
- data/lib/google/cloud/networksecurity/v1beta1/network_security_pb.rb +25 -2
- data/lib/google/cloud/networksecurity/v1beta1/server_tls_policy_pb.rb +27 -38
- data/lib/google/cloud/networksecurity/v1beta1/tls_pb.rb +24 -19
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +19 -11
@@ -0,0 +1,56 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 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/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/network_security/v1beta1/version"
|
24
|
+
require "google/cloud/network_security/v1beta1/bindings_override"
|
25
|
+
|
26
|
+
require "google/cloud/network_security/v1beta1/network_security/credentials"
|
27
|
+
require "google/cloud/network_security/v1beta1/network_security/paths"
|
28
|
+
require "google/cloud/network_security/v1beta1/network_security/rest/operations"
|
29
|
+
require "google/cloud/network_security/v1beta1/network_security/rest/client"
|
30
|
+
|
31
|
+
module Google
|
32
|
+
module Cloud
|
33
|
+
module NetworkSecurity
|
34
|
+
module V1beta1
|
35
|
+
##
|
36
|
+
# Network Security API provides resources to configure authentication and
|
37
|
+
# authorization policies. Refer to per API resource documentation for more
|
38
|
+
# information.
|
39
|
+
#
|
40
|
+
# To load this service and instantiate a REST client:
|
41
|
+
#
|
42
|
+
# require "google/cloud/network_security/v1beta1/network_security/rest"
|
43
|
+
# client = ::Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
|
44
|
+
#
|
45
|
+
module NetworkSecurity
|
46
|
+
# Client for the REST transport
|
47
|
+
module Rest
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
56
|
+
require "google/cloud/network_security/v1beta1/network_security/rest/helpers" if ::File.file? helper_path
|
@@ -26,6 +26,7 @@ require "google/cloud/network_security/v1beta1/network_security/credentials"
|
|
26
26
|
require "google/cloud/network_security/v1beta1/network_security/paths"
|
27
27
|
require "google/cloud/network_security/v1beta1/network_security/operations"
|
28
28
|
require "google/cloud/network_security/v1beta1/network_security/client"
|
29
|
+
require "google/cloud/network_security/v1beta1/network_security/rest"
|
29
30
|
|
30
31
|
module Google
|
31
32
|
module Cloud
|
@@ -36,11 +37,16 @@ module Google
|
|
36
37
|
# authorization policies. Refer to per API resource documentation for more
|
37
38
|
# information.
|
38
39
|
#
|
39
|
-
#
|
40
|
+
# @example Load this service and instantiate a gRPC client
|
40
41
|
#
|
41
42
|
# require "google/cloud/network_security/v1beta1/network_security"
|
42
43
|
# client = ::Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Client.new
|
43
44
|
#
|
45
|
+
# @example Load this service and instantiate a REST client
|
46
|
+
#
|
47
|
+
# require "google/cloud/network_security/v1beta1/network_security/rest"
|
48
|
+
# client = ::Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
|
49
|
+
#
|
44
50
|
module NetworkSecurity
|
45
51
|
end
|
46
52
|
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 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 "google/cloud/network_security/v1beta1/network_security/rest"
|
20
|
+
require "google/cloud/network_security/v1beta1/bindings_override"
|
21
|
+
require "google/cloud/network_security/v1beta1/version"
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Cloud
|
25
|
+
module NetworkSecurity
|
26
|
+
##
|
27
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
28
|
+
#
|
29
|
+
# @example
|
30
|
+
#
|
31
|
+
# require "google/cloud/network_security/v1beta1/rest"
|
32
|
+
# client = ::Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
|
33
|
+
#
|
34
|
+
module V1beta1
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -23,13 +23,18 @@ module Google
|
|
23
23
|
module Cloud
|
24
24
|
module NetworkSecurity
|
25
25
|
##
|
26
|
-
#
|
26
|
+
# API client module.
|
27
27
|
#
|
28
|
-
# @example
|
28
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
29
29
|
#
|
30
30
|
# require "google/cloud/network_security/v1beta1"
|
31
31
|
# client = ::Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Client.new
|
32
32
|
#
|
33
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
34
|
+
#
|
35
|
+
# require "google/cloud/network_security/v1beta1"
|
36
|
+
# client = ::Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Rest::Client.new
|
37
|
+
#
|
33
38
|
module V1beta1
|
34
39
|
end
|
35
40
|
end
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/networksecurity/v1beta1/authorization_policy.proto
|
3
4
|
|
@@ -8,67 +9,33 @@ require 'google/api/resource_pb'
|
|
8
9
|
require 'google/protobuf/field_mask_pb'
|
9
10
|
require 'google/protobuf/timestamp_pb'
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
optional :http_header_match, :message, 5, "google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch"
|
35
|
-
end
|
36
|
-
add_message "google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch" do
|
37
|
-
optional :header_name, :string, 1
|
38
|
-
oneof :type do
|
39
|
-
optional :regex_match, :string, 2
|
40
|
-
end
|
41
|
-
end
|
42
|
-
add_enum "google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action" do
|
43
|
-
value :ACTION_UNSPECIFIED, 0
|
44
|
-
value :ALLOW, 1
|
45
|
-
value :DENY, 2
|
46
|
-
end
|
47
|
-
add_message "google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest" do
|
48
|
-
optional :parent, :string, 1
|
49
|
-
optional :page_size, :int32, 2
|
50
|
-
optional :page_token, :string, 3
|
51
|
-
end
|
52
|
-
add_message "google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse" do
|
53
|
-
repeated :authorization_policies, :message, 1, "google.cloud.networksecurity.v1beta1.AuthorizationPolicy"
|
54
|
-
optional :next_page_token, :string, 2
|
55
|
-
end
|
56
|
-
add_message "google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest" do
|
57
|
-
optional :name, :string, 1
|
58
|
-
end
|
59
|
-
add_message "google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest" do
|
60
|
-
optional :parent, :string, 1
|
61
|
-
optional :authorization_policy_id, :string, 2
|
62
|
-
optional :authorization_policy, :message, 3, "google.cloud.networksecurity.v1beta1.AuthorizationPolicy"
|
63
|
-
end
|
64
|
-
add_message "google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest" do
|
65
|
-
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
66
|
-
optional :authorization_policy, :message, 2, "google.cloud.networksecurity.v1beta1.AuthorizationPolicy"
|
67
|
-
end
|
68
|
-
add_message "google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest" do
|
69
|
-
optional :name, :string, 1
|
12
|
+
|
13
|
+
descriptor_data = "\n?google/cloud/networksecurity/v1beta1/authorization_policy.proto\x12$google.cloud.networksecurity.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xcf\t\n\x13\x41uthorizationPolicy\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12Z\n\x06labels\x18\x05 \x03(\x0b\x32\x45.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.LabelsEntryB\x03\xe0\x41\x01\x12U\n\x06\x61\x63tion\x18\x06 \x01(\x0e\x32@.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.ActionB\x03\xe0\x41\x02\x12R\n\x05rules\x18\x07 \x03(\x0b\x32>.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.RuleB\x03\xe0\x41\x01\x1a\xa0\x04\n\x04Rule\x12[\n\x07sources\x18\x01 \x03(\x0b\x32\x45.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.SourceB\x03\xe0\x41\x01\x12\x65\n\x0c\x64\x65stinations\x18\x02 \x03(\x0b\x32J.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.DestinationB\x03\xe0\x41\x01\x1a\x39\n\x06Source\x12\x17\n\nprincipals\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12\x16\n\tip_blocks\x18\x02 \x03(\tB\x03\xe0\x41\x01\x1a\x98\x02\n\x0b\x44\x65stination\x12\x12\n\x05hosts\x18\x01 \x03(\tB\x03\xe0\x41\x02\x12\x12\n\x05ports\x18\x02 \x03(\rB\x03\xe0\x41\x02\x12\x14\n\x07methods\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12z\n\x11http_header_match\x18\x05 \x01(\x0b\x32Z.google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatchB\x03\xe0\x41\x01\x1aO\n\x0fHttpHeaderMatch\x12\x1a\n\x0bregex_match\x18\x02 \x01(\tB\x03\xe0\x41\x02H\x00\x12\x18\n\x0bheader_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x42\x06\n\x04type\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"5\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_UNSPECIFIED\x10\x00\x12\t\n\x05\x41LLOW\x10\x01\x12\x08\n\x04\x44\x45NY\x10\x02:\x8e\x01\xea\x41\x8a\x01\n2networksecurity.googleapis.com/AuthorizationPolicy\x12Tprojects/{project}/locations/{location}/authorizationPolicies/{authorization_policy}\"\x84\x01\n ListAuthorizationPoliciesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x97\x01\n!ListAuthorizationPoliciesResponse\x12Y\n\x16\x61uthorization_policies\x18\x01 \x03(\x0b\x32\x39.google.cloud.networksecurity.v1beta1.AuthorizationPolicy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"i\n\x1dGetAuthorizationPolicyRequest\x12H\n\x04name\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\n2networksecurity.googleapis.com/AuthorizationPolicy\"\xf2\x01\n CreateAuthorizationPolicyRequest\x12J\n\x06parent\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\x12\x32networksecurity.googleapis.com/AuthorizationPolicy\x12$\n\x17\x61uthorization_policy_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\\\n\x14\x61uthorization_policy\x18\x03 \x01(\x0b\x32\x39.google.cloud.networksecurity.v1beta1.AuthorizationPolicyB\x03\xe0\x41\x02\"\xb6\x01\n UpdateAuthorizationPolicyRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\\\n\x14\x61uthorization_policy\x18\x02 \x01(\x0b\x32\x39.google.cloud.networksecurity.v1beta1.AuthorizationPolicyB\x03\xe0\x41\x02\"l\n DeleteAuthorizationPolicyRequest\x12H\n\x04name\x18\x01 \x01(\tB:\xe0\x41\x02\xfa\x41\x34\n2networksecurity.googleapis.com/AuthorizationPolicyB\x92\x02\n(com.google.cloud.networksecurity.v1beta1B\x18\x41uthorizationPolicyProtoP\x01ZRcloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb;networksecuritypb\xaa\x02$Google.Cloud.NetworkSecurity.V1Beta1\xca\x02$Google\\Cloud\\NetworkSecurity\\V1beta1\xea\x02\'Google::Cloud::NetworkSecurity::V1beta1b\x06proto3"
|
14
|
+
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
|
+
|
17
|
+
begin
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
19
|
+
rescue TypeError => e
|
20
|
+
# Compatibility code: will be removed in the next major version.
|
21
|
+
require 'google/protobuf/descriptor_pb'
|
22
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
23
|
+
parsed.clear_dependency
|
24
|
+
serialized = parsed.class.encode(parsed)
|
25
|
+
file = pool.add_serialized_file(serialized)
|
26
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
|
+
imports = [
|
28
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
29
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
30
|
+
]
|
31
|
+
imports.each do |type_name, expected_filename|
|
32
|
+
import_file = pool.lookup(type_name).file_descriptor
|
33
|
+
if import_file.name != expected_filename
|
34
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
70
35
|
end
|
71
36
|
end
|
37
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
38
|
+
warn "This will become an error in the next major version."
|
72
39
|
end
|
73
40
|
|
74
41
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/networksecurity/v1beta1/client_tls_policy.proto
|
3
4
|
|
@@ -9,43 +10,34 @@ require 'google/cloud/networksecurity/v1beta1/tls_pb'
|
|
9
10
|
require 'google/protobuf/field_mask_pb'
|
10
11
|
require 'google/protobuf/timestamp_pb'
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
add_message "google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest" do
|
37
|
-
optional :parent, :string, 1
|
38
|
-
optional :client_tls_policy_id, :string, 2
|
39
|
-
optional :client_tls_policy, :message, 3, "google.cloud.networksecurity.v1beta1.ClientTlsPolicy"
|
40
|
-
end
|
41
|
-
add_message "google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest" do
|
42
|
-
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
43
|
-
optional :client_tls_policy, :message, 2, "google.cloud.networksecurity.v1beta1.ClientTlsPolicy"
|
44
|
-
end
|
45
|
-
add_message "google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest" do
|
46
|
-
optional :name, :string, 1
|
13
|
+
|
14
|
+
descriptor_data = "\n<google/cloud/networksecurity/v1beta1/client_tls_policy.proto\x12$google.cloud.networksecurity.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/networksecurity/v1beta1/tls.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xfb\x04\n\x0f\x43lientTlsPolicy\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12V\n\x06labels\x18\x05 \x03(\x0b\x32\x41.google.cloud.networksecurity.v1beta1.ClientTlsPolicy.LabelsEntryB\x03\xe0\x41\x01\x12\x10\n\x03sni\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12Z\n\x12\x63lient_certificate\x18\x07 \x01(\x0b\x32\x39.google.cloud.networksecurity.v1beta1.CertificateProviderB\x03\xe0\x41\x01\x12U\n\x14server_validation_ca\x18\x08 \x03(\x0b\x32\x32.google.cloud.networksecurity.v1beta1.ValidationCAB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x82\x01\xea\x41\x7f\n.networksecurity.googleapis.com/ClientTlsPolicy\x12Mprojects/{project}/locations/{location}/clientTlsPolicies/{client_tls_policy}\"\x80\x01\n\x1cListClientTlsPoliciesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x8c\x01\n\x1dListClientTlsPoliciesResponse\x12R\n\x13\x63lient_tls_policies\x18\x01 \x03(\x0b\x32\x35.google.cloud.networksecurity.v1beta1.ClientTlsPolicy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"a\n\x19GetClientTlsPolicyRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.networksecurity.googleapis.com/ClientTlsPolicy\"\xe0\x01\n\x1c\x43reateClientTlsPolicyRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.networksecurity.googleapis.com/ClientTlsPolicy\x12!\n\x14\x63lient_tls_policy_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12U\n\x11\x63lient_tls_policy\x18\x03 \x01(\x0b\x32\x35.google.cloud.networksecurity.v1beta1.ClientTlsPolicyB\x03\xe0\x41\x02\"\xab\x01\n\x1cUpdateClientTlsPolicyRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12U\n\x11\x63lient_tls_policy\x18\x02 \x01(\x0b\x32\x35.google.cloud.networksecurity.v1beta1.ClientTlsPolicyB\x03\xe0\x41\x02\"d\n\x1c\x44\x65leteClientTlsPolicyRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.networksecurity.googleapis.com/ClientTlsPolicyB\x8e\x02\n(com.google.cloud.networksecurity.v1beta1B\x14\x43lientTlsPolicyProtoP\x01ZRcloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb;networksecuritypb\xaa\x02$Google.Cloud.NetworkSecurity.V1Beta1\xca\x02$Google\\Cloud\\NetworkSecurity\\V1beta1\xea\x02\'Google::Cloud::NetworkSecurity::V1beta1b\x06proto3"
|
15
|
+
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
|
+
|
18
|
+
begin
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
20
|
+
rescue TypeError => e
|
21
|
+
# Compatibility code: will be removed in the next major version.
|
22
|
+
require 'google/protobuf/descriptor_pb'
|
23
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
24
|
+
parsed.clear_dependency
|
25
|
+
serialized = parsed.class.encode(parsed)
|
26
|
+
file = pool.add_serialized_file(serialized)
|
27
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
28
|
+
imports = [
|
29
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
30
|
+
["google.cloud.networksecurity.v1beta1.CertificateProvider", "google/cloud/networksecurity/v1beta1/tls.proto"],
|
31
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
32
|
+
]
|
33
|
+
imports.each do |type_name, expected_filename|
|
34
|
+
import_file = pool.lookup(type_name).file_descriptor
|
35
|
+
if import_file.name != expected_filename
|
36
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
47
37
|
end
|
48
38
|
end
|
39
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
40
|
+
warn "This will become an error in the next major version."
|
49
41
|
end
|
50
42
|
|
51
43
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/networksecurity/v1beta1/common.proto
|
3
4
|
|
@@ -6,18 +7,32 @@ require 'google/protobuf'
|
|
6
7
|
require 'google/api/field_behavior_pb'
|
7
8
|
require 'google/protobuf/timestamp_pb'
|
8
9
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
10
|
+
|
11
|
+
descriptor_data = "\n1google/cloud/networksecurity/v1beta1/common.proto\x12$google.cloud.networksecurity.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x42\x85\x02\n(com.google.cloud.networksecurity.v1beta1B\x0b\x43ommonProtoP\x01ZRcloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb;networksecuritypb\xaa\x02$Google.Cloud.NetworkSecurity.V1Beta1\xca\x02$Google\\Cloud\\NetworkSecurity\\V1beta1\xea\x02\'Google::Cloud::NetworkSecurity::V1beta1b\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
27
|
+
]
|
28
|
+
imports.each do |type_name, expected_filename|
|
29
|
+
import_file = pool.lookup(type_name).file_descriptor
|
30
|
+
if import_file.name != expected_filename
|
31
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
19
32
|
end
|
20
33
|
end
|
34
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
35
|
+
warn "This will become an error in the next major version."
|
21
36
|
end
|
22
37
|
|
23
38
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/networksecurity/v1beta1/network_security.proto
|
3
4
|
|
@@ -10,9 +11,31 @@ require 'google/cloud/networksecurity/v1beta1/client_tls_policy_pb'
|
|
10
11
|
require 'google/cloud/networksecurity/v1beta1/server_tls_policy_pb'
|
11
12
|
require 'google/longrunning/operations_pb'
|
12
13
|
|
13
|
-
|
14
|
-
|
14
|
+
|
15
|
+
descriptor_data = "\n;google/cloud/networksecurity/v1beta1/network_security.proto\x12$google.cloud.networksecurity.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a?google/cloud/networksecurity/v1beta1/authorization_policy.proto\x1a<google/cloud/networksecurity/v1beta1/client_tls_policy.proto\x1a<google/cloud/networksecurity/v1beta1/server_tls_policy.proto\x1a#google/longrunning/operations.proto2\xde\"\n\x0fNetworkSecurity\x12\xfd\x01\n\x19ListAuthorizationPolicies\x12\x46.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest\x1aG.google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse\"O\x82\xd3\xe4\x93\x02@\x12>/v1beta1/{parent=projects/*/locations/*}/authorizationPolicies\xda\x41\x06parent\x12\xe7\x01\n\x16GetAuthorizationPolicy\x12\x43.google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest\x1a\x39.google.cloud.networksecurity.v1beta1.AuthorizationPolicy\"M\x82\xd3\xe4\x93\x02@\x12>/v1beta1/{name=projects/*/locations/*/authorizationPolicies/*}\xda\x41\x04name\x12\xe7\x02\n\x19\x43reateAuthorizationPolicy\x12\x46.google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest\x1a\x1d.google.longrunning.Operation\"\xe2\x01\x82\xd3\xe4\x93\x02V\">/v1beta1/{parent=projects/*/locations/*}/authorizationPolicies:\x14\x61uthorization_policy\xda\x41\x33parent,authorization_policy,authorization_policy_id\xca\x41M\n\x13\x41uthorizationPolicy\x12\x36google.cloud.networksecurity.v1beta1.OperationMetadata\x12\xe9\x02\n\x19UpdateAuthorizationPolicy\x12\x46.google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest\x1a\x1d.google.longrunning.Operation\"\xe4\x01\x82\xd3\xe4\x93\x02k2S/v1beta1/{authorization_policy.name=projects/*/locations/*/authorizationPolicies/*}:\x14\x61uthorization_policy\xda\x41 authorization_policy,update_mask\xca\x41M\n\x13\x41uthorizationPolicy\x12\x36google.cloud.networksecurity.v1beta1.OperationMetadata\x12\xa4\x02\n\x19\x44\x65leteAuthorizationPolicy\x12\x46.google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest\x1a\x1d.google.longrunning.Operation\"\x9f\x01\x82\xd3\xe4\x93\x02@*>/v1beta1/{name=projects/*/locations/*/authorizationPolicies/*}\xda\x41\x04name\xca\x41O\n\x15google.protobuf.Empty\x12\x36google.cloud.networksecurity.v1beta1.OperationMetadata\x12\xed\x01\n\x15ListServerTlsPolicies\x12\x42.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest\x1a\x43.google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse\"K\x82\xd3\xe4\x93\x02<\x12:/v1beta1/{parent=projects/*/locations/*}/serverTlsPolicies\xda\x41\x06parent\x12\xd7\x01\n\x12GetServerTlsPolicy\x12?.google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest\x1a\x35.google.cloud.networksecurity.v1beta1.ServerTlsPolicy\"I\x82\xd3\xe4\x93\x02<\x12:/v1beta1/{name=projects/*/locations/*/serverTlsPolicies/*}\xda\x41\x04name\x12\xce\x02\n\x15\x43reateServerTlsPolicy\x12\x42.google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest\x1a\x1d.google.longrunning.Operation\"\xd1\x01\x82\xd3\xe4\x93\x02O\":/v1beta1/{parent=projects/*/locations/*}/serverTlsPolicies:\x11server_tls_policy\xda\x41-parent,server_tls_policy,server_tls_policy_id\xca\x41I\n\x0fServerTlsPolicy\x12\x36google.cloud.networksecurity.v1beta1.OperationMetadata\x12\xd0\x02\n\x15UpdateServerTlsPolicy\x12\x42.google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest\x1a\x1d.google.longrunning.Operation\"\xd3\x01\x82\xd3\xe4\x93\x02\x61\x32L/v1beta1/{server_tls_policy.name=projects/*/locations/*/serverTlsPolicies/*}:\x11server_tls_policy\xda\x41\x1dserver_tls_policy,update_mask\xca\x41I\n\x0fServerTlsPolicy\x12\x36google.cloud.networksecurity.v1beta1.OperationMetadata\x12\x98\x02\n\x15\x44\x65leteServerTlsPolicy\x12\x42.google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest\x1a\x1d.google.longrunning.Operation\"\x9b\x01\x82\xd3\xe4\x93\x02<*:/v1beta1/{name=projects/*/locations/*/serverTlsPolicies/*}\xda\x41\x04name\xca\x41O\n\x15google.protobuf.Empty\x12\x36google.cloud.networksecurity.v1beta1.OperationMetadata\x12\xed\x01\n\x15ListClientTlsPolicies\x12\x42.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest\x1a\x43.google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse\"K\x82\xd3\xe4\x93\x02<\x12:/v1beta1/{parent=projects/*/locations/*}/clientTlsPolicies\xda\x41\x06parent\x12\xd7\x01\n\x12GetClientTlsPolicy\x12?.google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest\x1a\x35.google.cloud.networksecurity.v1beta1.ClientTlsPolicy\"I\x82\xd3\xe4\x93\x02<\x12:/v1beta1/{name=projects/*/locations/*/clientTlsPolicies/*}\xda\x41\x04name\x12\xce\x02\n\x15\x43reateClientTlsPolicy\x12\x42.google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest\x1a\x1d.google.longrunning.Operation\"\xd1\x01\x82\xd3\xe4\x93\x02O\":/v1beta1/{parent=projects/*/locations/*}/clientTlsPolicies:\x11\x63lient_tls_policy\xda\x41-parent,client_tls_policy,client_tls_policy_id\xca\x41I\n\x0f\x43lientTlsPolicy\x12\x36google.cloud.networksecurity.v1beta1.OperationMetadata\x12\xd0\x02\n\x15UpdateClientTlsPolicy\x12\x42.google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest\x1a\x1d.google.longrunning.Operation\"\xd3\x01\x82\xd3\xe4\x93\x02\x61\x32L/v1beta1/{client_tls_policy.name=projects/*/locations/*/clientTlsPolicies/*}:\x11\x63lient_tls_policy\xda\x41\x1d\x63lient_tls_policy,update_mask\xca\x41I\n\x0f\x43lientTlsPolicy\x12\x36google.cloud.networksecurity.v1beta1.OperationMetadata\x12\x98\x02\n\x15\x44\x65leteClientTlsPolicy\x12\x42.google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest\x1a\x1d.google.longrunning.Operation\"\x9b\x01\x82\xd3\xe4\x93\x02<*:/v1beta1/{name=projects/*/locations/*/clientTlsPolicies/*}\xda\x41\x04name\xca\x41O\n\x15google.protobuf.Empty\x12\x36google.cloud.networksecurity.v1beta1.OperationMetadata\x1aR\xca\x41\x1enetworksecurity.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xf8\x01\n(com.google.cloud.networksecurity.v1beta1P\x01ZRcloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb;networksecuritypb\xaa\x02$Google.Cloud.NetworkSecurity.V1Beta1\xca\x02$Google\\Cloud\\NetworkSecurity\\V1beta1\xea\x02\'Google::Cloud::NetworkSecurity::V1beta1b\x06proto3"
|
16
|
+
|
17
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
|
+
|
19
|
+
begin
|
20
|
+
pool.add_serialized_file(descriptor_data)
|
21
|
+
rescue TypeError => e
|
22
|
+
# Compatibility code: will be removed in the next major version.
|
23
|
+
require 'google/protobuf/descriptor_pb'
|
24
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
25
|
+
parsed.clear_dependency
|
26
|
+
serialized = parsed.class.encode(parsed)
|
27
|
+
file = pool.add_serialized_file(serialized)
|
28
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
29
|
+
imports = [
|
30
|
+
]
|
31
|
+
imports.each do |type_name, expected_filename|
|
32
|
+
import_file = pool.lookup(type_name).file_descriptor
|
33
|
+
if import_file.name != expected_filename
|
34
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
35
|
+
end
|
15
36
|
end
|
37
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
38
|
+
warn "This will become an error in the next major version."
|
16
39
|
end
|
17
40
|
|
18
41
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/networksecurity/v1beta1/server_tls_policy.proto
|
3
4
|
|
@@ -9,46 +10,34 @@ require 'google/cloud/networksecurity/v1beta1/tls_pb'
|
|
9
10
|
require 'google/protobuf/field_mask_pb'
|
10
11
|
require 'google/protobuf/timestamp_pb'
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
add_message "google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest" do
|
37
|
-
optional :name, :string, 1
|
38
|
-
end
|
39
|
-
add_message "google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest" do
|
40
|
-
optional :parent, :string, 1
|
41
|
-
optional :server_tls_policy_id, :string, 2
|
42
|
-
optional :server_tls_policy, :message, 3, "google.cloud.networksecurity.v1beta1.ServerTlsPolicy"
|
43
|
-
end
|
44
|
-
add_message "google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest" do
|
45
|
-
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
46
|
-
optional :server_tls_policy, :message, 2, "google.cloud.networksecurity.v1beta1.ServerTlsPolicy"
|
47
|
-
end
|
48
|
-
add_message "google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest" do
|
49
|
-
optional :name, :string, 1
|
13
|
+
|
14
|
+
descriptor_data = "\n<google/cloud/networksecurity/v1beta1/server_tls_policy.proto\x12$google.cloud.networksecurity.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a.google/cloud/networksecurity/v1beta1/tls.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xce\x05\n\x0fServerTlsPolicy\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12Q\n\x06labels\x18\x05 \x03(\x0b\x32\x41.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.LabelsEntry\x12\x12\n\nallow_open\x18\x06 \x01(\x08\x12U\n\x12server_certificate\x18\x07 \x01(\x0b\x32\x39.google.cloud.networksecurity.v1beta1.CertificateProvider\x12U\n\x0bmtls_policy\x18\x08 \x01(\x0b\x32@.google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy\x1a^\n\nMTLSPolicy\x12P\n\x14\x63lient_validation_ca\x18\x01 \x03(\x0b\x32\x32.google.cloud.networksecurity.v1beta1.ValidationCA\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x82\x01\xea\x41\x7f\n.networksecurity.googleapis.com/ServerTlsPolicy\x12Mprojects/{project}/locations/{location}/serverTlsPolicies/{server_tls_policy}\"\x80\x01\n\x1cListServerTlsPoliciesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x8c\x01\n\x1dListServerTlsPoliciesResponse\x12R\n\x13server_tls_policies\x18\x01 \x03(\x0b\x32\x35.google.cloud.networksecurity.v1beta1.ServerTlsPolicy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"a\n\x19GetServerTlsPolicyRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.networksecurity.googleapis.com/ServerTlsPolicy\"\xe0\x01\n\x1c\x43reateServerTlsPolicyRequest\x12\x46\n\x06parent\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\x12.networksecurity.googleapis.com/ServerTlsPolicy\x12!\n\x14server_tls_policy_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12U\n\x11server_tls_policy\x18\x03 \x01(\x0b\x32\x35.google.cloud.networksecurity.v1beta1.ServerTlsPolicyB\x03\xe0\x41\x02\"\xab\x01\n\x1cUpdateServerTlsPolicyRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12U\n\x11server_tls_policy\x18\x02 \x01(\x0b\x32\x35.google.cloud.networksecurity.v1beta1.ServerTlsPolicyB\x03\xe0\x41\x02\"d\n\x1c\x44\x65leteServerTlsPolicyRequest\x12\x44\n\x04name\x18\x01 \x01(\tB6\xe0\x41\x02\xfa\x41\x30\n.networksecurity.googleapis.com/ServerTlsPolicyB\x8e\x02\n(com.google.cloud.networksecurity.v1beta1B\x14ServerTlsPolicyProtoP\x01ZRcloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb;networksecuritypb\xaa\x02$Google.Cloud.NetworkSecurity.V1Beta1\xca\x02$Google\\Cloud\\NetworkSecurity\\V1beta1\xea\x02\'Google::Cloud::NetworkSecurity::V1beta1b\x06proto3"
|
15
|
+
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
|
+
|
18
|
+
begin
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
20
|
+
rescue TypeError => e
|
21
|
+
# Compatibility code: will be removed in the next major version.
|
22
|
+
require 'google/protobuf/descriptor_pb'
|
23
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
24
|
+
parsed.clear_dependency
|
25
|
+
serialized = parsed.class.encode(parsed)
|
26
|
+
file = pool.add_serialized_file(serialized)
|
27
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
28
|
+
imports = [
|
29
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
30
|
+
["google.cloud.networksecurity.v1beta1.CertificateProvider", "google/cloud/networksecurity/v1beta1/tls.proto"],
|
31
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
32
|
+
]
|
33
|
+
imports.each do |type_name, expected_filename|
|
34
|
+
import_file = pool.lookup(type_name).file_descriptor
|
35
|
+
if import_file.name != expected_filename
|
36
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
50
37
|
end
|
51
38
|
end
|
39
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
40
|
+
warn "This will become an error in the next major version."
|
52
41
|
end
|
53
42
|
|
54
43
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/networksecurity/v1beta1/tls.proto
|
3
4
|
|
@@ -5,27 +6,31 @@ require 'google/protobuf'
|
|
5
6
|
|
6
7
|
require 'google/api/field_behavior_pb'
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
9
|
+
|
10
|
+
descriptor_data = "\n.google/cloud/networksecurity/v1beta1/tls.proto\x12$google.cloud.networksecurity.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\"\'\n\x0cGrpcEndpoint\x12\x17\n\ntarget_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\xcf\x01\n\x0cValidationCA\x12K\n\rgrpc_endpoint\x18\x02 \x01(\x0b\x32\x32.google.cloud.networksecurity.v1beta1.GrpcEndpointH\x00\x12j\n\x1d\x63\x65rtificate_provider_instance\x18\x03 \x01(\x0b\x32\x41.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceH\x00\x42\x06\n\x04type\";\n\x1b\x43\x65rtificateProviderInstance\x12\x1c\n\x0fplugin_instance\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\xd6\x01\n\x13\x43\x65rtificateProvider\x12K\n\rgrpc_endpoint\x18\x02 \x01(\x0b\x32\x32.google.cloud.networksecurity.v1beta1.GrpcEndpointH\x00\x12j\n\x1d\x63\x65rtificate_provider_instance\x18\x03 \x01(\x0b\x32\x41.google.cloud.networksecurity.v1beta1.CertificateProviderInstanceH\x00\x42\x06\n\x04typeB\x82\x02\n(com.google.cloud.networksecurity.v1beta1B\x08TlsProtoP\x01ZRcloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb;networksecuritypb\xaa\x02$Google.Cloud.NetworkSecurity.V1Beta1\xca\x02$Google\\Cloud\\NetworkSecurity\\V1beta1\xea\x02\'Google::Cloud::NetworkSecurity::V1beta1b\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
|
14
|
+
begin
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
16
|
+
rescue TypeError => e
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
+
parsed.clear_dependency
|
21
|
+
serialized = parsed.class.encode(parsed)
|
22
|
+
file = pool.add_serialized_file(serialized)
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
+
imports = [
|
25
|
+
]
|
26
|
+
imports.each do |type_name, expected_filename|
|
27
|
+
import_file = pool.lookup(type_name).file_descriptor
|
28
|
+
if import_file.name != expected_filename
|
29
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
27
30
|
end
|
28
31
|
end
|
32
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
33
|
+
warn "This will become an error in the next major version."
|
29
34
|
end
|
30
35
|
|
31
36
|
module Google
|