Class: Azure::ARM::Resources::Models::ResourceProviderOperationDisplayProperties
- Inherits:
-
Object
- Object
- Azure::ARM::Resources::Models::ResourceProviderOperationDisplayProperties
- Includes:
- MsRestAzure
- Defined in:
- lib/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb
Overview
Resource provider operation’s display properties.
Instance Attribute Summary collapse
-
#description ⇒ String
Gets or sets operation description.
-
#operation ⇒ String
Gets or sets operation.
-
#provider ⇒ String
Gets or sets operation provider.
-
#publisher ⇒ String
Gets or sets operation description.
-
#resource ⇒ String
Gets or sets operation resource.
Class Method Summary collapse
-
.deserialize_object(object) ⇒ ResourceProviderOperationDisplayProperties
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
#description ⇒ String
Returns Gets or sets operation description.
28 29 30 |
# File 'lib/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb', line 28 def description @description end |
#operation ⇒ String
Returns Gets or sets operation.
25 26 27 |
# File 'lib/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb', line 25 def operation @operation end |
#provider ⇒ String
Returns Gets or sets operation provider.
19 20 21 |
# File 'lib/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb', line 19 def provider @provider end |
#publisher ⇒ String
Returns Gets or sets operation description.
16 17 18 |
# File 'lib/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb', line 16 def publisher @publisher end |
#resource ⇒ String
Returns Gets or sets operation resource.
22 23 24 |
# File 'lib/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb', line 22 def resource @resource end |
Class Method Details
.deserialize_object(object) ⇒ ResourceProviderOperationDisplayProperties
Deserializes given Ruby Hash into Model object. object.
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb', line 70 def self.deserialize_object(object) return if object.nil? output_object = ResourceProviderOperationDisplayProperties.new deserialized_property = object['publisher'] output_object.publisher = deserialized_property deserialized_property = object['provider'] output_object.provider = deserialized_property deserialized_property = object['resource'] output_object.resource = deserialized_property deserialized_property = object['operation'] output_object.operation = deserialized_property deserialized_property = object['description'] output_object.description = deserialized_property output_object.validate output_object end |
.serialize_object(object) ⇒ Hash
Serializes given Model object into Ruby Hash.
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb', line 42 def self.serialize_object(object) object.validate output_object = {} serialized_property = object.publisher output_object['publisher'] = serialized_property unless serialized_property.nil? serialized_property = object.provider output_object['provider'] = serialized_property unless serialized_property.nil? serialized_property = object.resource output_object['resource'] = serialized_property unless serialized_property.nil? serialized_property = object.operation output_object['operation'] = serialized_property unless serialized_property.nil? serialized_property = object.description output_object['description'] = serialized_property unless serialized_property.nil? output_object end |
Instance Method Details
#validate ⇒ Object
Validate the object. Throws ValidationError if validation fails.
33 34 35 |
# File 'lib/azure_mgmt_resources/models/resource_provider_operation_display_properties.rb', line 33 def validate # Nothing to validate end |