azure_mgmt_storagecache 0.17.1 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache.rb +0 -1
  3. data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/storage_cache_management_client.rb +1 -1
  4. data/lib/2019-11-01/generated/azure_mgmt_storagecache.rb +0 -1
  5. data/lib/2019-11-01/generated/azure_mgmt_storagecache/storage_cache_management_client.rb +1 -1
  6. data/lib/2020-03-01/generated/azure_mgmt_storagecache.rb +72 -0
  7. data/lib/2020-03-01/generated/azure_mgmt_storagecache/caches.rb +1513 -0
  8. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/api_operation.rb +59 -0
  9. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/api_operation_display.rb +69 -0
  10. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/api_operation_list_result.rb +101 -0
  11. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache.rb +238 -0
  12. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache_encryption_settings.rb +48 -0
  13. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache_health.rb +60 -0
  14. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache_identity.rb +72 -0
  15. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache_identity_type.rb +16 -0
  16. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache_network_settings.rb +73 -0
  17. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache_security_settings.rb +46 -0
  18. data/lib/{2019-11-01/generated/azure_mgmt_storagecache/models/cloud_error.rb → 2020-03-01/generated/azure_mgmt_storagecache/models/cache_sku.rb} +11 -12
  19. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache_upgrade_status.rb +101 -0
  20. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/caches_list_result.rb +100 -0
  21. data/lib/{2019-08-01-preview/generated/azure_mgmt_storagecache/models/cloud_error.rb → 2020-03-01/generated/azure_mgmt_storagecache/models/clfs_target.rb} +11 -12
  22. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/clfs_target_properties.rb +110 -0
  23. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cloud_error_body.rb +92 -0
  24. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/firmware_status_type.rb +16 -0
  25. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/health_state_type.rb +23 -0
  26. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/key_vault_key_reference.rb +59 -0
  27. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/key_vault_key_reference_source_vault.rb +46 -0
  28. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/namespace_junction.rb +68 -0
  29. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/nfs3target.rb +62 -0
  30. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/nfs3target_properties.rb +110 -0
  31. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/provisioning_state_type.rb +20 -0
  32. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/reason_code.rb +16 -0
  33. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/resource_sku.rb +143 -0
  34. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/resource_sku_capabilities.rb +57 -0
  35. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/resource_sku_location_info.rb +65 -0
  36. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/resource_skus_result.rb +100 -0
  37. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/restriction.rb +86 -0
  38. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/storage_target.rb +155 -0
  39. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/storage_target_properties.rb +130 -0
  40. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/storage_target_resource.rb +72 -0
  41. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/storage_target_type.rb +17 -0
  42. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/storage_targets_result.rb +99 -0
  43. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/unknown_target.rb +55 -0
  44. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/unknown_target_properties.rb +110 -0
  45. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/usage_model.rb +71 -0
  46. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/usage_model_display.rb +46 -0
  47. data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/usage_models_result.rb +99 -0
  48. data/lib/2020-03-01/generated/azure_mgmt_storagecache/module_definition.rb +9 -0
  49. data/lib/2020-03-01/generated/azure_mgmt_storagecache/operations.rb +221 -0
  50. data/lib/2020-03-01/generated/azure_mgmt_storagecache/skus.rb +223 -0
  51. data/lib/2020-03-01/generated/azure_mgmt_storagecache/storage_cache_management_client.rb +153 -0
  52. data/lib/2020-03-01/generated/azure_mgmt_storagecache/storage_targets.rb +703 -0
  53. data/lib/2020-03-01/generated/azure_mgmt_storagecache/usage_models.rb +223 -0
  54. data/lib/azure_mgmt_storagecache.rb +1 -0
  55. data/lib/profiles/latest/modules/storagecache_profile_module.rb +131 -87
  56. data/lib/version.rb +1 -1
  57. metadata +50 -4
