azure_mgmt_recovery_services 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-06-01/generated/azure_mgmt_recovery_services.rb +66 -0
  3. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/auth_type.rb +1 -1
  4. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/certificate_request.rb +1 -1
  5. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/client_discovery_display.rb +1 -1
  6. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/client_discovery_for_log_specification.rb +1 -1
  7. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/client_discovery_for_properties.rb +1 -1
  8. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/client_discovery_for_service_specification.rb +1 -1
  9. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/client_discovery_response.rb +1 -1
  10. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/client_discovery_value_for_single_api.rb +1 -1
  11. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/jobs_summary.rb +1 -1
  12. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/monitoring_summary.rb +1 -1
  13. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/name_info.rb +1 -1
  14. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/raw_certificate_data.rb +1 -1
  15. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/replication_usage.rb +1 -1
  16. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/replication_usage_list.rb +1 -1
  17. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/resource.rb +1 -1
  18. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/resource_certificate_and_aad_details.rb +1 -1
  19. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/resource_certificate_and_acs_details.rb +1 -1
  20. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/resource_certificate_details.rb +1 -1
  21. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/sku.rb +1 -1
  22. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/sku_name.rb +1 -1
  23. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/tracked_resource.rb +1 -1
  24. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/trigger_type.rb +1 -1
  25. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/upgrade_details.rb +1 -1
  26. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/usages_unit.rb +1 -1
  27. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/vault.rb +1 -1
  28. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/vault_certificate_response.rb +1 -1
  29. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/vault_extended_info_resource.rb +1 -1
  30. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/vault_list.rb +1 -1
  31. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/vault_properties.rb +1 -1
  32. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/vault_upgrade_state.rb +1 -1
  33. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/vault_usage.rb +1 -1
  34. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/models/vault_usage_list.rb +1 -1
  35. data/lib/2016-06-01/generated/azure_mgmt_recovery_services/module_definition.rb +9 -0
  36. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/operations.rb +5 -5
  37. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/recovery_services_client.rb +7 -11
  38. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/registered_identities.rb +3 -3
  39. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/replication_usages.rb +4 -4
  40. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/usages.rb +4 -4
  41. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/vault_certificates.rb +5 -5
  42. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/vault_extended_info_operations.rb +12 -12
  43. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/vaults.rb +22 -22
  44. data/lib/{generated → 2016-06-01/generated}/azure_mgmt_recovery_services/version.rb +2 -2
  45. data/lib/2016-12-01/generated/azure_mgmt_recovery_services.rb +45 -0
  46. data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/backup_storage_configs.rb +9 -9
  47. data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/backup_vault_configs.rb +10 -10
  48. data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/models/backup_storage_config.rb +1 -1
  49. data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/models/backup_vault_config.rb +1 -1
  50. data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/models/enhanced_security_state.rb +1 -1
  51. data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/resource.rb +79 -0
  52. data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/sku.rb +45 -0
  53. data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/sku_name.rb +16 -0
  54. data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/models/storage_model_type.rb +1 -1
  55. data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/models/storage_type.rb +1 -1
  56. data/lib/{generated → 2016-12-01/generated}/azure_mgmt_recovery_services/models/storage_type_state.rb +1 -1
  57. data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/tracked_resource.rb +92 -0
  58. data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/trigger_type.rb +16 -0
  59. data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/upgrade_details.rb +137 -0
  60. data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/vault.rb +108 -0
  61. data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/vault_extended_info_resource.rb +105 -0
  62. data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/vault_properties.rb +56 -0
  63. data/lib/2016-12-01/generated/azure_mgmt_recovery_services/models/vault_upgrade_state.rb +18 -0
  64. data/lib/2016-12-01/generated/azure_mgmt_recovery_services/module_definition.rb +9 -0
  65. data/lib/2016-12-01/generated/azure_mgmt_recovery_services/recovery_services_backup_client.rb +133 -0
  66. data/lib/{generated/azure_mgmt_recovery_services/module_definition.rb → 2016-12-01/generated/azure_mgmt_recovery_services/version.rb} +3 -3
  67. data/lib/azure_mgmt_recovery_services.rb +3 -1
  68. data/lib/module_definition.rb +8 -0
  69. data/lib/profiles/common/configurable.rb +73 -0
  70. data/lib/profiles/common/default.rb +68 -0
  71. data/lib/profiles/latest/modules/recoveryservices_profile_module.rb +215 -0
  72. data/lib/profiles/latest/recoveryservices_latest_profile_client.rb +33 -0
  73. data/lib/profiles/latest/recoveryservices_module_definition.rb +9 -0
  74. data/lib/version.rb +7 -0
  75. metadata +74 -53
  76. data/lib/generated/azure_mgmt_recovery_services.rb +0 -74
