Class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/remotebuildexecution_v2/classes.rb,
generated/google/apis/remotebuildexecution_v2/representations.rb,
generated/google/apis/remotebuildexecution_v2/representations.rb

Overview

Instance conceptually encapsulates all Remote Build Execution resources for remote builds. An instance consists of storage and compute resources (for example, ContentAddressableStorage, ActionCache, WorkerPools) used for running remote builds. All Remote Build Execution API calls are scoped to an instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance

Returns a new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance



2467
2468
2469
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2467

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

Instance Attribute Details

#locationString

The location is a GCP region. Currently only us-central1 is supported. Corresponds to the JSON property location

Returns:

  • (String)


2446
2447
2448
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2446

def location
  @location
end

#logging_enabledBoolean Also known as: logging_enabled?

Output only. Whether stack driver logging is enabled for the instance. Corresponds to the JSON property loggingEnabled

Returns:

  • (Boolean)


2451
2452
2453
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2451

def logging_enabled
  @logging_enabled
end

#nameString

Output only. Instance resource name formatted as: projects/[PROJECT_ID]/instances/[INSTANCE_ID]. Name should not be populated when creating an instance since it is provided in the instance_id field. Corresponds to the JSON property name

Returns:

  • (String)


2460
2461
2462
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2460

def name
  @name
end

#stateString

Output only. State of the instance. Corresponds to the JSON property state

Returns:

  • (String)


2465
2466
2467
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2465

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2472
2473
2474
2475
2476
2477
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2472

def update!(**args)
  @location = args[:location] if args.key?(:location)
  @logging_enabled = args[:logging_enabled] if args.key?(:logging_enabled)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
end