1 // Copyright 2022 Google LLC 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by aliasgen. DO NOT EDIT. 16 17 // Package networksecurity aliases all exported identifiers in package 18 // "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb". 19 // 20 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb. 21 // Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md 22 // for more details. 23 package networksecurity 24 25 import ( 26 src "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb" 27 grpc "google.golang.org/grpc" 28 ) 29 30 // Deprecated: Please use consts in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 31 const ( 32 AuthorizationPolicy_ACTION_UNSPECIFIED = src.AuthorizationPolicy_ACTION_UNSPECIFIED 33 AuthorizationPolicy_ALLOW = src.AuthorizationPolicy_ALLOW 34 AuthorizationPolicy_DENY = src.AuthorizationPolicy_DENY 35 ) 36 37 // Deprecated: Please use vars in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 38 var ( 39 AuthorizationPolicy_Action_name = src.AuthorizationPolicy_Action_name 40 AuthorizationPolicy_Action_value = src.AuthorizationPolicy_Action_value 41 File_google_cloud_networksecurity_v1beta1_authorization_policy_proto = src.File_google_cloud_networksecurity_v1beta1_authorization_policy_proto 42 File_google_cloud_networksecurity_v1beta1_client_tls_policy_proto = src.File_google_cloud_networksecurity_v1beta1_client_tls_policy_proto 43 File_google_cloud_networksecurity_v1beta1_common_proto = src.File_google_cloud_networksecurity_v1beta1_common_proto 44 File_google_cloud_networksecurity_v1beta1_network_security_proto = src.File_google_cloud_networksecurity_v1beta1_network_security_proto 45 File_google_cloud_networksecurity_v1beta1_server_tls_policy_proto = src.File_google_cloud_networksecurity_v1beta1_server_tls_policy_proto 46 File_google_cloud_networksecurity_v1beta1_tls_proto = src.File_google_cloud_networksecurity_v1beta1_tls_proto 47 ) 48 49 // AuthorizationPolicy is a resource that specifies how a server should 50 // authorize incoming connections. This resource in itself does not change the 51 // configuration unless it's attached to a target https proxy or endpoint 52 // config selector resource. 53 // 54 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 55 type AuthorizationPolicy = src.AuthorizationPolicy 56 57 // Possible values that define what action to take. 58 // 59 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 60 type AuthorizationPolicy_Action = src.AuthorizationPolicy_Action 61 62 // Specification of rules. 63 // 64 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 65 type AuthorizationPolicy_Rule = src.AuthorizationPolicy_Rule 66 67 // Specification of traffic destination attributes. 68 // 69 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 70 type AuthorizationPolicy_Rule_Destination = src.AuthorizationPolicy_Rule_Destination 71 72 // Specification of HTTP header match attributes. 73 // 74 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 75 type AuthorizationPolicy_Rule_Destination_HttpHeaderMatch = src.AuthorizationPolicy_Rule_Destination_HttpHeaderMatch 76 type AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_RegexMatch = src.AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_RegexMatch 77 78 // Specification of traffic source attributes. 79 // 80 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 81 type AuthorizationPolicy_Rule_Source = src.AuthorizationPolicy_Rule_Source 82 83 // Specification of certificate provider. Defines the mechanism to obtain the 84 // certificate and private key for peer to peer authentication. 85 // 86 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 87 type CertificateProvider = src.CertificateProvider 88 89 // Specification of a TLS certificate provider instance. Workloads may have 90 // one or more CertificateProvider instances (plugins) and one of them is 91 // enabled and configured by specifying this message. Workloads use the values 92 // from this message to locate and load the CertificateProvider instance 93 // configuration. 94 // 95 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 96 type CertificateProviderInstance = src.CertificateProviderInstance 97 type CertificateProvider_CertificateProviderInstance = src.CertificateProvider_CertificateProviderInstance 98 type CertificateProvider_GrpcEndpoint = src.CertificateProvider_GrpcEndpoint 99 100 // ClientTlsPolicy is a resource that specifies how a client should 101 // authenticate connections to backends of a service. This resource itself does 102 // not affect configuration unless it is attached to a backend service 103 // resource. 104 // 105 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 106 type ClientTlsPolicy = src.ClientTlsPolicy 107 108 // Request used by the CreateAuthorizationPolicy method. 109 // 110 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 111 type CreateAuthorizationPolicyRequest = src.CreateAuthorizationPolicyRequest 112 113 // Request used by the CreateClientTlsPolicy method. 114 // 115 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 116 type CreateClientTlsPolicyRequest = src.CreateClientTlsPolicyRequest 117 118 // Request used by the CreateServerTlsPolicy method. 119 // 120 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 121 type CreateServerTlsPolicyRequest = src.CreateServerTlsPolicyRequest 122 123 // Request used by the DeleteAuthorizationPolicy method. 124 // 125 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 126 type DeleteAuthorizationPolicyRequest = src.DeleteAuthorizationPolicyRequest 127 128 // Request used by the DeleteClientTlsPolicy method. 129 // 130 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 131 type DeleteClientTlsPolicyRequest = src.DeleteClientTlsPolicyRequest 132 133 // Request used by the DeleteServerTlsPolicy method. 134 // 135 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 136 type DeleteServerTlsPolicyRequest = src.DeleteServerTlsPolicyRequest 137 138 // Request used by the GetAuthorizationPolicy method. 139 // 140 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 141 type GetAuthorizationPolicyRequest = src.GetAuthorizationPolicyRequest 142 143 // Request used by the GetClientTlsPolicy method. 144 // 145 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 146 type GetClientTlsPolicyRequest = src.GetClientTlsPolicyRequest 147 148 // Request used by the GetServerTlsPolicy method. 149 // 150 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 151 type GetServerTlsPolicyRequest = src.GetServerTlsPolicyRequest 152 153 // Specification of the GRPC Endpoint. 154 // 155 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 156 type GrpcEndpoint = src.GrpcEndpoint 157 158 // Request used with the ListAuthorizationPolicies method. 159 // 160 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 161 type ListAuthorizationPoliciesRequest = src.ListAuthorizationPoliciesRequest 162 163 // Response returned by the ListAuthorizationPolicies method. 164 // 165 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 166 type ListAuthorizationPoliciesResponse = src.ListAuthorizationPoliciesResponse 167 168 // Request used by the ListClientTlsPolicies method. 169 // 170 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 171 type ListClientTlsPoliciesRequest = src.ListClientTlsPoliciesRequest 172 173 // Response returned by the ListClientTlsPolicies method. 174 // 175 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 176 type ListClientTlsPoliciesResponse = src.ListClientTlsPoliciesResponse 177 178 // Request used by the ListServerTlsPolicies method. 179 // 180 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 181 type ListServerTlsPoliciesRequest = src.ListServerTlsPoliciesRequest 182 183 // Response returned by the ListServerTlsPolicies method. 184 // 185 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 186 type ListServerTlsPoliciesResponse = src.ListServerTlsPoliciesResponse 187 188 // NetworkSecurityClient is the client API for NetworkSecurity service. For 189 // semantics around ctx use and closing/ending streaming RPCs, please refer to 190 // https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 191 // 192 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 193 type NetworkSecurityClient = src.NetworkSecurityClient 194 195 // NetworkSecurityServer is the server API for NetworkSecurity service. 196 // 197 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 198 type NetworkSecurityServer = src.NetworkSecurityServer 199 200 // Represents the metadata of the long-running operation. 201 // 202 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 203 type OperationMetadata = src.OperationMetadata 204 205 // ServerTlsPolicy is a resource that specifies how a server should 206 // authenticate incoming requests. This resource itself does not affect 207 // configuration unless it is attached to a target https proxy or endpoint 208 // config selector resource. 209 // 210 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 211 type ServerTlsPolicy = src.ServerTlsPolicy 212 213 // Specification of the MTLSPolicy. 214 // 215 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 216 type ServerTlsPolicy_MTLSPolicy = src.ServerTlsPolicy_MTLSPolicy 217 218 // UnimplementedNetworkSecurityServer can be embedded to have forward 219 // compatible implementations. 220 // 221 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 222 type UnimplementedNetworkSecurityServer = src.UnimplementedNetworkSecurityServer 223 224 // Request used by the UpdateAuthorizationPolicy method. 225 // 226 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 227 type UpdateAuthorizationPolicyRequest = src.UpdateAuthorizationPolicyRequest 228 229 // Request used by UpdateClientTlsPolicy method. 230 // 231 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 232 type UpdateClientTlsPolicyRequest = src.UpdateClientTlsPolicyRequest 233 234 // Request used by UpdateServerTlsPolicy method. 235 // 236 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 237 type UpdateServerTlsPolicyRequest = src.UpdateServerTlsPolicyRequest 238 239 // Specification of ValidationCA. Defines the mechanism to obtain the 240 // Certificate Authority certificate to validate the peer certificate. 241 // 242 // Deprecated: Please use types in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 243 type ValidationCA = src.ValidationCA 244 type ValidationCA_CertificateProviderInstance = src.ValidationCA_CertificateProviderInstance 245 type ValidationCA_GrpcEndpoint = src.ValidationCA_GrpcEndpoint 246 247 // Deprecated: Please use funcs in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 248 func NewNetworkSecurityClient(cc grpc.ClientConnInterface) NetworkSecurityClient { 249 return src.NewNetworkSecurityClient(cc) 250 } 251 252 // Deprecated: Please use funcs in: cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb 253 func RegisterNetworkSecurityServer(s *grpc.Server, srv NetworkSecurityServer) { 254 src.RegisterNetworkSecurityServer(s, srv) 255 } 256