azure_mgmt_storage 0.17.8 → 0.17.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- 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.rb +25 -23
- data/lib/2018-02-01/generated/azure_mgmt_storage/blob_containers.rb +142 -0
- data/lib/2018-02-01/generated/azure_mgmt_storage/models/lease_container_request.rb +97 -0
- data/lib/2018-02-01/generated/azure_mgmt_storage/models/lease_container_response.rb +60 -0
- 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.rb +24 -22
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/blob_containers.rb +142 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/lease_container_request.rb +97 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/lease_container_response.rb +60 -0
- 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.rb +27 -25
- data/lib/2018-07-01/generated/azure_mgmt_storage/blob_containers.rb +142 -0
- data/lib/2018-07-01/generated/azure_mgmt_storage/models/lease_container_request.rb +97 -0
- data/lib/2018-07-01/generated/azure_mgmt_storage/models/lease_container_response.rb +60 -0
- data/lib/2018-07-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2018-11-01/generated/azure_mgmt_storage.rb +31 -29
- data/lib/2018-11-01/generated/azure_mgmt_storage/blob_containers.rb +153 -1
- data/lib/2018-11-01/generated/azure_mgmt_storage/models/lease_container_request.rb +97 -0
- data/lib/2018-11-01/generated/azure_mgmt_storage/models/lease_container_response.rb +60 -0
- data/lib/2018-11-01/generated/azure_mgmt_storage/storage_accounts.rb +97 -0
- data/lib/2018-11-01/generated/azure_mgmt_storage/storage_management_client.rb +1 -1
- data/lib/2019-04-01/generated/azure_mgmt_storage.rb +128 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/blob_containers.rb +1873 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/blob_services.rb +266 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/management_policies.rb +355 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/access_tier.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb +136 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/account_status.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/action.rb +15 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/azure_entity_resource.rb +75 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/blob_container.rb +217 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/blob_service_properties.rb +115 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/bypass.rb +18 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb +77 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/cors_rule.rb +128 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/cors_rules.rb +57 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/custom_domain.rb +60 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/date_after_creation.rb +50 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/date_after_modification.rb +50 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/default_action.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/delete_retention_policy.rb +64 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/dimension.rb +57 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/encryption.rb +74 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/encryption_service.rb +62 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/encryption_services.rb +89 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/endpoints.rb +108 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/geo_replication_stats.rb +85 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/geo_replication_status.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/http_protocol.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/identity.rb +72 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/immutability_policy.rb +98 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/immutability_policy_properties.rb +95 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/immutability_policy_state.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/immutability_policy_update_type.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/iprule.rb +61 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/key_permission.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/key_source.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/key_vault_properties.rb +68 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/kind.rb +19 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/lease_container_request.rb +97 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/lease_container_response.rb +60 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/lease_duration.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/lease_state.rb +19 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/lease_status.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/legal_hold.rb +71 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/legal_hold_properties.rb +72 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb +47 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/list_container_item.rb +216 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/list_container_items.rb +55 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb +47 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy.rb +89 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_action.rb +62 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_base_blob.rb +73 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_definition.rb +60 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_filter.rb +76 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_rule.rb +87 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_schema.rb +58 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_snap_shot.rb +47 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/metric_specification.rb +145 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/network_rule_set.rb +106 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/operation.rb +83 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/operation_display.rb +79 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/operation_list_result.rb +57 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/permissions.rb +22 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/provisioning_state.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/proxy_resource.rb +63 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/public_access.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/reason.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/reason_code.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/resource.rb +83 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/restriction.rb +85 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb +247 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/service_specification.rb +56 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/services.rb +18 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/signed_resource.rb +18 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/signed_resource_types.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/sku.rb +157 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/sku_name.rb +22 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/sku_tier.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/skucapability.rb +63 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/state.rb +19 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account.rb +374 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +63 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +202 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_expand.rb +15 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_key.rb +73 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb +57 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb +57 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +47 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +178 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/storage_sku_list_result.rb +57 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/tag_property.rb +97 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/tracked_resource.rb +92 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/update_history_property.rb +114 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/usage.rb +89 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/usage_list_result.rb +56 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/usage_name.rb +59 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/usage_unit.rb +20 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/models/virtual_network_rule.rb +75 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/module_definition.rb +9 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/operations.rb +108 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/skus.rb +114 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/storage_accounts.rb +1602 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/storage_management_client.rb +155 -0
- data/lib/2019-04-01/generated/azure_mgmt_storage/usages.rb +118 -0
- data/lib/azure_mgmt_storage.rb +1 -0
- data/lib/profiles/latest/modules/storage_profile_module.rb +232 -224
- data/lib/version.rb +1 -1
- metadata +115 -3
@@ -0,0 +1,115 @@
|
|
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_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The properties of a storage account’s Blob service.
|
10
|
+
#
|
11
|
+
class BlobServiceProperties < Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [CorsRules] Specifies CORS rules for the Blob service. You can
|
16
|
+
# include up to five CorsRule elements in the request. If no CorsRule
|
17
|
+
# elements are included in the request body, all CORS rules will be
|
18
|
+
# deleted, and CORS will be disabled for the Blob service.
|
19
|
+
attr_accessor :cors
|
20
|
+
|
21
|
+
# @return [String] DefaultServiceVersion indicates the default version to
|
22
|
+
# use for requests to the Blob service if an incoming request’s version
|
23
|
+
# is not specified. Possible values include version 2008-10-27 and all
|
24
|
+
# more recent versions.
|
25
|
+
attr_accessor :default_service_version
|
26
|
+
|
27
|
+
# @return [DeleteRetentionPolicy] The blob service properties for soft
|
28
|
+
# delete.
|
29
|
+
attr_accessor :delete_retention_policy
|
30
|
+
|
31
|
+
# @return [Boolean] Automatic Snapshot is enabled if set to true.
|
32
|
+
attr_accessor :automatic_snapshot_policy_enabled
|
33
|
+
|
34
|
+
|
35
|
+
#
|
36
|
+
# Mapper for BlobServiceProperties class as Ruby Hash.
|
37
|
+
# This will be used for serialization/deserialization.
|
38
|
+
#
|
39
|
+
def self.mapper()
|
40
|
+
{
|
41
|
+
client_side_validation: true,
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'BlobServiceProperties',
|
44
|
+
type: {
|
45
|
+
name: 'Composite',
|
46
|
+
class_name: 'BlobServiceProperties',
|
47
|
+
model_properties: {
|
48
|
+
id: {
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
read_only: true,
|
52
|
+
serialized_name: 'id',
|
53
|
+
type: {
|
54
|
+
name: 'String'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
name: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: false,
|
60
|
+
read_only: true,
|
61
|
+
serialized_name: 'name',
|
62
|
+
type: {
|
63
|
+
name: 'String'
|
64
|
+
}
|
65
|
+
},
|
66
|
+
type: {
|
67
|
+
client_side_validation: true,
|
68
|
+
required: false,
|
69
|
+
read_only: true,
|
70
|
+
serialized_name: 'type',
|
71
|
+
type: {
|
72
|
+
name: 'String'
|
73
|
+
}
|
74
|
+
},
|
75
|
+
cors: {
|
76
|
+
client_side_validation: true,
|
77
|
+
required: false,
|
78
|
+
serialized_name: 'properties.cors',
|
79
|
+
type: {
|
80
|
+
name: 'Composite',
|
81
|
+
class_name: 'CorsRules'
|
82
|
+
}
|
83
|
+
},
|
84
|
+
default_service_version: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'properties.defaultServiceVersion',
|
88
|
+
type: {
|
89
|
+
name: 'String'
|
90
|
+
}
|
91
|
+
},
|
92
|
+
delete_retention_policy: {
|
93
|
+
client_side_validation: true,
|
94
|
+
required: false,
|
95
|
+
serialized_name: 'properties.deleteRetentionPolicy',
|
96
|
+
type: {
|
97
|
+
name: 'Composite',
|
98
|
+
class_name: 'DeleteRetentionPolicy'
|
99
|
+
}
|
100
|
+
},
|
101
|
+
automatic_snapshot_policy_enabled: {
|
102
|
+
client_side_validation: true,
|
103
|
+
required: false,
|
104
|
+
serialized_name: 'properties.automaticSnapshotPolicyEnabled',
|
105
|
+
type: {
|
106
|
+
name: 'Boolean'
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|
@@ -0,0 +1,18 @@
|
|
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_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for Bypass
|
10
|
+
#
|
11
|
+
module Bypass
|
12
|
+
None = "None"
|
13
|
+
Logging = "Logging"
|
14
|
+
Metrics = "Metrics"
|
15
|
+
AzureServices = "AzureServices"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,77 @@
|
|
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_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The CheckNameAvailability operation response.
|
10
|
+
#
|
11
|
+
class CheckNameAvailabilityResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Boolean] Gets a boolean value that indicates whether the name
|
16
|
+
# is available for you to use. If true, the name is available. If false,
|
17
|
+
# the name has already been taken or is invalid and cannot be used.
|
18
|
+
attr_accessor :name_available
|
19
|
+
|
20
|
+
# @return [Reason] Gets the reason that a storage account name could not
|
21
|
+
# be used. The Reason element is only returned if NameAvailable is false.
|
22
|
+
# Possible values include: 'AccountNameInvalid', 'AlreadyExists'
|
23
|
+
attr_accessor :reason
|
24
|
+
|
25
|
+
# @return [String] Gets an error message explaining the Reason value in
|
26
|
+
# more detail.
|
27
|
+
attr_accessor :message
|
28
|
+
|
29
|
+
|
30
|
+
#
|
31
|
+
# Mapper for CheckNameAvailabilityResult class as Ruby Hash.
|
32
|
+
# This will be used for serialization/deserialization.
|
33
|
+
#
|
34
|
+
def self.mapper()
|
35
|
+
{
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'CheckNameAvailabilityResult',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'CheckNameAvailabilityResult',
|
42
|
+
model_properties: {
|
43
|
+
name_available: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
read_only: true,
|
47
|
+
serialized_name: 'nameAvailable',
|
48
|
+
type: {
|
49
|
+
name: 'Boolean'
|
50
|
+
}
|
51
|
+
},
|
52
|
+
reason: {
|
53
|
+
client_side_validation: true,
|
54
|
+
required: false,
|
55
|
+
read_only: true,
|
56
|
+
serialized_name: 'reason',
|
57
|
+
type: {
|
58
|
+
name: 'Enum',
|
59
|
+
module: 'Reason'
|
60
|
+
}
|
61
|
+
},
|
62
|
+
message: {
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
read_only: true,
|
66
|
+
serialized_name: 'message',
|
67
|
+
type: {
|
68
|
+
name: 'String'
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,128 @@
|
|
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_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Specifies a CORS rule for the Blob service.
|
10
|
+
#
|
11
|
+
class CorsRule
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<String>] Required if CorsRule element is present. A list
|
16
|
+
# of origin domains that will be allowed via CORS, or "*" to allow all
|
17
|
+
# domains
|
18
|
+
attr_accessor :allowed_origins
|
19
|
+
|
20
|
+
# @return [Array<Enum>] Required if CorsRule element is present. A list
|
21
|
+
# of HTTP methods that are allowed to be executed by the origin.
|
22
|
+
attr_accessor :allowed_methods
|
23
|
+
|
24
|
+
# @return [Integer] Required if CorsRule element is present. The number
|
25
|
+
# of seconds that the client/browser should cache a preflight response.
|
26
|
+
attr_accessor :max_age_in_seconds
|
27
|
+
|
28
|
+
# @return [Array<String>] Required if CorsRule element is present. A list
|
29
|
+
# of response headers to expose to CORS clients.
|
30
|
+
attr_accessor :exposed_headers
|
31
|
+
|
32
|
+
# @return [Array<String>] Required if CorsRule element is present. A list
|
33
|
+
# of headers allowed to be part of the cross-origin request.
|
34
|
+
attr_accessor :allowed_headers
|
35
|
+
|
36
|
+
|
37
|
+
#
|
38
|
+
# Mapper for CorsRule class as Ruby Hash.
|
39
|
+
# This will be used for serialization/deserialization.
|
40
|
+
#
|
41
|
+
def self.mapper()
|
42
|
+
{
|
43
|
+
client_side_validation: true,
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'CorsRule',
|
46
|
+
type: {
|
47
|
+
name: 'Composite',
|
48
|
+
class_name: 'CorsRule',
|
49
|
+
model_properties: {
|
50
|
+
allowed_origins: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: true,
|
53
|
+
serialized_name: 'allowedOrigins',
|
54
|
+
type: {
|
55
|
+
name: 'Sequence',
|
56
|
+
element: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
serialized_name: 'StringElementType',
|
60
|
+
type: {
|
61
|
+
name: 'String'
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
},
|
66
|
+
allowed_methods: {
|
67
|
+
client_side_validation: true,
|
68
|
+
required: true,
|
69
|
+
serialized_name: 'allowedMethods',
|
70
|
+
type: {
|
71
|
+
name: 'Sequence',
|
72
|
+
element: {
|
73
|
+
client_side_validation: true,
|
74
|
+
required: false,
|
75
|
+
serialized_name: 'enumElementType',
|
76
|
+
type: {
|
77
|
+
name: 'String'
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
},
|
82
|
+
max_age_in_seconds: {
|
83
|
+
client_side_validation: true,
|
84
|
+
required: true,
|
85
|
+
serialized_name: 'maxAgeInSeconds',
|
86
|
+
type: {
|
87
|
+
name: 'Number'
|
88
|
+
}
|
89
|
+
},
|
90
|
+
exposed_headers: {
|
91
|
+
client_side_validation: true,
|
92
|
+
required: true,
|
93
|
+
serialized_name: 'exposedHeaders',
|
94
|
+
type: {
|
95
|
+
name: 'Sequence',
|
96
|
+
element: {
|
97
|
+
client_side_validation: true,
|
98
|
+
required: false,
|
99
|
+
serialized_name: 'StringElementType',
|
100
|
+
type: {
|
101
|
+
name: 'String'
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
},
|
106
|
+
allowed_headers: {
|
107
|
+
client_side_validation: true,
|
108
|
+
required: true,
|
109
|
+
serialized_name: 'allowedHeaders',
|
110
|
+
type: {
|
111
|
+
name: 'Sequence',
|
112
|
+
element: {
|
113
|
+
client_side_validation: true,
|
114
|
+
required: false,
|
115
|
+
serialized_name: 'StringElementType',
|
116
|
+
type: {
|
117
|
+
name: 'String'
|
118
|
+
}
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Storage::Mgmt::V2019_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Sets the CORS rules. You can include up to five CorsRule elements in the
|
10
|
+
# request.
|
11
|
+
#
|
12
|
+
class CorsRules
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [Array<CorsRule>] The List of CORS rules. You can include up to
|
17
|
+
# five CorsRule elements in the request.
|
18
|
+
attr_accessor :cors_rules
|
19
|
+
|
20
|
+
|
21
|
+
#
|
22
|
+
# Mapper for CorsRules class as Ruby Hash.
|
23
|
+
# This will be used for serialization/deserialization.
|
24
|
+
#
|
25
|
+
def self.mapper()
|
26
|
+
{
|
27
|
+
client_side_validation: true,
|
28
|
+
required: false,
|
29
|
+
serialized_name: 'CorsRules',
|
30
|
+
type: {
|
31
|
+
name: 'Composite',
|
32
|
+
class_name: 'CorsRules',
|
33
|
+
model_properties: {
|
34
|
+
cors_rules: {
|
35
|
+
client_side_validation: true,
|
36
|
+
required: false,
|
37
|
+
serialized_name: 'corsRules',
|
38
|
+
type: {
|
39
|
+
name: 'Sequence',
|
40
|
+
element: {
|
41
|
+
client_side_validation: true,
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'CorsRuleElementType',
|
44
|
+
type: {
|
45
|
+
name: 'Composite',
|
46
|
+
class_name: 'CorsRule'
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,60 @@
|
|
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_04_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The custom domain assigned to this storage account. This can be set via
|
10
|
+
# Update.
|
11
|
+
#
|
12
|
+
class CustomDomain
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] Gets or sets the custom domain name assigned to the
|
17
|
+
# storage account. Name is the CNAME source.
|
18
|
+
attr_accessor :name
|
19
|
+
|
20
|
+
# @return [Boolean] Indicates whether indirect CName validation is
|
21
|
+
# enabled. Default value is false. This should only be set on updates.
|
22
|
+
attr_accessor :use_sub_domain_name
|
23
|
+
|
24
|
+
|
25
|
+
#
|
26
|
+
# Mapper for CustomDomain class as Ruby Hash.
|
27
|
+
# This will be used for serialization/deserialization.
|
28
|
+
#
|
29
|
+
def self.mapper()
|
30
|
+
{
|
31
|
+
client_side_validation: true,
|
32
|
+
required: false,
|
33
|
+
serialized_name: 'CustomDomain',
|
34
|
+
type: {
|
35
|
+
name: 'Composite',
|
36
|
+
class_name: 'CustomDomain',
|
37
|
+
model_properties: {
|
38
|
+
name: {
|
39
|
+
client_side_validation: true,
|
40
|
+
required: true,
|
41
|
+
serialized_name: 'name',
|
42
|
+
type: {
|
43
|
+
name: 'String'
|
44
|
+
}
|
45
|
+
},
|
46
|
+
use_sub_domain_name: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'useSubDomainName',
|
50
|
+
type: {
|
51
|
+
name: 'Boolean'
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|