Class: Google::Apis::ApihubV1::GoogleCloudApihubV1OpenApiSpecDetails

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

OpenApiSpecDetails contains the details parsed from an OpenAPI spec in addition to the fields mentioned in SpecDetails.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApihubV1OpenApiSpecDetails

Returns a new instance of GoogleCloudApihubV1OpenApiSpecDetails.



3763
3764
3765
# File 'lib/google/apis/apihub_v1/classes.rb', line 3763

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#formatString

Output only. The format of the spec. Corresponds to the JSON property format

Returns:

  • (String)


3750
3751
3752
# File 'lib/google/apis/apihub_v1/classes.rb', line 3750

def format
  @format
end

#ownerGoogle::Apis::ApihubV1::GoogleCloudApihubV1Owner

Owner details. Corresponds to the JSON property owner



3755
3756
3757
# File 'lib/google/apis/apihub_v1/classes.rb', line 3755

def owner
  @owner
end

#versionString

Output only. The version in the spec. This maps to info.version in OpenAPI spec. Corresponds to the JSON property version

Returns:

  • (String)


3761
3762
3763
# File 'lib/google/apis/apihub_v1/classes.rb', line 3761

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3768
3769
3770
3771
3772
# File 'lib/google/apis/apihub_v1/classes.rb', line 3768

def update!(**args)
  @format = args[:format] if args.key?(:format)
  @owner = args[:owner] if args.key?(:owner)
  @version = args[:version] if args.key?(:version)
end