Class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature

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

Overview

Defines whether a feature can be used or what values are accepted.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature

Returns a new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature.



1957
1958
1959
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 1957

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

Instance Attribute Details

#allowed_valuesArray<String>

A list of acceptable values. Only effective when the policy is RESTRICTED. Corresponds to the JSON property allowedValues

Returns:

  • (Array<String>)


1950
1951
1952
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 1950

def allowed_values
  @allowed_values
end

#policyString

The policy of the feature. Corresponds to the JSON property policy

Returns:

  • (String)


1955
1956
1957
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 1955

def policy
  @policy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1962
1963
1964
1965
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 1962

def update!(**args)
  @allowed_values = args[:allowed_values] if args.key?(:allowed_values)
  @policy = args[:policy] if args.key?(:policy)
end