azure_mgmt_storagecache 0.17.0 → 0.17.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache.rb +1 -1
  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 +61 -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-11-01/generated/azure_mgmt_storagecache/models/cache_sku.rb +46 -0
  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.rb +47 -0
  21. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/cloud_error_body.rb +92 -0
  22. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/firmware_status_type.rb +16 -0
  23. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/health_state_type.rb +23 -0
  24. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/namespace_junction.rb +68 -0
  25. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/nfs3target.rb +62 -0
  26. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/provisioning_state_type.rb +20 -0
  27. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/reason_code.rb +16 -0
  28. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/resource_sku.rb +143 -0
  29. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/resource_sku_capabilities.rb +57 -0
  30. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/resource_sku_location_info.rb +65 -0
  31. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/resource_skus_result.rb +100 -0
  32. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/restriction.rb +86 -0
  33. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/storage_target.rb +155 -0
  34. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/storage_target_type.rb +17 -0
  35. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/storage_targets_result.rb +99 -0
  36. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/unknown_target.rb +55 -0
  37. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/usage_model.rb +71 -0
  38. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/usage_model_display.rb +46 -0
  39. data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/usage_models_result.rb +99 -0
  40. data/lib/2019-11-01/generated/azure_mgmt_storagecache/module_definition.rb +9 -0
  41. data/lib/2019-11-01/generated/azure_mgmt_storagecache/operations.rb +221 -0
  42. data/lib/2019-11-01/generated/azure_mgmt_storagecache/skus.rb +223 -0
  43. data/lib/2019-11-01/generated/azure_mgmt_storagecache/storage_cache_management_client.rb +153 -0
  44. data/lib/2019-11-01/generated/azure_mgmt_storagecache/storage_targets.rb +670 -0
  45. data/lib/2019-11-01/generated/azure_mgmt_storagecache/usage_models.rb +223 -0
  46. data/lib/azure_mgmt_storagecache.rb +1 -0
  47. data/lib/profiles/latest/modules/storagecache_profile_module.rb +64 -64
  48. data/lib/version.rb +1 -1
  49. metadata +40 -3
