Class: Google::Apis::NetworkservicesV1beta1::AuthzExtension

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/networkservices_v1beta1/classes.rb,
lib/google/apis/networkservices_v1beta1/representations.rb,
lib/google/apis/networkservices_v1beta1/representations.rb

Overview

AuthzExtension is a resource that allows traffic forwarding to a callout backend service to make an authorization decision.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AuthzExtension

Returns a new instance of AuthzExtension.



128
129
130
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 128

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#authorityString

Required. The :authority header in the gRPC request sent from Envoy to the extension service. Corresponds to the JSON property authority

Returns:

  • (String)


34
35
36
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 34

def authority
  @authority
end

#create_timeString

Output only. The timestamp when the resource was created. Corresponds to the JSON property createTime

Returns:

  • (String)


39
40
41
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 39

def create_time
  @create_time
end

#descriptionString

Optional. A human-readable description of the resource. Corresponds to the JSON property description

Returns:

  • (String)


44
45
46
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 44

def description
  @description
end

#fail_openBoolean Also known as: fail_open?

Optional. Determines how the proxy behaves if the call to the extension fails or times out. When set to TRUE, request or response processing continues without error. Any subsequent extensions in the extension chain are also executed. When set to FALSE or the default setting of FALSE is used, one of the following happens: * If response headers have not been delivered to the downstream client, a generic 500 error is returned to the client. The error response can be tailored by configuring a custom error response in the load balancer. * If response headers have been delivered, then the HTTP stream to the downstream client is reset. Corresponds to the JSON property failOpen

Returns:

  • (Boolean)


57
58
59
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 57

def fail_open
  @fail_open
end

#forward_headersArray<String>

Optional. List of the HTTP headers to forward to the extension (from the client). If omitted, all headers are sent. Each element is a string indicating the header name. Corresponds to the JSON property forwardHeaders

Returns:

  • (Array<String>)


65
66
67
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 65

def forward_headers
  @forward_headers
end

#labelsHash<String,String>

Optional. Set of labels associated with the AuthzExtension resource. The format must comply with the requirements for labels for Google Cloud resources. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


72
73
74
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 72

def labels
  @labels
end

#load_balancing_schemeString

Required. All backend services and forwarding rules referenced by this extension must share the same load balancing scheme. Supported values: INTERNAL_MANAGED, EXTERNAL_MANAGED. For more information, refer to Backend services overview. Corresponds to the JSON property loadBalancingScheme

Returns:

  • (String)


81
82
83
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 81

def load_balancing_scheme
  @load_balancing_scheme
end

#metadataHash<String,Object>

Optional. The metadata provided here is included as part of the metadata_context (of type google.protobuf.Struct) in the ProcessingRequest message sent to the extension server. The metadata is available under the namespace com.google.authz_extension.. The following variables are supported in the metadata Struct: forwarding_rule_id - substituted with the forwarding rule's fully qualified resource name. Corresponds to the JSON property metadata

Returns:

  • (Hash<String,Object>)


91
92
93
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 91

def 
  @metadata
end

#nameString

Required. Identifier. Name of the AuthzExtension resource in the following format: projects/project/locations/location/authzExtensions/ authz_extension`. Corresponds to the JSON propertyname`

Returns:

  • (String)


98
99
100
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 98

def name
  @name
end

#serviceString

Required. The reference to the service that runs the extension. To configure a callout extension, service must be a fully-qualified reference to a backend service in the format: https://www.googleapis.com/compute/v1/ projects/project/regions/region/backendServices/backendServiceor ` https://www.googleapis.com/compute/v1/projects/`project`/global/ backendServices/`backendService. Corresponds to the JSON property service

Returns:

  • (String)


109
110
111
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 109

def service
  @service
end

#timeoutString

Required. Specifies the timeout for each individual message on the stream. The timeout must be between 10-10000 milliseconds. Corresponds to the JSON property timeout

Returns:

  • (String)


115
116
117
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 115

def timeout
  @timeout
end

#update_timeString

Output only. The timestamp when the resource was updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


120
121
122
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 120

def update_time
  @update_time
end

#wire_formatString

Optional. The format of communication supported by the callout extension. If not specified, the default is EXT_PROC_GRPC. Corresponds to the JSON property wireFormat

Returns:

  • (String)


126
127
128
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 126

def wire_format
  @wire_format
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 133

def update!(**args)
  @authority = args[:authority] if args.key?(:authority)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @fail_open = args[:fail_open] if args.key?(:fail_open)
  @forward_headers = args[:forward_headers] if args.key?(:forward_headers)
  @labels = args[:labels] if args.key?(:labels)
  @load_balancing_scheme = args[:load_balancing_scheme] if args.key?(:load_balancing_scheme)
  @metadata = args[:metadata] if args.key?(:metadata)
  @name = args[:name] if args.key?(:name)
  @service = args[:service] if args.key?(:service)
  @timeout = args[:timeout] if args.key?(:timeout)
  @update_time = args[:update_time] if args.key?(:update_time)
  @wire_format = args[:wire_format] if args.key?(:wire_format)
end