Class: Google::Apis::ApigatewayV1::ApigatewayGateway
- Inherits:
-
Object
- Object
- Google::Apis::ApigatewayV1::ApigatewayGateway
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apigateway_v1/classes.rb,
lib/google/apis/apigateway_v1/representations.rb,
lib/google/apis/apigateway_v1/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
-
#api_config ⇒ String
Required.
-
#create_time ⇒ String
Output only.
-
#default_hostname ⇒ String
Output only.
-
#display_name ⇒ String
Optional.
-
#labels ⇒ Hash<String,String>
Optional.
-
#name ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ApigatewayGateway
constructor
A new instance of ApigatewayGateway.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ApigatewayGateway
Returns a new instance of ApigatewayGateway.
519 520 521 |
# File 'lib/google/apis/apigateway_v1/classes.rb', line 519 def initialize(**args) update!(**args) end |
Instance Attribute Details
#api_config ⇒ String
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
478 479 480 |
# File 'lib/google/apis/apigateway_v1/classes.rb', line 478 def api_config @api_config end |
#create_time ⇒ String
Output only. Created time.
Corresponds to the JSON property createTime
483 484 485 |
# File 'lib/google/apis/apigateway_v1/classes.rb', line 483 def create_time @create_time end |
#default_hostname ⇒ String
Output only. The default API Gateway host name of the form `gateway_id-hash
.region_code.gateway.dev.
Corresponds to the JSON propertydefaultHostname`
489 490 491 |
# File 'lib/google/apis/apigateway_v1/classes.rb', line 489 def default_hostname @default_hostname end |
#display_name ⇒ String
Optional. Display name.
Corresponds to the JSON property displayName
494 495 496 |
# File 'lib/google/apis/apigateway_v1/classes.rb', line 494 def display_name @display_name end |
#labels ⇒ Hash<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
501 502 503 |
# File 'lib/google/apis/apigateway_v1/classes.rb', line 501 def labels @labels end |
#name ⇒ String
Output only. Resource name of the Gateway. Format: projects/project/
locations/location/gateways/gateway
Corresponds to the JSON property name
507 508 509 |
# File 'lib/google/apis/apigateway_v1/classes.rb', line 507 def name @name end |
#state ⇒ String
Output only. The current state of the Gateway.
Corresponds to the JSON property state
512 513 514 |
# File 'lib/google/apis/apigateway_v1/classes.rb', line 512 def state @state end |
#update_time ⇒ String
Output only. Updated time.
Corresponds to the JSON property updateTime
517 518 519 |
# File 'lib/google/apis/apigateway_v1/classes.rb', line 517 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
524 525 526 527 528 529 530 531 532 533 |
# File 'lib/google/apis/apigateway_v1/classes.rb', line 524 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 |