| 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 protoc-gen-go. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// protoc-gen-go v1.26.0 |
| 18 |
// protoc v3.12.2 |
| 19 |
// source: google/cloud/networksecurity/v1/authorization_policy.proto |
| 20 |
|
| 21 |
package networksecurity |
| 22 |
|
| 23 |
import ( |
| 24 |
reflect "reflect" |
| 25 |
sync "sync" |
| 26 |
|
| 27 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 28 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 29 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 30 |
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" |
| 31 |
timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
| 32 |
) |
| 33 |
|
| 34 |
const ( |
| 35 |
// Verify that this generated code is sufficiently up-to-date. |
| 36 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 37 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 38 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 39 |
) |
| 40 |
|
| 41 |
// Possible values that define what action to take. |
| 42 |
type AuthorizationPolicy_Action int32 |
| 43 |
|
| 44 |
const ( |
| 45 |
// Default value. |
| 46 |
AuthorizationPolicy_ACTION_UNSPECIFIED AuthorizationPolicy_Action = 0 |
| 47 |
// Grant access. |
| 48 |
AuthorizationPolicy_ALLOW AuthorizationPolicy_Action = 1 |
| 49 |
// Deny access. |
| 50 |
// Deny rules should be avoided unless they are used to provide a default |
| 51 |
// "deny all" fallback. |
| 52 |
AuthorizationPolicy_DENY AuthorizationPolicy_Action = 2 |
| 53 |
) |
| 54 |
|
| 55 |
// Enum value maps for AuthorizationPolicy_Action. |
| 56 |
var ( |
| 57 |
AuthorizationPolicy_Action_name = map[int32]string{ |
| 58 |
0: "ACTION_UNSPECIFIED", |
| 59 |
1: "ALLOW", |
| 60 |
2: "DENY", |
| 61 |
} |
| 62 |
AuthorizationPolicy_Action_value = map[string]int32{ |
| 63 |
"ACTION_UNSPECIFIED": 0, |
| 64 |
"ALLOW": 1, |
| 65 |
"DENY": 2, |
| 66 |
} |
| 67 |
) |
| 68 |
|
| 69 |
func (x AuthorizationPolicy_Action) Enum() *AuthorizationPolicy_Action { |
| 70 |
p := new(AuthorizationPolicy_Action) |
| 71 |
*p = x |
| 72 |
return p |
| 73 |
} |
| 74 |
|
| 75 |
func (x AuthorizationPolicy_Action) String() string { |
| 76 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 77 |
} |
| 78 |
|
| 79 |
func (AuthorizationPolicy_Action) Descriptor() protoreflect.EnumDescriptor { |
| 80 |
return file_google_cloud_networksecurity_v1_authorization_policy_proto_enumTypes[0].Descriptor() |
| 81 |
} |
| 82 |
|
| 83 |
func (AuthorizationPolicy_Action) Type() protoreflect.EnumType { |
| 84 |
return &file_google_cloud_networksecurity_v1_authorization_policy_proto_enumTypes[0] |
| 85 |
} |
| 86 |
|
| 87 |
func (x AuthorizationPolicy_Action) Number() protoreflect.EnumNumber { |
| 88 |
return protoreflect.EnumNumber(x) |
| 89 |
} |
| 90 |
|
| 91 |
// Deprecated: Use AuthorizationPolicy_Action.Descriptor instead. |
| 92 |
func (AuthorizationPolicy_Action) EnumDescriptor() ([]byte, []int) { |
| 93 |
return file_google_cloud_networksecurity_v1_authorization_policy_proto_rawDescGZIP(), []int{0, 0} |
| 94 |
} |
| 95 |
|
| 96 |
// AuthorizationPolicy is a resource that specifies how a server |
| 97 |
// should authorize incoming connections. This resource in itself does |
| 98 |
// not change the configuration unless it's attached to a target https |
| 99 |
// proxy or endpoint config selector resource. |
| 100 |
type AuthorizationPolicy struct { |
| 101 |
state protoimpl.MessageState |
| 102 |
sizeCache protoimpl.SizeCache |
| 103 |
unknownFields protoimpl.UnknownFields |
| 104 |
|
| 105 |
// Required. Name of the AuthorizationPolicy resource. It matches pattern |
| 106 |
// `projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>`. |
| 107 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 108 |
// Optional. Free-text description of the resource. |
| 109 |
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` |
| 110 |
// Output only. The timestamp when the resource was created. |
| 111 |
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` |
| 112 |
// Output only. The timestamp when the resource was updated. |
| 113 |
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` |
| 114 |
// Optional. Set of label tags associated with the AuthorizationPolicy resource. |
| 115 |
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"` |
| 116 |
// Required. The action to take when a rule match is found. Possible values |
| 117 |
// are "ALLOW" or "DENY". |
| 118 |
Action AuthorizationPolicy_Action `protobuf:"varint,6,opt,name=action,proto3,enum=google.cloud.networksecurity.v1.AuthorizationPolicy_Action" json:"action,omitempty"` |
| 119 |
// Optional. List of rules to match. Note that at least one of the rules must match in |
| 120 |
// order for the action specified in the 'action' field to be taken. A rule is |
| 121 |
// a match if there is a matching source and destination. If left blank, the |
| 122 |
// action specified in the `action` field will be applied on every request. |
| 123 |
Rules []*AuthorizationPolicy_Rule `protobuf:"bytes,7,rep,name=rules,proto3" json:"rules,omitempty"` |
| 124 |
} |
| 125 |
|
| 126 |
func (x *AuthorizationPolicy) Reset() { |
| 127 |
*x = AuthorizationPolicy{} |
| 128 |
if protoimpl.UnsafeEnabled { |
| 129 |
mi := &file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[0] |
| 130 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 131 |
ms.StoreMessageInfo(mi) |
| 132 |
} |
| 133 |
} |
| 134 |
|
| 135 |
func (x *AuthorizationPolicy) String() string { |
| 136 |
return protoimpl.X.MessageStringOf(x) |
| 137 |
} |
| 138 |
|
| 139 |
func (*AuthorizationPolicy) ProtoMessage() {} |
| 140 |
|
| 141 |
func (x *AuthorizationPolicy) ProtoReflect() protoreflect.Message { |
| 142 |
mi := &file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[0] |
| 143 |
if protoimpl.UnsafeEnabled && x != nil { |
| 144 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 145 |
if ms.LoadMessageInfo() == nil { |
| 146 |
ms.StoreMessageInfo(mi) |
| 147 |
} |
| 148 |
return ms |
| 149 |
} |
| 150 |
return mi.MessageOf(x) |
| 151 |
} |
| 152 |
|
| 153 |
// Deprecated: Use AuthorizationPolicy.ProtoReflect.Descriptor instead. |
| 154 |
func (*AuthorizationPolicy) Descriptor() ([]byte, []int) { |
| 155 |
return file_google_cloud_networksecurity_v1_authorization_policy_proto_rawDescGZIP(), []int{0} |
| 156 |
} |
| 157 |
|
| 158 |
func (x *AuthorizationPolicy) GetName() string { |
| 159 |
if x != nil { |
| 160 |
return x.Name |
| 161 |
} |
| 162 |
return "" |
| 163 |
} |
| 164 |
|
| 165 |
func (x *AuthorizationPolicy) GetDescription() string { |
| 166 |
if x != nil { |
| 167 |
return x.Description |
| 168 |
} |
| 169 |
return "" |
| 170 |
} |
| 171 |
|
| 172 |
func (x *AuthorizationPolicy) GetCreateTime() *timestamppb.Timestamp { |
| 173 |
if x != nil { |
| 174 |
return x.CreateTime |
| 175 |
} |
| 176 |
return nil |
| 177 |
} |
| 178 |
|
| 179 |
func (x *AuthorizationPolicy) GetUpdateTime() *timestamppb.Timestamp { |
| 180 |
if x != nil { |
| 181 |
return x.UpdateTime |
| 182 |
} |
| 183 |
return nil |
| 184 |
} |
| 185 |
|
| 186 |
func (x *AuthorizationPolicy) GetLabels() map[string]string { |
| 187 |
if x != nil { |
| 188 |
return x.Labels |
| 189 |
} |
| 190 |
return nil |
| 191 |
} |
| 192 |
|
| 193 |
func (x *AuthorizationPolicy) GetAction() AuthorizationPolicy_Action { |
| 194 |
if x != nil { |
| 195 |
return x.Action |
| 196 |
} |
| 197 |
return AuthorizationPolicy_ACTION_UNSPECIFIED |
| 198 |
} |
| 199 |
|
| 200 |
func (x *AuthorizationPolicy) GetRules() []*AuthorizationPolicy_Rule { |
| 201 |
if x != nil { |
| 202 |
return x.Rules |
| 203 |
} |
| 204 |
return nil |
| 205 |
} |
| 206 |
|
| 207 |
// Request used with the ListAuthorizationPolicies method. |
| 208 |
type ListAuthorizationPoliciesRequest struct { |
| 209 |
state protoimpl.MessageState |
| 210 |
sizeCache protoimpl.SizeCache |
| 211 |
unknownFields protoimpl.UnknownFields |
| 212 |
|
| 213 |
// Required. The project and location from which the AuthorizationPolicies |
| 214 |
// should be listed, specified in the format |
| 215 |
// `projects/{project}/locations/{location}`. |
| 216 |
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` |
| 217 |
// Maximum number of AuthorizationPolicies to return per call. |
| 218 |
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` |
| 219 |
// The value returned by the last |
| 220 |
// `ListAuthorizationPoliciesResponse` Indicates that this is a |
| 221 |
// continuation of a prior `ListAuthorizationPolicies` call, and |
| 222 |
// that the system should return the next page of data. |
| 223 |
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` |
| 224 |
} |
| 225 |
|
| 226 |
func (x *ListAuthorizationPoliciesRequest) Reset() { |
| 227 |
*x = ListAuthorizationPoliciesRequest{} |
| 228 |
if protoimpl.UnsafeEnabled { |
| 229 |
mi := &file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[1] |
| 230 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 231 |
ms.StoreMessageInfo(mi) |
| 232 |
} |
| 233 |
} |
| 234 |
|
| 235 |
func (x *ListAuthorizationPoliciesRequest) String() string { |
| 236 |
return protoimpl.X.MessageStringOf(x) |
| 237 |
} |
| 238 |
|
| 239 |
func (*ListAuthorizationPoliciesRequest) ProtoMessage() {} |
| 240 |
|
| 241 |
func (x *ListAuthorizationPoliciesRequest) ProtoReflect() protoreflect.Message { |
| 242 |
mi := &file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[1] |
| 243 |
if protoimpl.UnsafeEnabled && x != nil { |
| 244 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 245 |
if ms.LoadMessageInfo() == nil { |
| 246 |
ms.StoreMessageInfo(mi) |
| 247 |
} |
| 248 |
return ms |
| 249 |
} |
| 250 |
return mi.MessageOf(x) |
| 251 |
} |
| 252 |
|
| 253 |
// Deprecated: Use ListAuthorizationPoliciesRequest.ProtoReflect.Descriptor instead. |
| 254 |
func (*ListAuthorizationPoliciesRequest) Descriptor() ([]byte, []int) { |
| 255 |
return file_google_cloud_networksecurity_v1_authorization_policy_proto_rawDescGZIP(), []int{1} |
| 256 |
} |
| 257 |
|
| 258 |
func (x *ListAuthorizationPoliciesRequest) GetParent() string { |
| 259 |
if x != nil { |
| 260 |
return x.Parent |
| 261 |
} |
| 262 |
return "" |
| 263 |
} |
| 264 |
|
| 265 |
func (x *ListAuthorizationPoliciesRequest) GetPageSize() int32 { |
| 266 |
if x != nil { |
| 267 |
return x.PageSize |
| 268 |
} |
| 269 |
return 0 |
| 270 |
} |
| 271 |
|
| 272 |
func (x *ListAuthorizationPoliciesRequest) GetPageToken() string { |
| 273 |
if x != nil { |
| 274 |
return x.PageToken |
| 275 |
} |
| 276 |
return "" |
| 277 |
} |
| 278 |
|
| 279 |
// Response returned by the ListAuthorizationPolicies method. |
| 280 |
type ListAuthorizationPoliciesResponse struct { |
| 281 |
state protoimpl.MessageState |
| 282 |
sizeCache protoimpl.SizeCache |
| 283 |
unknownFields protoimpl.UnknownFields |
| 284 |
|
| 285 |
// List of AuthorizationPolicies resources. |
| 286 |
AuthorizationPolicies []*AuthorizationPolicy `protobuf:"bytes,1,rep,name=authorization_policies,json=authorizationPolicies,proto3" json:"authorization_policies,omitempty"` |
| 287 |
// If there might be more results than those appearing in this response, then |
| 288 |
// `next_page_token` is included. To get the next set of results, call this |
| 289 |
// method again using the value of `next_page_token` as `page_token`. |
| 290 |
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` |
| 291 |
} |
| 292 |
|
| 293 |
func (x *ListAuthorizationPoliciesResponse) Reset() { |
| 294 |
*x = ListAuthorizationPoliciesResponse{} |
| 295 |
if protoimpl.UnsafeEnabled { |
| 296 |
mi := &file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[2] |
| 297 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 298 |
ms.StoreMessageInfo(mi) |
| 299 |
} |
| 300 |
} |
| 301 |
|
| 302 |
func (x *ListAuthorizationPoliciesResponse) String() string { |
| 303 |
return protoimpl.X.MessageStringOf(x) |
| 304 |
} |
| 305 |
|
| 306 |
func (*ListAuthorizationPoliciesResponse) ProtoMessage() {} |
| 307 |
|
| 308 |
func (x *ListAuthorizationPoliciesResponse) ProtoReflect() protoreflect.Message { |
| 309 |
mi := &file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[2] |
| 310 |
if protoimpl.UnsafeEnabled && x != nil { |
| 311 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 312 |
if ms.LoadMessageInfo() == nil { |
| 313 |
ms.StoreMessageInfo(mi) |
| 314 |
} |
| 315 |
return ms |
| 316 |
} |
| 317 |
return mi.MessageOf(x) |
| 318 |
} |
| 319 |
|
| 320 |
// Deprecated: Use ListAuthorizationPoliciesResponse.ProtoReflect.Descriptor instead. |
| 321 |
func (*ListAuthorizationPoliciesResponse) Descriptor() ([]byte, []int) { |
| 322 |
return file_google_cloud_networksecurity_v1_authorization_policy_proto_rawDescGZIP(), []int{2} |
| 323 |
} |
| 324 |
|
| 325 |
func (x *ListAuthorizationPoliciesResponse) GetAuthorizationPolicies() []*AuthorizationPolicy { |
| 326 |
if x != nil { |
| 327 |
return x.AuthorizationPolicies |
| 328 |
} |
| 329 |
return nil |
| 330 |
} |
| 331 |
|
| 332 |
func (x *ListAuthorizationPoliciesResponse) GetNextPageToken() string { |
| 333 |
if x != nil { |
| 334 |
return x.NextPageToken |
| 335 |
} |
| 336 |
return "" |
| 337 |
} |
| 338 |
|
| 339 |
// Request used by the GetAuthorizationPolicy method. |
| 340 |
type GetAuthorizationPolicyRequest struct { |
| 341 |
state protoimpl.MessageState |
| 342 |
sizeCache protoimpl.SizeCache |
| 343 |
unknownFields protoimpl.UnknownFields |
| 344 |
|
| 345 |
// Required. A name of the AuthorizationPolicy to get. Must be in the format |
| 346 |
// `projects/{project}/locations/{location}/authorizationPolicies/*`. |
| 347 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 348 |
} |
| 349 |
|
| 350 |
func (x *GetAuthorizationPolicyRequest) Reset() { |
| 351 |
*x = GetAuthorizationPolicyRequest{} |
| 352 |
if protoimpl.UnsafeEnabled { |
| 353 |
mi := &file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[3] |
| 354 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 355 |
ms.StoreMessageInfo(mi) |
| 356 |
} |
| 357 |
} |
| 358 |
|
| 359 |
func (x *GetAuthorizationPolicyRequest) String() string { |
| 360 |
return protoimpl.X.MessageStringOf(x) |
| 361 |
} |
| 362 |
|
| 363 |
func (*GetAuthorizationPolicyRequest) ProtoMessage() {} |
| 364 |
|
| 365 |
func (x *GetAuthorizationPolicyRequest) ProtoReflect() protoreflect.Message { |
| 366 |
mi := &file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[3] |
| 367 |
if protoimpl.UnsafeEnabled && x != nil { |
| 368 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 369 |
if ms.LoadMessageInfo() == nil { |
| 370 |
ms.StoreMessageInfo(mi) |
| 371 |
} |
| 372 |
return ms |
| 373 |
} |
| 374 |
return mi.MessageOf(x) |
| 375 |
} |
| 376 |
|
| 377 |
// Deprecated: Use GetAuthorizationPolicyRequest.ProtoReflect.Descriptor instead. |
| 378 |
func (*GetAuthorizationPolicyRequest) Descriptor() ([]byte, []int) { |
| 379 |
return file_google_cloud_networksecurity_v1_authorization_policy_proto_rawDescGZIP(), []int{3} |
| 380 |
} |
| 381 |
|
| 382 |
func (x *GetAuthorizationPolicyRequest) GetName() string { |
| 383 |
if x != nil { |
| 384 |
return x.Name |
| 385 |
} |
| 386 |
return "" |
| 387 |
} |
| 388 |
|
| 389 |
// Request used by the CreateAuthorizationPolicy method. |
| 390 |
type CreateAuthorizationPolicyRequest struct { |
| 391 |
state protoimpl.MessageState |
| 392 |
sizeCache protoimpl.SizeCache |
| 393 |
unknownFields protoimpl.UnknownFields |
| 394 |
|
| 395 |
// Required. The parent resource of the AuthorizationPolicy. Must be in the |
| 396 |
// format `projects/{project}/locations/{location}`. |
| 397 |
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` |
| 398 |
// Required. Short name of the AuthorizationPolicy resource to be created. |
| 399 |
// This value should be 1-63 characters long, containing only |
| 400 |
// letters, numbers, hyphens, and underscores, and should not start |
| 401 |
// with a number. E.g. "authz_policy". |
| 402 |
AuthorizationPolicyId string `protobuf:"bytes,2,opt,name=authorization_policy_id,json=authorizationPolicyId,proto3" json:"authorization_policy_id,omitempty"` |
| 403 |
// Required. AuthorizationPolicy resource to be created. |
| 404 |
AuthorizationPolicy *AuthorizationPolicy `protobuf:"bytes,3,opt,name=authorization_policy,json=authorizationPolicy,proto3" json:"authorization_policy,omitempty"` |
| 405 |
} |
| 406 |
|
| 407 |
func (x *CreateAuthorizationPolicyRequest) Reset() { |
| 408 |
*x = CreateAuthorizationPolicyRequest{} |
| 409 |
if protoimpl.UnsafeEnabled { |
| 410 |
mi := &file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[4] |
| 411 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 412 |
ms.StoreMessageInfo(mi) |
| 413 |
} |
| 414 |
} |
| 415 |
|
| 416 |
func (x *CreateAuthorizationPolicyRequest) String() string { |
| 417 |
return protoimpl.X.MessageStringOf(x) |
| 418 |
} |
| 419 |
|
| 420 |
func (*CreateAuthorizationPolicyRequest) ProtoMessage() {} |
| 421 |
|
| 422 |
func (x *CreateAuthorizationPolicyRequest) ProtoReflect() protoreflect.Message { |
| 423 |
mi := &file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[4] |
| 424 |
if protoimpl.UnsafeEnabled && x != nil { |
| 425 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 426 |
if ms.LoadMessageInfo() == nil { |
| 427 |
ms.StoreMessageInfo(mi) |
| 428 |
} |
| 429 |
return ms |
| 430 |
} |
| 431 |
return mi.MessageOf(x) |
| 432 |
} |
| 433 |
|
| 434 |
// Deprecated: Use CreateAuthorizationPolicyRequest.ProtoReflect.Descriptor instead. |
| 435 |
func (*CreateAuthorizationPolicyRequest) Descriptor() ([]byte, []int) { |
| 436 |
return file_google_cloud_networksecurity_v1_authorization_policy_proto_rawDescGZIP(), []int{4} |
| 437 |
} |
| 438 |
|
| 439 |
func (x *CreateAuthorizationPolicyRequest) GetParent() string { |
| 440 |
if x != nil { |
| 441 |
return x.Parent |
| 442 |
} |
| 443 |
return "" |
| 444 |
} |
| 445 |
|
| 446 |
func (x *CreateAuthorizationPolicyRequest) GetAuthorizationPolicyId() string { |
| 447 |
if x != nil { |
| 448 |
return x.AuthorizationPolicyId |
| 449 |
} |
| 450 |
return "" |
| 451 |
} |
| 452 |
|
| 453 |
func (x *CreateAuthorizationPolicyRequest) GetAuthorizationPolicy() *AuthorizationPolicy { |
| 454 |
if x != nil { |
| 455 |
return x.AuthorizationPolicy |
| 456 |
} |
| 457 |
return nil |
| 458 |
} |
| 459 |
|
| 460 |
// Request used by the UpdateAuthorizationPolicy method. |
| 461 |
type UpdateAuthorizationPolicyRequest struct { |
| 462 |
state protoimpl.MessageState |
| 463 |
sizeCache protoimpl.SizeCache |
| 464 |
unknownFields protoimpl.UnknownFields |
| 465 |
|
| 466 |
// Optional. Field mask is used to specify the fields to be overwritten in the |
| 467 |
// AuthorizationPolicy resource by the update. |
| 468 |
// The fields specified in the update_mask are relative to the resource, not |
| 469 |
// the full request. A field will be overwritten if it is in the mask. If the |
| 470 |
// user does not provide a mask then all fields will be overwritten. |
| 471 |
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` |
| 472 |
// Required. Updated AuthorizationPolicy resource. |
| 473 |
AuthorizationPolicy *AuthorizationPolicy `protobuf:"bytes,2,opt,name=authorization_policy,json=authorizationPolicy,proto3" json:"authorization_policy,omitempty"` |
| 474 |
} |
| 475 |
|
| 476 |
func (x *UpdateAuthorizationPolicyRequest) Reset() { |
| 477 |
*x = UpdateAuthorizationPolicyRequest{} |
| 478 |
if protoimpl.UnsafeEnabled { |
| 479 |
mi := &file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[5] |
| 480 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 481 |
ms.StoreMessageInfo(mi) |
| 482 |
} |
| 483 |
} |
| 484 |
|
| 485 |
func (x *UpdateAuthorizationPolicyRequest) String() string { |
| 486 |
return protoimpl.X.MessageStringOf(x) |
| 487 |
} |
| 488 |
|
| 489 |
func (*UpdateAuthorizationPolicyRequest) ProtoMessage() {} |
| 490 |
|
| 491 |
func (x *UpdateAuthorizationPolicyRequest) ProtoReflect() protoreflect.Message { |
| 492 |
mi := &file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[5] |
| 493 |
if protoimpl.UnsafeEnabled && x != nil { |
| 494 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 495 |
if ms.LoadMessageInfo() == nil { |
| 496 |
ms.StoreMessageInfo(mi) |
| 497 |
} |
| 498 |
return ms |
| 499 |
} |
| 500 |
return mi.MessageOf(x) |
| 501 |
} |
| 502 |
|
| 503 |
// Deprecated: Use UpdateAuthorizationPolicyRequest.ProtoReflect.Descriptor instead. |
| 504 |
func (*UpdateAuthorizationPolicyRequest) Descriptor() ([]byte, []int) { |
| 505 |
return file_google_cloud_networksecurity_v1_authorization_policy_proto_rawDescGZIP(), []int{5} |
| 506 |
} |
| 507 |
|
| 508 |
func (x *UpdateAuthorizationPolicyRequest) GetUpdateMask() *fieldmaskpb.FieldMask { |
| 509 |
if x != nil { |
| 510 |
return x.UpdateMask |
| 511 |
} |
| 512 |
return nil |
| 513 |
} |
| 514 |
|
| 515 |
func (x *UpdateAuthorizationPolicyRequest) GetAuthorizationPolicy() *AuthorizationPolicy { |
| 516 |
if x != nil { |
| 517 |
return x.AuthorizationPolicy |
| 518 |
} |
| 519 |
return nil |
| 520 |
} |
| 521 |
|
| 522 |
// Request used by the DeleteAuthorizationPolicy method. |
| 523 |
type DeleteAuthorizationPolicyRequest struct { |
| 524 |
state protoimpl.MessageState |
| 525 |
sizeCache protoimpl.SizeCache |
| 526 |
unknownFields protoimpl.UnknownFields |
| 527 |
|
| 528 |
// Required. A name of the AuthorizationPolicy to delete. Must be in the format |
| 529 |
// `projects/{project}/locations/{location}/authorizationPolicies/*`. |
| 530 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 531 |
} |
| 532 |
|
| 533 |
func (x *DeleteAuthorizationPolicyRequest) Reset() { |
| 534 |
*x = DeleteAuthorizationPolicyRequest{} |
| 535 |
if protoimpl.UnsafeEnabled { |
| 536 |
mi := &file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[6] |
| 537 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 538 |
ms.StoreMessageInfo(mi) |
| 539 |
} |
| 540 |
} |
| 541 |
|
| 542 |
func (x *DeleteAuthorizationPolicyRequest) String() string { |
| 543 |
return protoimpl.X.MessageStringOf(x) |
| 544 |
} |
| 545 |
|
| 546 |
func (*DeleteAuthorizationPolicyRequest) ProtoMessage() {} |
| 547 |
|
| 548 |
func (x *DeleteAuthorizationPolicyRequest) ProtoReflect() protoreflect.Message { |
| 549 |
mi := &file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[6] |
| 550 |
if protoimpl.UnsafeEnabled && x != nil { |
| 551 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 552 |
if ms.LoadMessageInfo() == nil { |
| 553 |
ms.StoreMessageInfo(mi) |
| 554 |
} |
| 555 |
return ms |
| 556 |
} |
| 557 |
return mi.MessageOf(x) |
| 558 |
} |
| 559 |
|
| 560 |
// Deprecated: Use DeleteAuthorizationPolicyRequest.ProtoReflect.Descriptor instead. |
| 561 |
func (*DeleteAuthorizationPolicyRequest) Descriptor() ([]byte, []int) { |
| 562 |
return file_google_cloud_networksecurity_v1_authorization_policy_proto_rawDescGZIP(), []int{6} |
| 563 |
} |
| 564 |
|
| 565 |
func (x *DeleteAuthorizationPolicyRequest) GetName() string { |
| 566 |
if x != nil { |
| 567 |
return x.Name |
| 568 |
} |
| 569 |
return "" |
| 570 |
} |
| 571 |
|
| 572 |
// Specification of rules. |
| 573 |
type AuthorizationPolicy_Rule struct { |
| 574 |
state protoimpl.MessageState |
| 575 |
sizeCache protoimpl.SizeCache |
| 576 |
unknownFields protoimpl.UnknownFields |
| 577 |
|
| 578 |
// Optional. List of attributes for the traffic source. All of the sources must match. |
| 579 |
// A source is a match if both principals and ip_blocks match. If not set, |
| 580 |
// the action specified in the 'action' field will be applied without any |
| 581 |
// rule checks for the source. |
| 582 |
Sources []*AuthorizationPolicy_Rule_Source `protobuf:"bytes,1,rep,name=sources,proto3" json:"sources,omitempty"` |
| 583 |
// Optional. List of attributes for the traffic destination. All of the destinations |
| 584 |
// must match. A destination is a match if a request matches all the |
| 585 |
// specified hosts, ports, methods and headers. If not set, the |
| 586 |
// action specified in the 'action' field will be applied without any rule |
| 587 |
// checks for the destination. |
| 588 |
Destinations []*AuthorizationPolicy_Rule_Destination `protobuf:"bytes,2,rep,name=destinations,proto3" json:"destinations,omitempty"` |
| 589 |
} |
| 590 |
|
| 591 |
func (x *AuthorizationPolicy_Rule) Reset() { |
| 592 |
*x = AuthorizationPolicy_Rule{} |
| 593 |
if protoimpl.UnsafeEnabled { |
| 594 |
mi := &file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[7] |
| 595 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 596 |
ms.StoreMessageInfo(mi) |
| 597 |
} |
| 598 |
} |
| 599 |
|
| 600 |
func (x *AuthorizationPolicy_Rule) String() string { |
| 601 |
return protoimpl.X.MessageStringOf(x) |
| 602 |
} |
| 603 |
|
| 604 |
func (*AuthorizationPolicy_Rule) ProtoMessage() {} |
| 605 |
|
| 606 |
func (x *AuthorizationPolicy_Rule) ProtoReflect() protoreflect.Message { |
| 607 |
mi := &file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[7] |
| 608 |
if protoimpl.UnsafeEnabled && x != nil { |
| 609 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 610 |
if ms.LoadMessageInfo() == nil { |
| 611 |
ms.StoreMessageInfo(mi) |
| 612 |
} |
| 613 |
return ms |
| 614 |
} |
| 615 |
return mi.MessageOf(x) |
| 616 |
} |
| 617 |
|
| 618 |
// Deprecated: Use AuthorizationPolicy_Rule.ProtoReflect.Descriptor instead. |
| 619 |
func (*AuthorizationPolicy_Rule) Descriptor() ([]byte, []int) { |
| 620 |
return file_google_cloud_networksecurity_v1_authorization_policy_proto_rawDescGZIP(), []int{0, 0} |
| 621 |
} |
| 622 |
|
| 623 |
func (x *AuthorizationPolicy_Rule) GetSources() []*AuthorizationPolicy_Rule_Source { |
| 624 |
if x != nil { |
| 625 |
return x.Sources |
| 626 |
} |
| 627 |
return nil |
| 628 |
} |
| 629 |
|
| 630 |
func (x *AuthorizationPolicy_Rule) GetDestinations() []*AuthorizationPolicy_Rule_Destination { |
| 631 |
if x != nil { |
| 632 |
return x.Destinations |
| 633 |
} |
| 634 |
return nil |
| 635 |
} |
| 636 |
|
| 637 |
// Specification of traffic source attributes. |
| 638 |
type AuthorizationPolicy_Rule_Source struct { |
| 639 |
state protoimpl.MessageState |
| 640 |
sizeCache protoimpl.SizeCache |
| 641 |
unknownFields protoimpl.UnknownFields |
| 642 |
|
| 643 |
// Optional. List of peer identities to match for authorization. At least one |
| 644 |
// principal should match. Each peer can be an exact match, or a prefix |
| 645 |
// match (example, "namespace/*") or a suffix match (example, |
| 646 |
// "*/service-account") or a presence match "*". Authorization based on |
| 647 |
// the principal name without certificate validation (configured by |
| 648 |
// ServerTlsPolicy resource) is considered insecure. |
| 649 |
Principals []string `protobuf:"bytes,1,rep,name=principals,proto3" json:"principals,omitempty"` |
| 650 |
// Optional. List of CIDR ranges to match based on source IP address. At least one |
| 651 |
// IP block should match. Single IP (e.g., "1.2.3.4") and CIDR (e.g., |
| 652 |
// "1.2.3.0/24") are supported. Authorization based on source IP alone |
| 653 |
// should be avoided. The IP addresses of any load balancers or proxies |
| 654 |
// should be considered untrusted. |
| 655 |
IpBlocks []string `protobuf:"bytes,2,rep,name=ip_blocks,json=ipBlocks,proto3" json:"ip_blocks,omitempty"` |
| 656 |
} |
| 657 |
|
| 658 |
func (x *AuthorizationPolicy_Rule_Source) Reset() { |
| 659 |
*x = AuthorizationPolicy_Rule_Source{} |
| 660 |
if protoimpl.UnsafeEnabled { |
| 661 |
mi := &file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[9] |
| 662 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 663 |
ms.StoreMessageInfo(mi) |
| 664 |
} |
| 665 |
} |
| 666 |
|
| 667 |
func (x *AuthorizationPolicy_Rule_Source) String() string { |
| 668 |
return protoimpl.X.MessageStringOf(x) |
| 669 |
} |
| 670 |
|
| 671 |
func (*AuthorizationPolicy_Rule_Source) ProtoMessage() {} |
| 672 |
|
| 673 |
func (x *AuthorizationPolicy_Rule_Source) ProtoReflect() protoreflect.Message { |
| 674 |
mi := &file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[9] |
| 675 |
if protoimpl.UnsafeEnabled && x != nil { |
| 676 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 677 |
if ms.LoadMessageInfo() == nil { |
| 678 |
ms.StoreMessageInfo(mi) |
| 679 |
} |
| 680 |
return ms |
| 681 |
} |
| 682 |
return mi.MessageOf(x) |
| 683 |
} |
| 684 |
|
| 685 |
// Deprecated: Use AuthorizationPolicy_Rule_Source.ProtoReflect.Descriptor instead. |
| 686 |
func (*AuthorizationPolicy_Rule_Source) Descriptor() ([]byte, []int) { |
| 687 |
return file_google_cloud_networksecurity_v1_authorization_policy_proto_rawDescGZIP(), []int{0, 0, 0} |
| 688 |
} |
| 689 |
|
| 690 |
func (x *AuthorizationPolicy_Rule_Source) GetPrincipals() []string { |
| 691 |
if x != nil { |
| 692 |
return x.Principals |
| 693 |
} |
| 694 |
return nil |
| 695 |
} |
| 696 |
|
| 697 |
func (x *AuthorizationPolicy_Rule_Source) GetIpBlocks() []string { |
| 698 |
if x != nil { |
| 699 |
return x.IpBlocks |
| 700 |
} |
| 701 |
return nil |
| 702 |
} |
| 703 |
|
| 704 |
// Specification of traffic destination attributes. |
| 705 |
type AuthorizationPolicy_Rule_Destination struct { |
| 706 |
state protoimpl.MessageState |
| 707 |
sizeCache protoimpl.SizeCache |
| 708 |
unknownFields protoimpl.UnknownFields |
| 709 |
|
| 710 |
// Required. List of host names to match. Matched against the ":authority" header in |
| 711 |
// http requests. At least one host should match. Each host can be an |
| 712 |
// exact match, or a prefix match (example "mydomain.*") or a suffix |
| 713 |
// match (example "*.myorg.com") or a presence (any) match "*". |
| 714 |
Hosts []string `protobuf:"bytes,1,rep,name=hosts,proto3" json:"hosts,omitempty"` |
| 715 |
// Required. List of destination ports to match. At least one port should match. |
| 716 |
Ports []uint32 `protobuf:"varint,2,rep,packed,name=ports,proto3" json:"ports,omitempty"` |
| 717 |
// Optional. A list of HTTP methods to match. At least one method should |
| 718 |
// match. Should not be set for gRPC services. |
| 719 |
Methods []string `protobuf:"bytes,4,rep,name=methods,proto3" json:"methods,omitempty"` |
| 720 |
// Optional. Match against key:value pair in http header. Provides a flexible match |
| 721 |
// based on HTTP headers, for potentially advanced use cases. At least one |
| 722 |
// header should match. Avoid using header matches to make authorization |
| 723 |
// decisions unless there is a strong guarantee that requests arrive |
| 724 |
// through a trusted client or proxy. |
| 725 |
HttpHeaderMatch *AuthorizationPolicy_Rule_Destination_HttpHeaderMatch `protobuf:"bytes,5,opt,name=http_header_match,json=httpHeaderMatch,proto3" json:"http_header_match,omitempty"` |
| 726 |
} |
| 727 |
|
| 728 |
func (x *AuthorizationPolicy_Rule_Destination) Reset() { |
| 729 |
*x = AuthorizationPolicy_Rule_Destination{} |
| 730 |
if protoimpl.UnsafeEnabled { |
| 731 |
mi := &file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[10] |
| 732 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 733 |
ms.StoreMessageInfo(mi) |
| 734 |
} |
| 735 |
} |
| 736 |
|
| 737 |
func (x *AuthorizationPolicy_Rule_Destination) String() string { |
| 738 |
return protoimpl.X.MessageStringOf(x) |
| 739 |
} |
| 740 |
|
| 741 |
func (*AuthorizationPolicy_Rule_Destination) ProtoMessage() {} |
| 742 |
|
| 743 |
func (x *AuthorizationPolicy_Rule_Destination) ProtoReflect() protoreflect.Message { |
| 744 |
mi := &file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[10] |
| 745 |
if protoimpl.UnsafeEnabled && x != nil { |
| 746 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 747 |
if ms.LoadMessageInfo() == nil { |
| 748 |
ms.StoreMessageInfo(mi) |
| 749 |
} |
| 750 |
return ms |
| 751 |
} |
| 752 |
return mi.MessageOf(x) |
| 753 |
} |
| 754 |
|
| 755 |
// Deprecated: Use AuthorizationPolicy_Rule_Destination.ProtoReflect.Descriptor instead. |
| 756 |
func (*AuthorizationPolicy_Rule_Destination) Descriptor() ([]byte, []int) { |
| 757 |
return file_google_cloud_networksecurity_v1_authorization_policy_proto_rawDescGZIP(), []int{0, 0, 1} |
| 758 |
} |
| 759 |
|
| 760 |
func (x *AuthorizationPolicy_Rule_Destination) GetHosts() []string { |
| 761 |
if x != nil { |
| 762 |
return x.Hosts |
| 763 |
} |
| 764 |
return nil |
| 765 |
} |
| 766 |
|
| 767 |
func (x *AuthorizationPolicy_Rule_Destination) GetPorts() []uint32 { |
| 768 |
if x != nil { |
| 769 |
return x.Ports |
| 770 |
} |
| 771 |
return nil |
| 772 |
} |
| 773 |
|
| 774 |
func (x *AuthorizationPolicy_Rule_Destination) GetMethods() []string { |
| 775 |
if x != nil { |
| 776 |
return x.Methods |
| 777 |
} |
| 778 |
return nil |
| 779 |
} |
| 780 |
|
| 781 |
func (x *AuthorizationPolicy_Rule_Destination) GetHttpHeaderMatch() *AuthorizationPolicy_Rule_Destination_HttpHeaderMatch { |
| 782 |
if x != nil { |
| 783 |
return x.HttpHeaderMatch |
| 784 |
} |
| 785 |
return nil |
| 786 |
} |
| 787 |
|
| 788 |
// Specification of HTTP header match attributes. |
| 789 |
type AuthorizationPolicy_Rule_Destination_HttpHeaderMatch struct { |
| 790 |
state protoimpl.MessageState |
| 791 |
sizeCache protoimpl.SizeCache |
| 792 |
unknownFields protoimpl.UnknownFields |
| 793 |
|
| 794 |
// Types that are assignable to Type: |
| 795 |
// *AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_RegexMatch |
| 796 |
Type isAuthorizationPolicy_Rule_Destination_HttpHeaderMatch_Type `protobuf_oneof:"type"` |
| 797 |
// Required. The name of the HTTP header to match. For matching |
| 798 |
// against the HTTP request's authority, use a headerMatch |
| 799 |
// with the header name ":authority". For matching a |
| 800 |
// request's method, use the headerName ":method". |
| 801 |
HeaderName string `protobuf:"bytes,1,opt,name=header_name,json=headerName,proto3" json:"header_name,omitempty"` |
| 802 |
} |
| 803 |
|
| 804 |
func (x *AuthorizationPolicy_Rule_Destination_HttpHeaderMatch) Reset() { |
| 805 |
*x = AuthorizationPolicy_Rule_Destination_HttpHeaderMatch{} |
| 806 |
if protoimpl.UnsafeEnabled { |
| 807 |
mi := &file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[11] |
| 808 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 809 |
ms.StoreMessageInfo(mi) |
| 810 |
} |
| 811 |
} |
| 812 |
|
| 813 |
func (x *AuthorizationPolicy_Rule_Destination_HttpHeaderMatch) String() string { |
| 814 |
return protoimpl.X.MessageStringOf(x) |
| 815 |
} |
| 816 |
|
| 817 |
func (*AuthorizationPolicy_Rule_Destination_HttpHeaderMatch) ProtoMessage() {} |
| 818 |
|
| 819 |
func (x *AuthorizationPolicy_Rule_Destination_HttpHeaderMatch) ProtoReflect() protoreflect.Message { |
| 820 |
mi := &file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[11] |
| 821 |
if protoimpl.UnsafeEnabled && x != nil { |
| 822 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 823 |
if ms.LoadMessageInfo() == nil { |
| 824 |
ms.StoreMessageInfo(mi) |
| 825 |
} |
| 826 |
return ms |
| 827 |
} |
| 828 |
return mi.MessageOf(x) |
| 829 |
} |
| 830 |
|
| 831 |
// Deprecated: Use AuthorizationPolicy_Rule_Destination_HttpHeaderMatch.ProtoReflect.Descriptor instead. |
| 832 |
func (*AuthorizationPolicy_Rule_Destination_HttpHeaderMatch) Descriptor() ([]byte, []int) { |
| 833 |
return file_google_cloud_networksecurity_v1_authorization_policy_proto_rawDescGZIP(), []int{0, 0, 1, 0} |
| 834 |
} |
| 835 |
|
| 836 |
func (m *AuthorizationPolicy_Rule_Destination_HttpHeaderMatch) GetType() isAuthorizationPolicy_Rule_Destination_HttpHeaderMatch_Type { |
| 837 |
if m != nil { |
| 838 |
return m.Type |
| 839 |
} |
| 840 |
return nil |
| 841 |
} |
| 842 |
|
| 843 |
func (x *AuthorizationPolicy_Rule_Destination_HttpHeaderMatch) GetRegexMatch() string { |
| 844 |
if x, ok := x.GetType().(*AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_RegexMatch); ok { |
| 845 |
return x.RegexMatch |
| 846 |
} |
| 847 |
return "" |
| 848 |
} |
| 849 |
|
| 850 |
func (x *AuthorizationPolicy_Rule_Destination_HttpHeaderMatch) GetHeaderName() string { |
| 851 |
if x != nil { |
| 852 |
return x.HeaderName |
| 853 |
} |
| 854 |
return "" |
| 855 |
} |
| 856 |
|
| 857 |
type isAuthorizationPolicy_Rule_Destination_HttpHeaderMatch_Type interface { |
| 858 |
isAuthorizationPolicy_Rule_Destination_HttpHeaderMatch_Type() |
| 859 |
} |
| 860 |
|
| 861 |
type AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_RegexMatch struct { |
| 862 |
// Required. The value of the header must match the regular expression |
| 863 |
// specified in regexMatch. For regular expression grammar, |
| 864 |
// please see: en.cppreference.com/w/cpp/regex/ecmascript |
| 865 |
// For matching against a port specified in the HTTP |
| 866 |
// request, use a headerMatch with headerName set to Host |
| 867 |
// and a regular expression that satisfies the RFC2616 Host |
| 868 |
// header's port specifier. |
| 869 |
RegexMatch string `protobuf:"bytes,2,opt,name=regex_match,json=regexMatch,proto3,oneof"` |
| 870 |
} |
| 871 |
|
| 872 |
func (*AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_RegexMatch) isAuthorizationPolicy_Rule_Destination_HttpHeaderMatch_Type() { |
| 873 |
} |
| 874 |
|
| 875 |
var File_google_cloud_networksecurity_v1_authorization_policy_proto protoreflect.FileDescriptor |
| 876 |
|
| 877 |
var file_google_cloud_networksecurity_v1_authorization_policy_proto_rawDesc = []byte{ |
| 878 |
0x0a, 0x3a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6e, |
| 879 |
0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x76, |
| 880 |
0x31, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, |
| 881 |
0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x67, 0x6f, |
| 882 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, |
| 883 |
0x72, 0x6b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, |
| 884 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, |
| 885 |
0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, |
| 886 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, |
| 887 |
0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 888 |
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, |
| 889 |
0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, |
| 890 |
0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, |
| 891 |
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xed, 0x0a, 0x0a, |
| 892 |
0x13, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, |
| 893 |
0x6c, 0x69, 0x63, 0x79, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, |
| 894 |
0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x25, 0x0a, |
| 895 |
0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, |
| 896 |
0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, |
| 897 |
0x74, 0x69, 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, |
| 898 |
0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 899 |
0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, |
| 900 |
0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, |
| 901 |
0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, |
| 902 |
0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, |
| 903 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, |
| 904 |
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, |
| 905 |
0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x5d, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, |
| 906 |
0x6c, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 907 |
0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, |
| 908 |
0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, |
| 909 |
0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x4c, |
| 910 |
0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, |
| 911 |
0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x58, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, |
| 912 |
0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 913 |
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x65, |
| 914 |
0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, |
| 915 |
0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x41, 0x63, |
| 916 |
0x74, 0x69, 0x6f, 0x6e, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, |
| 917 |
0x6e, 0x12, 0x54, 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, |
| 918 |
0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 919 |
0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, |
| 920 |
0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 921 |
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x01, |
| 922 |
0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x1a, 0xff, 0x04, 0x0a, 0x04, 0x52, 0x75, 0x6c, 0x65, |
| 923 |
0x12, 0x5f, 0x0a, 0x07, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, |
| 924 |
0x0b, 0x32, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, |
| 925 |
0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, |
| 926 |
0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, |
| 927 |
0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x53, 0x6f, 0x75, |
| 928 |
0x72, 0x63, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, |
| 929 |
0x73, 0x12, 0x6e, 0x0a, 0x0c, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 930 |
0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 931 |
0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x65, |
| 932 |
0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, |
| 933 |
0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x75, |
| 934 |
0x6c, 0x65, 0x2e, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x03, |
| 935 |
0xe0, 0x41, 0x01, 0x52, 0x0c, 0x64, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 936 |
0x73, 0x1a, 0x4f, 0x0a, 0x06, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x23, 0x0a, 0x0a, 0x70, |
| 937 |
0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x42, |
| 938 |
0x03, 0xe0, 0x41, 0x01, 0x52, 0x0a, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x73, |
| 939 |
0x12, 0x20, 0x0a, 0x09, 0x69, 0x70, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x73, 0x18, 0x02, 0x20, |
| 940 |
0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x69, 0x70, 0x42, 0x6c, 0x6f, 0x63, |
| 941 |
0x6b, 0x73, 0x1a, 0xd4, 0x02, 0x0a, 0x0b, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, |
| 942 |
0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x05, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, |
| 943 |
0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x68, 0x6f, 0x73, 0x74, 0x73, 0x12, 0x19, 0x0a, |
| 944 |
0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0d, 0x42, 0x03, 0xe0, 0x41, |
| 945 |
0x02, 0x52, 0x05, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x12, 0x1d, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x68, |
| 946 |
0x6f, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x07, |
| 947 |
0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x73, 0x12, 0x86, 0x01, 0x0a, 0x11, 0x68, 0x74, 0x74, 0x70, |
| 948 |
0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x18, 0x05, 0x20, |
| 949 |
0x01, 0x28, 0x0b, 0x32, 0x55, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, |
| 950 |
0x75, 0x64, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, |
| 951 |
0x74, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, |
| 952 |
0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x52, 0x75, 0x6c, 0x65, 0x2e, 0x44, |
| 953 |
0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x48, |
| 954 |
0x65, 0x61, 0x64, 0x65, 0x72, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, |
| 955 |
0x0f, 0x68, 0x74, 0x74, 0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4d, 0x61, 0x74, 0x63, 0x68, |
| 956 |
0x1a, 0x67, 0x0a, 0x0f, 0x48, 0x74, 0x74, 0x70, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4d, 0x61, |
| 957 |
0x74, 0x63, 0x68, 0x12, 0x26, 0x0a, 0x0b, 0x72, 0x65, 0x67, 0x65, 0x78, 0x5f, 0x6d, 0x61, 0x74, |
| 958 |
0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x48, 0x00, 0x52, |
| 959 |
0x0a, 0x72, 0x65, 0x67, 0x65, 0x78, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x24, 0x0a, 0x0b, 0x68, |
| 960 |
0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, |
| 961 |
0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x4e, 0x61, 0x6d, |
| 962 |
0x65, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, |
| 963 |
0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, |
| 964 |
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, |
| 965 |
0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, |
| 966 |
0x3a, 0x02, 0x38, 0x01, 0x22, 0x35, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, |
| 967 |
0x0a, 0x12, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, |
| 968 |
0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x4c, 0x4c, 0x4f, 0x57, 0x10, |
| 969 |
0x01, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x45, 0x4e, 0x59, 0x10, 0x02, 0x3a, 0x8e, 0x01, 0xea, 0x41, |
| 970 |
0x8a, 0x01, 0x0a, 0x32, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x65, 0x63, 0x75, 0x72, |
| 971 |
0x69, 0x74, 0x79, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, |
| 972 |
0x6f, 0x6d, 0x2f, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 973 |
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x54, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, |
| 974 |
0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, |
| 975 |
0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, |
| 976 |
0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, |
| 977 |
0x69, 0x63, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, |
| 978 |
0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x7d, 0x22, 0xa1, 0x01, 0x0a, |
| 979 |
0x20, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, |
| 980 |
0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, |
| 981 |
0x74, 0x12, 0x41, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 982 |
0x09, 0x42, 0x29, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x23, 0x0a, 0x21, 0x6c, 0x6f, 0x63, 0x61, 0x74, |
| 983 |
0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, |
| 984 |
0x63, 0x6f, 0x6d, 0x2f, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x70, 0x61, |
| 985 |
0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, |
| 986 |
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, |
| 987 |
0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, |
| 988 |
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, |
| 989 |
0x22, 0xb8, 0x01, 0x0a, 0x21, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, |
| 990 |
0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x52, 0x65, |
| 991 |
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, 0x0a, 0x16, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, |
| 992 |
0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, |
| 993 |
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, |
| 994 |
0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x65, 0x63, |
| 995 |
0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, |
| 996 |
0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x15, 0x61, 0x75, |
| 997 |
0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, |
| 998 |
0x69, 0x65, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, |
| 999 |
0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, |
| 1000 |
0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x6f, 0x0a, 0x1d, 0x47, |
| 1001 |
0x65, 0x74, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, |
| 1002 |
0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4e, 0x0a, 0x04, |
| 1003 |
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x3a, 0xe0, 0x41, 0x02, 0xfa, |
| 1004 |
0x41, 0x34, 0x0a, 0x32, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x65, 0x63, 0x75, 0x72, |
| 1005 |
0x69, 0x74, 0x79, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, |
| 1006 |
0x6f, 0x6d, 0x2f, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 1007 |
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xa1, 0x02, 0x0a, |
| 1008 |
0x20, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, |
| 1009 |
0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, |
| 1010 |
0x74, 0x12, 0x52, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, |
| 1011 |
0x09, 0x42, 0x3a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x34, 0x12, 0x32, 0x6e, 0x65, 0x74, 0x77, 0x6f, |
| 1012 |
0x72, 0x6b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 1013 |
0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, |
| 1014 |
0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, |
| 1015 |
0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x3b, 0x0a, 0x17, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, |
| 1016 |
0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x5f, 0x69, 0x64, |
| 1017 |
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x15, 0x61, 0x75, 0x74, |
| 1018 |
0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, |
| 1019 |
0x49, 0x64, 0x12, 0x6c, 0x0a, 0x14, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, |
| 1020 |
0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, |
| 1021 |
0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 1022 |
0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, |
| 1023 |
0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 1024 |
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x13, 0x61, 0x75, 0x74, |
| 1025 |
0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, |
| 1026 |
0x22, 0xd2, 0x01, 0x0a, 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x75, 0x74, 0x68, 0x6f, |
| 1027 |
0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, |
| 1028 |
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, |
| 1029 |
0x6d, 0x61, 0x73, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, |
| 1030 |
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, |
| 1031 |
0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0a, 0x75, 0x70, 0x64, |
| 1032 |
0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x6c, 0x0a, 0x14, 0x61, 0x75, 0x74, 0x68, 0x6f, |
| 1033 |
0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, |
| 1034 |
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 1035 |
0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x65, 0x63, 0x75, |
| 1036 |
0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, |
| 1037 |
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x02, |
| 1038 |
0x52, 0x13, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, |
| 1039 |
0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x72, 0x0a, 0x20, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, |
| 1040 |
0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, 0x69, |
| 1041 |
0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4e, 0x0a, 0x04, 0x6e, 0x61, 0x6d, |
| 1042 |
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x3a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x34, 0x0a, |
| 1043 |
0x32, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, |
| 1044 |
0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, |
| 1045 |
0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x6f, 0x6c, |
| 1046 |
0x69, 0x63, 0x79, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0xfa, 0x01, 0x0a, 0x23, 0x63, 0x6f, |
| 1047 |
0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x6e, |
| 1048 |
0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x76, |
| 1049 |
0x31, 0x42, 0x18, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, |
| 1050 |
0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4e, 0x67, |
| 1051 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, |
| 1052 |
0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 1053 |
0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, |
| 1054 |
0x72, 0x6b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2f, 0x76, 0x31, 0x3b, 0x6e, 0x65, |
| 1055 |
0x74, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0xaa, 0x02, 0x1f, |
| 1056 |
0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x4e, 0x65, 0x74, |
| 1057 |
0x77, 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x2e, 0x56, 0x31, 0xca, |
| 1058 |
0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x4e, |
| 1059 |
0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5c, 0x56, |
| 1060 |
0x31, 0xea, 0x02, 0x22, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, |
| 1061 |
0x64, 0x3a, 0x3a, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x53, 0x65, 0x63, 0x75, 0x72, 0x69, |
| 1062 |
0x74, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 1063 |
} |
| 1064 |
|
| 1065 |
var ( |
| 1066 |
file_google_cloud_networksecurity_v1_authorization_policy_proto_rawDescOnce sync.Once |
| 1067 |
file_google_cloud_networksecurity_v1_authorization_policy_proto_rawDescData = file_google_cloud_networksecurity_v1_authorization_policy_proto_rawDesc |
| 1068 |
) |
| 1069 |
|
| 1070 |
func file_google_cloud_networksecurity_v1_authorization_policy_proto_rawDescGZIP() []byte { |
| 1071 |
file_google_cloud_networksecurity_v1_authorization_policy_proto_rawDescOnce.Do(func() { |
| 1072 |
file_google_cloud_networksecurity_v1_authorization_policy_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_networksecurity_v1_authorization_policy_proto_rawDescData) |
| 1073 |
}) |
| 1074 |
return file_google_cloud_networksecurity_v1_authorization_policy_proto_rawDescData |
| 1075 |
} |
| 1076 |
|
| 1077 |
var file_google_cloud_networksecurity_v1_authorization_policy_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 1078 |
var file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes = make([]protoimpl.MessageInfo, 12) |
| 1079 |
var file_google_cloud_networksecurity_v1_authorization_policy_proto_goTypes = []interface{}{ |
| 1080 |
(AuthorizationPolicy_Action)(0), // 0: google.cloud.networksecurity.v1.AuthorizationPolicy.Action |
| 1081 |
(*AuthorizationPolicy)(nil), // 1: google.cloud.networksecurity.v1.AuthorizationPolicy |
| 1082 |
(*ListAuthorizationPoliciesRequest)(nil), // 2: google.cloud.networksecurity.v1.ListAuthorizationPoliciesRequest |
| 1083 |
(*ListAuthorizationPoliciesResponse)(nil), // 3: google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse |
| 1084 |
(*GetAuthorizationPolicyRequest)(nil), // 4: google.cloud.networksecurity.v1.GetAuthorizationPolicyRequest |
| 1085 |
(*CreateAuthorizationPolicyRequest)(nil), // 5: google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest |
| 1086 |
(*UpdateAuthorizationPolicyRequest)(nil), // 6: google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest |
| 1087 |
(*DeleteAuthorizationPolicyRequest)(nil), // 7: google.cloud.networksecurity.v1.DeleteAuthorizationPolicyRequest |
| 1088 |
(*AuthorizationPolicy_Rule)(nil), // 8: google.cloud.networksecurity.v1.AuthorizationPolicy.Rule |
| 1089 |
nil, // 9: google.cloud.networksecurity.v1.AuthorizationPolicy.LabelsEntry |
| 1090 |
(*AuthorizationPolicy_Rule_Source)(nil), // 10: google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source |
| 1091 |
(*AuthorizationPolicy_Rule_Destination)(nil), // 11: google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination |
| 1092 |
(*AuthorizationPolicy_Rule_Destination_HttpHeaderMatch)(nil), // 12: google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch |
| 1093 |
(*timestamppb.Timestamp)(nil), // 13: google.protobuf.Timestamp |
| 1094 |
(*fieldmaskpb.FieldMask)(nil), // 14: google.protobuf.FieldMask |
| 1095 |
} |
| 1096 |
var file_google_cloud_networksecurity_v1_authorization_policy_proto_depIdxs = []int32{ |
| 1097 |
13, // 0: google.cloud.networksecurity.v1.AuthorizationPolicy.create_time:type_name -> google.protobuf.Timestamp |
| 1098 |
13, // 1: google.cloud.networksecurity.v1.AuthorizationPolicy.update_time:type_name -> google.protobuf.Timestamp |
| 1099 |
9, // 2: google.cloud.networksecurity.v1.AuthorizationPolicy.labels:type_name -> google.cloud.networksecurity.v1.AuthorizationPolicy.LabelsEntry |
| 1100 |
0, // 3: google.cloud.networksecurity.v1.AuthorizationPolicy.action:type_name -> google.cloud.networksecurity.v1.AuthorizationPolicy.Action |
| 1101 |
8, // 4: google.cloud.networksecurity.v1.AuthorizationPolicy.rules:type_name -> google.cloud.networksecurity.v1.AuthorizationPolicy.Rule |
| 1102 |
1, // 5: google.cloud.networksecurity.v1.ListAuthorizationPoliciesResponse.authorization_policies:type_name -> google.cloud.networksecurity.v1.AuthorizationPolicy |
| 1103 |
1, // 6: google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest.authorization_policy:type_name -> google.cloud.networksecurity.v1.AuthorizationPolicy |
| 1104 |
14, // 7: google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest.update_mask:type_name -> google.protobuf.FieldMask |
| 1105 |
1, // 8: google.cloud.networksecurity.v1.UpdateAuthorizationPolicyRequest.authorization_policy:type_name -> google.cloud.networksecurity.v1.AuthorizationPolicy |
| 1106 |
10, // 9: google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.sources:type_name -> google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Source |
| 1107 |
11, // 10: google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.destinations:type_name -> google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination |
| 1108 |
12, // 11: google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.http_header_match:type_name -> google.cloud.networksecurity.v1.AuthorizationPolicy.Rule.Destination.HttpHeaderMatch |
| 1109 |
12, // [12:12] is the sub-list for method output_type |
| 1110 |
12, // [12:12] is the sub-list for method input_type |
| 1111 |
12, // [12:12] is the sub-list for extension type_name |
| 1112 |
12, // [12:12] is the sub-list for extension extendee |
| 1113 |
0, // [0:12] is the sub-list for field type_name |
| 1114 |
} |
| 1115 |
|
| 1116 |
func init() { file_google_cloud_networksecurity_v1_authorization_policy_proto_init() } |
| 1117 |
func file_google_cloud_networksecurity_v1_authorization_policy_proto_init() { |
| 1118 |
if File_google_cloud_networksecurity_v1_authorization_policy_proto != nil { |
| 1119 |
return |
| 1120 |
} |
| 1121 |
if !protoimpl.UnsafeEnabled { |
| 1122 |
file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 1123 |
switch v := v.(*AuthorizationPolicy); i { |
| 1124 |
case 0: |
| 1125 |
return &v.state |
| 1126 |
case 1: |
| 1127 |
return &v.sizeCache |
| 1128 |
case 2: |
| 1129 |
return &v.unknownFields |
| 1130 |
default: |
| 1131 |
return nil |
| 1132 |
} |
| 1133 |
} |
| 1134 |
file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 1135 |
switch v := v.(*ListAuthorizationPoliciesRequest); i { |
| 1136 |
case 0: |
| 1137 |
return &v.state |
| 1138 |
case 1: |
| 1139 |
return &v.sizeCache |
| 1140 |
case 2: |
| 1141 |
return &v.unknownFields |
| 1142 |
default: |
| 1143 |
return nil |
| 1144 |
} |
| 1145 |
} |
| 1146 |
file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 1147 |
switch v := v.(*ListAuthorizationPoliciesResponse); i { |
| 1148 |
case 0: |
| 1149 |
return &v.state |
| 1150 |
case 1: |
| 1151 |
return &v.sizeCache |
| 1152 |
case 2: |
| 1153 |
return &v.unknownFields |
| 1154 |
default: |
| 1155 |
return nil |
| 1156 |
} |
| 1157 |
} |
| 1158 |
file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| 1159 |
switch v := v.(*GetAuthorizationPolicyRequest); i { |
| 1160 |
case 0: |
| 1161 |
return &v.state |
| 1162 |
case 1: |
| 1163 |
return &v.sizeCache |
| 1164 |
case 2: |
| 1165 |
return &v.unknownFields |
| 1166 |
default: |
| 1167 |
return nil |
| 1168 |
} |
| 1169 |
} |
| 1170 |
file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| 1171 |
switch v := v.(*CreateAuthorizationPolicyRequest); i { |
| 1172 |
case 0: |
| 1173 |
return &v.state |
| 1174 |
case 1: |
| 1175 |
return &v.sizeCache |
| 1176 |
case 2: |
| 1177 |
return &v.unknownFields |
| 1178 |
default: |
| 1179 |
return nil |
| 1180 |
} |
| 1181 |
} |
| 1182 |
file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
| 1183 |
switch v := v.(*UpdateAuthorizationPolicyRequest); i { |
| 1184 |
case 0: |
| 1185 |
return &v.state |
| 1186 |
case 1: |
| 1187 |
return &v.sizeCache |
| 1188 |
case 2: |
| 1189 |
return &v.unknownFields |
| 1190 |
default: |
| 1191 |
return nil |
| 1192 |
} |
| 1193 |
} |
| 1194 |
file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { |
| 1195 |
switch v := v.(*DeleteAuthorizationPolicyRequest); i { |
| 1196 |
case 0: |
| 1197 |
return &v.state |
| 1198 |
case 1: |
| 1199 |
return &v.sizeCache |
| 1200 |
case 2: |
| 1201 |
return &v.unknownFields |
| 1202 |
default: |
| 1203 |
return nil |
| 1204 |
} |
| 1205 |
} |
| 1206 |
file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { |
| 1207 |
switch v := v.(*AuthorizationPolicy_Rule); i { |
| 1208 |
case 0: |
| 1209 |
return &v.state |
| 1210 |
case 1: |
| 1211 |
return &v.sizeCache |
| 1212 |
case 2: |
| 1213 |
return &v.unknownFields |
| 1214 |
default: |
| 1215 |
return nil |
| 1216 |
} |
| 1217 |
} |
| 1218 |
file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { |
| 1219 |
switch v := v.(*AuthorizationPolicy_Rule_Source); i { |
| 1220 |
case 0: |
| 1221 |
return &v.state |
| 1222 |
case 1: |
| 1223 |
return &v.sizeCache |
| 1224 |
case 2: |
| 1225 |
return &v.unknownFields |
| 1226 |
default: |
| 1227 |
return nil |
| 1228 |
} |
| 1229 |
} |
| 1230 |
file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { |
| 1231 |
switch v := v.(*AuthorizationPolicy_Rule_Destination); i { |
| 1232 |
case 0: |
| 1233 |
return &v.state |
| 1234 |
case 1: |
| 1235 |
return &v.sizeCache |
| 1236 |
case 2: |
| 1237 |
return &v.unknownFields |
| 1238 |
default: |
| 1239 |
return nil |
| 1240 |
} |
| 1241 |
} |
| 1242 |
file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { |
| 1243 |
switch v := v.(*AuthorizationPolicy_Rule_Destination_HttpHeaderMatch); i { |
| 1244 |
case 0: |
| 1245 |
return &v.state |
| 1246 |
case 1: |
| 1247 |
return &v.sizeCache |
| 1248 |
case 2: |
| 1249 |
return &v.unknownFields |
| 1250 |
default: |
| 1251 |
return nil |
| 1252 |
} |
| 1253 |
} |
| 1254 |
} |
| 1255 |
file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes[11].OneofWrappers = []interface{}{ |
| 1256 |
(*AuthorizationPolicy_Rule_Destination_HttpHeaderMatch_RegexMatch)(nil), |
| 1257 |
} |
| 1258 |
type x struct{} |
| 1259 |
out := protoimpl.TypeBuilder{ |
| 1260 |
File: protoimpl.DescBuilder{ |
| 1261 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 1262 |
RawDescriptor: file_google_cloud_networksecurity_v1_authorization_policy_proto_rawDesc, |
| 1263 |
NumEnums: 1, |
| 1264 |
NumMessages: 12, |
| 1265 |
NumExtensions: 0, |
| 1266 |
NumServices: 0, |
| 1267 |
}, |
| 1268 |
GoTypes: file_google_cloud_networksecurity_v1_authorization_policy_proto_goTypes, |
| 1269 |
DependencyIndexes: file_google_cloud_networksecurity_v1_authorization_policy_proto_depIdxs, |
| 1270 |
EnumInfos: file_google_cloud_networksecurity_v1_authorization_policy_proto_enumTypes, |
| 1271 |
MessageInfos: file_google_cloud_networksecurity_v1_authorization_policy_proto_msgTypes, |
| 1272 |
}.Build() |
| 1273 |
File_google_cloud_networksecurity_v1_authorization_policy_proto = out.File |
| 1274 |
file_google_cloud_networksecurity_v1_authorization_policy_proto_rawDesc = nil |
| 1275 |
file_google_cloud_networksecurity_v1_authorization_policy_proto_goTypes = nil |
| 1276 |
file_google_cloud_networksecurity_v1_authorization_policy_proto_depIdxs = nil |
| 1277 |
} |