@@ -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
+ # The response from the List Cache SKUs operation.
10
+ #
11
+ class ResourceSkusResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] The URI to fetch the next page of Cache SKUs.
17
+ attr_accessor :next_link
18
+
19
+ # @return [Array<ResourceSku>] The list of SKUs available for the
20
+ # subscription.
21
+ attr_accessor :value
22
+
23
+ # return [Proc] with next page method call.
24
+ attr_accessor :next_method
25
+
26
+ #
27
+ # Gets the rest of the items for the request, enabling auto-pagination.
28
+ #
29
+ # @return [Array<ResourceSku>] operation results.
30
+ #
31
+ def get_all_items
32
+ items = @value
33
+ page = self
34
+ while page.next_link != nil && !page.next_link.strip.empty? do
35
+ page = page.get_next_page
36
+ items.concat(page.value)
37
+ end
38
+ items
39
+ end
40
+
41
+ #
42
+ # Gets the next page of results.
43
+ #
44
+ # @return [ResourceSkusResult] with next page content.
45
+ #
46
+ def get_next_page
47
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
48
+ unless response.nil?
49
+ @next_link = response.body.next_link
50
+ @value = response.body.value
51
+ self
52
+ end
53
+ end
54
+
55
+ #
56
+ # Mapper for ResourceSkusResult class as Ruby Hash.
57
+ # This will be used for serialization/deserialization.
58
+ #
59
+ def self.mapper()
60
+ {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'ResourceSkusResult',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'ResourceSkusResult',
67
+ model_properties: {
68
+ next_link: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'nextLink',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ },
76
+ value: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ read_only: true,
80
+ serialized_name: 'value',
81
+ type: {
82
+ name: 'Sequence',
83
+ element: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ serialized_name: 'ResourceSkuElementType',
87
+ type: {
88
+ name: 'Composite',
89
+ class_name: 'ResourceSku'
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ end
98
+ end
99
+ end
100
+ end
@@ -0,0 +1,86 @@
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
+ # The restrictions preventing this SKU from being used.
10
+ #
11
+ class Restriction
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The type of restrictions. In this version, the only
16
+ # possible value for this is location.
17
+ attr_accessor :type
18
+
19
+ # @return [Array<String>] The value of restrictions. If the restriction
20
+ # type is set to location, then this would be the different locations
21
+ # where the SKU is restricted.
22
+ attr_accessor :values
23
+
24
+ # @return [ReasonCode] The reason for the restriction. As of now this can
25
+ # be "QuotaId" or "NotAvailableForSubscription". "QuotaId" is set when
26
+ # the SKU has requiredQuotas parameter as the subscription does not
27
+ # belong to that quota. "NotAvailableForSubscription" is related to
28
+ # capacity at the datacenter. Possible values include: 'QuotaId',
29
+ # 'NotAvailableForSubscription'
30
+ attr_accessor :reason_code
31
+
32
+
33
+ #
34
+ # Mapper for Restriction class as Ruby Hash.
35
+ # This will be used for serialization/deserialization.
36
+ #
37
+ def self.mapper()
38
+ {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'Restriction',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'Restriction',
45
+ model_properties: {
46
+ type: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ read_only: true,
50
+ serialized_name: 'type',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ values: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ read_only: true,
59
+ serialized_name: 'values',
60
+ type: {
61
+ name: 'Sequence',
62
+ element: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ serialized_name: 'StringElementType',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ }
70
+ }
71
+ },
72
+ reason_code: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ serialized_name: 'reasonCode',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ end
84
+ end
85
+ end
86
+ end
@@ -0,0 +1,155 @@
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 storage system being cached by a Cache.
10
+ #
11
+ class StorageTarget
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Name of the Storage Target.
16
+ attr_accessor :name
17
+
18
+ # @return [String] Resource ID of the Storage Target.
19
+ attr_accessor :id
20
+
21
+ # @return [String] Type of the Storage Target;
22
+ # Microsoft.StorageCache/Cache/StorageTarget
23
+ attr_accessor :type
24
+
25
+ # @return [Array<NamespaceJunction>] List of Cache namespace junctions to
26
+ # target for namespace associations.
27
+ attr_accessor :junctions
28
+
29
+ # @return [StorageTargetType] Type of the Storage Target. Possible values
30
+ # include: 'nfs3', 'clfs', 'unknown'
31
+ attr_accessor :target_type
32
+
33
+ # @return [ProvisioningStateType] ARM provisioning state, see
34
+ # https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property.
35
+ # Possible values include: 'Succeeded', 'Failed', 'Cancelled',
36
+ # 'Creating', 'Deleting', 'Updating'
37
+ attr_accessor :provisioning_state
38
+
39
+ # @return [Nfs3Target] Properties when targetType is nfs3.
40
+ attr_accessor :nfs3
41
+
42
+ # @return [ClfsTarget] Properties when targetType is clfs.
43
+ attr_accessor :clfs
44
+
45
+ # @return [UnknownTarget] Properties when targetType is unknown.
46
+ attr_accessor :unknown
47
+
48
+
49
+ #
50
+ # Mapper for StorageTarget class as Ruby Hash.
51
+ # This will be used for serialization/deserialization.
52
+ #
53
+ def self.mapper()
54
+ {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'StorageTarget',
58
+ type: {
59
+ name: 'Composite',
60
+ class_name: 'StorageTarget',
61
+ model_properties: {
62
+ name: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ read_only: true,
66
+ serialized_name: 'name',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ },
71
+ id: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ read_only: true,
75
+ serialized_name: 'id',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ },
80
+ type: {
81
+ client_side_validation: true,
82
+ required: false,
83
+ read_only: true,
84
+ serialized_name: 'type',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ },
89
+ junctions: {
90
+ client_side_validation: true,
91
+ required: false,
92
+ serialized_name: 'properties.junctions',
93
+ type: {
94
+ name: 'Sequence',
95
+ element: {
96
+ client_side_validation: true,
97
+ required: false,
98
+ serialized_name: 'NamespaceJunctionElementType',
99
+ type: {
100
+ name: 'Composite',
101
+ class_name: 'NamespaceJunction'
102
+ }
103
+ }
104
+ }
105
+ },
106
+ target_type: {
107
+ client_side_validation: true,
108
+ required: false,
109
+ serialized_name: 'properties.targetType',
110
+ type: {
111
+ name: 'String'
112
+ }
113
+ },
114
+ provisioning_state: {
115
+ client_side_validation: true,
116
+ required: false,
117
+ serialized_name: 'properties.provisioningState',
118
+ type: {
119
+ name: 'String'
120
+ }
121
+ },
122
+ nfs3: {
123
+ client_side_validation: true,
124
+ required: false,
125
+ serialized_name: 'properties.nfs3',
126
+ type: {
127
+ name: 'Composite',
128
+ class_name: 'Nfs3Target'
129
+ }
130
+ },
131
+ clfs: {
132
+ client_side_validation: true,
133
+ required: false,
134
+ serialized_name: 'properties.clfs',
135
+ type: {
136
+ name: 'Composite',
137
+ class_name: 'ClfsTarget'
138
+ }
139
+ },
140
+ unknown: {
141
+ client_side_validation: true,
142
+ required: false,
143
+ serialized_name: 'properties.unknown',
144
+ type: {
145
+ name: 'Composite',
146
+ class_name: 'UnknownTarget'
147
+ }
148
+ }
149
+ }
150
+ }
151
+ }
152
+ end
153
+ end
154
+ end
155
+ end
@@ -0,0 +1,17 @@
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 StorageTargetType
10
+ #
11
+ module StorageTargetType
12
+ Nfs3 = "nfs3"
13
+ Clfs = "clfs"
14
+ Unknown = "unknown"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,99 @@
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 list of Storage Targets.
10
+ #
11
+ class StorageTargetsResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] The URI to fetch the next page of Storage Targets.
17
+ attr_accessor :next_link
18
+
19
+ # @return [Array<StorageTarget>] The list of Storage Targets defined for
20
+ # the Cache.
21
+ attr_accessor :value
22
+
23
+ # return [Proc] with next page method call.
24
+ attr_accessor :next_method
25
+
26
+ #
27
+ # Gets the rest of the items for the request, enabling auto-pagination.
28
+ #
29
+ # @return [Array<StorageTarget>] operation results.
30
+ #
31
+ def get_all_items
32
+ items = @value
33
+ page = self
34
+ while page.next_link != nil && !page.next_link.strip.empty? do
35
+ page = page.get_next_page
36
+ items.concat(page.value)
37
+ end
38
+ items
39
+ end
40
+
41
+ #
42
+ # Gets the next page of results.
43
+ #
44
+ # @return [StorageTargetsResult] with next page content.
45
+ #
46
+ def get_next_page
47
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
48
+ unless response.nil?
49
+ @next_link = response.body.next_link
50
+ @value = response.body.value
51
+ self
52
+ end
53
+ end
54
+
55
+ #
56
+ # Mapper for StorageTargetsResult class as Ruby Hash.
57
+ # This will be used for serialization/deserialization.
58
+ #
59
+ def self.mapper()
60
+ {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'StorageTargetsResult',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'StorageTargetsResult',
67
+ model_properties: {
68
+ next_link: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'nextLink',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ },
76
+ value: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ serialized_name: 'value',
80
+ type: {
81
+ name: 'Sequence',
82
+ element: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ serialized_name: 'StorageTargetElementType',
86
+ type: {
87
+ name: 'Composite',
88
+ class_name: 'StorageTarget'
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ end
97
+ end
98
+ end
99
+ end