Class: Azure::ApiManagement::Mgmt::V2017_03_01::Models::ApiRevisionInfoContract

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-03-01/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb

Overview

Object used to create an API Revision or Version based on an existing API Revision

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#api_revision_descriptionString

Returns Description of new API Revision.

Returns:

  • (String)

    Description of new API Revision.



24
25
26
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb', line 24

def api_revision_description
  @api_revision_description
end

#api_version_nameString

Returns Version identifier for the new API Version.

Returns:

  • (String)

    Version identifier for the new API Version.



21
22
23
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb', line 21

def api_version_name
  @api_version_name
end

#api_version_setApiVersionSetContractProperties

Returns Version set details.

Returns:



27
28
29
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb', line 27

def api_version_set
  @api_version_set
end

#source_api_idString

revision from.

Returns:

  • (String)

    Resource identifier of API to be used to create the



18
19
20
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb', line 18

def source_api_id
  @source_api_id
end

Class Method Details

.mapperObject

Mapper for ApiRevisionInfoContract 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
# File 'lib/2017-03-01/generated/azure_mgmt_api_management/models/api_revision_info_contract.rb', line 34

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ApiRevisionInfoContract',
    type: {
      name: 'Composite',
      class_name: 'ApiRevisionInfoContract',
      model_properties: {
        source_api_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sourceApiId',
          type: {
            name: 'String'
          }
        },
        api_version_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'apiVersionName',
          constraints: {
            MaxLength: 100
          },
          type: {
            name: 'String'
          }
        },
        api_revision_description: {
          client_side_validation: true,
          required: false,
          serialized_name: 'apiRevisionDescription',
          constraints: {
            MaxLength: 256
          },
          type: {
            name: 'String'
          }
        },
        api_version_set: {
          client_side_validation: true,
          required: false,
          serialized_name: 'apiVersionSet',
          type: {
            name: 'Composite',
            class_name: 'ApiVersionSetContractProperties'
          }
        }
      }
    }
  }
end