Class: Google::Apis::ApigatewayV1beta::ApigatewayGateway
- Inherits:
-
Object
- Object
- Google::Apis::ApigatewayV1beta::ApigatewayGateway
- 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
-
#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.
551 552 553 |
# File 'generated/google/apis/apigateway_v1beta/classes.rb', line 551 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
510 511 512 |
# File 'generated/google/apis/apigateway_v1beta/classes.rb', line 510 def api_config @api_config end |
#create_time ⇒ String
Output only. Created time.
Corresponds to the JSON property createTime
515 516 517 |
# File 'generated/google/apis/apigateway_v1beta/classes.rb', line 515 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 property
defaultHostname`
521 522 523 |
# File 'generated/google/apis/apigateway_v1beta/classes.rb', line 521 def default_hostname @default_hostname end |
#display_name ⇒ String
Optional. Display name.
Corresponds to the JSON property displayName
526 527 528 |
# File 'generated/google/apis/apigateway_v1beta/classes.rb', line 526 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
533 534 535 |
# File 'generated/google/apis/apigateway_v1beta/classes.rb', line 533 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
539 540 541 |
# File 'generated/google/apis/apigateway_v1beta/classes.rb', line 539 def name @name end |
#state ⇒ String
Output only. The current state of the Gateway.
Corresponds to the JSON property state
544 545 546 |
# File 'generated/google/apis/apigateway_v1beta/classes.rb', line 544 def state @state end |
#update_time ⇒ String
Output only. Updated time.
Corresponds to the JSON property updateTime
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 |