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.



781
782
783
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 781

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



753
754
755
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 753

def config
  @config
end

#create_timeString

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

Returns:

  • (String)


758
759
760
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 758

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)


764
765
766
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 764

def name
  @name
end

#stateString

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

Returns:

  • (String)


769
770
771
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 769

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)


774
775
776
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 774

def state_message
  @state_message
end

#update_timeString

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

Returns:

  • (String)


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