Class: Google::Apis::ApigatewayV1beta::ApigatewayGateway

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

Overview

A Gateway is an API-aware HTTP proxy. It performs API-Method and/or API- Consumer specific actions based on an API Config such as authentication, policy enforcement, and backend selection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ApigatewayGateway

Returns a new instance of ApigatewayGateway.



551
552
553
# File 'generated/google/apis/apigateway_v1beta/classes.rb', line 551

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

Instance Attribute Details

#api_configString

Required. Resource name of the API Config for this Gateway. Format: projects/ project/locations/global/apis/api/configs/apiConfig Corresponds to the JSON property apiConfig

Returns:

  • (String)


510
511
512
# File 'generated/google/apis/apigateway_v1beta/classes.rb', line 510

def api_config
  @api_config
end

#create_timeString

Output only. Created time. Corresponds to the JSON property createTime

Returns:

  • (String)


515
516
517
# File 'generated/google/apis/apigateway_v1beta/classes.rb', line 515

def create_time
  @create_time
end

#default_hostnameString

Output only. The default API Gateway host name of the form `gateway_id-hash .region_code.gateway.dev. Corresponds to the JSON propertydefaultHostname`

Returns:

  • (String)


521
522
523
# File 'generated/google/apis/apigateway_v1beta/classes.rb', line 521

def default_hostname
  @default_hostname
end

#display_nameString

Optional. Display name. Corresponds to the JSON property displayName

Returns:

  • (String)


526
527
528
# File 'generated/google/apis/apigateway_v1beta/classes.rb', line 526

def display_name
  @display_name
end

#labelsHash<String,String>

Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/ docs/labeling-resources Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


533
534
535
# File 'generated/google/apis/apigateway_v1beta/classes.rb', line 533

def labels
  @labels
end

#nameString

Output only. Resource name of the Gateway. Format: projects/project/ locations/location/gateways/gateway Corresponds to the JSON property name

Returns:

  • (String)


539
540
541
# File 'generated/google/apis/apigateway_v1beta/classes.rb', line 539

def name
  @name
end

#stateString

Output only. The current state of the Gateway. Corresponds to the JSON property state

Returns:

  • (String)


544
545
546
# File 'generated/google/apis/apigateway_v1beta/classes.rb', line 544

def state
  @state
end

#update_timeString

Output only. Updated time. Corresponds to the JSON property updateTime

Returns:

  • (String)


549
550
551
# File 'generated/google/apis/apigateway_v1beta/classes.rb', line 549

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



556
557
558
559
560
561
562
563
564
565
# File 'generated/google/apis/apigateway_v1beta/classes.rb', line 556

def update!(**args)
  @api_config = args[:api_config] if args.key?(:api_config)
  @create_time = args[:create_time] if args.key?(:create_time)
  @default_hostname = args[:default_hostname] if args.key?(:default_hostname)
  @display_name = args[:display_name] if args.key?(:display_name)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
  @update_time = args[:update_time] if args.key?(:update_time)
end