Class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest

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

Overview

The request used for UpdateInstance.

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) ⇒ GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest

Returns a new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest.


2102
2103
2104
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2102

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

Instance Attribute Details

#instanceGoogle::Apis::RemotebuildexecutionV1::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


2077
2078
2079
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2077

def instance
  @instance
end

#logging_enabledBoolean Also known as: logging_enabled?

Deprecated, use instance.logging_enabled instead. Whether to enable Stackdriver logging for this instance. Corresponds to the JSON property loggingEnabled

Returns:

  • (Boolean)

2083
2084
2085
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2083

def logging_enabled
  @logging_enabled
end

#nameString

Deprecated, use instance.Name instead. Name of the instance to update. Format: projects/[PROJECT_ID]/instances/[INSTANCE_ID]. Corresponds to the JSON property name

Returns:

  • (String)

2090
2091
2092
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2090

def name
  @name
end

#update_maskString

The update mask applies to instance. For the FieldMask definition, see https: //developers.google.com/protocol-buffers/docs/reference/google.protobuf# fieldmask If an empty update_mask is provided, only the non-default valued field in the worker pool field will be updated. Note that in order to update a field to the default value (zero, false, empty string) an explicit update_mask must be provided. Corresponds to the JSON property updateMask

Returns:

  • (String)

2100
2101
2102
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2100

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2107
2108
2109
2110
2111
2112
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2107

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