Class: Google::Apis::ApihubV1::GoogleCloudApihubV1OpenApiSpecDetails
- Inherits:
-
Object
- Object
- Google::Apis::ApihubV1::GoogleCloudApihubV1OpenApiSpecDetails
- 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
-
#format ⇒ String
Output only.
-
#owner ⇒ Google::Apis::ApihubV1::GoogleCloudApihubV1Owner
Owner details.
-
#version ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudApihubV1OpenApiSpecDetails
constructor
A new instance of GoogleCloudApihubV1OpenApiSpecDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#format ⇒ String
Output only. The format of the spec.
Corresponds to the JSON property format
3750 3751 3752 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 3750 def format @format end |
#owner ⇒ Google::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 |
#version ⇒ String
Output only. The version in the spec. This maps to info.version in OpenAPI
spec.
Corresponds to the JSON property version
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 |