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.



847
848
849
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 847

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

Instance Attribute Details

#buildGoogle::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

#configGoogle::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_timeString

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

Returns:

  • (String)


824
825
826
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 824

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)


830
831
832
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 830

def name
  @name
end

#stateString

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

Returns:

  • (String)


835
836
837
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 835

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)


840
841
842
# File 'lib/google/apis/apigeeregistry_v1/classes.rb', line 840

def state_message
  @state_message
end

#update_timeString

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

Returns:

  • (String)


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