azure_mgmt_compute 0.18.5 → 0.18.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/2015-06-15/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/availability_set.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/hardware_profile.rb +19 -18
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/osprofile.rb +2 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/vault_certificate.rb +3 -3
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine.rb +1 -1
- data/lib/2015-06-15/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/availability_set.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/hardware_profile.rb +22 -22
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/osprofile.rb +2 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/vault_certificate.rb +3 -3
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine.rb +1 -1
- data/lib/2016-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/availability_set.rb +1 -1
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/osprofile.rb +2 -1
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/source_vault.rb +1 -1
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/vault_certificate.rb +1 -1
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine.rb +1 -1
- data/lib/2016-04-30-preview/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/availability_set.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/disk_sku.rb +1 -2
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/hardware_profile.rb +19 -18
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/image_data_disk.rb +1 -2
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/image_osdisk.rb +1 -2
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +1 -2
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/osprofile.rb +2 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/resource_sku_capabilities.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/source_vault.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/vault_certificate.rb +3 -3
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine.rb +1 -1
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +1 -2
- data/lib/2017-03-30/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
- data/lib/2017-09-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2017-09-01/generated/azure_mgmt_compute/models/resource_sku_capabilities.rb +1 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute/compute_management_client.rb +1 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/availability_set.rb +1 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb +1 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/osprofile.rb +2 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info_properties.rb +1 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/vault_certificate.rb +3 -3
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine.rb +1 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +1 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
- data/lib/2017-12-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +1 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute.rb +75 -70
- data/lib/2018-04-01/generated/azure_mgmt_compute/compute_management_client.rb +5 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/availability_set.rb +15 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/availability_set_update.rb +14 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb +1 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/osprofile.rb +2 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/proximity_placement_group.rb +166 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/proximity_placement_group_list_result.rb +100 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/proximity_placement_group_type.rb +16 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/proximity_placement_group_update.rb +51 -0
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/source_vault.rb +1 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info_properties.rb +1 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/vault_certificate.rb +3 -3
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/virtual_machine.rb +15 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +15 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +15 -1
- data/lib/2018-04-01/generated/azure_mgmt_compute/proximity_placement_groups.rb +821 -0
- data/lib/2018-06-01/generated/azure_mgmt_compute.rb +93 -85
- data/lib/2018-06-01/generated/azure_mgmt_compute/compute_management_client.rb +5 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/api_entity_reference.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/availability_set.rb +15 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/availability_set_update.rb +14 -0
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/diff_disk_settings.rb +4 -4
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/disk.rb +6 -2
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_artifact_publishing_profile_base.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image.rb +2 -2
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_image_version_publishing_profile.rb +2 -2
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/osdisk.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/osprofile.rb +2 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/proximity_placement_group.rb +166 -0
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/proximity_placement_group_list_result.rb +100 -0
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/proximity_placement_group_type.rb +16 -0
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/proximity_placement_group_update.rb +51 -0
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/recommended_machine_configuration.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/source_vault.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/target_region.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info_properties.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/vault_certificate.rb +3 -3
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine.rb +15 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_reimage_parameters.rb +48 -0
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +15 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +20 -0
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_reimage_parameters.rb +65 -0
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +1 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmreimage_parameters.rb +44 -0
- data/lib/2018-06-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +15 -1
- data/lib/2018-06-01/generated/azure_mgmt_compute/proximity_placement_groups.rb +821 -0
- data/lib/2018-06-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +31 -9
- data/lib/2018-06-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +29 -25
- data/lib/2018-06-01/generated/azure_mgmt_compute/virtual_machines.rb +140 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute.rb +54 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/compute_management_client.rb +137 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/disks.rb +1274 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/access_level.rb +17 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/access_uri.rb +47 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/creation_data.rb +97 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/disk.rb +262 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/disk_create_option.rb +21 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/disk_list.rb +99 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/disk_sku.rb +62 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/disk_state.rb +20 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/disk_storage_account_types.rb +18 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/disk_update.rb +134 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/encryption_settings_collection.rb +71 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/encryption_settings_element.rb +62 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/grant_access_data.rb +58 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/hyper_vgeneration.rb +16 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/image_disk_reference.rb +60 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/key_vault_and_key_reference.rb +60 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/key_vault_and_secret_reference.rb +59 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/resource.rb +110 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/snapshot.rb +202 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/snapshot_list.rb +99 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/snapshot_sku.rb +61 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/snapshot_storage_account_types.rb +17 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/snapshot_update.rb +108 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/models/source_vault.rb +47 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/2018-09-30/generated/azure_mgmt_compute/snapshots.rb +1274 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute.rb +220 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/availability_sets.rb +894 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/compute_management_client.rb +195 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/images.rb +959 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/log_analytics.rb +337 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/additional_capabilities.rb +51 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/additional_unattend_content.rb +93 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/api_entity_reference.rb +47 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/api_error.rb +100 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/api_error_base.rb +68 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/automatic_osupgrade_policy.rb +64 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/automatic_osupgrade_properties.rb +47 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/availability_set.rb +189 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/availability_set_list_result.rb +100 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/availability_set_sku_types.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/availability_set_update.rb +142 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/boot_diagnostics.rb +62 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +74 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/caching_types.rb +17 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/component_names.rb +15 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/compute_operation_list_result.rb +56 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/compute_operation_value.rb +108 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/data_disk.rb +159 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/data_disk_image.rb +49 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/diagnostics_profile.rb +52 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/diff_disk_options.rb +15 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/diff_disk_settings.rb +49 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/disk_create_option_types.rb +17 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +73 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/disk_instance_view.rb +87 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/hardware_profile.rb +104 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/image.rb +126 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/image_data_disk.rb +126 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/image_list_result.rb +99 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/image_osdisk.rb +141 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/image_reference.rb +98 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/image_storage_profile.rb +86 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/image_update.rb +89 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/inner_error.rb +57 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/instance_view_status.rb +93 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/instance_view_types.rb +15 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/interval_in_mins.rb +18 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/ipversion.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +59 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +59 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/linux_configuration.rb +81 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/list_usages_result.rb +100 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb +102 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/log_analytics_operation_result.rb +48 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/log_analytics_output.rb +47 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/maintenance_operation_result_code_types.rb +18 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/maintenance_redeploy_status.rb +115 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +57 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/network_interface_reference.rb +55 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/network_profile.rb +57 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/operating_system_state_types.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/osdisk.rb +191 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/osdisk_image.rb +48 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/osprofile.rb +183 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/pass_names.rb +15 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/plan.rb +86 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/protocol_types.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/proximity_placement_group.rb +166 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/proximity_placement_group_list_result.rb +100 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/proximity_placement_group_type.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/proximity_placement_group_update.rb +51 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/purchase_plan.rb +71 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/recovery_walk_response.rb +60 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/request_rate_by_interval_input.rb +97 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/resource.rb +110 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/resource_identity_type.rb +18 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/rollback_status_info.rb +74 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/rolling_upgrade_action_type.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb +108 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/rolling_upgrade_progress_info.rb +88 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/rolling_upgrade_running_status.rb +88 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/rolling_upgrade_status_code.rb +18 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/rolling_upgrade_status_info.rb +141 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/run_command_document.rb +116 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/run_command_document_base.rb +92 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/run_command_input.rb +87 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/run_command_input_parameter.rb +57 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/run_command_list_result.rb +100 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/run_command_parameter_definition.rb +81 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/run_command_result.rb +56 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/setting_names.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/sku.rb +71 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/ssh_configuration.rb +56 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/ssh_public_key.rb +64 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/status_level_types.rb +17 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/storage_account_types.rb +18 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/storage_profile.rb +89 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/sub_resource.rb +47 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/sub_resource_read_only.rb +48 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/throttled_requests_input.rb +83 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/update_resource.rb +54 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/upgrade_mode.rb +17 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info.rb +73 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info_properties.rb +116 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/upgrade_operation_history_status.rb +74 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/upgrade_operation_invoker.rb +17 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/upgrade_policy.rb +79 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/upgrade_state.rb +18 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/usage.rb +83 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/usage_name.rb +57 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/vault_certificate.rb +72 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/vault_secret_group.rb +69 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +46 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine.rb +331 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +87 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +69 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +99 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_eviction_policy_types.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +195 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +71 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +146 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +109 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +134 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb +55 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_health_status.rb +48 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_identity.rb +102 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_identity_user_assigned_identities_value.rb +61 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_image.rb +131 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +87 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +205 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb +99 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_priority_types.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_reimage_parameters.rb +48 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +273 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +126 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +172 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_list_result.rb +103 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +56 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb +105 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity_user_assigned_identities_value.rb +61 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +91 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +59 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ip_tag.rb +58 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +195 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_osupgrade_history.rb +104 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +100 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +101 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +102 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +50 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +137 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_dns_settings.rb +56 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +71 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +180 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +167 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb +106 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration_dns_settings.rb +51 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_reimage_parameters.rb +65 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +74 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +85 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +16 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +91 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb +138 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_ipconfiguration.rb +188 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_configuration.rb +136 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_profile.rb +57 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb +122 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osprofile.rb +92 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_public_ipaddress_configuration.rb +72 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_storage_profile.rb +80 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_vmprofile.rb +112 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +344 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +70 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +57 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +55 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +196 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +101 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +162 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmreimage_parameters.rb +44 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_size.rb +106 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +55 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb +180 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +61 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +274 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +56 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/win_rmlistener.rb +67 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/models/windows_configuration.rb +111 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/operations.rb +107 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/proximity_placement_groups.rb +821 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/usage_operations.rb +237 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +354 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb +691 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_images.rb +590 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +316 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +636 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +490 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +1937 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +2971 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machine_sizes.rb +120 -0
- data/lib/2018-10-01/generated/azure_mgmt_compute/virtual_machines.rb +2746 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute.rb +255 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/availability_sets.rb +894 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/compute_management_client.rb +207 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/galleries.rb +810 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/gallery_image_versions.rb +710 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/gallery_images.rb +666 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/images.rb +959 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/log_analytics.rb +337 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/additional_capabilities.rb +51 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/additional_unattend_content.rb +93 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/aggregated_replication_state.rb +18 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/api_entity_reference.rb +47 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/api_error.rb +100 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/api_error_base.rb +68 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/automatic_osupgrade_policy.rb +64 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/automatic_osupgrade_properties.rb +47 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/availability_set.rb +189 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/availability_set_list_result.rb +100 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/availability_set_sku_types.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/availability_set_update.rb +142 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/boot_diagnostics.rb +62 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/boot_diagnostics_instance_view.rb +74 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/caching_types.rb +17 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/component_names.rb +15 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/compute_operation_list_result.rb +56 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/compute_operation_value.rb +108 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/data_disk.rb +171 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/data_disk_image.rb +49 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/diagnostics_profile.rb +52 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/diff_disk_options.rb +15 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/diff_disk_settings.rb +49 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/disallowed.rb +54 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/disk_create_option_types.rb +17 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/disk_encryption_settings.rb +73 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/disk_instance_view.rb +87 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery.rb +125 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_artifact_publishing_profile_base.rb +68 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_artifact_source.rb +47 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_data_disk_image.rb +69 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_disk_image.rb +63 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_identifier.rb +48 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_image.rb +236 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_image_identifier.rb +68 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_image_list.rb +100 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_image_version.rb +140 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_image_version_list.rb +100 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_image_version_publishing_profile.rb +125 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_image_version_storage_profile.rb +69 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_list.rb +99 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_osdisk_image.rb +54 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/hardware_profile.rb +104 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/host_caching.rb +17 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/hyper_vgeneration_types.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/image.rb +139 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/image_data_disk.rb +126 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/image_list_result.rb +99 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/image_osdisk.rb +141 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/image_purchase_plan.rb +69 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/image_reference.rb +98 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/image_storage_profile.rb +86 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/image_update.rb +102 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/inner_error.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/instance_view_status.rb +93 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/instance_view_types.rb +15 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/interval_in_mins.rb +18 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/ipversion.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/key_vault_key_reference.rb +59 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/key_vault_secret_reference.rb +59 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/linux_configuration.rb +81 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/list_usages_result.rb +100 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/log_analytics_input_base.rb +102 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/log_analytics_operation_result.rb +48 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/log_analytics_output.rb +47 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/maintenance_operation_result_code_types.rb +18 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/maintenance_redeploy_status.rb +115 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/managed_artifact.rb +46 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/managed_disk_parameters.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/network_interface_reference.rb +55 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/network_profile.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/operating_system_state_types.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/operating_system_types.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/osdisk.rb +191 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/osdisk_image.rb +48 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/osprofile.rb +183 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/pass_names.rb +15 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/plan.rb +86 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/protocol_types.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/proximity_placement_group.rb +166 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/proximity_placement_group_list_result.rb +100 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/proximity_placement_group_type.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/proximity_placement_group_update.rb +51 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/purchase_plan.rb +71 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/recommended_machine_configuration.rb +60 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/recovery_walk_response.rb +60 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/regional_replication_status.rb +86 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/replication_state.rb +18 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/replication_status.rb +71 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/replication_status_types.rb +15 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/request_rate_by_interval_input.rb +97 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/resource.rb +110 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/resource_identity_type.rb +18 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/resource_range.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/rollback_status_info.rb +74 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/rolling_upgrade_action_type.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/rolling_upgrade_policy.rb +108 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/rolling_upgrade_progress_info.rb +88 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/rolling_upgrade_running_status.rb +88 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/rolling_upgrade_status_code.rb +18 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/rolling_upgrade_status_info.rb +141 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/run_command_document.rb +116 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/run_command_document_base.rb +92 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/run_command_input.rb +87 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/run_command_input_parameter.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/run_command_list_result.rb +100 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/run_command_parameter_definition.rb +81 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/run_command_result.rb +56 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/setting_names.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/sku.rb +71 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/ssh_configuration.rb +56 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/ssh_public_key.rb +64 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/status_level_types.rb +17 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/storage_account_type.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/storage_account_types.rb +18 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/storage_profile.rb +89 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/sub_resource.rb +47 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/sub_resource_read_only.rb +48 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/target_region.rb +71 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/throttled_requests_input.rb +83 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/update_resource.rb +54 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/upgrade_mode.rb +17 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info.rb +73 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/upgrade_operation_historical_status_info_properties.rb +116 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/upgrade_operation_history_status.rb +74 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/upgrade_operation_invoker.rb +17 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/upgrade_policy.rb +79 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/upgrade_state.rb +18 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/usage.rb +83 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/usage_name.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/vault_certificate.rb +72 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/vault_secret_group.rb +69 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_hard_disk.rb +46 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine.rb +331 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_agent_instance_view.rb +87 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_capture_parameters.rb +69 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_capture_result.rb +99 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_eviction_policy_types.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_extension.rb +195 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_extension_handler_instance_view.rb +71 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_extension_image.rb +146 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_extension_instance_view.rb +109 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_extension_update.rb +134 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_extensions_list_result.rb +55 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_health_status.rb +48 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_identity.rb +102 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_identity_user_assigned_identities_value.rb +61 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_image.rb +131 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_image_resource.rb +87 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_instance_view.rb +205 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_list_result.rb +99 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_priority_types.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_reimage_parameters.rb +48 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set.rb +289 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb +126 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension.rb +172 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_list_result.rb +103 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_extension_profile.rb +56 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity.rb +105 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_identity_user_assigned_identities_value.rb +61 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view.rb +91 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_instance_view_statuses_summary.rb +59 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ip_tag.rb +58 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_ipconfiguration.rb +195 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_osupgrade_history.rb +104 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_result.rb +100 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_skus_result.rb +101 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_list_with_link_result.rb +102 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_managed_disk_parameters.rb +50 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration.rb +137 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_configuration_dns_settings.rb +56 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_network_profile.rb +71 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osdisk.rb +180 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_osprofile.rb +167 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration.rb +106 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_public_ipaddress_configuration_dns_settings.rb +51 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_reimage_parameters.rb +65 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku.rb +74 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_capacity.rb +85 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_sku_scale_type.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_storage_profile.rb +91 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update.rb +154 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_ipconfiguration.rb +188 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_configuration.rb +136 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_network_profile.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osdisk.rb +122 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_osprofile.rb +92 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_public_ipaddress_configuration.rb +72 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_storage_profile.rb +80 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_update_vmprofile.rb +112 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vm.rb +384 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmextensions_summary.rb +70 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_ids.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_required_ids.rb +55 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vminstance_view.rb +196 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmlist_result.rb +101 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmnetwork_profile_configuration.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprofile.rb +147 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmprotection_policy.rb +60 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_vmreimage_parameters.rb +44 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_size.rb +106 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_size_list_result.rb +55 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_size_types.rb +180 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_status_code_count.rb +61 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/virtual_machine_update.rb +274 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/vmscale_set_convert_to_single_placement_group_input.rb +52 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/win_rmconfiguration.rb +56 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/win_rmlistener.rb +67 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/models/windows_configuration.rb +111 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/operations.rb +107 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/proximity_placement_groups.rb +821 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/usage_operations.rb +237 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_extension_images.rb +354 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_extensions.rb +691 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_images.rb +590 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_run_commands.rb +316 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_scale_set_extensions.rb +636 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_scale_set_rolling_upgrades.rb +490 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_scale_set_vms.rb +1957 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_scale_sets.rb +3090 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machine_sizes.rb +120 -0
- data/lib/2019-03-01/generated/azure_mgmt_compute/virtual_machines.rb +2766 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute.rb +40 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/compute_management_client.rb +133 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku.rb +250 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_capabilities.rb +59 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_capacity.rb +85 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_capacity_scale_type.rb +17 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_costs.rb +72 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_location_info.rb +91 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_restriction_info.rb +77 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_restrictions.rb +99 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_restrictions_reason_code.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_restrictions_type.rb +16 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_sku_zone_details.rb +78 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/models/resource_skus_result.rb +100 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/module_definition.rb +9 -0
- data/lib/2019-04-01/generated/azure_mgmt_compute/resource_skus.rb +217 -0
- data/lib/azure_mgmt_compute.rb +4 -0
- data/lib/profiles/latest/modules/compute_profile_module.rb +722 -668
- data/lib/version.rb +1 -1
- metadata +489 -3
@@ -0,0 +1,207 @@
|
|
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::Compute::Mgmt::V2019_03_01
|
7
|
+
#
|
8
|
+
# A service client - single point of access to the REST API.
|
9
|
+
#
|
10
|
+
class ComputeManagementClient < MsRestAzure::AzureServiceClient
|
11
|
+
include MsRestAzure
|
12
|
+
include MsRestAzure::Serialization
|
13
|
+
|
14
|
+
# @return [String] the base URI of the service.
|
15
|
+
attr_accessor :base_url
|
16
|
+
|
17
|
+
# @return Credentials needed for the client to connect to Azure.
|
18
|
+
attr_reader :credentials
|
19
|
+
|
20
|
+
# @return [String] Subscription credentials which uniquely identify
|
21
|
+
# Microsoft Azure subscription. The subscription ID forms part of the URI
|
22
|
+
# for every service call.
|
23
|
+
attr_accessor :subscription_id
|
24
|
+
|
25
|
+
# @return [String] Client Api Version.
|
26
|
+
attr_reader :api_version
|
27
|
+
|
28
|
+
# @return [String] The preferred language for the response.
|
29
|
+
attr_accessor :accept_language
|
30
|
+
|
31
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
32
|
+
# Operations. Default value is 30.
|
33
|
+
attr_accessor :long_running_operation_retry_timeout
|
34
|
+
|
35
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
36
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
37
|
+
# generated and included in each request. Default is true.
|
38
|
+
attr_accessor :generate_client_request_id
|
39
|
+
|
40
|
+
# @return [Operations] operations
|
41
|
+
attr_reader :operations
|
42
|
+
|
43
|
+
# @return [AvailabilitySets] availability_sets
|
44
|
+
attr_reader :availability_sets
|
45
|
+
|
46
|
+
# @return [ProximityPlacementGroups] proximity_placement_groups
|
47
|
+
attr_reader :proximity_placement_groups
|
48
|
+
|
49
|
+
# @return [VirtualMachineExtensionImages] virtual_machine_extension_images
|
50
|
+
attr_reader :virtual_machine_extension_images
|
51
|
+
|
52
|
+
# @return [VirtualMachineExtensions] virtual_machine_extensions
|
53
|
+
attr_reader :virtual_machine_extensions
|
54
|
+
|
55
|
+
# @return [VirtualMachineImages] virtual_machine_images
|
56
|
+
attr_reader :virtual_machine_images
|
57
|
+
|
58
|
+
# @return [UsageOperations] usage_operations
|
59
|
+
attr_reader :usage_operations
|
60
|
+
|
61
|
+
# @return [VirtualMachines] virtual_machines
|
62
|
+
attr_reader :virtual_machines
|
63
|
+
|
64
|
+
# @return [VirtualMachineSizes] virtual_machine_sizes
|
65
|
+
attr_reader :virtual_machine_sizes
|
66
|
+
|
67
|
+
# @return [Images] images
|
68
|
+
attr_reader :images
|
69
|
+
|
70
|
+
# @return [VirtualMachineScaleSets] virtual_machine_scale_sets
|
71
|
+
attr_reader :virtual_machine_scale_sets
|
72
|
+
|
73
|
+
# @return [VirtualMachineScaleSetExtensions]
|
74
|
+
# virtual_machine_scale_set_extensions
|
75
|
+
attr_reader :virtual_machine_scale_set_extensions
|
76
|
+
|
77
|
+
# @return [VirtualMachineScaleSetRollingUpgrades]
|
78
|
+
# virtual_machine_scale_set_rolling_upgrades
|
79
|
+
attr_reader :virtual_machine_scale_set_rolling_upgrades
|
80
|
+
|
81
|
+
# @return [VirtualMachineScaleSetVMs] virtual_machine_scale_set_vms
|
82
|
+
attr_reader :virtual_machine_scale_set_vms
|
83
|
+
|
84
|
+
# @return [LogAnalytics] log_analytics
|
85
|
+
attr_reader :log_analytics
|
86
|
+
|
87
|
+
# @return [VirtualMachineRunCommands] virtual_machine_run_commands
|
88
|
+
attr_reader :virtual_machine_run_commands
|
89
|
+
|
90
|
+
# @return [Galleries] galleries
|
91
|
+
attr_reader :galleries
|
92
|
+
|
93
|
+
# @return [GalleryImages] gallery_images
|
94
|
+
attr_reader :gallery_images
|
95
|
+
|
96
|
+
# @return [GalleryImageVersions] gallery_image_versions
|
97
|
+
attr_reader :gallery_image_versions
|
98
|
+
|
99
|
+
#
|
100
|
+
# Creates initializes a new instance of the ComputeManagementClient class.
|
101
|
+
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
102
|
+
# @param base_url [String] the base URI of the service.
|
103
|
+
# @param options [Array] filters to be applied to the HTTP requests.
|
104
|
+
#
|
105
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
106
|
+
super(credentials, options)
|
107
|
+
@base_url = base_url || 'https://management.azure.com'
|
108
|
+
|
109
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
110
|
+
@credentials = credentials
|
111
|
+
|
112
|
+
@operations = Operations.new(self)
|
113
|
+
@availability_sets = AvailabilitySets.new(self)
|
114
|
+
@proximity_placement_groups = ProximityPlacementGroups.new(self)
|
115
|
+
@virtual_machine_extension_images = VirtualMachineExtensionImages.new(self)
|
116
|
+
@virtual_machine_extensions = VirtualMachineExtensions.new(self)
|
117
|
+
@virtual_machine_images = VirtualMachineImages.new(self)
|
118
|
+
@usage_operations = UsageOperations.new(self)
|
119
|
+
@virtual_machines = VirtualMachines.new(self)
|
120
|
+
@virtual_machine_sizes = VirtualMachineSizes.new(self)
|
121
|
+
@images = Images.new(self)
|
122
|
+
@virtual_machine_scale_sets = VirtualMachineScaleSets.new(self)
|
123
|
+
@virtual_machine_scale_set_extensions = VirtualMachineScaleSetExtensions.new(self)
|
124
|
+
@virtual_machine_scale_set_rolling_upgrades = VirtualMachineScaleSetRollingUpgrades.new(self)
|
125
|
+
@virtual_machine_scale_set_vms = VirtualMachineScaleSetVMs.new(self)
|
126
|
+
@log_analytics = LogAnalytics.new(self)
|
127
|
+
@virtual_machine_run_commands = VirtualMachineRunCommands.new(self)
|
128
|
+
@galleries = Galleries.new(self)
|
129
|
+
@gallery_images = GalleryImages.new(self)
|
130
|
+
@gallery_image_versions = GalleryImageVersions.new(self)
|
131
|
+
@api_version = '2019-03-01'
|
132
|
+
@accept_language = 'en-US'
|
133
|
+
@long_running_operation_retry_timeout = 30
|
134
|
+
@generate_client_request_id = true
|
135
|
+
add_telemetry
|
136
|
+
end
|
137
|
+
|
138
|
+
#
|
139
|
+
# Makes a request and returns the body of the response.
|
140
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
141
|
+
# @param path [String] the path, relative to {base_url}.
|
142
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
143
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
144
|
+
# Example:
|
145
|
+
#
|
146
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
147
|
+
# path = "/path"
|
148
|
+
# options = {
|
149
|
+
# body: request_content,
|
150
|
+
# query_params: {'api-version' => '2016-02-01'}
|
151
|
+
# }
|
152
|
+
# result = @client.make_request(:put, path, options)
|
153
|
+
#
|
154
|
+
def make_request(method, path, options = {})
|
155
|
+
result = make_request_with_http_info(method, path, options)
|
156
|
+
result.body unless result.nil?
|
157
|
+
end
|
158
|
+
|
159
|
+
#
|
160
|
+
# Makes a request and returns the operation response.
|
161
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
162
|
+
# @param path [String] the path, relative to {base_url}.
|
163
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
164
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
165
|
+
#
|
166
|
+
def make_request_with_http_info(method, path, options = {})
|
167
|
+
result = make_request_async(method, path, options).value!
|
168
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
169
|
+
result
|
170
|
+
end
|
171
|
+
|
172
|
+
#
|
173
|
+
# Makes a request asynchronously.
|
174
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
175
|
+
# @param path [String] the path, relative to {base_url}.
|
176
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
177
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
178
|
+
#
|
179
|
+
def make_request_async(method, path, options = {})
|
180
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
181
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
182
|
+
|
183
|
+
request_url = options[:base_url] || @base_url
|
184
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
185
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
186
|
+
end
|
187
|
+
|
188
|
+
request_headers = @request_headers
|
189
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
190
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
191
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
192
|
+
|
193
|
+
super(request_url, method, path, options)
|
194
|
+
end
|
195
|
+
|
196
|
+
|
197
|
+
private
|
198
|
+
#
|
199
|
+
# Adds telemetry information.
|
200
|
+
#
|
201
|
+
def add_telemetry
|
202
|
+
sdk_information = 'azure_mgmt_compute'
|
203
|
+
sdk_information = "#{sdk_information}/0.18.6"
|
204
|
+
add_user_agent_information(sdk_information)
|
205
|
+
end
|
206
|
+
end
|
207
|
+
end
|
@@ -0,0 +1,810 @@
|
|
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::Compute::Mgmt::V2019_03_01
|
7
|
+
#
|
8
|
+
# Compute Client
|
9
|
+
#
|
10
|
+
class Galleries
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Galleries class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [ComputeManagementClient] reference to the ComputeManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Create or update a Shared Image Gallery.
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] The name of the resource group.
|
28
|
+
# @param gallery_name [String] The name of the Shared Image Gallery. The
|
29
|
+
# allowed characters are alphabets and numbers with dots and periods allowed in
|
30
|
+
# the middle. The maximum length is 80 characters.
|
31
|
+
# @param gallery [Gallery] Parameters supplied to the create or update Shared
|
32
|
+
# Image Gallery operation.
|
33
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
34
|
+
# will be added to the HTTP request.
|
35
|
+
#
|
36
|
+
# @return [Gallery] operation results.
|
37
|
+
#
|
38
|
+
def create_or_update(resource_group_name, gallery_name, gallery, custom_headers:nil)
|
39
|
+
response = create_or_update_async(resource_group_name, gallery_name, gallery, custom_headers:custom_headers).value!
|
40
|
+
response.body unless response.nil?
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
# @param resource_group_name [String] The name of the resource group.
|
45
|
+
# @param gallery_name [String] The name of the Shared Image Gallery. The
|
46
|
+
# allowed characters are alphabets and numbers with dots and periods allowed in
|
47
|
+
# the middle. The maximum length is 80 characters.
|
48
|
+
# @param gallery [Gallery] Parameters supplied to the create or update Shared
|
49
|
+
# Image Gallery operation.
|
50
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
51
|
+
# will be added to the HTTP request.
|
52
|
+
#
|
53
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
54
|
+
# response.
|
55
|
+
#
|
56
|
+
def create_or_update_async(resource_group_name, gallery_name, gallery, custom_headers:nil)
|
57
|
+
# Send request
|
58
|
+
promise = begin_create_or_update_async(resource_group_name, gallery_name, gallery, custom_headers:custom_headers)
|
59
|
+
|
60
|
+
promise = promise.then do |response|
|
61
|
+
# Defining deserialization method.
|
62
|
+
deserialize_method = lambda do |parsed_response|
|
63
|
+
result_mapper = Azure::Compute::Mgmt::V2019_03_01::Models::Gallery.mapper()
|
64
|
+
parsed_response = @client.deserialize(result_mapper, parsed_response)
|
65
|
+
end
|
66
|
+
|
67
|
+
# Waiting for response.
|
68
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
69
|
+
end
|
70
|
+
|
71
|
+
promise
|
72
|
+
end
|
73
|
+
|
74
|
+
#
|
75
|
+
# Retrieves information about a Shared Image Gallery.
|
76
|
+
#
|
77
|
+
# @param resource_group_name [String] The name of the resource group.
|
78
|
+
# @param gallery_name [String] The name of the Shared Image Gallery.
|
79
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
80
|
+
# will be added to the HTTP request.
|
81
|
+
#
|
82
|
+
# @return [Gallery] operation results.
|
83
|
+
#
|
84
|
+
def get(resource_group_name, gallery_name, custom_headers:nil)
|
85
|
+
response = get_async(resource_group_name, gallery_name, custom_headers:custom_headers).value!
|
86
|
+
response.body unless response.nil?
|
87
|
+
end
|
88
|
+
|
89
|
+
#
|
90
|
+
# Retrieves information about a Shared Image Gallery.
|
91
|
+
#
|
92
|
+
# @param resource_group_name [String] The name of the resource group.
|
93
|
+
# @param gallery_name [String] The name of the Shared Image Gallery.
|
94
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
95
|
+
# will be added to the HTTP request.
|
96
|
+
#
|
97
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
98
|
+
#
|
99
|
+
def get_with_http_info(resource_group_name, gallery_name, custom_headers:nil)
|
100
|
+
get_async(resource_group_name, gallery_name, custom_headers:custom_headers).value!
|
101
|
+
end
|
102
|
+
|
103
|
+
#
|
104
|
+
# Retrieves information about a Shared Image Gallery.
|
105
|
+
#
|
106
|
+
# @param resource_group_name [String] The name of the resource group.
|
107
|
+
# @param gallery_name [String] The name of the Shared Image Gallery.
|
108
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
109
|
+
# to the HTTP request.
|
110
|
+
#
|
111
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
112
|
+
#
|
113
|
+
def get_async(resource_group_name, gallery_name, custom_headers:nil)
|
114
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
115
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
116
|
+
fail ArgumentError, 'gallery_name is nil' if gallery_name.nil?
|
117
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
118
|
+
|
119
|
+
|
120
|
+
request_headers = {}
|
121
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
122
|
+
|
123
|
+
# Set Headers
|
124
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
125
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
126
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}'
|
127
|
+
|
128
|
+
request_url = @base_url || @client.base_url
|
129
|
+
|
130
|
+
options = {
|
131
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
132
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'galleryName' => gallery_name},
|
133
|
+
query_params: {'api-version' => @client.api_version},
|
134
|
+
headers: request_headers.merge(custom_headers || {}),
|
135
|
+
base_url: request_url
|
136
|
+
}
|
137
|
+
promise = @client.make_request_async(:get, path_template, options)
|
138
|
+
|
139
|
+
promise = promise.then do |result|
|
140
|
+
http_response = result.response
|
141
|
+
status_code = http_response.status
|
142
|
+
response_content = http_response.body
|
143
|
+
unless status_code == 200
|
144
|
+
error_model = JSON.load(response_content)
|
145
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
146
|
+
end
|
147
|
+
|
148
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
149
|
+
# Deserialize Response
|
150
|
+
if status_code == 200
|
151
|
+
begin
|
152
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
153
|
+
result_mapper = Azure::Compute::Mgmt::V2019_03_01::Models::Gallery.mapper()
|
154
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
155
|
+
rescue Exception => e
|
156
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
result
|
161
|
+
end
|
162
|
+
|
163
|
+
promise.execute
|
164
|
+
end
|
165
|
+
|
166
|
+
#
|
167
|
+
# Delete a Shared Image Gallery.
|
168
|
+
#
|
169
|
+
# @param resource_group_name [String] The name of the resource group.
|
170
|
+
# @param gallery_name [String] The name of the Shared Image Gallery to be
|
171
|
+
# deleted.
|
172
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
173
|
+
# will be added to the HTTP request.
|
174
|
+
#
|
175
|
+
def delete(resource_group_name, gallery_name, custom_headers:nil)
|
176
|
+
response = delete_async(resource_group_name, gallery_name, custom_headers:custom_headers).value!
|
177
|
+
nil
|
178
|
+
end
|
179
|
+
|
180
|
+
#
|
181
|
+
# @param resource_group_name [String] The name of the resource group.
|
182
|
+
# @param gallery_name [String] The name of the Shared Image Gallery to be
|
183
|
+
# deleted.
|
184
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
185
|
+
# will be added to the HTTP request.
|
186
|
+
#
|
187
|
+
# @return [Concurrent::Promise] promise which provides async access to http
|
188
|
+
# response.
|
189
|
+
#
|
190
|
+
def delete_async(resource_group_name, gallery_name, custom_headers:nil)
|
191
|
+
# Send request
|
192
|
+
promise = begin_delete_async(resource_group_name, gallery_name, custom_headers:custom_headers)
|
193
|
+
|
194
|
+
promise = promise.then do |response|
|
195
|
+
# Defining deserialization method.
|
196
|
+
deserialize_method = lambda do |parsed_response|
|
197
|
+
end
|
198
|
+
|
199
|
+
# Waiting for response.
|
200
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
201
|
+
end
|
202
|
+
|
203
|
+
promise
|
204
|
+
end
|
205
|
+
|
206
|
+
#
|
207
|
+
# List galleries under a resource group.
|
208
|
+
#
|
209
|
+
# @param resource_group_name [String] The name of the resource group.
|
210
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
211
|
+
# will be added to the HTTP request.
|
212
|
+
#
|
213
|
+
# @return [Array<Gallery>] operation results.
|
214
|
+
#
|
215
|
+
def list_by_resource_group(resource_group_name, custom_headers:nil)
|
216
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers:custom_headers)
|
217
|
+
first_page.get_all_items
|
218
|
+
end
|
219
|
+
|
220
|
+
#
|
221
|
+
# List galleries under a resource group.
|
222
|
+
#
|
223
|
+
# @param resource_group_name [String] The name of the resource group.
|
224
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
225
|
+
# will be added to the HTTP request.
|
226
|
+
#
|
227
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
228
|
+
#
|
229
|
+
def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
|
230
|
+
list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
231
|
+
end
|
232
|
+
|
233
|
+
#
|
234
|
+
# List galleries under a resource group.
|
235
|
+
#
|
236
|
+
# @param resource_group_name [String] The name of the resource group.
|
237
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
238
|
+
# to the HTTP request.
|
239
|
+
#
|
240
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
241
|
+
#
|
242
|
+
def list_by_resource_group_async(resource_group_name, custom_headers:nil)
|
243
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
244
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
245
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
246
|
+
|
247
|
+
|
248
|
+
request_headers = {}
|
249
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
250
|
+
|
251
|
+
# Set Headers
|
252
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
253
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
254
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries'
|
255
|
+
|
256
|
+
request_url = @base_url || @client.base_url
|
257
|
+
|
258
|
+
options = {
|
259
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
260
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name},
|
261
|
+
query_params: {'api-version' => @client.api_version},
|
262
|
+
headers: request_headers.merge(custom_headers || {}),
|
263
|
+
base_url: request_url
|
264
|
+
}
|
265
|
+
promise = @client.make_request_async(:get, path_template, options)
|
266
|
+
|
267
|
+
promise = promise.then do |result|
|
268
|
+
http_response = result.response
|
269
|
+
status_code = http_response.status
|
270
|
+
response_content = http_response.body
|
271
|
+
unless status_code == 200
|
272
|
+
error_model = JSON.load(response_content)
|
273
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
274
|
+
end
|
275
|
+
|
276
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
277
|
+
# Deserialize Response
|
278
|
+
if status_code == 200
|
279
|
+
begin
|
280
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
281
|
+
result_mapper = Azure::Compute::Mgmt::V2019_03_01::Models::GalleryList.mapper()
|
282
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
283
|
+
rescue Exception => e
|
284
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
285
|
+
end
|
286
|
+
end
|
287
|
+
|
288
|
+
result
|
289
|
+
end
|
290
|
+
|
291
|
+
promise.execute
|
292
|
+
end
|
293
|
+
|
294
|
+
#
|
295
|
+
# List galleries under a subscription.
|
296
|
+
#
|
297
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
298
|
+
# will be added to the HTTP request.
|
299
|
+
#
|
300
|
+
# @return [Array<Gallery>] operation results.
|
301
|
+
#
|
302
|
+
def list(custom_headers:nil)
|
303
|
+
first_page = list_as_lazy(custom_headers:custom_headers)
|
304
|
+
first_page.get_all_items
|
305
|
+
end
|
306
|
+
|
307
|
+
#
|
308
|
+
# List galleries under a subscription.
|
309
|
+
#
|
310
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
311
|
+
# will be added to the HTTP request.
|
312
|
+
#
|
313
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
314
|
+
#
|
315
|
+
def list_with_http_info(custom_headers:nil)
|
316
|
+
list_async(custom_headers:custom_headers).value!
|
317
|
+
end
|
318
|
+
|
319
|
+
#
|
320
|
+
# List galleries under a subscription.
|
321
|
+
#
|
322
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
323
|
+
# to the HTTP request.
|
324
|
+
#
|
325
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
326
|
+
#
|
327
|
+
def list_async(custom_headers:nil)
|
328
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
329
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
330
|
+
|
331
|
+
|
332
|
+
request_headers = {}
|
333
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
334
|
+
|
335
|
+
# Set Headers
|
336
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
337
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
338
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Compute/galleries'
|
339
|
+
|
340
|
+
request_url = @base_url || @client.base_url
|
341
|
+
|
342
|
+
options = {
|
343
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
344
|
+
path_params: {'subscriptionId' => @client.subscription_id},
|
345
|
+
query_params: {'api-version' => @client.api_version},
|
346
|
+
headers: request_headers.merge(custom_headers || {}),
|
347
|
+
base_url: request_url
|
348
|
+
}
|
349
|
+
promise = @client.make_request_async(:get, path_template, options)
|
350
|
+
|
351
|
+
promise = promise.then do |result|
|
352
|
+
http_response = result.response
|
353
|
+
status_code = http_response.status
|
354
|
+
response_content = http_response.body
|
355
|
+
unless status_code == 200
|
356
|
+
error_model = JSON.load(response_content)
|
357
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
358
|
+
end
|
359
|
+
|
360
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
361
|
+
# Deserialize Response
|
362
|
+
if status_code == 200
|
363
|
+
begin
|
364
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
365
|
+
result_mapper = Azure::Compute::Mgmt::V2019_03_01::Models::GalleryList.mapper()
|
366
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
367
|
+
rescue Exception => e
|
368
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
369
|
+
end
|
370
|
+
end
|
371
|
+
|
372
|
+
result
|
373
|
+
end
|
374
|
+
|
375
|
+
promise.execute
|
376
|
+
end
|
377
|
+
|
378
|
+
#
|
379
|
+
# Create or update a Shared Image Gallery.
|
380
|
+
#
|
381
|
+
# @param resource_group_name [String] The name of the resource group.
|
382
|
+
# @param gallery_name [String] The name of the Shared Image Gallery. The
|
383
|
+
# allowed characters are alphabets and numbers with dots and periods allowed in
|
384
|
+
# the middle. The maximum length is 80 characters.
|
385
|
+
# @param gallery [Gallery] Parameters supplied to the create or update Shared
|
386
|
+
# Image Gallery operation.
|
387
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
388
|
+
# will be added to the HTTP request.
|
389
|
+
#
|
390
|
+
# @return [Gallery] operation results.
|
391
|
+
#
|
392
|
+
def begin_create_or_update(resource_group_name, gallery_name, gallery, custom_headers:nil)
|
393
|
+
response = begin_create_or_update_async(resource_group_name, gallery_name, gallery, custom_headers:custom_headers).value!
|
394
|
+
response.body unless response.nil?
|
395
|
+
end
|
396
|
+
|
397
|
+
#
|
398
|
+
# Create or update a Shared Image Gallery.
|
399
|
+
#
|
400
|
+
# @param resource_group_name [String] The name of the resource group.
|
401
|
+
# @param gallery_name [String] The name of the Shared Image Gallery. The
|
402
|
+
# allowed characters are alphabets and numbers with dots and periods allowed in
|
403
|
+
# the middle. The maximum length is 80 characters.
|
404
|
+
# @param gallery [Gallery] Parameters supplied to the create or update Shared
|
405
|
+
# Image Gallery operation.
|
406
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
407
|
+
# will be added to the HTTP request.
|
408
|
+
#
|
409
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
410
|
+
#
|
411
|
+
def begin_create_or_update_with_http_info(resource_group_name, gallery_name, gallery, custom_headers:nil)
|
412
|
+
begin_create_or_update_async(resource_group_name, gallery_name, gallery, custom_headers:custom_headers).value!
|
413
|
+
end
|
414
|
+
|
415
|
+
#
|
416
|
+
# Create or update a Shared Image Gallery.
|
417
|
+
#
|
418
|
+
# @param resource_group_name [String] The name of the resource group.
|
419
|
+
# @param gallery_name [String] The name of the Shared Image Gallery. The
|
420
|
+
# allowed characters are alphabets and numbers with dots and periods allowed in
|
421
|
+
# the middle. The maximum length is 80 characters.
|
422
|
+
# @param gallery [Gallery] Parameters supplied to the create or update Shared
|
423
|
+
# Image Gallery operation.
|
424
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
425
|
+
# to the HTTP request.
|
426
|
+
#
|
427
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
428
|
+
#
|
429
|
+
def begin_create_or_update_async(resource_group_name, gallery_name, gallery, custom_headers:nil)
|
430
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
431
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
432
|
+
fail ArgumentError, 'gallery_name is nil' if gallery_name.nil?
|
433
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
434
|
+
fail ArgumentError, 'gallery is nil' if gallery.nil?
|
435
|
+
|
436
|
+
|
437
|
+
request_headers = {}
|
438
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
439
|
+
|
440
|
+
# Set Headers
|
441
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
442
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
443
|
+
|
444
|
+
# Serialize Request
|
445
|
+
request_mapper = Azure::Compute::Mgmt::V2019_03_01::Models::Gallery.mapper()
|
446
|
+
request_content = @client.serialize(request_mapper, gallery)
|
447
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
448
|
+
|
449
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}'
|
450
|
+
|
451
|
+
request_url = @base_url || @client.base_url
|
452
|
+
|
453
|
+
options = {
|
454
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
455
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'galleryName' => gallery_name},
|
456
|
+
query_params: {'api-version' => @client.api_version},
|
457
|
+
body: request_content,
|
458
|
+
headers: request_headers.merge(custom_headers || {}),
|
459
|
+
base_url: request_url
|
460
|
+
}
|
461
|
+
promise = @client.make_request_async(:put, path_template, options)
|
462
|
+
|
463
|
+
promise = promise.then do |result|
|
464
|
+
http_response = result.response
|
465
|
+
status_code = http_response.status
|
466
|
+
response_content = http_response.body
|
467
|
+
unless status_code == 200 || status_code == 201 || status_code == 202
|
468
|
+
error_model = JSON.load(response_content)
|
469
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
470
|
+
end
|
471
|
+
|
472
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
473
|
+
# Deserialize Response
|
474
|
+
if status_code == 200
|
475
|
+
begin
|
476
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
477
|
+
result_mapper = Azure::Compute::Mgmt::V2019_03_01::Models::Gallery.mapper()
|
478
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
479
|
+
rescue Exception => e
|
480
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
481
|
+
end
|
482
|
+
end
|
483
|
+
# Deserialize Response
|
484
|
+
if status_code == 201
|
485
|
+
begin
|
486
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
487
|
+
result_mapper = Azure::Compute::Mgmt::V2019_03_01::Models::Gallery.mapper()
|
488
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
489
|
+
rescue Exception => e
|
490
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
491
|
+
end
|
492
|
+
end
|
493
|
+
# Deserialize Response
|
494
|
+
if status_code == 202
|
495
|
+
begin
|
496
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
497
|
+
result_mapper = Azure::Compute::Mgmt::V2019_03_01::Models::Gallery.mapper()
|
498
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
499
|
+
rescue Exception => e
|
500
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
501
|
+
end
|
502
|
+
end
|
503
|
+
|
504
|
+
result
|
505
|
+
end
|
506
|
+
|
507
|
+
promise.execute
|
508
|
+
end
|
509
|
+
|
510
|
+
#
|
511
|
+
# Delete a Shared Image Gallery.
|
512
|
+
#
|
513
|
+
# @param resource_group_name [String] The name of the resource group.
|
514
|
+
# @param gallery_name [String] The name of the Shared Image Gallery to be
|
515
|
+
# deleted.
|
516
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
517
|
+
# will be added to the HTTP request.
|
518
|
+
#
|
519
|
+
#
|
520
|
+
def begin_delete(resource_group_name, gallery_name, custom_headers:nil)
|
521
|
+
response = begin_delete_async(resource_group_name, gallery_name, custom_headers:custom_headers).value!
|
522
|
+
nil
|
523
|
+
end
|
524
|
+
|
525
|
+
#
|
526
|
+
# Delete a Shared Image Gallery.
|
527
|
+
#
|
528
|
+
# @param resource_group_name [String] The name of the resource group.
|
529
|
+
# @param gallery_name [String] The name of the Shared Image Gallery to be
|
530
|
+
# deleted.
|
531
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
532
|
+
# will be added to the HTTP request.
|
533
|
+
#
|
534
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
535
|
+
#
|
536
|
+
def begin_delete_with_http_info(resource_group_name, gallery_name, custom_headers:nil)
|
537
|
+
begin_delete_async(resource_group_name, gallery_name, custom_headers:custom_headers).value!
|
538
|
+
end
|
539
|
+
|
540
|
+
#
|
541
|
+
# Delete a Shared Image Gallery.
|
542
|
+
#
|
543
|
+
# @param resource_group_name [String] The name of the resource group.
|
544
|
+
# @param gallery_name [String] The name of the Shared Image Gallery to be
|
545
|
+
# deleted.
|
546
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
547
|
+
# to the HTTP request.
|
548
|
+
#
|
549
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
550
|
+
#
|
551
|
+
def begin_delete_async(resource_group_name, gallery_name, custom_headers:nil)
|
552
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
553
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
554
|
+
fail ArgumentError, 'gallery_name is nil' if gallery_name.nil?
|
555
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
556
|
+
|
557
|
+
|
558
|
+
request_headers = {}
|
559
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
560
|
+
|
561
|
+
# Set Headers
|
562
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
563
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
564
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}'
|
565
|
+
|
566
|
+
request_url = @base_url || @client.base_url
|
567
|
+
|
568
|
+
options = {
|
569
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
570
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'galleryName' => gallery_name},
|
571
|
+
query_params: {'api-version' => @client.api_version},
|
572
|
+
headers: request_headers.merge(custom_headers || {}),
|
573
|
+
base_url: request_url
|
574
|
+
}
|
575
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
576
|
+
|
577
|
+
promise = promise.then do |result|
|
578
|
+
http_response = result.response
|
579
|
+
status_code = http_response.status
|
580
|
+
response_content = http_response.body
|
581
|
+
unless status_code == 200 || status_code == 202 || status_code == 204
|
582
|
+
error_model = JSON.load(response_content)
|
583
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
584
|
+
end
|
585
|
+
|
586
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
587
|
+
|
588
|
+
result
|
589
|
+
end
|
590
|
+
|
591
|
+
promise.execute
|
592
|
+
end
|
593
|
+
|
594
|
+
#
|
595
|
+
# List galleries under a resource group.
|
596
|
+
#
|
597
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
598
|
+
# to List operation.
|
599
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
600
|
+
# will be added to the HTTP request.
|
601
|
+
#
|
602
|
+
# @return [GalleryList] operation results.
|
603
|
+
#
|
604
|
+
def list_by_resource_group_next(next_page_link, custom_headers:nil)
|
605
|
+
response = list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
606
|
+
response.body unless response.nil?
|
607
|
+
end
|
608
|
+
|
609
|
+
#
|
610
|
+
# List galleries under a resource group.
|
611
|
+
#
|
612
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
613
|
+
# to List operation.
|
614
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
615
|
+
# will be added to the HTTP request.
|
616
|
+
#
|
617
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
618
|
+
#
|
619
|
+
def list_by_resource_group_next_with_http_info(next_page_link, custom_headers:nil)
|
620
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers).value!
|
621
|
+
end
|
622
|
+
|
623
|
+
#
|
624
|
+
# List galleries under a resource group.
|
625
|
+
#
|
626
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
627
|
+
# to List operation.
|
628
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
629
|
+
# to the HTTP request.
|
630
|
+
#
|
631
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
632
|
+
#
|
633
|
+
def list_by_resource_group_next_async(next_page_link, custom_headers:nil)
|
634
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
635
|
+
|
636
|
+
|
637
|
+
request_headers = {}
|
638
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
639
|
+
|
640
|
+
# Set Headers
|
641
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
642
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
643
|
+
path_template = '{nextLink}'
|
644
|
+
|
645
|
+
request_url = @base_url || @client.base_url
|
646
|
+
|
647
|
+
options = {
|
648
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
649
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
650
|
+
headers: request_headers.merge(custom_headers || {}),
|
651
|
+
base_url: request_url
|
652
|
+
}
|
653
|
+
promise = @client.make_request_async(:get, path_template, options)
|
654
|
+
|
655
|
+
promise = promise.then do |result|
|
656
|
+
http_response = result.response
|
657
|
+
status_code = http_response.status
|
658
|
+
response_content = http_response.body
|
659
|
+
unless status_code == 200
|
660
|
+
error_model = JSON.load(response_content)
|
661
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
662
|
+
end
|
663
|
+
|
664
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
665
|
+
# Deserialize Response
|
666
|
+
if status_code == 200
|
667
|
+
begin
|
668
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
669
|
+
result_mapper = Azure::Compute::Mgmt::V2019_03_01::Models::GalleryList.mapper()
|
670
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
671
|
+
rescue Exception => e
|
672
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
673
|
+
end
|
674
|
+
end
|
675
|
+
|
676
|
+
result
|
677
|
+
end
|
678
|
+
|
679
|
+
promise.execute
|
680
|
+
end
|
681
|
+
|
682
|
+
#
|
683
|
+
# List galleries under a subscription.
|
684
|
+
#
|
685
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
686
|
+
# to List operation.
|
687
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
688
|
+
# will be added to the HTTP request.
|
689
|
+
#
|
690
|
+
# @return [GalleryList] operation results.
|
691
|
+
#
|
692
|
+
def list_next(next_page_link, custom_headers:nil)
|
693
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
694
|
+
response.body unless response.nil?
|
695
|
+
end
|
696
|
+
|
697
|
+
#
|
698
|
+
# List galleries under a subscription.
|
699
|
+
#
|
700
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
701
|
+
# to List operation.
|
702
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
703
|
+
# will be added to the HTTP request.
|
704
|
+
#
|
705
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
706
|
+
#
|
707
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
708
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
709
|
+
end
|
710
|
+
|
711
|
+
#
|
712
|
+
# List galleries under a subscription.
|
713
|
+
#
|
714
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
715
|
+
# to List operation.
|
716
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
717
|
+
# to the HTTP request.
|
718
|
+
#
|
719
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
720
|
+
#
|
721
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
722
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
723
|
+
|
724
|
+
|
725
|
+
request_headers = {}
|
726
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
727
|
+
|
728
|
+
# Set Headers
|
729
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
730
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
731
|
+
path_template = '{nextLink}'
|
732
|
+
|
733
|
+
request_url = @base_url || @client.base_url
|
734
|
+
|
735
|
+
options = {
|
736
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
737
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
738
|
+
headers: request_headers.merge(custom_headers || {}),
|
739
|
+
base_url: request_url
|
740
|
+
}
|
741
|
+
promise = @client.make_request_async(:get, path_template, options)
|
742
|
+
|
743
|
+
promise = promise.then do |result|
|
744
|
+
http_response = result.response
|
745
|
+
status_code = http_response.status
|
746
|
+
response_content = http_response.body
|
747
|
+
unless status_code == 200
|
748
|
+
error_model = JSON.load(response_content)
|
749
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
750
|
+
end
|
751
|
+
|
752
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
753
|
+
# Deserialize Response
|
754
|
+
if status_code == 200
|
755
|
+
begin
|
756
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
757
|
+
result_mapper = Azure::Compute::Mgmt::V2019_03_01::Models::GalleryList.mapper()
|
758
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
759
|
+
rescue Exception => e
|
760
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
761
|
+
end
|
762
|
+
end
|
763
|
+
|
764
|
+
result
|
765
|
+
end
|
766
|
+
|
767
|
+
promise.execute
|
768
|
+
end
|
769
|
+
|
770
|
+
#
|
771
|
+
# List galleries under a resource group.
|
772
|
+
#
|
773
|
+
# @param resource_group_name [String] The name of the resource group.
|
774
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
775
|
+
# will be added to the HTTP request.
|
776
|
+
#
|
777
|
+
# @return [GalleryList] which provide lazy access to pages of the response.
|
778
|
+
#
|
779
|
+
def list_by_resource_group_as_lazy(resource_group_name, custom_headers:nil)
|
780
|
+
response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
|
781
|
+
unless response.nil?
|
782
|
+
page = response.body
|
783
|
+
page.next_method = Proc.new do |next_page_link|
|
784
|
+
list_by_resource_group_next_async(next_page_link, custom_headers:custom_headers)
|
785
|
+
end
|
786
|
+
page
|
787
|
+
end
|
788
|
+
end
|
789
|
+
|
790
|
+
#
|
791
|
+
# List galleries under a subscription.
|
792
|
+
#
|
793
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
794
|
+
# will be added to the HTTP request.
|
795
|
+
#
|
796
|
+
# @return [GalleryList] which provide lazy access to pages of the response.
|
797
|
+
#
|
798
|
+
def list_as_lazy(custom_headers:nil)
|
799
|
+
response = list_async(custom_headers:custom_headers).value!
|
800
|
+
unless response.nil?
|
801
|
+
page = response.body
|
802
|
+
page.next_method = Proc.new do |next_page_link|
|
803
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
804
|
+
end
|
805
|
+
page
|
806
|
+
end
|
807
|
+
end
|
808
|
+
|
809
|
+
end
|
810
|
+
end
|