Constants
NetworkSecurity_ListAuthorizationPolicies_FullMethodName, NetworkSecurity_GetAuthorizationPolicy_FullMethodName, NetworkSecurity_CreateAuthorizationPolicy_FullMethodName, NetworkSecurity_UpdateAuthorizationPolicy_FullMethodName, NetworkSecurity_DeleteAuthorizationPolicy_FullMethodName, NetworkSecurity_ListServerTlsPolicies_FullMethodName, NetworkSecurity_GetServerTlsPolicy_FullMethodName, NetworkSecurity_CreateServerTlsPolicy_FullMethodName, NetworkSecurity_UpdateServerTlsPolicy_FullMethodName, NetworkSecurity_DeleteServerTlsPolicy_FullMethodName, NetworkSecurity_ListClientTlsPolicies_FullMethodName, NetworkSecurity_GetClientTlsPolicy_FullMethodName, NetworkSecurity_CreateClientTlsPolicy_FullMethodName, NetworkSecurity_UpdateClientTlsPolicy_FullMethodName, NetworkSecurity_DeleteClientTlsPolicy_FullMethodName
const (
NetworkSecurity_ListAuthorizationPolicies_FullMethodName = "/google.cloud.networksecurity.v1beta1.NetworkSecurity/ListAuthorizationPolicies"
NetworkSecurity_GetAuthorizationPolicy_FullMethodName = "/google.cloud.networksecurity.v1beta1.NetworkSecurity/GetAuthorizationPolicy"
NetworkSecurity_CreateAuthorizationPolicy_FullMethodName = "/google.cloud.networksecurity.v1beta1.NetworkSecurity/CreateAuthorizationPolicy"
NetworkSecurity_UpdateAuthorizationPolicy_FullMethodName = "/google.cloud.networksecurity.v1beta1.NetworkSecurity/UpdateAuthorizationPolicy"
NetworkSecurity_DeleteAuthorizationPolicy_FullMethodName = "/google.cloud.networksecurity.v1beta1.NetworkSecurity/DeleteAuthorizationPolicy"
NetworkSecurity_ListServerTlsPolicies_FullMethodName = "/google.cloud.networksecurity.v1beta1.NetworkSecurity/ListServerTlsPolicies"
NetworkSecurity_GetServerTlsPolicy_FullMethodName = "/google.cloud.networksecurity.v1beta1.NetworkSecurity/GetServerTlsPolicy"
NetworkSecurity_CreateServerTlsPolicy_FullMethodName = "/google.cloud.networksecurity.v1beta1.NetworkSecurity/CreateServerTlsPolicy"
NetworkSecurity_UpdateServerTlsPolicy_FullMethodName = "/google.cloud.networksecurity.v1beta1.NetworkSecurity/UpdateServerTlsPolicy"
NetworkSecurity_DeleteServerTlsPolicy_FullMethodName = "/google.cloud.networksecurity.v1beta1.NetworkSecurity/DeleteServerTlsPolicy"
NetworkSecurity_ListClientTlsPolicies_FullMethodName = "/google.cloud.networksecurity.v1beta1.NetworkSecurity/ListClientTlsPolicies"
NetworkSecurity_GetClientTlsPolicy_FullMethodName = "/google.cloud.networksecurity.v1beta1.NetworkSecurity/GetClientTlsPolicy"
NetworkSecurity_CreateClientTlsPolicy_FullMethodName = "/google.cloud.networksecurity.v1beta1.NetworkSecurity/CreateClientTlsPolicy"
NetworkSecurity_UpdateClientTlsPolicy_FullMethodName = "/google.cloud.networksecurity.v1beta1.NetworkSecurity/UpdateClientTlsPolicy"
NetworkSecurity_DeleteClientTlsPolicy_FullMethodName = "/google.cloud.networksecurity.v1beta1.NetworkSecurity/DeleteClientTlsPolicy"
)Variables
AuthorizationPolicy_Action_name, AuthorizationPolicy_Action_value
var (
AuthorizationPolicy_Action_name = map[int32]string{
0: "ACTION_UNSPECIFIED",
1: "ALLOW",
2: "DENY",
}
AuthorizationPolicy_Action_value = map[string]int32{
"ACTION_UNSPECIFIED": 0,
"ALLOW": 1,
"DENY": 2,
}
)Enum value maps for AuthorizationPolicy_Action.
File_google_cloud_networksecurity_v1beta1_authorization_policy_proto
var File_google_cloud_networksecurity_v1beta1_authorization_policy_proto protoreflect.FileDescriptorFile_google_cloud_networksecurity_v1beta1_client_tls_policy_proto
var File_google_cloud_networksecurity_v1beta1_client_tls_policy_proto protoreflect.FileDescriptorFile_google_cloud_networksecurity_v1beta1_common_proto
var File_google_cloud_networksecurity_v1beta1_common_proto protoreflect.FileDescriptorFile_google_cloud_networksecurity_v1beta1_network_security_proto
var File_google_cloud_networksecurity_v1beta1_network_security_proto protoreflect.FileDescriptorFile_google_cloud_networksecurity_v1beta1_server_tls_policy_proto
var File_google_cloud_networksecurity_v1beta1_server_tls_policy_proto protoreflect.FileDescriptorFile_google_cloud_networksecurity_v1beta1_tls_proto
var File_google_cloud_networksecurity_v1beta1_tls_proto protoreflect.FileDescriptorNetworkSecurity_ServiceDesc
var NetworkSecurity_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.networksecurity.v1beta1.NetworkSecurity",
HandlerType: (*NetworkSecurityServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListAuthorizationPolicies",
Handler: _NetworkSecurity_ListAuthorizationPolicies_Handler,
},
{
MethodName: "GetAuthorizationPolicy",
Handler: _NetworkSecurity_GetAuthorizationPolicy_Handler,
},
{
MethodName: "CreateAuthorizationPolicy",
Handler: _NetworkSecurity_CreateAuthorizationPolicy_Handler,
},
{
MethodName: "UpdateAuthorizationPolicy",
Handler: _NetworkSecurity_UpdateAuthorizationPolicy_Handler,
},
{
MethodName: "DeleteAuthorizationPolicy",
Handler: _NetworkSecurity_DeleteAuthorizationPolicy_Handler,
},
{
MethodName: "ListServerTlsPolicies",
Handler: _NetworkSecurity_ListServerTlsPolicies_Handler,
},
{
MethodName: "GetServerTlsPolicy",
Handler: _NetworkSecurity_GetServerTlsPolicy_Handler,
},
{
MethodName: "CreateServerTlsPolicy",
Handler: _NetworkSecurity_CreateServerTlsPolicy_Handler,
},
{
MethodName: "UpdateServerTlsPolicy",
Handler: _NetworkSecurity_UpdateServerTlsPolicy_Handler,
},
{
MethodName: "DeleteServerTlsPolicy",
Handler: _NetworkSecurity_DeleteServerTlsPolicy_Handler,
},
{
MethodName: "ListClientTlsPolicies",
Handler: _NetworkSecurity_ListClientTlsPolicies_Handler,
},
{
MethodName: "GetClientTlsPolicy",
Handler: _NetworkSecurity_GetClientTlsPolicy_Handler,
},
{
MethodName: "CreateClientTlsPolicy",
Handler: _NetworkSecurity_CreateClientTlsPolicy_Handler,
},
{
MethodName: "UpdateClientTlsPolicy",
Handler: _NetworkSecurity_UpdateClientTlsPolicy_Handler,
},
{
MethodName: "DeleteClientTlsPolicy",
Handler: _NetworkSecurity_DeleteClientTlsPolicy_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/networksecurity/v1beta1/network_security.proto",
}NetworkSecurity_ServiceDesc is the grpc.ServiceDesc for NetworkSecurity service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions
func RegisterNetworkSecurityServer
func RegisterNetworkSecurityServer(s grpc.ServiceRegistrar, srv NetworkSecurityServer)AuthorizationPolicy
type AuthorizationPolicy struct {
// Required. Name of the AuthorizationPolicy resource. It matches pattern
// `projects/{project}/locations/{location}/authorizationPolicies/AuthorizationPolicy is a resource that specifies how a server should authorize incoming connections. This resource in itself does not change the configuration unless it's attached to a target https proxy or endpoint config selector resource.
func (*AuthorizationPolicy) Descriptor
func (*AuthorizationPolicy) Descriptor() ([]byte, []int)Deprecated: Use AuthorizationPolicy.ProtoReflect.Descriptor instead.
func (*AuthorizationPolicy) GetAction
func (x *AuthorizationPolicy) GetAction() AuthorizationPolicy_Actionfunc (*AuthorizationPolicy) GetCreateTime
func (x *AuthorizationPolicy) GetCreateTime() *timestamppb.Timestampfunc (*AuthorizationPolicy) GetDescription
func (x *AuthorizationPolicy) GetDescription() stringfunc (*AuthorizationPolicy) GetLabels
func (x *AuthorizationPolicy) GetLabels() map[string]stringfunc (*AuthorizationPolicy) GetName
func (x *AuthorizationPolicy) GetName() stringfunc (*AuthorizationPolicy) GetRules
func (x *AuthorizationPolicy) GetRules() []*AuthorizationPolicy_Rulefunc (*AuthorizationPolicy) GetUpdateTime
func (x *AuthorizationPolicy) GetUpdateTime() *timestamppb.Timestampfunc (*AuthorizationPolicy) ProtoMessage
func (*AuthorizationPolicy) ProtoMessage()func (*AuthorizationPolicy) ProtoReflect
func (x *AuthorizationPolicy) ProtoReflect() protoreflect.Messagefunc (*AuthorizationPolicy) Reset
func (x *AuthorizationPolicy) Reset()func (*AuthorizationPolicy) String
func (x *AuthorizationPolicy) String() stringAuthorizationPolicy_Action
type AuthorizationPolicy_Action int32Possible values that define what action to take.
AuthorizationPolicy_ACTION_UNSPECIFIED, AuthorizationPolicy_ALLOW, AuthorizationPolicy_DENY
const (
// Default value.
AuthorizationPolicy_ACTION_UNSPECIFIED AuthorizationPolicy_Action = 0
// Grant access.
AuthorizationPolicy_ALLOW AuthorizationPolicy_Action = 1
// Deny access.
// Deny rules should be avoided unless they are used to provide a default
// "deny all" fallback.
AuthorizationPolicy_DENY AuthorizationPolicy_Action = 2
)func (AuthorizationPolicy_Action) Descriptor
func (AuthorizationPolicy_Action) Descriptor() protoreflect.EnumDescriptorfunc (AuthorizationPolicy_Action) Enum
func (x AuthorizationPolicy_Action) Enum() *AuthorizationPolicy_Actionfunc (AuthorizationPolicy_Action) EnumDescriptor
func (AuthorizationPolicy_Action) EnumDescriptor() ([]byte, []int)Deprecated: Use AuthorizationPolicy_Action.Descriptor instead.
func (AuthorizationPolicy_Action) Number
func (x AuthorizationPolicy_Action) Number() protoreflect.EnumNumberfunc (AuthorizationPolicy_Action) String
func (x AuthorizationPolicy_Action) String() stringfunc (AuthorizationPolicy_Action) Type
func (AuthorizationPolicy_Action) Type() protoreflect.EnumTypeAuthorizationPolicy_Rule
type AuthorizationPolicy_Rule struct {
// Optional. List of attributes for the traffic source. All of the sources
// must match. A source is a match if both principals and ip_blocks match.
// If not set, the action specified in the 'action' field will be applied
// without any rule checks for the source.
Sources []*AuthorizationPolicy_Rule_Source `protobuf:"bytes,1,rep,name=sources,proto3" json:"sources,omitempty"`
// Optional. List of attributes for the traffic destination. All of the
// destinations must match. A destination is a match if a request matches
// all the specified hosts, ports, methods and headers. If not set, the
// action specified in the 'action' field will be applied without any rule
// checks for the destination.
Destinations []*AuthorizationPolicy_Rule_Destination `protobuf:"bytes,2,rep,name=destinations,proto3" json:"destinations,omitempty"`
// contains filtered or unexported fields
}Specification of rules.
func (*AuthorizationPolicy_Rule) Descriptor
func (*AuthorizationPolicy_Rule) Descriptor() ([]byte, []int)Deprecated: Use AuthorizationPolicy_Rule.ProtoReflect.Descriptor instead.
func (*AuthorizationPolicy_Rule) GetDestinations
func (x *AuthorizationPolicy_Rule) GetDestinations() []*AuthorizationPolicy_Rule_Destinationfunc (*AuthorizationPolicy_Rule) GetSources
func (x *AuthorizationPolicy_Rule) GetSources() []*AuthorizationPolicy_Rule_Sourcefunc (*AuthorizationPolicy_Rule) ProtoMessage
func (*AuthorizationPolicy_Rule) ProtoMessage()func (*AuthorizationPolicy_Rule) ProtoReflect
func (x *AuthorizationPolicy_Rule) ProtoReflect() protoreflect.Messagefunc (*AuthorizationPolicy_Rule) Reset
func (x *AuthorizationPolicy_Rule) Reset()func (*AuthorizationPolicy_Rule) String
func (x *AuthorizationPolicy_Rule) String() stringAuthorizationPolicy_Rule_Destination
type AuthorizationPolicy_Rule_Destination struct {
// Required. List of host names to match. Matched against the ":authority"
// header in http requests. At least one host should match. Each host can
// be an exact match, or a prefix match (example "mydomain.*") or a suffix
// match (example "*.myorg.com") or a presence (any) match "*".
Hosts []string `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,omitempty"`
// Required. List of destination ports to match. At least one port should
// match.
Ports []uint32 `protobuf:"varint,2,rep,packed,name=ports,proto3" json:"ports,omitempty"`
// Optional. A list of HTTP methods to match. At least one method should
// match. Should not be set for gRPC services.
Methods []string `protobuf:"bytes,4,rep,name=methods,proto3" json:"methods,omitempty"`
// Optional. Match against key:value pair in http header. Provides a
// flexible match based on HTTP headers, for potentially advanced use
// cases. At least one header should match. Avoid using header matches to
// make authorization decisions unless there is a strong guarantee that
// requests arrive through a trusted client or proxy.
HttpHeaderMatch *AuthorizationPolicy_Rule_Destination_HttpHeaderMatch `protobuf:"bytes,5,opt,name=http_header_match,json=httpHeaderMatch,proto3" json:"http_header_match,omitempty"`
// contains filtered or unexported fields
}Specification of traffic destination attributes.
func (*AuthorizationPolicy_Rule_Destination) Descriptor
func (*AuthorizationPolicy_Rule_Destination) Descriptor() ([]byte, []int)Deprecated: Use AuthorizationPolicy_Rule_Destination.ProtoReflect.Descriptor instead.
func (*AuthorizationPolicy_Rule_Destination) GetHosts
func (x *AuthorizationPolicy_Rule_Destination) GetHosts() []stringfunc (*AuthorizationPolicy_Rule_Destination) GetHttpHeaderMatch
func (x *AuthorizationPolicy_Rule_Destination) GetHttpHeaderMatch() *AuthorizationPolicy_Rule_Destination_HttpHeaderMatchfunc (*AuthorizationPolicy_Rule_Destination) GetMethods
func (x *AuthorizationPolicy_Rule_Destination) GetMethods() []stringfunc (*AuthorizationPolicy_Rule_Destination) GetPorts
func (x *AuthorizationPolicy_Rule_Destination) GetPorts() []uint32func (*AuthorizationPolicy_Rule_Destination) ProtoMessage
func (*AuthorizationPolicy_Rule_Destination) ProtoMessage()func (*AuthorizationPolicy_Rule_Destination) ProtoReflect
func (x *AuthorizationPolicy_Rule_Destination) ProtoReflect() protoreflect.Messagefunc (*AuthorizationPolicy_Rule_Destination) Reset
func (x *AuthorizationPolicy_Rule_Destination) Reset()func (*AuthorizationPolicy_Rule_Destination) String
func (x *AuthorizationPolicy_Rule_Destination) String() stringAuthorizationPolicy_Rule_Destination_HttpHeaderMatch
type AuthorizationPolicy_Rule_Destination_HttpHeaderMatch struct {
// Types that are assignable to Type:
//
// *AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_RegexMatch
Type isAuthorizationPolicy_Rule_Destination_HttpHeaderMatch_Type `protobuf_oneof:"type"`
// Required. The name of the HTTP header to match. For matching
// against the HTTP request's authority, use a headerMatch
// with the header name ":authority". For matching a
// request's method, use the headerName ":method".
HeaderName string `protobuf:"bytes,1,opt,name=header_name,json=headerName,proto3" json:"header_name,omitempty"`
// contains filtered or unexported fields
}Specification of HTTP header match attributes.
func (*AuthorizationPolicy_Rule_Destination_HttpHeaderMatch) Descriptor
func (*AuthorizationPolicy_Rule_Destination_HttpHeaderMatch) Descriptor() ([]byte, []int)Deprecated: Use AuthorizationPolicy_Rule_Destination_HttpHeaderMatch.ProtoReflect.Descriptor instead.
func (*AuthorizationPolicy_Rule_Destination_HttpHeaderMatch) GetHeaderName
func (x *AuthorizationPolicy_Rule_Destination_HttpHeaderMatch) GetHeaderName() stringfunc (*AuthorizationPolicy_Rule_Destination_HttpHeaderMatch) GetRegexMatch
func (x *AuthorizationPolicy_Rule_Destination_HttpHeaderMatch) GetRegexMatch() stringfunc (*AuthorizationPolicy_Rule_Destination_HttpHeaderMatch) GetType
func (m *AuthorizationPolicy_Rule_Destination_HttpHeaderMatch) GetType() isAuthorizationPolicy_Rule_Destination_HttpHeaderMatch_Typefunc (*AuthorizationPolicy_Rule_Destination_HttpHeaderMatch) ProtoMessage
func (*AuthorizationPolicy_Rule_Destination_HttpHeaderMatch) ProtoMessage()func (*AuthorizationPolicy_Rule_Destination_HttpHeaderMatch) ProtoReflect
func (x *AuthorizationPolicy_Rule_Destination_HttpHeaderMatch) ProtoReflect() protoreflect.Messagefunc (*AuthorizationPolicy_Rule_Destination_HttpHeaderMatch) Reset
func (x *AuthorizationPolicy_Rule_Destination_HttpHeaderMatch) Reset()func (*AuthorizationPolicy_Rule_Destination_HttpHeaderMatch) String
func (x *AuthorizationPolicy_Rule_Destination_HttpHeaderMatch) String() stringAuthorizationPolicy_Rule_Destination_HttpHeaderMatch_RegexMatch
type AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_RegexMatch struct {
// Required. The value of the header must match the regular expression
// specified in regexMatch. For regular expression grammar,
// please see: en.cppreference.com/w/cpp/regex/ecmascript
// For matching against a port specified in the HTTP
// request, use a headerMatch with headerName set to Host
// and a regular expression that satisfies the RFC2616 Host
// header's port specifier.
RegexMatch string `protobuf:"bytes,2,opt,name=regex_match,json=regexMatch,proto3,oneof"`
}AuthorizationPolicy_Rule_Source
type AuthorizationPolicy_Rule_Source struct {
// Optional. List of peer identities to match for authorization. At least
// one principal should match. Each peer can be an exact match, or a
// prefix match (example, "namespace/*") or a suffix match (example,
// "*/service-account") or a presence match "*". Authorization based on
// the principal name without certificate validation (configured by
// ServerTlsPolicy resource) is considered insecure.
Principals []string `protobuf:"bytes,1,rep,name=principals,proto3" json:"principals,omitempty"`
// Optional. List of CIDR ranges to match based on source IP address. At
// least one IP block should match. Single IP (e.g., "1.2.3.4") and CIDR
// (e.g., "1.2.3.0/24") are supported. Authorization based on source IP
// alone should be avoided. The IP addresses of any load balancers or
// proxies should be considered untrusted.
IpBlocks []string `protobuf:"bytes,2,rep,name=ip_blocks,json=ipBlocks,proto3" json:"ip_blocks,omitempty"`
// contains filtered or unexported fields
}Specification of traffic source attributes.
func (*AuthorizationPolicy_Rule_Source) Descriptor
func (*AuthorizationPolicy_Rule_Source) Descriptor() ([]byte, []int)Deprecated: Use AuthorizationPolicy_Rule_Source.ProtoReflect.Descriptor instead.
func (*AuthorizationPolicy_Rule_Source) GetIpBlocks
func (x *AuthorizationPolicy_Rule_Source) GetIpBlocks() []stringfunc (*AuthorizationPolicy_Rule_Source) GetPrincipals
func (x *AuthorizationPolicy_Rule_Source) GetPrincipals() []stringfunc (*AuthorizationPolicy_Rule_Source) ProtoMessage
func (*AuthorizationPolicy_Rule_Source) ProtoMessage()func (*AuthorizationPolicy_Rule_Source) ProtoReflect
func (x *AuthorizationPolicy_Rule_Source) ProtoReflect() protoreflect.Messagefunc (*AuthorizationPolicy_Rule_Source) Reset
func (x *AuthorizationPolicy_Rule_Source) Reset()func (*AuthorizationPolicy_Rule_Source) String
func (x *AuthorizationPolicy_Rule_Source) String() stringCertificateProvider
type CertificateProvider struct {
// The type of certificate provider which provides the certificates and
// private keys.
//
// Types that are assignable to Type:
//
// *CertificateProvider_GrpcEndpoint
// *CertificateProvider_CertificateProviderInstance
Type isCertificateProvider_Type `protobuf_oneof:"type"`
// contains filtered or unexported fields
}Specification of certificate provider. Defines the mechanism to obtain the certificate and private key for peer to peer authentication.
func (*CertificateProvider) Descriptor
func (*CertificateProvider) Descriptor() ([]byte, []int)Deprecated: Use CertificateProvider.ProtoReflect.Descriptor instead.
func (*CertificateProvider) GetCertificateProviderInstance
func (x *CertificateProvider) GetCertificateProviderInstance() *CertificateProviderInstancefunc (*CertificateProvider) GetGrpcEndpoint
func (x *CertificateProvider) GetGrpcEndpoint() *GrpcEndpointfunc (*CertificateProvider) GetType
func (m *CertificateProvider) GetType() isCertificateProvider_Typefunc (*CertificateProvider) ProtoMessage
func (*CertificateProvider) ProtoMessage()func (*CertificateProvider) ProtoReflect
func (x *CertificateProvider) ProtoReflect() protoreflect.Messagefunc (*CertificateProvider) Reset
func (x *CertificateProvider) Reset()func (*CertificateProvider) String
func (x *CertificateProvider) String() stringCertificateProviderInstance
type CertificateProviderInstance struct {
// Required. Plugin instance name, used to locate and load CertificateProvider
// instance configuration. Set to "google_cloud_private_spiffe" to use
// Certificate Authority Service certificate provider instance.
PluginInstance string `protobuf:"bytes,1,opt,name=plugin_instance,json=pluginInstance,proto3" json:"plugin_instance,omitempty"`
// contains filtered or unexported fields
}Specification of a TLS certificate provider instance. Workloads may have one or more CertificateProvider instances (plugins) and one of them is enabled and configured by specifying this message. Workloads use the values from this message to locate and load the CertificateProvider instance configuration.
func (*CertificateProviderInstance) Descriptor
func (*CertificateProviderInstance) Descriptor() ([]byte, []int)Deprecated: Use CertificateProviderInstance.ProtoReflect.Descriptor instead.
func (*CertificateProviderInstance) GetPluginInstance
func (x *CertificateProviderInstance) GetPluginInstance() stringfunc (*CertificateProviderInstance) ProtoMessage
func (*CertificateProviderInstance) ProtoMessage()func (*CertificateProviderInstance) ProtoReflect
func (x *CertificateProviderInstance) ProtoReflect() protoreflect.Messagefunc (*CertificateProviderInstance) Reset
func (x *CertificateProviderInstance) Reset()func (*CertificateProviderInstance) String
func (x *CertificateProviderInstance) String() stringCertificateProvider_CertificateProviderInstance
type CertificateProvider_CertificateProviderInstance struct {
// The certificate provider instance specification that will be passed to
// the data plane, which will be used to load necessary credential
// information.
CertificateProviderInstance *CertificateProviderInstance `protobuf:"bytes,3,opt,name=certificate_provider_instance,json=certificateProviderInstance,proto3,oneof"`
}CertificateProvider_GrpcEndpoint
type CertificateProvider_GrpcEndpoint struct {
// gRPC specific configuration to access the gRPC server to
// obtain the cert and private key.
GrpcEndpoint *GrpcEndpoint `protobuf:"bytes,2,opt,name=grpc_endpoint,json=grpcEndpoint,proto3,oneof"`
}ClientTlsPolicy
type ClientTlsPolicy struct {
// Required. Name of the ClientTlsPolicy resource. It matches the pattern
// `projects/*/locations/{location}/clientTlsPolicies/{client_tls_policy}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. Free-text description of the resource.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Output only. The timestamp when the resource was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The timestamp when the resource was updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Optional. Set of label tags associated with the resource.
Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Optional. Server Name Indication string to present to the server during TLS
// handshake. E.g: "secure.example.com".
Sni string `protobuf:"bytes,6,opt,name=sni,proto3" json:"sni,omitempty"`
// Optional. Defines a mechanism to provision client identity (public and
// private keys) for peer to peer authentication. The presence of this
// dictates mTLS.
ClientCertificate *CertificateProvider `protobuf:"bytes,7,opt,name=client_certificate,json=clientCertificate,proto3" json:"client_certificate,omitempty"`
// Optional. Defines the mechanism to obtain the Certificate Authority
// certificate to validate the server certificate. If empty, client does not
// validate the server certificate.
ServerValidationCa []*ValidationCA `protobuf:"bytes,8,rep,name=server_validation_ca,json=serverValidationCa,proto3" json:"server_validation_ca,omitempty"`
// contains filtered or unexported fields
}ClientTlsPolicy is a resource that specifies how a client should authenticate connections to backends of a service. This resource itself does not affect configuration unless it is attached to a backend service resource.
func (*ClientTlsPolicy) Descriptor
func (*ClientTlsPolicy) Descriptor() ([]byte, []int)Deprecated: Use ClientTlsPolicy.ProtoReflect.Descriptor instead.
func (*ClientTlsPolicy) GetClientCertificate
func (x *ClientTlsPolicy) GetClientCertificate() *CertificateProviderfunc (*ClientTlsPolicy) GetCreateTime
func (x *ClientTlsPolicy) GetCreateTime() *timestamppb.Timestampfunc (*ClientTlsPolicy) GetDescription
func (x *ClientTlsPolicy) GetDescription() stringfunc (*ClientTlsPolicy) GetLabels
func (x *ClientTlsPolicy) GetLabels() map[string]stringfunc (*ClientTlsPolicy) GetName
func (x *ClientTlsPolicy) GetName() stringfunc (*ClientTlsPolicy) GetServerValidationCa
func (x *ClientTlsPolicy) GetServerValidationCa() []*ValidationCAfunc (*ClientTlsPolicy) GetSni
func (x *ClientTlsPolicy) GetSni() stringfunc (*ClientTlsPolicy) GetUpdateTime
func (x *ClientTlsPolicy) GetUpdateTime() *timestamppb.Timestampfunc (*ClientTlsPolicy) ProtoMessage
func (*ClientTlsPolicy) ProtoMessage()func (*ClientTlsPolicy) ProtoReflect
func (x *ClientTlsPolicy) ProtoReflect() protoreflect.Messagefunc (*ClientTlsPolicy) Reset
func (x *ClientTlsPolicy) Reset()func (*ClientTlsPolicy) String
func (x *ClientTlsPolicy) String() stringCreateAuthorizationPolicyRequest
type CreateAuthorizationPolicyRequest struct {
// Required. The parent resource of the AuthorizationPolicy. Must be in the
// format `projects/{project}/locations/{location}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. Short name of the AuthorizationPolicy resource to be created.
// This value should be 1-63 characters long, containing only
// letters, numbers, hyphens, and underscores, and should not start
// with a number. E.g. "authz_policy".
AuthorizationPolicyId string `protobuf:"bytes,2,opt,name=authorization_policy_id,json=authorizationPolicyId,proto3" json:"authorization_policy_id,omitempty"`
// Required. AuthorizationPolicy resource to be created.
AuthorizationPolicy *AuthorizationPolicy `protobuf:"bytes,3,opt,name=authorization_policy,json=authorizationPolicy,proto3" json:"authorization_policy,omitempty"`
// contains filtered or unexported fields
}Request used by the CreateAuthorizationPolicy method.
func (*CreateAuthorizationPolicyRequest) Descriptor
func (*CreateAuthorizationPolicyRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateAuthorizationPolicyRequest.ProtoReflect.Descriptor instead.
func (*CreateAuthorizationPolicyRequest) GetAuthorizationPolicy
func (x *CreateAuthorizationPolicyRequest) GetAuthorizationPolicy() *AuthorizationPolicyfunc (*CreateAuthorizationPolicyRequest) GetAuthorizationPolicyId
func (x *CreateAuthorizationPolicyRequest) GetAuthorizationPolicyId() stringfunc (*CreateAuthorizationPolicyRequest) GetParent
func (x *CreateAuthorizationPolicyRequest) GetParent() stringfunc (*CreateAuthorizationPolicyRequest) ProtoMessage
func (*CreateAuthorizationPolicyRequest) ProtoMessage()func (*CreateAuthorizationPolicyRequest) ProtoReflect
func (x *CreateAuthorizationPolicyRequest) ProtoReflect() protoreflect.Messagefunc (*CreateAuthorizationPolicyRequest) Reset
func (x *CreateAuthorizationPolicyRequest) Reset()func (*CreateAuthorizationPolicyRequest) String
func (x *CreateAuthorizationPolicyRequest) String() stringCreateClientTlsPolicyRequest
type CreateClientTlsPolicyRequest struct {
// Required. The parent resource of the ClientTlsPolicy. Must be in
// the format `projects/*/locations/{location}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. Short name of the ClientTlsPolicy resource to be created. This
// value should be 1-63 characters long, containing only letters, numbers,
// hyphens, and underscores, and should not start with a number. E.g.
// "client_mtls_policy".
ClientTlsPolicyId string `protobuf:"bytes,2,opt,name=client_tls_policy_id,json=clientTlsPolicyId,proto3" json:"client_tls_policy_id,omitempty"`
// Required. ClientTlsPolicy resource to be created.
ClientTlsPolicy *ClientTlsPolicy `protobuf:"bytes,3,opt,name=client_tls_policy,json=clientTlsPolicy,proto3" json:"client_tls_policy,omitempty"`
// contains filtered or unexported fields
}Request used by the CreateClientTlsPolicy method.
func (*CreateClientTlsPolicyRequest) Descriptor
func (*CreateClientTlsPolicyRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateClientTlsPolicyRequest.ProtoReflect.Descriptor instead.
func (*CreateClientTlsPolicyRequest) GetClientTlsPolicy
func (x *CreateClientTlsPolicyRequest) GetClientTlsPolicy() *ClientTlsPolicyfunc (*CreateClientTlsPolicyRequest) GetClientTlsPolicyId
func (x *CreateClientTlsPolicyRequest) GetClientTlsPolicyId() stringfunc (*CreateClientTlsPolicyRequest) GetParent
func (x *CreateClientTlsPolicyRequest) GetParent() stringfunc (*CreateClientTlsPolicyRequest) ProtoMessage
func (*CreateClientTlsPolicyRequest) ProtoMessage()func (*CreateClientTlsPolicyRequest) ProtoReflect
func (x *CreateClientTlsPolicyRequest) ProtoReflect() protoreflect.Messagefunc (*CreateClientTlsPolicyRequest) Reset
func (x *CreateClientTlsPolicyRequest) Reset()func (*CreateClientTlsPolicyRequest) String
func (x *CreateClientTlsPolicyRequest) String() stringCreateServerTlsPolicyRequest
type CreateServerTlsPolicyRequest struct {
// Required. The parent resource of the ServerTlsPolicy. Must be in
// the format `projects/*/locations/{location}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. Short name of the ServerTlsPolicy resource to be created. This
// value should be 1-63 characters long, containing only letters, numbers,
// hyphens, and underscores, and should not start with a number. E.g.
// "server_mtls_policy".
ServerTlsPolicyId string `protobuf:"bytes,2,opt,name=server_tls_policy_id,json=serverTlsPolicyId,proto3" json:"server_tls_policy_id,omitempty"`
// Required. ServerTlsPolicy resource to be created.
ServerTlsPolicy *ServerTlsPolicy `protobuf:"bytes,3,opt,name=server_tls_policy,json=serverTlsPolicy,proto3" json:"server_tls_policy,omitempty"`
// contains filtered or unexported fields
}Request used by the CreateServerTlsPolicy method.
func (*CreateServerTlsPolicyRequest) Descriptor
func (*CreateServerTlsPolicyRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateServerTlsPolicyRequest.ProtoReflect.Descriptor instead.
func (*CreateServerTlsPolicyRequest) GetParent
func (x *CreateServerTlsPolicyRequest) GetParent() stringfunc (*CreateServerTlsPolicyRequest) GetServerTlsPolicy
func (x *CreateServerTlsPolicyRequest) GetServerTlsPolicy() *ServerTlsPolicyfunc (*CreateServerTlsPolicyRequest) GetServerTlsPolicyId
func (x *CreateServerTlsPolicyRequest) GetServerTlsPolicyId() stringfunc (*CreateServerTlsPolicyRequest) ProtoMessage
func (*CreateServerTlsPolicyRequest) ProtoMessage()func (*CreateServerTlsPolicyRequest) ProtoReflect
func (x *CreateServerTlsPolicyRequest) ProtoReflect() protoreflect.Messagefunc (*CreateServerTlsPolicyRequest) Reset
func (x *CreateServerTlsPolicyRequest) Reset()func (*CreateServerTlsPolicyRequest) String
func (x *CreateServerTlsPolicyRequest) String() stringDeleteAuthorizationPolicyRequest
type DeleteAuthorizationPolicyRequest struct {
// Required. A name of the AuthorizationPolicy to delete. Must be in the
// format `projects/{project}/locations/{location}/authorizationPolicies/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request used by the DeleteAuthorizationPolicy method.
func (*DeleteAuthorizationPolicyRequest) Descriptor
func (*DeleteAuthorizationPolicyRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteAuthorizationPolicyRequest.ProtoReflect.Descriptor instead.
func (*DeleteAuthorizationPolicyRequest) GetName
func (x *DeleteAuthorizationPolicyRequest) GetName() stringfunc (*DeleteAuthorizationPolicyRequest) ProtoMessage
func (*DeleteAuthorizationPolicyRequest) ProtoMessage()func (*DeleteAuthorizationPolicyRequest) ProtoReflect
func (x *DeleteAuthorizationPolicyRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteAuthorizationPolicyRequest) Reset
func (x *DeleteAuthorizationPolicyRequest) Reset()func (*DeleteAuthorizationPolicyRequest) String
func (x *DeleteAuthorizationPolicyRequest) String() stringDeleteClientTlsPolicyRequest
type DeleteClientTlsPolicyRequest struct {
// Required. A name of the ClientTlsPolicy to delete. Must be in
// the format `projects/*/locations/{location}/clientTlsPolicies/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request used by the DeleteClientTlsPolicy method.
func (*DeleteClientTlsPolicyRequest) Descriptor
func (*DeleteClientTlsPolicyRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteClientTlsPolicyRequest.ProtoReflect.Descriptor instead.
func (*DeleteClientTlsPolicyRequest) GetName
func (x *DeleteClientTlsPolicyRequest) GetName() stringfunc (*DeleteClientTlsPolicyRequest) ProtoMessage
func (*DeleteClientTlsPolicyRequest) ProtoMessage()func (*DeleteClientTlsPolicyRequest) ProtoReflect
func (x *DeleteClientTlsPolicyRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteClientTlsPolicyRequest) Reset
func (x *DeleteClientTlsPolicyRequest) Reset()func (*DeleteClientTlsPolicyRequest) String
func (x *DeleteClientTlsPolicyRequest) String() stringDeleteServerTlsPolicyRequest
type DeleteServerTlsPolicyRequest struct {
// Required. A name of the ServerTlsPolicy to delete. Must be in
// the format `projects/*/locations/{location}/serverTlsPolicies/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request used by the DeleteServerTlsPolicy method.
func (*DeleteServerTlsPolicyRequest) Descriptor
func (*DeleteServerTlsPolicyRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteServerTlsPolicyRequest.ProtoReflect.Descriptor instead.
func (*DeleteServerTlsPolicyRequest) GetName
func (x *DeleteServerTlsPolicyRequest) GetName() stringfunc (*DeleteServerTlsPolicyRequest) ProtoMessage
func (*DeleteServerTlsPolicyRequest) ProtoMessage()func (*DeleteServerTlsPolicyRequest) ProtoReflect
func (x *DeleteServerTlsPolicyRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteServerTlsPolicyRequest) Reset
func (x *DeleteServerTlsPolicyRequest) Reset()func (*DeleteServerTlsPolicyRequest) String
func (x *DeleteServerTlsPolicyRequest) String() stringGetAuthorizationPolicyRequest
type GetAuthorizationPolicyRequest struct {
// Required. A name of the AuthorizationPolicy to get. Must be in the format
// `projects/{project}/locations/{location}/authorizationPolicies/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request used by the GetAuthorizationPolicy method.
func (*GetAuthorizationPolicyRequest) Descriptor
func (*GetAuthorizationPolicyRequest) Descriptor() ([]byte, []int)Deprecated: Use GetAuthorizationPolicyRequest.ProtoReflect.Descriptor instead.
func (*GetAuthorizationPolicyRequest) GetName
func (x *GetAuthorizationPolicyRequest) GetName() stringfunc (*GetAuthorizationPolicyRequest) ProtoMessage
func (*GetAuthorizationPolicyRequest) ProtoMessage()func (*GetAuthorizationPolicyRequest) ProtoReflect
func (x *GetAuthorizationPolicyRequest) ProtoReflect() protoreflect.Messagefunc (*GetAuthorizationPolicyRequest) Reset
func (x *GetAuthorizationPolicyRequest) Reset()func (*GetAuthorizationPolicyRequest) String
func (x *GetAuthorizationPolicyRequest) String() stringGetClientTlsPolicyRequest
type GetClientTlsPolicyRequest struct {
// Required. A name of the ClientTlsPolicy to get. Must be in the format
// `projects/*/locations/{location}/clientTlsPolicies/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request used by the GetClientTlsPolicy method.
func (*GetClientTlsPolicyRequest) Descriptor
func (*GetClientTlsPolicyRequest) Descriptor() ([]byte, []int)Deprecated: Use GetClientTlsPolicyRequest.ProtoReflect.Descriptor instead.
func (*GetClientTlsPolicyRequest) GetName
func (x *GetClientTlsPolicyRequest) GetName() stringfunc (*GetClientTlsPolicyRequest) ProtoMessage
func (*GetClientTlsPolicyRequest) ProtoMessage()func (*GetClientTlsPolicyRequest) ProtoReflect
func (x *GetClientTlsPolicyRequest) ProtoReflect() protoreflect.Messagefunc (*GetClientTlsPolicyRequest) Reset
func (x *GetClientTlsPolicyRequest) Reset()func (*GetClientTlsPolicyRequest) String
func (x *GetClientTlsPolicyRequest) String() stringGetServerTlsPolicyRequest
type GetServerTlsPolicyRequest struct {
// Required. A name of the ServerTlsPolicy to get. Must be in the format
// `projects/*/locations/{location}/serverTlsPolicies/*`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request used by the GetServerTlsPolicy method.
func (*GetServerTlsPolicyRequest) Descriptor
func (*GetServerTlsPolicyRequest) Descriptor() ([]byte, []int)Deprecated: Use GetServerTlsPolicyRequest.ProtoReflect.Descriptor instead.
func (*GetServerTlsPolicyRequest) GetName
func (x *GetServerTlsPolicyRequest) GetName() stringfunc (*GetServerTlsPolicyRequest) ProtoMessage
func (*GetServerTlsPolicyRequest) ProtoMessage()func (*GetServerTlsPolicyRequest) ProtoReflect
func (x *GetServerTlsPolicyRequest) ProtoReflect() protoreflect.Messagefunc (*GetServerTlsPolicyRequest) Reset
func (x *GetServerTlsPolicyRequest) Reset()func (*GetServerTlsPolicyRequest) String
func (x *GetServerTlsPolicyRequest) String() stringGrpcEndpoint
type GrpcEndpoint struct {
// Required. The target URI of the gRPC endpoint. Only UDS path is supported,
// and should start with "unix:".
TargetUri string `protobuf:"bytes,1,opt,name=target_uri,json=targetUri,proto3" json:"target_uri,omitempty"`
// contains filtered or unexported fields
}Specification of the GRPC Endpoint.
func (*GrpcEndpoint) Descriptor
func (*GrpcEndpoint) Descriptor() ([]byte, []int)Deprecated: Use GrpcEndpoint.ProtoReflect.Descriptor instead.
func (*GrpcEndpoint) GetTargetUri
func (x *GrpcEndpoint) GetTargetUri() stringfunc (*GrpcEndpoint) ProtoMessage
func (*GrpcEndpoint) ProtoMessage()func (*GrpcEndpoint) ProtoReflect
func (x *GrpcEndpoint) ProtoReflect() protoreflect.Messagefunc (*GrpcEndpoint) Reset
func (x *GrpcEndpoint) Reset()func (*GrpcEndpoint) String
func (x *GrpcEndpoint) String() stringListAuthorizationPoliciesRequest
type ListAuthorizationPoliciesRequest struct {
// Required. The project and location from which the AuthorizationPolicies
// should be listed, specified in the format
// `projects/{project}/locations/{location}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Maximum number of AuthorizationPolicies to return per call.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The value returned by the last
// `ListAuthorizationPoliciesResponse` Indicates that this is a
// continuation of a prior `ListAuthorizationPolicies` call, and
// that the system should return the next page of data.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Request used with the ListAuthorizationPolicies method.
func (*ListAuthorizationPoliciesRequest) Descriptor
func (*ListAuthorizationPoliciesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListAuthorizationPoliciesRequest.ProtoReflect.Descriptor instead.
func (*ListAuthorizationPoliciesRequest) GetPageSize
func (x *ListAuthorizationPoliciesRequest) GetPageSize() int32func (*ListAuthorizationPoliciesRequest) GetPageToken
func (x *ListAuthorizationPoliciesRequest) GetPageToken() stringfunc (*ListAuthorizationPoliciesRequest) GetParent
func (x *ListAuthorizationPoliciesRequest) GetParent() stringfunc (*ListAuthorizationPoliciesRequest) ProtoMessage
func (*ListAuthorizationPoliciesRequest) ProtoMessage()func (*ListAuthorizationPoliciesRequest) ProtoReflect
func (x *ListAuthorizationPoliciesRequest) ProtoReflect() protoreflect.Messagefunc (*ListAuthorizationPoliciesRequest) Reset
func (x *ListAuthorizationPoliciesRequest) Reset()func (*ListAuthorizationPoliciesRequest) String
func (x *ListAuthorizationPoliciesRequest) String() stringListAuthorizationPoliciesResponse
type ListAuthorizationPoliciesResponse struct {
// List of AuthorizationPolicies resources.
AuthorizationPolicies []*AuthorizationPolicy `protobuf:"bytes,1,rep,name=authorization_policies,json=authorizationPolicies,proto3" json:"authorization_policies,omitempty"`
// If there might be more results than those appearing in this response, then
// `next_page_token` is included. To get the next set of results, call this
// method again using the value of `next_page_token` as `page_token`.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response returned by the ListAuthorizationPolicies method.
func (*ListAuthorizationPoliciesResponse) Descriptor
func (*ListAuthorizationPoliciesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListAuthorizationPoliciesResponse.ProtoReflect.Descriptor instead.
func (*ListAuthorizationPoliciesResponse) GetAuthorizationPolicies
func (x *ListAuthorizationPoliciesResponse) GetAuthorizationPolicies() []*AuthorizationPolicyfunc (*ListAuthorizationPoliciesResponse) GetNextPageToken
func (x *ListAuthorizationPoliciesResponse) GetNextPageToken() stringfunc (*ListAuthorizationPoliciesResponse) ProtoMessage
func (*ListAuthorizationPoliciesResponse) ProtoMessage()func (*ListAuthorizationPoliciesResponse) ProtoReflect
func (x *ListAuthorizationPoliciesResponse) ProtoReflect() protoreflect.Messagefunc (*ListAuthorizationPoliciesResponse) Reset
func (x *ListAuthorizationPoliciesResponse) Reset()func (*ListAuthorizationPoliciesResponse) String
func (x *ListAuthorizationPoliciesResponse) String() stringListClientTlsPoliciesRequest
type ListClientTlsPoliciesRequest struct {
// Required. The project and location from which the ClientTlsPolicies should
// be listed, specified in the format `projects/*/locations/{location}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Maximum number of ClientTlsPolicies to return per call.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The value returned by the last `ListClientTlsPoliciesResponse`
// Indicates that this is a continuation of a prior
// `ListClientTlsPolicies` call, and that the system
// should return the next page of data.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Request used by the ListClientTlsPolicies method.
func (*ListClientTlsPoliciesRequest) Descriptor
func (*ListClientTlsPoliciesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListClientTlsPoliciesRequest.ProtoReflect.Descriptor instead.
func (*ListClientTlsPoliciesRequest) GetPageSize
func (x *ListClientTlsPoliciesRequest) GetPageSize() int32func (*ListClientTlsPoliciesRequest) GetPageToken
func (x *ListClientTlsPoliciesRequest) GetPageToken() stringfunc (*ListClientTlsPoliciesRequest) GetParent
func (x *ListClientTlsPoliciesRequest) GetParent() stringfunc (*ListClientTlsPoliciesRequest) ProtoMessage
func (*ListClientTlsPoliciesRequest) ProtoMessage()func (*ListClientTlsPoliciesRequest) ProtoReflect
func (x *ListClientTlsPoliciesRequest) ProtoReflect() protoreflect.Messagefunc (*ListClientTlsPoliciesRequest) Reset
func (x *ListClientTlsPoliciesRequest) Reset()func (*ListClientTlsPoliciesRequest) String
func (x *ListClientTlsPoliciesRequest) String() stringListClientTlsPoliciesResponse
type ListClientTlsPoliciesResponse struct {
// List of ClientTlsPolicy resources.
ClientTlsPolicies []*ClientTlsPolicy `protobuf:"bytes,1,rep,name=client_tls_policies,json=clientTlsPolicies,proto3" json:"client_tls_policies,omitempty"`
// If there might be more results than those appearing in this response, then
// `next_page_token` is included. To get the next set of results, call this
// method again using the value of `next_page_token` as `page_token`.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response returned by the ListClientTlsPolicies method.
func (*ListClientTlsPoliciesResponse) Descriptor
func (*ListClientTlsPoliciesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListClientTlsPoliciesResponse.ProtoReflect.Descriptor instead.
func (*ListClientTlsPoliciesResponse) GetClientTlsPolicies
func (x *ListClientTlsPoliciesResponse) GetClientTlsPolicies() []*ClientTlsPolicyfunc (*ListClientTlsPoliciesResponse) GetNextPageToken
func (x *ListClientTlsPoliciesResponse) GetNextPageToken() stringfunc (*ListClientTlsPoliciesResponse) ProtoMessage
func (*ListClientTlsPoliciesResponse) ProtoMessage()func (*ListClientTlsPoliciesResponse) ProtoReflect
func (x *ListClientTlsPoliciesResponse) ProtoReflect() protoreflect.Messagefunc (*ListClientTlsPoliciesResponse) Reset
func (x *ListClientTlsPoliciesResponse) Reset()func (*ListClientTlsPoliciesResponse) String
func (x *ListClientTlsPoliciesResponse) String() stringListServerTlsPoliciesRequest
type ListServerTlsPoliciesRequest struct {
// Required. The project and location from which the ServerTlsPolicies should
// be listed, specified in the format `projects/*/locations/{location}`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Maximum number of ServerTlsPolicies to return per call.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The value returned by the last `ListServerTlsPoliciesResponse`
// Indicates that this is a continuation of a prior
// `ListServerTlsPolicies` call, and that the system
// should return the next page of data.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Request used by the ListServerTlsPolicies method.
func (*ListServerTlsPoliciesRequest) Descriptor
func (*ListServerTlsPoliciesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListServerTlsPoliciesRequest.ProtoReflect.Descriptor instead.
func (*ListServerTlsPoliciesRequest) GetPageSize
func (x *ListServerTlsPoliciesRequest) GetPageSize() int32func (*ListServerTlsPoliciesRequest) GetPageToken
func (x *ListServerTlsPoliciesRequest) GetPageToken() stringfunc (*ListServerTlsPoliciesRequest) GetParent
func (x *ListServerTlsPoliciesRequest) GetParent() stringfunc (*ListServerTlsPoliciesRequest) ProtoMessage
func (*ListServerTlsPoliciesRequest) ProtoMessage()func (*ListServerTlsPoliciesRequest) ProtoReflect
func (x *ListServerTlsPoliciesRequest) ProtoReflect() protoreflect.Messagefunc (*ListServerTlsPoliciesRequest) Reset
func (x *ListServerTlsPoliciesRequest) Reset()func (*ListServerTlsPoliciesRequest) String
func (x *ListServerTlsPoliciesRequest) String() stringListServerTlsPoliciesResponse
type ListServerTlsPoliciesResponse struct {
// List of ServerTlsPolicy resources.
ServerTlsPolicies []*ServerTlsPolicy `protobuf:"bytes,1,rep,name=server_tls_policies,json=serverTlsPolicies,proto3" json:"server_tls_policies,omitempty"`
// If there might be more results than those appearing in this response, then
// `next_page_token` is included. To get the next set of results, call this
// method again using the value of `next_page_token` as `page_token`.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}Response returned by the ListServerTlsPolicies method.
func (*ListServerTlsPoliciesResponse) Descriptor
func (*ListServerTlsPoliciesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListServerTlsPoliciesResponse.ProtoReflect.Descriptor instead.
func (*ListServerTlsPoliciesResponse) GetNextPageToken
func (x *ListServerTlsPoliciesResponse) GetNextPageToken() stringfunc (*ListServerTlsPoliciesResponse) GetServerTlsPolicies
func (x *ListServerTlsPoliciesResponse) GetServerTlsPolicies() []*ServerTlsPolicyfunc (*ListServerTlsPoliciesResponse) ProtoMessage
func (*ListServerTlsPoliciesResponse) ProtoMessage()func (*ListServerTlsPoliciesResponse) ProtoReflect
func (x *ListServerTlsPoliciesResponse) ProtoReflect() protoreflect.Messagefunc (*ListServerTlsPoliciesResponse) Reset
func (x *ListServerTlsPoliciesResponse) Reset()func (*ListServerTlsPoliciesResponse) String
func (x *ListServerTlsPoliciesResponse) String() stringNetworkSecurityClient
type NetworkSecurityClient interface {
// Lists AuthorizationPolicies in a given project and location.
ListAuthorizationPolicies(ctx context.Context, in *ListAuthorizationPoliciesRequest, opts ...grpc.CallOption) (*ListAuthorizationPoliciesResponse, error)
// Gets details of a single AuthorizationPolicy.
GetAuthorizationPolicy(ctx context.Context, in *GetAuthorizationPolicyRequest, opts ...grpc.CallOption) (*AuthorizationPolicy, error)
// Creates a new AuthorizationPolicy in a given project and location.
CreateAuthorizationPolicy(ctx context.Context, in *CreateAuthorizationPolicyRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Updates the parameters of a single AuthorizationPolicy.
UpdateAuthorizationPolicy(ctx context.Context, in *UpdateAuthorizationPolicyRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes a single AuthorizationPolicy.
DeleteAuthorizationPolicy(ctx context.Context, in *DeleteAuthorizationPolicyRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Lists ServerTlsPolicies in a given project and location.
ListServerTlsPolicies(ctx context.Context, in *ListServerTlsPoliciesRequest, opts ...grpc.CallOption) (*ListServerTlsPoliciesResponse, error)
// Gets details of a single ServerTlsPolicy.
GetServerTlsPolicy(ctx context.Context, in *GetServerTlsPolicyRequest, opts ...grpc.CallOption) (*ServerTlsPolicy, error)
// Creates a new ServerTlsPolicy in a given project and location.
CreateServerTlsPolicy(ctx context.Context, in *CreateServerTlsPolicyRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Updates the parameters of a single ServerTlsPolicy.
UpdateServerTlsPolicy(ctx context.Context, in *UpdateServerTlsPolicyRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes a single ServerTlsPolicy.
DeleteServerTlsPolicy(ctx context.Context, in *DeleteServerTlsPolicyRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Lists ClientTlsPolicies in a given project and location.
ListClientTlsPolicies(ctx context.Context, in *ListClientTlsPoliciesRequest, opts ...grpc.CallOption) (*ListClientTlsPoliciesResponse, error)
// Gets details of a single ClientTlsPolicy.
GetClientTlsPolicy(ctx context.Context, in *GetClientTlsPolicyRequest, opts ...grpc.CallOption) (*ClientTlsPolicy, error)
// Creates a new ClientTlsPolicy in a given project and location.
CreateClientTlsPolicy(ctx context.Context, in *CreateClientTlsPolicyRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Updates the parameters of a single ClientTlsPolicy.
UpdateClientTlsPolicy(ctx context.Context, in *UpdateClientTlsPolicyRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes a single ClientTlsPolicy.
DeleteClientTlsPolicy(ctx context.Context, in *DeleteClientTlsPolicyRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}NetworkSecurityClient is the client API for NetworkSecurity service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewNetworkSecurityClient
func NewNetworkSecurityClient(cc grpc.ClientConnInterface) NetworkSecurityClientNetworkSecurityServer
type NetworkSecurityServer interface {
// Lists AuthorizationPolicies in a given project and location.
ListAuthorizationPolicies(context.Context, *ListAuthorizationPoliciesRequest) (*ListAuthorizationPoliciesResponse, error)
// Gets details of a single AuthorizationPolicy.
GetAuthorizationPolicy(context.Context, *GetAuthorizationPolicyRequest) (*AuthorizationPolicy, error)
// Creates a new AuthorizationPolicy in a given project and location.
CreateAuthorizationPolicy(context.Context, *CreateAuthorizationPolicyRequest) (*longrunningpb.Operation, error)
// Updates the parameters of a single AuthorizationPolicy.
UpdateAuthorizationPolicy(context.Context, *UpdateAuthorizationPolicyRequest) (*longrunningpb.Operation, error)
// Deletes a single AuthorizationPolicy.
DeleteAuthorizationPolicy(context.Context, *DeleteAuthorizationPolicyRequest) (*longrunningpb.Operation, error)
// Lists ServerTlsPolicies in a given project and location.
ListServerTlsPolicies(context.Context, *ListServerTlsPoliciesRequest) (*ListServerTlsPoliciesResponse, error)
// Gets details of a single ServerTlsPolicy.
GetServerTlsPolicy(context.Context, *GetServerTlsPolicyRequest) (*ServerTlsPolicy, error)
// Creates a new ServerTlsPolicy in a given project and location.
CreateServerTlsPolicy(context.Context, *CreateServerTlsPolicyRequest) (*longrunningpb.Operation, error)
// Updates the parameters of a single ServerTlsPolicy.
UpdateServerTlsPolicy(context.Context, *UpdateServerTlsPolicyRequest) (*longrunningpb.Operation, error)
// Deletes a single ServerTlsPolicy.
DeleteServerTlsPolicy(context.Context, *DeleteServerTlsPolicyRequest) (*longrunningpb.Operation, error)
// Lists ClientTlsPolicies in a given project and location.
ListClientTlsPolicies(context.Context, *ListClientTlsPoliciesRequest) (*ListClientTlsPoliciesResponse, error)
// Gets details of a single ClientTlsPolicy.
GetClientTlsPolicy(context.Context, *GetClientTlsPolicyRequest) (*ClientTlsPolicy, error)
// Creates a new ClientTlsPolicy in a given project and location.
CreateClientTlsPolicy(context.Context, *CreateClientTlsPolicyRequest) (*longrunningpb.Operation, error)
// Updates the parameters of a single ClientTlsPolicy.
UpdateClientTlsPolicy(context.Context, *UpdateClientTlsPolicyRequest) (*longrunningpb.Operation, error)
// Deletes a single ClientTlsPolicy.
DeleteClientTlsPolicy(context.Context, *DeleteClientTlsPolicyRequest) (*longrunningpb.Operation, error)
}NetworkSecurityServer is the server API for NetworkSecurity service. All implementations should embed UnimplementedNetworkSecurityServer for forward compatibility
OperationMetadata
type OperationMetadata struct {
// Output only. The time the operation was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The time the operation finished running.
EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// Output only. Server-defined resource path for the target of the operation.
Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
// Output only. Name of the verb executed by the operation.
Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"`
// Output only. Human-readable status of the operation, if any.
StatusMessage string `protobuf:"bytes,5,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
// Output only. Identifies whether the user has requested cancellation
// of the operation. Operations that have successfully been cancelled
// have [Operation.error][] value with a
// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
// `Code.CANCELLED`.
RequestedCancellation bool `protobuf:"varint,6,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"`
// Output only. API version used to start the operation.
ApiVersion string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
// contains filtered or unexported fields
}Represents the metadata of the long-running operation.
func (*OperationMetadata) Descriptor
func (*OperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.
func (*OperationMetadata) GetApiVersion
func (x *OperationMetadata) GetApiVersion() stringfunc (*OperationMetadata) GetCreateTime
func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestampfunc (*OperationMetadata) GetEndTime
func (x *OperationMetadata) GetEndTime() *timestamppb.Timestampfunc (*OperationMetadata) GetRequestedCancellation
func (x *OperationMetadata) GetRequestedCancellation() boolfunc (*OperationMetadata) GetStatusMessage
func (x *OperationMetadata) GetStatusMessage() stringfunc (*OperationMetadata) GetTarget
func (x *OperationMetadata) GetTarget() stringfunc (*OperationMetadata) GetVerb
func (x *OperationMetadata) GetVerb() stringfunc (*OperationMetadata) ProtoMessage
func (*OperationMetadata) ProtoMessage()func (*OperationMetadata) ProtoReflect
func (x *OperationMetadata) ProtoReflect() protoreflect.Messagefunc (*OperationMetadata) Reset
func (x *OperationMetadata) Reset()func (*OperationMetadata) String
func (x *OperationMetadata) String() stringServerTlsPolicy
type ServerTlsPolicy struct {
// Required. Name of the ServerTlsPolicy resource. It matches the pattern
// `projects/*/locations/{location}/serverTlsPolicies/{server_tls_policy}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Free-text description of the resource.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// Output only. The timestamp when the resource was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The timestamp when the resource was updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// Set of label tags associated with the resource.
Labels map[string]string `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Determines if server allows plaintext connections. If set to true, server
// allows plain text connections. By default, it is set to false. This setting
// is not exclusive of other encryption modes. For example, if `allow_open`
// and `mtls_policy` are set, server allows both plain text and mTLS
// connections. See documentation of other encryption modes to confirm
// compatibility.
//
// Consider using it if you wish to upgrade in place your deployment to TLS
// while having mixed TLS and non-TLS traffic reaching port :80.
AllowOpen bool `protobuf:"varint,6,opt,name=allow_open,json=allowOpen,proto3" json:"allow_open,omitempty"`
// Defines a mechanism to provision server identity (public and private keys).
// Cannot be combined with `allow_open` as a permissive mode that allows both
// plain text and TLS is not supported.
ServerCertificate *CertificateProvider `protobuf:"bytes,7,opt,name=server_certificate,json=serverCertificate,proto3" json:"server_certificate,omitempty"`
// Defines a mechanism to provision peer validation certificates for peer to
// peer authentication (Mutual TLS - mTLS). If not specified, client
// certificate will not be requested. The connection is treated as TLS and not
// mTLS. If `allow_open` and `mtls_policy` are set, server allows both plain
// text and mTLS connections.
MtlsPolicy *ServerTlsPolicy_MTLSPolicy `protobuf:"bytes,8,opt,name=mtls_policy,json=mtlsPolicy,proto3" json:"mtls_policy,omitempty"`
// contains filtered or unexported fields
}ServerTlsPolicy is a resource that specifies how a server should authenticate incoming requests. This resource itself does not affect configuration unless it is attached to a target https proxy or endpoint config selector resource.
func (*ServerTlsPolicy) Descriptor
func (*ServerTlsPolicy) Descriptor() ([]byte, []int)Deprecated: Use ServerTlsPolicy.ProtoReflect.Descriptor instead.
func (*ServerTlsPolicy) GetAllowOpen
func (x *ServerTlsPolicy) GetAllowOpen() boolfunc (*ServerTlsPolicy) GetCreateTime
func (x *ServerTlsPolicy) GetCreateTime() *timestamppb.Timestampfunc (*ServerTlsPolicy) GetDescription
func (x *ServerTlsPolicy) GetDescription() stringfunc (*ServerTlsPolicy) GetLabels
func (x *ServerTlsPolicy) GetLabels() map[string]stringfunc (*ServerTlsPolicy) GetMtlsPolicy
func (x *ServerTlsPolicy) GetMtlsPolicy() *ServerTlsPolicy_MTLSPolicyfunc (*ServerTlsPolicy) GetName
func (x *ServerTlsPolicy) GetName() stringfunc (*ServerTlsPolicy) GetServerCertificate
func (x *ServerTlsPolicy) GetServerCertificate() *CertificateProviderfunc (*ServerTlsPolicy) GetUpdateTime
func (x *ServerTlsPolicy) GetUpdateTime() *timestamppb.Timestampfunc (*ServerTlsPolicy) ProtoMessage
func (*ServerTlsPolicy) ProtoMessage()func (*ServerTlsPolicy) ProtoReflect
func (x *ServerTlsPolicy) ProtoReflect() protoreflect.Messagefunc (*ServerTlsPolicy) Reset
func (x *ServerTlsPolicy) Reset()func (*ServerTlsPolicy) String
func (x *ServerTlsPolicy) String() stringServerTlsPolicy_MTLSPolicy
type ServerTlsPolicy_MTLSPolicy struct {
// Defines the mechanism to obtain the Certificate Authority certificate to
// validate the client certificate.
ClientValidationCa []*ValidationCA `protobuf:"bytes,1,rep,name=client_validation_ca,json=clientValidationCa,proto3" json:"client_validation_ca,omitempty"`
// contains filtered or unexported fields
}Specification of the MTLSPolicy.
func (*ServerTlsPolicy_MTLSPolicy) Descriptor
func (*ServerTlsPolicy_MTLSPolicy) Descriptor() ([]byte, []int)Deprecated: Use ServerTlsPolicy_MTLSPolicy.ProtoReflect.Descriptor instead.
func (*ServerTlsPolicy_MTLSPolicy) GetClientValidationCa
func (x *ServerTlsPolicy_MTLSPolicy) GetClientValidationCa() []*ValidationCAfunc (*ServerTlsPolicy_MTLSPolicy) ProtoMessage
func (*ServerTlsPolicy_MTLSPolicy) ProtoMessage()func (*ServerTlsPolicy_MTLSPolicy) ProtoReflect
func (x *ServerTlsPolicy_MTLSPolicy) ProtoReflect() protoreflect.Messagefunc (*ServerTlsPolicy_MTLSPolicy) Reset
func (x *ServerTlsPolicy_MTLSPolicy) Reset()func (*ServerTlsPolicy_MTLSPolicy) String
func (x *ServerTlsPolicy_MTLSPolicy) String() stringUnimplementedNetworkSecurityServer
type UnimplementedNetworkSecurityServer struct {
}UnimplementedNetworkSecurityServer should be embedded to have forward compatible implementations.
func (UnimplementedNetworkSecurityServer) CreateAuthorizationPolicy
func (UnimplementedNetworkSecurityServer) CreateAuthorizationPolicy(context.Context, *CreateAuthorizationPolicyRequest) (*longrunningpb.Operation, error)func (UnimplementedNetworkSecurityServer) CreateClientTlsPolicy
func (UnimplementedNetworkSecurityServer) CreateClientTlsPolicy(context.Context, *CreateClientTlsPolicyRequest) (*longrunningpb.Operation, error)func (UnimplementedNetworkSecurityServer) CreateServerTlsPolicy
func (UnimplementedNetworkSecurityServer) CreateServerTlsPolicy(context.Context, *CreateServerTlsPolicyRequest) (*longrunningpb.Operation, error)func (UnimplementedNetworkSecurityServer) DeleteAuthorizationPolicy
func (UnimplementedNetworkSecurityServer) DeleteAuthorizationPolicy(context.Context, *DeleteAuthorizationPolicyRequest) (*longrunningpb.Operation, error)func (UnimplementedNetworkSecurityServer) DeleteClientTlsPolicy
func (UnimplementedNetworkSecurityServer) DeleteClientTlsPolicy(context.Context, *DeleteClientTlsPolicyRequest) (*longrunningpb.Operation, error)func (UnimplementedNetworkSecurityServer) DeleteServerTlsPolicy
func (UnimplementedNetworkSecurityServer) DeleteServerTlsPolicy(context.Context, *DeleteServerTlsPolicyRequest) (*longrunningpb.Operation, error)func (UnimplementedNetworkSecurityServer) GetAuthorizationPolicy
func (UnimplementedNetworkSecurityServer) GetAuthorizationPolicy(context.Context, *GetAuthorizationPolicyRequest) (*AuthorizationPolicy, error)func (UnimplementedNetworkSecurityServer) GetClientTlsPolicy
func (UnimplementedNetworkSecurityServer) GetClientTlsPolicy(context.Context, *GetClientTlsPolicyRequest) (*ClientTlsPolicy, error)func (UnimplementedNetworkSecurityServer) GetServerTlsPolicy
func (UnimplementedNetworkSecurityServer) GetServerTlsPolicy(context.Context, *GetServerTlsPolicyRequest) (*ServerTlsPolicy, error)func (UnimplementedNetworkSecurityServer) ListAuthorizationPolicies
func (UnimplementedNetworkSecurityServer) ListAuthorizationPolicies(context.Context, *ListAuthorizationPoliciesRequest) (*ListAuthorizationPoliciesResponse, error)func (UnimplementedNetworkSecurityServer) ListClientTlsPolicies
func (UnimplementedNetworkSecurityServer) ListClientTlsPolicies(context.Context, *ListClientTlsPoliciesRequest) (*ListClientTlsPoliciesResponse, error)func (UnimplementedNetworkSecurityServer) ListServerTlsPolicies
func (UnimplementedNetworkSecurityServer) ListServerTlsPolicies(context.Context, *ListServerTlsPoliciesRequest) (*ListServerTlsPoliciesResponse, error)func (UnimplementedNetworkSecurityServer) UpdateAuthorizationPolicy
func (UnimplementedNetworkSecurityServer) UpdateAuthorizationPolicy(context.Context, *UpdateAuthorizationPolicyRequest) (*longrunningpb.Operation, error)func (UnimplementedNetworkSecurityServer) UpdateClientTlsPolicy
func (UnimplementedNetworkSecurityServer) UpdateClientTlsPolicy(context.Context, *UpdateClientTlsPolicyRequest) (*longrunningpb.Operation, error)func (UnimplementedNetworkSecurityServer) UpdateServerTlsPolicy
func (UnimplementedNetworkSecurityServer) UpdateServerTlsPolicy(context.Context, *UpdateServerTlsPolicyRequest) (*longrunningpb.Operation, error)UnsafeNetworkSecurityServer
type UnsafeNetworkSecurityServer interface {
// contains filtered or unexported methods
}UnsafeNetworkSecurityServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NetworkSecurityServer will result in compilation errors.
UpdateAuthorizationPolicyRequest
type UpdateAuthorizationPolicyRequest struct {
// Optional. Field mask is used to specify the fields to be overwritten in the
// AuthorizationPolicy resource by the update.
// The fields specified in the update_mask are relative to the resource, not
// the full request. A field will be overwritten if it is in the mask. If the
// user does not provide a mask then all fields will be overwritten.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// Required. Updated AuthorizationPolicy resource.
AuthorizationPolicy *AuthorizationPolicy `protobuf:"bytes,2,opt,name=authorization_policy,json=authorizationPolicy,proto3" json:"authorization_policy,omitempty"`
// contains filtered or unexported fields
}Request used by the UpdateAuthorizationPolicy method.
func (*UpdateAuthorizationPolicyRequest) Descriptor
func (*UpdateAuthorizationPolicyRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateAuthorizationPolicyRequest.ProtoReflect.Descriptor instead.
func (*UpdateAuthorizationPolicyRequest) GetAuthorizationPolicy
func (x *UpdateAuthorizationPolicyRequest) GetAuthorizationPolicy() *AuthorizationPolicyfunc (*UpdateAuthorizationPolicyRequest) GetUpdateMask
func (x *UpdateAuthorizationPolicyRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateAuthorizationPolicyRequest) ProtoMessage
func (*UpdateAuthorizationPolicyRequest) ProtoMessage()func (*UpdateAuthorizationPolicyRequest) ProtoReflect
func (x *UpdateAuthorizationPolicyRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateAuthorizationPolicyRequest) Reset
func (x *UpdateAuthorizationPolicyRequest) Reset()func (*UpdateAuthorizationPolicyRequest) String
func (x *UpdateAuthorizationPolicyRequest) String() stringUpdateClientTlsPolicyRequest
type UpdateClientTlsPolicyRequest struct {
// Optional. Field mask is used to specify the fields to be overwritten in the
// ClientTlsPolicy resource by the update. The fields
// specified in the update_mask are relative to the resource, not
// the full request. A field will be overwritten if it is in the
// mask. If the user does not provide a mask then all fields will be
// overwritten.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// Required. Updated ClientTlsPolicy resource.
ClientTlsPolicy *ClientTlsPolicy `protobuf:"bytes,2,opt,name=client_tls_policy,json=clientTlsPolicy,proto3" json:"client_tls_policy,omitempty"`
// contains filtered or unexported fields
}Request used by UpdateClientTlsPolicy method.
func (*UpdateClientTlsPolicyRequest) Descriptor
func (*UpdateClientTlsPolicyRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateClientTlsPolicyRequest.ProtoReflect.Descriptor instead.
func (*UpdateClientTlsPolicyRequest) GetClientTlsPolicy
func (x *UpdateClientTlsPolicyRequest) GetClientTlsPolicy() *ClientTlsPolicyfunc (*UpdateClientTlsPolicyRequest) GetUpdateMask
func (x *UpdateClientTlsPolicyRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateClientTlsPolicyRequest) ProtoMessage
func (*UpdateClientTlsPolicyRequest) ProtoMessage()func (*UpdateClientTlsPolicyRequest) ProtoReflect
func (x *UpdateClientTlsPolicyRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateClientTlsPolicyRequest) Reset
func (x *UpdateClientTlsPolicyRequest) Reset()func (*UpdateClientTlsPolicyRequest) String
func (x *UpdateClientTlsPolicyRequest) String() stringUpdateServerTlsPolicyRequest
type UpdateServerTlsPolicyRequest struct {
// Optional. Field mask is used to specify the fields to be overwritten in the
// ServerTlsPolicy resource by the update. The fields
// specified in the update_mask are relative to the resource, not
// the full request. A field will be overwritten if it is in the
// mask. If the user does not provide a mask then all fields will be
// overwritten.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
// Required. Updated ServerTlsPolicy resource.
ServerTlsPolicy *ServerTlsPolicy `protobuf:"bytes,2,opt,name=server_tls_policy,json=serverTlsPolicy,proto3" json:"server_tls_policy,omitempty"`
// contains filtered or unexported fields
}Request used by UpdateServerTlsPolicy method.
func (*UpdateServerTlsPolicyRequest) Descriptor
func (*UpdateServerTlsPolicyRequest) Descriptor() ([]byte, []int)Deprecated: Use UpdateServerTlsPolicyRequest.ProtoReflect.Descriptor instead.
func (*UpdateServerTlsPolicyRequest) GetServerTlsPolicy
func (x *UpdateServerTlsPolicyRequest) GetServerTlsPolicy() *ServerTlsPolicyfunc (*UpdateServerTlsPolicyRequest) GetUpdateMask
func (x *UpdateServerTlsPolicyRequest) GetUpdateMask() *fieldmaskpb.FieldMaskfunc (*UpdateServerTlsPolicyRequest) ProtoMessage
func (*UpdateServerTlsPolicyRequest) ProtoMessage()func (*UpdateServerTlsPolicyRequest) ProtoReflect
func (x *UpdateServerTlsPolicyRequest) ProtoReflect() protoreflect.Messagefunc (*UpdateServerTlsPolicyRequest) Reset
func (x *UpdateServerTlsPolicyRequest) Reset()func (*UpdateServerTlsPolicyRequest) String
func (x *UpdateServerTlsPolicyRequest) String() stringValidationCA
type ValidationCA struct {
// The type of certificate provider which provides the CA certificate.
//
// Types that are assignable to Type:
//
// *ValidationCA_GrpcEndpoint
// *ValidationCA_CertificateProviderInstance
Type isValidationCA_Type `protobuf_oneof:"type"`
// contains filtered or unexported fields
}Specification of ValidationCA. Defines the mechanism to obtain the Certificate Authority certificate to validate the peer certificate.
func (*ValidationCA) Descriptor
func (*ValidationCA) Descriptor() ([]byte, []int)Deprecated: Use ValidationCA.ProtoReflect.Descriptor instead.
func (*ValidationCA) GetCertificateProviderInstance
func (x *ValidationCA) GetCertificateProviderInstance() *CertificateProviderInstancefunc (*ValidationCA) GetGrpcEndpoint
func (x *ValidationCA) GetGrpcEndpoint() *GrpcEndpointfunc (*ValidationCA) GetType
func (m *ValidationCA) GetType() isValidationCA_Typefunc (*ValidationCA) ProtoMessage
func (*ValidationCA) ProtoMessage()func (*ValidationCA) ProtoReflect
func (x *ValidationCA) ProtoReflect() protoreflect.Messagefunc (*ValidationCA) Reset
func (x *ValidationCA) Reset()func (*ValidationCA) String
func (x *ValidationCA) String() stringValidationCA_CertificateProviderInstance
type ValidationCA_CertificateProviderInstance struct {
// The certificate provider instance specification that will be passed to
// the data plane, which will be used to load necessary credential
// information.
CertificateProviderInstance *CertificateProviderInstance `protobuf:"bytes,3,opt,name=certificate_provider_instance,json=certificateProviderInstance,proto3,oneof"`
}ValidationCA_GrpcEndpoint
type ValidationCA_GrpcEndpoint struct {
// gRPC specific configuration to access the gRPC server to
// obtain the CA certificate.
GrpcEndpoint *GrpcEndpoint `protobuf:"bytes,2,opt,name=grpc_endpoint,json=grpcEndpoint,proto3,oneof"`
}