@@ -0,0 +1,57 @@
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::V2020_03_01
7
+ module Models
8
+ #
9
+ # A resource SKU capability.
10
+ #
11
+ class ResourceSkuCapabilities
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Name of a capability, such as ops/sec.
16
+ attr_accessor :name
17
+
18
+ # @return [String] Quantity, if the capability is measured by quantity.
19
+ attr_accessor :value
20
+
21
+
22
+ #
23
+ # Mapper for ResourceSkuCapabilities class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'ResourceSkuCapabilities',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'ResourceSkuCapabilities',
34
+ model_properties: {
35
+ name: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'name',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ value: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'value',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,65 @@
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::V2020_03_01
7
+ module Models
8
+ #
9
+ # Resource SKU location information.
10
+ #
11
+ class ResourceSkuLocationInfo
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Location where this SKU is available.
16
+ attr_accessor :location
17
+
18
+ # @return [Array<String>] Zones if any.
19
+ attr_accessor :zones
20
+
21
+
22
+ #
23
+ # Mapper for ResourceSkuLocationInfo class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'ResourceSkuLocationInfo',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'ResourceSkuLocationInfo',
34
+ model_properties: {
35
+ location: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'location',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ zones: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'zones',
47
+ type: {
48
+ name: 'Sequence',
49
+ element: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'StringElementType',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ end
63
+ end
64
+ end
65
+ 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::V2020_03_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::V2020_03_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::V2020_03_01
7
+ module Models
8
+ #
9
+ # Type of the Storage Target.
10
+ #
11
+ class StorageTarget < StorageTargetResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<NamespaceJunction>] List of Cache namespace junctions to
16
+ # target for namespace associations.
17
+ attr_accessor :junctions
18
+
19
+ # @return [String] Type of the Storage Target.
20
+ attr_accessor :target_type
21
+
22
+ # @return [ProvisioningStateType] ARM provisioning state, see
23
+ # https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property.
24
+ # Possible values include: 'Succeeded', 'Failed', 'Cancelled',
25
+ # 'Creating', 'Deleting', 'Updating'
26
+ attr_accessor :provisioning_state
27
+
28
+ # @return [Nfs3Target] Properties when targetType is nfs3.
29
+ attr_accessor :nfs3
30
+
31
+ # @return [ClfsTarget] Properties when targetType is clfs.
32
+ attr_accessor :clfs
33
+
34
+ # @return [UnknownTarget] Properties when targetType is unknown.
35
+ attr_accessor :unknown
36
+
37
+ # @return [String] Polymorphic Discriminator
38
+ attr_accessor :targetBaseType
39
+
40
+
41
+ #
42
+ # Mapper for StorageTarget class as Ruby Hash.
43
+ # This will be used for serialization/deserialization.
44
+ #
45
+ def self.mapper()
46
+ {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'StorageTarget',
50
+ type: {
51
+ name: 'Composite',
52
+ class_name: 'StorageTarget',
53
+ model_properties: {
54
+ name: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ read_only: true,
58
+ serialized_name: 'name',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ },
63
+ id: {
64
+ client_side_validation: true,
65
+ required: false,
66
+ read_only: true,
67
+ serialized_name: 'id',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ type: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ read_only: true,
76
+ serialized_name: 'type',
77
+ type: {
78
+ name: 'String'
79
+ }
80
+ },
81
+ junctions: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ serialized_name: 'properties.junctions',
85
+ type: {
86
+ name: 'Sequence',
87
+ element: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ serialized_name: 'NamespaceJunctionElementType',
91
+ type: {
92
+ name: 'Composite',
93
+ class_name: 'NamespaceJunction'
94
+ }
95
+ }
96
+ }
97
+ },
98
+ target_type: {
99
+ client_side_validation: true,
100
+ required: false,
101
+ serialized_name: 'properties.targetType',
102
+ type: {
103
+ name: 'String'
104
+ }
105
+ },
106
+ provisioning_state: {
107
+ client_side_validation: true,
108
+ required: false,
109
+ serialized_name: 'properties.provisioningState',
110
+ type: {
111
+ name: 'String'
112
+ }
113
+ },
114
+ nfs3: {
115
+ client_side_validation: true,
116
+ required: false,
117
+ serialized_name: 'properties.nfs3',
118
+ type: {
119
+ name: 'Composite',
120
+ class_name: 'Nfs3Target'
121
+ }
122
+ },
123
+ clfs: {
124
+ client_side_validation: true,
125
+ required: false,
126
+ serialized_name: 'properties.clfs',
127
+ type: {
128
+ name: 'Composite',
129
+ class_name: 'ClfsTarget'
130
+ }
131
+ },
132
+ unknown: {
133
+ client_side_validation: true,
134
+ required: false,
135
+ serialized_name: 'properties.unknown',
136
+ type: {
137
+ name: 'Composite',
138
+ class_name: 'UnknownTarget'
139
+ }
140
+ },
141
+ targetBaseType: {
142
+ client_side_validation: true,
143
+ required: true,
144
+ serialized_name: 'properties.targetBaseType',
145
+ type: {
146
+ name: 'String'
147
+ }
148
+ }
149
+ }
150
+ }
151
+ }
152
+ end
153
+ end
154
+ end
155
+ end