azure_mgmt_compute 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_compute.rb +14 -0
  3. data/lib/generated/azure_mgmt_compute/availability_sets.rb +11 -11
  4. data/lib/generated/azure_mgmt_compute/compute_management_client.rb +4 -4
  5. data/lib/generated/azure_mgmt_compute/container_service_operations.rb +524 -0
  6. data/lib/generated/azure_mgmt_compute/models/container_service.rb +167 -0
  7. data/lib/generated/azure_mgmt_compute/models/container_service_agent_pool_profile.rb +104 -0
  8. data/lib/generated/azure_mgmt_compute/models/container_service_diagnostics_profile.rb +46 -0
  9. data/lib/generated/azure_mgmt_compute/models/container_service_linux_profile.rb +56 -0
  10. data/lib/generated/azure_mgmt_compute/models/container_service_list_result.rb +52 -0
  11. data/lib/generated/azure_mgmt_compute/models/container_service_master_profile.rb +65 -0
  12. data/lib/generated/azure_mgmt_compute/models/container_service_ochestrator_types.rb +16 -0
  13. data/lib/generated/azure_mgmt_compute/models/container_service_orchestrator_profile.rb +47 -0
  14. data/lib/generated/azure_mgmt_compute/models/container_service_ssh_configuration.rb +53 -0
  15. data/lib/generated/azure_mgmt_compute/models/container_service_ssh_public_key.rb +46 -0
  16. data/lib/generated/azure_mgmt_compute/models/container_service_vmdiagnostics.rb +57 -0
  17. data/lib/generated/azure_mgmt_compute/models/container_service_vmsize_types.rb +61 -0
  18. data/lib/generated/azure_mgmt_compute/models/container_service_windows_profile.rb +54 -0
  19. data/lib/generated/azure_mgmt_compute/usage_operations.rb +4 -3
  20. data/lib/generated/azure_mgmt_compute/version.rb +1 -1
  21. data/lib/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +7 -7
  22. data/lib/generated/azure_mgmt_compute/virtual_machine_extensions.rb +11 -7
  23. data/lib/generated/azure_mgmt_compute/virtual_machine_images.rb +11 -11
  24. data/lib/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +32 -19
  25. data/lib/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +50 -29
  26. data/lib/generated/azure_mgmt_compute/virtual_machine_sizes.rb +3 -3
  27. data/lib/generated/azure_mgmt_compute/virtual_machines.rb +45 -27
  28. metadata +20 -133
  29. data/.rspec +0 -3
  30. data/.yardoc/checksums +0 -106
  31. data/.yardoc/object_types +0 -0
  32. data/.yardoc/objects/root.dat +0 -0
  33. data/.yardoc/proxy_types +0 -0
  34. data/Rakefile +0 -5
  35. data/azure_mgmt_compute.gemspec +0 -32
  36. data/doc/Azure.html +0 -129
  37. data/doc/Azure/ARM.html +0 -117
  38. data/doc/Azure/ARM/Compute.html +0 -143
  39. data/doc/Azure/ARM/Compute/AvailabilitySets.html +0 -2935
  40. data/doc/Azure/ARM/Compute/ComputeManagementClient.html +0 -1759
  41. data/doc/Azure/ARM/Compute/Models.html +0 -126
  42. data/doc/Azure/ARM/Compute/Models/AdditionalUnattendContent.html +0 -674
  43. data/doc/Azure/ARM/Compute/Models/ApiEntityReference.html +0 -353
  44. data/doc/Azure/ARM/Compute/Models/ApiError.html +0 -779
  45. data/doc/Azure/ARM/Compute/Models/ApiErrorBase.html +0 -557
  46. data/doc/Azure/ARM/Compute/Models/AvailabilitySet.html +0 -784
  47. data/doc/Azure/ARM/Compute/Models/AvailabilitySetListResult.html +0 -369
  48. data/doc/Azure/ARM/Compute/Models/BootDiagnostics.html +0 -455
  49. data/doc/Azure/ARM/Compute/Models/BootDiagnosticsInstanceView.html +0 -455
  50. data/doc/Azure/ARM/Compute/Models/CachingTypes.html +0 -138
  51. data/doc/Azure/ARM/Compute/Models/ComponentNames.html +0 -128
  52. data/doc/Azure/ARM/Compute/Models/ComputeLongRunningOperationProperties.html +0 -353
  53. data/doc/Azure/ARM/Compute/Models/DataDisk.html +0 -977
  54. data/doc/Azure/ARM/Compute/Models/DataDiskImage.html +0 -357
  55. data/doc/Azure/ARM/Compute/Models/DiagnosticsProfile.html +0 -355
  56. data/doc/Azure/ARM/Compute/Models/DiskCreateOptionTypes.html +0 -138
  57. data/doc/Azure/ARM/Compute/Models/DiskEncryptionSettings.html +0 -561
  58. data/doc/Azure/ARM/Compute/Models/DiskInstanceView.html +0 -471
  59. data/doc/Azure/ARM/Compute/Models/HardwareProfile.html +0 -401
  60. data/doc/Azure/ARM/Compute/Models/ImageReference.html +0 -660
  61. data/doc/Azure/ARM/Compute/Models/InnerError.html +0 -455
  62. data/doc/Azure/ARM/Compute/Models/InstanceViewStatus.html +0 -763
  63. data/doc/Azure/ARM/Compute/Models/InstanceViewTypes.html +0 -128
  64. data/doc/Azure/ARM/Compute/Models/KeyVaultKeyReference.html +0 -457
  65. data/doc/Azure/ARM/Compute/Models/KeyVaultSecretReference.html +0 -457
  66. data/doc/Azure/ARM/Compute/Models/LinuxConfiguration.html +0 -457
  67. data/doc/Azure/ARM/Compute/Models/ListUsagesResult.html +0 -745
  68. data/doc/Azure/ARM/Compute/Models/NetworkInterfaceReference.html +0 -370
  69. data/doc/Azure/ARM/Compute/Models/NetworkProfile.html +0 -369
  70. data/doc/Azure/ARM/Compute/Models/OSDisk.html +0 -1083
  71. data/doc/Azure/ARM/Compute/Models/OSDiskImage.html +0 -355
  72. data/doc/Azure/ARM/Compute/Models/OSProfile.html +0 -985
  73. data/doc/Azure/ARM/Compute/Models/OperatingSystemTypes.html +0 -133
  74. data/doc/Azure/ARM/Compute/Models/PassNames.html +0 -128
  75. data/doc/Azure/ARM/Compute/Models/Plan.html +0 -659
  76. data/doc/Azure/ARM/Compute/Models/ProtocolTypes.html +0 -133
  77. data/doc/Azure/ARM/Compute/Models/PurchasePlan.html +0 -558
  78. data/doc/Azure/ARM/Compute/Models/SettingNames.html +0 -133
  79. data/doc/Azure/ARM/Compute/Models/Sku.html +0 -557
  80. data/doc/Azure/ARM/Compute/Models/SshConfiguration.html +0 -369
  81. data/doc/Azure/ARM/Compute/Models/SshPublicKey.html +0 -457
  82. data/doc/Azure/ARM/Compute/Models/StatusLevelTypes.html +0 -138
  83. data/doc/Azure/ARM/Compute/Models/StorageProfile.html +0 -577
  84. data/doc/Azure/ARM/Compute/Models/UpgradeMode.html +0 -133
  85. data/doc/Azure/ARM/Compute/Models/UpgradePolicy.html +0 -355
  86. data/doc/Azure/ARM/Compute/Models/Usage.html +0 -665
  87. data/doc/Azure/ARM/Compute/Models/UsageName.html +0 -455
  88. data/doc/Azure/ARM/Compute/Models/VaultCertificate.html +0 -456
  89. data/doc/Azure/ARM/Compute/Models/VaultSecretGroup.html +0 -473
  90. data/doc/Azure/ARM/Compute/Models/VirtualHardDisk.html +0 -353
  91. data/doc/Azure/ARM/Compute/Models/VirtualMachine.html +0 -1608
  92. data/doc/Azure/ARM/Compute/Models/VirtualMachineAgentInstanceView.html +0 -589
  93. data/doc/Azure/ARM/Compute/Models/VirtualMachineCaptureParameters.html +0 -557
  94. data/doc/Azure/ARM/Compute/Models/VirtualMachineCaptureResult.html +0 -370
  95. data/doc/Azure/ARM/Compute/Models/VirtualMachineExtension.html +0 -1266
  96. data/doc/Azure/ARM/Compute/Models/VirtualMachineExtensionHandlerInstanceView.html +0 -559
  97. data/doc/Azure/ARM/Compute/Models/VirtualMachineExtensionImage.html +0 -858
  98. data/doc/Azure/ARM/Compute/Models/VirtualMachineExtensionInstanceView.html +0 -793
  99. data/doc/Azure/ARM/Compute/Models/VirtualMachineImage.html +0 -637
  100. data/doc/Azure/ARM/Compute/Models/VirtualMachineImageResource.html +0 -592
  101. data/doc/Azure/ARM/Compute/Models/VirtualMachineInstanceView.html +0 -1119
  102. data/doc/Azure/ARM/Compute/Models/VirtualMachineListResult.html +0 -744
  103. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSet.html +0 -862
  104. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetExtension.html +0 -1086
  105. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetExtensionProfile.html +0 -369
  106. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetIPConfiguration.html +0 -829
  107. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetInstanceView.html +0 -595
  108. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetInstanceViewStatusesSummary.html +0 -373
  109. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetListResult.html +0 -744
  110. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetListSkusResult.html +0 -747
  111. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetListWithLinkResult.html +0 -747
  112. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetNetworkConfiguration.html +0 -591
  113. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetNetworkProfile.html +0 -369
  114. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetOSDisk.html +0 -889
  115. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetOSProfile.html +0 -985
  116. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetSku.html +0 -567
  117. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetSkuCapacity.html +0 -669
  118. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetSkuScaleType.html +0 -133
  119. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetStorageProfile.html +0 -459
  120. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetVM.html +0 -1818
  121. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetVMExtensionsSummary.html +0 -475
  122. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetVMInstanceIDs.html +0 -367
  123. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetVMInstanceRequiredIDs.html +0 -367
  124. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetVMInstanceView.html +0 -1119
  125. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetVMListResult.html +0 -744
  126. data/doc/Azure/ARM/Compute/Models/VirtualMachineScaleSetVMProfile.html +0 -667
  127. data/doc/Azure/ARM/Compute/Models/VirtualMachineSize.html +0 -863
  128. data/doc/Azure/ARM/Compute/Models/VirtualMachineSizeListResult.html +0 -369
  129. data/doc/Azure/ARM/Compute/Models/VirtualMachineSizeTypes.html +0 -438
  130. data/doc/Azure/ARM/Compute/Models/VirtualMachineStatusCodeCount.html +0 -460
  131. data/doc/Azure/ARM/Compute/Models/WinRMConfiguration.html +0 -369
  132. data/doc/Azure/ARM/Compute/Models/WinRMListener.html +0 -458
  133. data/doc/Azure/ARM/Compute/Models/WindowsConfiguration.html +0 -781
  134. data/doc/Azure/ARM/Compute/UsageOperations.html +0 -1425
  135. data/doc/Azure/ARM/Compute/VirtualMachineExtensionImages.html +0 -2116
  136. data/doc/Azure/ARM/Compute/VirtualMachineExtensions.html +0 -2862
  137. data/doc/Azure/ARM/Compute/VirtualMachineImages.html +0 -3218
  138. data/doc/Azure/ARM/Compute/VirtualMachineScaleSetVMs.html +0 -7957
  139. data/doc/Azure/ARM/Compute/VirtualMachineScaleSets.html +0 -12417
  140. data/doc/Azure/ARM/Compute/VirtualMachineSizes.html +0 -823
  141. data/doc/Azure/ARM/Compute/VirtualMachines.html +0 -10514
  142. data/doc/_index.html +0 -970
  143. data/doc/class_list.html +0 -51
  144. data/doc/css/common.css +0 -1
  145. data/doc/css/full_list.css +0 -58
  146. data/doc/css/style.css +0 -474
  147. data/doc/file.README.html +0 -199
  148. data/doc/file_list.html +0 -56
  149. data/doc/frames.html +0 -17
  150. data/doc/index.html +0 -199
  151. data/doc/js/app.js +0 -243
  152. data/doc/js/full_list.js +0 -216
  153. data/doc/js/jquery.js +0 -4
  154. data/doc/method_list.html +0 -5147
  155. data/doc/top-level-namespace.html +0 -112
