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.



3572
3573
3574
# File 'lib/google/apis/apihub_v1/classes.rb', line 3572

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)


3559
3560
3561
# File 'lib/google/apis/apihub_v1/classes.rb', line 3559

def format
  @format
end

#ownerGoogle::Apis::ApihubV1::GoogleCloudApihubV1Owner

Owner details. Corresponds to the JSON property owner



3564
3565
3566
# File 'lib/google/apis/apihub_v1/classes.rb', line 3564

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)


3570
3571
3572
# File 'lib/google/apis/apihub_v1/classes.rb', line 3570

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3577
3578
3579
3580
3581
# File 'lib/google/apis/apihub_v1/classes.rb', line 3577

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