Class: Google::Apis::PlaygroupingV1alpha1::Tag

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

Overview

A tag is associated with exactly one package name and user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Tag

Returns a new instance of Tag.



93
94
95
# File 'lib/google/apis/playgrouping_v1alpha1/classes.rb', line 93

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

Instance Attribute Details

#boolean_valueBoolean Also known as: boolean_value?

A boolean value of the tag. Corresponds to the JSON property booleanValue

Returns:

  • (Boolean)


70
71
72
# File 'lib/google/apis/playgrouping_v1alpha1/classes.rb', line 70

def boolean_value
  @boolean_value
end

#int64_valueFixnum

A signed 64-bit integer value of the tag. Corresponds to the JSON property int64Value

Returns:

  • (Fixnum)


76
77
78
# File 'lib/google/apis/playgrouping_v1alpha1/classes.rb', line 76

def int64_value
  @int64_value
end

#keyString

Required. Key for the tag. Corresponds to the JSON property key

Returns:

  • (String)


81
82
83
# File 'lib/google/apis/playgrouping_v1alpha1/classes.rb', line 81

def key
  @key
end

#string_valueString

A string value of the tag. Corresponds to the JSON property stringValue

Returns:

  • (String)


86
87
88
# File 'lib/google/apis/playgrouping_v1alpha1/classes.rb', line 86

def string_value
  @string_value
end

#time_valueString

A time value of the tag. Corresponds to the JSON property timeValue

Returns:

  • (String)


91
92
93
# File 'lib/google/apis/playgrouping_v1alpha1/classes.rb', line 91

def time_value
  @time_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



98
99
100
101
102
103
104
# File 'lib/google/apis/playgrouping_v1alpha1/classes.rb', line 98

def update!(**args)
  @boolean_value = args[:boolean_value] if args.key?(:boolean_value)
  @int64_value = args[:int64_value] if args.key?(:int64_value)
  @key = args[:key] if args.key?(:key)
  @string_value = args[:string_value] if args.key?(:string_value)
  @time_value = args[:time_value] if args.key?(:time_value)
end