Class: Azure::ApiManagement::Mgmt::V2018_06_01_preview::Models::ApiRevisionContract

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_revision_contract.rb

Overview

Summary of revision metadata.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#api_idString

Returns Identifier of the API Revision.

Returns:

  • (String)

    Identifier of the API Revision.



16
17
18
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_revision_contract.rb', line 16

def api_id
  @api_id
end

#api_revisionString

Returns Revision number of API.

Returns:

  • (String)

    Revision number of API.



19
20
21
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_revision_contract.rb', line 19

def api_revision
  @api_revision
end

#created_date_timeDateTime

conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.

Returns:

  • (DateTime)

    The time the API Revision was created. The date



24
25
26
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_revision_contract.rb', line 24

def created_date_time
  @created_date_time
end

#descriptionString

Returns Description of the API Revision.

Returns:

  • (String)

    Description of the API Revision.



32
33
34
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_revision_contract.rb', line 32

def description
  @description
end

#is_currentBoolean

gateway.

Returns:

  • (Boolean)

    Indicates if API revision is accessible via the



44
45
46
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_revision_contract.rb', line 44

def is_current
  @is_current
end

#is_onlineBoolean

revision.

Returns:

  • (Boolean)

    Indicates if API revision is the current api



40
41
42
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_revision_contract.rb', line 40

def is_online
  @is_online
end

#private_urlString

Revision.

Returns:

  • (String)

    Gateway URL for accessing the non-current API



36
37
38
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_revision_contract.rb', line 36

def private_url
  @private_url
end

#updated_date_timeDateTime

conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.

Returns:

  • (DateTime)

    The time the API Revision were updated. The date



29
30
31
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_revision_contract.rb', line 29

def updated_date_time
  @updated_date_time
end

Class Method Details

.mapperObject

Mapper for ApiRevisionContract class as Ruby Hash. This will be used for serialization/deserialization.



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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# File 'lib/2018-06-01-preview/generated/azure_mgmt_api_management/models/api_revision_contract.rb', line 51

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ApiRevisionContract',
    type: {
      name: 'Composite',
      class_name: 'ApiRevisionContract',
      model_properties: {
        api_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'apiId',
          type: {
            name: 'String'
          }
        },
        api_revision: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'apiRevision',
          constraints: {
            MaxLength: 100,
            MinLength: 1
          },
          type: {
            name: 'String'
          }
        },
        created_date_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'createdDateTime',
          type: {
            name: 'DateTime'
          }
        },
        updated_date_time: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'updatedDateTime',
          type: {
            name: 'DateTime'
          }
        },
        description: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'description',
          constraints: {
            MaxLength: 256
          },
          type: {
            name: 'String'
          }
        },
        private_url: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'privateUrl',
          type: {
            name: 'String'
          }
        },
        is_online: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'isOnline',
          type: {
            name: 'Boolean'
          }
        },
        is_current: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'isCurrent',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end