@@ -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::RecoveryServices end
8
+ module Azure::RecoveryServices::Mgmt end
9
+ module Azure::RecoveryServices::Mgmt::V2016_12_01 end
@@ -0,0 +1,133 @@
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
+ if defined? Azure::RecoveryServices::Mgmt::V2016_12_01::VERSION
128
+ sdk_information = "#{sdk_information}/#{Azure::RecoveryServices::Mgmt::V2016_12_01::VERSION}"
129
+ end
130
+ add_user_agent_information(sdk_information)
131
+ end
132
+ end
133
+ end
@@ -3,6 +3,6 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure end
7
- module Azure::ARM end
8
- module Azure::ARM::RecoveryServices end
6
+ module Azure::RecoveryServices::Mgmt::V2016_12_01
7
+ VERSION = '0.15.0'
8
+ end
@@ -2,4 +2,6 @@
2
2
  # Copyright (c) Microsoft Corporation. All rights reserved.
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
- require 'generated/azure_mgmt_recovery_services'
5
+ require '2016-06-01/generated/azure_mgmt_recovery_services'
6
+ require '2016-12-01/generated/azure_mgmt_recovery_services'
7
+ require 'profiles/latest/recoveryservices_latest_profile_client'
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure end
6
+ module Azure::RecoveryServices end
7
+ module Azure::RecoveryServices::Mgmt end
8
+
@@ -0,0 +1,73 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure::ARM
6
+ # The Azure::ARM::Configurable module provides basic configuration for Azure ARM activities.
7
+ module Configurable
8
+ # @return [String] Azure tenant id (also known as domain).
9
+ attr_accessor :tenant_id
10
+
11
+ # @return [String] Azure client id.
12
+ attr_accessor :client_id
13
+
14
+ # @return [String] Azure secret key.
15
+ attr_accessor :client_secret
16
+
17
+ # @return [String] Azure subscription id.
18
+ attr_accessor :subscription_id
19
+
20
+ # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure active directory service settings.
21
+ attr_accessor :active_directory_settings
22
+
23
+ # @return [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
24
+ attr_accessor :credentials
25
+
26
+ class << self
27
+ #
28
+ # List of configurable keys for {Azure::ARM::Client}.
29
+ # @return [Array] of option keys.
30
+ #
31
+ def keys
32
+ @keys ||= [:tenant_id, :client_id, :client_secret, :subscription_id, :active_directory_settings, :credentials]
33
+ end
34
+ end
35
+
36
+ #
37
+ # Set configuration options using a block.
38
+ #
39
+ def configure
40
+ yield self
41
+ end
42
+
43
+ #
44
+ # Resets the configurable options to provided options or defaults.
45
+ # This will also creates MsRest::TokenCredentials to be used for subsequent Azure Resource Manager clients.
46
+ #
47
+ def reset!(options = {})
48
+ Azure::ARM::Configurable.keys.each do |key|
49
+ default_value = Azure::ARM::Default.options[key]
50
+ instance_variable_set(:"@#{key}", options.fetch(key, default_value))
51
+ end
52
+
53
+ self
54
+ end
55
+
56
+ def config
57
+ self
58
+ end
59
+
60
+ private
61
+
62
+ #
63
+ # configures configurable options to default values
64
+ #
65
+ def setup_options
66
+ opts = {}
67
+ Azure::ARM::Configurable.keys.map do |key|
68
+ opts[key] = Azure::ARM::Default.options[key]
69
+ end
70
+ opts
71
+ end
72
+ end
73
+ end
@@ -0,0 +1,68 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure::ARM
6
+ # Default configuration options for {Azure::ARM.Client}
7
+ module Default
8
+ class << self
9
+ #
10
+ # Default Azure Tenant Id.
11
+ # @return [String] Azure Tenant Id.
12
+ #
13
+ def tenant_id
14
+ ENV['AZURE_TENANT_ID']
15
+ end
16
+
17
+ #
18
+ # Default Azure Client Id.
19
+ # @return [String] Azure Client Id.
20
+ #
21
+ def client_id
22
+ ENV['AZURE_CLIENT_ID']
23
+ end
24
+
25
+ #
26
+ # Default Azure Client Secret.
27
+ # @return [String] Azure Client Secret.
28
+ #
29
+ def client_secret
30
+ ENV['AZURE_CLIENT_SECRET']
31
+ end
32
+
33
+ #
34
+ # Default Azure Subscription Id.
35
+ # @return [String] Azure Subscription Id.
36
+ #
37
+ def subscription_id
38
+ ENV['AZURE_SUBSCRIPTION_ID']
39
+ end
40
+
41
+ #
42
+ # Default Azure credentials to authorize HTTP requests made by the service client.
43
+ # @return [MsRest::ServiceClientCredentials] Azure credentials to authorize HTTP requests made by the service client.
44
+ #
45
+ def credentials
46
+ MsRest::TokenCredentials.new(
47
+ MsRestAzure::ApplicationTokenProvider.new(
48
+ self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
49
+ end
50
+
51
+ #
52
+ # Default Azure Active Directory Service Settings.
53
+ # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure Active Directory Service Settings.
54
+ #
55
+ def active_directory_settings
56
+ MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings
57
+ end
58
+
59
+ #
60
+ # Configuration options.
61
+ # @return [Hash] Configuration options.
62
+ #
63
+ def options
64
+ Hash[Azure::ARM::Configurable.keys.map{|key| [key, send(key)]}]
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,215 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'azure_mgmt_recovery_services'
6
+
7
+ module Azure::RecoveryServices::Profiles::Latest::Mgmt
8
+ VaultCertificates = Azure::RecoveryServices::Mgmt::V2016_06_01::VaultCertificates
9
+ RegisteredIdentities = Azure::RecoveryServices::Mgmt::V2016_06_01::RegisteredIdentities
10
+ ReplicationUsages = Azure::RecoveryServices::Mgmt::V2016_06_01::ReplicationUsages
11
+ Vaults = Azure::RecoveryServices::Mgmt::V2016_06_01::Vaults
12
+ Operations = Azure::RecoveryServices::Mgmt::V2016_06_01::Operations
13
+ VaultExtendedInfoOperations = Azure::RecoveryServices::Mgmt::V2016_06_01::VaultExtendedInfoOperations
14
+ Usages = Azure::RecoveryServices::Mgmt::V2016_06_01::Usages
15
+ BackupVaultConfigs = Azure::RecoveryServices::Mgmt::V2016_12_01::BackupVaultConfigs
16
+ BackupStorageConfigs = Azure::RecoveryServices::Mgmt::V2016_12_01::BackupStorageConfigs
17
+
18
+ module Models
19
+ ClientDiscoveryForProperties = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryForProperties
20
+ ClientDiscoveryValueForSingleApi = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryValueForSingleApi
21
+ CertificateRequest = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::CertificateRequest
22
+ ClientDiscoveryResponse = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryResponse
23
+ RawCertificateData = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::RawCertificateData
24
+ ResourceCertificateDetails = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ResourceCertificateDetails
25
+ VaultList = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultList
26
+ JobsSummary = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::JobsSummary
27
+ ReplicationUsage = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ReplicationUsage
28
+ ClientDiscoveryDisplay = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryDisplay
29
+ ClientDiscoveryForServiceSpecification = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryForServiceSpecification
30
+ VaultUsageList = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultUsageList
31
+ MonitoringSummary = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::MonitoringSummary
32
+ ClientDiscoveryForLogSpecification = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryForLogSpecification
33
+ ReplicationUsageList = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ReplicationUsageList
34
+ VaultUsage = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultUsage
35
+ VaultCertificateResponse = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultCertificateResponse
36
+ NameInfo = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::NameInfo
37
+ ResourceCertificateAndAadDetails = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ResourceCertificateAndAadDetails
38
+ ResourceCertificateAndAcsDetails = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ResourceCertificateAndAcsDetails
39
+ AuthType = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::AuthType
40
+ UsagesUnit = Azure::RecoveryServices::Mgmt::V2016_06_01::Models::UsagesUnit
41
+ UpgradeDetails = Azure::RecoveryServices::Mgmt::V2016_12_01::Models::UpgradeDetails
42
+ VaultProperties = Azure::RecoveryServices::Mgmt::V2016_12_01::Models::VaultProperties
43
+ Sku = Azure::RecoveryServices::Mgmt::V2016_12_01::Models::Sku
44
+ Resource = Azure::RecoveryServices::Mgmt::V2016_12_01::Models::Resource
45
+ BackupStorageConfig = Azure::RecoveryServices::Mgmt::V2016_12_01::Models::BackupStorageConfig
46
+ BackupVaultConfig = Azure::RecoveryServices::Mgmt::V2016_12_01::Models::BackupVaultConfig
47
+ VaultExtendedInfoResource = Azure::RecoveryServices::Mgmt::V2016_12_01::Models::VaultExtendedInfoResource
48
+ TrackedResource = Azure::RecoveryServices::Mgmt::V2016_12_01::Models::TrackedResource
49
+ Vault = Azure::RecoveryServices::Mgmt::V2016_12_01::Models::Vault
50
+ StorageModelType = Azure::RecoveryServices::Mgmt::V2016_12_01::Models::StorageModelType
51
+ StorageType = Azure::RecoveryServices::Mgmt::V2016_12_01::Models::StorageType
52
+ StorageTypeState = Azure::RecoveryServices::Mgmt::V2016_12_01::Models::StorageTypeState
53
+ EnhancedSecurityState = Azure::RecoveryServices::Mgmt::V2016_12_01::Models::EnhancedSecurityState
54
+ SkuName = Azure::RecoveryServices::Mgmt::V2016_12_01::Models::SkuName
55
+ VaultUpgradeState = Azure::RecoveryServices::Mgmt::V2016_12_01::Models::VaultUpgradeState
56
+ TriggerType = Azure::RecoveryServices::Mgmt::V2016_12_01::Models::TriggerType
57
+ end
58
+
59
+ #
60
+ # RecoveryServices
61
+ #
62
+ class RecoveryServicesClass
63
+ attr_reader :vault_certificates, :registered_identities, :replication_usages, :vaults, :operations, :vault_extended_info_operations, :usages, :backup_vault_configs, :backup_storage_configs, :configurable, :base_url, :options, :model_classes
64
+
65
+ def initialize(options = {})
66
+ if options.is_a?(Hash) && options.length == 0
67
+ @options = setup_options
68
+ else
69
+ @options = options
70
+ end
71
+
72
+ reset!(options)
73
+
74
+ @configurable, @base_url, @options = self, nil, nil
75
+
76
+ client_0 = Azure::RecoveryServices::Mgmt::V2016_06_01::RecoveryServicesClient.new(configurable.credentials, base_url, options)
77
+ if(client_0.respond_to?(:subscription_id))
78
+ client_0.subscription_id = configurable.subscription_id
79
+ end
80
+ @vault_certificates = client_0.vault_certificates
81
+ @registered_identities = client_0.registered_identities
82
+ @replication_usages = client_0.replication_usages
83
+ @vaults = client_0.vaults
84
+ @operations = client_0.operations
85
+ @vault_extended_info_operations = client_0.vault_extended_info_operations
86
+ @usages = client_0.usages
87
+
88
+ client_1 = Azure::RecoveryServices::Mgmt::V2016_12_01::RecoveryServicesBackupClient.new(configurable.credentials, base_url, options)
89
+ if(client_1.respond_to?(:subscription_id))
90
+ client_1.subscription_id = configurable.subscription_id
91
+ end
92
+ @backup_vault_configs = client_1.backup_vault_configs
93
+ @backup_storage_configs = client_1.backup_storage_configs
94
+
95
+ @model_classes = ModelClasses.new
96
+ end
97
+
98
+ class ModelClasses
99
+ def client_discovery_for_properties
100
+ Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryForProperties
101
+ end
102
+ def client_discovery_value_for_single_api
103
+ Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryValueForSingleApi
104
+ end
105
+ def certificate_request
106
+ Azure::RecoveryServices::Mgmt::V2016_06_01::Models::CertificateRequest
107
+ end
108
+ def client_discovery_response
109
+ Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryResponse
110
+ end
111
+ def raw_certificate_data
112
+ Azure::RecoveryServices::Mgmt::V2016_06_01::Models::RawCertificateData
113
+ end
114
+ def resource_certificate_details
115
+ Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ResourceCertificateDetails
116
+ end
117
+ def vault_list
118
+ Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultList
119
+ end
120
+ def jobs_summary
121
+ Azure::RecoveryServices::Mgmt::V2016_06_01::Models::JobsSummary
122
+ end
123
+ def replication_usage
124
+ Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ReplicationUsage
125
+ end
126
+ def client_discovery_display
127
+ Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryDisplay
128
+ end
129
+ def client_discovery_for_service_specification
130
+ Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryForServiceSpecification
131
+ end
132
+ def vault_usage_list
133
+ Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultUsageList
134
+ end
135
+ def monitoring_summary
136
+ Azure::RecoveryServices::Mgmt::V2016_06_01::Models::MonitoringSummary
137
+ end
138
+ def client_discovery_for_log_specification
139
+ Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ClientDiscoveryForLogSpecification
140
+ end
141
+ def replication_usage_list
142
+ Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ReplicationUsageList
143
+ end
144
+ def vault_usage
145
+ Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultUsage
146
+ end
147
+ def vault_certificate_response
148
+ Azure::RecoveryServices::Mgmt::V2016_06_01::Models::VaultCertificateResponse
149
+ end
150
+ def name_info
151
+ Azure::RecoveryServices::Mgmt::V2016_06_01::Models::NameInfo
152
+ end
153
+ def resource_certificate_and_aad_details
154
+ Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ResourceCertificateAndAadDetails
155
+ end
156
+ def resource_certificate_and_acs_details
157
+ Azure::RecoveryServices::Mgmt::V2016_06_01::Models::ResourceCertificateAndAcsDetails
158
+ end
159
+ def auth_type
160
+ Azure::RecoveryServices::Mgmt::V2016_06_01::Models::AuthType
161
+ end
162
+ def usages_unit
163
+ Azure::RecoveryServices::Mgmt::V2016_06_01::Models::UsagesUnit
164
+ end
165
+ def upgrade_details
166
+ Azure::RecoveryServices::Mgmt::V2016_12_01::Models::UpgradeDetails
167
+ end
168
+ def vault_properties
169
+ Azure::RecoveryServices::Mgmt::V2016_12_01::Models::VaultProperties
170
+ end
171
+ def sku
172
+ Azure::RecoveryServices::Mgmt::V2016_12_01::Models::Sku
173
+ end
174
+ def resource
175
+ Azure::RecoveryServices::Mgmt::V2016_12_01::Models::Resource
176
+ end
177
+ def backup_storage_config
178
+ Azure::RecoveryServices::Mgmt::V2016_12_01::Models::BackupStorageConfig
179
+ end
180
+ def backup_vault_config
181
+ Azure::RecoveryServices::Mgmt::V2016_12_01::Models::BackupVaultConfig
182
+ end
183
+ def vault_extended_info_resource
184
+ Azure::RecoveryServices::Mgmt::V2016_12_01::Models::VaultExtendedInfoResource
185
+ end
186
+ def tracked_resource
187
+ Azure::RecoveryServices::Mgmt::V2016_12_01::Models::TrackedResource
188
+ end
189
+ def vault
190
+ Azure::RecoveryServices::Mgmt::V2016_12_01::Models::Vault
191
+ end
192
+ def storage_model_type
193
+ Azure::RecoveryServices::Mgmt::V2016_12_01::Models::StorageModelType
194
+ end
195
+ def storage_type
196
+ Azure::RecoveryServices::Mgmt::V2016_12_01::Models::StorageType
197
+ end
198
+ def storage_type_state
199
+ Azure::RecoveryServices::Mgmt::V2016_12_01::Models::StorageTypeState
200
+ end
201
+ def enhanced_security_state
202
+ Azure::RecoveryServices::Mgmt::V2016_12_01::Models::EnhancedSecurityState
203
+ end
204
+ def sku_name
205
+ Azure::RecoveryServices::Mgmt::V2016_12_01::Models::SkuName
206
+ end
207
+ def vault_upgrade_state
208
+ Azure::RecoveryServices::Mgmt::V2016_12_01::Models::VaultUpgradeState
209
+ end
210
+ def trigger_type
211
+ Azure::RecoveryServices::Mgmt::V2016_12_01::Models::TriggerType
212
+ end
213
+ end
214
+ end
215
+ end