azure_mgmt_storage 0.16.1 → 0.16.2
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-03-01-preview/generated/azure_mgmt_storage.rb +109 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/blob_containers.rb +1721 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/access_tier.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/account_sas_parameters.rb +136 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/account_status.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/action.rb +15 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/azure_entity_resource.rb +75 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/blob_container.rb +217 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/bypass.rb +18 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/check_name_availability_result.rb +77 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/custom_domain.rb +60 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/default_action.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/dimension.rb +57 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/encryption.rb +74 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/encryption_service.rb +62 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/encryption_services.rb +89 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/endpoints.rb +84 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/http_protocol.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/identity.rb +72 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/immutability_policy.rb +98 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/immutability_policy_properties.rb +95 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/immutability_policy_state.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/immutability_policy_update_type.rb +17 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/iprule.rb +61 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/key_permission.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/key_source.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/key_vault_properties.rb +68 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/kind.rb +17 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/lease_duration.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/lease_state.rb +19 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/lease_status.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/legal_hold.rb +71 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/legal_hold_properties.rb +72 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/list_account_sas_response.rb +47 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/list_container_item.rb +216 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/list_container_items.rb +55 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/list_service_sas_response.rb +47 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/management_policies_rules_set_parameter.rb +50 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/metric_specification.rb +145 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/network_rule_set.rb +106 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/operation.rb +83 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/operation_display.rb +68 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/operation_list_result.rb +57 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/permissions.rb +22 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/provisioning_state.rb +17 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/proxy_resource.rb +63 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/public_access.rb +17 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/reason.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/reason_code.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/resource.rb +74 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/restriction.rb +85 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/service_sas_parameters.rb +247 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/service_specification.rb +56 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/services.rb +18 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/signed_resource.rb +18 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/signed_resource_types.rb +17 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/sku.rb +157 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/sku_name.rb +19 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/sku_tier.rb +16 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/skucapability.rb +63 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/state.rb +19 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/storage_account.rb +326 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb +62 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb +179 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/storage_account_key.rb +73 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb +57 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/storage_account_list_result.rb +57 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/storage_account_management_policies.rb +88 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb +47 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb +167 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/storage_sku_list_result.rb +57 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/tag_property.rb +97 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/tracked_resource.rb +92 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/update_history_property.rb +114 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/usage.rb +89 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/usage_list_result.rb +56 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/usage_name.rb +59 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/usage_unit.rb +20 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/models/virtual_network_rule.rb +75 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/module_definition.rb +9 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/operations.rb +108 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/skus.rb +114 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/storage_accounts.rb +1670 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/storage_management_client.rb +146 -0
- data/lib/2018-03-01-preview/generated/azure_mgmt_storage/usages.rb +207 -0
- data/lib/azure_mgmt_storage.rb +6 -5
- data/lib/profiles/latest/modules/storage_profile_module.rb +198 -190
- data/lib/version.rb +1 -1
- metadata +87 -2
@@ -0,0 +1,114 @@
|
|
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::V2018_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# An update history of the ImmutabilityPolicy of a blob container.
|
10
|
+
#
|
11
|
+
class UpdateHistoryProperty
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [ImmutabilityPolicyUpdateType] The ImmutabilityPolicy update
|
16
|
+
# type of a blob container, possible values include: put, lock and
|
17
|
+
# extend. Possible values include: 'put', 'lock', 'extend'
|
18
|
+
attr_accessor :update
|
19
|
+
|
20
|
+
# @return [Integer] The immutability period for the blobs in the
|
21
|
+
# container since the policy creation, in days.
|
22
|
+
attr_accessor :immutability_period_since_creation_in_days
|
23
|
+
|
24
|
+
# @return [DateTime] Returns the date and time the ImmutabilityPolicy was
|
25
|
+
# updated.
|
26
|
+
attr_accessor :timestamp
|
27
|
+
|
28
|
+
# @return [String] Returns the Object ID of the user who updated the
|
29
|
+
# ImmutabilityPolicy.
|
30
|
+
attr_accessor :object_identifier
|
31
|
+
|
32
|
+
# @return [String] Returns the Tenant ID that issued the token for the
|
33
|
+
# user who updated the ImmutabilityPolicy.
|
34
|
+
attr_accessor :tenant_id
|
35
|
+
|
36
|
+
# @return [String] Returns the User Principal Name of the user who
|
37
|
+
# updated the ImmutabilityPolicy.
|
38
|
+
attr_accessor :upn
|
39
|
+
|
40
|
+
|
41
|
+
#
|
42
|
+
# Mapper for UpdateHistoryProperty class as Ruby Hash.
|
43
|
+
# This will be used for serialization/deserialization.
|
44
|
+
#
|
45
|
+
def self.mapper()
|
46
|
+
{
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'UpdateHistoryProperty',
|
50
|
+
type: {
|
51
|
+
name: 'Composite',
|
52
|
+
class_name: 'UpdateHistoryProperty',
|
53
|
+
model_properties: {
|
54
|
+
update: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
read_only: true,
|
58
|
+
serialized_name: 'update',
|
59
|
+
type: {
|
60
|
+
name: 'String'
|
61
|
+
}
|
62
|
+
},
|
63
|
+
immutability_period_since_creation_in_days: {
|
64
|
+
client_side_validation: true,
|
65
|
+
required: false,
|
66
|
+
read_only: true,
|
67
|
+
serialized_name: 'immutabilityPeriodSinceCreationInDays',
|
68
|
+
type: {
|
69
|
+
name: 'Number'
|
70
|
+
}
|
71
|
+
},
|
72
|
+
timestamp: {
|
73
|
+
client_side_validation: true,
|
74
|
+
required: false,
|
75
|
+
read_only: true,
|
76
|
+
serialized_name: 'timestamp',
|
77
|
+
type: {
|
78
|
+
name: 'DateTime'
|
79
|
+
}
|
80
|
+
},
|
81
|
+
object_identifier: {
|
82
|
+
client_side_validation: true,
|
83
|
+
required: false,
|
84
|
+
read_only: true,
|
85
|
+
serialized_name: 'objectIdentifier',
|
86
|
+
type: {
|
87
|
+
name: 'String'
|
88
|
+
}
|
89
|
+
},
|
90
|
+
tenant_id: {
|
91
|
+
client_side_validation: true,
|
92
|
+
required: false,
|
93
|
+
read_only: true,
|
94
|
+
serialized_name: 'tenantId',
|
95
|
+
type: {
|
96
|
+
name: 'String'
|
97
|
+
}
|
98
|
+
},
|
99
|
+
upn: {
|
100
|
+
client_side_validation: true,
|
101
|
+
required: false,
|
102
|
+
read_only: true,
|
103
|
+
serialized_name: 'upn',
|
104
|
+
type: {
|
105
|
+
name: 'String'
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
@@ -0,0 +1,89 @@
|
|
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::V2018_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Describes Storage Resource Usage.
|
10
|
+
#
|
11
|
+
class Usage
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [UsageUnit] Gets the unit of measurement. Possible values
|
16
|
+
# include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond',
|
17
|
+
# 'BytesPerSecond'
|
18
|
+
attr_accessor :unit
|
19
|
+
|
20
|
+
# @return [Integer] Gets the current count of the allocated resources in
|
21
|
+
# the subscription.
|
22
|
+
attr_accessor :current_value
|
23
|
+
|
24
|
+
# @return [Integer] Gets the maximum count of the resources that can be
|
25
|
+
# allocated in the subscription.
|
26
|
+
attr_accessor :limit
|
27
|
+
|
28
|
+
# @return [UsageName] Gets the name of the type of usage.
|
29
|
+
attr_accessor :name
|
30
|
+
|
31
|
+
|
32
|
+
#
|
33
|
+
# Mapper for Usage class as Ruby Hash.
|
34
|
+
# This will be used for serialization/deserialization.
|
35
|
+
#
|
36
|
+
def self.mapper()
|
37
|
+
{
|
38
|
+
client_side_validation: true,
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'Usage',
|
41
|
+
type: {
|
42
|
+
name: 'Composite',
|
43
|
+
class_name: 'Usage',
|
44
|
+
model_properties: {
|
45
|
+
unit: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: false,
|
48
|
+
read_only: true,
|
49
|
+
serialized_name: 'unit',
|
50
|
+
type: {
|
51
|
+
name: 'Enum',
|
52
|
+
module: 'UsageUnit'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
current_value: {
|
56
|
+
client_side_validation: true,
|
57
|
+
required: false,
|
58
|
+
read_only: true,
|
59
|
+
serialized_name: 'currentValue',
|
60
|
+
type: {
|
61
|
+
name: 'Number'
|
62
|
+
}
|
63
|
+
},
|
64
|
+
limit: {
|
65
|
+
client_side_validation: true,
|
66
|
+
required: false,
|
67
|
+
read_only: true,
|
68
|
+
serialized_name: 'limit',
|
69
|
+
type: {
|
70
|
+
name: 'Number'
|
71
|
+
}
|
72
|
+
},
|
73
|
+
name: {
|
74
|
+
client_side_validation: true,
|
75
|
+
required: false,
|
76
|
+
read_only: true,
|
77
|
+
serialized_name: 'name',
|
78
|
+
type: {
|
79
|
+
name: 'Composite',
|
80
|
+
class_name: 'UsageName'
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
@@ -0,0 +1,56 @@
|
|
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::V2018_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The response from the List Usages operation.
|
10
|
+
#
|
11
|
+
class UsageListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<Usage>] Gets or sets the list of Storage Resource
|
16
|
+
# Usages.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for UsageListResult 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: 'UsageListResult',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'UsageListResult',
|
32
|
+
model_properties: {
|
33
|
+
value: {
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'value',
|
37
|
+
type: {
|
38
|
+
name: 'Sequence',
|
39
|
+
element: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: false,
|
42
|
+
serialized_name: 'UsageElementType',
|
43
|
+
type: {
|
44
|
+
name: 'Composite',
|
45
|
+
class_name: 'Usage'
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,59 @@
|
|
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::V2018_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The usage names that can be used; currently limited to StorageAccount.
|
10
|
+
#
|
11
|
+
class UsageName
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets a string describing the resource name.
|
16
|
+
attr_accessor :value
|
17
|
+
|
18
|
+
# @return [String] Gets a localized string describing the resource name.
|
19
|
+
attr_accessor :localized_value
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for UsageName class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
client_side_validation: true,
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'UsageName',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'UsageName',
|
34
|
+
model_properties: {
|
35
|
+
value: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
read_only: true,
|
39
|
+
serialized_name: 'value',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
localized_value: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
read_only: true,
|
48
|
+
serialized_name: 'localizedValue',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,20 @@
|
|
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::V2018_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for UsageUnit
|
10
|
+
#
|
11
|
+
module UsageUnit
|
12
|
+
Count = "Count"
|
13
|
+
Bytes = "Bytes"
|
14
|
+
Seconds = "Seconds"
|
15
|
+
Percent = "Percent"
|
16
|
+
CountsPerSecond = "CountsPerSecond"
|
17
|
+
BytesPerSecond = "BytesPerSecond"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,75 @@
|
|
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::V2018_03_01_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Virtual Network rule.
|
10
|
+
#
|
11
|
+
class VirtualNetworkRule
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Resource ID of a subnet, for example:
|
16
|
+
# /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
|
17
|
+
attr_accessor :virtual_network_resource_id
|
18
|
+
|
19
|
+
# @return [Action] The action of virtual network rule. Possible values
|
20
|
+
# include: 'Allow'. Default value: 'Allow' .
|
21
|
+
attr_accessor :action
|
22
|
+
|
23
|
+
# @return [State] Gets the state of virtual network rule. Possible values
|
24
|
+
# include: 'provisioning', 'deprovisioning', 'succeeded', 'failed',
|
25
|
+
# 'networkSourceDeleted'
|
26
|
+
attr_accessor :state
|
27
|
+
|
28
|
+
|
29
|
+
#
|
30
|
+
# Mapper for VirtualNetworkRule class as Ruby Hash.
|
31
|
+
# This will be used for serialization/deserialization.
|
32
|
+
#
|
33
|
+
def self.mapper()
|
34
|
+
{
|
35
|
+
client_side_validation: true,
|
36
|
+
required: false,
|
37
|
+
serialized_name: 'VirtualNetworkRule',
|
38
|
+
type: {
|
39
|
+
name: 'Composite',
|
40
|
+
class_name: 'VirtualNetworkRule',
|
41
|
+
model_properties: {
|
42
|
+
virtual_network_resource_id: {
|
43
|
+
client_side_validation: true,
|
44
|
+
required: true,
|
45
|
+
serialized_name: 'id',
|
46
|
+
type: {
|
47
|
+
name: 'String'
|
48
|
+
}
|
49
|
+
},
|
50
|
+
action: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'action',
|
54
|
+
default_value: 'Allow',
|
55
|
+
type: {
|
56
|
+
name: 'Enum',
|
57
|
+
module: 'Action'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
state: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'state',
|
64
|
+
type: {
|
65
|
+
name: 'Enum',
|
66
|
+
module: 'State'
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,9 @@
|
|
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 end
|
7
|
+
module Azure::Storage end
|
8
|
+
module Azure::Storage::Mgmt end
|
9
|
+
module Azure::Storage::Mgmt::V2018_03_01_preview end
|
@@ -0,0 +1,108 @@
|
|
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::V2018_03_01_preview
|
7
|
+
#
|
8
|
+
# The Azure Storage Management API.
|
9
|
+
#
|
10
|
+
class Operations
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Operations class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [StorageManagementClient] reference to the StorageManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Lists all of the available Storage Rest API operations.
|
26
|
+
#
|
27
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
28
|
+
# will be added to the HTTP request.
|
29
|
+
#
|
30
|
+
# @return [OperationListResult] operation results.
|
31
|
+
#
|
32
|
+
def list(custom_headers:nil)
|
33
|
+
response = list_async(custom_headers:custom_headers).value!
|
34
|
+
response.body unless response.nil?
|
35
|
+
end
|
36
|
+
|
37
|
+
#
|
38
|
+
# Lists all of the available Storage Rest API operations.
|
39
|
+
#
|
40
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
41
|
+
# will be added to the HTTP request.
|
42
|
+
#
|
43
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
44
|
+
#
|
45
|
+
def list_with_http_info(custom_headers:nil)
|
46
|
+
list_async(custom_headers:custom_headers).value!
|
47
|
+
end
|
48
|
+
|
49
|
+
#
|
50
|
+
# Lists all of the available Storage Rest API operations.
|
51
|
+
#
|
52
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
53
|
+
# to the HTTP request.
|
54
|
+
#
|
55
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
56
|
+
#
|
57
|
+
def list_async(custom_headers:nil)
|
58
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
59
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
60
|
+
|
61
|
+
|
62
|
+
request_headers = {}
|
63
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
64
|
+
|
65
|
+
# Set Headers
|
66
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
67
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
68
|
+
path_template = 'providers/Microsoft.Storage/operations'
|
69
|
+
|
70
|
+
request_url = @base_url || @client.base_url
|
71
|
+
|
72
|
+
options = {
|
73
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
74
|
+
query_params: {'api-version' => @client.api_version},
|
75
|
+
headers: request_headers.merge(custom_headers || {}),
|
76
|
+
base_url: request_url
|
77
|
+
}
|
78
|
+
promise = @client.make_request_async(:get, path_template, options)
|
79
|
+
|
80
|
+
promise = promise.then do |result|
|
81
|
+
http_response = result.response
|
82
|
+
status_code = http_response.status
|
83
|
+
response_content = http_response.body
|
84
|
+
unless status_code == 200
|
85
|
+
error_model = JSON.load(response_content)
|
86
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
87
|
+
end
|
88
|
+
|
89
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
90
|
+
# Deserialize Response
|
91
|
+
if status_code == 200
|
92
|
+
begin
|
93
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
94
|
+
result_mapper = Azure::Storage::Mgmt::V2018_03_01_preview::Models::OperationListResult.mapper()
|
95
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
96
|
+
rescue Exception => e
|
97
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
result
|
102
|
+
end
|
103
|
+
|
104
|
+
promise.execute
|
105
|
+
end
|
106
|
+
|
107
|
+
end
|
108
|
+
end
|