Class: Azure::ApiManagement::Mgmt::V2018_01_01::Models::ConnectivityStatusContract

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

Overview

Details about connectivity to a resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#errorString

Returns Error details of the connectivity to the resource.

Returns:

  • (String)

    Error details of the connectivity to the resource.



26
27
28
# File 'lib/2018-01-01/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb', line 26

def error
  @error
end

#last_status_changeDateTime

Changed from success to failure or vice-versa. The date conforms to the following format: ‘yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.

Returns:

  • (DateTime)

    The date when the resource connectivity status last



42
43
44
# File 'lib/2018-01-01/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb', line 42

def last_status_change
  @last_status_change
end

#last_updatedDateTime

last updated. This status should be updated every 15 minutes. If this status has not been updated, then it means that the service has lost network connectivity to the resource, from inside the Virtual Network.The date conforms to the following format: ‘yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.

Returns:

  • (DateTime)

    The date when the resource connectivity status was



35
36
37
# File 'lib/2018-01-01/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb', line 35

def last_updated
  @last_updated
end

#nameString

on. This can be the database, storage or any other azure resource on which the service depends upon.

Returns:

  • (String)

    The hostname of the resource which the service depends



18
19
20
# File 'lib/2018-01-01/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb', line 18

def name
  @name
end

#statusConnectivityStatusType

identifier. Possible values include: ‘initializing’, ‘success’, ‘failure’

Returns:



23
24
25
# File 'lib/2018-01-01/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb', line 23

def status
  @status
end

Class Method Details

.mapperObject

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



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
104
# File 'lib/2018-01-01/generated/azure_mgmt_api_management/models/connectivity_status_contract.rb', line 49

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ConnectivityStatusContract',
    type: {
      name: 'Composite',
      class_name: 'ConnectivityStatusContract',
      model_properties: {
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'name',
          constraints: {
            MinLength: 1
          },
          type: {
            name: 'String'
          }
        },
        status: {
          client_side_validation: true,
          required: true,
          serialized_name: 'status',
          type: {
            name: 'String'
          }
        },
        error: {
          client_side_validation: true,
          required: false,
          serialized_name: 'error',
          type: {
            name: 'String'
          }
        },
        last_updated: {
          client_side_validation: true,
          required: true,
          serialized_name: 'lastUpdated',
          type: {
            name: 'DateTime'
          }
        },
        last_status_change: {
          client_side_validation: true,
          required: true,
          serialized_name: 'lastStatusChange',
          type: {
            name: 'DateTime'
          }
        }
      }
    }
  }
end