Class: Google::Apis::ApigeeregistryV1::Instance

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Instance

Returns a new instance of Instance.



811
812
813
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 811

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#configGoogle::Apis::ApigeeregistryV1::Config

Available configurations to provision an Instance. Corresponds to the JSON property config



783
784
785
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 783

def config
  @config
end

#create_timeString

Output only. Creation timestamp. Corresponds to the JSON property createTime

Returns:

  • (String)


788
789
790
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 788

def create_time
  @create_time
end

#nameString

Format: projects/*/locations/*/instance. Currently only locations/global is supported. Corresponds to the JSON property name

Returns:

  • (String)


794
795
796
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 794

def name
  @name
end

#stateString

Output only. The current state of the Instance. Corresponds to the JSON property state

Returns:

  • (String)


799
800
801
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 799

def state
  @state
end

#state_messageString

Output only. Extra information of Instance.State if the state is FAILED. Corresponds to the JSON property stateMessage

Returns:

  • (String)


804
805
806
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 804

def state_message
  @state_message
end

#update_timeString

Output only. Last update timestamp. Corresponds to the JSON property updateTime

Returns:

  • (String)


809
810
811
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 809

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



816
817
818
819
820
821
822
823
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 816

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