azure_mgmt_vmware_cloudsimple 0.17.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 +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple.rb +82 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/dedicated_cloud_nodes.rb +945 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/dedicated_cloud_services.rb +932 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/aggregation_type.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/available_operation.rb +99 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/available_operation_display.rb +79 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/available_operation_display_property_service_specification_metrics_item.rb +94 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/available_operation_display_property_service_specification_metrics_list.rb +60 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/available_operations_list_response.rb +99 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/csrperror.rb +47 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/csrperror_body.rb +91 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/dedicated_cloud_node.rb +293 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/dedicated_cloud_node_list_response.rb +99 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/dedicated_cloud_service.rb +154 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/dedicated_cloud_service_list_response.rb +99 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/disk_independence_mode.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/guest_ostype.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/nictype.rb +20 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/node_status.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/onboarding_status.rb +18 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/operation_error.rb +57 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/operation_origin.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/operation_resource.rb +107 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/patch_payload.rb +54 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/private_cloud.rb +382 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/private_cloud_list.rb +98 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/private_cloud_resource_type.rb +15 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/resource_pool.rb +106 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/resource_pools_list_response.rb +98 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/sku.rb +93 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/sku_availability.rb +124 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/sku_availability_list_response.rb +99 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/stop_mode.rb +18 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/usage.rb +87 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/usage_count.rb +20 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/usage_list_response.rb +99 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/usage_name.rb +58 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_disk.rb +94 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_disk_controller.rb +84 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_machine.rb +388 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_machine_list_response.rb +98 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_machine_status.rb +20 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_machine_stop_mode.rb +49 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_machine_template.rb +283 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_machine_template_list_response.rb +98 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_network.rb +106 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_network_list_response.rb +98 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_nic.rb +124 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/module_definition.rb +9 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/operations.rb +335 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/private_clouds.rb +340 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/resource_pools.rb +349 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/skus_availability.rb +248 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/usages.rb +248 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/virtual_machine_templates.rb +361 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/virtual_machines.rb +1326 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/virtual_networks.rb +358 -0
- data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/vmware_cloud_simple_client.rb +170 -0
- data/lib/azure_mgmt_vmware_cloudsimple.rb +6 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/modules/vmwarecloudsimple_profile_module.rb +259 -0
- data/lib/profiles/latest/vmwarecloudsimple_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/vmwarecloudsimple_module_definition.rb +8 -0
- data/lib/version.rb +7 -0
- metadata +182 -0
|
@@ -0,0 +1,16 @@
|
|
|
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::VMwareCloudSimple::Mgmt::V2019_04_01
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Defines values for AggregationType
|
|
10
|
+
#
|
|
11
|
+
module AggregationType
|
|
12
|
+
Average = "Average"
|
|
13
|
+
Total = "Total"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,99 @@
|
|
|
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::VMwareCloudSimple::Mgmt::V2019_04_01
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Resource provider available operation model
|
|
10
|
+
#
|
|
11
|
+
class AvailableOperation
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [AvailableOperationDisplay] The list of operations
|
|
16
|
+
attr_accessor :display
|
|
17
|
+
|
|
18
|
+
# @return [Boolean] Indicating whether the operation is a data action or
|
|
19
|
+
# not. Default value: false .
|
|
20
|
+
attr_accessor :is_data_action
|
|
21
|
+
|
|
22
|
+
# @return [String]
|
|
23
|
+
# {resourceProviderNamespace}/{resourceType}/{read|write|delete|action}
|
|
24
|
+
attr_accessor :name
|
|
25
|
+
|
|
26
|
+
# @return [OperationOrigin] The origin of operation. Possible values
|
|
27
|
+
# include: 'user', 'system', 'user,system'
|
|
28
|
+
attr_accessor :origin
|
|
29
|
+
|
|
30
|
+
# @return
|
|
31
|
+
# [AvailableOperationDisplayPropertyServiceSpecificationMetricsList] The
|
|
32
|
+
# list of specification's service metrics
|
|
33
|
+
attr_accessor :service_specification
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
#
|
|
37
|
+
# Mapper for AvailableOperation class as Ruby Hash.
|
|
38
|
+
# This will be used for serialization/deserialization.
|
|
39
|
+
#
|
|
40
|
+
def self.mapper()
|
|
41
|
+
{
|
|
42
|
+
client_side_validation: true,
|
|
43
|
+
required: false,
|
|
44
|
+
serialized_name: 'AvailableOperation',
|
|
45
|
+
type: {
|
|
46
|
+
name: 'Composite',
|
|
47
|
+
class_name: 'AvailableOperation',
|
|
48
|
+
model_properties: {
|
|
49
|
+
display: {
|
|
50
|
+
client_side_validation: true,
|
|
51
|
+
required: false,
|
|
52
|
+
serialized_name: 'display',
|
|
53
|
+
type: {
|
|
54
|
+
name: 'Composite',
|
|
55
|
+
class_name: 'AvailableOperationDisplay'
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
is_data_action: {
|
|
59
|
+
client_side_validation: true,
|
|
60
|
+
required: false,
|
|
61
|
+
serialized_name: 'isDataAction',
|
|
62
|
+
default_value: false,
|
|
63
|
+
type: {
|
|
64
|
+
name: 'Boolean'
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
name: {
|
|
68
|
+
client_side_validation: true,
|
|
69
|
+
required: false,
|
|
70
|
+
serialized_name: 'name',
|
|
71
|
+
type: {
|
|
72
|
+
name: 'String'
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
origin: {
|
|
76
|
+
client_side_validation: true,
|
|
77
|
+
required: false,
|
|
78
|
+
serialized_name: 'origin',
|
|
79
|
+
type: {
|
|
80
|
+
name: 'Enum',
|
|
81
|
+
module: 'OperationOrigin'
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
service_specification: {
|
|
85
|
+
client_side_validation: true,
|
|
86
|
+
required: false,
|
|
87
|
+
serialized_name: 'properties.serviceSpecification',
|
|
88
|
+
type: {
|
|
89
|
+
name: 'Composite',
|
|
90
|
+
class_name: 'AvailableOperationDisplayPropertyServiceSpecificationMetricsList'
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
data/lib/2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/available_operation_display.rb
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
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::VMwareCloudSimple::Mgmt::V2019_04_01
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Resource provider available operation display model
|
|
10
|
+
#
|
|
11
|
+
class AvailableOperationDisplay
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [String] Description of the operation for display purposes
|
|
16
|
+
attr_accessor :description
|
|
17
|
+
|
|
18
|
+
# @return [String] Name of the operation for display purposes
|
|
19
|
+
attr_accessor :operation
|
|
20
|
+
|
|
21
|
+
# @return [String] Name of the provider for display purposes
|
|
22
|
+
attr_accessor :provider
|
|
23
|
+
|
|
24
|
+
# @return [String] Name of the resource type for display purposes
|
|
25
|
+
attr_accessor :resource
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
#
|
|
29
|
+
# Mapper for AvailableOperationDisplay 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: 'AvailableOperationDisplay',
|
|
37
|
+
type: {
|
|
38
|
+
name: 'Composite',
|
|
39
|
+
class_name: 'AvailableOperationDisplay',
|
|
40
|
+
model_properties: {
|
|
41
|
+
description: {
|
|
42
|
+
client_side_validation: true,
|
|
43
|
+
required: false,
|
|
44
|
+
serialized_name: 'description',
|
|
45
|
+
type: {
|
|
46
|
+
name: 'String'
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
operation: {
|
|
50
|
+
client_side_validation: true,
|
|
51
|
+
required: false,
|
|
52
|
+
serialized_name: 'operation',
|
|
53
|
+
type: {
|
|
54
|
+
name: 'String'
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
provider: {
|
|
58
|
+
client_side_validation: true,
|
|
59
|
+
required: false,
|
|
60
|
+
serialized_name: 'provider',
|
|
61
|
+
type: {
|
|
62
|
+
name: 'String'
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
resource: {
|
|
66
|
+
client_side_validation: true,
|
|
67
|
+
required: false,
|
|
68
|
+
serialized_name: 'resource',
|
|
69
|
+
type: {
|
|
70
|
+
name: 'String'
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
@@ -0,0 +1,94 @@
|
|
|
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::VMwareCloudSimple::Mgmt::V2019_04_01
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# Available operation display property service specification metrics item
|
|
10
|
+
#
|
|
11
|
+
class AvailableOperationDisplayPropertyServiceSpecificationMetricsItem
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
# @return [AggregationType] Metric's aggregation type for e.g. (Average,
|
|
16
|
+
# Total). Possible values include: 'Average', 'Total'
|
|
17
|
+
attr_accessor :aggregation_type
|
|
18
|
+
|
|
19
|
+
# @return [String] Metric's description
|
|
20
|
+
attr_accessor :display_description
|
|
21
|
+
|
|
22
|
+
# @return [String] Human readable metric's name
|
|
23
|
+
attr_accessor :display_name
|
|
24
|
+
|
|
25
|
+
# @return [String] Metric's name/id
|
|
26
|
+
attr_accessor :name
|
|
27
|
+
|
|
28
|
+
# @return [String] Metric's unit
|
|
29
|
+
attr_accessor :unit
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
#
|
|
33
|
+
# Mapper for
|
|
34
|
+
# AvailableOperationDisplayPropertyServiceSpecificationMetricsItem class
|
|
35
|
+
# as Ruby Hash.
|
|
36
|
+
# This will be used for serialization/deserialization.
|
|
37
|
+
#
|
|
38
|
+
def self.mapper()
|
|
39
|
+
{
|
|
40
|
+
client_side_validation: true,
|
|
41
|
+
required: false,
|
|
42
|
+
serialized_name: 'AvailableOperationDisplayPropertyServiceSpecificationMetricsItem',
|
|
43
|
+
type: {
|
|
44
|
+
name: 'Composite',
|
|
45
|
+
class_name: 'AvailableOperationDisplayPropertyServiceSpecificationMetricsItem',
|
|
46
|
+
model_properties: {
|
|
47
|
+
aggregation_type: {
|
|
48
|
+
client_side_validation: true,
|
|
49
|
+
required: true,
|
|
50
|
+
serialized_name: 'aggregationType',
|
|
51
|
+
type: {
|
|
52
|
+
name: 'Enum',
|
|
53
|
+
module: 'AggregationType'
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
display_description: {
|
|
57
|
+
client_side_validation: true,
|
|
58
|
+
required: true,
|
|
59
|
+
serialized_name: 'displayDescription',
|
|
60
|
+
type: {
|
|
61
|
+
name: 'String'
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
display_name: {
|
|
65
|
+
client_side_validation: true,
|
|
66
|
+
required: true,
|
|
67
|
+
serialized_name: 'displayName',
|
|
68
|
+
type: {
|
|
69
|
+
name: 'String'
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
name: {
|
|
73
|
+
client_side_validation: true,
|
|
74
|
+
required: true,
|
|
75
|
+
serialized_name: 'name',
|
|
76
|
+
type: {
|
|
77
|
+
name: 'String'
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
unit: {
|
|
81
|
+
client_side_validation: true,
|
|
82
|
+
required: true,
|
|
83
|
+
serialized_name: 'unit',
|
|
84
|
+
type: {
|
|
85
|
+
name: 'String'
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
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::VMwareCloudSimple::Mgmt::V2019_04_01
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# List of available operation display property service specification
|
|
10
|
+
# metrics
|
|
11
|
+
#
|
|
12
|
+
class AvailableOperationDisplayPropertyServiceSpecificationMetricsList
|
|
13
|
+
|
|
14
|
+
include MsRestAzure
|
|
15
|
+
|
|
16
|
+
# @return
|
|
17
|
+
# [Array<AvailableOperationDisplayPropertyServiceSpecificationMetricsItem>]
|
|
18
|
+
# Metric specifications of operation
|
|
19
|
+
attr_accessor :metric_specifications
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
#
|
|
23
|
+
# Mapper for
|
|
24
|
+
# AvailableOperationDisplayPropertyServiceSpecificationMetricsList class
|
|
25
|
+
# as Ruby Hash.
|
|
26
|
+
# This will be used for serialization/deserialization.
|
|
27
|
+
#
|
|
28
|
+
def self.mapper()
|
|
29
|
+
{
|
|
30
|
+
client_side_validation: true,
|
|
31
|
+
required: false,
|
|
32
|
+
serialized_name: 'AvailableOperationDisplayPropertyServiceSpecificationMetricsList',
|
|
33
|
+
type: {
|
|
34
|
+
name: 'Composite',
|
|
35
|
+
class_name: 'AvailableOperationDisplayPropertyServiceSpecificationMetricsList',
|
|
36
|
+
model_properties: {
|
|
37
|
+
metric_specifications: {
|
|
38
|
+
client_side_validation: true,
|
|
39
|
+
required: false,
|
|
40
|
+
serialized_name: 'metricSpecifications',
|
|
41
|
+
type: {
|
|
42
|
+
name: 'Sequence',
|
|
43
|
+
element: {
|
|
44
|
+
client_side_validation: true,
|
|
45
|
+
required: false,
|
|
46
|
+
serialized_name: 'AvailableOperationDisplayPropertyServiceSpecificationMetricsItemElementType',
|
|
47
|
+
type: {
|
|
48
|
+
name: 'Composite',
|
|
49
|
+
class_name: 'AvailableOperationDisplayPropertyServiceSpecificationMetricsItem'
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
@@ -0,0 +1,99 @@
|
|
|
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::VMwareCloudSimple::Mgmt::V2019_04_01
|
|
7
|
+
module Models
|
|
8
|
+
#
|
|
9
|
+
# List of available operations
|
|
10
|
+
#
|
|
11
|
+
class AvailableOperationsListResponse
|
|
12
|
+
|
|
13
|
+
include MsRestAzure
|
|
14
|
+
|
|
15
|
+
include MsRest::JSONable
|
|
16
|
+
# @return [String] Link for next list of available operations
|
|
17
|
+
attr_accessor :next_link
|
|
18
|
+
|
|
19
|
+
# @return [Array<AvailableOperation>] Returns a list of available
|
|
20
|
+
# operations
|
|
21
|
+
attr_accessor :value
|
|
22
|
+
|
|
23
|
+
# return [Proc] with next page method call.
|
|
24
|
+
attr_accessor :next_method
|
|
25
|
+
|
|
26
|
+
#
|
|
27
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
|
28
|
+
#
|
|
29
|
+
# @return [Array<AvailableOperation>] operation results.
|
|
30
|
+
#
|
|
31
|
+
def get_all_items
|
|
32
|
+
items = @value
|
|
33
|
+
page = self
|
|
34
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
|
35
|
+
page = page.get_next_page
|
|
36
|
+
items.concat(page.value)
|
|
37
|
+
end
|
|
38
|
+
items
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
#
|
|
42
|
+
# Gets the next page of results.
|
|
43
|
+
#
|
|
44
|
+
# @return [AvailableOperationsListResponse] with next page content.
|
|
45
|
+
#
|
|
46
|
+
def get_next_page
|
|
47
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
|
48
|
+
unless response.nil?
|
|
49
|
+
@next_link = response.body.next_link
|
|
50
|
+
@value = response.body.value
|
|
51
|
+
self
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
#
|
|
56
|
+
# Mapper for AvailableOperationsListResponse class as Ruby Hash.
|
|
57
|
+
# This will be used for serialization/deserialization.
|
|
58
|
+
#
|
|
59
|
+
def self.mapper()
|
|
60
|
+
{
|
|
61
|
+
client_side_validation: true,
|
|
62
|
+
required: false,
|
|
63
|
+
serialized_name: 'AvailableOperationsListResponse',
|
|
64
|
+
type: {
|
|
65
|
+
name: 'Composite',
|
|
66
|
+
class_name: 'AvailableOperationsListResponse',
|
|
67
|
+
model_properties: {
|
|
68
|
+
next_link: {
|
|
69
|
+
client_side_validation: true,
|
|
70
|
+
required: false,
|
|
71
|
+
serialized_name: 'nextLink',
|
|
72
|
+
type: {
|
|
73
|
+
name: 'String'
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
value: {
|
|
77
|
+
client_side_validation: true,
|
|
78
|
+
required: false,
|
|
79
|
+
serialized_name: 'value',
|
|
80
|
+
type: {
|
|
81
|
+
name: 'Sequence',
|
|
82
|
+
element: {
|
|
83
|
+
client_side_validation: true,
|
|
84
|
+
required: false,
|
|
85
|
+
serialized_name: 'AvailableOperationElementType',
|
|
86
|
+
type: {
|
|
87
|
+
name: 'Composite',
|
|
88
|
+
class_name: 'AvailableOperation'
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|