@@ -1,1425 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: Azure::ARM::Compute::UsageOperations
8
-
9
- &mdash; Documentation by YARD 0.9.2
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../../../css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../../../css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- pathId = "Azure::ARM::Compute::UsageOperations";
19
- relpath = '../../../';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="../../../class_list.html"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="../../../_index.html">Index (U)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../../../Azure.html" title="Azure (module)">Azure</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../ARM.html" title="Azure::ARM (module)">ARM</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Compute.html" title="Azure::ARM::Compute (module)">Compute</a></span></span>
41
- &raquo;
42
- <span class="title">UsageOperations</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="../../../class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <iframe id="search_frame" src="../../../class_list.html"></iframe>
63
-
64
- <div id="content"><h1>Class: Azure::ARM::Compute::UsageOperations
65
-
66
-
67
-
68
- </h1>
69
- <div class="box_info">
70
-
71
- <dl>
72
- <dt>Inherits:</dt>
73
- <dd>
74
- <span class="inheritName">Object</span>
75
-
76
- <ul class="fullTree">
77
- <li>Object</li>
78
-
79
- <li class="next">Azure::ARM::Compute::UsageOperations</li>
80
-
81
- </ul>
82
- <a href="#" class="inheritanceTree">show all</a>
83
-
84
- </dd>
85
- </dl>
86
-
87
-
88
-
89
-
90
-
91
-
92
- <dl>
93
- <dt>Includes:</dt>
94
- <dd><span class='object_link'><a href="Models.html" title="Azure::ARM::Compute::Models (module)">Models</a></span>, MsRestAzure</dd>
95
- </dl>
96
-
97
-
98
-
99
-
100
-
101
-
102
- <dl>
103
- <dt>Defined in:</dt>
104
- <dd>lib/generated/azure_mgmt_compute/usage_operations.rb</dd>
105
- </dl>
106
-
107
- </div>
108
-
109
- <h2>Overview</h2><div class="docstring">
110
- <div class="discussion">
111
-
112
- <p>The Compute Management Client.</p>
113
-
114
-
115
- </div>
116
- </div>
117
- <div class="tags">
118
-
119
-
120
- </div>
121
-
122
-
123
-
124
- <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
125
- <ul class="summary">
126
-
127
- <li class="public ">
128
- <span class="summary_signature">
129
-
130
- <a href="#client-instance_method" title="#client (instance method)">#<strong>client</strong> &#x21d2; Object </a>
131
-
132
-
133
-
134
- </span>
135
-
136
-
137
-
138
-
139
- <span class="note title readonly">readonly</span>
140
-
141
-
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
- <span class="summary_desc"><div class='inline'>
150
- <p>Reference to the ComputeManagementClient.</p>
151
- </div></span>
152
-
153
- </li>
154
-
155
-
156
- </ul>
157
-
158
-
159
-
160
-
161
-
162
- <h2>
163
- Instance Method Summary
164
- <small><a href="#" class="summary_toggle">collapse</a></small>
165
- </h2>
166
-
167
- <ul class="summary">
168
-
169
- <li class="public ">
170
- <span class="summary_signature">
171
-
172
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(client) &#x21d2; UsageOperations </a>
173
-
174
-
175
-
176
- </span>
177
-
178
-
179
- <span class="note title constructor">constructor</span>
180
-
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
- <span class="summary_desc"><div class='inline'>
189
- <p>Creates and initializes a new instance of the UsageOperations class.</p>
190
- </div></span>
191
-
192
- </li>
193
-
194
-
195
- <li class="public ">
196
- <span class="summary_signature">
197
-
198
- <a href="#list-instance_method" title="#list (instance method)">#<strong>list</strong>(location, custom_headers = nil) &#x21d2; Array&lt;Usage&gt; </a>
199
-
200
-
201
-
202
- </span>
203
-
204
-
205
-
206
-
207
-
208
-
209
-
210
-
211
-
212
- <span class="summary_desc"><div class='inline'>
213
- <p>Lists compute usages for a subscription.</p>
214
- </div></span>
215
-
216
- </li>
217
-
218
-
219
- <li class="public ">
220
- <span class="summary_signature">
221
-
222
- <a href="#list_as_lazy-instance_method" title="#list_as_lazy (instance method)">#<strong>list_as_lazy</strong>(location, custom_headers = nil) &#x21d2; ListUsagesResult </a>
223
-
224
-
225
-
226
- </span>
227
-
228
-
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
- <span class="summary_desc"><div class='inline'>
237
- <p>Lists compute usages for a subscription.</p>
238
- </div></span>
239
-
240
- </li>
241
-
242
-
243
- <li class="public ">
244
- <span class="summary_signature">
245
-
246
- <a href="#list_async-instance_method" title="#list_async (instance method)">#<strong>list_async</strong>(location, custom_headers = nil) &#x21d2; Concurrent::Promise </a>
247
-
248
-
249
-
250
- </span>
251
-
252
-
253
-
254
-
255
-
256
-
257
-
258
-
259
-
260
- <span class="summary_desc"><div class='inline'>
261
- <p>Lists compute usages for a subscription.</p>
262
- </div></span>
263
-
264
- </li>
265
-
266
-
267
- <li class="public ">
268
- <span class="summary_signature">
269
-
270
- <a href="#list_next-instance_method" title="#list_next (instance method)">#<strong>list_next</strong>(next_page_link, custom_headers = nil) &#x21d2; ListUsagesResult </a>
271
-
272
-
273
-
274
- </span>
275
-
276
-
277
-
278
-
279
-
280
-
281
-
282
-
283
-
284
- <span class="summary_desc"><div class='inline'>
285
- <p>Lists compute usages for a subscription.</p>
286
- </div></span>
287
-
288
- </li>
289
-
290
-
291
- <li class="public ">
292
- <span class="summary_signature">
293
-
294
- <a href="#list_next_async-instance_method" title="#list_next_async (instance method)">#<strong>list_next_async</strong>(next_page_link, custom_headers = nil) &#x21d2; Concurrent::Promise </a>
295
-
296
-
297
-
298
- </span>
299
-
300
-
301
-
302
-
303
-
304
-
305
-
306
-
307
-
308
- <span class="summary_desc"><div class='inline'>
309
- <p>Lists compute usages for a subscription.</p>
310
- </div></span>
311
-
312
- </li>
313
-
314
-
315
- <li class="public ">
316
- <span class="summary_signature">
317
-
318
- <a href="#list_next_with_http_info-instance_method" title="#list_next_with_http_info (instance method)">#<strong>list_next_with_http_info</strong>(next_page_link, custom_headers = nil) &#x21d2; MsRestAzure::AzureOperationResponse </a>
319
-
320
-
321
-
322
- </span>
323
-
324
-
325
-
326
-
327
-
328
-
329
-
330
-
331
-
332
- <span class="summary_desc"><div class='inline'>
333
- <p>Lists compute usages for a subscription.</p>
334
- </div></span>
335
-
336
- </li>
337
-
338
-
339
- <li class="public ">
340
- <span class="summary_signature">
341
-
342
- <a href="#list_with_http_info-instance_method" title="#list_with_http_info (instance method)">#<strong>list_with_http_info</strong>(location, custom_headers = nil) &#x21d2; MsRestAzure::AzureOperationResponse </a>
343
-
344
-
345
-
346
- </span>
347
-
348
-
349
-
350
-
351
-
352
-
353
-
354
-
355
-
356
- <span class="summary_desc"><div class='inline'>
357
- <p>Lists compute usages for a subscription.</p>
358
- </div></span>
359
-
360
- </li>
361
-
362
-
363
- </ul>
364
-
365
-
366
-
367
-
368
-
369
-
370
-
371
-
372
-
373
- <div id="constructor_details" class="method_details_list">
374
- <h2>Constructor Details</h2>
375
-
376
- <div class="method_details first">
377
- <h3 class="signature first" id="initialize-instance_method">
378
-
379
- #<strong>initialize</strong>(client) &#x21d2; <tt><span class='object_link'><a href="" title="Azure::ARM::Compute::UsageOperations (class)">UsageOperations</a></span></tt>
380
-
381
-
382
-
383
-
384
-
385
- </h3><div class="docstring">
386
- <div class="discussion">
387
-
388
- <p>Creates and initializes a new instance of the UsageOperations class.</p>
389
-
390
-
391
- </div>
392
- </div>
393
- <div class="tags">
394
- <p class="tag_title">Parameters:</p>
395
- <ul class="param">
396
-
397
- <li>
398
-
399
- <span class='name'>client</span>
400
-
401
-
402
- <span class='type'></span>
403
-
404
-
405
-
406
- &mdash;
407
- <div class='inline'>
408
- <p>service class for accessing basic functionality.</p>
409
- </div>
410
-
411
- </li>
412
-
413
- </ul>
414
-
415
-
416
- </div><table class="source_code">
417
- <tr>
418
- <td>
419
- <pre class="lines">
420
-
421
-
422
- 18
423
- 19
424
- 20</pre>
425
- </td>
426
- <td>
427
- <pre class="code"><span class="info file"># File 'lib/generated/azure_mgmt_compute/usage_operations.rb', line 18</span>
428
-
429
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_client'>client</span><span class='rparen'>)</span>
430
- <span class='ivar'>@client</span> <span class='op'>=</span> <span class='id identifier rubyid_client'>client</span>
431
- <span class='kw'>end</span></pre>
432
- </td>
433
- </tr>
434
- </table>
435
- </div>
436
-
437
- </div>
438
-
439
- <div id="instance_attr_details" class="attr_details">
440
- <h2>Instance Attribute Details</h2>
441
-
442
-
443
- <span id=""></span>
444
- <div class="method_details first">
445
- <h3 class="signature first" id="client-instance_method">
446
-
447
- #<strong>client</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
448
-
449
-
450
-
451
-
452
-
453
- </h3><div class="docstring">
454
- <div class="discussion">
455
-
456
- <p>Returns reference to the ComputeManagementClient</p>
457
-
458
-
459
- </div>
460
- </div>
461
- <div class="tags">
462
-
463
- <p class="tag_title">Returns:</p>
464
- <ul class="return">
465
-
466
- <li>
467
-
468
-
469
- <span class='type'></span>
470
-
471
-
472
-
473
-
474
- <div class='inline'>
475
- <p>reference to the ComputeManagementClient</p>
476
- </div>
477
-
478
- </li>
479
-
480
- </ul>
481
-
482
- </div><table class="source_code">
483
- <tr>
484
- <td>
485
- <pre class="lines">
486
-
487
-
488
- 23
489
- 24
490
- 25</pre>
491
- </td>
492
- <td>
493
- <pre class="code"><span class="info file"># File 'lib/generated/azure_mgmt_compute/usage_operations.rb', line 23</span>
494
-
495
- <span class='kw'>def</span> <span class='id identifier rubyid_client'>client</span>
496
- <span class='ivar'>@client</span>
497
- <span class='kw'>end</span></pre>
498
- </td>
499
- </tr>
500
- </table>
501
- </div>
502
-
503
- </div>
504
-
505
-
506
- <div id="instance_method_details" class="method_details_list">
507
- <h2>Instance Method Details</h2>
508
-
509
-
510
- <div class="method_details first">
511
- <h3 class="signature first" id="list-instance_method">
512
-
513
- #<strong>list</strong>(location, custom_headers = nil) &#x21d2; <tt>Array&lt;<span class='object_link'><a href="Models/Usage.html" title="Azure::ARM::Compute::Models::Usage (class)">Usage</a></span>&gt;</tt>
514
-
515
-
516
-
517
-
518
-
519
- </h3><div class="docstring">
520
- <div class="discussion">
521
-
522
- <p>Lists compute usages for a subscription.</p>
523
-
524
- <p>will be added to the HTTP request.</p>
525
-
526
-
527
- </div>
528
- </div>
529
- <div class="tags">
530
- <p class="tag_title">Parameters:</p>
531
- <ul class="param">
532
-
533
- <li>
534
-
535
- <span class='name'>location</span>
536
-
537
-
538
- <span class='type'>(<tt>String</tt>)</span>
539
-
540
-
541
-
542
- &mdash;
543
- <div class='inline'>
544
- <p>The location upon which resource usage is queried.</p>
545
- </div>
546
-
547
- </li>
548
-
549
- <li>
550
-
551
- <span class='name'>custom_headers</span>
552
-
553
-
554
- <span class='type'>(<tt>Hash{String =&gt; String}</tt>)</span>
555
-
556
-
557
- <em class="default">(defaults to: <tt>nil</tt>)</em>
558
-
559
-
560
- &mdash;
561
- <div class='inline'>
562
- <p>A hash of custom headers that</p>
563
- </div>
564
-
565
- </li>
566
-
567
- </ul>
568
-
569
- <p class="tag_title">Returns:</p>
570
- <ul class="return">
571
-
572
- <li>
573
-
574
-
575
- <span class='type'>(<tt>Array&lt;<span class='object_link'><a href="Models/Usage.html" title="Azure::ARM::Compute::Models::Usage (class)">Usage</a></span>&gt;</tt>)</span>
576
-
577
-
578
-
579
- &mdash;
580
- <div class='inline'>
581
- <p>operation results.</p>
582
- </div>
583
-
584
- </li>
585
-
586
- </ul>
587
-
588
- </div><table class="source_code">
589
- <tr>
590
- <td>
591
- <pre class="lines">
592
-
593
-
594
- 55
595
- 56
596
- 57
597
- 58</pre>
598
- </td>
599
- <td>
600
- <pre class="code"><span class="info file"># File 'lib/generated/azure_mgmt_compute/usage_operations.rb', line 55</span>
601
-
602
- <span class='kw'>def</span> <span class='id identifier rubyid_list'>list</span><span class='lparen'>(</span><span class='id identifier rubyid_location'>location</span><span class='comma'>,</span> <span class='id identifier rubyid_custom_headers'>custom_headers</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
603
- <span class='id identifier rubyid_first_page'>first_page</span> <span class='op'>=</span> <span class='id identifier rubyid_list_as_lazy'>list_as_lazy</span><span class='lparen'>(</span><span class='id identifier rubyid_location'>location</span><span class='comma'>,</span> <span class='id identifier rubyid_custom_headers'>custom_headers</span><span class='rparen'>)</span>
604
- <span class='id identifier rubyid_first_page'>first_page</span><span class='period'>.</span><span class='id identifier rubyid_get_all_items'>get_all_items</span>
605
- <span class='kw'>end</span></pre>
606
- </td>
607
- </tr>
608
- </table>
609
- </div>
610
-
611
- <div class="method_details ">
612
- <h3 class="signature " id="list_as_lazy-instance_method">
613
-
614
- #<strong>list_as_lazy</strong>(location, custom_headers = nil) &#x21d2; <tt><span class='object_link'><a href="Models/ListUsagesResult.html" title="Azure::ARM::Compute::Models::ListUsagesResult (class)">ListUsagesResult</a></span></tt>
615
-
616
-
617
-
618
-
619
-
620
- </h3><div class="docstring">
621
- <div class="discussion">
622
-
623
- <p>Lists compute usages for a subscription.</p>
624
-
625
- <p>will be added to the HTTP request.</p>
626
-
627
- <p>response.</p>
628
-
629
-
630
- </div>
631
- </div>
632
- <div class="tags">
633
- <p class="tag_title">Parameters:</p>
634
- <ul class="param">
635
-
636
- <li>
637
-
638
- <span class='name'>location</span>
639
-
640
-
641
- <span class='type'>(<tt>String</tt>)</span>
642
-
643
-
644
-
645
- &mdash;
646
- <div class='inline'>
647
- <p>The location upon which resource usage is queried.</p>
648
- </div>
649
-
650
- </li>
651
-
652
- <li>
653
-
654
- <span class='name'>custom_headers</span>
655
-
656
-
657
- <span class='type'>(<tt>Hash{String =&gt; String}</tt>)</span>
658
-
659
-
660
- <em class="default">(defaults to: <tt>nil</tt>)</em>
661
-
662
-
663
- &mdash;
664
- <div class='inline'>
665
- <p>A hash of custom headers that</p>
666
- </div>
667
-
668
- </li>
669
-
670
- </ul>
671
-
672
- <p class="tag_title">Returns:</p>
673
- <ul class="return">
674
-
675
- <li>
676
-
677
-
678
- <span class='type'>(<tt><span class='object_link'><a href="Models/ListUsagesResult.html" title="Azure::ARM::Compute::Models::ListUsagesResult (class)">ListUsagesResult</a></span></tt>)</span>
679
-
680
-
681
-
682
- &mdash;
683
- <div class='inline'>
684
- <p>which provide lazy access to pages of the</p>
685
- </div>
686
-
687
- </li>
688
-
689
- </ul>
690
-
691
- </div><table class="source_code">
692
- <tr>
693
- <td>
694
- <pre class="lines">
695
-
696
-
697
- 35
698
- 36
699
- 37
700
- 38
701
- 39
702
- 40
703
- 41
704
- 42
705
- 43
706
- 44</pre>
707
- </td>
708
- <td>
709
- <pre class="code"><span class="info file"># File 'lib/generated/azure_mgmt_compute/usage_operations.rb', line 35</span>
710
-
711
- <span class='kw'>def</span> <span class='id identifier rubyid_list_as_lazy'>list_as_lazy</span><span class='lparen'>(</span><span class='id identifier rubyid_location'>location</span><span class='comma'>,</span> <span class='id identifier rubyid_custom_headers'>custom_headers</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
712
- <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='id identifier rubyid_list_async'>list_async</span><span class='lparen'>(</span><span class='id identifier rubyid_location'>location</span><span class='comma'>,</span> <span class='id identifier rubyid_custom_headers'>custom_headers</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_value!'>value!</span>
713
- <span class='kw'>unless</span> <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
714
- <span class='id identifier rubyid_page'>page</span> <span class='op'>=</span> <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span>
715
- <span class='id identifier rubyid_page'>page</span><span class='period'>.</span><span class='id identifier rubyid_next_method'>next_method</span> <span class='op'>=</span> <span class='const'>Proc</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_next_link'>next_link</span><span class='op'>|</span>
716
- <span class='id identifier rubyid_list_next_async'>list_next_async</span><span class='lparen'>(</span><span class='id identifier rubyid_next_link'>next_link</span><span class='comma'>,</span> <span class='id identifier rubyid_custom_headers'>custom_headers</span><span class='rparen'>)</span>
717
- <span class='kw'>end</span>
718
- <span class='id identifier rubyid_page'>page</span>
719
- <span class='kw'>end</span>
720
- <span class='kw'>end</span></pre>
721
- </td>
722
- </tr>
723
- </table>
724
- </div>
725
-
726
- <div class="method_details ">
727
- <h3 class="signature " id="list_async-instance_method">
728
-
729
- #<strong>list_async</strong>(location, custom_headers = nil) &#x21d2; <tt>Concurrent::Promise</tt>
730
-
731
-
732
-
733
-
734
-
735
- </h3><div class="docstring">
736
- <div class="discussion">
737
-
738
- <p>Lists compute usages for a subscription.</p>
739
-
740
- <p>to the HTTP request.</p>
741
-
742
-
743
- </div>
744
- </div>
745
- <div class="tags">
746
- <p class="tag_title">Parameters:</p>
747
- <ul class="param">
748
-
749
- <li>
750
-
751
- <span class='name'>location</span>
752
-
753
-
754
- <span class='type'>(<tt>String</tt>)</span>
755
-
756
-
757
-
758
- &mdash;
759
- <div class='inline'>
760
- <p>The location upon which resource usage is queried.</p>
761
- </div>
762
-
763
- </li>
764
-
765
- <li>
766
-
767
- <span class='name'>A</span>
768
-
769
-
770
- <span class='type'>(<tt>Hash{String =&gt; String}</tt>)</span>
771
-
772
-
773
-
774
- &mdash;
775
- <div class='inline'>
776
- <p>hash of custom headers that will be added</p>
777
- </div>
778
-
779
- </li>
780
-
781
- </ul>
782
-
783
- <p class="tag_title">Returns:</p>
784
- <ul class="return">
785
-
786
- <li>
787
-
788
-
789
- <span class='type'>(<tt>Concurrent::Promise</tt>)</span>
790
-
791
-
792
-
793
- &mdash;
794
- <div class='inline'>
795
- <p>Promise object which holds the HTTP response.</p>
796
- </div>
797
-
798
- </li>
799
-
800
- </ul>
801
-
802
- </div><table class="source_code">
803
- <tr>
804
- <td>
805
- <pre class="lines">
806
-
807
-
808
- 82
809
- 83
810
- 84
811
- 85
812
- 86
813
- 87
814
- 88
815
- 89
816
- 90
817
- 91
818
- 92
819
- 93
820
- 94
821
- 95
822
- 96
823
- 97
824
- 98
825
- 99
826
- 100
827
- 101
828
- 102
829
- 103
830
- 104
831
- 105
832
- 106
833
- 107
834
- 108
835
- 109
836
- 110
837
- 111
838
- 112
839
- 113
840
- 114
841
- 115
842
- 116
843
- 117
844
- 118
845
- 119
846
- 120
847
- 121
848
- 122
849
- 123
850
- 124
851
- 125
852
- 126
853
- 127
854
- 128
855
- 129
856
- 130
857
- 131
858
- 132
859
- 133
860
- 134</pre>
861
- </td>
862
- <td>
863
- <pre class="code"><span class="info file"># File 'lib/generated/azure_mgmt_compute/usage_operations.rb', line 82</span>
864
-
865
- <span class='kw'>def</span> <span class='id identifier rubyid_list_async'>list_async</span><span class='lparen'>(</span><span class='id identifier rubyid_location'>location</span><span class='comma'>,</span> <span class='id identifier rubyid_custom_headers'>custom_headers</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
866
- <span class='id identifier rubyid_fail'>fail</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>location is nil</span><span class='tstring_end'>&#39;</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_location'>location</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
867
- <span class='id identifier rubyid_fail'>fail</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>@client.api_version is nil</span><span class='tstring_end'>&#39;</span></span> <span class='kw'>if</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_api_version'>api_version</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
868
- <span class='id identifier rubyid_fail'>fail</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>@client.subscription_id is nil</span><span class='tstring_end'>&#39;</span></span> <span class='kw'>if</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_subscription_id'>subscription_id</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
869
-
870
-
871
- <span class='id identifier rubyid_request_headers'>request_headers</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
872
-
873
- <span class='comment'># Set Headers
874
- </span> <span class='id identifier rubyid_request_headers'>request_headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>x-ms-client-request-id</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'>SecureRandom</span><span class='period'>.</span><span class='id identifier rubyid_uuid'>uuid</span>
875
- <span class='id identifier rubyid_request_headers'>request_headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>accept-language</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_accept_language'>accept_language</span> <span class='kw'>unless</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_accept_language'>accept_language</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
876
- <span class='id identifier rubyid_path_template'>path_template</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/usages</span><span class='tstring_end'>&#39;</span></span>
877
- <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span>
878
- <span class='label'>middlewares:</span> <span class='lbracket'>[</span><span class='lbracket'>[</span><span class='const'>MsRest</span><span class='op'>::</span><span class='const'>RetryPolicyMiddleware</span><span class='comma'>,</span> <span class='label'>times:</span> <span class='int'>3</span><span class='comma'>,</span> <span class='label'>retry:</span> <span class='float'>0.02</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='symbol'>:cookie_jar</span><span class='rbracket'>]</span><span class='rbracket'>]</span><span class='comma'>,</span>
879
- <span class='label'>path_params:</span> <span class='lbrace'>{</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>location</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_location'>location</span><span class='comma'>,</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>subscriptionId</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_subscription_id'>subscription_id</span><span class='rbrace'>}</span><span class='comma'>,</span>
880
- <span class='label'>query_params:</span> <span class='lbrace'>{</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>api-version</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_api_version'>api_version</span><span class='rbrace'>}</span><span class='comma'>,</span>
881
- <span class='label'>headers:</span> <span class='id identifier rubyid_request_headers'>request_headers</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_custom_headers'>custom_headers</span> <span class='op'>||</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
882
- <span class='rbrace'>}</span>
883
-
884
- <span class='id identifier rubyid_request_url'>request_url</span> <span class='op'>=</span> <span class='ivar'>@base_url</span> <span class='op'>||</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_base_url'>base_url</span>
885
-
886
- <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>MsRest</span><span class='op'>::</span><span class='const'>HttpOperationRequest</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_request_url'>request_url</span><span class='comma'>,</span> <span class='id identifier rubyid_path_template'>path_template</span><span class='comma'>,</span> <span class='symbol'>:get</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
887
- <span class='id identifier rubyid_promise'>promise</span> <span class='op'>=</span> <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_run_promise'>run_promise</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_req'>req</span><span class='op'>|</span>
888
- <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_credentials'>credentials</span><span class='period'>.</span><span class='id identifier rubyid_sign_request'>sign_request</span><span class='lparen'>(</span><span class='id identifier rubyid_req'>req</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_credentials'>credentials</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
889
- <span class='kw'>end</span>
890
-
891
- <span class='id identifier rubyid_promise'>promise</span> <span class='op'>=</span> <span class='id identifier rubyid_promise'>promise</span><span class='period'>.</span><span class='id identifier rubyid_then'>then</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_http_response'>http_response</span><span class='op'>|</span>
892
- <span class='id identifier rubyid_status_code'>status_code</span> <span class='op'>=</span> <span class='id identifier rubyid_http_response'>http_response</span><span class='period'>.</span><span class='id identifier rubyid_status'>status</span>
893
- <span class='id identifier rubyid_response_content'>response_content</span> <span class='op'>=</span> <span class='id identifier rubyid_http_response'>http_response</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span>
894
- <span class='kw'>unless</span> <span class='id identifier rubyid_status_code'>status_code</span> <span class='op'>==</span> <span class='int'>200</span>
895
- <span class='id identifier rubyid_error_model'>error_model</span> <span class='op'>=</span> <span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span><span class='lparen'>(</span><span class='id identifier rubyid_response_content'>response_content</span><span class='rparen'>)</span>
896
- <span class='id identifier rubyid_fail'>fail</span> <span class='const'>MsRestAzure</span><span class='op'>::</span><span class='const'>AzureOperationError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='comma'>,</span> <span class='id identifier rubyid_http_response'>http_response</span><span class='comma'>,</span> <span class='id identifier rubyid_error_model'>error_model</span><span class='rparen'>)</span>
897
- <span class='kw'>end</span>
898
-
899
- <span class='comment'># Create Result
900
- </span> <span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='const'>MsRestAzure</span><span class='op'>::</span><span class='const'>AzureOperationResponse</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='comma'>,</span> <span class='id identifier rubyid_http_response'>http_response</span><span class='rparen'>)</span>
901
- <span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_request_id'>request_id</span> <span class='op'>=</span> <span class='id identifier rubyid_http_response'>http_response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>x-ms-request-id</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='id identifier rubyid_http_response'>http_response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>x-ms-request-id</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
902
- <span class='comment'># Deserialize Response
903
- </span> <span class='kw'>if</span> <span class='id identifier rubyid_status_code'>status_code</span> <span class='op'>==</span> <span class='int'>200</span>
904
- <span class='kw'>begin</span>
905
- <span class='id identifier rubyid_parsed_response'>parsed_response</span> <span class='op'>=</span> <span class='id identifier rubyid_response_content'>response_content</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span> <span class='op'>?</span> <span class='kw'>nil</span> <span class='op'>:</span> <span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span><span class='lparen'>(</span><span class='id identifier rubyid_response_content'>response_content</span><span class='rparen'>)</span>
906
- <span class='id identifier rubyid_result_mapper'>result_mapper</span> <span class='op'>=</span> <span class='const'>ListUsagesResult</span><span class='period'>.</span><span class='id identifier rubyid_mapper'>mapper</span><span class='lparen'>(</span><span class='rparen'>)</span>
907
- <span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_deserialize'>deserialize</span><span class='lparen'>(</span><span class='id identifier rubyid_result_mapper'>result_mapper</span><span class='comma'>,</span> <span class='id identifier rubyid_parsed_response'>parsed_response</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>result.body</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
908
- <span class='kw'>rescue</span> <span class='const'>Exception</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_e'>e</span>
909
- <span class='id identifier rubyid_fail'>fail</span> <span class='const'>MsRest</span><span class='op'>::</span><span class='const'>DeserializationError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Error occurred in deserializing the response</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_backtrace'>backtrace</span><span class='comma'>,</span> <span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span>
910
- <span class='kw'>end</span>
911
- <span class='kw'>end</span>
912
-
913
- <span class='id identifier rubyid_result'>result</span>
914
- <span class='kw'>end</span>
915
-
916
- <span class='id identifier rubyid_promise'>promise</span><span class='period'>.</span><span class='id identifier rubyid_execute'>execute</span>
917
- <span class='kw'>end</span></pre>
918
- </td>
919
- </tr>
920
- </table>
921
- </div>
922
-
923
- <div class="method_details ">
924
- <h3 class="signature " id="list_next-instance_method">
925
-
926
- #<strong>list_next</strong>(next_page_link, custom_headers = nil) &#x21d2; <tt><span class='object_link'><a href="Models/ListUsagesResult.html" title="Azure::ARM::Compute::Models::ListUsagesResult (class)">ListUsagesResult</a></span></tt>
927
-
928
-
929
-
930
-
931
-
932
- </h3><div class="docstring">
933
- <div class="discussion">
934
-
935
- <p>Lists compute usages for a subscription.</p>
936
-
937
- <p>call to List operation. will be added to the HTTP request.</p>
938
-
939
-
940
- </div>
941
- </div>
942
- <div class="tags">
943
- <p class="tag_title">Parameters:</p>
944
- <ul class="param">
945
-
946
- <li>
947
-
948
- <span class='name'>next_page_link</span>
949
-
950
-
951
- <span class='type'>(<tt>String</tt>)</span>
952
-
953
-
954
-
955
- &mdash;
956
- <div class='inline'>
957
- <p>The NextLink from the previous successful</p>
958
- </div>
959
-
960
- </li>
961
-
962
- <li>
963
-
964
- <span class='name'>custom_headers</span>
965
-
966
-
967
- <span class='type'>(<tt>Hash{String =&gt; String}</tt>)</span>
968
-
969
-
970
- <em class="default">(defaults to: <tt>nil</tt>)</em>
971
-
972
-
973
- &mdash;
974
- <div class='inline'>
975
- <p>A hash of custom headers that</p>
976
- </div>
977
-
978
- </li>
979
-
980
- </ul>
981
-
982
- <p class="tag_title">Returns:</p>
983
- <ul class="return">
984
-
985
- <li>
986
-
987
-
988
- <span class='type'>(<tt><span class='object_link'><a href="Models/ListUsagesResult.html" title="Azure::ARM::Compute::Models::ListUsagesResult (class)">ListUsagesResult</a></span></tt>)</span>
989
-
990
-
991
-
992
- &mdash;
993
- <div class='inline'>
994
- <p>operation results.</p>
995
- </div>
996
-
997
- </li>
998
-
999
- </ul>
1000
-
1001
- </div><table class="source_code">
1002
- <tr>
1003
- <td>
1004
- <pre class="lines">
1005
-
1006
-
1007
- 146
1008
- 147
1009
- 148
1010
- 149</pre>
1011
- </td>
1012
- <td>
1013
- <pre class="code"><span class="info file"># File 'lib/generated/azure_mgmt_compute/usage_operations.rb', line 146</span>
1014
-
1015
- <span class='kw'>def</span> <span class='id identifier rubyid_list_next'>list_next</span><span class='lparen'>(</span><span class='id identifier rubyid_next_page_link'>next_page_link</span><span class='comma'>,</span> <span class='id identifier rubyid_custom_headers'>custom_headers</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
1016
- <span class='id identifier rubyid_response'>response</span> <span class='op'>=</span> <span class='id identifier rubyid_list_next_async'>list_next_async</span><span class='lparen'>(</span><span class='id identifier rubyid_next_page_link'>next_page_link</span><span class='comma'>,</span> <span class='id identifier rubyid_custom_headers'>custom_headers</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_value!'>value!</span>
1017
- <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span> <span class='kw'>unless</span> <span class='id identifier rubyid_response'>response</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
1018
- <span class='kw'>end</span></pre>
1019
- </td>
1020
- </tr>
1021
- </table>
1022
- </div>
1023
-
1024
- <div class="method_details ">
1025
- <h3 class="signature " id="list_next_async-instance_method">
1026
-
1027
- #<strong>list_next_async</strong>(next_page_link, custom_headers = nil) &#x21d2; <tt>Concurrent::Promise</tt>
1028
-
1029
-
1030
-
1031
-
1032
-
1033
- </h3><div class="docstring">
1034
- <div class="discussion">
1035
-
1036
- <p>Lists compute usages for a subscription.</p>
1037
-
1038
- <p>call to List operation. to the HTTP request.</p>
1039
-
1040
-
1041
- </div>
1042
- </div>
1043
- <div class="tags">
1044
- <p class="tag_title">Parameters:</p>
1045
- <ul class="param">
1046
-
1047
- <li>
1048
-
1049
- <span class='name'>next_page_link</span>
1050
-
1051
-
1052
- <span class='type'>(<tt>String</tt>)</span>
1053
-
1054
-
1055
-
1056
- &mdash;
1057
- <div class='inline'>
1058
- <p>The NextLink from the previous successful</p>
1059
- </div>
1060
-
1061
- </li>
1062
-
1063
- <li>
1064
-
1065
- <span class='name'>A</span>
1066
-
1067
-
1068
- <span class='type'>(<tt>Hash{String =&gt; String}</tt>)</span>
1069
-
1070
-
1071
-
1072
- &mdash;
1073
- <div class='inline'>
1074
- <p>hash of custom headers that will be added</p>
1075
- </div>
1076
-
1077
- </li>
1078
-
1079
- </ul>
1080
-
1081
- <p class="tag_title">Returns:</p>
1082
- <ul class="return">
1083
-
1084
- <li>
1085
-
1086
-
1087
- <span class='type'>(<tt>Concurrent::Promise</tt>)</span>
1088
-
1089
-
1090
-
1091
- &mdash;
1092
- <div class='inline'>
1093
- <p>Promise object which holds the HTTP response.</p>
1094
- </div>
1095
-
1096
- </li>
1097
-
1098
- </ul>
1099
-
1100
- </div><table class="source_code">
1101
- <tr>
1102
- <td>
1103
- <pre class="lines">
1104
-
1105
-
1106
- 175
1107
- 176
1108
- 177
1109
- 178
1110
- 179
1111
- 180
1112
- 181
1113
- 182
1114
- 183
1115
- 184
1116
- 185
1117
- 186
1118
- 187
1119
- 188
1120
- 189
1121
- 190
1122
- 191
1123
- 192
1124
- 193
1125
- 194
1126
- 195
1127
- 196
1128
- 197
1129
- 198
1130
- 199
1131
- 200
1132
- 201
1133
- 202
1134
- 203
1135
- 204
1136
- 205
1137
- 206
1138
- 207
1139
- 208
1140
- 209
1141
- 210
1142
- 211
1143
- 212
1144
- 213
1145
- 214
1146
- 215
1147
- 216
1148
- 217
1149
- 218
1150
- 219
1151
- 220
1152
- 221
1153
- 222
1154
- 223
1155
- 224</pre>
1156
- </td>
1157
- <td>
1158
- <pre class="code"><span class="info file"># File 'lib/generated/azure_mgmt_compute/usage_operations.rb', line 175</span>
1159
-
1160
- <span class='kw'>def</span> <span class='id identifier rubyid_list_next_async'>list_next_async</span><span class='lparen'>(</span><span class='id identifier rubyid_next_page_link'>next_page_link</span><span class='comma'>,</span> <span class='id identifier rubyid_custom_headers'>custom_headers</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
1161
- <span class='id identifier rubyid_fail'>fail</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>next_page_link is nil</span><span class='tstring_end'>&#39;</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_next_page_link'>next_page_link</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
1162
-
1163
-
1164
- <span class='id identifier rubyid_request_headers'>request_headers</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
1165
-
1166
- <span class='comment'># Set Headers
1167
- </span> <span class='id identifier rubyid_request_headers'>request_headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>x-ms-client-request-id</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'>SecureRandom</span><span class='period'>.</span><span class='id identifier rubyid_uuid'>uuid</span>
1168
- <span class='id identifier rubyid_request_headers'>request_headers</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>accept-language</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_accept_language'>accept_language</span> <span class='kw'>unless</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_accept_language'>accept_language</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
1169
- <span class='id identifier rubyid_path_template'>path_template</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>{nextLink}</span><span class='tstring_end'>&#39;</span></span>
1170
- <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span>
1171
- <span class='label'>middlewares:</span> <span class='lbracket'>[</span><span class='lbracket'>[</span><span class='const'>MsRest</span><span class='op'>::</span><span class='const'>RetryPolicyMiddleware</span><span class='comma'>,</span> <span class='label'>times:</span> <span class='int'>3</span><span class='comma'>,</span> <span class='label'>retry:</span> <span class='float'>0.02</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='symbol'>:cookie_jar</span><span class='rbracket'>]</span><span class='rbracket'>]</span><span class='comma'>,</span>
1172
- <span class='label'>skip_encoding_path_params:</span> <span class='lbrace'>{</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>nextLink</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_next_page_link'>next_page_link</span><span class='rbrace'>}</span><span class='comma'>,</span>
1173
- <span class='label'>headers:</span> <span class='id identifier rubyid_request_headers'>request_headers</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_custom_headers'>custom_headers</span> <span class='op'>||</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
1174
- <span class='rbrace'>}</span>
1175
-
1176
- <span class='id identifier rubyid_request_url'>request_url</span> <span class='op'>=</span> <span class='ivar'>@base_url</span> <span class='op'>||</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_base_url'>base_url</span>
1177
-
1178
- <span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='const'>MsRest</span><span class='op'>::</span><span class='const'>HttpOperationRequest</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_request_url'>request_url</span><span class='comma'>,</span> <span class='id identifier rubyid_path_template'>path_template</span><span class='comma'>,</span> <span class='symbol'>:get</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
1179
- <span class='id identifier rubyid_promise'>promise</span> <span class='op'>=</span> <span class='id identifier rubyid_request'>request</span><span class='period'>.</span><span class='id identifier rubyid_run_promise'>run_promise</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_req'>req</span><span class='op'>|</span>
1180
- <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_credentials'>credentials</span><span class='period'>.</span><span class='id identifier rubyid_sign_request'>sign_request</span><span class='lparen'>(</span><span class='id identifier rubyid_req'>req</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_credentials'>credentials</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
1181
- <span class='kw'>end</span>
1182
-
1183
- <span class='id identifier rubyid_promise'>promise</span> <span class='op'>=</span> <span class='id identifier rubyid_promise'>promise</span><span class='period'>.</span><span class='id identifier rubyid_then'>then</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_http_response'>http_response</span><span class='op'>|</span>
1184
- <span class='id identifier rubyid_status_code'>status_code</span> <span class='op'>=</span> <span class='id identifier rubyid_http_response'>http_response</span><span class='period'>.</span><span class='id identifier rubyid_status'>status</span>
1185
- <span class='id identifier rubyid_response_content'>response_content</span> <span class='op'>=</span> <span class='id identifier rubyid_http_response'>http_response</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span>
1186
- <span class='kw'>unless</span> <span class='id identifier rubyid_status_code'>status_code</span> <span class='op'>==</span> <span class='int'>200</span>
1187
- <span class='id identifier rubyid_error_model'>error_model</span> <span class='op'>=</span> <span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span><span class='lparen'>(</span><span class='id identifier rubyid_response_content'>response_content</span><span class='rparen'>)</span>
1188
- <span class='id identifier rubyid_fail'>fail</span> <span class='const'>MsRestAzure</span><span class='op'>::</span><span class='const'>AzureOperationError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='comma'>,</span> <span class='id identifier rubyid_http_response'>http_response</span><span class='comma'>,</span> <span class='id identifier rubyid_error_model'>error_model</span><span class='rparen'>)</span>
1189
- <span class='kw'>end</span>
1190
-
1191
- <span class='comment'># Create Result
1192
- </span> <span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='const'>MsRestAzure</span><span class='op'>::</span><span class='const'>AzureOperationResponse</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_request'>request</span><span class='comma'>,</span> <span class='id identifier rubyid_http_response'>http_response</span><span class='rparen'>)</span>
1193
- <span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_request_id'>request_id</span> <span class='op'>=</span> <span class='id identifier rubyid_http_response'>http_response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>x-ms-request-id</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='id identifier rubyid_http_response'>http_response</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>x-ms-request-id</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
1194
- <span class='comment'># Deserialize Response
1195
- </span> <span class='kw'>if</span> <span class='id identifier rubyid_status_code'>status_code</span> <span class='op'>==</span> <span class='int'>200</span>
1196
- <span class='kw'>begin</span>
1197
- <span class='id identifier rubyid_parsed_response'>parsed_response</span> <span class='op'>=</span> <span class='id identifier rubyid_response_content'>response_content</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span> <span class='op'>?</span> <span class='kw'>nil</span> <span class='op'>:</span> <span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_load'>load</span><span class='lparen'>(</span><span class='id identifier rubyid_response_content'>response_content</span><span class='rparen'>)</span>
1198
- <span class='id identifier rubyid_result_mapper'>result_mapper</span> <span class='op'>=</span> <span class='const'>ListUsagesResult</span><span class='period'>.</span><span class='id identifier rubyid_mapper'>mapper</span><span class='lparen'>(</span><span class='rparen'>)</span>
1199
- <span class='id identifier rubyid_result'>result</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_deserialize'>deserialize</span><span class='lparen'>(</span><span class='id identifier rubyid_result_mapper'>result_mapper</span><span class='comma'>,</span> <span class='id identifier rubyid_parsed_response'>parsed_response</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>result.body</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
1200
- <span class='kw'>rescue</span> <span class='const'>Exception</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_e'>e</span>
1201
- <span class='id identifier rubyid_fail'>fail</span> <span class='const'>MsRest</span><span class='op'>::</span><span class='const'>DeserializationError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>Error occurred in deserializing the response</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_message'>message</span><span class='comma'>,</span> <span class='id identifier rubyid_e'>e</span><span class='period'>.</span><span class='id identifier rubyid_backtrace'>backtrace</span><span class='comma'>,</span> <span class='id identifier rubyid_result'>result</span><span class='rparen'>)</span>
1202
- <span class='kw'>end</span>
1203
- <span class='kw'>end</span>
1204
-
1205
- <span class='id identifier rubyid_result'>result</span>
1206
- <span class='kw'>end</span>
1207
-
1208
- <span class='id identifier rubyid_promise'>promise</span><span class='period'>.</span><span class='id identifier rubyid_execute'>execute</span>
1209
- <span class='kw'>end</span></pre>
1210
- </td>
1211
- </tr>
1212
- </table>
1213
- </div>
1214
-
1215
- <div class="method_details ">
1216
- <h3 class="signature " id="list_next_with_http_info-instance_method">
1217
-
1218
- #<strong>list_next_with_http_info</strong>(next_page_link, custom_headers = nil) &#x21d2; <tt>MsRestAzure::AzureOperationResponse</tt>
1219
-
1220
-
1221
-
1222
-
1223
-
1224
- </h3><div class="docstring">
1225
- <div class="discussion">
1226
-
1227
- <p>Lists compute usages for a subscription.</p>
1228
-
1229
- <p>call to List operation. will be added to the HTTP request.</p>
1230
-
1231
-
1232
- </div>
1233
- </div>
1234
- <div class="tags">
1235
- <p class="tag_title">Parameters:</p>
1236
- <ul class="param">
1237
-
1238
- <li>
1239
-
1240
- <span class='name'>next_page_link</span>
1241
-
1242
-
1243
- <span class='type'>(<tt>String</tt>)</span>
1244
-
1245
-
1246
-
1247
- &mdash;
1248
- <div class='inline'>
1249
- <p>The NextLink from the previous successful</p>
1250
- </div>
1251
-
1252
- </li>
1253
-
1254
- <li>
1255
-
1256
- <span class='name'>custom_headers</span>
1257
-
1258
-
1259
- <span class='type'>(<tt>Hash{String =&gt; String}</tt>)</span>
1260
-
1261
-
1262
- <em class="default">(defaults to: <tt>nil</tt>)</em>
1263
-
1264
-
1265
- &mdash;
1266
- <div class='inline'>
1267
- <p>A hash of custom headers that</p>
1268
- </div>
1269
-
1270
- </li>
1271
-
1272
- </ul>
1273
-
1274
- <p class="tag_title">Returns:</p>
1275
- <ul class="return">
1276
-
1277
- <li>
1278
-
1279
-
1280
- <span class='type'>(<tt>MsRestAzure::AzureOperationResponse</tt>)</span>
1281
-
1282
-
1283
-
1284
- &mdash;
1285
- <div class='inline'>
1286
- <p>HTTP response information.</p>
1287
- </div>
1288
-
1289
- </li>
1290
-
1291
- </ul>
1292
-
1293
- </div><table class="source_code">
1294
- <tr>
1295
- <td>
1296
- <pre class="lines">
1297
-
1298
-
1299
- 161
1300
- 162
1301
- 163</pre>
1302
- </td>
1303
- <td>
1304
- <pre class="code"><span class="info file"># File 'lib/generated/azure_mgmt_compute/usage_operations.rb', line 161</span>
1305
-
1306
- <span class='kw'>def</span> <span class='id identifier rubyid_list_next_with_http_info'>list_next_with_http_info</span><span class='lparen'>(</span><span class='id identifier rubyid_next_page_link'>next_page_link</span><span class='comma'>,</span> <span class='id identifier rubyid_custom_headers'>custom_headers</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
1307
- <span class='id identifier rubyid_list_next_async'>list_next_async</span><span class='lparen'>(</span><span class='id identifier rubyid_next_page_link'>next_page_link</span><span class='comma'>,</span> <span class='id identifier rubyid_custom_headers'>custom_headers</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_value!'>value!</span>
1308
- <span class='kw'>end</span></pre>
1309
- </td>
1310
- </tr>
1311
- </table>
1312
- </div>
1313
-
1314
- <div class="method_details ">
1315
- <h3 class="signature " id="list_with_http_info-instance_method">
1316
-
1317
- #<strong>list_with_http_info</strong>(location, custom_headers = nil) &#x21d2; <tt>MsRestAzure::AzureOperationResponse</tt>
1318
-
1319
-
1320
-
1321
-
1322
-
1323
- </h3><div class="docstring">
1324
- <div class="discussion">
1325
-
1326
- <p>Lists compute usages for a subscription.</p>
1327
-
1328
- <p>will be added to the HTTP request.</p>
1329
-
1330
-
1331
- </div>
1332
- </div>
1333
- <div class="tags">
1334
- <p class="tag_title">Parameters:</p>
1335
- <ul class="param">
1336
-
1337
- <li>
1338
-
1339
- <span class='name'>location</span>
1340
-
1341
-
1342
- <span class='type'>(<tt>String</tt>)</span>
1343
-
1344
-
1345
-
1346
- &mdash;
1347
- <div class='inline'>
1348
- <p>The location upon which resource usage is queried.</p>
1349
- </div>
1350
-
1351
- </li>
1352
-
1353
- <li>
1354
-
1355
- <span class='name'>custom_headers</span>
1356
-
1357
-
1358
- <span class='type'>(<tt>Hash{String =&gt; String}</tt>)</span>
1359
-
1360
-
1361
- <em class="default">(defaults to: <tt>nil</tt>)</em>
1362
-
1363
-
1364
- &mdash;
1365
- <div class='inline'>
1366
- <p>A hash of custom headers that</p>
1367
- </div>
1368
-
1369
- </li>
1370
-
1371
- </ul>
1372
-
1373
- <p class="tag_title">Returns:</p>
1374
- <ul class="return">
1375
-
1376
- <li>
1377
-
1378
-
1379
- <span class='type'>(<tt>MsRestAzure::AzureOperationResponse</tt>)</span>
1380
-
1381
-
1382
-
1383
- &mdash;
1384
- <div class='inline'>
1385
- <p>HTTP response information.</p>
1386
- </div>
1387
-
1388
- </li>
1389
-
1390
- </ul>
1391
-
1392
- </div><table class="source_code">
1393
- <tr>
1394
- <td>
1395
- <pre class="lines">
1396
-
1397
-
1398
- 69
1399
- 70
1400
- 71</pre>
1401
- </td>
1402
- <td>
1403
- <pre class="code"><span class="info file"># File 'lib/generated/azure_mgmt_compute/usage_operations.rb', line 69</span>
1404
-
1405
- <span class='kw'>def</span> <span class='id identifier rubyid_list_with_http_info'>list_with_http_info</span><span class='lparen'>(</span><span class='id identifier rubyid_location'>location</span><span class='comma'>,</span> <span class='id identifier rubyid_custom_headers'>custom_headers</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
1406
- <span class='id identifier rubyid_list_async'>list_async</span><span class='lparen'>(</span><span class='id identifier rubyid_location'>location</span><span class='comma'>,</span> <span class='id identifier rubyid_custom_headers'>custom_headers</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_value!'>value!</span>
1407
- <span class='kw'>end</span></pre>
1408
- </td>
1409
- </tr>
1410
- </table>
1411
- </div>
1412
-
1413
- </div>
1414
-
1415
- </div>
1416
-
1417
- <div id="footer">
1418
- Generated on Thu Jul 21 16:09:44 2016 by
1419
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1420
- 0.9.2 (ruby-2.3.0).
1421
- </div>
1422
-
1423
- </div>
1424
- </body>
1425
- </html>