azure_mgmt_storagecache 0.17.0 → 0.19.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache.rb +1 -2
  3. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/caches.rb +1 -1
  4. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/operations.rb +1 -1
  5. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/skus.rb +1 -1
  6. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/{storage_cache_mgmt_client.rb → storage_cache_management_client.rb} +8 -4
  7. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/storage_targets.rb +1 -1
  8. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/usage_models.rb +1 -1
  9. data/lib/2019-11-01/generated/azure_mgmt_storagecache.rb +60 -0
  10. data/lib/2019-11-01/generated/azure_mgmt_storagecache/caches.rb +1477 -0
  11. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/api_operation.rb +59 -0
  12. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/api_operation_display.rb +69 -0
  13. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/api_operation_list_result.rb +101 -0
  14. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache.rb +188 -0
  15. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache_health.rb +60 -0
  16. data/lib/{2019-08-01-preview/generated/azure_mgmt_storagecache/models/cloud_error.rb → 2019-11-01/generated/azure_mgmt_storagecache/models/cache_sku.rb} +11 -12
  17. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache_upgrade_status.rb +101 -0
  18. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/caches_list_result.rb +100 -0
  19. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/clfs_target.rb +46 -0
  20. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/cloud_error_body.rb +92 -0
  21. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/firmware_status_type.rb +16 -0
  22. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/health_state_type.rb +23 -0
  23. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/namespace_junction.rb +68 -0
  24. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/nfs3target.rb +62 -0
  25. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/provisioning_state_type.rb +20 -0
  26. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/reason_code.rb +16 -0
  27. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/resource_sku.rb +143 -0
  28. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/resource_sku_capabilities.rb +57 -0
  29. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/resource_sku_location_info.rb +65 -0
  30. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/resource_skus_result.rb +100 -0
  31. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/restriction.rb +86 -0
  32. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/storage_target.rb +155 -0
  33. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/storage_target_type.rb +17 -0
  34. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/storage_targets_result.rb +99 -0
  35. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/unknown_target.rb +55 -0
  36. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/usage_model.rb +71 -0
  37. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/usage_model_display.rb +46 -0
  38. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/usage_models_result.rb +99 -0
  39. data/lib/2019-11-01/generated/azure_mgmt_storagecache/module_definition.rb +9 -0
  40. data/lib/2019-11-01/generated/azure_mgmt_storagecache/operations.rb +221 -0
  41. data/lib/2019-11-01/generated/azure_mgmt_storagecache/skus.rb +223 -0
  42. data/lib/2019-11-01/generated/azure_mgmt_storagecache/storage_cache_management_client.rb +153 -0
  43. data/lib/2019-11-01/generated/azure_mgmt_storagecache/storage_targets.rb +670 -0
  44. data/lib/2019-11-01/generated/azure_mgmt_storagecache/usage_models.rb +223 -0
  45. data/lib/2020-03-01/generated/azure_mgmt_storagecache.rb +72 -0
  46. data/lib/2020-03-01/generated/azure_mgmt_storagecache/caches.rb +1513 -0
  47. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/api_operation.rb +59 -0
  48. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/api_operation_display.rb +69 -0
  49. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/api_operation_list_result.rb +101 -0
  50. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache.rb +238 -0
  51. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache_encryption_settings.rb +48 -0
  52. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache_health.rb +60 -0
  53. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache_identity.rb +72 -0
  54. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache_identity_type.rb +16 -0
  55. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache_network_settings.rb +73 -0
  56. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache_security_settings.rb +46 -0
  57. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache_sku.rb +46 -0
  58. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache_upgrade_status.rb +101 -0
  59. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/caches_list_result.rb +100 -0
  60. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/clfs_target.rb +46 -0
  61. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/clfs_target_properties.rb +110 -0
  62. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cloud_error_body.rb +92 -0
  63. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/firmware_status_type.rb +16 -0
  64. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/health_state_type.rb +23 -0
  65. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/key_vault_key_reference.rb +59 -0
  66. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/key_vault_key_reference_source_vault.rb +46 -0
  67. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/namespace_junction.rb +68 -0
  68. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/nfs3target.rb +62 -0
  69. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/nfs3target_properties.rb +110 -0
  70. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/provisioning_state_type.rb +20 -0
  71. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/reason_code.rb +16 -0
  72. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/resource_sku.rb +143 -0
  73. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/resource_sku_capabilities.rb +57 -0
  74. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/resource_sku_location_info.rb +65 -0
  75. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/resource_skus_result.rb +100 -0
  76. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/restriction.rb +86 -0
  77. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/storage_target.rb +155 -0
  78. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/storage_target_properties.rb +130 -0
  79. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/storage_target_resource.rb +72 -0
  80. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/storage_target_type.rb +17 -0
  81. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/storage_targets_result.rb +99 -0
  82. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/unknown_target.rb +55 -0
  83. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/unknown_target_properties.rb +110 -0
  84. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/usage_model.rb +71 -0
  85. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/usage_model_display.rb +46 -0
  86. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/usage_models_result.rb +99 -0
  87. data/lib/2020-03-01/generated/azure_mgmt_storagecache/module_definition.rb +9 -0
  88. data/lib/2020-03-01/generated/azure_mgmt_storagecache/operations.rb +221 -0
  89. data/lib/2020-03-01/generated/azure_mgmt_storagecache/skus.rb +223 -0
  90. data/lib/2020-03-01/generated/azure_mgmt_storagecache/storage_cache_management_client.rb +153 -0
  91. data/lib/2020-03-01/generated/azure_mgmt_storagecache/storage_targets.rb +703 -0
  92. data/lib/2020-03-01/generated/azure_mgmt_storagecache/usage_models.rb +223 -0
  93. data/lib/2020-10-01/generated/azure_mgmt_storagecache.rb +92 -0
  94. data/lib/2020-10-01/generated/azure_mgmt_storagecache/asc_operations.rb +127 -0
  95. data/lib/2020-10-01/generated/azure_mgmt_storagecache/caches.rb +1580 -0
  96. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/api_operation.rb +95 -0
  97. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/api_operation_display.rb +80 -0
  98. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/api_operation_list_result.rb +101 -0
  99. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/api_operation_properties_service_specification.rb +57 -0
  100. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/asc_operation.rb +121 -0
  101. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache.rb +264 -0
  102. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_active_directory_settings.rb +124 -0
  103. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_active_directory_settings_credentials.rb +61 -0
  104. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_directory_settings.rb +62 -0
  105. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_encryption_settings.rb +48 -0
  106. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_health.rb +60 -0
  107. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_identity.rb +72 -0
  108. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_identity_type.rb +16 -0
  109. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_network_settings.rb +73 -0
  110. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_security_settings.rb +56 -0
  111. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_sku.rb +46 -0
  112. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_upgrade_status.rb +101 -0
  113. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_username_download_settings.rb +186 -0
  114. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_username_download_settings_credentials.rb +61 -0
  115. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/caches_list_result.rb +100 -0
  116. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/clfs_target.rb +46 -0
  117. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/clfs_target_properties.rb +102 -0
  118. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cloud_error_body.rb +92 -0
  119. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/created_by_type.rb +18 -0
  120. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/domain_joined_type.rb +17 -0
  121. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/error_response.rb +57 -0
  122. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/firmware_status_type.rb +16 -0
  123. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/health_state_type.rb +23 -0
  124. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/key_vault_key_reference.rb +59 -0
  125. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/key_vault_key_reference_source_vault.rb +46 -0
  126. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/metric_aggregation_type.rb +21 -0
  127. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/metric_dimension.rb +79 -0
  128. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/metric_specification.rb +140 -0
  129. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/namespace_junction.rb +79 -0
  130. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs3target.rb +62 -0
  131. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs3target_properties.rb +102 -0
  132. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_policy.rb +69 -0
  133. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_rule.rb +139 -0
  134. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_rule_access.rb +17 -0
  135. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_rule_scope.rb +17 -0
  136. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/provisioning_state_type.rb +20 -0
  137. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/reason_code.rb +16 -0
  138. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/resource_sku.rb +143 -0
  139. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/resource_sku_capabilities.rb +57 -0
  140. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/resource_sku_location_info.rb +65 -0
  141. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/resource_skus_result.rb +100 -0
  142. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/restriction.rb +86 -0
  143. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/storage_target.rb +163 -0
  144. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/storage_target_properties.rb +119 -0
  145. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/storage_target_resource.rb +97 -0
  146. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/storage_targets_result.rb +99 -0
  147. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/system_data.rb +105 -0
  148. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/unknown_target.rb +55 -0
  149. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/unknown_target_properties.rb +102 -0
  150. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/usage_model.rb +71 -0
  151. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/usage_model_display.rb +46 -0
  152. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/usage_models_result.rb +99 -0
  153. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/username_downloaded_type.rb +17 -0
  154. data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/username_source.rb +18 -0
  155. data/lib/2020-10-01/generated/azure_mgmt_storagecache/module_definition.rb +9 -0
  156. data/lib/2020-10-01/generated/azure_mgmt_storagecache/operations.rb +221 -0
  157. data/lib/2020-10-01/generated/azure_mgmt_storagecache/skus.rb +223 -0
  158. data/lib/2020-10-01/generated/azure_mgmt_storagecache/storage_cache_management_client.rb +157 -0
  159. data/lib/2020-10-01/generated/azure_mgmt_storagecache/storage_targets.rb +691 -0
  160. data/lib/2020-10-01/generated/azure_mgmt_storagecache/usage_models.rb +223 -0
  161. data/lib/azure_mgmt_storagecache.rb +3 -0
  162. data/lib/profiles/latest/modules/storagecache_profile_module.rb +208 -86
  163. data/lib/version.rb +1 -1
  164. metadata +158 -7
