Class: Google::Apis::PrivatecaV1::AttributeTypeAndValue

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

Overview

AttributeTypeAndValue specifies an attribute type and value. It can use either a OID or enum value to specify the attribute type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AttributeTypeAndValue

Returns a new instance of AttributeTypeAndValue.



144
145
146
# File 'lib/google/apis/privateca_v1/classes.rb', line 144

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

Instance Attribute Details

#object_id_propGoogle::Apis::PrivatecaV1::ObjectIdProp

An ObjectId specifies an object identifier (OID). These provide context and describe types in ASN.1 messages. Corresponds to the JSON property objectId



132
133
134
# File 'lib/google/apis/privateca_v1/classes.rb', line 132

def object_id_prop
  @object_id_prop
end

#typeString

The attribute type of the attribute and value pair. Corresponds to the JSON property type

Returns:

  • (String)


137
138
139
# File 'lib/google/apis/privateca_v1/classes.rb', line 137

def type
  @type
end

#valueString

The value for the attribute type. Corresponds to the JSON property value

Returns:

  • (String)


142
143
144
# File 'lib/google/apis/privateca_v1/classes.rb', line 142

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



149
150
151
152
153
# File 'lib/google/apis/privateca_v1/classes.rb', line 149

def update!(**args)
  @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
  @type = args[:type] if args.key?(:type)
  @value = args[:value] if args.key?(:value)
end