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
-
#build ⇒ Google::Apis::ApigeeregistryV1::Build
Build information of the Instance if it's in
ACTIVE
state. -
#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.
847 848 849 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 847 def initialize(**args) update!(**args) end |
Instance Attribute Details
#build ⇒ Google::Apis::ApigeeregistryV1::Build
Build information of the Instance if it's in ACTIVE
state.
Corresponds to the JSON property build
814 815 816 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 814 def build @build end |
#config ⇒ Google::Apis::ApigeeregistryV1::Config
Available configurations to provision an Instance.
Corresponds to the JSON property config
819 820 821 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 819 def config @config end |
#create_time ⇒ String
Output only. Creation timestamp.
Corresponds to the JSON property createTime
824 825 826 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 824 def create_time @create_time end |
#name ⇒ String
Format: projects/*/locations/*/instance
. Currently only locations/global
is supported.
Corresponds to the JSON property name
830 831 832 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 830 def name @name end |
#state ⇒ String
Output only. The current state of the Instance.
Corresponds to the JSON property state
835 836 837 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 835 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
840 841 842 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 840 def @state_message end |
#update_time ⇒ String
Output only. Last update timestamp.
Corresponds to the JSON property updateTime
845 846 847 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 845 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
852 853 854 855 856 857 858 859 860 |
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 852 def update!(**args) @build = args[:build] if args.key?(:build) @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 |