Class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter

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

Overview

Defines a parameter structure.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter

Returns a new instance of GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter.



230
231
232
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 230

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

Instance Attribute Details

#default_valueObject

Sets the value of the parameter in an assignment if no value is given. Corresponds to the JSON property defaultValue

Returns:

  • (Object)


205
206
207
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 205

def default_value
  @default_value
end

#itemString

Determines the parameter’s value structure. For example, LIST can be specified by defining type : LIST, and item type as : STRING. Corresponds to the JSON property item

Returns:

  • (String)


211
212
213
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 211

def item
  @item
end

#metadataGoogle::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameterMetadata

Defines Medata structure. Corresponds to the JSON property metadata



216
217
218
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 216

def 
  @metadata
end

#typeString

Type of the parameter. Corresponds to the JSON property type

Returns:

  • (String)


221
222
223
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 221

def type
  @type
end

#valid_values_exprString

Provides a CEL expression to specify the acceptable parameter values during assignment. For example, parameterName in ("parameterValue1", "parameterValue2" ) Corresponds to the JSON property validValuesExpr

Returns:

  • (String)


228
229
230
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 228

def valid_values_expr
  @valid_values_expr
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



235
236
237
238
239
240
241
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 235

def update!(**args)
  @default_value = args[:default_value] if args.key?(:default_value)
  @item = args[:item] if args.key?(:item)
  @metadata = args[:metadata] if args.key?(:metadata)
  @type = args[:type] if args.key?(:type)
  @valid_values_expr = args[:valid_values_expr] if args.key?(:valid_values_expr)
end