Class: Google::Apis::NetworkservicesV1beta1::Gateway

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

Gateway represents the configuration for a proxy, typically a load balancer. It captures the ip:port over which the services are exposed by the proxy, along with any policy configurations. Routes have reference to to Gateways to dictate how requests should be routed by this Gateway.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Gateway

Returns a new instance of Gateway.



432
433
434
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 432

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

Instance Attribute Details

#create_timeString

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

Returns:

  • (String)


377
378
379
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 377

def create_time
  @create_time
end

#descriptionString

Optional. A free-text description of the resource. Max length 1024 characters. Corresponds to the JSON property description

Returns:

  • (String)


382
383
384
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 382

def description
  @description
end

#labelsHash<String,String>

Optional. Set of label tags associated with the Gateway resource. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


387
388
389
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 387

def labels
  @labels
end

#nameString

Required. Name of the Gateway resource. It matches pattern projects/*/ locations/*/gateways/. Corresponds to the JSON property name

Returns:

  • (String)


393
394
395
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 393

def name
  @name
end

#portsArray<Fixnum>

Required. One or more ports that the Gateway must receive traffic on. The proxy binds to the ports specified. Gateway listen on 0.0.0.0 on the ports specified below. Corresponds to the JSON property ports

Returns:

  • (Array<Fixnum>)


400
401
402
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 400

def ports
  @ports
end

#scopeString

Required. Immutable. Scope determines how configuration across multiple Gateway instances are merged. The configuration for multiple Gateway instances with the same scope will be merged as presented as a single coniguration to the proxy/load balancer. Max length 64 characters. Scope should start with a letter and can only have letters, numbers, hyphens. Corresponds to the JSON property scope

Returns:

  • (String)


409
410
411
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 409

def scope
  @scope
end

Output only. Server-defined URL of this resource Corresponds to the JSON property selfLink

Returns:

  • (String)


414
415
416
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 414

def self_link
  @self_link
end

#server_tls_policyString

Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how TLS traffic is terminated. If empty, TLS termination is disabled. Corresponds to the JSON property serverTlsPolicy

Returns:

  • (String)


420
421
422
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 420

def server_tls_policy
  @server_tls_policy
end

#typeString

Immutable. The type of the customer managed gateway. Corresponds to the JSON property type

Returns:

  • (String)


425
426
427
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 425

def type
  @type
end

#update_timeString

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

Returns:

  • (String)


430
431
432
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 430

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



437
438
439
440
441
442
443
444
445
446
447
448
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 437

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @ports = args[:ports] if args.key?(:ports)
  @scope = args[:scope] if args.key?(:scope)
  @self_link = args[:self_link] if args.key?(:self_link)
  @server_tls_policy = args[:server_tls_policy] if args.key?(:server_tls_policy)
  @type = args[:type] if args.key?(:type)
  @update_time = args[:update_time] if args.key?(:update_time)
end