Class: Azure::ApiManagement::Mgmt::V2017_03_01::Models::RepresentationContract
- Inherits:
-
Object
- Object
- Azure::ApiManagement::Mgmt::V2017_03_01::Models::RepresentationContract
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-03-01/generated/azure_mgmt_api_management/models/representation_contract.rb
Overview
Operation request/response representation details.
Instance Attribute Summary collapse
-
#content_type ⇒ String
representation, e.g.
-
#form_parameters ⇒ Array<ParameterContract>
Required if ‘contentType’ value is either ‘application/x-www-form-urlencoded’ or ‘multipart/form-data’..
-
#sample ⇒ String
An example of the representation.
-
#schema_id ⇒ String
value is neither ‘application/x-www-form-urlencoded’ nor ‘multipart/form-data’.
-
#type_name ⇒ String
‘contentType’ value is neither ‘application/x-www-form-urlencoded’ nor ‘multipart/form-data’.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for RepresentationContract class as Ruby Hash.
Instance Attribute Details
#content_type ⇒ String
representation, e.g. application/xml.
17 18 19 |
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/models/representation_contract.rb', line 17 def content_type @content_type end |
#form_parameters ⇒ Array<ParameterContract>
Required if ‘contentType’ value is either ‘application/x-www-form-urlencoded’ or ‘multipart/form-data’..
35 36 37 |
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/models/representation_contract.rb', line 35 def form_parameters @form_parameters end |
#sample ⇒ String
Returns An example of the representation.
20 21 22 |
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/models/representation_contract.rb', line 20 def sample @sample end |
#schema_id ⇒ String
value is neither ‘application/x-www-form-urlencoded’ nor ‘multipart/form-data’.
25 26 27 |
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/models/representation_contract.rb', line 25 def schema_id @schema_id end |
#type_name ⇒ String
‘contentType’ value is neither ‘application/x-www-form-urlencoded’ nor ‘multipart/form-data’.
30 31 32 |
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/models/representation_contract.rb', line 30 def type_name @type_name end |
Class Method Details
.mapper ⇒ Object
Mapper for RepresentationContract class as Ruby Hash. This will be used for serialization/deserialization.
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/models/representation_contract.rb', line 42 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'RepresentationContract', type: { name: 'Composite', class_name: 'RepresentationContract', model_properties: { content_type: { client_side_validation: true, required: true, serialized_name: 'contentType', type: { name: 'String' } }, sample: { client_side_validation: true, required: false, serialized_name: 'sample', type: { name: 'String' } }, schema_id: { client_side_validation: true, required: false, serialized_name: 'schemaId', type: { name: 'String' } }, type_name: { client_side_validation: true, required: false, serialized_name: 'typeName', type: { name: 'String' } }, form_parameters: { client_side_validation: true, required: false, serialized_name: 'formParameters', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ParameterContractElementType', type: { name: 'Composite', class_name: 'ParameterContract' } } } } } } } end |