azure_mgmt_storage 0.19.2 → 0.19.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-05-01-preview/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2016-01-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2016-12-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2017-06-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2017-10-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2018-02-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2018-07-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2018-11-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2019-04-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2019-06-01/generated/azure_mgmt_storage.rb +45 -39
- data/lib/2019-06-01/generated/azure_mgmt_storage/encryption_scopes.rb +691 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/blob_service_properties.rb +25 -1
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/encryption_scope.rb +129 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/encryption_scope_key_vault_properties.rb +51 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/encryption_scope_list_result.rb +103 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/encryption_scope_source.rb +16 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/encryption_scope_state.rb +16 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/immutability_policy.rb +17 -1
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/immutability_policy_properties.rb +17 -1
- data/lib/2019-06-01/generated/azure_mgmt_storage/storage_management_client.rb +5 -1
- data/lib/profiles/latest/modules/storage_profile_module.rb +153 -131
- data/lib/version.rb +1 -1
- metadata +8 -2
@@ -28,7 +28,10 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
28
28
|
# soft delete.
|
29
29
|
attr_accessor :delete_retention_policy
|
30
30
|
|
31
|
-
# @return [Boolean]
|
31
|
+
# @return [Boolean] Versioning is enabled if set to true.
|
32
|
+
attr_accessor :is_versioning_enabled
|
33
|
+
|
34
|
+
# @return [Boolean] Deprecated in favor of isVersioningEnabled property.
|
32
35
|
attr_accessor :automatic_snapshot_policy_enabled
|
33
36
|
|
34
37
|
# @return [ChangeFeed] The blob service properties for change feed
|
@@ -39,6 +42,10 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
39
42
|
# restore policy.
|
40
43
|
attr_accessor :restore_policy
|
41
44
|
|
45
|
+
# @return [DeleteRetentionPolicy] The blob service properties for
|
46
|
+
# container soft delete.
|
47
|
+
attr_accessor :container_delete_retention_policy
|
48
|
+
|
42
49
|
# @return [Sku] Sku name and tier.
|
43
50
|
attr_accessor :sku
|
44
51
|
|
@@ -109,6 +116,14 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
109
116
|
class_name: 'DeleteRetentionPolicy'
|
110
117
|
}
|
111
118
|
},
|
119
|
+
is_versioning_enabled: {
|
120
|
+
client_side_validation: true,
|
121
|
+
required: false,
|
122
|
+
serialized_name: 'properties.isVersioningEnabled',
|
123
|
+
type: {
|
124
|
+
name: 'Boolean'
|
125
|
+
}
|
126
|
+
},
|
112
127
|
automatic_snapshot_policy_enabled: {
|
113
128
|
client_side_validation: true,
|
114
129
|
required: false,
|
@@ -135,6 +150,15 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
135
150
|
class_name: 'RestorePolicyProperties'
|
136
151
|
}
|
137
152
|
},
|
153
|
+
container_delete_retention_policy: {
|
154
|
+
client_side_validation: true,
|
155
|
+
required: false,
|
156
|
+
serialized_name: 'properties.containerDeleteRetentionPolicy',
|
157
|
+
type: {
|
158
|
+
name: 'Composite',
|
159
|
+
class_name: 'DeleteRetentionPolicy'
|
160
|
+
}
|
161
|
+
},
|
138
162
|
sku: {
|
139
163
|
client_side_validation: true,
|
140
164
|
required: false,
|
@@ -0,0 +1,129 @@
|
|
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::Storage::Mgmt::V2019_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The Encryption Scope resource.
|
10
|
+
#
|
11
|
+
class EncryptionScope < Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [EncryptionScopeSource] The provider for the encryption scope.
|
16
|
+
# Possible values (case-insensitive): Microsoft.Storage,
|
17
|
+
# Microsoft.KeyVault. Possible values include: 'Microsoft.Storage',
|
18
|
+
# 'Microsoft.KeyVault'
|
19
|
+
attr_accessor :source
|
20
|
+
|
21
|
+
# @return [EncryptionScopeState] The state of the encryption scope.
|
22
|
+
# Possible values (case-insensitive): Enabled, Disabled. Possible values
|
23
|
+
# include: 'Enabled', 'Disabled'
|
24
|
+
attr_accessor :state
|
25
|
+
|
26
|
+
# @return [DateTime] Gets the creation date and time of the encryption
|
27
|
+
# scope in UTC.
|
28
|
+
attr_accessor :creation_time
|
29
|
+
|
30
|
+
# @return [DateTime] Gets the last modification date and time of the
|
31
|
+
# encryption scope in UTC.
|
32
|
+
attr_accessor :last_modified_time
|
33
|
+
|
34
|
+
# @return [EncryptionScopeKeyVaultProperties] The key vault properties
|
35
|
+
# for the encryption scope. This is a required field if encryption scope
|
36
|
+
# 'source' attribute is set to 'Microsoft.KeyVault'.
|
37
|
+
attr_accessor :key_vault_properties
|
38
|
+
|
39
|
+
|
40
|
+
#
|
41
|
+
# Mapper for EncryptionScope class as Ruby Hash.
|
42
|
+
# This will be used for serialization/deserialization.
|
43
|
+
#
|
44
|
+
def self.mapper()
|
45
|
+
{
|
46
|
+
client_side_validation: true,
|
47
|
+
required: false,
|
48
|
+
serialized_name: 'EncryptionScope',
|
49
|
+
type: {
|
50
|
+
name: 'Composite',
|
51
|
+
class_name: 'EncryptionScope',
|
52
|
+
model_properties: {
|
53
|
+
id: {
|
54
|
+
client_side_validation: true,
|
55
|
+
required: false,
|
56
|
+
read_only: true,
|
57
|
+
serialized_name: 'id',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
},
|
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
|
+
type: {
|
72
|
+
client_side_validation: true,
|
73
|
+
required: false,
|
74
|
+
read_only: true,
|
75
|
+
serialized_name: 'type',
|
76
|
+
type: {
|
77
|
+
name: 'String'
|
78
|
+
}
|
79
|
+
},
|
80
|
+
source: {
|
81
|
+
client_side_validation: true,
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'properties.source',
|
84
|
+
type: {
|
85
|
+
name: 'String'
|
86
|
+
}
|
87
|
+
},
|
88
|
+
state: {
|
89
|
+
client_side_validation: true,
|
90
|
+
required: false,
|
91
|
+
serialized_name: 'properties.state',
|
92
|
+
type: {
|
93
|
+
name: 'String'
|
94
|
+
}
|
95
|
+
},
|
96
|
+
creation_time: {
|
97
|
+
client_side_validation: true,
|
98
|
+
required: false,
|
99
|
+
read_only: true,
|
100
|
+
serialized_name: 'properties.creationTime',
|
101
|
+
type: {
|
102
|
+
name: 'DateTime'
|
103
|
+
}
|
104
|
+
},
|
105
|
+
last_modified_time: {
|
106
|
+
client_side_validation: true,
|
107
|
+
required: false,
|
108
|
+
read_only: true,
|
109
|
+
serialized_name: 'properties.lastModifiedTime',
|
110
|
+
type: {
|
111
|
+
name: 'DateTime'
|
112
|
+
}
|
113
|
+
},
|
114
|
+
key_vault_properties: {
|
115
|
+
client_side_validation: true,
|
116
|
+
required: false,
|
117
|
+
serialized_name: 'properties.keyVaultProperties',
|
118
|
+
type: {
|
119
|
+
name: 'Composite',
|
120
|
+
class_name: 'EncryptionScopeKeyVaultProperties'
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
}
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
data/lib/2019-06-01/generated/azure_mgmt_storage/models/encryption_scope_key_vault_properties.rb
ADDED
@@ -0,0 +1,51 @@
|
|
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::Storage::Mgmt::V2019_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The key vault properties for the encryption scope. This is a required
|
10
|
+
# field if encryption scope 'source' attribute is set to
|
11
|
+
# 'Microsoft.KeyVault'.
|
12
|
+
#
|
13
|
+
class EncryptionScopeKeyVaultProperties
|
14
|
+
|
15
|
+
include MsRestAzure
|
16
|
+
|
17
|
+
# @return [String] The object identifier for a key vault key object. When
|
18
|
+
# applied, the encryption scope will use the key referenced by the
|
19
|
+
# identifier to enable customer-managed key support on this encryption
|
20
|
+
# scope.
|
21
|
+
attr_accessor :key_uri
|
22
|
+
|
23
|
+
|
24
|
+
#
|
25
|
+
# Mapper for EncryptionScopeKeyVaultProperties class as Ruby Hash.
|
26
|
+
# This will be used for serialization/deserialization.
|
27
|
+
#
|
28
|
+
def self.mapper()
|
29
|
+
{
|
30
|
+
client_side_validation: true,
|
31
|
+
required: false,
|
32
|
+
serialized_name: 'EncryptionScopeKeyVaultProperties',
|
33
|
+
type: {
|
34
|
+
name: 'Composite',
|
35
|
+
class_name: 'EncryptionScopeKeyVaultProperties',
|
36
|
+
model_properties: {
|
37
|
+
key_uri: {
|
38
|
+
client_side_validation: true,
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'keyUri',
|
41
|
+
type: {
|
42
|
+
name: 'String'
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,103 @@
|
|
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::Storage::Mgmt::V2019_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# List of encryption scopes requested, and if paging is required, a URL to
|
10
|
+
# the next page of encryption scopes.
|
11
|
+
#
|
12
|
+
class EncryptionScopeListResult
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
include MsRest::JSONable
|
17
|
+
# @return [Array<EncryptionScope>] List of encryption scopes requested.
|
18
|
+
attr_accessor :value
|
19
|
+
|
20
|
+
# @return [String] Request URL that can be used to query next page of
|
21
|
+
# encryption scopes. Returned when total number of requested encryption
|
22
|
+
# scopes exceeds the maximum page size.
|
23
|
+
attr_accessor :next_link
|
24
|
+
|
25
|
+
# return [Proc] with next page method call.
|
26
|
+
attr_accessor :next_method
|
27
|
+
|
28
|
+
#
|
29
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
30
|
+
#
|
31
|
+
# @return [Array<EncryptionScope>] operation results.
|
32
|
+
#
|
33
|
+
def get_all_items
|
34
|
+
items = @value
|
35
|
+
page = self
|
36
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
37
|
+
page = page.get_next_page
|
38
|
+
items.concat(page.value)
|
39
|
+
end
|
40
|
+
items
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# Gets the next page of results.
|
45
|
+
#
|
46
|
+
# @return [EncryptionScopeListResult] with next page content.
|
47
|
+
#
|
48
|
+
def get_next_page
|
49
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
50
|
+
unless response.nil?
|
51
|
+
@next_link = response.body.next_link
|
52
|
+
@value = response.body.value
|
53
|
+
self
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Mapper for EncryptionScopeListResult class as Ruby Hash.
|
59
|
+
# This will be used for serialization/deserialization.
|
60
|
+
#
|
61
|
+
def self.mapper()
|
62
|
+
{
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
serialized_name: 'EncryptionScopeListResult',
|
66
|
+
type: {
|
67
|
+
name: 'Composite',
|
68
|
+
class_name: 'EncryptionScopeListResult',
|
69
|
+
model_properties: {
|
70
|
+
value: {
|
71
|
+
client_side_validation: true,
|
72
|
+
required: false,
|
73
|
+
read_only: true,
|
74
|
+
serialized_name: 'value',
|
75
|
+
type: {
|
76
|
+
name: 'Sequence',
|
77
|
+
element: {
|
78
|
+
client_side_validation: true,
|
79
|
+
required: false,
|
80
|
+
serialized_name: 'EncryptionScopeElementType',
|
81
|
+
type: {
|
82
|
+
name: 'Composite',
|
83
|
+
class_name: 'EncryptionScope'
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
},
|
88
|
+
next_link: {
|
89
|
+
client_side_validation: true,
|
90
|
+
required: false,
|
91
|
+
read_only: true,
|
92
|
+
serialized_name: 'nextLink',
|
93
|
+
type: {
|
94
|
+
name: 'String'
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
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::Storage::Mgmt::V2019_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for EncryptionScopeSource
|
10
|
+
#
|
11
|
+
module EncryptionScopeSource
|
12
|
+
MicrosoftStorage = "Microsoft.Storage"
|
13
|
+
MicrosoftKeyVault = "Microsoft.KeyVault"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
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::Storage::Mgmt::V2019_06_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for EncryptionScopeState
|
10
|
+
#
|
11
|
+
module EncryptionScopeState
|
12
|
+
Enabled = "Enabled"
|
13
|
+
Disabled = "Disabled"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -22,6 +22,14 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
22
22
|
# values include: 'Locked', 'Unlocked'
|
23
23
|
attr_accessor :state
|
24
24
|
|
25
|
+
# @return [Boolean] This property can only be changed for unlocked
|
26
|
+
# time-based retention policies. When enabled, new blocks can be written
|
27
|
+
# to an append blob while maintaining immutability protection and
|
28
|
+
# compliance. Only new blocks can be added and any existing blocks cannot
|
29
|
+
# be modified or deleted. This property cannot be changed with
|
30
|
+
# ExtendImmutabilityPolicy API
|
31
|
+
attr_accessor :allow_protected_append_writes
|
32
|
+
|
25
33
|
|
26
34
|
#
|
27
35
|
# Mapper for ImmutabilityPolicy class as Ruby Hash.
|
@@ -74,7 +82,7 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
74
82
|
},
|
75
83
|
immutability_period_since_creation_in_days: {
|
76
84
|
client_side_validation: true,
|
77
|
-
required:
|
85
|
+
required: false,
|
78
86
|
serialized_name: 'properties.immutabilityPeriodSinceCreationInDays',
|
79
87
|
type: {
|
80
88
|
name: 'Number'
|
@@ -88,6 +96,14 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
88
96
|
type: {
|
89
97
|
name: 'String'
|
90
98
|
}
|
99
|
+
},
|
100
|
+
allow_protected_append_writes: {
|
101
|
+
client_side_validation: true,
|
102
|
+
required: false,
|
103
|
+
serialized_name: 'properties.allowProtectedAppendWrites',
|
104
|
+
type: {
|
105
|
+
name: 'Boolean'
|
106
|
+
}
|
91
107
|
}
|
92
108
|
}
|
93
109
|
}
|
@@ -21,6 +21,14 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
21
21
|
# values include: 'Locked', 'Unlocked'
|
22
22
|
attr_accessor :state
|
23
23
|
|
24
|
+
# @return [Boolean] This property can only be changed for unlocked
|
25
|
+
# time-based retention policies. When enabled, new blocks can be written
|
26
|
+
# to an append blob while maintaining immutability protection and
|
27
|
+
# compliance. Only new blocks can be added and any existing blocks cannot
|
28
|
+
# be modified or deleted. This property cannot be changed with
|
29
|
+
# ExtendImmutabilityPolicy API
|
30
|
+
attr_accessor :allow_protected_append_writes
|
31
|
+
|
24
32
|
# @return [String] ImmutabilityPolicy Etag.
|
25
33
|
attr_accessor :etag
|
26
34
|
|
@@ -44,7 +52,7 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
44
52
|
model_properties: {
|
45
53
|
immutability_period_since_creation_in_days: {
|
46
54
|
client_side_validation: true,
|
47
|
-
required:
|
55
|
+
required: false,
|
48
56
|
serialized_name: 'properties.immutabilityPeriodSinceCreationInDays',
|
49
57
|
type: {
|
50
58
|
name: 'Number'
|
@@ -59,6 +67,14 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
59
67
|
name: 'String'
|
60
68
|
}
|
61
69
|
},
|
70
|
+
allow_protected_append_writes: {
|
71
|
+
client_side_validation: true,
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'properties.allowProtectedAppendWrites',
|
74
|
+
type: {
|
75
|
+
name: 'Boolean'
|
76
|
+
}
|
77
|
+
},
|
62
78
|
etag: {
|
63
79
|
client_side_validation: true,
|
64
80
|
required: false,
|