azure_mgmt_recovery_services 0.15.2 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services.rb +11 -9
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services/models/client_discovery_display.rb +9 -7
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services/models/client_discovery_response.rb +3 -3
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services/models/client_discovery_value_for_single_api.rb +7 -6
- data/lib/{2016-12-01/generated/azure_mgmt_recovery_services/models/tracked_resource.rb → 2016-06-01/generated/azure_mgmt_recovery_services/models/patch_tracked_resource.rb} +6 -6
- data/lib/{2016-12-01/generated/azure_mgmt_recovery_services/models/vault.rb → 2016-06-01/generated/azure_mgmt_recovery_services/models/patch_vault.rb} +7 -7
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services/models/vault_certificate_response.rb +8 -3
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services/models/vault_extended_info_resource.rb +1 -1
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services/models/vault_list.rb +32 -0
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services/operations.rb +15 -13
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services/recovery_services_client.rb +4 -1
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services/registered_identities.rb +6 -5
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services/replication_usages.rb +6 -5
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services/usages.rb +6 -5
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services/vault_certificates.rb +9 -10
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services/vault_extended_info_operations.rb +24 -25
- data/lib/2016-06-01/generated/azure_mgmt_recovery_services/vaults.rb +260 -42
- data/lib/azure_mgmt_recovery_services.rb +0 -1
- data/lib/profiles/latest/modules/recoveryservices_profile_module.rb +155 -161
- data/lib/profiles/latest/recoveryservices_latest_profile_client.rb +28 -9
- data/lib/profiles/latest/recoveryservices_module_definition.rb +0 -1
- data/lib/version.rb +1 -1
- metadata +5 -24
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services.rb +0 -45
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/backup_storage_configs.rb +0 -215
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/backup_vault_configs.rb +0 -226
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/backup_storage_config.rb +0 -107
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/backup_vault_config.rb +0 -107
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/enhanced_security_state.rb +0 -17
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/resource.rb +0 -84
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/sku.rb +0 -47
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/sku_name.rb +0 -16
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/storage_model_type.rb +0 -17
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/storage_type.rb +0 -17
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/storage_type_state.rb +0 -17
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/trigger_type.rb +0 -16
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/upgrade_details.rb +0 -147
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/vault_extended_info_resource.rb +0 -114
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/vault_properties.rb +0 -59
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/vault_upgrade_state.rb +0 -18
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/module_definition.rb +0 -9
- data/lib/2016-12-01/generated/azure_mgmt_recovery_services/recovery_services_backup_client.rb +0 -131
@@ -1,147 +0,0 @@
|
|
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::RecoveryServices::Mgmt::V2016_12_01
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Details for upgrading vault.
|
10
|
-
#
|
11
|
-
class UpgradeDetails
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] ID of the vault upgrade operation.
|
16
|
-
attr_accessor :operation_id
|
17
|
-
|
18
|
-
# @return [DateTime] UTC time at which the upgrade operation has started.
|
19
|
-
attr_accessor :start_time_utc
|
20
|
-
|
21
|
-
# @return [DateTime] UTC time at which the upgrade operation status was
|
22
|
-
# last updated.
|
23
|
-
attr_accessor :last_updated_time_utc
|
24
|
-
|
25
|
-
# @return [DateTime] UTC time at which the upgrade operation has ended.
|
26
|
-
attr_accessor :end_time_utc
|
27
|
-
|
28
|
-
# @return [VaultUpgradeState] Status of the vault upgrade operation.
|
29
|
-
# Possible values include: 'Unknown', 'InProgress', 'Upgraded', 'Failed'
|
30
|
-
attr_accessor :status
|
31
|
-
|
32
|
-
# @return [String] Message to the user containing information about the
|
33
|
-
# upgrade operation.
|
34
|
-
attr_accessor :message
|
35
|
-
|
36
|
-
# @return [TriggerType] The way the vault upgradation was triggered.
|
37
|
-
# Possible values include: 'UserTriggered', 'ForcedUpgrade'
|
38
|
-
attr_accessor :trigger_type
|
39
|
-
|
40
|
-
# @return [String] Resource ID of the upgraded vault.
|
41
|
-
attr_accessor :upgraded_resource_id
|
42
|
-
|
43
|
-
# @return [String] Resource ID of the vault before the upgrade.
|
44
|
-
attr_accessor :previous_resource_id
|
45
|
-
|
46
|
-
|
47
|
-
#
|
48
|
-
# Mapper for UpgradeDetails class as Ruby Hash.
|
49
|
-
# This will be used for serialization/deserialization.
|
50
|
-
#
|
51
|
-
def self.mapper()
|
52
|
-
{
|
53
|
-
client_side_validation: true,
|
54
|
-
required: false,
|
55
|
-
serialized_name: 'UpgradeDetails',
|
56
|
-
type: {
|
57
|
-
name: 'Composite',
|
58
|
-
class_name: 'UpgradeDetails',
|
59
|
-
model_properties: {
|
60
|
-
operation_id: {
|
61
|
-
client_side_validation: true,
|
62
|
-
required: false,
|
63
|
-
read_only: true,
|
64
|
-
serialized_name: 'operationId',
|
65
|
-
type: {
|
66
|
-
name: 'String'
|
67
|
-
}
|
68
|
-
},
|
69
|
-
start_time_utc: {
|
70
|
-
client_side_validation: true,
|
71
|
-
required: false,
|
72
|
-
read_only: true,
|
73
|
-
serialized_name: 'startTimeUtc',
|
74
|
-
type: {
|
75
|
-
name: 'DateTime'
|
76
|
-
}
|
77
|
-
},
|
78
|
-
last_updated_time_utc: {
|
79
|
-
client_side_validation: true,
|
80
|
-
required: false,
|
81
|
-
read_only: true,
|
82
|
-
serialized_name: 'lastUpdatedTimeUtc',
|
83
|
-
type: {
|
84
|
-
name: 'DateTime'
|
85
|
-
}
|
86
|
-
},
|
87
|
-
end_time_utc: {
|
88
|
-
client_side_validation: true,
|
89
|
-
required: false,
|
90
|
-
read_only: true,
|
91
|
-
serialized_name: 'endTimeUtc',
|
92
|
-
type: {
|
93
|
-
name: 'DateTime'
|
94
|
-
}
|
95
|
-
},
|
96
|
-
status: {
|
97
|
-
client_side_validation: true,
|
98
|
-
required: false,
|
99
|
-
read_only: true,
|
100
|
-
serialized_name: 'status',
|
101
|
-
type: {
|
102
|
-
name: 'String'
|
103
|
-
}
|
104
|
-
},
|
105
|
-
message: {
|
106
|
-
client_side_validation: true,
|
107
|
-
required: false,
|
108
|
-
read_only: true,
|
109
|
-
serialized_name: 'message',
|
110
|
-
type: {
|
111
|
-
name: 'String'
|
112
|
-
}
|
113
|
-
},
|
114
|
-
trigger_type: {
|
115
|
-
client_side_validation: true,
|
116
|
-
required: false,
|
117
|
-
read_only: true,
|
118
|
-
serialized_name: 'triggerType',
|
119
|
-
type: {
|
120
|
-
name: 'String'
|
121
|
-
}
|
122
|
-
},
|
123
|
-
upgraded_resource_id: {
|
124
|
-
client_side_validation: true,
|
125
|
-
required: false,
|
126
|
-
read_only: true,
|
127
|
-
serialized_name: 'upgradedResourceId',
|
128
|
-
type: {
|
129
|
-
name: 'String'
|
130
|
-
}
|
131
|
-
},
|
132
|
-
previous_resource_id: {
|
133
|
-
client_side_validation: true,
|
134
|
-
required: false,
|
135
|
-
read_only: true,
|
136
|
-
serialized_name: 'previousResourceId',
|
137
|
-
type: {
|
138
|
-
name: 'String'
|
139
|
-
}
|
140
|
-
}
|
141
|
-
}
|
142
|
-
}
|
143
|
-
}
|
144
|
-
end
|
145
|
-
end
|
146
|
-
end
|
147
|
-
end
|
data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/vault_extended_info_resource.rb
DELETED
@@ -1,114 +0,0 @@
|
|
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::RecoveryServices::Mgmt::V2016_12_01
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Vault extended information.
|
10
|
-
#
|
11
|
-
class VaultExtendedInfoResource < Resource
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Integrity key.
|
16
|
-
attr_accessor :integrity_key
|
17
|
-
|
18
|
-
# @return [String] Encryption key.
|
19
|
-
attr_accessor :encryption_key
|
20
|
-
|
21
|
-
# @return [String] Encryption key thumbprint.
|
22
|
-
attr_accessor :encryption_key_thumbprint
|
23
|
-
|
24
|
-
# @return [String] Algorithm.
|
25
|
-
attr_accessor :algorithm
|
26
|
-
|
27
|
-
|
28
|
-
#
|
29
|
-
# Mapper for VaultExtendedInfoResource class as Ruby Hash.
|
30
|
-
# This will be used for serialization/deserialization.
|
31
|
-
#
|
32
|
-
def self.mapper()
|
33
|
-
{
|
34
|
-
client_side_validation: true,
|
35
|
-
required: false,
|
36
|
-
serialized_name: 'VaultExtendedInfoResource',
|
37
|
-
type: {
|
38
|
-
name: 'Composite',
|
39
|
-
class_name: 'VaultExtendedInfoResource',
|
40
|
-
model_properties: {
|
41
|
-
id: {
|
42
|
-
client_side_validation: true,
|
43
|
-
required: false,
|
44
|
-
read_only: true,
|
45
|
-
serialized_name: 'id',
|
46
|
-
type: {
|
47
|
-
name: 'String'
|
48
|
-
}
|
49
|
-
},
|
50
|
-
name: {
|
51
|
-
client_side_validation: true,
|
52
|
-
required: false,
|
53
|
-
read_only: true,
|
54
|
-
serialized_name: 'name',
|
55
|
-
type: {
|
56
|
-
name: 'String'
|
57
|
-
}
|
58
|
-
},
|
59
|
-
type: {
|
60
|
-
client_side_validation: true,
|
61
|
-
required: false,
|
62
|
-
read_only: true,
|
63
|
-
serialized_name: 'type',
|
64
|
-
type: {
|
65
|
-
name: 'String'
|
66
|
-
}
|
67
|
-
},
|
68
|
-
e_tag: {
|
69
|
-
client_side_validation: true,
|
70
|
-
required: false,
|
71
|
-
serialized_name: 'eTag',
|
72
|
-
type: {
|
73
|
-
name: 'String'
|
74
|
-
}
|
75
|
-
},
|
76
|
-
integrity_key: {
|
77
|
-
client_side_validation: true,
|
78
|
-
required: false,
|
79
|
-
serialized_name: 'properties.integrityKey',
|
80
|
-
type: {
|
81
|
-
name: 'String'
|
82
|
-
}
|
83
|
-
},
|
84
|
-
encryption_key: {
|
85
|
-
client_side_validation: true,
|
86
|
-
required: false,
|
87
|
-
serialized_name: 'properties.encryptionKey',
|
88
|
-
type: {
|
89
|
-
name: 'String'
|
90
|
-
}
|
91
|
-
},
|
92
|
-
encryption_key_thumbprint: {
|
93
|
-
client_side_validation: true,
|
94
|
-
required: false,
|
95
|
-
serialized_name: 'properties.encryptionKeyThumbprint',
|
96
|
-
type: {
|
97
|
-
name: 'String'
|
98
|
-
}
|
99
|
-
},
|
100
|
-
algorithm: {
|
101
|
-
client_side_validation: true,
|
102
|
-
required: false,
|
103
|
-
serialized_name: 'properties.algorithm',
|
104
|
-
type: {
|
105
|
-
name: 'String'
|
106
|
-
}
|
107
|
-
}
|
108
|
-
}
|
109
|
-
}
|
110
|
-
}
|
111
|
-
end
|
112
|
-
end
|
113
|
-
end
|
114
|
-
end
|
@@ -1,59 +0,0 @@
|
|
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::RecoveryServices::Mgmt::V2016_12_01
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Properties of the vault.
|
10
|
-
#
|
11
|
-
class VaultProperties
|
12
|
-
|
13
|
-
include MsRestAzure
|
14
|
-
|
15
|
-
# @return [String] Provisioning State.
|
16
|
-
attr_accessor :provisioning_state
|
17
|
-
|
18
|
-
# @return [UpgradeDetails]
|
19
|
-
attr_accessor :upgrade_details
|
20
|
-
|
21
|
-
|
22
|
-
#
|
23
|
-
# Mapper for VaultProperties 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: 'VaultProperties',
|
31
|
-
type: {
|
32
|
-
name: 'Composite',
|
33
|
-
class_name: 'VaultProperties',
|
34
|
-
model_properties: {
|
35
|
-
provisioning_state: {
|
36
|
-
client_side_validation: true,
|
37
|
-
required: false,
|
38
|
-
read_only: true,
|
39
|
-
serialized_name: 'provisioningState',
|
40
|
-
type: {
|
41
|
-
name: 'String'
|
42
|
-
}
|
43
|
-
},
|
44
|
-
upgrade_details: {
|
45
|
-
client_side_validation: true,
|
46
|
-
required: false,
|
47
|
-
serialized_name: 'upgradeDetails',
|
48
|
-
type: {
|
49
|
-
name: 'Composite',
|
50
|
-
class_name: 'UpgradeDetails'
|
51
|
-
}
|
52
|
-
}
|
53
|
-
}
|
54
|
-
}
|
55
|
-
}
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
@@ -1,18 +0,0 @@
|
|
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::RecoveryServices::Mgmt::V2016_12_01
|
7
|
-
module Models
|
8
|
-
#
|
9
|
-
# Defines values for VaultUpgradeState
|
10
|
-
#
|
11
|
-
module VaultUpgradeState
|
12
|
-
Unknown = "Unknown"
|
13
|
-
InProgress = "InProgress"
|
14
|
-
Upgraded = "Upgraded"
|
15
|
-
Failed = "Failed"
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
@@ -1,9 +0,0 @@
|
|
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::RecoveryServices end
|
8
|
-
module Azure::RecoveryServices::Mgmt end
|
9
|
-
module Azure::RecoveryServices::Mgmt::V2016_12_01 end
|
data/lib/2016-12-01/generated/azure_mgmt_recovery_services/recovery_services_backup_client.rb
DELETED
@@ -1,131 +0,0 @@
|
|
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::RecoveryServices::Mgmt::V2016_12_01
|
7
|
-
#
|
8
|
-
# A service client - single point of access to the REST API.
|
9
|
-
#
|
10
|
-
class RecoveryServicesBackupClient < 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 subscription Id.
|
21
|
-
attr_accessor :subscription_id
|
22
|
-
|
23
|
-
# @return [String] Client Api Version.
|
24
|
-
attr_reader :api_version
|
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 [BackupVaultConfigs] backup_vault_configs
|
38
|
-
attr_reader :backup_vault_configs
|
39
|
-
|
40
|
-
# @return [BackupStorageConfigs] backup_storage_configs
|
41
|
-
attr_reader :backup_storage_configs
|
42
|
-
|
43
|
-
#
|
44
|
-
# Creates initializes a new instance of the RecoveryServicesBackupClient class.
|
45
|
-
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
46
|
-
# @param base_url [String] the base URI of the service.
|
47
|
-
# @param options [Array] filters to be applied to the HTTP requests.
|
48
|
-
#
|
49
|
-
def initialize(credentials = nil, base_url = nil, options = nil)
|
50
|
-
super(credentials, options)
|
51
|
-
@base_url = base_url || 'https://management.azure.com'
|
52
|
-
|
53
|
-
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
54
|
-
@credentials = credentials
|
55
|
-
|
56
|
-
@backup_vault_configs = BackupVaultConfigs.new(self)
|
57
|
-
@backup_storage_configs = BackupStorageConfigs.new(self)
|
58
|
-
@api_version = '2016-12-01'
|
59
|
-
@accept_language = 'en-US'
|
60
|
-
@long_running_operation_retry_timeout = 30
|
61
|
-
@generate_client_request_id = true
|
62
|
-
add_telemetry
|
63
|
-
end
|
64
|
-
|
65
|
-
#
|
66
|
-
# Makes a request and returns the body of the response.
|
67
|
-
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
68
|
-
# @param path [String] the path, relative to {base_url}.
|
69
|
-
# @param options [Hash{String=>String}] specifying any request options like :body.
|
70
|
-
# @return [Hash{String=>String}] containing the body of the response.
|
71
|
-
# Example:
|
72
|
-
#
|
73
|
-
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
74
|
-
# path = "/path"
|
75
|
-
# options = {
|
76
|
-
# body: request_content,
|
77
|
-
# query_params: {'api-version' => '2016-02-01'}
|
78
|
-
# }
|
79
|
-
# result = @client.make_request(:put, path, options)
|
80
|
-
#
|
81
|
-
def make_request(method, path, options = {})
|
82
|
-
result = make_request_with_http_info(method, path, options)
|
83
|
-
result.body unless result.nil?
|
84
|
-
end
|
85
|
-
|
86
|
-
#
|
87
|
-
# Makes a request and returns the operation response.
|
88
|
-
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
89
|
-
# @param path [String] the path, relative to {base_url}.
|
90
|
-
# @param options [Hash{String=>String}] specifying any request options like :body.
|
91
|
-
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
92
|
-
#
|
93
|
-
def make_request_with_http_info(method, path, options = {})
|
94
|
-
result = make_request_async(method, path, options).value!
|
95
|
-
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
96
|
-
result
|
97
|
-
end
|
98
|
-
|
99
|
-
#
|
100
|
-
# Makes a request asynchronously.
|
101
|
-
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
102
|
-
# @param path [String] the path, relative to {base_url}.
|
103
|
-
# @param options [Hash{String=>String}] specifying any request options like :body.
|
104
|
-
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
105
|
-
#
|
106
|
-
def make_request_async(method, path, options = {})
|
107
|
-
fail ArgumentError, 'method is nil' if method.nil?
|
108
|
-
fail ArgumentError, 'path is nil' if path.nil?
|
109
|
-
|
110
|
-
request_url = options[:base_url] || @base_url
|
111
|
-
|
112
|
-
request_headers = @request_headers
|
113
|
-
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
114
|
-
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
115
|
-
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
116
|
-
|
117
|
-
super(request_url, method, path, options)
|
118
|
-
end
|
119
|
-
|
120
|
-
|
121
|
-
private
|
122
|
-
#
|
123
|
-
# Adds telemetry information.
|
124
|
-
#
|
125
|
-
def add_telemetry
|
126
|
-
sdk_information = 'azure_mgmt_recovery_services'
|
127
|
-
sdk_information = "#{sdk_information}/0.15.2"
|
128
|
-
add_user_agent_information(sdk_information)
|
129
|
-
end
|
130
|
-
end
|
131
|
-
end
|