azure_mgmt_stor_simple8000_series 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/azure_mgmt_stor_simple8000_series.rb +7 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/access_control_records.rb +507 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/alerts.rb +422 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/backup_policies.rb +655 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/backup_schedules.rb +532 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/backups.rb +645 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/bandwidth_settings.rb +497 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/cloud_appliances.rb +249 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/device_settings.rb +1150 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/devices.rb +1724 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/hardware_component_groups.rb +275 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/jobs.rb +681 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/managers.rb +1709 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/access_control_record.rb +88 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/access_control_record_list.rb +52 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/acs_configuration.rb +64 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/alert.rb +223 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/alert_email_notification_status.rb +16 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/alert_error_details.rb +64 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/alert_filter.rb +96 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/alert_list.rb +94 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/alert_scope.rb +16 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/alert_settings.rb +119 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/alert_severity.rb +17 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/alert_source.rb +66 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/alert_source_type.rb +16 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/alert_status.rb +16 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/asymmetric_encrypted_secret.rb +67 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/authentication_type.rb +18 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/authorization_eligibility.rb +16 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/authorization_status.rb +16 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/available_provider_operation.rb +82 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/available_provider_operation_display.rb +88 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/available_provider_operation_list.rb +94 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/backup.rb +148 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/backup_element.rb +107 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/backup_filter.rb +68 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/backup_job_creation_type.rb +17 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/backup_list.rb +94 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/backup_policy.rb +158 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/backup_policy_creation_type.rb +16 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/backup_policy_list.rb +52 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/backup_schedule.rb +133 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/backup_schedule_list.rb +52 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/backup_status.rb +16 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/backup_type.rb +16 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/bandwidth_schedule.rb +85 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/bandwidth_setting.rb +96 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/bandwidth_setting_list.rb +52 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/base_model.rb +79 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/chap_settings.rb +76 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/clear_alert_request.rb +61 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/clone_request.rb +85 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/cloud_appliance.rb +146 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/cloud_appliance_configuration.rb +166 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/cloud_appliance_configuration_list.rb +52 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/cloud_appliance_settings.rb +58 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/configure_device_request.rb +120 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/controller_id.rb +18 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/controller_power_state_action.rb +17 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/controller_power_state_change_request.rb +118 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/controller_status.rb +20 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/data_statistics.rb +79 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/day_of_week.rb +21 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/device.rb +364 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/device_configuration_status.rb +16 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/device_details.rb +56 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/device_list.rb +52 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/device_patch.rb +44 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/device_rollover_details.rb +75 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/device_status.rb +25 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/device_type.rb +17 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/dimension_filter.rb +60 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/dnssettings.rb +88 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/encryption_algorithm.rb +17 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/encryption_settings.rb +93 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/encryption_status.rb +16 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/failover_request.rb +64 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/failover_set.rb +65 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/failover_set_eligibility_result.rb +56 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/failover_sets_list.rb +52 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/failover_target.rb +154 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/failover_targets_list.rb +53 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/feature.rb +56 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/feature_filter.rb +45 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/feature_list.rb +52 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/feature_support_status.rb +17 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/hardware_component.rb +77 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/hardware_component_group.rb +104 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/hardware_component_group_list.rb +52 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/hardware_component_status.rb +21 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/in_eligibility_category.rb +17 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/iscsiand_cloud_status.rb +18 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/job.rb +236 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/job_error_details.rb +73 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/job_error_item.rb +72 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/job_filter.rb +73 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/job_list.rb +94 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/job_stage.rb +76 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/job_status.rb +18 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/job_type.rb +24 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/key.rb +44 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/key_rollover_status.rb +16 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/kind.rb +15 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/list_failover_targets_request.rb +54 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/manager.rb +126 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/manager_extended_info.rb +140 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/manager_intrinsic_settings.rb +46 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/manager_list.rb +52 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/manager_patch.rb +51 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/manager_sku.rb +47 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/manager_type.rb +16 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/metric_aggregation_type.rb +20 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/metric_availablity.rb +55 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/metric_data.rb +94 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/metric_definition.rb +136 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/metric_definition_list.rb +52 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/metric_dimension.rb +54 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/metric_filter.rb +110 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/metric_list.rb +52 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/metric_name.rb +54 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/metric_name_filter.rb +48 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/metric_unit.rb +20 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/metrics.rb +157 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/monitoring_status.rb +16 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/net_interface_id.rb +21 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/net_interface_status.rb +16 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/network_adapter_list.rb +52 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/network_adapters.rb +126 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/network_interface_data0settings.rb +54 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/network_mode.rb +18 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/network_settings.rb +99 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/network_settings_patch.rb +56 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/nic_ipv4.rb +84 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/nic_ipv6.rb +84 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/operation_status.rb +18 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/owner_ship_status.rb +16 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/public_key.rb +44 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/recurrence_type.rb +18 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/remote_management_mode_configuration.rb +18 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/remote_management_settings.rb +57 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/remote_management_settings_patch.rb +47 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/resource.rb +94 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/schedule_recurrence.rb +75 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/schedule_status.rb +16 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/scheduled_backup_status.rb +16 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/secondary_dnssettings.rb +51 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/security_settings.rb +90 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/security_settings_patch.rb +89 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/send_test_alert_email_request.rb +52 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/ssl_status.rb +16 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/storage_account_credential.rb +112 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/storage_account_credential_list.rb +52 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/symmetric_encrypted_secret.rb +68 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/target_eligibility_error_message.rb +74 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/target_eligibility_result.rb +66 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/target_eligibility_result_code.rb +21 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/target_eligibility_status.rb +16 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/time.rb +76 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/time_settings.rb +106 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/updates.rb +107 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/virtual_machine_api_type.rb +16 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/vm_image.rb +84 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/volume.rb +187 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/volume_container.rb +161 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/volume_container_failover_metadata.rb +64 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/volume_container_list.rb +52 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/volume_failover_metadata.rb +109 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/volume_list.rb +52 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/volume_status.rb +16 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/volume_type.rb +17 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/models/webproxy_settings.rb +66 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/module_definition.rb +8 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/operations.rb +220 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/stor_simple8000series_management_client.rb +189 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/storage_account_credentials.rb +507 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/version.rb +8 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/volume_containers.rb +717 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series/volumes.rb +835 -0
- data/lib/generated/azure_mgmt_stor_simple8000_series.rb +202 -0
- metadata +295 -0
data/lib/generated/azure_mgmt_stor_simple8000_series/stor_simple8000series_management_client.rb
ADDED
@@ -0,0 +1,189 @@
|
|
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::ARM::StorSimple8000Series
|
7
|
+
#
|
8
|
+
# A service client - single point of access to the REST API.
|
9
|
+
#
|
10
|
+
class StorSimple8000SeriesManagementClient < MsRestAzure::AzureServiceClient
|
11
|
+
include MsRestAzure
|
12
|
+
include MsRestAzure::Serialization
|
13
|
+
|
14
|
+
# @return [String] the base URI of the service.
|
15
|
+
attr_accessor :base_url
|
16
|
+
|
17
|
+
# @return Credentials needed for the client to connect to Azure.
|
18
|
+
attr_reader :credentials
|
19
|
+
|
20
|
+
# @return [String] The api version
|
21
|
+
attr_reader :api_version
|
22
|
+
|
23
|
+
# @return [String] The subscription id
|
24
|
+
attr_accessor :subscription_id
|
25
|
+
|
26
|
+
# @return [String] Gets or sets the preferred language for the response.
|
27
|
+
attr_accessor :accept_language
|
28
|
+
|
29
|
+
# @return [Integer] Gets or sets the retry timeout in seconds for Long
|
30
|
+
# Running Operations. Default value is 30.
|
31
|
+
attr_accessor :long_running_operation_retry_timeout
|
32
|
+
|
33
|
+
# @return [Boolean] When set to true a unique x-ms-client-request-id value
|
34
|
+
# is generated and included in each request. Default is true.
|
35
|
+
attr_accessor :generate_client_request_id
|
36
|
+
|
37
|
+
# @return [Operations] operations
|
38
|
+
attr_reader :operations
|
39
|
+
|
40
|
+
# @return [Managers] managers
|
41
|
+
attr_reader :managers
|
42
|
+
|
43
|
+
# @return [AccessControlRecords] access_control_records
|
44
|
+
attr_reader :access_control_records
|
45
|
+
|
46
|
+
# @return [Alerts] alerts
|
47
|
+
attr_reader :alerts
|
48
|
+
|
49
|
+
# @return [BandwidthSettings] bandwidth_settings
|
50
|
+
attr_reader :bandwidth_settings
|
51
|
+
|
52
|
+
# @return [CloudAppliances] cloud_appliances
|
53
|
+
attr_reader :cloud_appliances
|
54
|
+
|
55
|
+
# @return [Devices] devices
|
56
|
+
attr_reader :devices
|
57
|
+
|
58
|
+
# @return [DeviceSettings] device_settings
|
59
|
+
attr_reader :device_settings
|
60
|
+
|
61
|
+
# @return [BackupPolicies] backup_policies
|
62
|
+
attr_reader :backup_policies
|
63
|
+
|
64
|
+
# @return [BackupSchedules] backup_schedules
|
65
|
+
attr_reader :backup_schedules
|
66
|
+
|
67
|
+
# @return [Backups] backups
|
68
|
+
attr_reader :backups
|
69
|
+
|
70
|
+
# @return [HardwareComponentGroups] hardware_component_groups
|
71
|
+
attr_reader :hardware_component_groups
|
72
|
+
|
73
|
+
# @return [Jobs] jobs
|
74
|
+
attr_reader :jobs
|
75
|
+
|
76
|
+
# @return [VolumeContainers] volume_containers
|
77
|
+
attr_reader :volume_containers
|
78
|
+
|
79
|
+
# @return [Volumes] volumes
|
80
|
+
attr_reader :volumes
|
81
|
+
|
82
|
+
# @return [StorageAccountCredentials] storage_account_credentials
|
83
|
+
attr_reader :storage_account_credentials
|
84
|
+
|
85
|
+
#
|
86
|
+
# Creates initializes a new instance of the StorSimple8000SeriesManagementClient class.
|
87
|
+
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
88
|
+
# @param base_url [String] the base URI of the service.
|
89
|
+
# @param options [Array] filters to be applied to the HTTP requests.
|
90
|
+
#
|
91
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
92
|
+
super(credentials, options)
|
93
|
+
@base_url = base_url || 'https://management.azure.com'
|
94
|
+
|
95
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
96
|
+
@credentials = credentials
|
97
|
+
|
98
|
+
@operations = Operations.new(self)
|
99
|
+
@managers = Managers.new(self)
|
100
|
+
@access_control_records = AccessControlRecords.new(self)
|
101
|
+
@alerts = Alerts.new(self)
|
102
|
+
@bandwidth_settings = BandwidthSettings.new(self)
|
103
|
+
@cloud_appliances = CloudAppliances.new(self)
|
104
|
+
@devices = Devices.new(self)
|
105
|
+
@device_settings = DeviceSettings.new(self)
|
106
|
+
@backup_policies = BackupPolicies.new(self)
|
107
|
+
@backup_schedules = BackupSchedules.new(self)
|
108
|
+
@backups = Backups.new(self)
|
109
|
+
@hardware_component_groups = HardwareComponentGroups.new(self)
|
110
|
+
@jobs = Jobs.new(self)
|
111
|
+
@volume_containers = VolumeContainers.new(self)
|
112
|
+
@volumes = Volumes.new(self)
|
113
|
+
@storage_account_credentials = StorageAccountCredentials.new(self)
|
114
|
+
@api_version = '2017-06-01'
|
115
|
+
@accept_language = 'en-US'
|
116
|
+
@long_running_operation_retry_timeout = 30
|
117
|
+
@generate_client_request_id = true
|
118
|
+
add_telemetry
|
119
|
+
end
|
120
|
+
|
121
|
+
#
|
122
|
+
# Makes a request and returns the body of the response.
|
123
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
124
|
+
# @param path [String] the path, relative to {base_url}.
|
125
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
126
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
127
|
+
# Example:
|
128
|
+
#
|
129
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
130
|
+
# path = "/path"
|
131
|
+
# options = {
|
132
|
+
# body: request_content,
|
133
|
+
# query_params: {'api-version' => '2016-02-01'}
|
134
|
+
# }
|
135
|
+
# result = @client.make_request(:put, path, options)
|
136
|
+
#
|
137
|
+
def make_request(method, path, options = {})
|
138
|
+
result = make_request_with_http_info(method, path, options)
|
139
|
+
result.body unless result.nil?
|
140
|
+
end
|
141
|
+
|
142
|
+
#
|
143
|
+
# Makes a request and returns the operation response.
|
144
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
145
|
+
# @param path [String] the path, relative to {base_url}.
|
146
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
147
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
148
|
+
#
|
149
|
+
def make_request_with_http_info(method, path, options = {})
|
150
|
+
result = make_request_async(method, path, options).value!
|
151
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
152
|
+
result
|
153
|
+
end
|
154
|
+
|
155
|
+
#
|
156
|
+
# Makes a request asynchronously.
|
157
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
158
|
+
# @param path [String] the path, relative to {base_url}.
|
159
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
160
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
161
|
+
#
|
162
|
+
def make_request_async(method, path, options = {})
|
163
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
164
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
165
|
+
|
166
|
+
request_url = options[:base_url] || @base_url
|
167
|
+
|
168
|
+
request_headers = @request_headers
|
169
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
170
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
171
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
172
|
+
|
173
|
+
super(request_url, method, path, options)
|
174
|
+
end
|
175
|
+
|
176
|
+
|
177
|
+
private
|
178
|
+
#
|
179
|
+
# Adds telemetry information.
|
180
|
+
#
|
181
|
+
def add_telemetry
|
182
|
+
sdk_information = 'azure_mgmt_stor_simple8000_series'
|
183
|
+
if defined? Azure::ARM::StorSimple8000Series::VERSION
|
184
|
+
sdk_information = "#{sdk_information}/#{Azure::ARM::StorSimple8000Series::VERSION}"
|
185
|
+
end
|
186
|
+
add_user_agent_information(sdk_information)
|
187
|
+
end
|
188
|
+
end
|
189
|
+
end
|
@@ -0,0 +1,507 @@
|
|
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::ARM::StorSimple8000Series
|
7
|
+
#
|
8
|
+
# StorageAccountCredentials
|
9
|
+
#
|
10
|
+
class StorageAccountCredentials
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the StorageAccountCredentials class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [StorSimple8000SeriesManagementClient] reference to the StorSimple8000SeriesManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Gets all the storage account credentials in a manager.
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] The resource group name
|
28
|
+
# @param manager_name [String] The manager name
|
29
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
30
|
+
# will be added to the HTTP request.
|
31
|
+
#
|
32
|
+
# @return [StorageAccountCredentialList] operation results.
|
33
|
+
#
|
34
|
+
def list_by_manager(resource_group_name, manager_name, custom_headers = nil)
|
35
|
+
response = list_by_manager_async(resource_group_name, manager_name, custom_headers).value!
|
36
|
+
response.body unless response.nil?
|
37
|
+
end
|
38
|
+
|
39
|
+
#
|
40
|
+
# Gets all the storage account credentials in a manager.
|
41
|
+
#
|
42
|
+
# @param resource_group_name [String] The resource group name
|
43
|
+
# @param manager_name [String] The manager name
|
44
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
45
|
+
# will be added to the HTTP request.
|
46
|
+
#
|
47
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
48
|
+
#
|
49
|
+
def list_by_manager_with_http_info(resource_group_name, manager_name, custom_headers = nil)
|
50
|
+
list_by_manager_async(resource_group_name, manager_name, custom_headers).value!
|
51
|
+
end
|
52
|
+
|
53
|
+
#
|
54
|
+
# Gets all the storage account credentials in a manager.
|
55
|
+
#
|
56
|
+
# @param resource_group_name [String] The resource group name
|
57
|
+
# @param manager_name [String] The manager name
|
58
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
59
|
+
# to the HTTP request.
|
60
|
+
#
|
61
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
62
|
+
#
|
63
|
+
def list_by_manager_async(resource_group_name, manager_name, custom_headers = nil)
|
64
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
65
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
66
|
+
fail ArgumentError, 'manager_name is nil' if manager_name.nil?
|
67
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
68
|
+
|
69
|
+
|
70
|
+
request_headers = {}
|
71
|
+
|
72
|
+
# Set Headers
|
73
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
74
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
75
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/storageAccountCredentials'
|
76
|
+
|
77
|
+
request_url = @base_url || @client.base_url
|
78
|
+
|
79
|
+
options = {
|
80
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
81
|
+
skip_encoding_path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'managerName' => manager_name},
|
82
|
+
skip_encoding_query_params: {'api-version' => @client.api_version},
|
83
|
+
headers: request_headers.merge(custom_headers || {}),
|
84
|
+
base_url: request_url
|
85
|
+
}
|
86
|
+
promise = @client.make_request_async(:get, path_template, options)
|
87
|
+
|
88
|
+
promise = promise.then do |result|
|
89
|
+
http_response = result.response
|
90
|
+
status_code = http_response.status
|
91
|
+
response_content = http_response.body
|
92
|
+
unless status_code == 200
|
93
|
+
error_model = JSON.load(response_content)
|
94
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
95
|
+
end
|
96
|
+
|
97
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
98
|
+
# Deserialize Response
|
99
|
+
if status_code == 200
|
100
|
+
begin
|
101
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
102
|
+
result_mapper = Azure::ARM::StorSimple8000Series::Models::StorageAccountCredentialList.mapper()
|
103
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
104
|
+
rescue Exception => e
|
105
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
result
|
110
|
+
end
|
111
|
+
|
112
|
+
promise.execute
|
113
|
+
end
|
114
|
+
|
115
|
+
#
|
116
|
+
# Gets the properties of the specified storage account credential name.
|
117
|
+
#
|
118
|
+
# @param storage_account_credential_name [String] The name of storage account
|
119
|
+
# credential to be fetched.
|
120
|
+
# @param resource_group_name [String] The resource group name
|
121
|
+
# @param manager_name [String] The manager name
|
122
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
123
|
+
# will be added to the HTTP request.
|
124
|
+
#
|
125
|
+
# @return [StorageAccountCredential] operation results.
|
126
|
+
#
|
127
|
+
def get(storage_account_credential_name, resource_group_name, manager_name, custom_headers = nil)
|
128
|
+
response = get_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers).value!
|
129
|
+
response.body unless response.nil?
|
130
|
+
end
|
131
|
+
|
132
|
+
#
|
133
|
+
# Gets the properties of the specified storage account credential name.
|
134
|
+
#
|
135
|
+
# @param storage_account_credential_name [String] The name of storage account
|
136
|
+
# credential to be fetched.
|
137
|
+
# @param resource_group_name [String] The resource group name
|
138
|
+
# @param manager_name [String] The manager name
|
139
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
140
|
+
# will be added to the HTTP request.
|
141
|
+
#
|
142
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
143
|
+
#
|
144
|
+
def get_with_http_info(storage_account_credential_name, resource_group_name, manager_name, custom_headers = nil)
|
145
|
+
get_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers).value!
|
146
|
+
end
|
147
|
+
|
148
|
+
#
|
149
|
+
# Gets the properties of the specified storage account credential name.
|
150
|
+
#
|
151
|
+
# @param storage_account_credential_name [String] The name of storage account
|
152
|
+
# credential to be fetched.
|
153
|
+
# @param resource_group_name [String] The resource group name
|
154
|
+
# @param manager_name [String] The manager name
|
155
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
156
|
+
# to the HTTP request.
|
157
|
+
#
|
158
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
159
|
+
#
|
160
|
+
def get_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers = nil)
|
161
|
+
fail ArgumentError, 'storage_account_credential_name is nil' if storage_account_credential_name.nil?
|
162
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
163
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
164
|
+
fail ArgumentError, 'manager_name is nil' if manager_name.nil?
|
165
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
166
|
+
|
167
|
+
|
168
|
+
request_headers = {}
|
169
|
+
|
170
|
+
# Set Headers
|
171
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
172
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
173
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/storageAccountCredentials/{storageAccountCredentialName}'
|
174
|
+
|
175
|
+
request_url = @base_url || @client.base_url
|
176
|
+
|
177
|
+
options = {
|
178
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
179
|
+
skip_encoding_path_params: {'storageAccountCredentialName' => storage_account_credential_name,'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'managerName' => manager_name},
|
180
|
+
skip_encoding_query_params: {'api-version' => @client.api_version},
|
181
|
+
headers: request_headers.merge(custom_headers || {}),
|
182
|
+
base_url: request_url
|
183
|
+
}
|
184
|
+
promise = @client.make_request_async(:get, path_template, options)
|
185
|
+
|
186
|
+
promise = promise.then do |result|
|
187
|
+
http_response = result.response
|
188
|
+
status_code = http_response.status
|
189
|
+
response_content = http_response.body
|
190
|
+
unless status_code == 200
|
191
|
+
error_model = JSON.load(response_content)
|
192
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
193
|
+
end
|
194
|
+
|
195
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
196
|
+
# Deserialize Response
|
197
|
+
if status_code == 200
|
198
|
+
begin
|
199
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
200
|
+
result_mapper = Azure::ARM::StorSimple8000Series::Models::StorageAccountCredential.mapper()
|
201
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
202
|
+
rescue Exception => e
|
203
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
result
|
208
|
+
end
|
209
|
+
|
210
|
+
promise.execute
|
211
|
+
end
|
212
|
+
|
213
|
+
#
|
214
|
+
# Creates or updates the storage account credential.
|
215
|
+
#
|
216
|
+
# @param storage_account_credential_name [String] The storage account
|
217
|
+
# credential name.
|
218
|
+
# @param parameters [StorageAccountCredential] The storage account credential
|
219
|
+
# to be added or updated.
|
220
|
+
# @param resource_group_name [String] The resource group name
|
221
|
+
# @param manager_name [String] The manager name
|
222
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
223
|
+
# will be added to the HTTP request.
|
224
|
+
#
|
225
|
+
# @return [StorageAccountCredential] operation results.
|
226
|
+
#
|
227
|
+
def create_or_update(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers = nil)
|
228
|
+
response = create_or_update_async(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers).value!
|
229
|
+
response.body unless response.nil?
|
230
|
+
end
|
231
|
+
|
232
|
+
#
|
233
|
+
# @param storage_account_credential_name [String] The storage account
|
234
|
+
# credential name.
|
235
|
+
# @param parameters [StorageAccountCredential] The storage account credential
|
236
|
+
# to be added or updated.
|
237
|
+
# @param resource_group_name [String] The resource group name
|
238
|
+
# @param manager_name [String] The manager name
|
239
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
240
|
+
# will be added to the HTTP request.
|
241
|
+
#
|
242
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
243
|
+
# response.
|
244
|
+
#
|
245
|
+
def create_or_update_async(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers = nil)
|
246
|
+
# Send request
|
247
|
+
promise = begin_create_or_update_async(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers)
|
248
|
+
|
249
|
+
promise = promise.then do |response|
|
250
|
+
# Defining deserialization method.
|
251
|
+
deserialize_method = lambda do |parsed_response|
|
252
|
+
result_mapper = Azure::ARM::StorSimple8000Series::Models::StorageAccountCredential.mapper()
|
253
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
254
|
+
end
|
255
|
+
|
256
|
+
# Waiting for response.
|
257
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
258
|
+
end
|
259
|
+
|
260
|
+
promise
|
261
|
+
end
|
262
|
+
|
263
|
+
#
|
264
|
+
# Deletes the storage account credential.
|
265
|
+
#
|
266
|
+
# @param storage_account_credential_name [String] The name of the storage
|
267
|
+
# account credential.
|
268
|
+
# @param resource_group_name [String] The resource group name
|
269
|
+
# @param manager_name [String] The manager name
|
270
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
271
|
+
# will be added to the HTTP request.
|
272
|
+
#
|
273
|
+
def delete(storage_account_credential_name, resource_group_name, manager_name, custom_headers = nil)
|
274
|
+
response = delete_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers).value!
|
275
|
+
nil
|
276
|
+
end
|
277
|
+
|
278
|
+
#
|
279
|
+
# @param storage_account_credential_name [String] The name of the storage
|
280
|
+
# account credential.
|
281
|
+
# @param resource_group_name [String] The resource group name
|
282
|
+
# @param manager_name [String] The manager name
|
283
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
284
|
+
# will be added to the HTTP request.
|
285
|
+
#
|
286
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
287
|
+
# response.
|
288
|
+
#
|
289
|
+
def delete_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers = nil)
|
290
|
+
# Send request
|
291
|
+
promise = begin_delete_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers)
|
292
|
+
|
293
|
+
promise = promise.then do |response|
|
294
|
+
# Defining deserialization method.
|
295
|
+
deserialize_method = lambda do |parsed_response|
|
296
|
+
end
|
297
|
+
|
298
|
+
# Waiting for response.
|
299
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
300
|
+
end
|
301
|
+
|
302
|
+
promise
|
303
|
+
end
|
304
|
+
|
305
|
+
#
|
306
|
+
# Creates or updates the storage account credential.
|
307
|
+
#
|
308
|
+
# @param storage_account_credential_name [String] The storage account
|
309
|
+
# credential name.
|
310
|
+
# @param parameters [StorageAccountCredential] The storage account credential
|
311
|
+
# to be added or updated.
|
312
|
+
# @param resource_group_name [String] The resource group name
|
313
|
+
# @param manager_name [String] The manager name
|
314
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
315
|
+
# will be added to the HTTP request.
|
316
|
+
#
|
317
|
+
# @return [StorageAccountCredential] operation results.
|
318
|
+
#
|
319
|
+
def begin_create_or_update(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers = nil)
|
320
|
+
response = begin_create_or_update_async(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers).value!
|
321
|
+
response.body unless response.nil?
|
322
|
+
end
|
323
|
+
|
324
|
+
#
|
325
|
+
# Creates or updates the storage account credential.
|
326
|
+
#
|
327
|
+
# @param storage_account_credential_name [String] The storage account
|
328
|
+
# credential name.
|
329
|
+
# @param parameters [StorageAccountCredential] The storage account credential
|
330
|
+
# to be added or updated.
|
331
|
+
# @param resource_group_name [String] The resource group name
|
332
|
+
# @param manager_name [String] The manager name
|
333
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
334
|
+
# will be added to the HTTP request.
|
335
|
+
#
|
336
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
337
|
+
#
|
338
|
+
def begin_create_or_update_with_http_info(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers = nil)
|
339
|
+
begin_create_or_update_async(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers).value!
|
340
|
+
end
|
341
|
+
|
342
|
+
#
|
343
|
+
# Creates or updates the storage account credential.
|
344
|
+
#
|
345
|
+
# @param storage_account_credential_name [String] The storage account
|
346
|
+
# credential name.
|
347
|
+
# @param parameters [StorageAccountCredential] The storage account credential
|
348
|
+
# to be added or updated.
|
349
|
+
# @param resource_group_name [String] The resource group name
|
350
|
+
# @param manager_name [String] The manager name
|
351
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
352
|
+
# to the HTTP request.
|
353
|
+
#
|
354
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
355
|
+
#
|
356
|
+
def begin_create_or_update_async(storage_account_credential_name, parameters, resource_group_name, manager_name, custom_headers = nil)
|
357
|
+
fail ArgumentError, 'storage_account_credential_name is nil' if storage_account_credential_name.nil?
|
358
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
359
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
360
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
361
|
+
fail ArgumentError, 'manager_name is nil' if manager_name.nil?
|
362
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
363
|
+
|
364
|
+
|
365
|
+
request_headers = {}
|
366
|
+
|
367
|
+
# Set Headers
|
368
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
369
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
370
|
+
|
371
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
372
|
+
|
373
|
+
# Serialize Request
|
374
|
+
request_mapper = Azure::ARM::StorSimple8000Series::Models::StorageAccountCredential.mapper()
|
375
|
+
request_content = @client.serialize(request_mapper, parameters)
|
376
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
377
|
+
|
378
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/storageAccountCredentials/{storageAccountCredentialName}'
|
379
|
+
|
380
|
+
request_url = @base_url || @client.base_url
|
381
|
+
|
382
|
+
options = {
|
383
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
384
|
+
skip_encoding_path_params: {'storageAccountCredentialName' => storage_account_credential_name,'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'managerName' => manager_name},
|
385
|
+
skip_encoding_query_params: {'api-version' => @client.api_version},
|
386
|
+
body: request_content,
|
387
|
+
headers: request_headers.merge(custom_headers || {}),
|
388
|
+
base_url: request_url
|
389
|
+
}
|
390
|
+
promise = @client.make_request_async(:put, path_template, options)
|
391
|
+
|
392
|
+
promise = promise.then do |result|
|
393
|
+
http_response = result.response
|
394
|
+
status_code = http_response.status
|
395
|
+
response_content = http_response.body
|
396
|
+
unless status_code == 200 || status_code == 202
|
397
|
+
error_model = JSON.load(response_content)
|
398
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
399
|
+
end
|
400
|
+
|
401
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
402
|
+
# Deserialize Response
|
403
|
+
if status_code == 200
|
404
|
+
begin
|
405
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
406
|
+
result_mapper = Azure::ARM::StorSimple8000Series::Models::StorageAccountCredential.mapper()
|
407
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
408
|
+
rescue Exception => e
|
409
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
410
|
+
end
|
411
|
+
end
|
412
|
+
|
413
|
+
result
|
414
|
+
end
|
415
|
+
|
416
|
+
promise.execute
|
417
|
+
end
|
418
|
+
|
419
|
+
#
|
420
|
+
# Deletes the storage account credential.
|
421
|
+
#
|
422
|
+
# @param storage_account_credential_name [String] The name of the storage
|
423
|
+
# account credential.
|
424
|
+
# @param resource_group_name [String] The resource group name
|
425
|
+
# @param manager_name [String] The manager name
|
426
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
427
|
+
# will be added to the HTTP request.
|
428
|
+
#
|
429
|
+
#
|
430
|
+
def begin_delete(storage_account_credential_name, resource_group_name, manager_name, custom_headers = nil)
|
431
|
+
response = begin_delete_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers).value!
|
432
|
+
nil
|
433
|
+
end
|
434
|
+
|
435
|
+
#
|
436
|
+
# Deletes the storage account credential.
|
437
|
+
#
|
438
|
+
# @param storage_account_credential_name [String] The name of the storage
|
439
|
+
# account credential.
|
440
|
+
# @param resource_group_name [String] The resource group name
|
441
|
+
# @param manager_name [String] The manager name
|
442
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
443
|
+
# will be added to the HTTP request.
|
444
|
+
#
|
445
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
446
|
+
#
|
447
|
+
def begin_delete_with_http_info(storage_account_credential_name, resource_group_name, manager_name, custom_headers = nil)
|
448
|
+
begin_delete_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers).value!
|
449
|
+
end
|
450
|
+
|
451
|
+
#
|
452
|
+
# Deletes the storage account credential.
|
453
|
+
#
|
454
|
+
# @param storage_account_credential_name [String] The name of the storage
|
455
|
+
# account credential.
|
456
|
+
# @param resource_group_name [String] The resource group name
|
457
|
+
# @param manager_name [String] The manager name
|
458
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
459
|
+
# to the HTTP request.
|
460
|
+
#
|
461
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
462
|
+
#
|
463
|
+
def begin_delete_async(storage_account_credential_name, resource_group_name, manager_name, custom_headers = nil)
|
464
|
+
fail ArgumentError, 'storage_account_credential_name is nil' if storage_account_credential_name.nil?
|
465
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
466
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
467
|
+
fail ArgumentError, 'manager_name is nil' if manager_name.nil?
|
468
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
469
|
+
|
470
|
+
|
471
|
+
request_headers = {}
|
472
|
+
|
473
|
+
# Set Headers
|
474
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
475
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
476
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorSimple/managers/{managerName}/storageAccountCredentials/{storageAccountCredentialName}'
|
477
|
+
|
478
|
+
request_url = @base_url || @client.base_url
|
479
|
+
|
480
|
+
options = {
|
481
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
482
|
+
skip_encoding_path_params: {'storageAccountCredentialName' => storage_account_credential_name,'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'managerName' => manager_name},
|
483
|
+
skip_encoding_query_params: {'api-version' => @client.api_version},
|
484
|
+
headers: request_headers.merge(custom_headers || {}),
|
485
|
+
base_url: request_url
|
486
|
+
}
|
487
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
488
|
+
|
489
|
+
promise = promise.then do |result|
|
490
|
+
http_response = result.response
|
491
|
+
status_code = http_response.status
|
492
|
+
response_content = http_response.body
|
493
|
+
unless status_code == 202 || status_code == 204
|
494
|
+
error_model = JSON.load(response_content)
|
495
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
496
|
+
end
|
497
|
+
|
498
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
499
|
+
|
500
|
+
result
|
501
|
+
end
|
502
|
+
|
503
|
+
promise.execute
|
504
|
+
end
|
505
|
+
|
506
|
+
end
|
507
|
+
end
|