azure_mgmt_vmware_cloudsimple 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/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
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c5aae698f31356ef2d046e7edade542ec87e2c57ee72520aef5c35004e1a30a9
|
4
|
+
data.tar.gz: 65ac32c3e5851eaee7c11f8bf6a792d914e212430f5bb8b0f0cd75da35c37160
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 93a5f2ce23377a40a76bee81ea943505d0bd83aebbdf275062421d0c3575beab3e1ba670a7324f2655d455ae4fbd664141ce376ef772d6235dee5c28c253a35d
|
7
|
+
data.tar.gz: e7cb08f106db73f0c6ac33b1e5dc625b11d8db39f514ead72c3d3e3463c02e87b5b935fc0c85b5025428b7a2ea725d8ea29ae91b5a7d388effb4570a5968d426
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Microsoft Corporation
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
@@ -0,0 +1,82 @@
|
|
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
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::VMwareCloudSimple::Mgmt::V2019_04_01
|
23
|
+
autoload :Operations, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/operations.rb'
|
24
|
+
autoload :DedicatedCloudNodes, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/dedicated_cloud_nodes.rb'
|
25
|
+
autoload :DedicatedCloudServices, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/dedicated_cloud_services.rb'
|
26
|
+
autoload :SkusAvailability, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/skus_availability.rb'
|
27
|
+
autoload :PrivateClouds, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/private_clouds.rb'
|
28
|
+
autoload :ResourcePools, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/resource_pools.rb'
|
29
|
+
autoload :VirtualMachineTemplates, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/virtual_machine_templates.rb'
|
30
|
+
autoload :VirtualNetworks, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/virtual_networks.rb'
|
31
|
+
autoload :Usages, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/usages.rb'
|
32
|
+
autoload :VirtualMachines, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/virtual_machines.rb'
|
33
|
+
autoload :VMwareCloudSimpleClient, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/vmware_cloud_simple_client.rb'
|
34
|
+
|
35
|
+
module Models
|
36
|
+
autoload :VirtualDisk, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_disk.rb'
|
37
|
+
autoload :AvailableOperationDisplay, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/available_operation_display.rb'
|
38
|
+
autoload :VirtualNetwork, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_network.rb'
|
39
|
+
autoload :AvailableOperationDisplayPropertyServiceSpecificationMetricsList, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/available_operation_display_property_service_specification_metrics_list.rb'
|
40
|
+
autoload :VirtualNic, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_nic.rb'
|
41
|
+
autoload :AvailableOperationsListResponse, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/available_operations_list_response.rb'
|
42
|
+
autoload :VirtualMachineTemplate, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_machine_template.rb'
|
43
|
+
autoload :CSRPError, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/csrperror.rb'
|
44
|
+
autoload :PrivateCloud, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/private_cloud.rb'
|
45
|
+
autoload :DedicatedCloudNode, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/dedicated_cloud_node.rb'
|
46
|
+
autoload :PrivateCloudList, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/private_cloud_list.rb'
|
47
|
+
autoload :DedicatedCloudService, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/dedicated_cloud_service.rb'
|
48
|
+
autoload :ResourcePoolsListResponse, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/resource_pools_list_response.rb'
|
49
|
+
autoload :OperationError, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/operation_error.rb'
|
50
|
+
autoload :SkuAvailability, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/sku_availability.rb'
|
51
|
+
autoload :PatchPayload, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/patch_payload.rb'
|
52
|
+
autoload :SkuAvailabilityListResponse, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/sku_availability_list_response.rb'
|
53
|
+
autoload :VirtualDiskController, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_disk_controller.rb'
|
54
|
+
autoload :UsageName, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/usage_name.rb'
|
55
|
+
autoload :AvailableOperation, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/available_operation.rb'
|
56
|
+
autoload :Usage, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/usage.rb'
|
57
|
+
autoload :Sku, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/sku.rb'
|
58
|
+
autoload :UsageListResponse, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/usage_list_response.rb'
|
59
|
+
autoload :DedicatedCloudServiceListResponse, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/dedicated_cloud_service_list_response.rb'
|
60
|
+
autoload :VirtualMachine, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_machine.rb'
|
61
|
+
autoload :ResourcePool, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/resource_pool.rb'
|
62
|
+
autoload :VirtualMachineListResponse, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_machine_list_response.rb'
|
63
|
+
autoload :CSRPErrorBody, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/csrperror_body.rb'
|
64
|
+
autoload :VirtualMachineStopMode, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_machine_stop_mode.rb'
|
65
|
+
autoload :OperationResource, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/operation_resource.rb'
|
66
|
+
autoload :VirtualMachineTemplateListResponse, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_machine_template_list_response.rb'
|
67
|
+
autoload :DedicatedCloudNodeListResponse, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/dedicated_cloud_node_list_response.rb'
|
68
|
+
autoload :VirtualNetworkListResponse, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_network_list_response.rb'
|
69
|
+
autoload :AvailableOperationDisplayPropertyServiceSpecificationMetricsItem, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/available_operation_display_property_service_specification_metrics_item.rb'
|
70
|
+
autoload :OperationOrigin, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/operation_origin.rb'
|
71
|
+
autoload :AggregationType, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/aggregation_type.rb'
|
72
|
+
autoload :NodeStatus, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/node_status.rb'
|
73
|
+
autoload :OnboardingStatus, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/onboarding_status.rb'
|
74
|
+
autoload :DiskIndependenceMode, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/disk_independence_mode.rb'
|
75
|
+
autoload :NICType, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/nictype.rb'
|
76
|
+
autoload :PrivateCloudResourceType, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/private_cloud_resource_type.rb'
|
77
|
+
autoload :UsageCount, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/usage_count.rb'
|
78
|
+
autoload :GuestOSType, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/guest_ostype.rb'
|
79
|
+
autoload :VirtualMachineStatus, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/virtual_machine_status.rb'
|
80
|
+
autoload :StopMode, '2019-04-01/generated/azure_mgmt_vmware_cloudsimple/models/stop_mode.rb'
|
81
|
+
end
|
82
|
+
end
|
@@ -0,0 +1,945 @@
|
|
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
|
+
#
|
8
|
+
# Description of the new service
|
9
|
+
#
|
10
|
+
class DedicatedCloudNodes
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the DedicatedCloudNodes class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [VMwareCloudSimpleClient] reference to the VMwareCloudSimpleClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Implements list of dedicated cloud nodes within subscription method
|
26
|
+
#
|
27
|
+
# Returns list of dedicate cloud nodes within subscription
|
28
|
+
#
|
29
|
+
# @param filter [String] The filter to apply on the list operation
|
30
|
+
# @param top [Integer] The maximum number of record sets to return
|
31
|
+
# @param skip_token [String] to be used by nextLink implementation
|
32
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
33
|
+
# will be added to the HTTP request.
|
34
|
+
#
|
35
|
+
# @return [Array<DedicatedCloudNode>] operation results.
|
36
|
+
#
|
37
|
+
def list_by_subscription(filter:nil, top:nil, skip_token:nil, custom_headers:nil)
|
38
|
+
first_page = list_by_subscription_as_lazy(filter:filter, top:top, skip_token:skip_token, custom_headers:custom_headers)
|
39
|
+
first_page.get_all_items
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# Implements list of dedicated cloud nodes within subscription method
|
44
|
+
#
|
45
|
+
# Returns list of dedicate cloud nodes within subscription
|
46
|
+
#
|
47
|
+
# @param filter [String] The filter to apply on the list operation
|
48
|
+
# @param top [Integer] The maximum number of record sets to return
|
49
|
+
# @param skip_token [String] to be used by nextLink implementation
|
50
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
51
|
+
# will be added to the HTTP request.
|
52
|
+
#
|
53
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
54
|
+
#
|
55
|
+
def list_by_subscription_with_http_info(filter:nil, top:nil, skip_token:nil, custom_headers:nil)
|
56
|
+
list_by_subscription_async(filter:filter, top:top, skip_token:skip_token, custom_headers:custom_headers).value!
|
57
|
+
end
|
58
|
+
|
59
|
+
#
|
60
|
+
# Implements list of dedicated cloud nodes within subscription method
|
61
|
+
#
|
62
|
+
# Returns list of dedicate cloud nodes within subscription
|
63
|
+
#
|
64
|
+
# @param filter [String] The filter to apply on the list operation
|
65
|
+
# @param top [Integer] The maximum number of record sets to return
|
66
|
+
# @param skip_token [String] to be used by nextLink implementation
|
67
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
68
|
+
# to the HTTP request.
|
69
|
+
#
|
70
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
|
+
#
|
72
|
+
def list_by_subscription_async(filter:nil, top:nil, skip_token:nil, custom_headers:nil)
|
73
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
74
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
75
|
+
|
76
|
+
|
77
|
+
request_headers = {}
|
78
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
79
|
+
|
80
|
+
# Set Headers
|
81
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
82
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
83
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes'
|
84
|
+
|
85
|
+
request_url = @base_url || @client.base_url
|
86
|
+
|
87
|
+
options = {
|
88
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
89
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
90
|
+
query_params: {'api-version' => @client.api_version,'$filter' => filter,'$top' => top,'$skipToken' => skip_token},
|
91
|
+
headers: request_headers.merge(custom_headers || {}),
|
92
|
+
base_url: request_url
|
93
|
+
}
|
94
|
+
promise = @client.make_request_async(:get, path_template, options)
|
95
|
+
|
96
|
+
promise = promise.then do |result|
|
97
|
+
http_response = result.response
|
98
|
+
status_code = http_response.status
|
99
|
+
response_content = http_response.body
|
100
|
+
unless status_code == 200
|
101
|
+
error_model = JSON.load(response_content)
|
102
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
103
|
+
end
|
104
|
+
|
105
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
106
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
107
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
108
|
+
# Deserialize Response
|
109
|
+
if status_code == 200
|
110
|
+
begin
|
111
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
112
|
+
result_mapper = Azure::VMwareCloudSimple::Mgmt::V2019_04_01::Models::DedicatedCloudNodeListResponse.mapper()
|
113
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
114
|
+
rescue Exception => e
|
115
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
result
|
120
|
+
end
|
121
|
+
|
122
|
+
promise.execute
|
123
|
+
end
|
124
|
+
|
125
|
+
#
|
126
|
+
# Implements list of dedicated cloud nodes within RG method
|
127
|
+
#
|
128
|
+
# Returns list of dedicate cloud nodes within resource group
|
129
|
+
#
|
130
|
+
# @param resource_group_name [String] The name of the resource group
|
131
|
+
# @param filter [String] The filter to apply on the list operation
|
132
|
+
# @param top [Integer] The maximum number of record sets to return
|
133
|
+
# @param skip_token [String] to be used by nextLink implementation
|
134
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
135
|
+
# will be added to the HTTP request.
|
136
|
+
#
|
137
|
+
# @return [Array<DedicatedCloudNode>] operation results.
|
138
|
+
#
|
139
|
+
def list_by_resource_group(resource_group_name, filter:nil, top:nil, skip_token:nil, custom_headers:nil)
|
140
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, filter:filter, top:top, skip_token:skip_token, custom_headers:custom_headers)
|
141
|
+
first_page.get_all_items
|
142
|
+
end
|
143
|
+
|
144
|
+
#
|
145
|
+
# Implements list of dedicated cloud nodes within RG method
|
146
|
+
#
|
147
|
+
# Returns list of dedicate cloud nodes within resource group
|
148
|
+
#
|
149
|
+
# @param resource_group_name [String] The name of the resource group
|
150
|
+
# @param filter [String] The filter to apply on the list operation
|
151
|
+
# @param top [Integer] The maximum number of record sets to return
|
152
|
+
# @param skip_token [String] to be used by nextLink implementation
|
153
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
154
|
+
# will be added to the HTTP request.
|
155
|
+
#
|
156
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
157
|
+
#
|
158
|
+
def list_by_resource_group_with_http_info(resource_group_name, filter:nil, top:nil, skip_token:nil, custom_headers:nil)
|
159
|
+
list_by_resource_group_async(resource_group_name, filter:filter, top:top, skip_token:skip_token, custom_headers:custom_headers).value!
|
160
|
+
end
|
161
|
+
|
162
|
+
#
|
163
|
+
# Implements list of dedicated cloud nodes within RG method
|
164
|
+
#
|
165
|
+
# Returns list of dedicate cloud nodes within resource group
|
166
|
+
#
|
167
|
+
# @param resource_group_name [String] The name of the resource group
|
168
|
+
# @param filter [String] The filter to apply on the list operation
|
169
|
+
# @param top [Integer] The maximum number of record sets to return
|
170
|
+
# @param skip_token [String] to be used by nextLink implementation
|
171
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
172
|
+
# to the HTTP request.
|
173
|
+
#
|
174
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
175
|
+
#
|
176
|
+
def list_by_resource_group_async(resource_group_name, filter:nil, top:nil, skip_token:nil, custom_headers:nil)
|
177
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
178
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
179
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
180
|
+
|
181
|
+
|
182
|
+
request_headers = {}
|
183
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
184
|
+
|
185
|
+
# Set Headers
|
186
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
187
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
188
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes'
|
189
|
+
|
190
|
+
request_url = @base_url || @client.base_url
|
191
|
+
|
192
|
+
options = {
|
193
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
194
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
|
195
|
+
query_params: {'api-version' => @client.api_version,'$filter' => filter,'$top' => top,'$skipToken' => skip_token},
|
196
|
+
headers: request_headers.merge(custom_headers || {}),
|
197
|
+
base_url: request_url
|
198
|
+
}
|
199
|
+
promise = @client.make_request_async(:get, path_template, options)
|
200
|
+
|
201
|
+
promise = promise.then do |result|
|
202
|
+
http_response = result.response
|
203
|
+
status_code = http_response.status
|
204
|
+
response_content = http_response.body
|
205
|
+
unless status_code == 200
|
206
|
+
error_model = JSON.load(response_content)
|
207
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
208
|
+
end
|
209
|
+
|
210
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
211
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
212
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
213
|
+
# Deserialize Response
|
214
|
+
if status_code == 200
|
215
|
+
begin
|
216
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
217
|
+
result_mapper = Azure::VMwareCloudSimple::Mgmt::V2019_04_01::Models::DedicatedCloudNodeListResponse.mapper()
|
218
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
219
|
+
rescue Exception => e
|
220
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
221
|
+
end
|
222
|
+
end
|
223
|
+
|
224
|
+
result
|
225
|
+
end
|
226
|
+
|
227
|
+
promise.execute
|
228
|
+
end
|
229
|
+
|
230
|
+
#
|
231
|
+
# Implements dedicated cloud node GET method
|
232
|
+
#
|
233
|
+
# Returns dedicated cloud node
|
234
|
+
#
|
235
|
+
# @param resource_group_name [String] The name of the resource group
|
236
|
+
# @param dedicated_cloud_node_name [String] dedicated cloud node name
|
237
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
238
|
+
# will be added to the HTTP request.
|
239
|
+
#
|
240
|
+
# @return [DedicatedCloudNode] operation results.
|
241
|
+
#
|
242
|
+
def get(resource_group_name, dedicated_cloud_node_name, custom_headers:nil)
|
243
|
+
response = get_async(resource_group_name, dedicated_cloud_node_name, custom_headers:custom_headers).value!
|
244
|
+
response.body unless response.nil?
|
245
|
+
end
|
246
|
+
|
247
|
+
#
|
248
|
+
# Implements dedicated cloud node GET method
|
249
|
+
#
|
250
|
+
# Returns dedicated cloud node
|
251
|
+
#
|
252
|
+
# @param resource_group_name [String] The name of the resource group
|
253
|
+
# @param dedicated_cloud_node_name [String] dedicated cloud node name
|
254
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
255
|
+
# will be added to the HTTP request.
|
256
|
+
#
|
257
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
258
|
+
#
|
259
|
+
def get_with_http_info(resource_group_name, dedicated_cloud_node_name, custom_headers:nil)
|
260
|
+
get_async(resource_group_name, dedicated_cloud_node_name, custom_headers:custom_headers).value!
|
261
|
+
end
|
262
|
+
|
263
|
+
#
|
264
|
+
# Implements dedicated cloud node GET method
|
265
|
+
#
|
266
|
+
# Returns dedicated cloud node
|
267
|
+
#
|
268
|
+
# @param resource_group_name [String] The name of the resource group
|
269
|
+
# @param dedicated_cloud_node_name [String] dedicated cloud node name
|
270
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
271
|
+
# to the HTTP request.
|
272
|
+
#
|
273
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
274
|
+
#
|
275
|
+
def get_async(resource_group_name, dedicated_cloud_node_name, custom_headers:nil)
|
276
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
277
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
278
|
+
fail ArgumentError, 'dedicated_cloud_node_name is nil' if dedicated_cloud_node_name.nil?
|
279
|
+
fail ArgumentError, "'dedicated_cloud_node_name' should satisfy the constraint - 'Pattern': '^[-a-zA-Z0-9]+$'" if !dedicated_cloud_node_name.nil? && dedicated_cloud_node_name.match(Regexp.new('^^[-a-zA-Z0-9]+$$')).nil?
|
280
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
281
|
+
|
282
|
+
|
283
|
+
request_headers = {}
|
284
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
285
|
+
|
286
|
+
# Set Headers
|
287
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
288
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
289
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/{dedicatedCloudNodeName}'
|
290
|
+
|
291
|
+
request_url = @base_url || @client.base_url
|
292
|
+
|
293
|
+
options = {
|
294
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
295
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'dedicatedCloudNodeName' => dedicated_cloud_node_name},
|
296
|
+
query_params: {'api-version' => @client.api_version},
|
297
|
+
headers: request_headers.merge(custom_headers || {}),
|
298
|
+
base_url: request_url
|
299
|
+
}
|
300
|
+
promise = @client.make_request_async(:get, path_template, options)
|
301
|
+
|
302
|
+
promise = promise.then do |result|
|
303
|
+
http_response = result.response
|
304
|
+
status_code = http_response.status
|
305
|
+
response_content = http_response.body
|
306
|
+
unless status_code == 200
|
307
|
+
error_model = JSON.load(response_content)
|
308
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
309
|
+
end
|
310
|
+
|
311
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
312
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
313
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
314
|
+
# Deserialize Response
|
315
|
+
if status_code == 200
|
316
|
+
begin
|
317
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
318
|
+
result_mapper = Azure::VMwareCloudSimple::Mgmt::V2019_04_01::Models::DedicatedCloudNode.mapper()
|
319
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
320
|
+
rescue Exception => e
|
321
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
322
|
+
end
|
323
|
+
end
|
324
|
+
|
325
|
+
result
|
326
|
+
end
|
327
|
+
|
328
|
+
promise.execute
|
329
|
+
end
|
330
|
+
|
331
|
+
#
|
332
|
+
# Implements dedicated cloud node PUT method
|
333
|
+
#
|
334
|
+
# Returns dedicated cloud node by its name
|
335
|
+
#
|
336
|
+
# @param resource_group_name [String] The name of the resource group
|
337
|
+
# @param dedicated_cloud_node_name [String] dedicated cloud node name
|
338
|
+
# @param dedicated_cloud_node_request [DedicatedCloudNode] Create Dedicated
|
339
|
+
# Cloud Node request
|
340
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
341
|
+
# will be added to the HTTP request.
|
342
|
+
#
|
343
|
+
# @return [DedicatedCloudNode] operation results.
|
344
|
+
#
|
345
|
+
def create_or_update(resource_group_name, dedicated_cloud_node_name, dedicated_cloud_node_request, custom_headers:nil)
|
346
|
+
response = create_or_update_async(resource_group_name, dedicated_cloud_node_name, dedicated_cloud_node_request, custom_headers:custom_headers).value!
|
347
|
+
response.body unless response.nil?
|
348
|
+
end
|
349
|
+
|
350
|
+
#
|
351
|
+
# @param resource_group_name [String] The name of the resource group
|
352
|
+
# @param dedicated_cloud_node_name [String] dedicated cloud node name
|
353
|
+
# @param dedicated_cloud_node_request [DedicatedCloudNode] Create Dedicated
|
354
|
+
# Cloud Node request
|
355
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
356
|
+
# will be added to the HTTP request.
|
357
|
+
#
|
358
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
359
|
+
# response.
|
360
|
+
#
|
361
|
+
def create_or_update_async(resource_group_name, dedicated_cloud_node_name, dedicated_cloud_node_request, custom_headers:nil)
|
362
|
+
# Send request
|
363
|
+
promise = begin_create_or_update_async(resource_group_name, dedicated_cloud_node_name, dedicated_cloud_node_request, custom_headers:custom_headers)
|
364
|
+
|
365
|
+
promise = promise.then do |response|
|
366
|
+
# Defining deserialization method.
|
367
|
+
deserialize_method = lambda do |parsed_response|
|
368
|
+
result_mapper = Azure::VMwareCloudSimple::Mgmt::V2019_04_01::Models::DedicatedCloudNode.mapper()
|
369
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
370
|
+
end
|
371
|
+
|
372
|
+
# Waiting for response.
|
373
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
374
|
+
end
|
375
|
+
|
376
|
+
promise
|
377
|
+
end
|
378
|
+
|
379
|
+
#
|
380
|
+
# Implements dedicated cloud node DELETE method
|
381
|
+
#
|
382
|
+
# Delete dedicated cloud node
|
383
|
+
#
|
384
|
+
# @param resource_group_name [String] The name of the resource group
|
385
|
+
# @param dedicated_cloud_node_name [String] dedicated cloud node name
|
386
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
387
|
+
# will be added to the HTTP request.
|
388
|
+
#
|
389
|
+
#
|
390
|
+
def delete(resource_group_name, dedicated_cloud_node_name, custom_headers:nil)
|
391
|
+
response = delete_async(resource_group_name, dedicated_cloud_node_name, custom_headers:custom_headers).value!
|
392
|
+
nil
|
393
|
+
end
|
394
|
+
|
395
|
+
#
|
396
|
+
# Implements dedicated cloud node DELETE method
|
397
|
+
#
|
398
|
+
# Delete dedicated cloud node
|
399
|
+
#
|
400
|
+
# @param resource_group_name [String] The name of the resource group
|
401
|
+
# @param dedicated_cloud_node_name [String] dedicated cloud node name
|
402
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
403
|
+
# will be added to the HTTP request.
|
404
|
+
#
|
405
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
406
|
+
#
|
407
|
+
def delete_with_http_info(resource_group_name, dedicated_cloud_node_name, custom_headers:nil)
|
408
|
+
delete_async(resource_group_name, dedicated_cloud_node_name, custom_headers:custom_headers).value!
|
409
|
+
end
|
410
|
+
|
411
|
+
#
|
412
|
+
# Implements dedicated cloud node DELETE method
|
413
|
+
#
|
414
|
+
# Delete dedicated cloud node
|
415
|
+
#
|
416
|
+
# @param resource_group_name [String] The name of the resource group
|
417
|
+
# @param dedicated_cloud_node_name [String] dedicated cloud node name
|
418
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
419
|
+
# to the HTTP request.
|
420
|
+
#
|
421
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
422
|
+
#
|
423
|
+
def delete_async(resource_group_name, dedicated_cloud_node_name, custom_headers:nil)
|
424
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
425
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
426
|
+
fail ArgumentError, 'dedicated_cloud_node_name is nil' if dedicated_cloud_node_name.nil?
|
427
|
+
fail ArgumentError, "'dedicated_cloud_node_name' should satisfy the constraint - 'Pattern': '^[-a-zA-Z0-9]+$'" if !dedicated_cloud_node_name.nil? && dedicated_cloud_node_name.match(Regexp.new('^^[-a-zA-Z0-9]+$$')).nil?
|
428
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
429
|
+
|
430
|
+
|
431
|
+
request_headers = {}
|
432
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
433
|
+
|
434
|
+
# Set Headers
|
435
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
436
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
437
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/{dedicatedCloudNodeName}'
|
438
|
+
|
439
|
+
request_url = @base_url || @client.base_url
|
440
|
+
|
441
|
+
options = {
|
442
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
443
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'dedicatedCloudNodeName' => dedicated_cloud_node_name},
|
444
|
+
query_params: {'api-version' => @client.api_version},
|
445
|
+
headers: request_headers.merge(custom_headers || {}),
|
446
|
+
base_url: request_url
|
447
|
+
}
|
448
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
449
|
+
|
450
|
+
promise = promise.then do |result|
|
451
|
+
http_response = result.response
|
452
|
+
status_code = http_response.status
|
453
|
+
response_content = http_response.body
|
454
|
+
unless status_code == 204
|
455
|
+
error_model = JSON.load(response_content)
|
456
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
457
|
+
end
|
458
|
+
|
459
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
460
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
461
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
462
|
+
|
463
|
+
result
|
464
|
+
end
|
465
|
+
|
466
|
+
promise.execute
|
467
|
+
end
|
468
|
+
|
469
|
+
#
|
470
|
+
# Implements dedicated cloud node PATCH method
|
471
|
+
#
|
472
|
+
# Patches dedicated node properties
|
473
|
+
#
|
474
|
+
# @param resource_group_name [String] The name of the resource group
|
475
|
+
# @param dedicated_cloud_node_name [String] dedicated cloud node name
|
476
|
+
# @param dedicated_cloud_node_request [PatchPayload] Patch Dedicated Cloud Node
|
477
|
+
# request
|
478
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
479
|
+
# will be added to the HTTP request.
|
480
|
+
#
|
481
|
+
# @return [DedicatedCloudNode] operation results.
|
482
|
+
#
|
483
|
+
def update(resource_group_name, dedicated_cloud_node_name, dedicated_cloud_node_request, custom_headers:nil)
|
484
|
+
response = update_async(resource_group_name, dedicated_cloud_node_name, dedicated_cloud_node_request, custom_headers:custom_headers).value!
|
485
|
+
response.body unless response.nil?
|
486
|
+
end
|
487
|
+
|
488
|
+
#
|
489
|
+
# Implements dedicated cloud node PATCH method
|
490
|
+
#
|
491
|
+
# Patches dedicated node properties
|
492
|
+
#
|
493
|
+
# @param resource_group_name [String] The name of the resource group
|
494
|
+
# @param dedicated_cloud_node_name [String] dedicated cloud node name
|
495
|
+
# @param dedicated_cloud_node_request [PatchPayload] Patch Dedicated Cloud Node
|
496
|
+
# request
|
497
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
498
|
+
# will be added to the HTTP request.
|
499
|
+
#
|
500
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
501
|
+
#
|
502
|
+
def update_with_http_info(resource_group_name, dedicated_cloud_node_name, dedicated_cloud_node_request, custom_headers:nil)
|
503
|
+
update_async(resource_group_name, dedicated_cloud_node_name, dedicated_cloud_node_request, custom_headers:custom_headers).value!
|
504
|
+
end
|
505
|
+
|
506
|
+
#
|
507
|
+
# Implements dedicated cloud node PATCH method
|
508
|
+
#
|
509
|
+
# Patches dedicated node properties
|
510
|
+
#
|
511
|
+
# @param resource_group_name [String] The name of the resource group
|
512
|
+
# @param dedicated_cloud_node_name [String] dedicated cloud node name
|
513
|
+
# @param dedicated_cloud_node_request [PatchPayload] Patch Dedicated Cloud Node
|
514
|
+
# request
|
515
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
516
|
+
# to the HTTP request.
|
517
|
+
#
|
518
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
519
|
+
#
|
520
|
+
def update_async(resource_group_name, dedicated_cloud_node_name, dedicated_cloud_node_request, custom_headers:nil)
|
521
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
522
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
523
|
+
fail ArgumentError, 'dedicated_cloud_node_name is nil' if dedicated_cloud_node_name.nil?
|
524
|
+
fail ArgumentError, "'dedicated_cloud_node_name' should satisfy the constraint - 'Pattern': '^[-a-zA-Z0-9]+$'" if !dedicated_cloud_node_name.nil? && dedicated_cloud_node_name.match(Regexp.new('^^[-a-zA-Z0-9]+$$')).nil?
|
525
|
+
fail ArgumentError, 'dedicated_cloud_node_request is nil' if dedicated_cloud_node_request.nil?
|
526
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
527
|
+
|
528
|
+
|
529
|
+
request_headers = {}
|
530
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
531
|
+
|
532
|
+
# Set Headers
|
533
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
534
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
535
|
+
|
536
|
+
# Serialize Request
|
537
|
+
request_mapper = Azure::VMwareCloudSimple::Mgmt::V2019_04_01::Models::PatchPayload.mapper()
|
538
|
+
request_content = @client.serialize(request_mapper, dedicated_cloud_node_request)
|
539
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
540
|
+
|
541
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/{dedicatedCloudNodeName}'
|
542
|
+
|
543
|
+
request_url = @base_url || @client.base_url
|
544
|
+
|
545
|
+
options = {
|
546
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
547
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'dedicatedCloudNodeName' => dedicated_cloud_node_name},
|
548
|
+
query_params: {'api-version' => @client.api_version},
|
549
|
+
body: request_content,
|
550
|
+
headers: request_headers.merge(custom_headers || {}),
|
551
|
+
base_url: request_url
|
552
|
+
}
|
553
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
554
|
+
|
555
|
+
promise = promise.then do |result|
|
556
|
+
http_response = result.response
|
557
|
+
status_code = http_response.status
|
558
|
+
response_content = http_response.body
|
559
|
+
unless status_code == 200
|
560
|
+
error_model = JSON.load(response_content)
|
561
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
562
|
+
end
|
563
|
+
|
564
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
565
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
566
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
567
|
+
# Deserialize Response
|
568
|
+
if status_code == 200
|
569
|
+
begin
|
570
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
571
|
+
result_mapper = Azure::VMwareCloudSimple::Mgmt::V2019_04_01::Models::DedicatedCloudNode.mapper()
|
572
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
573
|
+
rescue Exception => e
|
574
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
575
|
+
end
|
576
|
+
end
|
577
|
+
|
578
|
+
result
|
579
|
+
end
|
580
|
+
|
581
|
+
promise.execute
|
582
|
+
end
|
583
|
+
|
584
|
+
#
|
585
|
+
# Implements dedicated cloud node PUT method
|
586
|
+
#
|
587
|
+
# Returns dedicated cloud node by its name
|
588
|
+
#
|
589
|
+
# @param resource_group_name [String] The name of the resource group
|
590
|
+
# @param dedicated_cloud_node_name [String] dedicated cloud node name
|
591
|
+
# @param dedicated_cloud_node_request [DedicatedCloudNode] Create Dedicated
|
592
|
+
# Cloud Node request
|
593
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
594
|
+
# will be added to the HTTP request.
|
595
|
+
#
|
596
|
+
# @return [DedicatedCloudNode] operation results.
|
597
|
+
#
|
598
|
+
def begin_create_or_update(resource_group_name, dedicated_cloud_node_name, dedicated_cloud_node_request, custom_headers:nil)
|
599
|
+
response = begin_create_or_update_async(resource_group_name, dedicated_cloud_node_name, dedicated_cloud_node_request, custom_headers:custom_headers).value!
|
600
|
+
response.body unless response.nil?
|
601
|
+
end
|
602
|
+
|
603
|
+
#
|
604
|
+
# Implements dedicated cloud node PUT method
|
605
|
+
#
|
606
|
+
# Returns dedicated cloud node by its name
|
607
|
+
#
|
608
|
+
# @param resource_group_name [String] The name of the resource group
|
609
|
+
# @param dedicated_cloud_node_name [String] dedicated cloud node name
|
610
|
+
# @param dedicated_cloud_node_request [DedicatedCloudNode] Create Dedicated
|
611
|
+
# Cloud Node request
|
612
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
613
|
+
# will be added to the HTTP request.
|
614
|
+
#
|
615
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
616
|
+
#
|
617
|
+
def begin_create_or_update_with_http_info(resource_group_name, dedicated_cloud_node_name, dedicated_cloud_node_request, custom_headers:nil)
|
618
|
+
begin_create_or_update_async(resource_group_name, dedicated_cloud_node_name, dedicated_cloud_node_request, custom_headers:custom_headers).value!
|
619
|
+
end
|
620
|
+
|
621
|
+
#
|
622
|
+
# Implements dedicated cloud node PUT method
|
623
|
+
#
|
624
|
+
# Returns dedicated cloud node by its name
|
625
|
+
#
|
626
|
+
# @param resource_group_name [String] The name of the resource group
|
627
|
+
# @param dedicated_cloud_node_name [String] dedicated cloud node name
|
628
|
+
# @param dedicated_cloud_node_request [DedicatedCloudNode] Create Dedicated
|
629
|
+
# Cloud Node request
|
630
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
631
|
+
# to the HTTP request.
|
632
|
+
#
|
633
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
634
|
+
#
|
635
|
+
def begin_create_or_update_async(resource_group_name, dedicated_cloud_node_name, dedicated_cloud_node_request, custom_headers:nil)
|
636
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
637
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
638
|
+
fail ArgumentError, '@client.referer is nil' if @client.referer.nil?
|
639
|
+
fail ArgumentError, 'dedicated_cloud_node_name is nil' if dedicated_cloud_node_name.nil?
|
640
|
+
fail ArgumentError, "'dedicated_cloud_node_name' should satisfy the constraint - 'Pattern': '^[-a-zA-Z0-9]+$'" if !dedicated_cloud_node_name.nil? && dedicated_cloud_node_name.match(Regexp.new('^^[-a-zA-Z0-9]+$$')).nil?
|
641
|
+
fail ArgumentError, 'dedicated_cloud_node_request is nil' if dedicated_cloud_node_request.nil?
|
642
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
643
|
+
|
644
|
+
|
645
|
+
request_headers = {}
|
646
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
647
|
+
|
648
|
+
# Set Headers
|
649
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
650
|
+
request_headers['Referer'] = @client.referer unless @client.referer.nil?
|
651
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
652
|
+
|
653
|
+
# Serialize Request
|
654
|
+
request_mapper = Azure::VMwareCloudSimple::Mgmt::V2019_04_01::Models::DedicatedCloudNode.mapper()
|
655
|
+
request_content = @client.serialize(request_mapper, dedicated_cloud_node_request)
|
656
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
657
|
+
|
658
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.VMwareCloudSimple/dedicatedCloudNodes/{dedicatedCloudNodeName}'
|
659
|
+
|
660
|
+
request_url = @base_url || @client.base_url
|
661
|
+
|
662
|
+
options = {
|
663
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
664
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'dedicatedCloudNodeName' => dedicated_cloud_node_name},
|
665
|
+
query_params: {'api-version' => @client.api_version},
|
666
|
+
body: request_content,
|
667
|
+
headers: request_headers.merge(custom_headers || {}),
|
668
|
+
base_url: request_url
|
669
|
+
}
|
670
|
+
promise = @client.make_request_async(:put, path_template, options)
|
671
|
+
|
672
|
+
promise = promise.then do |result|
|
673
|
+
http_response = result.response
|
674
|
+
status_code = http_response.status
|
675
|
+
response_content = http_response.body
|
676
|
+
unless status_code == 200
|
677
|
+
error_model = JSON.load(response_content)
|
678
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
679
|
+
end
|
680
|
+
|
681
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
682
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
683
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
684
|
+
# Deserialize Response
|
685
|
+
if status_code == 200
|
686
|
+
begin
|
687
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
688
|
+
result_mapper = Azure::VMwareCloudSimple::Mgmt::V2019_04_01::Models::DedicatedCloudNode.mapper()
|
689
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
690
|
+
rescue Exception => e
|
691
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
692
|
+
end
|
693
|
+
end
|
694
|
+
|
695
|
+
result
|
696
|
+
end
|
697
|
+
|
698
|
+
promise.execute
|
699
|
+
end
|
700
|
+
|
701
|
+
#
|
702
|
+
# Implements list of dedicated cloud nodes within subscription method
|
703
|
+
#
|
704
|
+
# Returns list of dedicate cloud nodes within subscription
|
705
|
+
#
|
706
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
707
|
+
# to List operation.
|
708
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
709
|
+
# will be added to the HTTP request.
|
710
|
+
#
|
711
|
+
# @return [DedicatedCloudNodeListResponse] operation results.
|
712
|
+
#
|
713
|
+
def list_by_subscription_next(next_page_link, custom_headers:nil)
|
714
|
+
response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
|
715
|
+
response.body unless response.nil?
|
716
|
+
end
|
717
|
+
|
718
|
+
#
|
719
|
+
# Implements list of dedicated cloud nodes within subscription method
|
720
|
+
#
|
721
|
+
# Returns list of dedicate cloud nodes within subscription
|
722
|
+
#
|
723
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
724
|
+
# to List operation.
|
725
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
726
|
+
# will be added to the HTTP request.
|
727
|
+
#
|
728
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
729
|
+
#
|
730
|
+
def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil)
|
731
|
+
list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
|
732
|
+
end
|
733
|
+
|
734
|
+
#
|
735
|
+
# Implements list of dedicated cloud nodes within subscription method
|
736
|
+
#
|
737
|
+
# Returns list of dedicate cloud nodes within subscription
|
738
|
+
#
|
739
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
740
|
+
# to List operation.
|
741
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
742
|
+
# to the HTTP request.
|
743
|
+
#
|
744
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
745
|
+
#
|
746
|
+
def list_by_subscription_next_async(next_page_link, custom_headers:nil)
|
747
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
748
|
+
|
749
|
+
|
750
|
+
request_headers = {}
|
751
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
752
|
+
|
753
|
+
# Set Headers
|
754
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
755
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
756
|
+
path_template = '{nextLink}'
|
757
|
+
|
758
|
+
request_url = @base_url || @client.base_url
|
759
|
+
|
760
|
+
options = {
|
761
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
762
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
763
|
+
headers: request_headers.merge(custom_headers || {}),
|
764
|
+
base_url: request_url
|
765
|
+
}
|
766
|
+
promise = @client.make_request_async(:get, path_template, options)
|
767
|
+
|
768
|
+
promise = promise.then do |result|
|
769
|
+
http_response = result.response
|
770
|
+
status_code = http_response.status
|
771
|
+
response_content = http_response.body
|
772
|
+
unless status_code == 200
|
773
|
+
error_model = JSON.load(response_content)
|
774
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
775
|
+
end
|
776
|
+
|
777
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
778
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
779
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
780
|
+
# Deserialize Response
|
781
|
+
if status_code == 200
|
782
|
+
begin
|
783
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
784
|
+
result_mapper = Azure::VMwareCloudSimple::Mgmt::V2019_04_01::Models::DedicatedCloudNodeListResponse.mapper()
|
785
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
786
|
+
rescue Exception => e
|
787
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
788
|
+
end
|
789
|
+
end
|
790
|
+
|
791
|
+
result
|
792
|
+
end
|
793
|
+
|
794
|
+
promise.execute
|
795
|
+
end
|
796
|
+
|
797
|
+
#
|
798
|
+
# Implements list of dedicated cloud nodes within RG method
|
799
|
+
#
|
800
|
+
# Returns list of dedicate cloud nodes within resource group
|
801
|
+
#
|
802
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
803
|
+
# to List operation.
|
804
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
805
|
+
# will be added to the HTTP request.
|
806
|
+
#
|
807
|
+
# @return [DedicatedCloudNodeListResponse] operation results.
|
808
|
+
#
|
809
|
+
def list_by_resource_group_next(next_page_link, custom_headers:nil)
|
810
|
+
response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
811
|
+
response.body unless response.nil?
|
812
|
+
end
|
813
|
+
|
814
|
+
#
|
815
|
+
# Implements list of dedicated cloud nodes within RG method
|
816
|
+
#
|
817
|
+
# Returns list of dedicate cloud nodes within resource group
|
818
|
+
#
|
819
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
820
|
+
# to List operation.
|
821
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
822
|
+
# will be added to the HTTP request.
|
823
|
+
#
|
824
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
825
|
+
#
|
826
|
+
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
|
827
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
828
|
+
end
|
829
|
+
|
830
|
+
#
|
831
|
+
# Implements list of dedicated cloud nodes within RG method
|
832
|
+
#
|
833
|
+
# Returns list of dedicate cloud nodes within resource group
|
834
|
+
#
|
835
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
836
|
+
# to List operation.
|
837
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
838
|
+
# to the HTTP request.
|
839
|
+
#
|
840
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
841
|
+
#
|
842
|
+
def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
|
843
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
844
|
+
|
845
|
+
|
846
|
+
request_headers = {}
|
847
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
848
|
+
|
849
|
+
# Set Headers
|
850
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
851
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
852
|
+
path_template = '{nextLink}'
|
853
|
+
|
854
|
+
request_url = @base_url || @client.base_url
|
855
|
+
|
856
|
+
options = {
|
857
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
858
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
859
|
+
headers: request_headers.merge(custom_headers || {}),
|
860
|
+
base_url: request_url
|
861
|
+
}
|
862
|
+
promise = @client.make_request_async(:get, path_template, options)
|
863
|
+
|
864
|
+
promise = promise.then do |result|
|
865
|
+
http_response = result.response
|
866
|
+
status_code = http_response.status
|
867
|
+
response_content = http_response.body
|
868
|
+
unless status_code == 200
|
869
|
+
error_model = JSON.load(response_content)
|
870
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
871
|
+
end
|
872
|
+
|
873
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
874
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
875
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
876
|
+
# Deserialize Response
|
877
|
+
if status_code == 200
|
878
|
+
begin
|
879
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
880
|
+
result_mapper = Azure::VMwareCloudSimple::Mgmt::V2019_04_01::Models::DedicatedCloudNodeListResponse.mapper()
|
881
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
882
|
+
rescue Exception => e
|
883
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
884
|
+
end
|
885
|
+
end
|
886
|
+
|
887
|
+
result
|
888
|
+
end
|
889
|
+
|
890
|
+
promise.execute
|
891
|
+
end
|
892
|
+
|
893
|
+
#
|
894
|
+
# Implements list of dedicated cloud nodes within subscription method
|
895
|
+
#
|
896
|
+
# Returns list of dedicate cloud nodes within subscription
|
897
|
+
#
|
898
|
+
# @param filter [String] The filter to apply on the list operation
|
899
|
+
# @param top [Integer] The maximum number of record sets to return
|
900
|
+
# @param skip_token [String] to be used by nextLink implementation
|
901
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
902
|
+
# will be added to the HTTP request.
|
903
|
+
#
|
904
|
+
# @return [DedicatedCloudNodeListResponse] which provide lazy access to pages
|
905
|
+
# of the response.
|
906
|
+
#
|
907
|
+
def list_by_subscription_as_lazy(filter:nil, top:nil, skip_token:nil, custom_headers:nil)
|
908
|
+
response = list_by_subscription_async(filter:filter, top:top, skip_token:skip_token, custom_headers:custom_headers).value!
|
909
|
+
unless response.nil?
|
910
|
+
page = response.body
|
911
|
+
page.next_method = Proc.new do |next_page_link|
|
912
|
+
list_by_subscription_next_async(next_page_link, custom_headers:custom_headers)
|
913
|
+
end
|
914
|
+
page
|
915
|
+
end
|
916
|
+
end
|
917
|
+
|
918
|
+
#
|
919
|
+
# Implements list of dedicated cloud nodes within RG method
|
920
|
+
#
|
921
|
+
# Returns list of dedicate cloud nodes within resource group
|
922
|
+
#
|
923
|
+
# @param resource_group_name [String] The name of the resource group
|
924
|
+
# @param filter [String] The filter to apply on the list operation
|
925
|
+
# @param top [Integer] The maximum number of record sets to return
|
926
|
+
# @param skip_token [String] to be used by nextLink implementation
|
927
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
928
|
+
# will be added to the HTTP request.
|
929
|
+
#
|
930
|
+
# @return [DedicatedCloudNodeListResponse] which provide lazy access to pages
|
931
|
+
# of the response.
|
932
|
+
#
|
933
|
+
def list_by_resource_group_as_lazy(resource_group_name, filter:nil, top:nil, skip_token:nil, custom_headers:nil)
|
934
|
+
response = list_by_resource_group_async(resource_group_name, filter:filter, top:top, skip_token:skip_token, custom_headers:custom_headers).value!
|
935
|
+
unless response.nil?
|
936
|
+
page = response.body
|
937
|
+
page.next_method = Proc.new do |next_page_link|
|
938
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
|
939
|
+
end
|
940
|
+
page
|
941
|
+
end
|
942
|
+
end
|
943
|
+
|
944
|
+
end
|
945
|
+
end
|