azure_mgmt_storage 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +5 -13
  2. data/azure_mgmt_storage.gemspec +4 -5
  3. data/lib/azure_mgmt_storage.rb +3 -57
  4. data/lib/generated/azure_mgmt_storage.rb +56 -0
  5. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/access_tier.rb +0 -0
  6. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/account_status.rb +0 -0
  7. data/lib/generated/azure_mgmt_storage/models/check_name_availability_result.rb +73 -0
  8. data/lib/generated/azure_mgmt_storage/models/custom_domain.rb +57 -0
  9. data/lib/generated/azure_mgmt_storage/models/encryption.rb +59 -0
  10. data/lib/generated/azure_mgmt_storage/models/encryption_service.rb +60 -0
  11. data/lib/generated/azure_mgmt_storage/models/encryption_services.rb +45 -0
  12. data/lib/generated/azure_mgmt_storage/models/endpoints.rb +79 -0
  13. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/key_permission.rb +0 -0
  14. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/kind.rb +0 -0
  15. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/provisioning_state.rb +0 -0
  16. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/reason.rb +0 -0
  17. data/lib/generated/azure_mgmt_storage/models/sku.rb +61 -0
  18. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/sku_name.rb +0 -0
  19. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/sku_tier.rb +0 -0
  20. data/lib/generated/azure_mgmt_storage/models/storage_account.rb +269 -0
  21. data/lib/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +57 -0
  22. data/lib/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +134 -0
  23. data/lib/generated/azure_mgmt_storage/models/storage_account_key.rb +69 -0
  24. data/lib/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb +54 -0
  25. data/lib/generated/azure_mgmt_storage/models/storage_account_list_result.rb +54 -0
  26. data/lib/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +44 -0
  27. data/lib/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +108 -0
  28. data/lib/generated/azure_mgmt_storage/models/usage.rb +84 -0
  29. data/lib/generated/azure_mgmt_storage/models/usage_list_result.rb +52 -0
  30. data/lib/generated/azure_mgmt_storage/models/usage_name.rb +56 -0
  31. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/models/usage_unit.rb +0 -0
  32. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/module_definition.rb +0 -0
  33. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/storage_accounts.rb +81 -66
  34. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/storage_management_client.rb +4 -4
  35. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/usage_operations.rb +4 -4
  36. data/lib/{azure_mgmt_storage → generated/azure_mgmt_storage}/version.rb +1 -1
  37. metadata +54 -77
  38. data/lib/azure_mgmt_storage/models/check_name_availability_result.rb +0 -82
  39. data/lib/azure_mgmt_storage/models/custom_domain.rb +0 -68
  40. data/lib/azure_mgmt_storage/models/encryption.rb +0 -73
  41. data/lib/azure_mgmt_storage/models/encryption_service.rb +0 -72
  42. data/lib/azure_mgmt_storage/models/encryption_services.rb +0 -62
  43. data/lib/azure_mgmt_storage/models/endpoints.rb +0 -84
  44. data/lib/azure_mgmt_storage/models/sku.rb +0 -77
  45. data/lib/azure_mgmt_storage/models/storage_account.rb +0 -122
  46. data/lib/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +0 -67
  47. data/lib/azure_mgmt_storage/models/storage_account_create_parameters.rb +0 -122
  48. data/lib/azure_mgmt_storage/models/storage_account_key.rb +0 -78
  49. data/lib/azure_mgmt_storage/models/storage_account_list_keys_result.rb +0 -77
  50. data/lib/azure_mgmt_storage/models/storage_account_list_result.rb +0 -77
  51. data/lib/azure_mgmt_storage/models/storage_account_properties.rb +0 -227
  52. data/lib/azure_mgmt_storage/models/storage_account_properties_create_parameters.rb +0 -100
  53. data/lib/azure_mgmt_storage/models/storage_account_properties_update_parameters.rb +0 -98
  54. data/lib/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +0 -56
  55. data/lib/azure_mgmt_storage/models/storage_account_update_parameters.rb +0 -94
  56. data/lib/azure_mgmt_storage/models/usage.rb +0 -99
  57. data/lib/azure_mgmt_storage/models/usage_list_result.rb +0 -76
  58. data/lib/azure_mgmt_storage/models/usage_name.rb +0 -65