@@ -3,39 +3,38 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::StorageCache::Mgmt::V2019_08_01_preview
6
+ module Azure::StorageCache::Mgmt::V2019_11_01
7
7
  module Models
8
8
  #
9
- # An error response.
9
+ # SKU for the Cache.
10
10
  #
11
- class CloudError
11
+ class CacheSku
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [CloudErrorBody] The body of the error.
16
- attr_accessor :error
15
+ # @return [String] SKU name for this Cache.
16
+ attr_accessor :name
17
17
 
18
18
 
19
19
  #
20
- # Mapper for CloudError class as Ruby Hash.
20
+ # Mapper for CacheSku class as Ruby Hash.
21
21
  # This will be used for serialization/deserialization.
22
22
  #
23
23
  def self.mapper()
24
24
  {
25
25
  client_side_validation: true,
26
26
  required: false,
27
- serialized_name: 'CloudError',
27
+ serialized_name: 'Cache_sku',
28
28
  type: {
29
29
  name: 'Composite',
30
- class_name: 'CloudError',
30
+ class_name: 'CacheSku',
31
31
  model_properties: {
32
- error: {
32
+ name: {
33
33
  client_side_validation: true,
34
34
  required: false,
35
- serialized_name: 'error',
35
+ serialized_name: 'name',
36
36
  type: {
37
- name: 'Composite',
38
- class_name: 'CloudErrorBody'
37
+ name: 'String'
39
38
  }
40
39
  }
41
40
  }
@@ -0,0 +1,101 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::StorageCache::Mgmt::V2019_11_01
7
+ module Models
8
+ #
9
+ # Properties describing the software upgrade state of the Cache.
10
+ #
11
+ class CacheUpgradeStatus
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Version string of the firmware currently installed on
16
+ # this Cache.
17
+ attr_accessor :current_firmware_version
18
+
19
+ # @return [FirmwareStatusType] True if there is a firmware update ready
20
+ # to install on this Cache. The firmware will automatically be installed
21
+ # after firmwareUpdateDeadline if not triggered earlier via the upgrade
22
+ # operation. Possible values include: 'available', 'unavailable'
23
+ attr_accessor :firmware_update_status
24
+
25
+ # @return [DateTime] Time at which the pending firmware update will
26
+ # automatically be installed on the Cache.
27
+ attr_accessor :firmware_update_deadline
28
+
29
+ # @return [DateTime] Time of the last successful firmware update.
30
+ attr_accessor :last_firmware_update
31
+
32
+ # @return [String] When firmwareUpdateAvailable is true, this field holds
33
+ # the version string for the update.
34
+ attr_accessor :pending_firmware_version
35
+
36
+
37
+ #
38
+ # Mapper for CacheUpgradeStatus class as Ruby Hash.
39
+ # This will be used for serialization/deserialization.
40
+ #
41
+ def self.mapper()
42
+ {
43
+ client_side_validation: true,
44
+ required: false,
45
+ serialized_name: 'CacheUpgradeStatus',
46
+ type: {
47
+ name: 'Composite',
48
+ class_name: 'CacheUpgradeStatus',
49
+ model_properties: {
50
+ current_firmware_version: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ read_only: true,
54
+ serialized_name: 'currentFirmwareVersion',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ firmware_update_status: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ read_only: true,
63
+ serialized_name: 'firmwareUpdateStatus',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ firmware_update_deadline: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'firmwareUpdateDeadline',
73
+ type: {
74
+ name: 'DateTime'
75
+ }
76
+ },
77
+ last_firmware_update: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ read_only: true,
81
+ serialized_name: 'lastFirmwareUpdate',
82
+ type: {
83
+ name: 'DateTime'
84
+ }
85
+ },
86
+ pending_firmware_version: {
87
+ client_side_validation: true,
88
+ required: false,
89
+ read_only: true,
90
+ serialized_name: 'pendingFirmwareVersion',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ end
99
+ end
100
+ end
101
+ end
@@ -0,0 +1,100 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::StorageCache::Mgmt::V2019_11_01
7
+ module Models
8
+ #
9
+ # Result of the request to list Caches. It contains a list of Caches and a
10
+ # URL link to get the next set of results.
11
+ #
12
+ class CachesListResult
13
+
14
+ include MsRestAzure
15
+
16
+ include MsRest::JSONable
17
+ # @return [String] URL to get the next set of Cache list results, if
18
+ # there are any.
19
+ attr_accessor :next_link
20
+
21
+ # @return [Array<Cache>] List of Caches.
22
+ attr_accessor :value
23
+
24
+ # return [Proc] with next page method call.
25
+ attr_accessor :next_method
26
+
27
+ #
28
+ # Gets the rest of the items for the request, enabling auto-pagination.
29
+ #
30
+ # @return [Array<Cache>] operation results.
31
+ #
32
+ def get_all_items
33
+ items = @value
34
+ page = self
35
+ while page.next_link != nil && !page.next_link.strip.empty? do
36
+ page = page.get_next_page
37
+ items.concat(page.value)
38
+ end
39
+ items
40
+ end
41
+
42
+ #
43
+ # Gets the next page of results.
44
+ #
45
+ # @return [CachesListResult] with next page content.
46
+ #
47
+ def get_next_page
48
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
49
+ unless response.nil?
50
+ @next_link = response.body.next_link
51
+ @value = response.body.value
52
+ self
53
+ end
54
+ end
55
+
56
+ #
57
+ # Mapper for CachesListResult class as Ruby Hash.
58
+ # This will be used for serialization/deserialization.
59
+ #
60
+ def self.mapper()
61
+ {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'CachesListResult',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'CachesListResult',
68
+ model_properties: {
69
+ next_link: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ serialized_name: 'nextLink',
73
+ type: {
74
+ name: 'String'
75
+ }
76
+ },
77
+ value: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ serialized_name: 'value',
81
+ type: {
82
+ name: 'Sequence',
83
+ element: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ serialized_name: 'CacheElementType',
87
+ type: {
88
+ name: 'Composite',
89
+ class_name: 'Cache'
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ end
98
+ end
99
+ end
100
+ end
@@ -0,0 +1,46 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::StorageCache::Mgmt::V2019_11_01
7
+ module Models
8
+ #
9
+ # Storage container for use as a CLFS Storage Target.
10
+ #
11
+ class ClfsTarget
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Resource ID of storage container.
16
+ attr_accessor :target
17
+
18
+
19
+ #
20
+ # Mapper for ClfsTarget class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'clfs',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'ClfsTarget',
31
+ model_properties: {
32
+ target: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'target',
36
+ type: {
37
+ name: 'String'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,92 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::StorageCache::Mgmt::V2019_11_01
7
+ module Models
8
+ #
9
+ # An error response.
10
+ #
11
+ class CloudErrorBody
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] An identifier for the error. Codes are invariant and
16
+ # are intended to be consumed programmatically.
17
+ attr_accessor :code
18
+
19
+ # @return [Array<CloudErrorBody>] A list of additional details about the
20
+ # error.
21
+ attr_accessor :details
22
+
23
+ # @return [String] A message describing the error, intended to be
24
+ # suitable for display in a user interface.
25
+ attr_accessor :message
26
+
27
+ # @return [String] The target of the particular error. For example, the
28
+ # name of the property in error.
29
+ attr_accessor :target
30
+
31
+
32
+ #
33
+ # Mapper for CloudErrorBody class as Ruby Hash.
34
+ # This will be used for serialization/deserialization.
35
+ #
36
+ def self.mapper()
37
+ {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'CloudErrorBody',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'CloudErrorBody',
44
+ model_properties: {
45
+ code: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'code',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ details: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ serialized_name: 'details',
57
+ type: {
58
+ name: 'Sequence',
59
+ element: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'CloudErrorBodyElementType',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'CloudErrorBody'
66
+ }
67
+ }
68
+ }
69
+ },
70
+ message: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ serialized_name: 'message',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ },
78
+ target: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ serialized_name: 'target',
82
+ type: {
83
+ name: 'String'
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ end
90
+ end
91
+ end
92
+ end
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::StorageCache::Mgmt::V2019_11_01
7
+ module Models
8
+ #
9
+ # Defines values for FirmwareStatusType
10
+ #
11
+ module FirmwareStatusType
12
+ Available = "available"
13
+ Unavailable = "unavailable"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,23 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::StorageCache::Mgmt::V2019_11_01
7
+ module Models
8
+ #
9
+ # Defines values for HealthStateType
10
+ #
11
+ module HealthStateType
12
+ Unknown = "Unknown"
13
+ Healthy = "Healthy"
14
+ Degraded = "Degraded"
15
+ Down = "Down"
16
+ Transitioning = "Transitioning"
17
+ Stopping = "Stopping"
18
+ Stopped = "Stopped"
19
+ Upgrading = "Upgrading"
20
+ Flushing = "Flushing"
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,68 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::StorageCache::Mgmt::V2019_11_01
7
+ module Models
8
+ #
9
+ # A namespace junction.
10
+ #
11
+ class NamespaceJunction
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Namespace path on a Cache for a Storage Target.
16
+ attr_accessor :namespace_path
17
+
18
+ # @return [String] Path in Storage Target to which namespacePath points.
19
+ attr_accessor :target_path
20
+
21
+ # @return [String] NFS export where targetPath exists.
22
+ attr_accessor :nfs_export
23
+
24
+
25
+ #
26
+ # Mapper for NamespaceJunction class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ client_side_validation: true,
32
+ required: false,
33
+ serialized_name: 'NamespaceJunction',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'NamespaceJunction',
37
+ model_properties: {
38
+ namespace_path: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'namespacePath',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ },
46
+ target_path: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'targetPath',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ nfs_export: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'nfsExport',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ end
66
+ end
67
+ end
68
+ end