azure_mgmt_compute 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_compute.rb +48 -46
- data/lib/generated/azure_mgmt_compute/availability_sets.rb +16 -19
- data/lib/generated/azure_mgmt_compute/compute_management_client.rb +18 -5
- data/lib/generated/azure_mgmt_compute/container_services.rb +920 -0
- data/lib/generated/azure_mgmt_compute/models/additional_unattend_content.rb +9 -10
- data/lib/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/api_error.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/api_error_base.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/availability_set.rb +6 -5
- data/lib/generated/azure_mgmt_compute/models/availability_set_list_result.rb +2 -2
- data/lib/generated/azure_mgmt_compute/models/boot_diagnostics.rb +4 -4
- data/lib/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +3 -3
- data/lib/generated/azure_mgmt_compute/models/caching_types.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/component_names.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/container_service.rb +36 -13
- data/lib/generated/azure_mgmt_compute/models/container_service_agent_pool_profile.rb +18 -16
- data/lib/generated/azure_mgmt_compute/models/container_service_custom_profile.rb +44 -0
- data/lib/generated/azure_mgmt_compute/models/container_service_diagnostics_profile.rb +5 -4
- data/lib/generated/azure_mgmt_compute/models/container_service_linux_profile.rb +8 -5
- data/lib/generated/azure_mgmt_compute/models/container_service_list_result.rb +45 -3
- data/lib/generated/azure_mgmt_compute/models/container_service_master_profile.rb +8 -5
- data/lib/generated/azure_mgmt_compute/models/container_service_ochestrator_types.rb +3 -1
- data/lib/generated/azure_mgmt_compute/models/container_service_orchestrator_profile.rb +7 -6
- data/lib/generated/azure_mgmt_compute/models/container_service_service_principal_profile.rb +56 -0
- data/lib/generated/azure_mgmt_compute/models/container_service_ssh_configuration.rb +5 -5
- data/lib/generated/azure_mgmt_compute/models/container_service_ssh_public_key.rb +3 -3
- data/lib/generated/azure_mgmt_compute/models/container_service_vmdiagnostics.rb +7 -7
- data/lib/generated/azure_mgmt_compute/models/container_service_vmsize_types.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/container_service_windows_profile.rb +10 -4
- data/lib/generated/azure_mgmt_compute/models/data_disk.rb +12 -12
- data/lib/generated/azure_mgmt_compute/models/data_disk_image.rb +4 -5
- data/lib/generated/azure_mgmt_compute/models/diagnostics_profile.rb +4 -2
- data/lib/generated/azure_mgmt_compute/models/disk_create_option_types.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +7 -7
- data/lib/generated/azure_mgmt_compute/models/disk_instance_view.rb +3 -3
- data/lib/generated/azure_mgmt_compute/models/hardware_profile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/image_reference.rb +7 -7
- data/lib/generated/azure_mgmt_compute/models/inner_error.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/instance_view_status.rb +7 -7
- data/lib/generated/azure_mgmt_compute/models/instance_view_types.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +4 -4
- data/lib/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +3 -3
- data/lib/generated/azure_mgmt_compute/models/linux_configuration.rb +5 -5
- data/lib/generated/azure_mgmt_compute/models/list_usages_result.rb +6 -6
- data/lib/generated/azure_mgmt_compute/models/network_interface_reference.rb +3 -2
- data/lib/generated/azure_mgmt_compute/models/network_profile.rb +4 -2
- data/lib/generated/azure_mgmt_compute/models/operating_system_types.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/osdisk.rb +12 -12
- data/lib/generated/azure_mgmt_compute/models/osdisk_image.rb +3 -3
- data/lib/generated/azure_mgmt_compute/models/osprofile.rb +12 -9
- data/lib/generated/azure_mgmt_compute/models/pass_names.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/plan.rb +5 -5
- data/lib/generated/azure_mgmt_compute/models/protocol_types.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/purchase_plan.rb +4 -4
- data/lib/generated/azure_mgmt_compute/models/setting_names.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/sku.rb +4 -4
- data/lib/generated/azure_mgmt_compute/models/ssh_configuration.rb +3 -3
- data/lib/generated/azure_mgmt_compute/models/ssh_public_key.rb +7 -7
- data/lib/generated/azure_mgmt_compute/models/status_level_types.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/storage_profile.rb +4 -4
- data/lib/generated/azure_mgmt_compute/models/upgrade_mode.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/upgrade_policy.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/usage.rb +6 -6
- data/lib/generated/azure_mgmt_compute/models/usage_name.rb +3 -3
- data/lib/generated/azure_mgmt_compute/models/vault_certificate.rb +3 -3
- data/lib/generated/azure_mgmt_compute/models/vault_secret_group.rb +4 -4
- data/lib/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +3 -3
- data/lib/generated/azure_mgmt_compute/models/virtual_machine.rb +18 -15
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +5 -5
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +5 -5
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +3 -3
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +3 -3
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +5 -5
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_image.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +4 -4
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +7 -7
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb +4 -4
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +3 -3
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +3 -3
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +3 -3
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +4 -4
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +3 -3
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +7 -7
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +2 -2
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +2 -2
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +3 -3
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +3 -3
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_size.rb +12 -8
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +2 -2
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +1 -1
- data/lib/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +2 -2
- data/lib/generated/azure_mgmt_compute/models/win_rmlistener.rb +5 -6
- data/lib/generated/azure_mgmt_compute/models/windows_configuration.rb +11 -10
- data/lib/generated/azure_mgmt_compute/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_compute/usage_operations.rb +51 -37
- data/lib/generated/azure_mgmt_compute/version.rb +2 -2
- data/lib/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +1 -1
- data/lib/generated/azure_mgmt_compute/virtual_machine_extensions.rb +131 -131
- data/lib/generated/azure_mgmt_compute/virtual_machine_images.rb +70 -58
- data/lib/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +430 -422
- data/lib/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +729 -747
- data/lib/generated/azure_mgmt_compute/virtual_machine_sizes.rb +1 -1
- data/lib/generated/azure_mgmt_compute/virtual_machines.rb +526 -515
- metadata +7 -5
- data/lib/generated/azure_mgmt_compute/container_service_operations.rb +0 -508
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e1d71682d907028315db0f8a61c78cf09a73d7e0
|
|
4
|
+
data.tar.gz: ca5d5185d9e3496f3d287b2d8e6700b69a8ab3b9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 798a85d1f6d05719f15f1641d3b846deb130fd9387b7b67a7f4aaaa62a7d2b5a742dc89335864244f53d6e63a916e0de94cf4957d5e6decf26fb988e6b1786b0
|
|
7
|
+
data.tar.gz: 7e69e55c04964cc555083ee4163a2aa9eb28ad85c612c789bebc52634c338c0c63fe83786b6466abc5b7ac22188a884655c7214299b9d140d26668583b9c169c
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
4
|
# regenerated.
|
|
5
5
|
|
|
@@ -29,91 +29,94 @@ module Azure::ARM::Compute
|
|
|
29
29
|
autoload :VirtualMachines, 'generated/azure_mgmt_compute/virtual_machines.rb'
|
|
30
30
|
autoload :VirtualMachineScaleSets, 'generated/azure_mgmt_compute/virtual_machine_scale_sets.rb'
|
|
31
31
|
autoload :VirtualMachineScaleSetVMs, 'generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb'
|
|
32
|
-
autoload :
|
|
32
|
+
autoload :ContainerServices, 'generated/azure_mgmt_compute/container_services.rb'
|
|
33
33
|
autoload :ComputeManagementClient, 'generated/azure_mgmt_compute/compute_management_client.rb'
|
|
34
34
|
|
|
35
35
|
module Models
|
|
36
|
-
autoload :
|
|
36
|
+
autoload :VirtualMachineInstanceView, 'generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb'
|
|
37
|
+
autoload :VirtualMachineAgentInstanceView, 'generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb'
|
|
38
|
+
autoload :DiskInstanceView, 'generated/azure_mgmt_compute/models/disk_instance_view.rb'
|
|
39
|
+
autoload :DiagnosticsProfile, 'generated/azure_mgmt_compute/models/diagnostics_profile.rb'
|
|
37
40
|
autoload :AvailabilitySetListResult, 'generated/azure_mgmt_compute/models/availability_set_list_result.rb'
|
|
38
|
-
autoload :
|
|
41
|
+
autoload :VirtualMachineExtensionHandlerInstanceView, 'generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb'
|
|
39
42
|
autoload :VirtualMachineSizeListResult, 'generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb'
|
|
40
|
-
autoload :
|
|
41
|
-
autoload :
|
|
43
|
+
autoload :ContainerServiceWindowsProfile, 'generated/azure_mgmt_compute/models/container_service_windows_profile.rb'
|
|
44
|
+
autoload :ContainerServiceCustomProfile, 'generated/azure_mgmt_compute/models/container_service_custom_profile.rb'
|
|
45
|
+
autoload :ContainerServiceAgentPoolProfile, 'generated/azure_mgmt_compute/models/container_service_agent_pool_profile.rb'
|
|
46
|
+
autoload :BootDiagnosticsInstanceView, 'generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb'
|
|
42
47
|
autoload :OSDiskImage, 'generated/azure_mgmt_compute/models/osdisk_image.rb'
|
|
43
|
-
autoload :
|
|
44
|
-
autoload :
|
|
48
|
+
autoload :InstanceViewStatus, 'generated/azure_mgmt_compute/models/instance_view_status.rb'
|
|
49
|
+
autoload :ContainerServiceMasterProfile, 'generated/azure_mgmt_compute/models/container_service_master_profile.rb'
|
|
45
50
|
autoload :Usage, 'generated/azure_mgmt_compute/models/usage.rb'
|
|
46
|
-
autoload :
|
|
51
|
+
autoload :VirtualMachineListResult, 'generated/azure_mgmt_compute/models/virtual_machine_list_result.rb'
|
|
47
52
|
autoload :VirtualMachineCaptureParameters, 'generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb'
|
|
53
|
+
autoload :Sku, 'generated/azure_mgmt_compute/models/sku.rb'
|
|
48
54
|
autoload :Plan, 'generated/azure_mgmt_compute/models/plan.rb'
|
|
49
|
-
autoload :
|
|
55
|
+
autoload :UpgradePolicy, 'generated/azure_mgmt_compute/models/upgrade_policy.rb'
|
|
50
56
|
autoload :ImageReference, 'generated/azure_mgmt_compute/models/image_reference.rb'
|
|
51
|
-
autoload :
|
|
57
|
+
autoload :VirtualMachineScaleSetOSProfile, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb'
|
|
52
58
|
autoload :KeyVaultKeyReference, 'generated/azure_mgmt_compute/models/key_vault_key_reference.rb'
|
|
53
|
-
autoload :
|
|
59
|
+
autoload :VirtualMachineScaleSetOSDisk, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb'
|
|
54
60
|
autoload :VirtualHardDisk, 'generated/azure_mgmt_compute/models/virtual_hard_disk.rb'
|
|
55
|
-
autoload :
|
|
61
|
+
autoload :VirtualMachineScaleSetStorageProfile, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb'
|
|
56
62
|
autoload :DataDisk, 'generated/azure_mgmt_compute/models/data_disk.rb'
|
|
57
|
-
autoload :
|
|
63
|
+
autoload :ApiEntityReference, 'generated/azure_mgmt_compute/models/api_entity_reference.rb'
|
|
58
64
|
autoload :AdditionalUnattendContent, 'generated/azure_mgmt_compute/models/additional_unattend_content.rb'
|
|
59
|
-
autoload :
|
|
65
|
+
autoload :ContainerServiceListResult, 'generated/azure_mgmt_compute/models/container_service_list_result.rb'
|
|
60
66
|
autoload :WinRMConfiguration, 'generated/azure_mgmt_compute/models/win_rmconfiguration.rb'
|
|
61
|
-
autoload :
|
|
67
|
+
autoload :ContainerServiceVMDiagnostics, 'generated/azure_mgmt_compute/models/container_service_vmdiagnostics.rb'
|
|
62
68
|
autoload :SshPublicKey, 'generated/azure_mgmt_compute/models/ssh_public_key.rb'
|
|
63
|
-
autoload :
|
|
69
|
+
autoload :VirtualMachineScaleSetNetworkProfile, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb'
|
|
64
70
|
autoload :LinuxConfiguration, 'generated/azure_mgmt_compute/models/linux_configuration.rb'
|
|
65
|
-
autoload :
|
|
71
|
+
autoload :ContainerServiceDiagnosticsProfile, 'generated/azure_mgmt_compute/models/container_service_diagnostics_profile.rb'
|
|
66
72
|
autoload :VaultSecretGroup, 'generated/azure_mgmt_compute/models/vault_secret_group.rb'
|
|
67
|
-
autoload :OSProfile, 'generated/azure_mgmt_compute/models/osprofile.rb'
|
|
68
|
-
autoload :NetworkProfile, 'generated/azure_mgmt_compute/models/network_profile.rb'
|
|
69
|
-
autoload :BootDiagnostics, 'generated/azure_mgmt_compute/models/boot_diagnostics.rb'
|
|
70
|
-
autoload :DiagnosticsProfile, 'generated/azure_mgmt_compute/models/diagnostics_profile.rb'
|
|
71
|
-
autoload :VirtualMachineExtensionHandlerInstanceView, 'generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb'
|
|
72
|
-
autoload :VirtualMachineAgentInstanceView, 'generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb'
|
|
73
|
-
autoload :DiskInstanceView, 'generated/azure_mgmt_compute/models/disk_instance_view.rb'
|
|
74
|
-
autoload :BootDiagnosticsInstanceView, 'generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb'
|
|
75
|
-
autoload :VirtualMachineInstanceView, 'generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb'
|
|
76
|
-
autoload :VirtualMachineListResult, 'generated/azure_mgmt_compute/models/virtual_machine_list_result.rb'
|
|
77
|
-
autoload :Sku, 'generated/azure_mgmt_compute/models/sku.rb'
|
|
78
|
-
autoload :UpgradePolicy, 'generated/azure_mgmt_compute/models/upgrade_policy.rb'
|
|
79
|
-
autoload :VirtualMachineScaleSetOSProfile, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb'
|
|
80
|
-
autoload :VirtualMachineScaleSetOSDisk, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb'
|
|
81
|
-
autoload :VirtualMachineScaleSetStorageProfile, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb'
|
|
82
|
-
autoload :ApiEntityReference, 'generated/azure_mgmt_compute/models/api_entity_reference.rb'
|
|
83
|
-
autoload :VirtualMachineScaleSetNetworkProfile, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb'
|
|
84
73
|
autoload :VirtualMachineScaleSetExtensionProfile, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb'
|
|
74
|
+
autoload :ContainerServiceServicePrincipalProfile, 'generated/azure_mgmt_compute/models/container_service_service_principal_profile.rb'
|
|
85
75
|
autoload :VirtualMachineScaleSetVMProfile, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb'
|
|
76
|
+
autoload :BootDiagnostics, 'generated/azure_mgmt_compute/models/boot_diagnostics.rb'
|
|
77
|
+
autoload :ContainerServiceSshPublicKey, 'generated/azure_mgmt_compute/models/container_service_ssh_public_key.rb'
|
|
78
|
+
autoload :ContainerServiceLinuxProfile, 'generated/azure_mgmt_compute/models/container_service_linux_profile.rb'
|
|
86
79
|
autoload :VirtualMachineScaleSetVMInstanceIDs, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb'
|
|
80
|
+
autoload :PurchasePlan, 'generated/azure_mgmt_compute/models/purchase_plan.rb'
|
|
87
81
|
autoload :VirtualMachineScaleSetVMInstanceRequiredIDs, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb'
|
|
82
|
+
autoload :UsageName, 'generated/azure_mgmt_compute/models/usage_name.rb'
|
|
88
83
|
autoload :VirtualMachineStatusCodeCount, 'generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb'
|
|
84
|
+
autoload :ContainerServiceOrchestratorProfile, 'generated/azure_mgmt_compute/models/container_service_orchestrator_profile.rb'
|
|
89
85
|
autoload :VirtualMachineScaleSetInstanceViewStatusesSummary, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb'
|
|
86
|
+
autoload :KeyVaultSecretReference, 'generated/azure_mgmt_compute/models/key_vault_secret_reference.rb'
|
|
90
87
|
autoload :VirtualMachineScaleSetVMExtensionsSummary, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb'
|
|
88
|
+
autoload :OSDisk, 'generated/azure_mgmt_compute/models/osdisk.rb'
|
|
91
89
|
autoload :VirtualMachineScaleSetInstanceView, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb'
|
|
90
|
+
autoload :WinRMListener, 'generated/azure_mgmt_compute/models/win_rmlistener.rb'
|
|
92
91
|
autoload :VirtualMachineScaleSetListResult, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb'
|
|
92
|
+
autoload :SshConfiguration, 'generated/azure_mgmt_compute/models/ssh_configuration.rb'
|
|
93
93
|
autoload :VirtualMachineScaleSetListWithLinkResult, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb'
|
|
94
|
+
autoload :OSProfile, 'generated/azure_mgmt_compute/models/osprofile.rb'
|
|
94
95
|
autoload :VirtualMachineScaleSetSkuCapacity, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb'
|
|
96
|
+
autoload :VirtualMachineSize, 'generated/azure_mgmt_compute/models/virtual_machine_size.rb'
|
|
95
97
|
autoload :VirtualMachineScaleSetSku, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb'
|
|
98
|
+
autoload :DataDiskImage, 'generated/azure_mgmt_compute/models/data_disk_image.rb'
|
|
96
99
|
autoload :VirtualMachineScaleSetListSkusResult, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb'
|
|
100
|
+
autoload :HardwareProfile, 'generated/azure_mgmt_compute/models/hardware_profile.rb'
|
|
101
|
+
autoload :ContainerServiceSshConfiguration, 'generated/azure_mgmt_compute/models/container_service_ssh_configuration.rb'
|
|
102
|
+
autoload :StorageProfile, 'generated/azure_mgmt_compute/models/storage_profile.rb'
|
|
97
103
|
autoload :VirtualMachineScaleSetVMInstanceView, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb'
|
|
104
|
+
autoload :VaultCertificate, 'generated/azure_mgmt_compute/models/vault_certificate.rb'
|
|
98
105
|
autoload :VirtualMachineScaleSetVMListResult, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb'
|
|
106
|
+
autoload :VirtualMachineExtensionInstanceView, 'generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb'
|
|
99
107
|
autoload :ApiErrorBase, 'generated/azure_mgmt_compute/models/api_error_base.rb'
|
|
108
|
+
autoload :DiskEncryptionSettings, 'generated/azure_mgmt_compute/models/disk_encryption_settings.rb'
|
|
100
109
|
autoload :InnerError, 'generated/azure_mgmt_compute/models/inner_error.rb'
|
|
110
|
+
autoload :NetworkProfile, 'generated/azure_mgmt_compute/models/network_profile.rb'
|
|
101
111
|
autoload :ApiError, 'generated/azure_mgmt_compute/models/api_error.rb'
|
|
112
|
+
autoload :WindowsConfiguration, 'generated/azure_mgmt_compute/models/windows_configuration.rb'
|
|
102
113
|
autoload :ComputeLongRunningOperationProperties, 'generated/azure_mgmt_compute/models/compute_long_running_operation_properties.rb'
|
|
103
|
-
autoload :
|
|
104
|
-
autoload :ContainerServiceMasterProfile, 'generated/azure_mgmt_compute/models/container_service_master_profile.rb'
|
|
105
|
-
autoload :ContainerServiceAgentPoolProfile, 'generated/azure_mgmt_compute/models/container_service_agent_pool_profile.rb'
|
|
106
|
-
autoload :ContainerServiceWindowsProfile, 'generated/azure_mgmt_compute/models/container_service_windows_profile.rb'
|
|
107
|
-
autoload :ContainerServiceLinuxProfile, 'generated/azure_mgmt_compute/models/container_service_linux_profile.rb'
|
|
108
|
-
autoload :ContainerServiceSshConfiguration, 'generated/azure_mgmt_compute/models/container_service_ssh_configuration.rb'
|
|
109
|
-
autoload :ContainerServiceSshPublicKey, 'generated/azure_mgmt_compute/models/container_service_ssh_public_key.rb'
|
|
110
|
-
autoload :ContainerServiceDiagnosticsProfile, 'generated/azure_mgmt_compute/models/container_service_diagnostics_profile.rb'
|
|
111
|
-
autoload :ContainerServiceVMDiagnostics, 'generated/azure_mgmt_compute/models/container_service_vmdiagnostics.rb'
|
|
112
|
-
autoload :ContainerServiceListResult, 'generated/azure_mgmt_compute/models/container_service_list_result.rb'
|
|
114
|
+
autoload :ListUsagesResult, 'generated/azure_mgmt_compute/models/list_usages_result.rb'
|
|
113
115
|
autoload :AvailabilitySet, 'generated/azure_mgmt_compute/models/availability_set.rb'
|
|
114
116
|
autoload :VirtualMachineExtensionImage, 'generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb'
|
|
115
117
|
autoload :VirtualMachineImageResource, 'generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb'
|
|
116
118
|
autoload :VirtualMachineExtension, 'generated/azure_mgmt_compute/models/virtual_machine_extension.rb'
|
|
119
|
+
autoload :VirtualMachineImage, 'generated/azure_mgmt_compute/models/virtual_machine_image.rb'
|
|
117
120
|
autoload :VirtualMachineCaptureResult, 'generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb'
|
|
118
121
|
autoload :NetworkInterfaceReference, 'generated/azure_mgmt_compute/models/network_interface_reference.rb'
|
|
119
122
|
autoload :VirtualMachine, 'generated/azure_mgmt_compute/models/virtual_machine.rb'
|
|
@@ -123,7 +126,6 @@ module Azure::ARM::Compute
|
|
|
123
126
|
autoload :VirtualMachineScaleSet, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb'
|
|
124
127
|
autoload :VirtualMachineScaleSetVM, 'generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb'
|
|
125
128
|
autoload :ContainerService, 'generated/azure_mgmt_compute/models/container_service.rb'
|
|
126
|
-
autoload :VirtualMachineImage, 'generated/azure_mgmt_compute/models/virtual_machine_image.rb'
|
|
127
129
|
autoload :StatusLevelTypes, 'generated/azure_mgmt_compute/models/status_level_types.rb'
|
|
128
130
|
autoload :OperatingSystemTypes, 'generated/azure_mgmt_compute/models/operating_system_types.rb'
|
|
129
131
|
autoload :VirtualMachineSizeTypes, 'generated/azure_mgmt_compute/models/virtual_machine_size_types.rb'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
4
|
# regenerated.
|
|
5
5
|
|
|
@@ -23,11 +23,10 @@ module Azure::ARM::Compute
|
|
|
23
23
|
attr_reader :client
|
|
24
24
|
|
|
25
25
|
#
|
|
26
|
-
#
|
|
26
|
+
# Create or update an availability set.
|
|
27
27
|
#
|
|
28
28
|
# @param resource_group_name [String] The name of the resource group.
|
|
29
|
-
# @param name [String]
|
|
30
|
-
# operation.
|
|
29
|
+
# @param name [String] The name of the availability set.
|
|
31
30
|
# @param parameters [AvailabilitySet] Parameters supplied to the Create
|
|
32
31
|
# Availability Set operation.
|
|
33
32
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
@@ -41,11 +40,10 @@ module Azure::ARM::Compute
|
|
|
41
40
|
end
|
|
42
41
|
|
|
43
42
|
#
|
|
44
|
-
#
|
|
43
|
+
# Create or update an availability set.
|
|
45
44
|
#
|
|
46
45
|
# @param resource_group_name [String] The name of the resource group.
|
|
47
|
-
# @param name [String]
|
|
48
|
-
# operation.
|
|
46
|
+
# @param name [String] The name of the availability set.
|
|
49
47
|
# @param parameters [AvailabilitySet] Parameters supplied to the Create
|
|
50
48
|
# Availability Set operation.
|
|
51
49
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
@@ -58,11 +56,10 @@ module Azure::ARM::Compute
|
|
|
58
56
|
end
|
|
59
57
|
|
|
60
58
|
#
|
|
61
|
-
#
|
|
59
|
+
# Create or update an availability set.
|
|
62
60
|
#
|
|
63
61
|
# @param resource_group_name [String] The name of the resource group.
|
|
64
|
-
# @param name [String]
|
|
65
|
-
# operation.
|
|
62
|
+
# @param name [String] The name of the availability set.
|
|
66
63
|
# @param parameters [AvailabilitySet] Parameters supplied to the Create
|
|
67
64
|
# Availability Set operation.
|
|
68
65
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
@@ -133,7 +130,7 @@ module Azure::ARM::Compute
|
|
|
133
130
|
end
|
|
134
131
|
|
|
135
132
|
#
|
|
136
|
-
#
|
|
133
|
+
# Delete an availability set.
|
|
137
134
|
#
|
|
138
135
|
# @param resource_group_name [String] The name of the resource group.
|
|
139
136
|
# @param availability_set_name [String] The name of the availability set.
|
|
@@ -147,7 +144,7 @@ module Azure::ARM::Compute
|
|
|
147
144
|
end
|
|
148
145
|
|
|
149
146
|
#
|
|
150
|
-
#
|
|
147
|
+
# Delete an availability set.
|
|
151
148
|
#
|
|
152
149
|
# @param resource_group_name [String] The name of the resource group.
|
|
153
150
|
# @param availability_set_name [String] The name of the availability set.
|
|
@@ -161,7 +158,7 @@ module Azure::ARM::Compute
|
|
|
161
158
|
end
|
|
162
159
|
|
|
163
160
|
#
|
|
164
|
-
#
|
|
161
|
+
# Delete an availability set.
|
|
165
162
|
#
|
|
166
163
|
# @param resource_group_name [String] The name of the resource group.
|
|
167
164
|
# @param availability_set_name [String] The name of the availability set.
|
|
@@ -213,7 +210,7 @@ module Azure::ARM::Compute
|
|
|
213
210
|
end
|
|
214
211
|
|
|
215
212
|
#
|
|
216
|
-
#
|
|
213
|
+
# Retrieves information about an availability set.
|
|
217
214
|
#
|
|
218
215
|
# @param resource_group_name [String] The name of the resource group.
|
|
219
216
|
# @param availability_set_name [String] The name of the availability set.
|
|
@@ -228,7 +225,7 @@ module Azure::ARM::Compute
|
|
|
228
225
|
end
|
|
229
226
|
|
|
230
227
|
#
|
|
231
|
-
#
|
|
228
|
+
# Retrieves information about an availability set.
|
|
232
229
|
#
|
|
233
230
|
# @param resource_group_name [String] The name of the resource group.
|
|
234
231
|
# @param availability_set_name [String] The name of the availability set.
|
|
@@ -242,7 +239,7 @@ module Azure::ARM::Compute
|
|
|
242
239
|
end
|
|
243
240
|
|
|
244
241
|
#
|
|
245
|
-
#
|
|
242
|
+
# Retrieves information about an availability set.
|
|
246
243
|
#
|
|
247
244
|
# @param resource_group_name [String] The name of the resource group.
|
|
248
245
|
# @param availability_set_name [String] The name of the availability set.
|
|
@@ -304,7 +301,7 @@ module Azure::ARM::Compute
|
|
|
304
301
|
end
|
|
305
302
|
|
|
306
303
|
#
|
|
307
|
-
#
|
|
304
|
+
# Lists all availability sets in a resource group.
|
|
308
305
|
#
|
|
309
306
|
# @param resource_group_name [String] The name of the resource group.
|
|
310
307
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
@@ -318,7 +315,7 @@ module Azure::ARM::Compute
|
|
|
318
315
|
end
|
|
319
316
|
|
|
320
317
|
#
|
|
321
|
-
#
|
|
318
|
+
# Lists all availability sets in a resource group.
|
|
322
319
|
#
|
|
323
320
|
# @param resource_group_name [String] The name of the resource group.
|
|
324
321
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
@@ -331,7 +328,7 @@ module Azure::ARM::Compute
|
|
|
331
328
|
end
|
|
332
329
|
|
|
333
330
|
#
|
|
334
|
-
#
|
|
331
|
+
# Lists all availability sets in a resource group.
|
|
335
332
|
#
|
|
336
333
|
# @param resource_group_name [String] The name of the resource group.
|
|
337
334
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# encoding: utf-8
|
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 0.
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
4
|
# regenerated.
|
|
5
5
|
|
|
@@ -17,7 +17,7 @@ module Azure::ARM::Compute
|
|
|
17
17
|
# @return Credentials needed for the client to connect to Azure.
|
|
18
18
|
attr_reader :credentials
|
|
19
19
|
|
|
20
|
-
# @return [String]
|
|
20
|
+
# @return [String] Subscription credentials that uniquely identify the
|
|
21
21
|
# Microsoft Azure subscription. The subscription ID forms part of the URI
|
|
22
22
|
# for every service call.
|
|
23
23
|
attr_accessor :subscription_id
|
|
@@ -60,8 +60,8 @@ module Azure::ARM::Compute
|
|
|
60
60
|
# @return [VirtualMachineScaleSetVMs] virtual_machine_scale_set_vms
|
|
61
61
|
attr_reader :virtual_machine_scale_set_vms
|
|
62
62
|
|
|
63
|
-
# @return [
|
|
64
|
-
attr_reader :
|
|
63
|
+
# @return [ContainerServices] container_services
|
|
64
|
+
attr_reader :container_services
|
|
65
65
|
|
|
66
66
|
#
|
|
67
67
|
# Creates initializes a new instance of the ComputeManagementClient class.
|
|
@@ -86,10 +86,11 @@ module Azure::ARM::Compute
|
|
|
86
86
|
@virtual_machines = VirtualMachines.new(self)
|
|
87
87
|
@virtual_machine_scale_sets = VirtualMachineScaleSets.new(self)
|
|
88
88
|
@virtual_machine_scale_set_vms = VirtualMachineScaleSetVMs.new(self)
|
|
89
|
-
@
|
|
89
|
+
@container_services = ContainerServices.new(self)
|
|
90
90
|
@accept_language = 'en-US'
|
|
91
91
|
@long_running_operation_retry_timeout = 30
|
|
92
92
|
@generate_client_request_id = true
|
|
93
|
+
add_telemetry
|
|
93
94
|
end
|
|
94
95
|
|
|
95
96
|
#
|
|
@@ -147,5 +148,17 @@ module Azure::ARM::Compute
|
|
|
147
148
|
super(request_url, method, path, options)
|
|
148
149
|
end
|
|
149
150
|
|
|
151
|
+
|
|
152
|
+
private
|
|
153
|
+
#
|
|
154
|
+
# Adds telemetry information.
|
|
155
|
+
#
|
|
156
|
+
def add_telemetry
|
|
157
|
+
sdk_information = 'azure_mgmt_compute'
|
|
158
|
+
if defined? Azure::ARM::Compute::VERSION
|
|
159
|
+
sdk_information = "#{sdk_information}/#{Azure::ARM::Compute::VERSION}"
|
|
160
|
+
end
|
|
161
|
+
add_user_agent_information(sdk_information)
|
|
162
|
+
end
|
|
150
163
|
end
|
|
151
164
|
end
|
|
@@ -0,0 +1,920 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
|
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
|
4
|
+
# regenerated.
|
|
5
|
+
|
|
6
|
+
module Azure::ARM::Compute
|
|
7
|
+
#
|
|
8
|
+
# Composite Swagger for Compute Client
|
|
9
|
+
#
|
|
10
|
+
class ContainerServices
|
|
11
|
+
include Azure::ARM::Compute::Models
|
|
12
|
+
include MsRestAzure
|
|
13
|
+
|
|
14
|
+
#
|
|
15
|
+
# Creates and initializes a new instance of the ContainerServices class.
|
|
16
|
+
# @param client service class for accessing basic functionality.
|
|
17
|
+
#
|
|
18
|
+
def initialize(client)
|
|
19
|
+
@client = client
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
# @return [ComputeManagementClient] reference to the ComputeManagementClient
|
|
23
|
+
attr_reader :client
|
|
24
|
+
|
|
25
|
+
#
|
|
26
|
+
# Gets a list of container services in the specified subscription.
|
|
27
|
+
#
|
|
28
|
+
# Gets a list of container services in the specified subscription. The
|
|
29
|
+
# operation returns properties of each container service including state,
|
|
30
|
+
# orchestrator, number of masters and agents, and FQDNs of masters and agents.
|
|
31
|
+
#
|
|
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<ContainerService>] operation results.
|
|
36
|
+
#
|
|
37
|
+
def list(custom_headers = nil)
|
|
38
|
+
first_page = list_as_lazy(custom_headers)
|
|
39
|
+
first_page.get_all_items
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
#
|
|
43
|
+
# Gets a list of container services in the specified subscription.
|
|
44
|
+
#
|
|
45
|
+
# Gets a list of container services in the specified subscription. The
|
|
46
|
+
# operation returns properties of each container service including state,
|
|
47
|
+
# orchestrator, number of masters and agents, and FQDNs of masters and agents.
|
|
48
|
+
#
|
|
49
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
50
|
+
# will be added to the HTTP request.
|
|
51
|
+
#
|
|
52
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
53
|
+
#
|
|
54
|
+
def list_with_http_info(custom_headers = nil)
|
|
55
|
+
list_async(custom_headers).value!
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
#
|
|
59
|
+
# Gets a list of container services in the specified subscription.
|
|
60
|
+
#
|
|
61
|
+
# Gets a list of container services in the specified subscription. The
|
|
62
|
+
# operation returns properties of each container service including state,
|
|
63
|
+
# orchestrator, number of masters and agents, and FQDNs of masters and agents.
|
|
64
|
+
#
|
|
65
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
66
|
+
# to the HTTP request.
|
|
67
|
+
#
|
|
68
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
69
|
+
#
|
|
70
|
+
def list_async(custom_headers = nil)
|
|
71
|
+
api_version = '2016-09-30'
|
|
72
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
request_headers = {}
|
|
76
|
+
|
|
77
|
+
# Set Headers
|
|
78
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
79
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
80
|
+
path_template = '/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/containerServices'
|
|
81
|
+
|
|
82
|
+
request_url = @base_url || @client.base_url
|
|
83
|
+
|
|
84
|
+
options = {
|
|
85
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
86
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
|
87
|
+
query_params: {'api-version' => api_version},
|
|
88
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
89
|
+
base_url: request_url
|
|
90
|
+
}
|
|
91
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
92
|
+
|
|
93
|
+
promise = promise.then do |result|
|
|
94
|
+
http_response = result.response
|
|
95
|
+
status_code = http_response.status
|
|
96
|
+
response_content = http_response.body
|
|
97
|
+
unless status_code == 200
|
|
98
|
+
error_model = JSON.load(response_content)
|
|
99
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
103
|
+
# Deserialize Response
|
|
104
|
+
if status_code == 200
|
|
105
|
+
begin
|
|
106
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
107
|
+
result_mapper = ContainerServiceListResult.mapper()
|
|
108
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
|
109
|
+
rescue Exception => e
|
|
110
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
result
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
promise.execute
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
#
|
|
121
|
+
# Creates or updates a container service.
|
|
122
|
+
#
|
|
123
|
+
# Creates or updates a container service with the specified configuration of
|
|
124
|
+
# orchestrator, masters, and agents.
|
|
125
|
+
#
|
|
126
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
127
|
+
# @param container_service_name [String] The name of the container service in
|
|
128
|
+
# the specified subscription and resource group.
|
|
129
|
+
# @param parameters [ContainerService] Parameters supplied to the Create or
|
|
130
|
+
# Update a Container Service operation.
|
|
131
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
132
|
+
# will be added to the HTTP request.
|
|
133
|
+
#
|
|
134
|
+
# @return [ContainerService] operation results.
|
|
135
|
+
#
|
|
136
|
+
def create_or_update(resource_group_name, container_service_name, parameters, custom_headers = nil)
|
|
137
|
+
response = create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers).value!
|
|
138
|
+
response.body unless response.nil?
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
#
|
|
142
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
143
|
+
# @param container_service_name [String] The name of the container service in
|
|
144
|
+
# the specified subscription and resource group.
|
|
145
|
+
# @param parameters [ContainerService] Parameters supplied to the Create or
|
|
146
|
+
# Update a Container Service operation.
|
|
147
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
148
|
+
# will be added to the HTTP request.
|
|
149
|
+
#
|
|
150
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
|
151
|
+
# response.
|
|
152
|
+
#
|
|
153
|
+
def create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers = nil)
|
|
154
|
+
# Send request
|
|
155
|
+
promise = begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers)
|
|
156
|
+
|
|
157
|
+
promise = promise.then do |response|
|
|
158
|
+
# Defining deserialization method.
|
|
159
|
+
deserialize_method = lambda do |parsed_response|
|
|
160
|
+
result_mapper = ContainerService.mapper()
|
|
161
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response, 'parsed_response')
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Waiting for response.
|
|
165
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
promise
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
#
|
|
172
|
+
# Gets the properties of the specified container service.
|
|
173
|
+
#
|
|
174
|
+
# Gets the properties of the specified container service in the specified
|
|
175
|
+
# subscription and resource group. The operation returns the properties
|
|
176
|
+
# including state, orchestrator, number of masters and agents, and FQDNs of
|
|
177
|
+
# masters and agents.
|
|
178
|
+
#
|
|
179
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
180
|
+
# @param container_service_name [String] The name of the container service in
|
|
181
|
+
# the specified subscription and resource group.
|
|
182
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
183
|
+
# will be added to the HTTP request.
|
|
184
|
+
#
|
|
185
|
+
# @return [ContainerService] operation results.
|
|
186
|
+
#
|
|
187
|
+
def get(resource_group_name, container_service_name, custom_headers = nil)
|
|
188
|
+
response = get_async(resource_group_name, container_service_name, custom_headers).value!
|
|
189
|
+
response.body unless response.nil?
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
#
|
|
193
|
+
# Gets the properties of the specified container service.
|
|
194
|
+
#
|
|
195
|
+
# Gets the properties of the specified container service in the specified
|
|
196
|
+
# subscription and resource group. The operation returns the properties
|
|
197
|
+
# including state, orchestrator, number of masters and agents, and FQDNs of
|
|
198
|
+
# masters and agents.
|
|
199
|
+
#
|
|
200
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
201
|
+
# @param container_service_name [String] The name of the container service in
|
|
202
|
+
# the specified subscription and resource group.
|
|
203
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
204
|
+
# will be added to the HTTP request.
|
|
205
|
+
#
|
|
206
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
207
|
+
#
|
|
208
|
+
def get_with_http_info(resource_group_name, container_service_name, custom_headers = nil)
|
|
209
|
+
get_async(resource_group_name, container_service_name, custom_headers).value!
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
#
|
|
213
|
+
# Gets the properties of the specified container service.
|
|
214
|
+
#
|
|
215
|
+
# Gets the properties of the specified container service in the specified
|
|
216
|
+
# subscription and resource group. The operation returns the properties
|
|
217
|
+
# including state, orchestrator, number of masters and agents, and FQDNs of
|
|
218
|
+
# masters and agents.
|
|
219
|
+
#
|
|
220
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
221
|
+
# @param container_service_name [String] The name of the container service in
|
|
222
|
+
# the specified subscription and resource group.
|
|
223
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
224
|
+
# to the HTTP request.
|
|
225
|
+
#
|
|
226
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
227
|
+
#
|
|
228
|
+
def get_async(resource_group_name, container_service_name, custom_headers = nil)
|
|
229
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
230
|
+
fail ArgumentError, 'container_service_name is nil' if container_service_name.nil?
|
|
231
|
+
api_version = '2016-09-30'
|
|
232
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
request_headers = {}
|
|
236
|
+
|
|
237
|
+
# Set Headers
|
|
238
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
239
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
240
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}'
|
|
241
|
+
|
|
242
|
+
request_url = @base_url || @client.base_url
|
|
243
|
+
|
|
244
|
+
options = {
|
|
245
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
246
|
+
path_params: {'resourceGroupName' => resource_group_name,'containerServiceName' => container_service_name,'subscriptionId' => @client.subscription_id},
|
|
247
|
+
query_params: {'api-version' => api_version},
|
|
248
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
249
|
+
base_url: request_url
|
|
250
|
+
}
|
|
251
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
252
|
+
|
|
253
|
+
promise = promise.then do |result|
|
|
254
|
+
http_response = result.response
|
|
255
|
+
status_code = http_response.status
|
|
256
|
+
response_content = http_response.body
|
|
257
|
+
unless status_code == 200
|
|
258
|
+
error_model = JSON.load(response_content)
|
|
259
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
263
|
+
# Deserialize Response
|
|
264
|
+
if status_code == 200
|
|
265
|
+
begin
|
|
266
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
267
|
+
result_mapper = ContainerService.mapper()
|
|
268
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
|
269
|
+
rescue Exception => e
|
|
270
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
271
|
+
end
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
result
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
promise.execute
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
#
|
|
281
|
+
# Deletes the specified container service.
|
|
282
|
+
#
|
|
283
|
+
# Deletes the specified container service in the specified subscription and
|
|
284
|
+
# resource group. The operation does not delete other resources created as part
|
|
285
|
+
# of creating a container service, including storage accounts, VMs, and
|
|
286
|
+
# availability sets. All the other resources created with the container service
|
|
287
|
+
# are part of the same resource group and can be deleted individually.
|
|
288
|
+
#
|
|
289
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
290
|
+
# @param container_service_name [String] The name of the container service in
|
|
291
|
+
# the specified subscription and resource group.
|
|
292
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
293
|
+
# will be added to the HTTP request.
|
|
294
|
+
#
|
|
295
|
+
def delete(resource_group_name, container_service_name, custom_headers = nil)
|
|
296
|
+
response = delete_async(resource_group_name, container_service_name, custom_headers).value!
|
|
297
|
+
nil
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
#
|
|
301
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
302
|
+
# @param container_service_name [String] The name of the container service in
|
|
303
|
+
# the specified subscription and resource group.
|
|
304
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
305
|
+
# will be added to the HTTP request.
|
|
306
|
+
#
|
|
307
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
|
308
|
+
# response.
|
|
309
|
+
#
|
|
310
|
+
def delete_async(resource_group_name, container_service_name, custom_headers = nil)
|
|
311
|
+
# Send request
|
|
312
|
+
promise = begin_delete_async(resource_group_name, container_service_name, custom_headers)
|
|
313
|
+
|
|
314
|
+
promise = promise.then do |response|
|
|
315
|
+
# Defining deserialization method.
|
|
316
|
+
deserialize_method = lambda do |parsed_response|
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
# Waiting for response.
|
|
320
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
promise
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
#
|
|
327
|
+
# Gets a list of container services in the specified resource group.
|
|
328
|
+
#
|
|
329
|
+
# Gets a list of container services in the specified subscription and resource
|
|
330
|
+
# group. The operation returns properties of each container service including
|
|
331
|
+
# state, orchestrator, number of masters and agents, and FQDNs of masters and
|
|
332
|
+
# agents.
|
|
333
|
+
#
|
|
334
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
335
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
336
|
+
# will be added to the HTTP request.
|
|
337
|
+
#
|
|
338
|
+
# @return [Array<ContainerService>] operation results.
|
|
339
|
+
#
|
|
340
|
+
def list_by_resource_group(resource_group_name, custom_headers = nil)
|
|
341
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
|
|
342
|
+
first_page.get_all_items
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
#
|
|
346
|
+
# Gets a list of container services in the specified resource group.
|
|
347
|
+
#
|
|
348
|
+
# Gets a list of container services in the specified subscription and resource
|
|
349
|
+
# group. The operation returns properties of each container service including
|
|
350
|
+
# state, orchestrator, number of masters and agents, and FQDNs of masters and
|
|
351
|
+
# agents.
|
|
352
|
+
#
|
|
353
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
354
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
355
|
+
# will be added to the HTTP request.
|
|
356
|
+
#
|
|
357
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
358
|
+
#
|
|
359
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
|
|
360
|
+
list_by_resource_group_async(resource_group_name, custom_headers).value!
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
#
|
|
364
|
+
# Gets a list of container services in the specified resource group.
|
|
365
|
+
#
|
|
366
|
+
# Gets a list of container services in the specified subscription and resource
|
|
367
|
+
# group. The operation returns properties of each container service including
|
|
368
|
+
# state, orchestrator, number of masters and agents, and FQDNs of masters and
|
|
369
|
+
# agents.
|
|
370
|
+
#
|
|
371
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
372
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
373
|
+
# to the HTTP request.
|
|
374
|
+
#
|
|
375
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
376
|
+
#
|
|
377
|
+
def list_by_resource_group_async(resource_group_name, custom_headers = nil)
|
|
378
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
379
|
+
api_version = '2016-09-30'
|
|
380
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
request_headers = {}
|
|
384
|
+
|
|
385
|
+
# Set Headers
|
|
386
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
387
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
388
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices'
|
|
389
|
+
|
|
390
|
+
request_url = @base_url || @client.base_url
|
|
391
|
+
|
|
392
|
+
options = {
|
|
393
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
394
|
+
path_params: {'resourceGroupName' => resource_group_name,'subscriptionId' => @client.subscription_id},
|
|
395
|
+
query_params: {'api-version' => api_version},
|
|
396
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
397
|
+
base_url: request_url
|
|
398
|
+
}
|
|
399
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
400
|
+
|
|
401
|
+
promise = promise.then do |result|
|
|
402
|
+
http_response = result.response
|
|
403
|
+
status_code = http_response.status
|
|
404
|
+
response_content = http_response.body
|
|
405
|
+
unless status_code == 200
|
|
406
|
+
error_model = JSON.load(response_content)
|
|
407
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
408
|
+
end
|
|
409
|
+
|
|
410
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
411
|
+
# Deserialize Response
|
|
412
|
+
if status_code == 200
|
|
413
|
+
begin
|
|
414
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
415
|
+
result_mapper = ContainerServiceListResult.mapper()
|
|
416
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
|
417
|
+
rescue Exception => e
|
|
418
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
419
|
+
end
|
|
420
|
+
end
|
|
421
|
+
|
|
422
|
+
result
|
|
423
|
+
end
|
|
424
|
+
|
|
425
|
+
promise.execute
|
|
426
|
+
end
|
|
427
|
+
|
|
428
|
+
#
|
|
429
|
+
# Creates or updates a container service.
|
|
430
|
+
#
|
|
431
|
+
# Creates or updates a container service with the specified configuration of
|
|
432
|
+
# orchestrator, masters, and agents.
|
|
433
|
+
#
|
|
434
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
435
|
+
# @param container_service_name [String] The name of the container service in
|
|
436
|
+
# the specified subscription and resource group.
|
|
437
|
+
# @param parameters [ContainerService] Parameters supplied to the Create or
|
|
438
|
+
# Update a Container Service operation.
|
|
439
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
440
|
+
# will be added to the HTTP request.
|
|
441
|
+
#
|
|
442
|
+
# @return [ContainerService] operation results.
|
|
443
|
+
#
|
|
444
|
+
def begin_create_or_update(resource_group_name, container_service_name, parameters, custom_headers = nil)
|
|
445
|
+
response = begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers).value!
|
|
446
|
+
response.body unless response.nil?
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
#
|
|
450
|
+
# Creates or updates a container service.
|
|
451
|
+
#
|
|
452
|
+
# Creates or updates a container service with the specified configuration of
|
|
453
|
+
# orchestrator, masters, and agents.
|
|
454
|
+
#
|
|
455
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
456
|
+
# @param container_service_name [String] The name of the container service in
|
|
457
|
+
# the specified subscription and resource group.
|
|
458
|
+
# @param parameters [ContainerService] Parameters supplied to the Create or
|
|
459
|
+
# Update a Container Service operation.
|
|
460
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
461
|
+
# will be added to the HTTP request.
|
|
462
|
+
#
|
|
463
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
464
|
+
#
|
|
465
|
+
def begin_create_or_update_with_http_info(resource_group_name, container_service_name, parameters, custom_headers = nil)
|
|
466
|
+
begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers).value!
|
|
467
|
+
end
|
|
468
|
+
|
|
469
|
+
#
|
|
470
|
+
# Creates or updates a container service.
|
|
471
|
+
#
|
|
472
|
+
# Creates or updates a container service with the specified configuration of
|
|
473
|
+
# orchestrator, masters, and agents.
|
|
474
|
+
#
|
|
475
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
476
|
+
# @param container_service_name [String] The name of the container service in
|
|
477
|
+
# the specified subscription and resource group.
|
|
478
|
+
# @param parameters [ContainerService] Parameters supplied to the Create or
|
|
479
|
+
# Update a Container Service operation.
|
|
480
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
481
|
+
# to the HTTP request.
|
|
482
|
+
#
|
|
483
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
484
|
+
#
|
|
485
|
+
def begin_create_or_update_async(resource_group_name, container_service_name, parameters, custom_headers = nil)
|
|
486
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
487
|
+
fail ArgumentError, 'container_service_name is nil' if container_service_name.nil?
|
|
488
|
+
fail ArgumentError, 'parameters is nil' if parameters.nil?
|
|
489
|
+
api_version = '2016-09-30'
|
|
490
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
request_headers = {}
|
|
494
|
+
|
|
495
|
+
# Set Headers
|
|
496
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
497
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
498
|
+
|
|
499
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
|
500
|
+
|
|
501
|
+
# Serialize Request
|
|
502
|
+
request_mapper = ContainerService.mapper()
|
|
503
|
+
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
|
504
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
|
505
|
+
|
|
506
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}'
|
|
507
|
+
|
|
508
|
+
request_url = @base_url || @client.base_url
|
|
509
|
+
|
|
510
|
+
options = {
|
|
511
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
512
|
+
path_params: {'resourceGroupName' => resource_group_name,'containerServiceName' => container_service_name,'subscriptionId' => @client.subscription_id},
|
|
513
|
+
query_params: {'api-version' => api_version},
|
|
514
|
+
body: request_content,
|
|
515
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
516
|
+
base_url: request_url
|
|
517
|
+
}
|
|
518
|
+
promise = @client.make_request_async(:put, path_template, options)
|
|
519
|
+
|
|
520
|
+
promise = promise.then do |result|
|
|
521
|
+
http_response = result.response
|
|
522
|
+
status_code = http_response.status
|
|
523
|
+
response_content = http_response.body
|
|
524
|
+
unless status_code == 200 || status_code == 201 || status_code == 202
|
|
525
|
+
error_model = JSON.load(response_content)
|
|
526
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
530
|
+
# Deserialize Response
|
|
531
|
+
if status_code == 200
|
|
532
|
+
begin
|
|
533
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
534
|
+
result_mapper = ContainerService.mapper()
|
|
535
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
|
536
|
+
rescue Exception => e
|
|
537
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
538
|
+
end
|
|
539
|
+
end
|
|
540
|
+
# Deserialize Response
|
|
541
|
+
if status_code == 201
|
|
542
|
+
begin
|
|
543
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
544
|
+
result_mapper = ContainerService.mapper()
|
|
545
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
|
546
|
+
rescue Exception => e
|
|
547
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
548
|
+
end
|
|
549
|
+
end
|
|
550
|
+
# Deserialize Response
|
|
551
|
+
if status_code == 202
|
|
552
|
+
begin
|
|
553
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
554
|
+
result_mapper = ContainerService.mapper()
|
|
555
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
|
556
|
+
rescue Exception => e
|
|
557
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
558
|
+
end
|
|
559
|
+
end
|
|
560
|
+
|
|
561
|
+
result
|
|
562
|
+
end
|
|
563
|
+
|
|
564
|
+
promise.execute
|
|
565
|
+
end
|
|
566
|
+
|
|
567
|
+
#
|
|
568
|
+
# Deletes the specified container service.
|
|
569
|
+
#
|
|
570
|
+
# Deletes the specified container service in the specified subscription and
|
|
571
|
+
# resource group. The operation does not delete other resources created as part
|
|
572
|
+
# of creating a container service, including storage accounts, VMs, and
|
|
573
|
+
# availability sets. All the other resources created with the container service
|
|
574
|
+
# are part of the same resource group and can be deleted individually.
|
|
575
|
+
#
|
|
576
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
577
|
+
# @param container_service_name [String] The name of the container service in
|
|
578
|
+
# the specified subscription and resource group.
|
|
579
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
580
|
+
# will be added to the HTTP request.
|
|
581
|
+
#
|
|
582
|
+
#
|
|
583
|
+
def begin_delete(resource_group_name, container_service_name, custom_headers = nil)
|
|
584
|
+
response = begin_delete_async(resource_group_name, container_service_name, custom_headers).value!
|
|
585
|
+
nil
|
|
586
|
+
end
|
|
587
|
+
|
|
588
|
+
#
|
|
589
|
+
# Deletes the specified container service.
|
|
590
|
+
#
|
|
591
|
+
# Deletes the specified container service in the specified subscription and
|
|
592
|
+
# resource group. The operation does not delete other resources created as part
|
|
593
|
+
# of creating a container service, including storage accounts, VMs, and
|
|
594
|
+
# availability sets. All the other resources created with the container service
|
|
595
|
+
# are part of the same resource group and can be deleted individually.
|
|
596
|
+
#
|
|
597
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
598
|
+
# @param container_service_name [String] The name of the container service in
|
|
599
|
+
# the specified subscription and resource group.
|
|
600
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
601
|
+
# will be added to the HTTP request.
|
|
602
|
+
#
|
|
603
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
604
|
+
#
|
|
605
|
+
def begin_delete_with_http_info(resource_group_name, container_service_name, custom_headers = nil)
|
|
606
|
+
begin_delete_async(resource_group_name, container_service_name, custom_headers).value!
|
|
607
|
+
end
|
|
608
|
+
|
|
609
|
+
#
|
|
610
|
+
# Deletes the specified container service.
|
|
611
|
+
#
|
|
612
|
+
# Deletes the specified container service in the specified subscription and
|
|
613
|
+
# resource group. The operation does not delete other resources created as part
|
|
614
|
+
# of creating a container service, including storage accounts, VMs, and
|
|
615
|
+
# availability sets. All the other resources created with the container service
|
|
616
|
+
# are part of the same resource group and can be deleted individually.
|
|
617
|
+
#
|
|
618
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
619
|
+
# @param container_service_name [String] The name of the container service in
|
|
620
|
+
# the specified subscription and resource group.
|
|
621
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
622
|
+
# to the HTTP request.
|
|
623
|
+
#
|
|
624
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
625
|
+
#
|
|
626
|
+
def begin_delete_async(resource_group_name, container_service_name, custom_headers = nil)
|
|
627
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
|
628
|
+
fail ArgumentError, 'container_service_name is nil' if container_service_name.nil?
|
|
629
|
+
api_version = '2016-09-30'
|
|
630
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
request_headers = {}
|
|
634
|
+
|
|
635
|
+
# Set Headers
|
|
636
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
637
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
638
|
+
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/containerServices/{containerServiceName}'
|
|
639
|
+
|
|
640
|
+
request_url = @base_url || @client.base_url
|
|
641
|
+
|
|
642
|
+
options = {
|
|
643
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
644
|
+
path_params: {'resourceGroupName' => resource_group_name,'containerServiceName' => container_service_name,'subscriptionId' => @client.subscription_id},
|
|
645
|
+
query_params: {'api-version' => api_version},
|
|
646
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
647
|
+
base_url: request_url
|
|
648
|
+
}
|
|
649
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
|
650
|
+
|
|
651
|
+
promise = promise.then do |result|
|
|
652
|
+
http_response = result.response
|
|
653
|
+
status_code = http_response.status
|
|
654
|
+
response_content = http_response.body
|
|
655
|
+
unless status_code == 202 || status_code == 204
|
|
656
|
+
error_model = JSON.load(response_content)
|
|
657
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
658
|
+
end
|
|
659
|
+
|
|
660
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
661
|
+
|
|
662
|
+
result
|
|
663
|
+
end
|
|
664
|
+
|
|
665
|
+
promise.execute
|
|
666
|
+
end
|
|
667
|
+
|
|
668
|
+
#
|
|
669
|
+
# Gets a list of container services in the specified subscription.
|
|
670
|
+
#
|
|
671
|
+
# Gets a list of container services in the specified subscription. The
|
|
672
|
+
# operation returns properties of each container service including state,
|
|
673
|
+
# orchestrator, number of masters and agents, and FQDNs of masters and agents.
|
|
674
|
+
#
|
|
675
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
676
|
+
# to List operation.
|
|
677
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
678
|
+
# will be added to the HTTP request.
|
|
679
|
+
#
|
|
680
|
+
# @return [ContainerServiceListResult] operation results.
|
|
681
|
+
#
|
|
682
|
+
def list_next(next_page_link, custom_headers = nil)
|
|
683
|
+
response = list_next_async(next_page_link, custom_headers).value!
|
|
684
|
+
response.body unless response.nil?
|
|
685
|
+
end
|
|
686
|
+
|
|
687
|
+
#
|
|
688
|
+
# Gets a list of container services in the specified subscription.
|
|
689
|
+
#
|
|
690
|
+
# Gets a list of container services in the specified subscription. The
|
|
691
|
+
# operation returns properties of each container service including state,
|
|
692
|
+
# orchestrator, number of masters and agents, and FQDNs of masters and agents.
|
|
693
|
+
#
|
|
694
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
695
|
+
# to List operation.
|
|
696
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
697
|
+
# will be added to the HTTP request.
|
|
698
|
+
#
|
|
699
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
700
|
+
#
|
|
701
|
+
def list_next_with_http_info(next_page_link, custom_headers = nil)
|
|
702
|
+
list_next_async(next_page_link, custom_headers).value!
|
|
703
|
+
end
|
|
704
|
+
|
|
705
|
+
#
|
|
706
|
+
# Gets a list of container services in the specified subscription.
|
|
707
|
+
#
|
|
708
|
+
# Gets a list of container services in the specified subscription. The
|
|
709
|
+
# operation returns properties of each container service including state,
|
|
710
|
+
# orchestrator, number of masters and agents, and FQDNs of masters and agents.
|
|
711
|
+
#
|
|
712
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
713
|
+
# to List operation.
|
|
714
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
715
|
+
# to the HTTP request.
|
|
716
|
+
#
|
|
717
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
718
|
+
#
|
|
719
|
+
def list_next_async(next_page_link, custom_headers = nil)
|
|
720
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
request_headers = {}
|
|
724
|
+
|
|
725
|
+
# Set Headers
|
|
726
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
727
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
728
|
+
path_template = '{nextLink}'
|
|
729
|
+
|
|
730
|
+
request_url = @base_url || @client.base_url
|
|
731
|
+
|
|
732
|
+
options = {
|
|
733
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
734
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
|
735
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
736
|
+
base_url: request_url
|
|
737
|
+
}
|
|
738
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
739
|
+
|
|
740
|
+
promise = promise.then do |result|
|
|
741
|
+
http_response = result.response
|
|
742
|
+
status_code = http_response.status
|
|
743
|
+
response_content = http_response.body
|
|
744
|
+
unless status_code == 200
|
|
745
|
+
error_model = JSON.load(response_content)
|
|
746
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
747
|
+
end
|
|
748
|
+
|
|
749
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
750
|
+
# Deserialize Response
|
|
751
|
+
if status_code == 200
|
|
752
|
+
begin
|
|
753
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
754
|
+
result_mapper = ContainerServiceListResult.mapper()
|
|
755
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
|
756
|
+
rescue Exception => e
|
|
757
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
758
|
+
end
|
|
759
|
+
end
|
|
760
|
+
|
|
761
|
+
result
|
|
762
|
+
end
|
|
763
|
+
|
|
764
|
+
promise.execute
|
|
765
|
+
end
|
|
766
|
+
|
|
767
|
+
#
|
|
768
|
+
# Gets a list of container services in the specified resource group.
|
|
769
|
+
#
|
|
770
|
+
# Gets a list of container services in the specified subscription and resource
|
|
771
|
+
# group. The operation returns properties of each container service including
|
|
772
|
+
# state, orchestrator, number of masters and agents, and FQDNs of masters and
|
|
773
|
+
# agents.
|
|
774
|
+
#
|
|
775
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
776
|
+
# to List operation.
|
|
777
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
778
|
+
# will be added to the HTTP request.
|
|
779
|
+
#
|
|
780
|
+
# @return [ContainerServiceListResult] operation results.
|
|
781
|
+
#
|
|
782
|
+
def list_by_resource_group_next(next_page_link, custom_headers = nil)
|
|
783
|
+
response = list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
|
784
|
+
response.body unless response.nil?
|
|
785
|
+
end
|
|
786
|
+
|
|
787
|
+
#
|
|
788
|
+
# Gets a list of container services in the specified resource group.
|
|
789
|
+
#
|
|
790
|
+
# Gets a list of container services in the specified subscription and resource
|
|
791
|
+
# group. The operation returns properties of each container service including
|
|
792
|
+
# state, orchestrator, number of masters and agents, and FQDNs of masters and
|
|
793
|
+
# agents.
|
|
794
|
+
#
|
|
795
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
796
|
+
# to List operation.
|
|
797
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
798
|
+
# will be added to the HTTP request.
|
|
799
|
+
#
|
|
800
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
|
801
|
+
#
|
|
802
|
+
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers = nil)
|
|
803
|
+
list_by_resource_group_next_async(next_page_link, custom_headers).value!
|
|
804
|
+
end
|
|
805
|
+
|
|
806
|
+
#
|
|
807
|
+
# Gets a list of container services in the specified resource group.
|
|
808
|
+
#
|
|
809
|
+
# Gets a list of container services in the specified subscription and resource
|
|
810
|
+
# group. The operation returns properties of each container service including
|
|
811
|
+
# state, orchestrator, number of masters and agents, and FQDNs of masters and
|
|
812
|
+
# agents.
|
|
813
|
+
#
|
|
814
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
|
815
|
+
# to List operation.
|
|
816
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
|
817
|
+
# to the HTTP request.
|
|
818
|
+
#
|
|
819
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
|
820
|
+
#
|
|
821
|
+
def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
|
|
822
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
request_headers = {}
|
|
826
|
+
|
|
827
|
+
# Set Headers
|
|
828
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
|
829
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
|
830
|
+
path_template = '{nextLink}'
|
|
831
|
+
|
|
832
|
+
request_url = @base_url || @client.base_url
|
|
833
|
+
|
|
834
|
+
options = {
|
|
835
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
|
836
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
|
837
|
+
headers: request_headers.merge(custom_headers || {}),
|
|
838
|
+
base_url: request_url
|
|
839
|
+
}
|
|
840
|
+
promise = @client.make_request_async(:get, path_template, options)
|
|
841
|
+
|
|
842
|
+
promise = promise.then do |result|
|
|
843
|
+
http_response = result.response
|
|
844
|
+
status_code = http_response.status
|
|
845
|
+
response_content = http_response.body
|
|
846
|
+
unless status_code == 200
|
|
847
|
+
error_model = JSON.load(response_content)
|
|
848
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
|
849
|
+
end
|
|
850
|
+
|
|
851
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
|
852
|
+
# Deserialize Response
|
|
853
|
+
if status_code == 200
|
|
854
|
+
begin
|
|
855
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
|
856
|
+
result_mapper = ContainerServiceListResult.mapper()
|
|
857
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
|
858
|
+
rescue Exception => e
|
|
859
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
|
860
|
+
end
|
|
861
|
+
end
|
|
862
|
+
|
|
863
|
+
result
|
|
864
|
+
end
|
|
865
|
+
|
|
866
|
+
promise.execute
|
|
867
|
+
end
|
|
868
|
+
|
|
869
|
+
#
|
|
870
|
+
# Gets a list of container services in the specified subscription.
|
|
871
|
+
#
|
|
872
|
+
# Gets a list of container services in the specified subscription. The
|
|
873
|
+
# operation returns properties of each container service including state,
|
|
874
|
+
# orchestrator, number of masters and agents, and FQDNs of masters and agents.
|
|
875
|
+
#
|
|
876
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
877
|
+
# will be added to the HTTP request.
|
|
878
|
+
#
|
|
879
|
+
# @return [ContainerServiceListResult] which provide lazy access to pages of
|
|
880
|
+
# the response.
|
|
881
|
+
#
|
|
882
|
+
def list_as_lazy(custom_headers = nil)
|
|
883
|
+
response = list_async(custom_headers).value!
|
|
884
|
+
unless response.nil?
|
|
885
|
+
page = response.body
|
|
886
|
+
page.next_method = Proc.new do |next_page_link|
|
|
887
|
+
list_next_async(next_page_link, custom_headers)
|
|
888
|
+
end
|
|
889
|
+
page
|
|
890
|
+
end
|
|
891
|
+
end
|
|
892
|
+
|
|
893
|
+
#
|
|
894
|
+
# Gets a list of container services in the specified resource group.
|
|
895
|
+
#
|
|
896
|
+
# Gets a list of container services in the specified subscription and resource
|
|
897
|
+
# group. The operation returns properties of each container service including
|
|
898
|
+
# state, orchestrator, number of masters and agents, and FQDNs of masters and
|
|
899
|
+
# agents.
|
|
900
|
+
#
|
|
901
|
+
# @param resource_group_name [String] The name of the resource group.
|
|
902
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
|
903
|
+
# will be added to the HTTP request.
|
|
904
|
+
#
|
|
905
|
+
# @return [ContainerServiceListResult] which provide lazy access to pages of
|
|
906
|
+
# the response.
|
|
907
|
+
#
|
|
908
|
+
def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
|
|
909
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers).value!
|
|
910
|
+
unless response.nil?
|
|
911
|
+
page = response.body
|
|
912
|
+
page.next_method = Proc.new do |next_page_link|
|
|
913
|
+
list_by_resource_group_next_async(next_page_link, custom_headers)
|
|
914
|
+
end
|
|
915
|
+
page
|
|
916
|
+
end
|
|
917
|
+
end
|
|
918
|
+
|
|
919
|
+
end
|
|
920
|
+
end
|