Class: Google::Apis::CloudchannelV1::GoogleCloudChannelV1alpha1Value

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

Overview

Data type and value of a parameter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudChannelV1alpha1Value

Returns a new instance of GoogleCloudChannelV1alpha1Value.



4254
4255
4256
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4254

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

Instance Attribute Details

#bool_valueBoolean Also known as: bool_value?

Represents a boolean value. Corresponds to the JSON property boolValue

Returns:

  • (Boolean)


4231
4232
4233
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4231

def bool_value
  @bool_value
end

#double_valueFloat

Represents a double value. Corresponds to the JSON property doubleValue

Returns:

  • (Float)


4237
4238
4239
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4237

def double_value
  @double_value
end

#int64_valueFixnum

Represents an int64 value. Corresponds to the JSON property int64Value

Returns:

  • (Fixnum)


4242
4243
4244
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4242

def int64_value
  @int64_value
end

#proto_valueHash<String,Object>

Represents an 'Any' proto value. Corresponds to the JSON property protoValue

Returns:

  • (Hash<String,Object>)


4247
4248
4249
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4247

def proto_value
  @proto_value
end

#string_valueString

Represents a string value. Corresponds to the JSON property stringValue

Returns:

  • (String)


4252
4253
4254
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4252

def string_value
  @string_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4259
4260
4261
4262
4263
4264
4265
# File 'lib/google/apis/cloudchannel_v1/classes.rb', line 4259

def update!(**args)
  @bool_value = args[:bool_value] if args.key?(:bool_value)
  @double_value = args[:double_value] if args.key?(:double_value)
  @int64_value = args[:int64_value] if args.key?(:int64_value)
  @proto_value = args[:proto_value] if args.key?(:proto_value)
  @string_value = args[:string_value] if args.key?(:string_value)
end