azure_mgmt_storage 0.20.0 → 0.20.1
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 +51 -40
- data/lib/2019-06-01/generated/azure_mgmt_storage/file_shares.rb +156 -14
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/blob_restore_range.rb +4 -2
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/deleted_share.rb +59 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/enabled_protocols.rb +16 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/file_share.rb +129 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/file_share_item.rb +129 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/get_share_expand.rb +15 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/list_shares_expand.rb +15 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/object_replication_policies.rb +56 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/object_replication_policy.rb +131 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/object_replication_policy_filter.rb +70 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/object_replication_policy_rule.rb +82 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/restore_policy_properties.rb +13 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/root_squash_type.rb +17 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/models/share_access_tier.rb +18 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/object_replication_policies_operations.rb +495 -0
- data/lib/2019-06-01/generated/azure_mgmt_storage/storage_management_client.rb +6 -1
- data/lib/azure_mgmt_storage.rb +10 -10
- data/lib/profiles/latest/modules/storage_profile_module.rb +172 -130
- data/lib/version.rb +1 -1
- metadata +13 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 735726990c9e65f2b3a8d2c2be16139e802e915a1765975d2acee28675c6210d
|
4
|
+
data.tar.gz: 0ca491c061f28384225feb38a52dfbde6c922d6f74ac637152a9ef4a2de22a38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea16af8fca3075895968741b9a053d3708dd8d3d76a67ac7e8f51ce6e7d122f4bf5d1437b2152f5f48c1729901ac1065968b4142189d0290a11857af38ecf8f6
|
7
|
+
data.tar.gz: 78e1cf83d39156ee9757d971ed1ad901982c1ec3d2e2f2e244e21a25bb85a2e6ca85a4c66b088463615ad763cb2263e625d2dfc40ecd2c663e400c9ea8f41fbb
|
@@ -130,7 +130,7 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
|
|
130
130
|
#
|
131
131
|
def add_telemetry
|
132
132
|
sdk_information = 'azure_mgmt_storage'
|
133
|
-
sdk_information = "#{sdk_information}/0.20.
|
133
|
+
sdk_information = "#{sdk_information}/0.20.1"
|
134
134
|
add_user_agent_information(sdk_information)
|
135
135
|
end
|
136
136
|
end
|
@@ -130,7 +130,7 @@ module Azure::Storage::Mgmt::V2015_06_15
|
|
130
130
|
#
|
131
131
|
def add_telemetry
|
132
132
|
sdk_information = 'azure_mgmt_storage'
|
133
|
-
sdk_information = "#{sdk_information}/0.20.
|
133
|
+
sdk_information = "#{sdk_information}/0.20.1"
|
134
134
|
add_user_agent_information(sdk_information)
|
135
135
|
end
|
136
136
|
end
|
@@ -130,7 +130,7 @@ module Azure::Storage::Mgmt::V2016_01_01
|
|
130
130
|
#
|
131
131
|
def add_telemetry
|
132
132
|
sdk_information = 'azure_mgmt_storage'
|
133
|
-
sdk_information = "#{sdk_information}/0.20.
|
133
|
+
sdk_information = "#{sdk_information}/0.20.1"
|
134
134
|
add_user_agent_information(sdk_information)
|
135
135
|
end
|
136
136
|
end
|
@@ -130,7 +130,7 @@ module Azure::Storage::Mgmt::V2016_12_01
|
|
130
130
|
#
|
131
131
|
def add_telemetry
|
132
132
|
sdk_information = 'azure_mgmt_storage'
|
133
|
-
sdk_information = "#{sdk_information}/0.20.
|
133
|
+
sdk_information = "#{sdk_information}/0.20.1"
|
134
134
|
add_user_agent_information(sdk_information)
|
135
135
|
end
|
136
136
|
end
|
@@ -138,7 +138,7 @@ module Azure::Storage::Mgmt::V2017_06_01
|
|
138
138
|
#
|
139
139
|
def add_telemetry
|
140
140
|
sdk_information = 'azure_mgmt_storage'
|
141
|
-
sdk_information = "#{sdk_information}/0.20.
|
141
|
+
sdk_information = "#{sdk_information}/0.20.1"
|
142
142
|
add_user_agent_information(sdk_information)
|
143
143
|
end
|
144
144
|
end
|
@@ -138,7 +138,7 @@ module Azure::Storage::Mgmt::V2017_10_01
|
|
138
138
|
#
|
139
139
|
def add_telemetry
|
140
140
|
sdk_information = 'azure_mgmt_storage'
|
141
|
-
sdk_information = "#{sdk_information}/0.20.
|
141
|
+
sdk_information = "#{sdk_information}/0.20.1"
|
142
142
|
add_user_agent_information(sdk_information)
|
143
143
|
end
|
144
144
|
end
|
@@ -140,7 +140,7 @@ module Azure::Storage::Mgmt::V2018_02_01
|
|
140
140
|
#
|
141
141
|
def add_telemetry
|
142
142
|
sdk_information = 'azure_mgmt_storage'
|
143
|
-
sdk_information = "#{sdk_information}/0.20.
|
143
|
+
sdk_information = "#{sdk_information}/0.20.1"
|
144
144
|
add_user_agent_information(sdk_information)
|
145
145
|
end
|
146
146
|
end
|
@@ -140,7 +140,7 @@ module Azure::Storage::Mgmt::V2018_03_01_preview
|
|
140
140
|
#
|
141
141
|
def add_telemetry
|
142
142
|
sdk_information = 'azure_mgmt_storage'
|
143
|
-
sdk_information = "#{sdk_information}/0.20.
|
143
|
+
sdk_information = "#{sdk_information}/0.20.1"
|
144
144
|
add_user_agent_information(sdk_information)
|
145
145
|
end
|
146
146
|
end
|
@@ -144,7 +144,7 @@ module Azure::Storage::Mgmt::V2018_07_01
|
|
144
144
|
#
|
145
145
|
def add_telemetry
|
146
146
|
sdk_information = 'azure_mgmt_storage'
|
147
|
-
sdk_information = "#{sdk_information}/0.20.
|
147
|
+
sdk_information = "#{sdk_information}/0.20.1"
|
148
148
|
add_user_agent_information(sdk_information)
|
149
149
|
end
|
150
150
|
end
|
@@ -148,7 +148,7 @@ module Azure::Storage::Mgmt::V2018_11_01
|
|
148
148
|
#
|
149
149
|
def add_telemetry
|
150
150
|
sdk_information = 'azure_mgmt_storage'
|
151
|
-
sdk_information = "#{sdk_information}/0.20.
|
151
|
+
sdk_information = "#{sdk_information}/0.20.1"
|
152
152
|
add_user_agent_information(sdk_information)
|
153
153
|
end
|
154
154
|
end
|
@@ -156,7 +156,7 @@ module Azure::Storage::Mgmt::V2019_04_01
|
|
156
156
|
#
|
157
157
|
def add_telemetry
|
158
158
|
sdk_information = 'azure_mgmt_storage'
|
159
|
-
sdk_information = "#{sdk_information}/0.20.
|
159
|
+
sdk_information = "#{sdk_information}/0.20.1"
|
160
160
|
add_user_agent_information(sdk_information)
|
161
161
|
end
|
162
162
|
end
|
@@ -27,6 +27,7 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
27
27
|
autoload :ManagementPolicies, '2019-06-01/generated/azure_mgmt_storage/management_policies.rb'
|
28
28
|
autoload :PrivateEndpointConnections, '2019-06-01/generated/azure_mgmt_storage/private_endpoint_connections.rb'
|
29
29
|
autoload :PrivateLinkResources, '2019-06-01/generated/azure_mgmt_storage/private_link_resources.rb'
|
30
|
+
autoload :ObjectReplicationPoliciesOperations, '2019-06-01/generated/azure_mgmt_storage/object_replication_policies_operations.rb'
|
30
31
|
autoload :EncryptionScopes, '2019-06-01/generated/azure_mgmt_storage/encryption_scopes.rb'
|
31
32
|
autoload :BlobServices, '2019-06-01/generated/azure_mgmt_storage/blob_services.rb'
|
32
33
|
autoload :BlobContainers, '2019-06-01/generated/azure_mgmt_storage/blob_containers.rb'
|
@@ -35,88 +36,93 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
35
36
|
autoload :StorageManagementClient, '2019-06-01/generated/azure_mgmt_storage/storage_management_client.rb'
|
36
37
|
|
37
38
|
module Models
|
38
|
-
autoload :ListAccountSasResponse, '2019-06-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb'
|
39
|
-
autoload :ServiceSasParameters, '2019-06-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb'
|
40
|
-
autoload :Dimension, '2019-06-01/generated/azure_mgmt_storage/models/dimension.rb'
|
41
|
-
autoload :ListServiceSasResponse, '2019-06-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb'
|
42
|
-
autoload :ServiceSpecification, '2019-06-01/generated/azure_mgmt_storage/models/service_specification.rb'
|
43
39
|
autoload :DateAfterModification, '2019-06-01/generated/azure_mgmt_storage/models/date_after_modification.rb'
|
44
|
-
autoload :
|
40
|
+
autoload :OperationDisplay, '2019-06-01/generated/azure_mgmt_storage/models/operation_display.rb'
|
45
41
|
autoload :ManagementPolicyBaseBlob, '2019-06-01/generated/azure_mgmt_storage/models/management_policy_base_blob.rb'
|
46
|
-
autoload :
|
42
|
+
autoload :MetricSpecification, '2019-06-01/generated/azure_mgmt_storage/models/metric_specification.rb'
|
47
43
|
autoload :DateAfterCreation, '2019-06-01/generated/azure_mgmt_storage/models/date_after_creation.rb'
|
48
|
-
autoload :
|
44
|
+
autoload :Operation, '2019-06-01/generated/azure_mgmt_storage/models/operation.rb'
|
49
45
|
autoload :ManagementPolicySnapShot, '2019-06-01/generated/azure_mgmt_storage/models/management_policy_snap_shot.rb'
|
50
|
-
autoload :
|
46
|
+
autoload :StorageAccountCheckNameAvailabilityParameters, '2019-06-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb'
|
51
47
|
autoload :ManagementPolicyAction, '2019-06-01/generated/azure_mgmt_storage/models/management_policy_action.rb'
|
52
|
-
autoload :
|
48
|
+
autoload :Restriction, '2019-06-01/generated/azure_mgmt_storage/models/restriction.rb'
|
53
49
|
autoload :ManagementPolicyFilter, '2019-06-01/generated/azure_mgmt_storage/models/management_policy_filter.rb'
|
54
|
-
autoload :
|
50
|
+
autoload :StorageSkuListResult, '2019-06-01/generated/azure_mgmt_storage/models/storage_sku_list_result.rb'
|
55
51
|
autoload :ManagementPolicyDefinition, '2019-06-01/generated/azure_mgmt_storage/models/management_policy_definition.rb'
|
56
|
-
autoload :
|
52
|
+
autoload :CustomDomain, '2019-06-01/generated/azure_mgmt_storage/models/custom_domain.rb'
|
57
53
|
autoload :ManagementPolicyRule, '2019-06-01/generated/azure_mgmt_storage/models/management_policy_rule.rb'
|
58
|
-
autoload :
|
54
|
+
autoload :EncryptionServices, '2019-06-01/generated/azure_mgmt_storage/models/encryption_services.rb'
|
59
55
|
autoload :ManagementPolicySchema, '2019-06-01/generated/azure_mgmt_storage/models/management_policy_schema.rb'
|
60
|
-
autoload :
|
61
|
-
autoload :
|
62
|
-
autoload :
|
56
|
+
autoload :Encryption, '2019-06-01/generated/azure_mgmt_storage/models/encryption.rb'
|
57
|
+
autoload :OperationListResult, '2019-06-01/generated/azure_mgmt_storage/models/operation_list_result.rb'
|
58
|
+
autoload :IPRule, '2019-06-01/generated/azure_mgmt_storage/models/iprule.rb'
|
59
|
+
autoload :SKUCapability, '2019-06-01/generated/azure_mgmt_storage/models/skucapability.rb'
|
60
|
+
autoload :ActiveDirectoryProperties, '2019-06-01/generated/azure_mgmt_storage/models/active_directory_properties.rb'
|
61
|
+
autoload :SkuInformation, '2019-06-01/generated/azure_mgmt_storage/models/sku_information.rb'
|
62
|
+
autoload :RoutingPreference, '2019-06-01/generated/azure_mgmt_storage/models/routing_preference.rb'
|
63
|
+
autoload :CheckNameAvailabilityResult, '2019-06-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb'
|
63
64
|
autoload :Sku, '2019-06-01/generated/azure_mgmt_storage/models/sku.rb'
|
64
|
-
autoload :
|
65
|
+
autoload :EncryptionService, '2019-06-01/generated/azure_mgmt_storage/models/encryption_service.rb'
|
65
66
|
autoload :StorageAccountMicrosoftEndpoints, '2019-06-01/generated/azure_mgmt_storage/models/storage_account_microsoft_endpoints.rb'
|
66
|
-
autoload :
|
67
|
+
autoload :KeyVaultProperties, '2019-06-01/generated/azure_mgmt_storage/models/key_vault_properties.rb'
|
67
68
|
autoload :Endpoints, '2019-06-01/generated/azure_mgmt_storage/models/endpoints.rb'
|
68
|
-
autoload :
|
69
|
+
autoload :VirtualNetworkRule, '2019-06-01/generated/azure_mgmt_storage/models/virtual_network_rule.rb'
|
69
70
|
autoload :BlobRestoreRange, '2019-06-01/generated/azure_mgmt_storage/models/blob_restore_range.rb'
|
70
|
-
autoload :ActiveDirectoryProperties, '2019-06-01/generated/azure_mgmt_storage/models/active_directory_properties.rb'
|
71
71
|
autoload :BlobRestoreStatus, '2019-06-01/generated/azure_mgmt_storage/models/blob_restore_status.rb'
|
72
|
-
autoload :RoutingPreference, '2019-06-01/generated/azure_mgmt_storage/models/routing_preference.rb'
|
73
72
|
autoload :PrivateLinkServiceConnectionState, '2019-06-01/generated/azure_mgmt_storage/models/private_link_service_connection_state.rb'
|
73
|
+
autoload :PrivateLinkResourceListResult, '2019-06-01/generated/azure_mgmt_storage/models/private_link_resource_list_result.rb'
|
74
74
|
autoload :DeleteRetentionPolicy, '2019-06-01/generated/azure_mgmt_storage/models/delete_retention_policy.rb'
|
75
75
|
autoload :StorageAccountKey, '2019-06-01/generated/azure_mgmt_storage/models/storage_account_key.rb'
|
76
|
+
autoload :EncryptionScopeKeyVaultProperties, '2019-06-01/generated/azure_mgmt_storage/models/encryption_scope_key_vault_properties.rb'
|
76
77
|
autoload :StorageAccountListKeysResult, '2019-06-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb'
|
77
|
-
autoload :
|
78
|
+
autoload :FileShareItems, '2019-06-01/generated/azure_mgmt_storage/models/file_share_items.rb'
|
78
79
|
autoload :StorageAccountUpdateParameters, '2019-06-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb'
|
79
|
-
autoload :
|
80
|
+
autoload :EncryptionScopeListResult, '2019-06-01/generated/azure_mgmt_storage/models/encryption_scope_list_result.rb'
|
80
81
|
autoload :Usage, '2019-06-01/generated/azure_mgmt_storage/models/usage.rb'
|
81
|
-
autoload :
|
82
|
+
autoload :ObjectReplicationPolicyFilter, '2019-06-01/generated/azure_mgmt_storage/models/object_replication_policy_filter.rb'
|
82
83
|
autoload :AccountSasParameters, '2019-06-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb'
|
83
|
-
autoload :
|
84
|
-
autoload :
|
84
|
+
autoload :ObjectReplicationPolicyRule, '2019-06-01/generated/azure_mgmt_storage/models/object_replication_policy_rule.rb'
|
85
|
+
autoload :ServiceSasParameters, '2019-06-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb'
|
86
|
+
autoload :DeletedShare, '2019-06-01/generated/azure_mgmt_storage/models/deleted_share.rb'
|
87
|
+
autoload :Dimension, '2019-06-01/generated/azure_mgmt_storage/models/dimension.rb'
|
88
|
+
autoload :ObjectReplicationPolicies, '2019-06-01/generated/azure_mgmt_storage/models/object_replication_policies.rb'
|
89
|
+
autoload :NetworkRuleSet, '2019-06-01/generated/azure_mgmt_storage/models/network_rule_set.rb'
|
85
90
|
autoload :ErrorResponse, '2019-06-01/generated/azure_mgmt_storage/models/error_response.rb'
|
86
|
-
autoload :StorageAccountCheckNameAvailabilityParameters, '2019-06-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb'
|
87
|
-
autoload :FileServiceItems, '2019-06-01/generated/azure_mgmt_storage/models/file_service_items.rb'
|
88
91
|
autoload :Identity, '2019-06-01/generated/azure_mgmt_storage/models/identity.rb'
|
89
|
-
autoload :
|
92
|
+
autoload :FileServiceItems, '2019-06-01/generated/azure_mgmt_storage/models/file_service_items.rb'
|
90
93
|
autoload :StorageAccountInternetEndpoints, '2019-06-01/generated/azure_mgmt_storage/models/storage_account_internet_endpoints.rb'
|
91
|
-
autoload :
|
94
|
+
autoload :LeaseContainerResponse, '2019-06-01/generated/azure_mgmt_storage/models/lease_container_response.rb'
|
92
95
|
autoload :BlobRestoreParameters, '2019-06-01/generated/azure_mgmt_storage/models/blob_restore_parameters.rb'
|
93
|
-
autoload :
|
96
|
+
autoload :LeaseContainerRequest, '2019-06-01/generated/azure_mgmt_storage/models/lease_container_request.rb'
|
94
97
|
autoload :CorsRules, '2019-06-01/generated/azure_mgmt_storage/models/cors_rules.rb'
|
95
98
|
autoload :StorageAccountListResult, '2019-06-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb'
|
96
|
-
autoload :
|
99
|
+
autoload :Resource, '2019-06-01/generated/azure_mgmt_storage/models/resource.rb'
|
97
100
|
autoload :UsageName, '2019-06-01/generated/azure_mgmt_storage/models/usage_name.rb'
|
101
|
+
autoload :UpdateHistoryProperty, '2019-06-01/generated/azure_mgmt_storage/models/update_history_property.rb'
|
102
|
+
autoload :ListAccountSasResponse, '2019-06-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb'
|
98
103
|
autoload :ImmutabilityPolicyProperties, '2019-06-01/generated/azure_mgmt_storage/models/immutability_policy_properties.rb'
|
99
|
-
autoload :
|
104
|
+
autoload :ServiceSpecification, '2019-06-01/generated/azure_mgmt_storage/models/service_specification.rb'
|
100
105
|
autoload :TagProperty, '2019-06-01/generated/azure_mgmt_storage/models/tag_property.rb'
|
101
|
-
autoload :
|
106
|
+
autoload :StorageAccountCreateParameters, '2019-06-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb'
|
102
107
|
autoload :LegalHoldProperties, '2019-06-01/generated/azure_mgmt_storage/models/legal_hold_properties.rb'
|
103
|
-
autoload :
|
108
|
+
autoload :PrivateEndpoint, '2019-06-01/generated/azure_mgmt_storage/models/private_endpoint.rb'
|
104
109
|
autoload :BlobServiceItems, '2019-06-01/generated/azure_mgmt_storage/models/blob_service_items.rb'
|
105
|
-
autoload :
|
110
|
+
autoload :UsageListResult, '2019-06-01/generated/azure_mgmt_storage/models/usage_list_result.rb'
|
106
111
|
autoload :RestorePolicyProperties, '2019-06-01/generated/azure_mgmt_storage/models/restore_policy_properties.rb'
|
107
|
-
autoload :
|
112
|
+
autoload :AzureFilesIdentityBasedAuthentication, '2019-06-01/generated/azure_mgmt_storage/models/azure_files_identity_based_authentication.rb'
|
108
113
|
autoload :LegalHold, '2019-06-01/generated/azure_mgmt_storage/models/legal_hold.rb'
|
109
|
-
autoload :
|
114
|
+
autoload :StorageAccountRegenerateKeyParameters, '2019-06-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb'
|
110
115
|
autoload :ChangeFeed, '2019-06-01/generated/azure_mgmt_storage/models/change_feed.rb'
|
111
|
-
autoload :
|
116
|
+
autoload :GeoReplicationStats, '2019-06-01/generated/azure_mgmt_storage/models/geo_replication_stats.rb'
|
112
117
|
autoload :ListContainerItems, '2019-06-01/generated/azure_mgmt_storage/models/list_container_items.rb'
|
113
|
-
autoload :
|
118
|
+
autoload :ListServiceSasResponse, '2019-06-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb'
|
114
119
|
autoload :CorsRule, '2019-06-01/generated/azure_mgmt_storage/models/cors_rule.rb'
|
115
120
|
autoload :PrivateEndpointConnection, '2019-06-01/generated/azure_mgmt_storage/models/private_endpoint_connection.rb'
|
116
121
|
autoload :StorageAccount, '2019-06-01/generated/azure_mgmt_storage/models/storage_account.rb'
|
117
122
|
autoload :ManagementPolicy, '2019-06-01/generated/azure_mgmt_storage/models/management_policy.rb'
|
118
123
|
autoload :PrivateLinkResource, '2019-06-01/generated/azure_mgmt_storage/models/private_link_resource.rb'
|
119
124
|
autoload :EncryptionScope, '2019-06-01/generated/azure_mgmt_storage/models/encryption_scope.rb'
|
125
|
+
autoload :ObjectReplicationPolicy, '2019-06-01/generated/azure_mgmt_storage/models/object_replication_policy.rb'
|
120
126
|
autoload :ProxyResource, '2019-06-01/generated/azure_mgmt_storage/models/proxy_resource.rb'
|
121
127
|
autoload :TrackedResource, '2019-06-01/generated/azure_mgmt_storage/models/tracked_resource.rb'
|
122
128
|
autoload :AzureEntityResource, '2019-06-01/generated/azure_mgmt_storage/models/azure_entity_resource.rb'
|
@@ -163,7 +169,12 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
163
169
|
autoload :LeaseDuration, '2019-06-01/generated/azure_mgmt_storage/models/lease_duration.rb'
|
164
170
|
autoload :ImmutabilityPolicyState, '2019-06-01/generated/azure_mgmt_storage/models/immutability_policy_state.rb'
|
165
171
|
autoload :ImmutabilityPolicyUpdateType, '2019-06-01/generated/azure_mgmt_storage/models/immutability_policy_update_type.rb'
|
172
|
+
autoload :EnabledProtocols, '2019-06-01/generated/azure_mgmt_storage/models/enabled_protocols.rb'
|
173
|
+
autoload :RootSquashType, '2019-06-01/generated/azure_mgmt_storage/models/root_squash_type.rb'
|
174
|
+
autoload :ShareAccessTier, '2019-06-01/generated/azure_mgmt_storage/models/share_access_tier.rb'
|
166
175
|
autoload :StorageAccountExpand, '2019-06-01/generated/azure_mgmt_storage/models/storage_account_expand.rb'
|
167
176
|
autoload :ListKeyExpand, '2019-06-01/generated/azure_mgmt_storage/models/list_key_expand.rb'
|
177
|
+
autoload :ListSharesExpand, '2019-06-01/generated/azure_mgmt_storage/models/list_shares_expand.rb'
|
178
|
+
autoload :GetShareExpand, '2019-06-01/generated/azure_mgmt_storage/models/get_share_expand.rb'
|
168
179
|
end
|
169
180
|
end
|
@@ -33,13 +33,15 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
33
33
|
# can be included in the list.
|
34
34
|
# @param filter [String] Optional. When specified, only share names starting
|
35
35
|
# with the filter will be listed.
|
36
|
+
# @param expand [ListSharesExpand] Optional, used to expand the properties
|
37
|
+
# within share's properties. Possible values include: 'deleted'
|
36
38
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
37
39
|
# will be added to the HTTP request.
|
38
40
|
#
|
39
41
|
# @return [Array<FileShareItem>] operation results.
|
40
42
|
#
|
41
|
-
def list(resource_group_name, account_name, maxpagesize:nil, filter:nil, custom_headers:nil)
|
42
|
-
first_page = list_as_lazy(resource_group_name, account_name, maxpagesize:maxpagesize, filter:filter, custom_headers:custom_headers)
|
43
|
+
def list(resource_group_name, account_name, maxpagesize:nil, filter:nil, expand:nil, custom_headers:nil)
|
44
|
+
first_page = list_as_lazy(resource_group_name, account_name, maxpagesize:maxpagesize, filter:filter, expand:expand, custom_headers:custom_headers)
|
43
45
|
first_page.get_all_items
|
44
46
|
end
|
45
47
|
|
@@ -55,13 +57,15 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
55
57
|
# can be included in the list.
|
56
58
|
# @param filter [String] Optional. When specified, only share names starting
|
57
59
|
# with the filter will be listed.
|
60
|
+
# @param expand [ListSharesExpand] Optional, used to expand the properties
|
61
|
+
# within share's properties. Possible values include: 'deleted'
|
58
62
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
59
63
|
# will be added to the HTTP request.
|
60
64
|
#
|
61
65
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
62
66
|
#
|
63
|
-
def list_with_http_info(resource_group_name, account_name, maxpagesize:nil, filter:nil, custom_headers:nil)
|
64
|
-
list_async(resource_group_name, account_name, maxpagesize:maxpagesize, filter:filter, custom_headers:custom_headers).value!
|
67
|
+
def list_with_http_info(resource_group_name, account_name, maxpagesize:nil, filter:nil, expand:nil, custom_headers:nil)
|
68
|
+
list_async(resource_group_name, account_name, maxpagesize:maxpagesize, filter:filter, expand:expand, custom_headers:custom_headers).value!
|
65
69
|
end
|
66
70
|
|
67
71
|
#
|
@@ -76,12 +80,14 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
76
80
|
# can be included in the list.
|
77
81
|
# @param filter [String] Optional. When specified, only share names starting
|
78
82
|
# with the filter will be listed.
|
83
|
+
# @param expand [ListSharesExpand] Optional, used to expand the properties
|
84
|
+
# within share's properties. Possible values include: 'deleted'
|
79
85
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
80
86
|
# to the HTTP request.
|
81
87
|
#
|
82
88
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
83
89
|
#
|
84
|
-
def list_async(resource_group_name, account_name, maxpagesize:nil, filter:nil, custom_headers:nil)
|
90
|
+
def list_async(resource_group_name, account_name, maxpagesize:nil, filter:nil, expand:nil, custom_headers:nil)
|
85
91
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
86
92
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
87
93
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -108,7 +114,7 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
108
114
|
options = {
|
109
115
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
110
116
|
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
|
111
|
-
query_params: {'api-version' => @client.api_version,'$maxpagesize' => maxpagesize,'$filter' => filter},
|
117
|
+
query_params: {'api-version' => @client.api_version,'$maxpagesize' => maxpagesize,'$filter' => filter,'$expand' => expand},
|
112
118
|
headers: request_headers.merge(custom_headers || {}),
|
113
119
|
base_url: request_url
|
114
120
|
}
|
@@ -449,13 +455,15 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
449
455
|
# storage account. File share names must be between 3 and 63 characters in
|
450
456
|
# length and use numbers, lower-case letters and dash (-) only. Every dash (-)
|
451
457
|
# character must be immediately preceded and followed by a letter or number.
|
458
|
+
# @param expand [GetShareExpand] Optional, used to expand the properties within
|
459
|
+
# share's properties. Possible values include: 'stats'
|
452
460
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
453
461
|
# will be added to the HTTP request.
|
454
462
|
#
|
455
463
|
# @return [FileShare] operation results.
|
456
464
|
#
|
457
|
-
def get(resource_group_name, account_name, share_name, custom_headers:nil)
|
458
|
-
response = get_async(resource_group_name, account_name, share_name, custom_headers:custom_headers).value!
|
465
|
+
def get(resource_group_name, account_name, share_name, expand:nil, custom_headers:nil)
|
466
|
+
response = get_async(resource_group_name, account_name, share_name, expand:expand, custom_headers:custom_headers).value!
|
459
467
|
response.body unless response.nil?
|
460
468
|
end
|
461
469
|
|
@@ -471,13 +479,15 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
471
479
|
# storage account. File share names must be between 3 and 63 characters in
|
472
480
|
# length and use numbers, lower-case letters and dash (-) only. Every dash (-)
|
473
481
|
# character must be immediately preceded and followed by a letter or number.
|
482
|
+
# @param expand [GetShareExpand] Optional, used to expand the properties within
|
483
|
+
# share's properties. Possible values include: 'stats'
|
474
484
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
475
485
|
# will be added to the HTTP request.
|
476
486
|
#
|
477
487
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
478
488
|
#
|
479
|
-
def get_with_http_info(resource_group_name, account_name, share_name, custom_headers:nil)
|
480
|
-
get_async(resource_group_name, account_name, share_name, custom_headers:custom_headers).value!
|
489
|
+
def get_with_http_info(resource_group_name, account_name, share_name, expand:nil, custom_headers:nil)
|
490
|
+
get_async(resource_group_name, account_name, share_name, expand:expand, custom_headers:custom_headers).value!
|
481
491
|
end
|
482
492
|
|
483
493
|
#
|
@@ -492,12 +502,14 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
492
502
|
# storage account. File share names must be between 3 and 63 characters in
|
493
503
|
# length and use numbers, lower-case letters and dash (-) only. Every dash (-)
|
494
504
|
# character must be immediately preceded and followed by a letter or number.
|
505
|
+
# @param expand [GetShareExpand] Optional, used to expand the properties within
|
506
|
+
# share's properties. Possible values include: 'stats'
|
495
507
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
496
508
|
# to the HTTP request.
|
497
509
|
#
|
498
510
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
499
511
|
#
|
500
|
-
def get_async(resource_group_name, account_name, share_name, custom_headers:nil)
|
512
|
+
def get_async(resource_group_name, account_name, share_name, expand:nil, custom_headers:nil)
|
501
513
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
502
514
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
503
515
|
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
@@ -527,7 +539,7 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
527
539
|
options = {
|
528
540
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
529
541
|
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'shareName' => share_name,'subscriptionId' => @client.subscription_id},
|
530
|
-
query_params: {'api-version' => @client.api_version},
|
542
|
+
query_params: {'api-version' => @client.api_version,'$expand' => expand},
|
531
543
|
headers: request_headers.merge(custom_headers || {}),
|
532
544
|
base_url: request_url
|
533
545
|
}
|
@@ -676,6 +688,134 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
676
688
|
promise.execute
|
677
689
|
end
|
678
690
|
|
691
|
+
#
|
692
|
+
# Restore a file share within a valid retention days if share soft delete is
|
693
|
+
# enabled
|
694
|
+
#
|
695
|
+
# @param resource_group_name [String] The name of the resource group within the
|
696
|
+
# user's subscription. The name is case insensitive.
|
697
|
+
# @param account_name [String] The name of the storage account within the
|
698
|
+
# specified resource group. Storage account names must be between 3 and 24
|
699
|
+
# characters in length and use numbers and lower-case letters only.
|
700
|
+
# @param share_name [String] The name of the file share within the specified
|
701
|
+
# storage account. File share names must be between 3 and 63 characters in
|
702
|
+
# length and use numbers, lower-case letters and dash (-) only. Every dash (-)
|
703
|
+
# character must be immediately preceded and followed by a letter or number.
|
704
|
+
# @param deleted_share [DeletedShare]
|
705
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
706
|
+
# will be added to the HTTP request.
|
707
|
+
#
|
708
|
+
#
|
709
|
+
def restore(resource_group_name, account_name, share_name, deleted_share, custom_headers:nil)
|
710
|
+
response = restore_async(resource_group_name, account_name, share_name, deleted_share, custom_headers:custom_headers).value!
|
711
|
+
nil
|
712
|
+
end
|
713
|
+
|
714
|
+
#
|
715
|
+
# Restore a file share within a valid retention days if share soft delete is
|
716
|
+
# enabled
|
717
|
+
#
|
718
|
+
# @param resource_group_name [String] The name of the resource group within the
|
719
|
+
# user's subscription. The name is case insensitive.
|
720
|
+
# @param account_name [String] The name of the storage account within the
|
721
|
+
# specified resource group. Storage account names must be between 3 and 24
|
722
|
+
# characters in length and use numbers and lower-case letters only.
|
723
|
+
# @param share_name [String] The name of the file share within the specified
|
724
|
+
# storage account. File share names must be between 3 and 63 characters in
|
725
|
+
# length and use numbers, lower-case letters and dash (-) only. Every dash (-)
|
726
|
+
# character must be immediately preceded and followed by a letter or number.
|
727
|
+
# @param deleted_share [DeletedShare]
|
728
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
729
|
+
# will be added to the HTTP request.
|
730
|
+
#
|
731
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
732
|
+
#
|
733
|
+
def restore_with_http_info(resource_group_name, account_name, share_name, deleted_share, custom_headers:nil)
|
734
|
+
restore_async(resource_group_name, account_name, share_name, deleted_share, custom_headers:custom_headers).value!
|
735
|
+
end
|
736
|
+
|
737
|
+
#
|
738
|
+
# Restore a file share within a valid retention days if share soft delete is
|
739
|
+
# enabled
|
740
|
+
#
|
741
|
+
# @param resource_group_name [String] The name of the resource group within the
|
742
|
+
# user's subscription. The name is case insensitive.
|
743
|
+
# @param account_name [String] The name of the storage account within the
|
744
|
+
# specified resource group. Storage account names must be between 3 and 24
|
745
|
+
# characters in length and use numbers and lower-case letters only.
|
746
|
+
# @param share_name [String] The name of the file share within the specified
|
747
|
+
# storage account. File share names must be between 3 and 63 characters in
|
748
|
+
# length and use numbers, lower-case letters and dash (-) only. Every dash (-)
|
749
|
+
# character must be immediately preceded and followed by a letter or number.
|
750
|
+
# @param deleted_share [DeletedShare]
|
751
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
752
|
+
# to the HTTP request.
|
753
|
+
#
|
754
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
755
|
+
#
|
756
|
+
def restore_async(resource_group_name, account_name, share_name, deleted_share, custom_headers:nil)
|
757
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
758
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
759
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
760
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
761
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
762
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '24'" if !account_name.nil? && account_name.length > 24
|
763
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '3'" if !account_name.nil? && account_name.length < 3
|
764
|
+
fail ArgumentError, 'share_name is nil' if share_name.nil?
|
765
|
+
fail ArgumentError, "'share_name' should satisfy the constraint - 'MaxLength': '63'" if !share_name.nil? && share_name.length > 63
|
766
|
+
fail ArgumentError, "'share_name' should satisfy the constraint - 'MinLength': '3'" if !share_name.nil? && share_name.length < 3
|
767
|
+
fail ArgumentError, 'deleted_share is nil' if deleted_share.nil?
|
768
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
769
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
770
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
771
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
772
|
+
|
773
|
+
|
774
|
+
request_headers = {}
|
775
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
776
|
+
|
777
|
+
# Set Headers
|
778
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
779
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
780
|
+
|
781
|
+
# Serialize Request
|
782
|
+
request_mapper = Azure::Storage::Mgmt::V2019_06_01::Models::DeletedShare.mapper()
|
783
|
+
request_content = @client.serialize(request_mapper, deleted_share)
|
784
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
785
|
+
|
786
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}/restore'
|
787
|
+
|
788
|
+
request_url = @base_url || @client.base_url
|
789
|
+
|
790
|
+
options = {
|
791
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
792
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'shareName' => share_name,'subscriptionId' => @client.subscription_id},
|
793
|
+
query_params: {'api-version' => @client.api_version},
|
794
|
+
body: request_content,
|
795
|
+
headers: request_headers.merge(custom_headers || {}),
|
796
|
+
base_url: request_url
|
797
|
+
}
|
798
|
+
promise = @client.make_request_async(:post, path_template, options)
|
799
|
+
|
800
|
+
promise = promise.then do |result|
|
801
|
+
http_response = result.response
|
802
|
+
status_code = http_response.status
|
803
|
+
response_content = http_response.body
|
804
|
+
unless status_code == 200
|
805
|
+
error_model = JSON.load(response_content)
|
806
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
807
|
+
end
|
808
|
+
|
809
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
810
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
811
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
812
|
+
|
813
|
+
result
|
814
|
+
end
|
815
|
+
|
816
|
+
promise.execute
|
817
|
+
end
|
818
|
+
|
679
819
|
#
|
680
820
|
# Lists all shares.
|
681
821
|
#
|
@@ -778,13 +918,15 @@ module Azure::Storage::Mgmt::V2019_06_01
|
|
778
918
|
# can be included in the list.
|
779
919
|
# @param filter [String] Optional. When specified, only share names starting
|
780
920
|
# with the filter will be listed.
|
921
|
+
# @param expand [ListSharesExpand] Optional, used to expand the properties
|
922
|
+
# within share's properties. Possible values include: 'deleted'
|
781
923
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
782
924
|
# will be added to the HTTP request.
|
783
925
|
#
|
784
926
|
# @return [FileShareItems] which provide lazy access to pages of the response.
|
785
927
|
#
|
786
|
-
def list_as_lazy(resource_group_name, account_name, maxpagesize:nil, filter:nil, custom_headers:nil)
|
787
|
-
response = list_async(resource_group_name, account_name, maxpagesize:maxpagesize, filter:filter, custom_headers:custom_headers).value!
|
928
|
+
def list_as_lazy(resource_group_name, account_name, maxpagesize:nil, filter:nil, expand:nil, custom_headers:nil)
|
929
|
+
response = list_async(resource_group_name, account_name, maxpagesize:maxpagesize, filter:filter, expand:expand, custom_headers:custom_headers).value!
|
788
930
|
unless response.nil?
|
789
931
|
page = response.body
|
790
932
|
page.next_method = Proc.new do |next_page_link|
|