Class: Google::Apis::ApigeeregistryV1::ApiVersion
- Inherits:
-
Object
- Object
- Google::Apis::ApigeeregistryV1::ApiVersion
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/apigeeregistry_v1/classes.rb,
lib/google/apis/apigeeregistry_v1/representations.rb,
lib/google/apis/apigeeregistry_v1/representations.rb
Overview
Describes a particular version of an API. ApiVersions are what consumers actually use.
Instance Attribute Summary collapse
-
#annotations ⇒ Hash<String,String>
Annotations attach non-identifying metadata to resources.
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
A detailed description.
-
#display_name ⇒ String
Human-meaningful name.
-
#labels ⇒ Hash<String,String>
Labels attach identifying metadata to resources.
-
#name ⇒ String
Resource name.
-
#primary_spec ⇒ String
The primary spec for this version.
-
#state ⇒ String
A user-definable description of the lifecycle phase of this API version.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ApiVersion
constructor
A new instance of ApiVersion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ApiVersion
Returns a new instance of ApiVersion.
429 430 431 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 429 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotations ⇒ Hash<String,String>
Annotations attach non-identifying metadata to resources. Annotation keys and
values are less restricted than those of labels, but should be generally used
for small values of broad interest. Larger, topic- specific metadata should be
stored in Artifacts.
Corresponds to the JSON property annotations
376 377 378 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 376 def annotations @annotations end |
#create_time ⇒ String
Output only. Creation timestamp.
Corresponds to the JSON property createTime
381 382 383 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 381 def create_time @create_time end |
#description ⇒ String
A detailed description.
Corresponds to the JSON property description
386 387 388 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 386 def description @description end |
#display_name ⇒ String
Human-meaningful name.
Corresponds to the JSON property displayName
391 392 393 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 391 def display_name @display_name end |
#labels ⇒ Hash<String,String>
Labels attach identifying metadata to resources. Identifying metadata can be
used to filter list operations. Label keys and values can be no longer than 64
characters (Unicode codepoints), can only contain lowercase letters, numeric
characters, underscores and dashes. International characters are allowed. No
more than 64 user labels can be associated with one resource (System labels
are excluded). See https://goo.gl/xmQnxf for more information and examples of
labels. System reserved label keys are prefixed with apigeeregistry.
googleapis.com/
and cannot be changed.
Corresponds to the JSON property labels
403 404 405 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 403 def labels @labels end |
#name ⇒ String
Resource name.
Corresponds to the JSON property name
408 409 410 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 408 def name @name end |
#primary_spec ⇒ String
The primary spec for this version. Format: projects/project
/locations/
location
/apis/api
/versions/version
/specs/spec
Corresponds to the JSON property primarySpec
414 415 416 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 414 def primary_spec @primary_spec end |
#state ⇒ String
A user-definable description of the lifecycle phase of this API version.
Format: free-form, but we expect single words that describe API maturity, e.g.,
"CONCEPT", "DESIGN", "DEVELOPMENT", "STAGING", "PRODUCTION", "DEPRECATED", "
RETIRED".
Corresponds to the JSON property state
422 423 424 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 422 def state @state end |
#update_time ⇒ String
Output only. Last update timestamp.
Corresponds to the JSON property updateTime
427 428 429 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 427 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
434 435 436 437 438 439 440 441 442 443 444 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 434 def update!(**args) @annotations = args[:annotations] if args.key?(:annotations) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @primary_spec = args[:primary_spec] if args.key?(:primary_spec) @state = args[:state] if args.key?(:state) @update_time = args[:update_time] if args.key?(:update_time) end |