Class: Google::Apis::ApihubV1::GoogleCloudApihubV1ApiMetadata
- Inherits:
-
Object
- Object
- Google::Apis::ApihubV1::GoogleCloudApihubV1ApiMetadata
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apihub_v1/classes.rb,
lib/google/apis/apihub_v1/representations.rb,
lib/google/apis/apihub_v1/representations.rb
Overview
The API metadata.
Instance Attribute Summary collapse
-
#api ⇒ Google::Apis::ApihubV1::GoogleCloudApihubV1Api
An API resource in the API Hub.
-
#original_create_time ⇒ String
Optional.
-
#original_id ⇒ String
Optional.
-
#original_update_time ⇒ String
Required.
-
#versions ⇒ Array<Google::Apis::ApihubV1::GoogleCloudApihubV1VersionMetadata>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudApihubV1ApiMetadata
constructor
A new instance of GoogleCloudApihubV1ApiMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudApihubV1ApiMetadata
Returns a new instance of GoogleCloudApihubV1ApiMetadata.
71 72 73 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 71 def initialize(**args) update!(**args) end |
Instance Attribute Details
#api ⇒ Google::Apis::ApihubV1::GoogleCloudApihubV1Api
An API resource in the API Hub.
Corresponds to the JSON property api
48 49 50 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 48 def api @api end |
#original_create_time ⇒ String
Optional. Timestamp indicating when the API was created at the source.
Corresponds to the JSON property originalCreateTime
53 54 55 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 53 def original_create_time @original_create_time end |
#original_id ⇒ String
Optional. The unique identifier of the API in the system where it was
originally created.
Corresponds to the JSON property originalId
59 60 61 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 59 def original_id @original_id end |
#original_update_time ⇒ String
Required. Timestamp indicating when the API was last updated at the source.
Corresponds to the JSON property originalUpdateTime
64 65 66 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 64 def original_update_time @original_update_time end |
#versions ⇒ Array<Google::Apis::ApihubV1::GoogleCloudApihubV1VersionMetadata>
Optional. The list of versions present in an API resource.
Corresponds to the JSON property versions
69 70 71 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 69 def versions @versions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
76 77 78 79 80 81 82 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 76 def update!(**args) @api = args[:api] if args.key?(:api) @original_create_time = args[:original_create_time] if args.key?(:original_create_time) @original_id = args[:original_id] if args.key?(:original_id) @original_update_time = args[:original_update_time] if args.key?(:original_update_time) @versions = args[:versions] if args.key?(:versions) end |