Class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest

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

Overview

The request used for CreateInstance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest

Returns a new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaCreateInstanceRequest.



2531
2532
2533
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 2531

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

Instance Attribute Details

#instanceGoogle::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance

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. Corresponds to the JSON property instance



2516
2517
2518
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 2516

def instance
  @instance
end

#instance_idString

ID of the created instance. A valid instance_id must: be 6-50 characters long, contain only lowercase letters, digits, hyphens and underscores, start with a lowercase letter, and end with a lowercase letter or a digit. Corresponds to the JSON property instanceId

Returns:

  • (String)


2523
2524
2525
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 2523

def instance_id
  @instance_id
end

#parentString

Resource name of the project containing the instance. Format: projects/[ PROJECT_ID]. Corresponds to the JSON property parent

Returns:

  • (String)


2529
2530
2531
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 2529

def parent
  @parent
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2536
2537
2538
2539
2540
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 2536

def update!(**args)
  @instance = args[:instance] if args.key?(:instance)
  @instance_id = args[:instance_id] if args.key?(:instance_id)
  @parent = args[:parent] if args.key?(:parent)
end