Class: Google::Apis::ApihubV1::GoogleCloudApihubV1ApiMetadata

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#apiGoogle::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_timeString

Optional. Timestamp indicating when the API was created at the source. Corresponds to the JSON property originalCreateTime

Returns:

  • (String)


53
54
55
# File 'lib/google/apis/apihub_v1/classes.rb', line 53

def original_create_time
  @original_create_time
end

#original_idString

Optional. The unique identifier of the API in the system where it was originally created. Corresponds to the JSON property originalId

Returns:

  • (String)


59
60
61
# File 'lib/google/apis/apihub_v1/classes.rb', line 59

def original_id
  @original_id
end

#original_update_timeString

Required. Timestamp indicating when the API was last updated at the source. Corresponds to the JSON property originalUpdateTime

Returns:

  • (String)


64
65
66
# File 'lib/google/apis/apihub_v1/classes.rb', line 64

def original_update_time
  @original_update_time
end

#versionsArray<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