Class: Azure::ARM::Network::Models::AuthorizationPropertiesFormat
- Inherits:
-
Object
- Object
- Azure::ARM::Network::Models::AuthorizationPropertiesFormat
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_network/models/authorization_properties_format.rb
Overview
Model object.
Instance Attribute Summary collapse
-
#authorization_key ⇒ String
Gets or sets the authorization key.
-
#authorization_use_status ⇒ AuthorizationUseStatus
Possible values include: ‘Available’, ‘InUse’.
-
#provisioning_state ⇒ String
resource Updating/Deleting/Failed.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ AuthorizationPropertiesFormat
Deserializes given Ruby Hash into Model object.
-
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
Instance Method Summary collapse
-
#validate ⇒ Object
Validate the object.
Instance Attribute Details
#authorization_key ⇒ String
Returns Gets or sets the authorization key.
16 17 18 |
# File 'lib/azure_mgmt_network/models/authorization_properties_format.rb', line 16 def end |
#authorization_use_status ⇒ AuthorizationUseStatus
Possible values include: ‘Available’, ‘InUse’
20 21 22 |
# File 'lib/azure_mgmt_network/models/authorization_properties_format.rb', line 20 def end |
#provisioning_state ⇒ String
resource Updating/Deleting/Failed
24 25 26 |
# File 'lib/azure_mgmt_network/models/authorization_properties_format.rb', line 24 def provisioning_state @provisioning_state end |
Class Method Details
.deserialize_object(object) ⇒ AuthorizationPropertiesFormat
Deserializes given Ruby Hash into Model object.
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/azure_mgmt_network/models/authorization_properties_format.rb', line 58 def self.deserialize_object(object) return if object.nil? output_object = AuthorizationPropertiesFormat.new deserialized_property = object['authorizationKey'] output_object. = deserialized_property deserialized_property = object['authorizationUseStatus'] if (!deserialized_property.nil? && !deserialized_property.empty?) enum_is_valid = AuthorizationUseStatus.constants.any? { |e| AuthorizationUseStatus.const_get(e).to_s.downcase == deserialized_property.downcase } warn 'Enum AuthorizationUseStatus does not contain ' + deserialized_property.downcase + ', but was received from the server.' unless enum_is_valid end output_object. = deserialized_property deserialized_property = object['provisioningState'] output_object.provisioning_state = deserialized_property output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/azure_mgmt_network/models/authorization_properties_format.rb', line 37 def self.serialize_object(object) object.validate output_object = {} serialized_property = object. output_object['authorizationKey'] = serialized_property unless serialized_property.nil? serialized_property = object. output_object['authorizationUseStatus'] = serialized_property unless serialized_property.nil? serialized_property = object.provisioning_state output_object['provisioningState'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
29 30 |
# File 'lib/azure_mgmt_network/models/authorization_properties_format.rb', line 29 def validate end |