Class: Google::Apis::ApigatewayV1::ApigatewayApi
- Inherits:
-
Object
- Object
- Google::Apis::ApigatewayV1::ApigatewayApi
- 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
An API that can be served by one or more Gateways.
Instance Attribute Summary collapse
-
#create_time ⇒ String
Output only.
-
#display_name ⇒ String
Optional.
-
#labels ⇒ Hash<String,String>
Optional.
-
#managed_service ⇒ String
Optional.
-
#name ⇒ String
Output only.
-
#state ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ApigatewayApi
constructor
A new instance of ApigatewayApi.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ApigatewayApi
Returns a new instance of ApigatewayApi.
69 70 71 |
# File 'lib/google/apis/apigateway_v1/classes.rb', line 69 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Created time.
Corresponds to the JSON property createTime
32 33 34 |
# File 'lib/google/apis/apigateway_v1/classes.rb', line 32 def create_time @create_time end |
#display_name ⇒ String
Optional. Display name.
Corresponds to the JSON property displayName
37 38 39 |
# File 'lib/google/apis/apigateway_v1/classes.rb', line 37 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
44 45 46 |
# File 'lib/google/apis/apigateway_v1/classes.rb', line 44 def labels @labels end |
#managed_service ⇒ String
Optional. Immutable. The name of a Google Managed Service ( https://cloud.
google.com/service-infrastructure/docs/glossary#managed). If not specified, a
new Service will automatically be created in the same project as this API.
Corresponds to the JSON property managedService
51 52 53 |
# File 'lib/google/apis/apigateway_v1/classes.rb', line 51 def managed_service @managed_service end |
#name ⇒ String
Output only. Resource name of the API. Format: projects/project
/locations/
global/apis/api
Corresponds to the JSON property name
57 58 59 |
# File 'lib/google/apis/apigateway_v1/classes.rb', line 57 def name @name end |
#state ⇒ String
Output only. State of the API.
Corresponds to the JSON property state
62 63 64 |
# File 'lib/google/apis/apigateway_v1/classes.rb', line 62 def state @state end |
#update_time ⇒ String
Output only. Updated time.
Corresponds to the JSON property updateTime
67 68 69 |
# File 'lib/google/apis/apigateway_v1/classes.rb', line 67 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
74 75 76 77 78 79 80 81 82 |
# File 'lib/google/apis/apigateway_v1/classes.rb', line 74 def update!(**args) @create_time = args[:create_time] if args.key?(:create_time) @display_name = args[:display_name] if args.key?(:display_name) @labels = args[:labels] if args.key?(:labels) @managed_service = args[:managed_service] if args.key?(:managed_service) @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 |