Class: Google::Apis::ApigeeregistryV1::Instance
- Inherits:
-
Object
- Object
- Google::Apis::ApigeeregistryV1::Instance
- 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
An Instance represents the instance resources of the Registry. Currently, only one instance is allowed for each project.
Instance Attribute Summary collapse
-
#config ⇒ Google::Apis::ApigeeregistryV1::Config
Available configurations to provision an Instance.
-
#create_time ⇒ String
Output only.
-
#name ⇒ String
Format:
projects/*/locations/*/instance. -
#state ⇒ String
Output only.
-
#state_message ⇒ String
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Instance
constructor
A new instance of Instance.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Instance
Returns a new instance of Instance.
781 782 783 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 781 def initialize(**args) update!(**args) end |
Instance Attribute Details
#config ⇒ Google::Apis::ApigeeregistryV1::Config
Available configurations to provision an Instance.
Corresponds to the JSON property config
753 754 755 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 753 def config @config end |
#create_time ⇒ String
Output only. Creation timestamp.
Corresponds to the JSON property createTime
758 759 760 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 758 def create_time @create_time end |
#name ⇒ String
Format: projects/*/locations/*/instance. Currently only locations/global
is supported.
Corresponds to the JSON property name
764 765 766 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 764 def name @name end |
#state ⇒ String
Output only. The current state of the Instance.
Corresponds to the JSON property state
769 770 771 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 769 def state @state end |
#state_message ⇒ String
Output only. Extra information of Instance.State if the state is FAILED.
Corresponds to the JSON property stateMessage
774 775 776 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 774 def @state_message end |
#update_time ⇒ String
Output only. Last update timestamp.
Corresponds to the JSON property updateTime
779 780 781 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 779 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
786 787 788 789 790 791 792 793 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 786 def update!(**args) @config = args[:config] if args.key?(:config) @create_time = args[:create_time] if args.key?(:create_time) @name = args[:name] if args.key?(:name) @state = args[:state] if args.key?(:state) @state_message = args[:state_message] if args.key?(:state_message) @update_time = args[:update_time] if args.key?(:update_time) end |