azure_mgmt_recovery_services 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d37b2534f684fce94b2fdb64698659cdecbe4a98
|
4
|
+
data.tar.gz: 3e95fff455a45b45a80194f6b8340f022ba6da5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 641635b228dbbf2fd751b8d26cb3e5d1c1f4198bac7cad6ba8ebbf619dbc5f8a846f373fc8e29ee31bfdcadc4b6f342dfb6e8395342f57bf9b9b70ee720ad2d3
|
7
|
+
data.tar.gz: 16532efb6b793d5e61a339049f3b7e20a5966d235057aef2c30490eaefbf3c21ac57c5de63cd28bf3da67b5f1c3a3438813a7a5f8d1b9118ad2f69e93d7de1d3
|
@@ -30,32 +30,34 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
30
30
|
autoload :RecoveryServicesClient, '2016-06-01/generated/azure_mgmt_recovery_services/recovery_services_client.rb'
|
31
31
|
|
32
32
|
module Models
|
33
|
-
autoload :ClientDiscoveryForProperties, '2016-06-01/generated/azure_mgmt_recovery_services/models/client_discovery_for_properties.rb'
|
34
33
|
autoload :ClientDiscoveryValueForSingleApi, '2016-06-01/generated/azure_mgmt_recovery_services/models/client_discovery_value_for_single_api.rb'
|
35
|
-
autoload :CertificateRequest, '2016-06-01/generated/azure_mgmt_recovery_services/models/certificate_request.rb'
|
36
34
|
autoload :ClientDiscoveryResponse, '2016-06-01/generated/azure_mgmt_recovery_services/models/client_discovery_response.rb'
|
35
|
+
autoload :CertificateRequest, '2016-06-01/generated/azure_mgmt_recovery_services/models/certificate_request.rb'
|
36
|
+
autoload :Resource, '2016-06-01/generated/azure_mgmt_recovery_services/models/resource.rb'
|
37
|
+
autoload :ClientDiscoveryForProperties, '2016-06-01/generated/azure_mgmt_recovery_services/models/client_discovery_for_properties.rb'
|
37
38
|
autoload :RawCertificateData, '2016-06-01/generated/azure_mgmt_recovery_services/models/raw_certificate_data.rb'
|
38
|
-
autoload :
|
39
|
-
autoload :VaultList, '2016-06-01/generated/azure_mgmt_recovery_services/models/vault_list.rb'
|
39
|
+
autoload :VaultCertificateResponse, '2016-06-01/generated/azure_mgmt_recovery_services/models/vault_certificate_response.rb'
|
40
40
|
autoload :JobsSummary, '2016-06-01/generated/azure_mgmt_recovery_services/models/jobs_summary.rb'
|
41
|
+
autoload :VaultList, '2016-06-01/generated/azure_mgmt_recovery_services/models/vault_list.rb'
|
41
42
|
autoload :ReplicationUsage, '2016-06-01/generated/azure_mgmt_recovery_services/models/replication_usage.rb'
|
42
|
-
autoload :Resource, '2016-06-01/generated/azure_mgmt_recovery_services/models/resource.rb'
|
43
43
|
autoload :ClientDiscoveryDisplay, '2016-06-01/generated/azure_mgmt_recovery_services/models/client_discovery_display.rb'
|
44
44
|
autoload :Sku, '2016-06-01/generated/azure_mgmt_recovery_services/models/sku.rb'
|
45
45
|
autoload :ClientDiscoveryForServiceSpecification, '2016-06-01/generated/azure_mgmt_recovery_services/models/client_discovery_for_service_specification.rb'
|
46
46
|
autoload :VaultUsageList, '2016-06-01/generated/azure_mgmt_recovery_services/models/vault_usage_list.rb'
|
47
47
|
autoload :MonitoringSummary, '2016-06-01/generated/azure_mgmt_recovery_services/models/monitoring_summary.rb'
|
48
|
-
autoload :
|
48
|
+
autoload :VaultUsage, '2016-06-01/generated/azure_mgmt_recovery_services/models/vault_usage.rb'
|
49
49
|
autoload :ClientDiscoveryForLogSpecification, '2016-06-01/generated/azure_mgmt_recovery_services/models/client_discovery_for_log_specification.rb'
|
50
|
-
autoload :
|
50
|
+
autoload :UpgradeDetails, '2016-06-01/generated/azure_mgmt_recovery_services/models/upgrade_details.rb'
|
51
51
|
autoload :ReplicationUsageList, '2016-06-01/generated/azure_mgmt_recovery_services/models/replication_usage_list.rb'
|
52
|
-
autoload :
|
53
|
-
autoload :
|
52
|
+
autoload :VaultProperties, '2016-06-01/generated/azure_mgmt_recovery_services/models/vault_properties.rb'
|
53
|
+
autoload :ResourceCertificateDetails, '2016-06-01/generated/azure_mgmt_recovery_services/models/resource_certificate_details.rb'
|
54
54
|
autoload :NameInfo, '2016-06-01/generated/azure_mgmt_recovery_services/models/name_info.rb'
|
55
55
|
autoload :ResourceCertificateAndAadDetails, '2016-06-01/generated/azure_mgmt_recovery_services/models/resource_certificate_and_aad_details.rb'
|
56
56
|
autoload :ResourceCertificateAndAcsDetails, '2016-06-01/generated/azure_mgmt_recovery_services/models/resource_certificate_and_acs_details.rb'
|
57
57
|
autoload :TrackedResource, '2016-06-01/generated/azure_mgmt_recovery_services/models/tracked_resource.rb'
|
58
|
+
autoload :PatchTrackedResource, '2016-06-01/generated/azure_mgmt_recovery_services/models/patch_tracked_resource.rb'
|
58
59
|
autoload :Vault, '2016-06-01/generated/azure_mgmt_recovery_services/models/vault.rb'
|
60
|
+
autoload :PatchVault, '2016-06-01/generated/azure_mgmt_recovery_services/models/patch_vault.rb'
|
59
61
|
autoload :VaultExtendedInfoResource, '2016-06-01/generated/azure_mgmt_recovery_services/models/vault_extended_info_resource.rb'
|
60
62
|
autoload :AuthType, '2016-06-01/generated/azure_mgmt_recovery_services/models/auth_type.rb'
|
61
63
|
autoload :SkuName, '2016-06-01/generated/azure_mgmt_recovery_services/models/sku_name.rb'
|
data/lib/2016-06-01/generated/azure_mgmt_recovery_services/models/client_discovery_display.rb
CHANGED
@@ -15,13 +15,15 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
15
15
|
# @return [String] Name of the provider for display purposes
|
16
16
|
attr_accessor :provider
|
17
17
|
|
18
|
-
# @return [String]
|
18
|
+
# @return [String] ResourceType for which this Operation can be
|
19
|
+
# performed.
|
19
20
|
attr_accessor :resource
|
20
21
|
|
21
|
-
# @return [String] Name
|
22
|
+
# @return [String] Operations Name itself.
|
22
23
|
attr_accessor :operation
|
23
24
|
|
24
|
-
# @return [String] Description of the operation
|
25
|
+
# @return [String] Description of the operation having details of what
|
26
|
+
# operation is about.
|
25
27
|
attr_accessor :description
|
26
28
|
|
27
29
|
|
@@ -41,7 +43,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
41
43
|
provider: {
|
42
44
|
client_side_validation: true,
|
43
45
|
required: false,
|
44
|
-
serialized_name: '
|
46
|
+
serialized_name: 'provider',
|
45
47
|
type: {
|
46
48
|
name: 'String'
|
47
49
|
}
|
@@ -49,7 +51,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
49
51
|
resource: {
|
50
52
|
client_side_validation: true,
|
51
53
|
required: false,
|
52
|
-
serialized_name: '
|
54
|
+
serialized_name: 'resource',
|
53
55
|
type: {
|
54
56
|
name: 'String'
|
55
57
|
}
|
@@ -57,7 +59,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
57
59
|
operation: {
|
58
60
|
client_side_validation: true,
|
59
61
|
required: false,
|
60
|
-
serialized_name: '
|
62
|
+
serialized_name: 'operation',
|
61
63
|
type: {
|
62
64
|
name: 'String'
|
63
65
|
}
|
@@ -65,7 +67,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
65
67
|
description: {
|
66
68
|
client_side_validation: true,
|
67
69
|
required: false,
|
68
|
-
serialized_name: '
|
70
|
+
serialized_name: 'description',
|
69
71
|
type: {
|
70
72
|
name: 'String'
|
71
73
|
}
|
data/lib/2016-06-01/generated/azure_mgmt_recovery_services/models/client_discovery_response.rb
CHANGED
@@ -17,7 +17,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
17
17
|
# operationss.
|
18
18
|
attr_accessor :value
|
19
19
|
|
20
|
-
# @return [String]
|
20
|
+
# @return [String] Link to the next chunk of the response
|
21
21
|
attr_accessor :next_link
|
22
22
|
|
23
23
|
# return [Proc] with next page method call.
|
@@ -68,7 +68,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
68
68
|
value: {
|
69
69
|
client_side_validation: true,
|
70
70
|
required: false,
|
71
|
-
serialized_name: '
|
71
|
+
serialized_name: 'value',
|
72
72
|
type: {
|
73
73
|
name: 'Sequence',
|
74
74
|
element: {
|
@@ -85,7 +85,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
85
85
|
next_link: {
|
86
86
|
client_side_validation: true,
|
87
87
|
required: false,
|
88
|
-
serialized_name: '
|
88
|
+
serialized_name: 'nextLink',
|
89
89
|
type: {
|
90
90
|
name: 'String'
|
91
91
|
}
|
@@ -12,7 +12,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String] Name of the
|
15
|
+
# @return [String] Name of the Operation.
|
16
16
|
attr_accessor :name
|
17
17
|
|
18
18
|
# @return [ClientDiscoveryDisplay] Contains the localized display
|
@@ -23,7 +23,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
23
23
|
# display of the operation in the RBAC UX and the audit logs UX
|
24
24
|
attr_accessor :origin
|
25
25
|
|
26
|
-
# @return [ClientDiscoveryForProperties]
|
26
|
+
# @return [ClientDiscoveryForProperties] ShoeBox properties for the given
|
27
|
+
# operation.
|
27
28
|
attr_accessor :properties
|
28
29
|
|
29
30
|
|
@@ -43,7 +44,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
43
44
|
name: {
|
44
45
|
client_side_validation: true,
|
45
46
|
required: false,
|
46
|
-
serialized_name: '
|
47
|
+
serialized_name: 'name',
|
47
48
|
type: {
|
48
49
|
name: 'String'
|
49
50
|
}
|
@@ -51,7 +52,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
51
52
|
display: {
|
52
53
|
client_side_validation: true,
|
53
54
|
required: false,
|
54
|
-
serialized_name: '
|
55
|
+
serialized_name: 'display',
|
55
56
|
type: {
|
56
57
|
name: 'Composite',
|
57
58
|
class_name: 'ClientDiscoveryDisplay'
|
@@ -60,7 +61,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
60
61
|
origin: {
|
61
62
|
client_side_validation: true,
|
62
63
|
required: false,
|
63
|
-
serialized_name: '
|
64
|
+
serialized_name: 'origin',
|
64
65
|
type: {
|
65
66
|
name: 'String'
|
66
67
|
}
|
@@ -68,7 +69,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
68
69
|
properties: {
|
69
70
|
client_side_validation: true,
|
70
71
|
required: false,
|
71
|
-
serialized_name: '
|
72
|
+
serialized_name: 'properties',
|
72
73
|
type: {
|
73
74
|
name: 'Composite',
|
74
75
|
class_name: 'ClientDiscoveryForProperties'
|
@@ -3,12 +3,12 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::RecoveryServices::Mgmt::
|
6
|
+
module Azure::RecoveryServices::Mgmt::V2016_06_01
|
7
7
|
module Models
|
8
8
|
#
|
9
9
|
# Tracked resource with location.
|
10
10
|
#
|
11
|
-
class
|
11
|
+
class PatchTrackedResource < Resource
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
@@ -20,17 +20,17 @@ module Azure::RecoveryServices::Mgmt::V2016_12_01
|
|
20
20
|
|
21
21
|
|
22
22
|
#
|
23
|
-
# Mapper for
|
23
|
+
# Mapper for PatchTrackedResource class as Ruby Hash.
|
24
24
|
# This will be used for serialization/deserialization.
|
25
25
|
#
|
26
26
|
def self.mapper()
|
27
27
|
{
|
28
28
|
client_side_validation: true,
|
29
29
|
required: false,
|
30
|
-
serialized_name: '
|
30
|
+
serialized_name: 'PatchTrackedResource',
|
31
31
|
type: {
|
32
32
|
name: 'Composite',
|
33
|
-
class_name: '
|
33
|
+
class_name: 'PatchTrackedResource',
|
34
34
|
model_properties: {
|
35
35
|
id: {
|
36
36
|
client_side_validation: true,
|
@@ -69,7 +69,7 @@ module Azure::RecoveryServices::Mgmt::V2016_12_01
|
|
69
69
|
},
|
70
70
|
location: {
|
71
71
|
client_side_validation: true,
|
72
|
-
required:
|
72
|
+
required: false,
|
73
73
|
serialized_name: 'location',
|
74
74
|
type: {
|
75
75
|
name: 'String'
|
@@ -3,12 +3,12 @@
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
|
-
module Azure::RecoveryServices::Mgmt::
|
6
|
+
module Azure::RecoveryServices::Mgmt::V2016_06_01
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
# Resource information, as returned by the resource provider.
|
9
|
+
# Patch Resource information, as returned by the resource provider.
|
10
10
|
#
|
11
|
-
class
|
11
|
+
class PatchVault < PatchTrackedResource
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
@@ -20,17 +20,17 @@ module Azure::RecoveryServices::Mgmt::V2016_12_01
|
|
20
20
|
|
21
21
|
|
22
22
|
#
|
23
|
-
# Mapper for
|
23
|
+
# Mapper for PatchVault class as Ruby Hash.
|
24
24
|
# This will be used for serialization/deserialization.
|
25
25
|
#
|
26
26
|
def self.mapper()
|
27
27
|
{
|
28
28
|
client_side_validation: true,
|
29
29
|
required: false,
|
30
|
-
serialized_name: '
|
30
|
+
serialized_name: 'PatchVault',
|
31
31
|
type: {
|
32
32
|
name: 'Composite',
|
33
|
-
class_name: '
|
33
|
+
class_name: 'PatchVault',
|
34
34
|
model_properties: {
|
35
35
|
id: {
|
36
36
|
client_side_validation: true,
|
@@ -69,7 +69,7 @@ module Azure::RecoveryServices::Mgmt::V2016_12_01
|
|
69
69
|
},
|
70
70
|
location: {
|
71
71
|
client_side_validation: true,
|
72
|
-
required:
|
72
|
+
required: false,
|
73
73
|
serialized_name: 'location',
|
74
74
|
type: {
|
75
75
|
name: 'String'
|
data/lib/2016-06-01/generated/azure_mgmt_recovery_services/models/vault_certificate_response.rb
CHANGED
@@ -13,13 +13,15 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
13
13
|
|
14
14
|
include MsRestAzure
|
15
15
|
|
16
|
-
# @return [String]
|
16
|
+
# @return [String] Resource name associated with the resource.
|
17
17
|
attr_accessor :name
|
18
18
|
|
19
|
-
# @return [String]
|
19
|
+
# @return [String] Resource type represents the complete path of the form
|
20
|
+
# Namespace/ResourceType/ResourceType/...
|
20
21
|
attr_accessor :type
|
21
22
|
|
22
|
-
# @return [String]
|
23
|
+
# @return [String] Resource Id represents the complete path to the
|
24
|
+
# resource.
|
23
25
|
attr_accessor :id
|
24
26
|
|
25
27
|
# @return [ResourceCertificateDetails]
|
@@ -42,6 +44,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
42
44
|
name: {
|
43
45
|
client_side_validation: true,
|
44
46
|
required: false,
|
47
|
+
read_only: true,
|
45
48
|
serialized_name: 'name',
|
46
49
|
type: {
|
47
50
|
name: 'String'
|
@@ -50,6 +53,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
50
53
|
type: {
|
51
54
|
client_side_validation: true,
|
52
55
|
required: false,
|
56
|
+
read_only: true,
|
53
57
|
serialized_name: 'type',
|
54
58
|
type: {
|
55
59
|
name: 'String'
|
@@ -58,6 +62,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
58
62
|
id: {
|
59
63
|
client_side_validation: true,
|
60
64
|
required: false,
|
65
|
+
read_only: true,
|
61
66
|
serialized_name: 'id',
|
62
67
|
type: {
|
63
68
|
name: 'String'
|
data/lib/2016-06-01/generated/azure_mgmt_recovery_services/models/vault_extended_info_resource.rb
CHANGED
@@ -21,7 +21,7 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
21
21
|
# @return [String] Encryption key thumbprint.
|
22
22
|
attr_accessor :encryption_key_thumbprint
|
23
23
|
|
24
|
-
# @return [String] Algorithm
|
24
|
+
# @return [String] Algorithm for Vault ExtendedInfo
|
25
25
|
attr_accessor :algorithm
|
26
26
|
|
27
27
|
|
@@ -12,12 +12,44 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
+
include MsRest::JSONable
|
15
16
|
# @return [Array<Vault>]
|
16
17
|
attr_accessor :value
|
17
18
|
|
18
19
|
# @return [String]
|
19
20
|
attr_accessor :next_link
|
20
21
|
|
22
|
+
# return [Proc] with next page method call.
|
23
|
+
attr_accessor :next_method
|
24
|
+
|
25
|
+
#
|
26
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
27
|
+
#
|
28
|
+
# @return [Array<Vault>] operation results.
|
29
|
+
#
|
30
|
+
def get_all_items
|
31
|
+
items = @value
|
32
|
+
page = self
|
33
|
+
while page.next_link != nil do
|
34
|
+
page = page.get_next_page
|
35
|
+
items.concat(page.value)
|
36
|
+
end
|
37
|
+
items
|
38
|
+
end
|
39
|
+
|
40
|
+
#
|
41
|
+
# Gets the next page of results.
|
42
|
+
#
|
43
|
+
# @return [VaultList] with next page content.
|
44
|
+
#
|
45
|
+
def get_next_page
|
46
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
47
|
+
unless response.nil?
|
48
|
+
@next_link = response.body.next_link
|
49
|
+
@value = response.body.value
|
50
|
+
self
|
51
|
+
end
|
52
|
+
end
|
21
53
|
|
22
54
|
#
|
23
55
|
# Mapper for VaultList class as Ruby Hash.
|
@@ -29,8 +29,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
29
29
|
#
|
30
30
|
# @return [Array<ClientDiscoveryValueForSingleApi>] operation results.
|
31
31
|
#
|
32
|
-
def list(custom_headers
|
33
|
-
first_page = list_as_lazy(custom_headers)
|
32
|
+
def list(custom_headers:nil)
|
33
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
34
34
|
first_page.get_all_items
|
35
35
|
end
|
36
36
|
|
@@ -42,8 +42,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
42
42
|
#
|
43
43
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
44
44
|
#
|
45
|
-
def list_with_http_info(custom_headers
|
46
|
-
list_async(custom_headers).value!
|
45
|
+
def list_with_http_info(custom_headers:nil)
|
46
|
+
list_async(custom_headers:custom_headers).value!
|
47
47
|
end
|
48
48
|
|
49
49
|
#
|
@@ -54,11 +54,12 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
54
54
|
#
|
55
55
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
56
56
|
#
|
57
|
-
def list_async(custom_headers
|
57
|
+
def list_async(custom_headers:nil)
|
58
58
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
59
59
|
|
60
60
|
|
61
61
|
request_headers = {}
|
62
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
62
63
|
|
63
64
|
# Set Headers
|
64
65
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -112,8 +113,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
112
113
|
#
|
113
114
|
# @return [ClientDiscoveryResponse] operation results.
|
114
115
|
#
|
115
|
-
def list_next(next_page_link, custom_headers
|
116
|
-
response = list_next_async(next_page_link, custom_headers).value!
|
116
|
+
def list_next(next_page_link, custom_headers:nil)
|
117
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
117
118
|
response.body unless response.nil?
|
118
119
|
end
|
119
120
|
|
@@ -127,8 +128,8 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
127
128
|
#
|
128
129
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
129
130
|
#
|
130
|
-
def list_next_with_http_info(next_page_link, custom_headers
|
131
|
-
list_next_async(next_page_link, custom_headers).value!
|
131
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
132
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
132
133
|
end
|
133
134
|
|
134
135
|
#
|
@@ -141,11 +142,12 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
141
142
|
#
|
142
143
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
143
144
|
#
|
144
|
-
def list_next_async(next_page_link, custom_headers
|
145
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
145
146
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
146
147
|
|
147
148
|
|
148
149
|
request_headers = {}
|
150
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
149
151
|
|
150
152
|
# Set Headers
|
151
153
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
@@ -198,12 +200,12 @@ module Azure::RecoveryServices::Mgmt::V2016_06_01
|
|
198
200
|
# @return [ClientDiscoveryResponse] which provide lazy access to pages of the
|
199
201
|
# response.
|
200
202
|
#
|
201
|
-
def list_as_lazy(custom_headers
|
202
|
-
response = list_async(custom_headers).value!
|
203
|
+
def list_as_lazy(custom_headers:nil)
|
204
|
+
response = list_async(custom_headers:custom_headers).value!
|
203
205
|
unless response.nil?
|
204
206
|
page = response.body
|
205
207
|
page.next_method = Proc.new do |next_page_link|
|
206
|
-
list_next_async(next_page_link, custom_headers)
|
208
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
207
209
|
end
|
208
210
|
page
|
209
211
|
end
|