Class: Azure::ARM::SQL::Models::ElasticPoolDatabaseActivity

Inherits:
ProxyResource
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb

Overview

Represents the activity on an elastic pool.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#current_elastic_pool_nameString

in if available.

Returns:

  • (String)

    The name of the current elastic pool the database is



49
50
51
# File 'lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb', line 49

def current_elastic_pool_name
  @current_elastic_pool_name
end

#current_service_objectiveString

available.

Returns:

  • (String)

    The name of the current service objective if



53
54
55
# File 'lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb', line 53

def current_service_objective
  @current_service_objective
end

#database_nameString

Returns The database name.

Returns:

  • (String)

    The database name.



20
21
22
# File 'lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb', line 20

def database_name
  @database_name
end

#end_timeDateTime

Returns The time the operation finished (ISO8601 format).

Returns:

  • (DateTime)

    The time the operation finished (ISO8601 format).



23
24
25
# File 'lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb', line 23

def end_time
  @end_time
end

#error_codeInteger

Returns The error code if available.

Returns:

  • (Integer)

    The error code if available.



26
27
28
# File 'lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb', line 26

def error_code
  @error_code
end

#error_messageString

Returns The error message if available.

Returns:

  • (String)

    The error message if available.



29
30
31
# File 'lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb', line 29

def error_message
  @error_message
end

#error_severityInteger

Returns The error severity if available.

Returns:

  • (Integer)

    The error severity if available.



32
33
34
# File 'lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb', line 32

def error_severity
  @error_severity
end

#locationString

Returns The geo-location where the resource lives.

Returns:

  • (String)

    The geo-location where the resource lives



17
18
19
# File 'lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb', line 17

def location
  @location
end

#operationString

Returns The operation name.

Returns:

  • (String)

    The operation name.



35
36
37
# File 'lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb', line 35

def operation
  @operation
end

#operation_idObject

Returns The unique operation ID.

Returns:

  • The unique operation ID.



38
39
40
# File 'lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb', line 38

def operation_id
  @operation_id
end

#percent_completeInteger

Returns The percentage complete if available.

Returns:

  • (Integer)

    The percentage complete if available.



41
42
43
# File 'lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb', line 41

def percent_complete
  @percent_complete
end

#requested_elastic_pool_nameString

into if available.

Returns:

  • (String)

    The name for the elastic pool the database is moving



45
46
47
# File 'lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb', line 45

def requested_elastic_pool_name
  @requested_elastic_pool_name
end

#requested_service_objectiveString

available.

Returns:

  • (String)

    The name of the requested service objective if



57
58
59
# File 'lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb', line 57

def requested_service_objective
  @requested_service_objective
end

#server_nameString

Returns The name of the server the elastic pool is in.

Returns:

  • (String)

    The name of the server the elastic pool is in.



60
61
62
# File 'lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb', line 60

def server_name
  @server_name
end

#start_timeDateTime

Returns The time the operation started (ISO8601 format).

Returns:

  • (DateTime)

    The time the operation started (ISO8601 format).



63
64
65
# File 'lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb', line 63

def start_time
  @start_time
end

#stateString

Returns The current state of the operation.

Returns:

  • (String)

    The current state of the operation.



66
67
68
# File 'lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb', line 66

def state
  @state
end

Class Method Details

.mapperObject

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



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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
# File 'lib/generated/azure_mgmt_sql/models/elastic_pool_database_activity.rb', line 73

def self.mapper()
  {
    required: false,
    serialized_name: 'ElasticPoolDatabaseActivity',
    type: {
      name: 'Composite',
      class_name: 'ElasticPoolDatabaseActivity',
      model_properties: {
        id: {
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        location: {
          required: false,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        database_name: {
          required: false,
          read_only: true,
          serialized_name: 'properties.databaseName',
          type: {
            name: 'String'
          }
        },
        end_time: {
          required: false,
          read_only: true,
          serialized_name: 'properties.endTime',
          type: {
            name: 'DateTime'
          }
        },
        error_code: {
          required: false,
          read_only: true,
          serialized_name: 'properties.errorCode',
          type: {
            name: 'Number'
          }
        },
        error_message: {
          required: false,
          read_only: true,
          serialized_name: 'properties.errorMessage',
          type: {
            name: 'String'
          }
        },
        error_severity: {
          required: false,
          read_only: true,
          serialized_name: 'properties.errorSeverity',
          type: {
            name: 'Number'
          }
        },
        operation: {
          required: false,
          read_only: true,
          serialized_name: 'properties.operation',
          type: {
            name: 'String'
          }
        },
        operation_id: {
          required: false,
          read_only: true,
          serialized_name: 'properties.operationId',
          type: {
            name: 'String'
          }
        },
        percent_complete: {
          required: false,
          read_only: true,
          serialized_name: 'properties.percentComplete',
          type: {
            name: 'Number'
          }
        },
        requested_elastic_pool_name: {
          required: false,
          read_only: true,
          serialized_name: 'properties.requestedElasticPoolName',
          type: {
            name: 'String'
          }
        },
        current_elastic_pool_name: {
          required: false,
          read_only: true,
          serialized_name: 'properties.currentElasticPoolName',
          type: {
            name: 'String'
          }
        },
        current_service_objective: {
          required: false,
          read_only: true,
          serialized_name: 'properties.currentServiceObjective',
          type: {
            name: 'String'
          }
        },
        requested_service_objective: {
          required: false,
          read_only: true,
          serialized_name: 'properties.requestedServiceObjective',
          type: {
            name: 'String'
          }
        },
        server_name: {
          required: false,
          read_only: true,
          serialized_name: 'properties.serverName',
          type: {
            name: 'String'
          }
        },
        start_time: {
          required: false,
          read_only: true,
          serialized_name: 'properties.startTime',
          type: {
            name: 'DateTime'
          }
        },
        state: {
          required: false,
          read_only: true,
          serialized_name: 'properties.state',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end