azure_mgmt_storagecache 0.17.0 → 0.19.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache.rb +1 -2
- data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/caches.rb +1 -1
- data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/operations.rb +1 -1
- data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/skus.rb +1 -1
- data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/{storage_cache_mgmt_client.rb → storage_cache_management_client.rb} +8 -4
- data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/storage_targets.rb +1 -1
- data/lib/2019-08-01-preview/generated/azure_mgmt_storagecache/usage_models.rb +1 -1
- data/lib/2019-11-01/generated/azure_mgmt_storagecache.rb +60 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/caches.rb +1477 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/api_operation.rb +59 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/api_operation_display.rb +69 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/api_operation_list_result.rb +101 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache.rb +188 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache_health.rb +60 -0
- data/lib/{2019-08-01-preview/generated/azure_mgmt_storagecache/models/cloud_error.rb → 2019-11-01/generated/azure_mgmt_storagecache/models/cache_sku.rb} +11 -12
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/cache_upgrade_status.rb +101 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/caches_list_result.rb +100 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/clfs_target.rb +46 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/cloud_error_body.rb +92 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/firmware_status_type.rb +16 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/health_state_type.rb +23 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/namespace_junction.rb +68 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/nfs3target.rb +62 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/provisioning_state_type.rb +20 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/reason_code.rb +16 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/resource_sku.rb +143 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/resource_sku_capabilities.rb +57 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/resource_sku_location_info.rb +65 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/resource_skus_result.rb +100 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/restriction.rb +86 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/storage_target.rb +155 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/storage_target_type.rb +17 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/storage_targets_result.rb +99 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/unknown_target.rb +55 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/usage_model.rb +71 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/usage_model_display.rb +46 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/models/usage_models_result.rb +99 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/module_definition.rb +9 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/operations.rb +221 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/skus.rb +223 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/storage_cache_management_client.rb +153 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/storage_targets.rb +670 -0
- data/lib/2019-11-01/generated/azure_mgmt_storagecache/usage_models.rb +223 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache.rb +72 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/caches.rb +1513 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/api_operation.rb +59 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/api_operation_display.rb +69 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/api_operation_list_result.rb +101 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache.rb +238 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache_encryption_settings.rb +48 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache_health.rb +60 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache_identity.rb +72 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache_identity_type.rb +16 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache_network_settings.rb +73 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache_security_settings.rb +46 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache_sku.rb +46 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cache_upgrade_status.rb +101 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/caches_list_result.rb +100 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/clfs_target.rb +46 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/clfs_target_properties.rb +110 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/cloud_error_body.rb +92 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/firmware_status_type.rb +16 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/health_state_type.rb +23 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/key_vault_key_reference.rb +59 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/key_vault_key_reference_source_vault.rb +46 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/namespace_junction.rb +68 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/nfs3target.rb +62 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/nfs3target_properties.rb +110 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/provisioning_state_type.rb +20 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/reason_code.rb +16 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/resource_sku.rb +143 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/resource_sku_capabilities.rb +57 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/resource_sku_location_info.rb +65 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/resource_skus_result.rb +100 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/restriction.rb +86 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/storage_target.rb +155 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/storage_target_properties.rb +130 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/storage_target_resource.rb +72 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/storage_target_type.rb +17 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/storage_targets_result.rb +99 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/unknown_target.rb +55 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/unknown_target_properties.rb +110 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/usage_model.rb +71 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/usage_model_display.rb +46 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/models/usage_models_result.rb +99 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/module_definition.rb +9 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/operations.rb +221 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/skus.rb +223 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/storage_cache_management_client.rb +153 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/storage_targets.rb +703 -0
- data/lib/2020-03-01/generated/azure_mgmt_storagecache/usage_models.rb +223 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache.rb +92 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/asc_operations.rb +127 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/caches.rb +1580 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/api_operation.rb +95 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/api_operation_display.rb +80 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/api_operation_list_result.rb +101 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/api_operation_properties_service_specification.rb +57 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/asc_operation.rb +121 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache.rb +264 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_active_directory_settings.rb +124 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_active_directory_settings_credentials.rb +61 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_directory_settings.rb +62 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_encryption_settings.rb +48 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_health.rb +60 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_identity.rb +72 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_identity_type.rb +16 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_network_settings.rb +73 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_security_settings.rb +56 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_sku.rb +46 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_upgrade_status.rb +101 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_username_download_settings.rb +186 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cache_username_download_settings_credentials.rb +61 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/caches_list_result.rb +100 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/clfs_target.rb +46 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/clfs_target_properties.rb +102 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/cloud_error_body.rb +92 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/created_by_type.rb +18 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/domain_joined_type.rb +17 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/error_response.rb +57 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/firmware_status_type.rb +16 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/health_state_type.rb +23 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/key_vault_key_reference.rb +59 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/key_vault_key_reference_source_vault.rb +46 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/metric_aggregation_type.rb +21 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/metric_dimension.rb +79 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/metric_specification.rb +140 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/namespace_junction.rb +79 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs3target.rb +62 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs3target_properties.rb +102 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_policy.rb +69 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_rule.rb +139 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_rule_access.rb +17 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/nfs_access_rule_scope.rb +17 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/provisioning_state_type.rb +20 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/reason_code.rb +16 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/resource_sku.rb +143 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/resource_sku_capabilities.rb +57 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/resource_sku_location_info.rb +65 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/resource_skus_result.rb +100 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/restriction.rb +86 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/storage_target.rb +163 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/storage_target_properties.rb +119 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/storage_target_resource.rb +97 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/storage_targets_result.rb +99 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/system_data.rb +105 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/unknown_target.rb +55 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/unknown_target_properties.rb +102 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/usage_model.rb +71 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/usage_model_display.rb +46 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/usage_models_result.rb +99 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/username_downloaded_type.rb +17 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/models/username_source.rb +18 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/module_definition.rb +9 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/operations.rb +221 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/skus.rb +223 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/storage_cache_management_client.rb +157 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/storage_targets.rb +691 -0
- data/lib/2020-10-01/generated/azure_mgmt_storagecache/usage_models.rb +223 -0
- data/lib/azure_mgmt_storagecache.rb +3 -0
- data/lib/profiles/latest/modules/storagecache_profile_module.rb +208 -86
- data/lib/version.rb +1 -1
- metadata +158 -7
@@ -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
|
@@ -0,0 +1,55 @@
|
|
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
|
+
# Storage container for use as an Unknown Storage Target.
|
10
|
+
#
|
11
|
+
class UnknownTarget
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Hash{String => String}] Dictionary of string->string pairs
|
16
|
+
# containing information about the Storage Target.
|
17
|
+
attr_accessor :unknown_map
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for UnknownTarget class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
client_side_validation: true,
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'unknown',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'UnknownTarget',
|
32
|
+
model_properties: {
|
33
|
+
unknown_map: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'unknownMap',
|
37
|
+
type: {
|
38
|
+
name: 'Dictionary',
|
39
|
+
value: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'StringElementType',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,71 @@
|
|
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 usage model.
|
10
|
+
#
|
11
|
+
class UsageModel
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [UsageModelDisplay] Localized information describing this usage
|
16
|
+
# model.
|
17
|
+
attr_accessor :display
|
18
|
+
|
19
|
+
# @return [String] Non-localized keyword name for this usage model.
|
20
|
+
attr_accessor :model_name
|
21
|
+
|
22
|
+
# @return [String] The type of Storage Target to which this model is
|
23
|
+
# applicable (only nfs3 as of this version).
|
24
|
+
attr_accessor :target_type
|
25
|
+
|
26
|
+
|
27
|
+
#
|
28
|
+
# Mapper for UsageModel class as Ruby Hash.
|
29
|
+
# This will be used for serialization/deserialization.
|
30
|
+
#
|
31
|
+
def self.mapper()
|
32
|
+
{
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'UsageModel',
|
36
|
+
type: {
|
37
|
+
name: 'Composite',
|
38
|
+
class_name: 'UsageModel',
|
39
|
+
model_properties: {
|
40
|
+
display: {
|
41
|
+
client_side_validation: true,
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'display',
|
44
|
+
type: {
|
45
|
+
name: 'Composite',
|
46
|
+
class_name: 'UsageModelDisplay'
|
47
|
+
}
|
48
|
+
},
|
49
|
+
model_name: {
|
50
|
+
client_side_validation: true,
|
51
|
+
required: false,
|
52
|
+
serialized_name: 'modelName',
|
53
|
+
type: {
|
54
|
+
name: 'String'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
target_type: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'targetType',
|
61
|
+
type: {
|
62
|
+
name: 'String'
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|