Class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/remotebuildexecution_v1alpha/classes.rb,
lib/google/apis/remotebuildexecution_v1alpha/representations.rb,
lib/google/apis/remotebuildexecution_v1alpha/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

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance

Returns a new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance.



1932
1933
1934
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1932

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

Instance Attribute Details

#feature_policyGoogle::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy

FeaturePolicy defines features allowed to be used on RBE instances, as well as instance-wide behavior changes that take effect without opt-in or opt-out at usage time. Corresponds to the JSON property featurePolicy



1907
1908
1909
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1907

def feature_policy
  @feature_policy
end

#locationString

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

Returns:

  • (String)


1912
1913
1914
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1912

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)


1917
1918
1919
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1917

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)


1925
1926
1927
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1925

def name
  @name
end

#stateString

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

Returns:

  • (String)


1930
1931
1932
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1930

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1937
1938
1939
1940
1941
1942
1943
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1937

def update!(**args)
  @feature_policy = args[:feature_policy] if args.key?(:feature_policy)
  @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