Class: Google::Apis::PrivatecaV1::AttributeTypeAndValue
- Inherits:
-
Object
- Object
- Google::Apis::PrivatecaV1::AttributeTypeAndValue
- 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
-
#object_id_prop ⇒ Google::Apis::PrivatecaV1::ObjectIdProp
An ObjectId specifies an object identifier (OID).
-
#type ⇒ String
The attribute type of the attribute and value pair.
-
#value ⇒ String
The value for the attribute type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AttributeTypeAndValue
constructor
A new instance of AttributeTypeAndValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_prop ⇒ Google::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 |
#type ⇒ String
The attribute type of the attribute and value pair.
Corresponds to the JSON property type
137 138 139 |
# File 'lib/google/apis/privateca_v1/classes.rb', line 137 def type @type end |
#value ⇒ String
The value for the attribute type.
Corresponds to the JSON property value
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 |