@@ -0,0 +1,134 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Storage
7
+ module Models
8
+ #
9
+ # The parameters to provide for the account.
10
+ #
11
+ class StorageAccountCreateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Sku] Required. Gets or sets the sku type.
16
+ attr_accessor :sku
17
+
18
+ # @return [Kind] Required. Indicates the type of storage account.
19
+ # Possible values include: 'Storage', 'BlobStorage'
20
+ attr_accessor :kind
21
+
22
+ # @return [String] Required. Gets or sets the location of the resource.
23
+ # This will be one of the supported and registered Azure Geo Regions
24
+ # (e.g. West US, East US, Southeast Asia, etc.). The geo region of a
25
+ # resource cannot be changed once it is created, but if an identical
26
+ # geo region is specified on update the request will succeed.
27
+ attr_accessor :location
28
+
29
+ # @return [Hash{String => String}] Gets or sets a list of key value
30
+ # pairs that describe the resource. These tags can be used in viewing
31
+ # and grouping this resource (across resource groups). A maximum of 15
32
+ # tags can be provided for a resource. Each tag must have a key no
33
+ # greater than 128 characters and value no greater than 256 characters.
34
+ attr_accessor :tags
35
+
36
+ # @return [CustomDomain] User domain assigned to the storage account.
37
+ # Name is the CNAME source. Only one custom domain is supported per
38
+ # storage account at this time. To clear the existing custom domain,
39
+ # use an empty string for the custom domain name property.
40
+ attr_accessor :custom_domain
41
+
42
+ # @return [Encryption] Provides the encryption settings on the account.
43
+ # If left unspecified the account encryption settings will remain. The
44
+ # default setting is unencrypted.
45
+ attr_accessor :encryption
46
+
47
+ # @return [AccessTier] Required for StandardBlob accounts. The access
48
+ # tier used for billing. Access tier cannot be changed more than once
49
+ # every 7 days (168 hours). Access tier cannot be set for StandardLRS,
50
+ # StandardGRS, StandardRAGRS, or PremiumLRS account types. Possible
51
+ # values include: 'Hot', 'Cool'
52
+ attr_accessor :access_tier
53
+
54
+
55
+ #
56
+ # Mapper for StorageAccountCreateParameters class as Ruby Hash.
57
+ # This will be used for serialization/deserialization.
58
+ #
59
+ def self.mapper()
60
+ {
61
+ required: false,
62
+ serialized_name: 'StorageAccountCreateParameters',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'StorageAccountCreateParameters',
66
+ model_properties: {
67
+ sku: {
68
+ required: true,
69
+ serialized_name: 'sku',
70
+ type: {
71
+ name: 'Composite',
72
+ class_name: 'Sku'
73
+ }
74
+ },
75
+ kind: {
76
+ required: true,
77
+ serialized_name: 'kind',
78
+ type: {
79
+ name: 'Enum',
80
+ module: 'Kind'
81
+ }
82
+ },
83
+ location: {
84
+ required: true,
85
+ serialized_name: 'location',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ },
90
+ tags: {
91
+ required: false,
92
+ serialized_name: 'tags',
93
+ type: {
94
+ name: 'Dictionary',
95
+ value: {
96
+ required: false,
97
+ serialized_name: 'StringElementType',
98
+ type: {
99
+ name: 'String'
100
+ }
101
+ }
102
+ }
103
+ },
104
+ custom_domain: {
105
+ required: false,
106
+ serialized_name: 'properties.customDomain',
107
+ type: {
108
+ name: 'Composite',
109
+ class_name: 'CustomDomain'
110
+ }
111
+ },
112
+ encryption: {
113
+ required: false,
114
+ serialized_name: 'properties.encryption',
115
+ type: {
116
+ name: 'Composite',
117
+ class_name: 'Encryption'
118
+ }
119
+ },
120
+ access_tier: {
121
+ required: false,
122
+ serialized_name: 'properties.accessTier',
123
+ type: {
124
+ name: 'Enum',
125
+ module: 'AccessTier'
126
+ }
127
+ }
128
+ }
129
+ }
130
+ }
131
+ end
132
+ end
133
+ end
134
+ end
@@ -0,0 +1,69 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Storage
7
+ module Models
8
+ #
9
+ # An access key for the storage account.
10
+ #
11
+ class StorageAccountKey
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Name of the key.
16
+ attr_accessor :key_name
17
+
18
+ # @return [String] Base 64 encoded value of the key.
19
+ attr_accessor :value
20
+
21
+ # @return [KeyPermission] Permissions for the key. Possible values
22
+ # include: 'READ', 'FULL'
23
+ attr_accessor :permissions
24
+
25
+
26
+ #
27
+ # Mapper for StorageAccountKey class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ required: false,
33
+ serialized_name: 'StorageAccountKey',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'StorageAccountKey',
37
+ model_properties: {
38
+ key_name: {
39
+ required: false,
40
+ read_only: true,
41
+ serialized_name: 'keyName',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ },
46
+ value: {
47
+ required: false,
48
+ read_only: true,
49
+ serialized_name: 'value',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ permissions: {
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'permissions',
58
+ type: {
59
+ name: 'Enum',
60
+ module: 'KeyPermission'
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ end
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,54 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Storage
7
+ module Models
8
+ #
9
+ # The ListKeys operation response.
10
+ #
11
+ class StorageAccountListKeysResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<StorageAccountKey>] Gets the list of account keys and
16
+ # their properties.
17
+ attr_accessor :keys
18
+
19
+
20
+ #
21
+ # Mapper for StorageAccountListKeysResult class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'StorageAccountListKeysResult',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'StorageAccountListKeysResult',
31
+ model_properties: {
32
+ keys: {
33
+ required: false,
34
+ read_only: true,
35
+ serialized_name: 'keys',
36
+ type: {
37
+ name: 'Sequence',
38
+ element: {
39
+ required: false,
40
+ serialized_name: 'StorageAccountKeyElementType',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'StorageAccountKey'
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,54 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Storage
7
+ module Models
8
+ #
9
+ # The list storage accounts operation response.
10
+ #
11
+ class StorageAccountListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<StorageAccount>] Gets the list of storage accounts and
16
+ # their properties.
17
+ attr_accessor :value
18
+
19
+
20
+ #
21
+ # Mapper for StorageAccountListResult class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'StorageAccountListResult',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'StorageAccountListResult',
31
+ model_properties: {
32
+ value: {
33
+ required: false,
34
+ read_only: true,
35
+ serialized_name: 'value',
36
+ type: {
37
+ name: 'Sequence',
38
+ element: {
39
+ required: false,
40
+ serialized_name: 'StorageAccountElementType',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'StorageAccount'
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,44 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Storage
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ class StorageAccountRegenerateKeyParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String]
16
+ attr_accessor :key_name
17
+
18
+
19
+ #
20
+ # Mapper for StorageAccountRegenerateKeyParameters class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ required: false,
26
+ serialized_name: 'StorageAccountRegenerateKeyParameters',
27
+ type: {
28
+ name: 'Composite',
29
+ class_name: 'StorageAccountRegenerateKeyParameters',
30
+ model_properties: {
31
+ key_name: {
32
+ required: true,
33
+ serialized_name: 'keyName',
34
+ type: {
35
+ name: 'String'
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,108 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Storage
7
+ module Models
8
+ #
9
+ # The parameters to provide for the account.
10
+ #
11
+ class StorageAccountUpdateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Sku] Gets or sets the sku type. Note that sku cannot be
16
+ # updated to StandardZRS or ProvisionedLRS, nor can accounts of that
17
+ # sku type be updated to any other value.
18
+ attr_accessor :sku
19
+
20
+ # @return [Hash{String => String}] Gets or sets a list of key value
21
+ # pairs that describe the resource. These tags can be used in viewing
22
+ # and grouping this resource (across resource groups). A maximum of 15
23
+ # tags can be provided for a resource. Each tag must have a key no
24
+ # greater than 128 characters and value no greater than 256 characters.
25
+ attr_accessor :tags
26
+
27
+ # @return [CustomDomain] User domain assigned to the storage account.
28
+ # Name is the CNAME source. Only one custom domain is supported per
29
+ # storage account at this time. To clear the existing custom domain,
30
+ # use an empty string for the custom domain name property.
31
+ attr_accessor :custom_domain
32
+
33
+ # @return [Encryption] Provides the encryption settings on the account.
34
+ # The default setting is unencrypted.
35
+ attr_accessor :encryption
36
+
37
+ # @return [AccessTier] The access tier used for billing. Access tier
38
+ # cannot be changed more than once every 7 days (168 hours). Access
39
+ # tier cannot be set for StandardLRS, StandardGRS, StandardRAGRS, or
40
+ # PremiumLRS account types. Possible values include: 'Hot', 'Cool'
41
+ attr_accessor :access_tier
42
+
43
+
44
+ #
45
+ # Mapper for StorageAccountUpdateParameters class as Ruby Hash.
46
+ # This will be used for serialization/deserialization.
47
+ #
48
+ def self.mapper()
49
+ {
50
+ required: false,
51
+ serialized_name: 'StorageAccountUpdateParameters',
52
+ type: {
53
+ name: 'Composite',
54
+ class_name: 'StorageAccountUpdateParameters',
55
+ model_properties: {
56
+ sku: {
57
+ required: false,
58
+ serialized_name: 'sku',
59
+ type: {
60
+ name: 'Composite',
61
+ class_name: 'Sku'
62
+ }
63
+ },
64
+ tags: {
65
+ required: false,
66
+ serialized_name: 'tags',
67
+ type: {
68
+ name: 'Dictionary',
69
+ value: {
70
+ required: false,
71
+ serialized_name: 'StringElementType',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ }
76
+ }
77
+ },
78
+ custom_domain: {
79
+ required: false,
80
+ serialized_name: 'properties.customDomain',
81
+ type: {
82
+ name: 'Composite',
83
+ class_name: 'CustomDomain'
84
+ }
85
+ },
86
+ encryption: {
87
+ required: false,
88
+ serialized_name: 'properties.encryption',
89
+ type: {
90
+ name: 'Composite',
91
+ class_name: 'Encryption'
92
+ }
93
+ },
94
+ access_tier: {
95
+ required: false,
96
+ serialized_name: 'properties.accessTier',
97
+ type: {
98
+ name: 'Enum',
99
+ module: 'AccessTier'
100
+ }
101
+ }
102
+ }
103
+ }
104
+ }
105
+ end
106
+ end
107
+ end
108
+ end