google-cloud-network_security-v1beta1 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 +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,160 @@
|
|
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
|
+
# ClientTlsPolicy is a resource that specifies how a client should authenticate
|
25
|
+
# connections to backends of a service. This resource itself does not affect
|
26
|
+
# configuration unless it is attached to a backend service resource.
|
27
|
+
# @!attribute [rw] name
|
28
|
+
# @return [::String]
|
29
|
+
# Required. Name of the ClientTlsPolicy resource. It matches the pattern
|
30
|
+
# `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
|
31
|
+
# @!attribute [rw] description
|
32
|
+
# @return [::String]
|
33
|
+
# Optional. Free-text description of the resource.
|
34
|
+
# @!attribute [r] create_time
|
35
|
+
# @return [::Google::Protobuf::Timestamp]
|
36
|
+
# Output only. The timestamp when the resource was created.
|
37
|
+
# @!attribute [r] update_time
|
38
|
+
# @return [::Google::Protobuf::Timestamp]
|
39
|
+
# Output only. The timestamp when the resource was updated.
|
40
|
+
# @!attribute [rw] labels
|
41
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
42
|
+
# Optional. Set of label tags associated with the resource.
|
43
|
+
# @!attribute [rw] sni
|
44
|
+
# @return [::String]
|
45
|
+
# Optional. Server Name Indication string to present to the server during TLS
|
46
|
+
# handshake. E.g: "secure.example.com".
|
47
|
+
# @!attribute [rw] client_certificate
|
48
|
+
# @return [::Google::Cloud::NetworkSecurity::V1beta1::CertificateProvider]
|
49
|
+
# Optional. Defines a mechanism to provision client identity (public and private keys)
|
50
|
+
# for peer to peer authentication. The presence of this dictates mTLS.
|
51
|
+
# @!attribute [rw] server_validation_ca
|
52
|
+
# @return [::Array<::Google::Cloud::NetworkSecurity::V1beta1::ValidationCA>]
|
53
|
+
# Optional. Defines the mechanism to obtain the Certificate Authority certificate to
|
54
|
+
# validate the server certificate. If empty, client does not validate the
|
55
|
+
# server certificate.
|
56
|
+
class ClientTlsPolicy
|
57
|
+
include ::Google::Protobuf::MessageExts
|
58
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
59
|
+
|
60
|
+
# @!attribute [rw] key
|
61
|
+
# @return [::String]
|
62
|
+
# @!attribute [rw] value
|
63
|
+
# @return [::String]
|
64
|
+
class LabelsEntry
|
65
|
+
include ::Google::Protobuf::MessageExts
|
66
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# Request used by the ListClientTlsPolicies method.
|
71
|
+
# @!attribute [rw] parent
|
72
|
+
# @return [::String]
|
73
|
+
# Required. The project and location from which the ClientTlsPolicies should
|
74
|
+
# be listed, specified in the format `projects/*/locations/{location}`.
|
75
|
+
# @!attribute [rw] page_size
|
76
|
+
# @return [::Integer]
|
77
|
+
# Maximum number of ClientTlsPolicies to return per call.
|
78
|
+
# @!attribute [rw] page_token
|
79
|
+
# @return [::String]
|
80
|
+
# The value returned by the last `ListClientTlsPoliciesResponse`
|
81
|
+
# Indicates that this is a continuation of a prior
|
82
|
+
# `ListClientTlsPolicies` call, and that the system
|
83
|
+
# should return the next page of data.
|
84
|
+
class ListClientTlsPoliciesRequest
|
85
|
+
include ::Google::Protobuf::MessageExts
|
86
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
87
|
+
end
|
88
|
+
|
89
|
+
# Response returned by the ListClientTlsPolicies method.
|
90
|
+
# @!attribute [rw] client_tls_policies
|
91
|
+
# @return [::Array<::Google::Cloud::NetworkSecurity::V1beta1::ClientTlsPolicy>]
|
92
|
+
# List of ClientTlsPolicy resources.
|
93
|
+
# @!attribute [rw] next_page_token
|
94
|
+
# @return [::String]
|
95
|
+
# If there might be more results than those appearing in this response, then
|
96
|
+
# `next_page_token` is included. To get the next set of results, call this
|
97
|
+
# method again using the value of `next_page_token` as `page_token`.
|
98
|
+
class ListClientTlsPoliciesResponse
|
99
|
+
include ::Google::Protobuf::MessageExts
|
100
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
101
|
+
end
|
102
|
+
|
103
|
+
# Request used by the GetClientTlsPolicy method.
|
104
|
+
# @!attribute [rw] name
|
105
|
+
# @return [::String]
|
106
|
+
# Required. A name of the ClientTlsPolicy to get. Must be in the format
|
107
|
+
# `projects/*/locations/{location}/clientTlsPolicies/*`.
|
108
|
+
class GetClientTlsPolicyRequest
|
109
|
+
include ::Google::Protobuf::MessageExts
|
110
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
111
|
+
end
|
112
|
+
|
113
|
+
# Request used by the CreateClientTlsPolicy method.
|
114
|
+
# @!attribute [rw] parent
|
115
|
+
# @return [::String]
|
116
|
+
# Required. The parent resource of the ClientTlsPolicy. Must be in
|
117
|
+
# the format `projects/*/locations/{location}`.
|
118
|
+
# @!attribute [rw] client_tls_policy_id
|
119
|
+
# @return [::String]
|
120
|
+
# Required. Short name of the ClientTlsPolicy resource to be created. This value should
|
121
|
+
# be 1-63 characters long, containing only letters, numbers, hyphens, and
|
122
|
+
# underscores, and should not start with a number. E.g. "client_mtls_policy".
|
123
|
+
# @!attribute [rw] client_tls_policy
|
124
|
+
# @return [::Google::Cloud::NetworkSecurity::V1beta1::ClientTlsPolicy]
|
125
|
+
# Required. ClientTlsPolicy resource to be created.
|
126
|
+
class CreateClientTlsPolicyRequest
|
127
|
+
include ::Google::Protobuf::MessageExts
|
128
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
129
|
+
end
|
130
|
+
|
131
|
+
# Request used by UpdateClientTlsPolicy method.
|
132
|
+
# @!attribute [rw] update_mask
|
133
|
+
# @return [::Google::Protobuf::FieldMask]
|
134
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
135
|
+
# ClientTlsPolicy resource by the update. The fields
|
136
|
+
# specified in the update_mask are relative to the resource, not
|
137
|
+
# the full request. A field will be overwritten if it is in the
|
138
|
+
# mask. If the user does not provide a mask then all fields will be
|
139
|
+
# overwritten.
|
140
|
+
# @!attribute [rw] client_tls_policy
|
141
|
+
# @return [::Google::Cloud::NetworkSecurity::V1beta1::ClientTlsPolicy]
|
142
|
+
# Required. Updated ClientTlsPolicy resource.
|
143
|
+
class UpdateClientTlsPolicyRequest
|
144
|
+
include ::Google::Protobuf::MessageExts
|
145
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
146
|
+
end
|
147
|
+
|
148
|
+
# Request used by the DeleteClientTlsPolicy method.
|
149
|
+
# @!attribute [rw] name
|
150
|
+
# @return [::String]
|
151
|
+
# Required. A name of the ClientTlsPolicy to delete. Must be in
|
152
|
+
# the format `projects/*/locations/{location}/clientTlsPolicies/*`.
|
153
|
+
class DeleteClientTlsPolicyRequest
|
154
|
+
include ::Google::Protobuf::MessageExts
|
155
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
156
|
+
end
|
157
|
+
end
|
158
|
+
end
|
159
|
+
end
|
160
|
+
end
|
@@ -0,0 +1,56 @@
|
|
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
|
+
# Represents the metadata of the long-running operation.
|
25
|
+
# @!attribute [r] create_time
|
26
|
+
# @return [::Google::Protobuf::Timestamp]
|
27
|
+
# Output only. The time the operation was created.
|
28
|
+
# @!attribute [r] end_time
|
29
|
+
# @return [::Google::Protobuf::Timestamp]
|
30
|
+
# Output only. The time the operation finished running.
|
31
|
+
# @!attribute [r] target
|
32
|
+
# @return [::String]
|
33
|
+
# Output only. Server-defined resource path for the target of the operation.
|
34
|
+
# @!attribute [r] verb
|
35
|
+
# @return [::String]
|
36
|
+
# Output only. Name of the verb executed by the operation.
|
37
|
+
# @!attribute [r] status_message
|
38
|
+
# @return [::String]
|
39
|
+
# Output only. Human-readable status of the operation, if any.
|
40
|
+
# @!attribute [r] requested_cancellation
|
41
|
+
# @return [::Boolean]
|
42
|
+
# Output only. Identifies whether the user has requested cancellation
|
43
|
+
# of the operation. Operations that have successfully been cancelled
|
44
|
+
# have [Operation.error][] value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
|
45
|
+
# corresponding to `Code.CANCELLED`.
|
46
|
+
# @!attribute [r] api_version
|
47
|
+
# @return [::String]
|
48
|
+
# Output only. API version used to start the operation.
|
49
|
+
class OperationMetadata
|
50
|
+
include ::Google::Protobuf::MessageExts
|
51
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,176 @@
|
|
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
|
+
# ServerTlsPolicy is a resource that specifies how a server should authenticate
|
25
|
+
# incoming requests. This resource itself does not affect configuration unless
|
26
|
+
# it is attached to a target https proxy or endpoint config selector resource.
|
27
|
+
# @!attribute [rw] name
|
28
|
+
# @return [::String]
|
29
|
+
# Required. Name of the ServerTlsPolicy resource. It matches the pattern
|
30
|
+
# `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
|
31
|
+
# @!attribute [rw] description
|
32
|
+
# @return [::String]
|
33
|
+
# Optional. Free-text description of the resource.
|
34
|
+
# @!attribute [r] create_time
|
35
|
+
# @return [::Google::Protobuf::Timestamp]
|
36
|
+
# Output only. The timestamp when the resource was created.
|
37
|
+
# @!attribute [r] update_time
|
38
|
+
# @return [::Google::Protobuf::Timestamp]
|
39
|
+
# Output only. The timestamp when the resource was updated.
|
40
|
+
# @!attribute [rw] labels
|
41
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
42
|
+
# Optional. Set of label tags associated with the resource.
|
43
|
+
# @!attribute [rw] allow_open
|
44
|
+
# @return [::Boolean]
|
45
|
+
# Optional. Determines if server allows plaintext connections. If set to true, server
|
46
|
+
# allows plain text connections. By default, it is set to false. This setting
|
47
|
+
# is not exclusive of other encryption modes. For example, if allow_open and
|
48
|
+
# mtls_policy are set, server allows both plain text and mTLS connections.
|
49
|
+
# See documentation of other encryption modes to confirm compatibility.
|
50
|
+
# @!attribute [rw] server_certificate
|
51
|
+
# @return [::Google::Cloud::NetworkSecurity::V1beta1::CertificateProvider]
|
52
|
+
# Optional. Defines a mechanism to provision server identity (public and private keys).
|
53
|
+
# Cannot be combined with allow_open as a permissive mode that allows both
|
54
|
+
# plain text and TLS is not supported.
|
55
|
+
# @!attribute [rw] mtls_policy
|
56
|
+
# @return [::Google::Cloud::NetworkSecurity::V1beta1::ServerTlsPolicy::MTLSPolicy]
|
57
|
+
# Optional. Defines a mechanism to provision peer validation certificates for peer to
|
58
|
+
# peer authentication (Mutual TLS - mTLS). If not specified, client
|
59
|
+
# certificate will not be requested. The connection is treated as TLS and not
|
60
|
+
# mTLS. If allow_open and mtls_policy are set, server allows both plain text
|
61
|
+
# and mTLS connections.
|
62
|
+
class ServerTlsPolicy
|
63
|
+
include ::Google::Protobuf::MessageExts
|
64
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
65
|
+
|
66
|
+
# Specification of the MTLSPolicy.
|
67
|
+
# @!attribute [rw] client_validation_ca
|
68
|
+
# @return [::Array<::Google::Cloud::NetworkSecurity::V1beta1::ValidationCA>]
|
69
|
+
# Required. Defines the mechanism to obtain the Certificate Authority certificate to
|
70
|
+
# validate the client certificate.
|
71
|
+
class MTLSPolicy
|
72
|
+
include ::Google::Protobuf::MessageExts
|
73
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
74
|
+
end
|
75
|
+
|
76
|
+
# @!attribute [rw] key
|
77
|
+
# @return [::String]
|
78
|
+
# @!attribute [rw] value
|
79
|
+
# @return [::String]
|
80
|
+
class LabelsEntry
|
81
|
+
include ::Google::Protobuf::MessageExts
|
82
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
# Request used by the ListServerTlsPolicies method.
|
87
|
+
# @!attribute [rw] parent
|
88
|
+
# @return [::String]
|
89
|
+
# Required. The project and location from which the ServerTlsPolicies should
|
90
|
+
# be listed, specified in the format `projects/*/locations/{location}`.
|
91
|
+
# @!attribute [rw] page_size
|
92
|
+
# @return [::Integer]
|
93
|
+
# Maximum number of ServerTlsPolicies to return per call.
|
94
|
+
# @!attribute [rw] page_token
|
95
|
+
# @return [::String]
|
96
|
+
# The value returned by the last `ListServerTlsPoliciesResponse`
|
97
|
+
# Indicates that this is a continuation of a prior
|
98
|
+
# `ListServerTlsPolicies` call, and that the system
|
99
|
+
# should return the next page of data.
|
100
|
+
class ListServerTlsPoliciesRequest
|
101
|
+
include ::Google::Protobuf::MessageExts
|
102
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
103
|
+
end
|
104
|
+
|
105
|
+
# Response returned by the ListServerTlsPolicies method.
|
106
|
+
# @!attribute [rw] server_tls_policies
|
107
|
+
# @return [::Array<::Google::Cloud::NetworkSecurity::V1beta1::ServerTlsPolicy>]
|
108
|
+
# List of ServerTlsPolicy resources.
|
109
|
+
# @!attribute [rw] next_page_token
|
110
|
+
# @return [::String]
|
111
|
+
# If there might be more results than those appearing in this response, then
|
112
|
+
# `next_page_token` is included. To get the next set of results, call this
|
113
|
+
# method again using the value of `next_page_token` as `page_token`.
|
114
|
+
class ListServerTlsPoliciesResponse
|
115
|
+
include ::Google::Protobuf::MessageExts
|
116
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
117
|
+
end
|
118
|
+
|
119
|
+
# Request used by the GetServerTlsPolicy method.
|
120
|
+
# @!attribute [rw] name
|
121
|
+
# @return [::String]
|
122
|
+
# Required. A name of the ServerTlsPolicy to get. Must be in the format
|
123
|
+
# `projects/*/locations/{location}/serverTlsPolicies/*`.
|
124
|
+
class GetServerTlsPolicyRequest
|
125
|
+
include ::Google::Protobuf::MessageExts
|
126
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
127
|
+
end
|
128
|
+
|
129
|
+
# Request used by the CreateServerTlsPolicy method.
|
130
|
+
# @!attribute [rw] parent
|
131
|
+
# @return [::String]
|
132
|
+
# Required. The parent resource of the ServerTlsPolicy. Must be in
|
133
|
+
# the format `projects/*/locations/{location}`.
|
134
|
+
# @!attribute [rw] server_tls_policy_id
|
135
|
+
# @return [::String]
|
136
|
+
# Required. Short name of the ServerTlsPolicy resource to be created. This value should
|
137
|
+
# be 1-63 characters long, containing only letters, numbers, hyphens, and
|
138
|
+
# underscores, and should not start with a number. E.g. "server_mtls_policy".
|
139
|
+
# @!attribute [rw] server_tls_policy
|
140
|
+
# @return [::Google::Cloud::NetworkSecurity::V1beta1::ServerTlsPolicy]
|
141
|
+
# Required. ServerTlsPolicy resource to be created.
|
142
|
+
class CreateServerTlsPolicyRequest
|
143
|
+
include ::Google::Protobuf::MessageExts
|
144
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
145
|
+
end
|
146
|
+
|
147
|
+
# Request used by UpdateServerTlsPolicy method.
|
148
|
+
# @!attribute [rw] update_mask
|
149
|
+
# @return [::Google::Protobuf::FieldMask]
|
150
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
151
|
+
# ServerTlsPolicy resource by the update. The fields
|
152
|
+
# specified in the update_mask are relative to the resource, not
|
153
|
+
# the full request. A field will be overwritten if it is in the
|
154
|
+
# mask. If the user does not provide a mask then all fields will be
|
155
|
+
# overwritten.
|
156
|
+
# @!attribute [rw] server_tls_policy
|
157
|
+
# @return [::Google::Cloud::NetworkSecurity::V1beta1::ServerTlsPolicy]
|
158
|
+
# Required. Updated ServerTlsPolicy resource.
|
159
|
+
class UpdateServerTlsPolicyRequest
|
160
|
+
include ::Google::Protobuf::MessageExts
|
161
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
162
|
+
end
|
163
|
+
|
164
|
+
# Request used by the DeleteServerTlsPolicy method.
|
165
|
+
# @!attribute [rw] name
|
166
|
+
# @return [::String]
|
167
|
+
# Required. A name of the ServerTlsPolicy to delete. Must be in
|
168
|
+
# the format `projects/*/locations/{location}/serverTlsPolicies/*`.
|
169
|
+
class DeleteServerTlsPolicyRequest
|
170
|
+
include ::Google::Protobuf::MessageExts
|
171
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
172
|
+
end
|
173
|
+
end
|
174
|
+
end
|
175
|
+
end
|
176
|
+
end
|
@@ -0,0 +1,82 @@
|
|
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
|
+
# Specification of the GRPC Endpoint.
|
25
|
+
# @!attribute [rw] target_uri
|
26
|
+
# @return [::String]
|
27
|
+
# Required. The target URI of the gRPC endpoint. Only UDS path is supported, and
|
28
|
+
# should start with “unix:”.
|
29
|
+
class GrpcEndpoint
|
30
|
+
include ::Google::Protobuf::MessageExts
|
31
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
32
|
+
end
|
33
|
+
|
34
|
+
# Specification of ValidationCA. Defines the mechanism to obtain the
|
35
|
+
# Certificate Authority certificate to validate the peer certificate.
|
36
|
+
# @!attribute [rw] grpc_endpoint
|
37
|
+
# @return [::Google::Cloud::NetworkSecurity::V1beta1::GrpcEndpoint]
|
38
|
+
# gRPC specific configuration to access the gRPC server to
|
39
|
+
# obtain the CA certificate.
|
40
|
+
# @!attribute [rw] certificate_provider_instance
|
41
|
+
# @return [::Google::Cloud::NetworkSecurity::V1beta1::CertificateProviderInstance]
|
42
|
+
# The certificate provider instance specification that will be passed to
|
43
|
+
# the data plane, which will be used to load necessary credential
|
44
|
+
# information.
|
45
|
+
class ValidationCA
|
46
|
+
include ::Google::Protobuf::MessageExts
|
47
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
48
|
+
end
|
49
|
+
|
50
|
+
# Specification of a TLS certificate provider instance. Workloads may have one
|
51
|
+
# or more CertificateProvider instances (plugins) and one of them is enabled
|
52
|
+
# and configured by specifying this message. Workloads use the values from this
|
53
|
+
# message to locate and load the CertificateProvider instance configuration.
|
54
|
+
# @!attribute [rw] plugin_instance
|
55
|
+
# @return [::String]
|
56
|
+
# Required. Plugin instance name, used to locate and load CertificateProvider instance
|
57
|
+
# configuration. Set to "google_cloud_private_spiffe" to use Certificate
|
58
|
+
# Authority Service certificate provider instance.
|
59
|
+
class CertificateProviderInstance
|
60
|
+
include ::Google::Protobuf::MessageExts
|
61
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
62
|
+
end
|
63
|
+
|
64
|
+
# Specification of certificate provider. Defines the mechanism to obtain the
|
65
|
+
# certificate and private key for peer to peer authentication.
|
66
|
+
# @!attribute [rw] grpc_endpoint
|
67
|
+
# @return [::Google::Cloud::NetworkSecurity::V1beta1::GrpcEndpoint]
|
68
|
+
# gRPC specific configuration to access the gRPC server to
|
69
|
+
# obtain the cert and private key.
|
70
|
+
# @!attribute [rw] certificate_provider_instance
|
71
|
+
# @return [::Google::Cloud::NetworkSecurity::V1beta1::CertificateProviderInstance]
|
72
|
+
# The certificate provider instance specification that will be passed to
|
73
|
+
# the data plane, which will be used to load necessary credential
|
74
|
+
# information.
|
75
|
+
class CertificateProvider
|
76
|
+
include ::Google::Protobuf::MessageExts
|
77
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
@@ -0,0 +1,164 @@
|
|
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 Longrunning
|
22
|
+
# This resource represents a long-running operation that is the result of a
|
23
|
+
# network API call.
|
24
|
+
# @!attribute [rw] name
|
25
|
+
# @return [::String]
|
26
|
+
# The server-assigned name, which is only unique within the same service that
|
27
|
+
# originally returns it. If you use the default HTTP mapping, the
|
28
|
+
# `name` should be a resource name ending with `operations/{unique_id}`.
|
29
|
+
# @!attribute [rw] metadata
|
30
|
+
# @return [::Google::Protobuf::Any]
|
31
|
+
# Service-specific metadata associated with the operation. It typically
|
32
|
+
# contains progress information and common metadata such as create time.
|
33
|
+
# Some services might not provide such metadata. Any method that returns a
|
34
|
+
# long-running operation should document the metadata type, if any.
|
35
|
+
# @!attribute [rw] done
|
36
|
+
# @return [::Boolean]
|
37
|
+
# If the value is `false`, it means the operation is still in progress.
|
38
|
+
# If `true`, the operation is completed, and either `error` or `response` is
|
39
|
+
# available.
|
40
|
+
# @!attribute [rw] error
|
41
|
+
# @return [::Google::Rpc::Status]
|
42
|
+
# The error result of the operation in case of failure or cancellation.
|
43
|
+
# @!attribute [rw] response
|
44
|
+
# @return [::Google::Protobuf::Any]
|
45
|
+
# The normal response of the operation in case of success. If the original
|
46
|
+
# method returns no data on success, such as `Delete`, the response is
|
47
|
+
# `google.protobuf.Empty`. If the original method is standard
|
48
|
+
# `Get`/`Create`/`Update`, the response should be the resource. For other
|
49
|
+
# methods, the response should have the type `XxxResponse`, where `Xxx`
|
50
|
+
# is the original method name. For example, if the original method name
|
51
|
+
# is `TakeSnapshot()`, the inferred response type is
|
52
|
+
# `TakeSnapshotResponse`.
|
53
|
+
class Operation
|
54
|
+
include ::Google::Protobuf::MessageExts
|
55
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
56
|
+
end
|
57
|
+
|
58
|
+
# The request message for Operations.GetOperation.
|
59
|
+
# @!attribute [rw] name
|
60
|
+
# @return [::String]
|
61
|
+
# The name of the operation resource.
|
62
|
+
class GetOperationRequest
|
63
|
+
include ::Google::Protobuf::MessageExts
|
64
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
65
|
+
end
|
66
|
+
|
67
|
+
# The request message for Operations.ListOperations.
|
68
|
+
# @!attribute [rw] name
|
69
|
+
# @return [::String]
|
70
|
+
# The name of the operation's parent resource.
|
71
|
+
# @!attribute [rw] filter
|
72
|
+
# @return [::String]
|
73
|
+
# The standard list filter.
|
74
|
+
# @!attribute [rw] page_size
|
75
|
+
# @return [::Integer]
|
76
|
+
# The standard list page size.
|
77
|
+
# @!attribute [rw] page_token
|
78
|
+
# @return [::String]
|
79
|
+
# The standard list page token.
|
80
|
+
class ListOperationsRequest
|
81
|
+
include ::Google::Protobuf::MessageExts
|
82
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
83
|
+
end
|
84
|
+
|
85
|
+
# The response message for Operations.ListOperations.
|
86
|
+
# @!attribute [rw] operations
|
87
|
+
# @return [::Array<::Google::Longrunning::Operation>]
|
88
|
+
# A list of operations that matches the specified filter in the request.
|
89
|
+
# @!attribute [rw] next_page_token
|
90
|
+
# @return [::String]
|
91
|
+
# The standard List next-page token.
|
92
|
+
class ListOperationsResponse
|
93
|
+
include ::Google::Protobuf::MessageExts
|
94
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
95
|
+
end
|
96
|
+
|
97
|
+
# The request message for Operations.CancelOperation.
|
98
|
+
# @!attribute [rw] name
|
99
|
+
# @return [::String]
|
100
|
+
# The name of the operation resource to be cancelled.
|
101
|
+
class CancelOperationRequest
|
102
|
+
include ::Google::Protobuf::MessageExts
|
103
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
104
|
+
end
|
105
|
+
|
106
|
+
# The request message for Operations.DeleteOperation.
|
107
|
+
# @!attribute [rw] name
|
108
|
+
# @return [::String]
|
109
|
+
# The name of the operation resource to be deleted.
|
110
|
+
class DeleteOperationRequest
|
111
|
+
include ::Google::Protobuf::MessageExts
|
112
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
113
|
+
end
|
114
|
+
|
115
|
+
# The request message for Operations.WaitOperation.
|
116
|
+
# @!attribute [rw] name
|
117
|
+
# @return [::String]
|
118
|
+
# The name of the operation resource to wait on.
|
119
|
+
# @!attribute [rw] timeout
|
120
|
+
# @return [::Google::Protobuf::Duration]
|
121
|
+
# The maximum duration to wait before timing out. If left blank, the wait
|
122
|
+
# will be at most the time permitted by the underlying HTTP/RPC protocol.
|
123
|
+
# If RPC context deadline is also specified, the shorter one will be used.
|
124
|
+
class WaitOperationRequest
|
125
|
+
include ::Google::Protobuf::MessageExts
|
126
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
127
|
+
end
|
128
|
+
|
129
|
+
# A message representing the message types used by a long-running operation.
|
130
|
+
#
|
131
|
+
# Example:
|
132
|
+
#
|
133
|
+
# rpc LongRunningRecognize(LongRunningRecognizeRequest)
|
134
|
+
# returns (google.longrunning.Operation) {
|
135
|
+
# option (google.longrunning.operation_info) = {
|
136
|
+
# response_type: "LongRunningRecognizeResponse"
|
137
|
+
# metadata_type: "LongRunningRecognizeMetadata"
|
138
|
+
# };
|
139
|
+
# }
|
140
|
+
# @!attribute [rw] response_type
|
141
|
+
# @return [::String]
|
142
|
+
# Required. The message name of the primary return type for this
|
143
|
+
# long-running operation.
|
144
|
+
# This type will be used to deserialize the LRO's response.
|
145
|
+
#
|
146
|
+
# If the response is in a different package from the rpc, a fully-qualified
|
147
|
+
# message name must be used (e.g. `google.protobuf.Struct`).
|
148
|
+
#
|
149
|
+
# Note: Altering this value constitutes a breaking change.
|
150
|
+
# @!attribute [rw] metadata_type
|
151
|
+
# @return [::String]
|
152
|
+
# Required. The message name of the metadata type for this long-running
|
153
|
+
# operation.
|
154
|
+
#
|
155
|
+
# If the response is in a different package from the rpc, a fully-qualified
|
156
|
+
# message name must be used (e.g. `google.protobuf.Struct`).
|
157
|
+
#
|
158
|
+
# Note: Altering this value constitutes a breaking change.
|
159
|
+
class OperationInfo
|
160
|
+
include ::Google::Protobuf::MessageExts
|
161
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
162
|
+
end
|
163
|
+
end
|
164
|
+
end
|