Class: Azure::ApiManagement::Mgmt::V2017_03_01::Models::RepresentationContract

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#content_typeString

representation, e.g. application/xml.

Returns:

  • (String)

    Specifies a registered or custom content type for this



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_parametersArray<ParameterContract>

Required if ‘contentType’ value is either ‘application/x-www-form-urlencoded’ or ‘multipart/form-data’..

Returns:



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

#sampleString

Returns An example of the representation.

Returns:

  • (String)

    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_idString

value is neither ‘application/x-www-form-urlencoded’ nor ‘multipart/form-data’.

Returns:

  • (String)

    Schema identifier. Applicable only if ‘contentType’



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_nameString

‘contentType’ value is neither ‘application/x-www-form-urlencoded’ nor ‘multipart/form-data’.

Returns:

  • (String)

    Type name defined by the schema. Applicable only if



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

.mapperObject

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