Class: Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ResponseContract
- Inherits:
-
Object
- Object
- Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ResponseContract
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/response_contract.rb
Overview
Operation response details.
Instance Attribute Summary collapse
-
#description ⇒ String
Operation response description.
-
#headers ⇒ Array<ParameterContract>
headers.
-
#representations ⇒ Array<RepresentationContract>
response representations.
-
#status_code ⇒ Integer
Operation response HTTP status code.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ResponseContract class as Ruby Hash.
Instance Attribute Details
#description ⇒ String
Returns Operation response description.
19 20 21 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/response_contract.rb', line 19 def description @description end |
#headers ⇒ Array<ParameterContract>
headers.
27 28 29 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/response_contract.rb', line 27 def headers @headers end |
#representations ⇒ Array<RepresentationContract>
response representations.
23 24 25 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/response_contract.rb', line 23 def representations @representations end |
#status_code ⇒ Integer
Returns Operation response HTTP status code.
16 17 18 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/response_contract.rb', line 16 def status_code @status_code end |
Class Method Details
.mapper ⇒ Object
Mapper for ResponseContract class as Ruby Hash. This will be used for serialization/deserialization.
34 35 36 37 38 39 40 41 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 |
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/response_contract.rb', line 34 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ResponseContract', type: { name: 'Composite', class_name: 'ResponseContract', model_properties: { status_code: { client_side_validation: true, required: true, serialized_name: 'statusCode', type: { name: 'Number' } }, description: { client_side_validation: true, required: false, serialized_name: 'description', type: { name: 'String' } }, representations: { client_side_validation: true, required: false, serialized_name: 'representations', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'RepresentationContractElementType', type: { name: 'Composite', class_name: 'RepresentationContract' } } } }, headers: { client_side_validation: true, required: false, serialized_name: 'headers', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ParameterContractElementType', type: { name: 'Composite', class_name: 'ParameterContract' } } } } } } } end |