google-cloud-network_security-v1beta1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +167 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google/cloud/network_security/v1beta1/network_security/client.rb +1517 -0
- data/lib/google/cloud/network_security/v1beta1/network_security/credentials.rb +47 -0
- data/lib/google/cloud/network_security/v1beta1/network_security/operations.rb +664 -0
- data/lib/google/cloud/network_security/v1beta1/network_security/paths.rb +107 -0
- data/lib/google/cloud/network_security/v1beta1/network_security.rb +48 -0
- data/lib/google/cloud/network_security/v1beta1/version.rb +28 -0
- data/lib/google/cloud/network_security/v1beta1.rb +38 -0
- data/lib/google/cloud/networksecurity/v1beta1/authorization_policy_pb.rb +93 -0
- data/lib/google/cloud/networksecurity/v1beta1/client_tls_policy_pb.rb +65 -0
- data/lib/google/cloud/networksecurity/v1beta1/common_pb.rb +31 -0
- data/lib/google/cloud/networksecurity/v1beta1/network_security_pb.rb +24 -0
- data/lib/google/cloud/networksecurity/v1beta1/network_security_services_pb.rb +72 -0
- data/lib/google/cloud/networksecurity/v1beta1/server_tls_policy_pb.rb +69 -0
- data/lib/google/cloud/networksecurity/v1beta1/tls_pb.rb +42 -0
- data/lib/google-cloud-network_security-v1beta1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/resource.rb +283 -0
- data/proto_docs/google/cloud/networksecurity/v1beta1/authorization_policy.rb +252 -0
- data/proto_docs/google/cloud/networksecurity/v1beta1/client_tls_policy.rb +160 -0
- data/proto_docs/google/cloud/networksecurity/v1beta1/common.rb +56 -0
- data/proto_docs/google/cloud/networksecurity/v1beta1/server_tls_policy.rb +176 -0
- data/proto_docs/google/cloud/networksecurity/v1beta1/tls.rb +82 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +225 -0
@@ -0,0 +1,107 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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 V1beta1
|
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 ClientTlsPolicy resource string.
|
48
|
+
#
|
49
|
+
# The resource will be in the following format:
|
50
|
+
#
|
51
|
+
# `projects/{project}/locations/{location}/clientTlsPolicies/{client_tls_policy}`
|
52
|
+
#
|
53
|
+
# @param project [String]
|
54
|
+
# @param location [String]
|
55
|
+
# @param client_tls_policy [String]
|
56
|
+
#
|
57
|
+
# @return [::String]
|
58
|
+
def client_tls_policy_path project:, location:, client_tls_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}/clientTlsPolicies/#{client_tls_policy}"
|
63
|
+
end
|
64
|
+
|
65
|
+
##
|
66
|
+
# Create a fully-qualified Location resource string.
|
67
|
+
#
|
68
|
+
# The resource will be in the following format:
|
69
|
+
#
|
70
|
+
# `projects/{project}/locations/{location}`
|
71
|
+
#
|
72
|
+
# @param project [String]
|
73
|
+
# @param location [String]
|
74
|
+
#
|
75
|
+
# @return [::String]
|
76
|
+
def location_path project:, location:
|
77
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
78
|
+
|
79
|
+
"projects/#{project}/locations/#{location}"
|
80
|
+
end
|
81
|
+
|
82
|
+
##
|
83
|
+
# Create a fully-qualified ServerTlsPolicy resource string.
|
84
|
+
#
|
85
|
+
# The resource will be in the following format:
|
86
|
+
#
|
87
|
+
# `projects/{project}/locations/{location}/serverTlsPolicies/{server_tls_policy}`
|
88
|
+
#
|
89
|
+
# @param project [String]
|
90
|
+
# @param location [String]
|
91
|
+
# @param server_tls_policy [String]
|
92
|
+
#
|
93
|
+
# @return [::String]
|
94
|
+
def server_tls_policy_path project:, location:, server_tls_policy:
|
95
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
96
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
97
|
+
|
98
|
+
"projects/#{project}/locations/#{location}/serverTlsPolicies/#{server_tls_policy}"
|
99
|
+
end
|
100
|
+
|
101
|
+
extend self
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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/v1beta1/version"
|
24
|
+
|
25
|
+
require "google/cloud/network_security/v1beta1/network_security/credentials"
|
26
|
+
require "google/cloud/network_security/v1beta1/network_security/paths"
|
27
|
+
require "google/cloud/network_security/v1beta1/network_security/operations"
|
28
|
+
require "google/cloud/network_security/v1beta1/network_security/client"
|
29
|
+
|
30
|
+
module Google
|
31
|
+
module Cloud
|
32
|
+
module NetworkSecurity
|
33
|
+
module V1beta1
|
34
|
+
##
|
35
|
+
# To load this service and instantiate a client:
|
36
|
+
#
|
37
|
+
# require "google/cloud/network_security/v1beta1/network_security"
|
38
|
+
# client = ::Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Client.new
|
39
|
+
#
|
40
|
+
module NetworkSecurity
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
helper_path = ::File.join __dir__, "network_security", "helpers.rb"
|
48
|
+
require "google/cloud/network_security/v1beta1/network_security/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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 V1beta1
|
24
|
+
VERSION = "0.1.0"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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"
|
20
|
+
require "google/cloud/network_security/v1beta1/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module NetworkSecurity
|
25
|
+
##
|
26
|
+
# To load this package, including all its services, and instantiate a client:
|
27
|
+
#
|
28
|
+
# require "google/cloud/network_security/v1beta1"
|
29
|
+
# client = ::Google::Cloud::NetworkSecurity::V1beta1::NetworkSecurity::Client.new
|
30
|
+
#
|
31
|
+
module V1beta1
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
helper_path = ::File.join __dir__, "v1beta1", "_helpers.rb"
|
38
|
+
require "google/cloud/network_security/v1beta1/_helpers" if ::File.file? helper_path
|
@@ -0,0 +1,93 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/networksecurity/v1beta1/authorization_policy.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/protobuf/field_mask_pb'
|
9
|
+
require 'google/protobuf/timestamp_pb'
|
10
|
+
require 'google/api/annotations_pb'
|
11
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
+
add_file("google/cloud/networksecurity/v1beta1/authorization_policy.proto", :syntax => :proto3) do
|
13
|
+
add_message "google.cloud.networksecurity.v1beta1.AuthorizationPolicy" do
|
14
|
+
optional :name, :string, 1
|
15
|
+
optional :description, :string, 2
|
16
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
17
|
+
optional :update_time, :message, 4, "google.protobuf.Timestamp"
|
18
|
+
map :labels, :string, :string, 5
|
19
|
+
optional :action, :enum, 6, "google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action"
|
20
|
+
repeated :rules, :message, 7, "google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule"
|
21
|
+
end
|
22
|
+
add_message "google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule" do
|
23
|
+
repeated :sources, :message, 1, "google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source"
|
24
|
+
repeated :destinations, :message, 2, "google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination"
|
25
|
+
end
|
26
|
+
add_message "google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source" do
|
27
|
+
repeated :principals, :string, 1
|
28
|
+
repeated :ip_blocks, :string, 2
|
29
|
+
end
|
30
|
+
add_message "google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination" do
|
31
|
+
repeated :hosts, :string, 1
|
32
|
+
repeated :ports, :uint32, 2
|
33
|
+
repeated :methods, :string, 4
|
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
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
module Google
|
75
|
+
module Cloud
|
76
|
+
module NetworkSecurity
|
77
|
+
module V1beta1
|
78
|
+
AuthorizationPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.AuthorizationPolicy").msgclass
|
79
|
+
AuthorizationPolicy::Rule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule").msgclass
|
80
|
+
AuthorizationPolicy::Rule::Source = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Source").msgclass
|
81
|
+
AuthorizationPolicy::Rule::Destination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination").msgclass
|
82
|
+
AuthorizationPolicy::Rule::Destination::HttpHeaderMatch = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch").msgclass
|
83
|
+
AuthorizationPolicy::Action = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.AuthorizationPolicy.Action").enummodule
|
84
|
+
ListAuthorizationPoliciesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesRequest").msgclass
|
85
|
+
ListAuthorizationPoliciesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.ListAuthorizationPoliciesResponse").msgclass
|
86
|
+
GetAuthorizationPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.GetAuthorizationPolicyRequest").msgclass
|
87
|
+
CreateAuthorizationPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.CreateAuthorizationPolicyRequest").msgclass
|
88
|
+
UpdateAuthorizationPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.UpdateAuthorizationPolicyRequest").msgclass
|
89
|
+
DeleteAuthorizationPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.DeleteAuthorizationPolicyRequest").msgclass
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
@@ -0,0 +1,65 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/networksecurity/v1beta1/client_tls_policy.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/cloud/networksecurity/v1beta1/tls_pb'
|
9
|
+
require 'google/protobuf/field_mask_pb'
|
10
|
+
require 'google/protobuf/timestamp_pb'
|
11
|
+
require 'google/api/annotations_pb'
|
12
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
|
+
add_file("google/cloud/networksecurity/v1beta1/client_tls_policy.proto", :syntax => :proto3) do
|
14
|
+
add_message "google.cloud.networksecurity.v1beta1.ClientTlsPolicy" do
|
15
|
+
optional :name, :string, 1
|
16
|
+
optional :description, :string, 2
|
17
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
18
|
+
optional :update_time, :message, 4, "google.protobuf.Timestamp"
|
19
|
+
map :labels, :string, :string, 5
|
20
|
+
optional :sni, :string, 6
|
21
|
+
optional :client_certificate, :message, 7, "google.cloud.networksecurity.v1beta1.CertificateProvider"
|
22
|
+
repeated :server_validation_ca, :message, 8, "google.cloud.networksecurity.v1beta1.ValidationCA"
|
23
|
+
end
|
24
|
+
add_message "google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest" do
|
25
|
+
optional :parent, :string, 1
|
26
|
+
optional :page_size, :int32, 2
|
27
|
+
optional :page_token, :string, 3
|
28
|
+
end
|
29
|
+
add_message "google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse" do
|
30
|
+
repeated :client_tls_policies, :message, 1, "google.cloud.networksecurity.v1beta1.ClientTlsPolicy"
|
31
|
+
optional :next_page_token, :string, 2
|
32
|
+
end
|
33
|
+
add_message "google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest" do
|
34
|
+
optional :name, :string, 1
|
35
|
+
end
|
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
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
module Google
|
52
|
+
module Cloud
|
53
|
+
module NetworkSecurity
|
54
|
+
module V1beta1
|
55
|
+
ClientTlsPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.ClientTlsPolicy").msgclass
|
56
|
+
ListClientTlsPoliciesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesRequest").msgclass
|
57
|
+
ListClientTlsPoliciesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.ListClientTlsPoliciesResponse").msgclass
|
58
|
+
GetClientTlsPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.GetClientTlsPolicyRequest").msgclass
|
59
|
+
CreateClientTlsPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.CreateClientTlsPolicyRequest").msgclass
|
60
|
+
UpdateClientTlsPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.UpdateClientTlsPolicyRequest").msgclass
|
61
|
+
DeleteClientTlsPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.DeleteClientTlsPolicyRequest").msgclass
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/networksecurity/v1beta1/common.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
8
|
+
require 'google/api/annotations_pb'
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("google/cloud/networksecurity/v1beta1/common.proto", :syntax => :proto3) do
|
11
|
+
add_message "google.cloud.networksecurity.v1beta1.OperationMetadata" do
|
12
|
+
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
13
|
+
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
14
|
+
optional :target, :string, 3
|
15
|
+
optional :verb, :string, 4
|
16
|
+
optional :status_message, :string, 5
|
17
|
+
optional :requested_cancellation, :bool, 6
|
18
|
+
optional :api_version, :string, 7
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Cloud
|
25
|
+
module NetworkSecurity
|
26
|
+
module V1beta1
|
27
|
+
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.OperationMetadata").msgclass
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/networksecurity/v1beta1/network_security.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/client_pb'
|
8
|
+
require 'google/cloud/networksecurity/v1beta1/authorization_policy_pb'
|
9
|
+
require 'google/cloud/networksecurity/v1beta1/client_tls_policy_pb'
|
10
|
+
require 'google/cloud/networksecurity/v1beta1/server_tls_policy_pb'
|
11
|
+
require 'google/longrunning/operations_pb'
|
12
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
|
+
add_file("google/cloud/networksecurity/v1beta1/network_security.proto", :syntax => :proto3) do
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
module Google
|
18
|
+
module Cloud
|
19
|
+
module NetworkSecurity
|
20
|
+
module V1beta1
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/networksecurity/v1beta1/network_security.proto for package 'Google.Cloud.NetworkSecurity.V1beta1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2021 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/cloud/networksecurity/v1beta1/network_security_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module NetworkSecurity
|
25
|
+
module V1beta1
|
26
|
+
module NetworkSecurity
|
27
|
+
class Service
|
28
|
+
|
29
|
+
include ::GRPC::GenericService
|
30
|
+
|
31
|
+
self.marshal_class_method = :encode
|
32
|
+
self.unmarshal_class_method = :decode
|
33
|
+
self.service_name = 'google.cloud.networksecurity.v1beta1.NetworkSecurity'
|
34
|
+
|
35
|
+
# Lists AuthorizationPolicies in a given project and location.
|
36
|
+
rpc :ListAuthorizationPolicies, ::Google::Cloud::NetworkSecurity::V1beta1::ListAuthorizationPoliciesRequest, ::Google::Cloud::NetworkSecurity::V1beta1::ListAuthorizationPoliciesResponse
|
37
|
+
# Gets details of a single AuthorizationPolicy.
|
38
|
+
rpc :GetAuthorizationPolicy, ::Google::Cloud::NetworkSecurity::V1beta1::GetAuthorizationPolicyRequest, ::Google::Cloud::NetworkSecurity::V1beta1::AuthorizationPolicy
|
39
|
+
# Creates a new AuthorizationPolicy in a given project and location.
|
40
|
+
rpc :CreateAuthorizationPolicy, ::Google::Cloud::NetworkSecurity::V1beta1::CreateAuthorizationPolicyRequest, ::Google::Longrunning::Operation
|
41
|
+
# Updates the parameters of a single AuthorizationPolicy.
|
42
|
+
rpc :UpdateAuthorizationPolicy, ::Google::Cloud::NetworkSecurity::V1beta1::UpdateAuthorizationPolicyRequest, ::Google::Longrunning::Operation
|
43
|
+
# Deletes a single AuthorizationPolicy.
|
44
|
+
rpc :DeleteAuthorizationPolicy, ::Google::Cloud::NetworkSecurity::V1beta1::DeleteAuthorizationPolicyRequest, ::Google::Longrunning::Operation
|
45
|
+
# Lists ServerTlsPolicies in a given project and location.
|
46
|
+
rpc :ListServerTlsPolicies, ::Google::Cloud::NetworkSecurity::V1beta1::ListServerTlsPoliciesRequest, ::Google::Cloud::NetworkSecurity::V1beta1::ListServerTlsPoliciesResponse
|
47
|
+
# Gets details of a single ServerTlsPolicy.
|
48
|
+
rpc :GetServerTlsPolicy, ::Google::Cloud::NetworkSecurity::V1beta1::GetServerTlsPolicyRequest, ::Google::Cloud::NetworkSecurity::V1beta1::ServerTlsPolicy
|
49
|
+
# Creates a new ServerTlsPolicy in a given project and location.
|
50
|
+
rpc :CreateServerTlsPolicy, ::Google::Cloud::NetworkSecurity::V1beta1::CreateServerTlsPolicyRequest, ::Google::Longrunning::Operation
|
51
|
+
# Updates the parameters of a single ServerTlsPolicy.
|
52
|
+
rpc :UpdateServerTlsPolicy, ::Google::Cloud::NetworkSecurity::V1beta1::UpdateServerTlsPolicyRequest, ::Google::Longrunning::Operation
|
53
|
+
# Deletes a single ServerTlsPolicy.
|
54
|
+
rpc :DeleteServerTlsPolicy, ::Google::Cloud::NetworkSecurity::V1beta1::DeleteServerTlsPolicyRequest, ::Google::Longrunning::Operation
|
55
|
+
# Lists ClientTlsPolicies in a given project and location.
|
56
|
+
rpc :ListClientTlsPolicies, ::Google::Cloud::NetworkSecurity::V1beta1::ListClientTlsPoliciesRequest, ::Google::Cloud::NetworkSecurity::V1beta1::ListClientTlsPoliciesResponse
|
57
|
+
# Gets details of a single ClientTlsPolicy.
|
58
|
+
rpc :GetClientTlsPolicy, ::Google::Cloud::NetworkSecurity::V1beta1::GetClientTlsPolicyRequest, ::Google::Cloud::NetworkSecurity::V1beta1::ClientTlsPolicy
|
59
|
+
# Creates a new ClientTlsPolicy in a given project and location.
|
60
|
+
rpc :CreateClientTlsPolicy, ::Google::Cloud::NetworkSecurity::V1beta1::CreateClientTlsPolicyRequest, ::Google::Longrunning::Operation
|
61
|
+
# Updates the parameters of a single ClientTlsPolicy.
|
62
|
+
rpc :UpdateClientTlsPolicy, ::Google::Cloud::NetworkSecurity::V1beta1::UpdateClientTlsPolicyRequest, ::Google::Longrunning::Operation
|
63
|
+
# Deletes a single ClientTlsPolicy.
|
64
|
+
rpc :DeleteClientTlsPolicy, ::Google::Cloud::NetworkSecurity::V1beta1::DeleteClientTlsPolicyRequest, ::Google::Longrunning::Operation
|
65
|
+
end
|
66
|
+
|
67
|
+
Stub = Service.rpc_stub_class
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,69 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/networksecurity/v1beta1/server_tls_policy.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/cloud/networksecurity/v1beta1/tls_pb'
|
9
|
+
require 'google/protobuf/field_mask_pb'
|
10
|
+
require 'google/protobuf/timestamp_pb'
|
11
|
+
require 'google/api/annotations_pb'
|
12
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
|
+
add_file("google/cloud/networksecurity/v1beta1/server_tls_policy.proto", :syntax => :proto3) do
|
14
|
+
add_message "google.cloud.networksecurity.v1beta1.ServerTlsPolicy" do
|
15
|
+
optional :name, :string, 1
|
16
|
+
optional :description, :string, 2
|
17
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
18
|
+
optional :update_time, :message, 4, "google.protobuf.Timestamp"
|
19
|
+
map :labels, :string, :string, 5
|
20
|
+
optional :allow_open, :bool, 6
|
21
|
+
optional :server_certificate, :message, 7, "google.cloud.networksecurity.v1beta1.CertificateProvider"
|
22
|
+
optional :mtls_policy, :message, 8, "google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy"
|
23
|
+
end
|
24
|
+
add_message "google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy" do
|
25
|
+
repeated :client_validation_ca, :message, 1, "google.cloud.networksecurity.v1beta1.ValidationCA"
|
26
|
+
end
|
27
|
+
add_message "google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest" do
|
28
|
+
optional :parent, :string, 1
|
29
|
+
optional :page_size, :int32, 2
|
30
|
+
optional :page_token, :string, 3
|
31
|
+
end
|
32
|
+
add_message "google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse" do
|
33
|
+
repeated :server_tls_policies, :message, 1, "google.cloud.networksecurity.v1beta1.ServerTlsPolicy"
|
34
|
+
optional :next_page_token, :string, 2
|
35
|
+
end
|
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
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
module Google
|
55
|
+
module Cloud
|
56
|
+
module NetworkSecurity
|
57
|
+
module V1beta1
|
58
|
+
ServerTlsPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.ServerTlsPolicy").msgclass
|
59
|
+
ServerTlsPolicy::MTLSPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.ServerTlsPolicy.MTLSPolicy").msgclass
|
60
|
+
ListServerTlsPoliciesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesRequest").msgclass
|
61
|
+
ListServerTlsPoliciesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.ListServerTlsPoliciesResponse").msgclass
|
62
|
+
GetServerTlsPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.GetServerTlsPolicyRequest").msgclass
|
63
|
+
CreateServerTlsPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.CreateServerTlsPolicyRequest").msgclass
|
64
|
+
UpdateServerTlsPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.UpdateServerTlsPolicyRequest").msgclass
|
65
|
+
DeleteServerTlsPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.DeleteServerTlsPolicyRequest").msgclass
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/networksecurity/v1beta1/tls.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/annotations_pb'
|
8
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
|
+
add_file("google/cloud/networksecurity/v1beta1/tls.proto", :syntax => :proto3) do
|
10
|
+
add_message "google.cloud.networksecurity.v1beta1.GrpcEndpoint" do
|
11
|
+
optional :target_uri, :string, 1
|
12
|
+
end
|
13
|
+
add_message "google.cloud.networksecurity.v1beta1.ValidationCA" do
|
14
|
+
oneof :type do
|
15
|
+
optional :grpc_endpoint, :message, 2, "google.cloud.networksecurity.v1beta1.GrpcEndpoint"
|
16
|
+
optional :certificate_provider_instance, :message, 3, "google.cloud.networksecurity.v1beta1.CertificateProviderInstance"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
add_message "google.cloud.networksecurity.v1beta1.CertificateProviderInstance" do
|
20
|
+
optional :plugin_instance, :string, 1
|
21
|
+
end
|
22
|
+
add_message "google.cloud.networksecurity.v1beta1.CertificateProvider" do
|
23
|
+
oneof :type do
|
24
|
+
optional :grpc_endpoint, :message, 2, "google.cloud.networksecurity.v1beta1.GrpcEndpoint"
|
25
|
+
optional :certificate_provider_instance, :message, 3, "google.cloud.networksecurity.v1beta1.CertificateProviderInstance"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
module Google
|
32
|
+
module Cloud
|
33
|
+
module NetworkSecurity
|
34
|
+
module V1beta1
|
35
|
+
GrpcEndpoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.GrpcEndpoint").msgclass
|
36
|
+
ValidationCA = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.ValidationCA").msgclass
|
37
|
+
CertificateProviderInstance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.CertificateProviderInstance").msgclass
|
38
|
+
CertificateProvider = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networksecurity.v1beta1.CertificateProvider").msgclass
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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
|
+
# This gem does not autoload during Bundler.require. To load this gem,
|
20
|
+
# issue explicit require statements for the packages desired, e.g.:
|
21
|
+
# require "google/cloud/network_security/v1beta1"
|