azure_mgmt_devtestlabs 0.17.1 → 0.17.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/dev_test_labs_client.rb +1 -1
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options.rb +1 -1
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/disk.rb +1 -1
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_response.rb +1 -1
- data/lib/2016-05-15/generated/azure_mgmt_devtestlabs/notification_channels.rb +16 -16
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs.rb +241 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/arm_templates.rb +369 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/artifact_sources.rb +673 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/artifacts.rb +486 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/costs.rb +244 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/custom_images.rb +759 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/dev_test_labs_client.rb +227 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/disks.rb +1090 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/environments.rb +793 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/formulas.rb +727 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/gallery_images.rb +259 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/global_schedules.rb +1131 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/labs.rb +1820 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/applicable_schedule.rb +113 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/applicable_schedule_fragment.rb +78 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/apply_artifacts_request.rb +56 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template.rb +194 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_info.rb +57 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_list.rb +98 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_parameter_properties.rb +57 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/arm_template_parameter_properties_fragment.rb +57 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact.rb +182 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties.rb +70 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties_fragment.rb +71 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_install_properties.rb +123 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_install_properties_fragment.rb +123 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_list.rb +98 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties.rb +57 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties_fragment.rb +57 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_source.rb +215 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_source_fragment.rb +144 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/artifact_source_list.rb +98 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/attach_disk_properties.rb +47 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options.rb +69 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options_fragment.rb +69 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/bulk_creation_parameters.rb +46 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/bulk_creation_parameters_fragment.rb +46 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_data_disk.rb +80 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_data_disk_fragment.rb +80 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status.rb +68 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status_fragment.rb +68 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_properties.rb +141 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/compute_vm_properties_fragment.rb +141 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb +97 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/cost_threshold_status.rb +16 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/cost_type.rb +17 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image.rb +238 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_fragment.rb +167 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_list.rb +98 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_os_type.rb +17 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom.rb +69 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom_fragment.rb +69 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_plan.rb +70 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_plan_fragment.rb +70 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm.rb +70 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm_fragment.rb +70 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_properties.rb +73 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_properties_fragment.rb +73 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_storage_type_info.rb +58 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/data_disk_storage_type_info_fragment.rb +58 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/day_details.rb +46 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/day_details_fragment.rb +46 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/detach_data_disk_properties.rb +47 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/detach_disk_properties.rb +47 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/disk.rb +204 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/disk_fragment.rb +133 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/disk_list.rb +98 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/dtl_environment.rb +160 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/dtl_environment_fragment.rb +76 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/dtl_environment_list.rb +98 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/enable_status.rb +16 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/environment_deployment_properties.rb +67 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/environment_deployment_properties_fragment.rb +67 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/environment_permission.rb +16 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_properties.rb +79 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_request.rb +55 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/evaluate_policies_response.rb +55 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/event.rb +48 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/event_fragment.rb +48 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/export_resource_usage_parameters.rb +60 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/external_subnet.rb +57 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/external_subnet_fragment.rb +57 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/file_upload_options.rb +16 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula.rb +182 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_fragment.rb +111 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_list.rb +98 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm.rb +47 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm_fragment.rb +47 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image.rb +178 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image_list.rb +98 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image_reference.rb +90 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/gallery_image_reference_fragment.rb +90 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/generate_arm_template_request.rb +90 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_parameter.rb +46 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_response.rb +46 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/host_caching_options.rb +17 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/hour_details.rb +46 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/hour_details_fragment.rb +46 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/http_status_code.rb +56 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/identity_properties.rb +79 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/import_lab_virtual_machine_request.rb +59 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb +73 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule_fragment.rb +73 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab.rb +363 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_announcement_properties.rb +117 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_announcement_properties_fragment.rb +93 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_cost.rb +224 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_cost_details_properties.rb +69 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_cost_summary_properties.rb +46 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_fragment.rb +181 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_list.rb +98 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_resource_cost_properties.rb +136 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_support_properties.rb +59 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_support_properties_fragment.rb +59 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_vhd.rb +46 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_vhd_list.rb +98 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb +526 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_creation_parameter.rb +478 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_creation_parameter_fragment.rb +480 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_fragment.rb +441 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_list.rb +98 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/linux_os_info.rb +49 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/linux_os_info_fragment.rb +49 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/linux_os_state.rb +17 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/network_interface_properties.rb +139 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/network_interface_properties_fragment.rb +139 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel.rb +189 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel_event_type.rb +16 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel_fragment.rb +118 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_channel_list.rb +98 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_settings.rb +96 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notification_settings_fragment.rb +96 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/notify_parameters.rb +58 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_error.rb +57 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_metadata.rb +59 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_metadata_display.rb +80 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/operation_result.rb +82 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/parameter_info.rb +57 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/parameters_value_file_info.rb +57 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/percentage_cost_threshold_properties.rb +46 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy.rb +197 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_evaluator_type.rb +16 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_fact_name.rb +24 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_fragment.rb +126 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_list.rb +98 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_set_result.rb +67 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_status.rb +16 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/policy_violation.rb +57 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/port.rb +58 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/port_fragment.rb +58 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/premium_data_disk.rb +16 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/provider_operation_result.rb +101 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/rdp_connection.rb +46 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/reporting_cycle_type.rb +16 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/resize_lab_virtual_machine_properties.rb +46 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/resource.rb +110 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/retarget_schedule_properties.rb +59 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule.rb +219 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_creation_parameter.rb +173 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_creation_parameter_fragment.rb +173 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_fragment.rb +148 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/schedule_list.rb +98 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/secret.rb +121 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/secret_fragment.rb +62 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/secret_list.rb +98 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_fabric.rb +147 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_fabric_fragment.rb +74 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_fabric_list.rb +98 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_runner.rb +98 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/service_runner_list.rb +98 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration.rb +56 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration_fragment.rb +57 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/shutdown_notification_content.rb +180 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/source_control_type.rb +16 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/storage_type.rb +16 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet.rb +70 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_fragment.rb +70 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_override.rb +107 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_override_fragment.rb +107 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration.rb +56 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment.rb +57 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb +112 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/target_cost_status.rb +16 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/transport_protocol.rb +16 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/update_resource.rb +54 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/usage_permission_type.rb +17 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user.rb +146 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_fragment.rb +75 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_identity.rb +96 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_identity_fragment.rb +96 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_list.rb +98 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_secret_store.rb +57 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/user_secret_store_fragment.rb +57 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_machine_creation_source.rb +16 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_network.rb +207 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_network_fragment.rb +116 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/virtual_network_list.rb +98 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/week_details.rb +66 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/week_details_fragment.rb +66 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/windows_os_info.rb +48 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/windows_os_info_fragment.rb +48 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/windows_os_state.rb +17 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/module_definition.rb +9 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/notification_channels.rb +769 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/operations.rb +117 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/policies.rb +690 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/policy_sets.rb +135 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/provider_operations.rb +215 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/schedules.rb +1000 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/secrets.rb +742 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/service_fabric_schedules.rb +848 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/service_fabrics.rb +1147 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/service_runners.rb +552 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/users.rb +759 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/virtual_machine_schedules.rb +821 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/virtual_machines.rb +2431 -0
- data/lib/2018-09-15/generated/azure_mgmt_devtestlabs/virtual_networks.rb +760 -0
- data/lib/azure_mgmt_devtestlabs.rb +1 -0
- data/lib/profiles/latest/modules/devtestlabs_profile_module.rb +566 -430
- data/lib/version.rb +1 -1
- metadata +219 -2
@@ -0,0 +1,673 @@
|
|
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::DevTestLabs::Mgmt::V2018_09_15
|
7
|
+
#
|
8
|
+
# The DevTest Labs Client.
|
9
|
+
#
|
10
|
+
class ArtifactSources
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the ArtifactSources class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [DevTestLabsClient] reference to the DevTestLabsClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# List artifact sources in a given lab.
|
26
|
+
#
|
27
|
+
# @param resource_group_name [String] The name of the resource group.
|
28
|
+
# @param lab_name [String] The name of the lab.
|
29
|
+
# @param expand [String] Specify the $expand query. Example:
|
30
|
+
# 'properties($select=displayName)'
|
31
|
+
# @param filter [String] The filter to apply to the operation. Example:
|
32
|
+
# '$filter=contains(name,'myName')
|
33
|
+
# @param top [Integer] The maximum number of resources to return from the
|
34
|
+
# operation. Example: '$top=10'
|
35
|
+
# @param orderby [String] The ordering expression for the results, using OData
|
36
|
+
# notation. Example: '$orderby=name desc'
|
37
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
38
|
+
# will be added to the HTTP request.
|
39
|
+
#
|
40
|
+
# @return [Array<ArtifactSource>] operation results.
|
41
|
+
#
|
42
|
+
def list(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
43
|
+
first_page = list_as_lazy(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers)
|
44
|
+
first_page.get_all_items
|
45
|
+
end
|
46
|
+
|
47
|
+
#
|
48
|
+
# List artifact sources in a given lab.
|
49
|
+
#
|
50
|
+
# @param resource_group_name [String] The name of the resource group.
|
51
|
+
# @param lab_name [String] The name of the lab.
|
52
|
+
# @param expand [String] Specify the $expand query. Example:
|
53
|
+
# 'properties($select=displayName)'
|
54
|
+
# @param filter [String] The filter to apply to the operation. Example:
|
55
|
+
# '$filter=contains(name,'myName')
|
56
|
+
# @param top [Integer] The maximum number of resources to return from the
|
57
|
+
# operation. Example: '$top=10'
|
58
|
+
# @param orderby [String] The ordering expression for the results, using OData
|
59
|
+
# notation. Example: '$orderby=name desc'
|
60
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
61
|
+
# will be added to the HTTP request.
|
62
|
+
#
|
63
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
64
|
+
#
|
65
|
+
def list_with_http_info(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
66
|
+
list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
|
67
|
+
end
|
68
|
+
|
69
|
+
#
|
70
|
+
# List artifact sources in a given lab.
|
71
|
+
#
|
72
|
+
# @param resource_group_name [String] The name of the resource group.
|
73
|
+
# @param lab_name [String] The name of the lab.
|
74
|
+
# @param expand [String] Specify the $expand query. Example:
|
75
|
+
# 'properties($select=displayName)'
|
76
|
+
# @param filter [String] The filter to apply to the operation. Example:
|
77
|
+
# '$filter=contains(name,'myName')
|
78
|
+
# @param top [Integer] The maximum number of resources to return from the
|
79
|
+
# operation. Example: '$top=10'
|
80
|
+
# @param orderby [String] The ordering expression for the results, using OData
|
81
|
+
# notation. Example: '$orderby=name desc'
|
82
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
83
|
+
# to the HTTP request.
|
84
|
+
#
|
85
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
86
|
+
#
|
87
|
+
def list_async(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
88
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
89
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
90
|
+
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
91
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
92
|
+
|
93
|
+
|
94
|
+
request_headers = {}
|
95
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
96
|
+
|
97
|
+
# Set Headers
|
98
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
99
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
100
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources'
|
101
|
+
|
102
|
+
request_url = @base_url || @client.base_url
|
103
|
+
|
104
|
+
options = {
|
105
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
106
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name},
|
107
|
+
query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'api-version' => @client.api_version},
|
108
|
+
headers: request_headers.merge(custom_headers || {}),
|
109
|
+
base_url: request_url
|
110
|
+
}
|
111
|
+
promise = @client.make_request_async(:get, path_template, options)
|
112
|
+
|
113
|
+
promise = promise.then do |result|
|
114
|
+
http_response = result.response
|
115
|
+
status_code = http_response.status
|
116
|
+
response_content = http_response.body
|
117
|
+
unless status_code == 200
|
118
|
+
error_model = JSON.load(response_content)
|
119
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
120
|
+
end
|
121
|
+
|
122
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
123
|
+
# Deserialize Response
|
124
|
+
if status_code == 200
|
125
|
+
begin
|
126
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
127
|
+
result_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ArtifactSourceList.mapper()
|
128
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
129
|
+
rescue Exception => e
|
130
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
result
|
135
|
+
end
|
136
|
+
|
137
|
+
promise.execute
|
138
|
+
end
|
139
|
+
|
140
|
+
#
|
141
|
+
# Get artifact source.
|
142
|
+
#
|
143
|
+
# @param resource_group_name [String] The name of the resource group.
|
144
|
+
# @param lab_name [String] The name of the lab.
|
145
|
+
# @param name [String] The name of the artifact source.
|
146
|
+
# @param expand [String] Specify the $expand query. Example:
|
147
|
+
# 'properties($select=displayName)'
|
148
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
149
|
+
# will be added to the HTTP request.
|
150
|
+
#
|
151
|
+
# @return [ArtifactSource] operation results.
|
152
|
+
#
|
153
|
+
def get(resource_group_name, lab_name, name, expand:nil, custom_headers:nil)
|
154
|
+
response = get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value!
|
155
|
+
response.body unless response.nil?
|
156
|
+
end
|
157
|
+
|
158
|
+
#
|
159
|
+
# Get artifact source.
|
160
|
+
#
|
161
|
+
# @param resource_group_name [String] The name of the resource group.
|
162
|
+
# @param lab_name [String] The name of the lab.
|
163
|
+
# @param name [String] The name of the artifact source.
|
164
|
+
# @param expand [String] Specify the $expand query. Example:
|
165
|
+
# 'properties($select=displayName)'
|
166
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
167
|
+
# will be added to the HTTP request.
|
168
|
+
#
|
169
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
170
|
+
#
|
171
|
+
def get_with_http_info(resource_group_name, lab_name, name, expand:nil, custom_headers:nil)
|
172
|
+
get_async(resource_group_name, lab_name, name, expand:expand, custom_headers:custom_headers).value!
|
173
|
+
end
|
174
|
+
|
175
|
+
#
|
176
|
+
# Get artifact source.
|
177
|
+
#
|
178
|
+
# @param resource_group_name [String] The name of the resource group.
|
179
|
+
# @param lab_name [String] The name of the lab.
|
180
|
+
# @param name [String] The name of the artifact source.
|
181
|
+
# @param expand [String] Specify the $expand query. Example:
|
182
|
+
# 'properties($select=displayName)'
|
183
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
184
|
+
# to the HTTP request.
|
185
|
+
#
|
186
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
187
|
+
#
|
188
|
+
def get_async(resource_group_name, lab_name, name, expand:nil, custom_headers:nil)
|
189
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
190
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
191
|
+
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
192
|
+
fail ArgumentError, 'name is nil' if name.nil?
|
193
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
194
|
+
|
195
|
+
|
196
|
+
request_headers = {}
|
197
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
198
|
+
|
199
|
+
# Set Headers
|
200
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
201
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
202
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{name}'
|
203
|
+
|
204
|
+
request_url = @base_url || @client.base_url
|
205
|
+
|
206
|
+
options = {
|
207
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
208
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name,'name' => name},
|
209
|
+
query_params: {'$expand' => expand,'api-version' => @client.api_version},
|
210
|
+
headers: request_headers.merge(custom_headers || {}),
|
211
|
+
base_url: request_url
|
212
|
+
}
|
213
|
+
promise = @client.make_request_async(:get, path_template, options)
|
214
|
+
|
215
|
+
promise = promise.then do |result|
|
216
|
+
http_response = result.response
|
217
|
+
status_code = http_response.status
|
218
|
+
response_content = http_response.body
|
219
|
+
unless status_code == 200
|
220
|
+
error_model = JSON.load(response_content)
|
221
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
222
|
+
end
|
223
|
+
|
224
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
225
|
+
# Deserialize Response
|
226
|
+
if status_code == 200
|
227
|
+
begin
|
228
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
229
|
+
result_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ArtifactSource.mapper()
|
230
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
231
|
+
rescue Exception => e
|
232
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
result
|
237
|
+
end
|
238
|
+
|
239
|
+
promise.execute
|
240
|
+
end
|
241
|
+
|
242
|
+
#
|
243
|
+
# Create or replace an existing artifact source.
|
244
|
+
#
|
245
|
+
# @param resource_group_name [String] The name of the resource group.
|
246
|
+
# @param lab_name [String] The name of the lab.
|
247
|
+
# @param name [String] The name of the artifact source.
|
248
|
+
# @param artifact_source [ArtifactSource] Properties of an artifact source.
|
249
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
250
|
+
# will be added to the HTTP request.
|
251
|
+
#
|
252
|
+
# @return [ArtifactSource] operation results.
|
253
|
+
#
|
254
|
+
def create_or_update(resource_group_name, lab_name, name, artifact_source, custom_headers:nil)
|
255
|
+
response = create_or_update_async(resource_group_name, lab_name, name, artifact_source, custom_headers:custom_headers).value!
|
256
|
+
response.body unless response.nil?
|
257
|
+
end
|
258
|
+
|
259
|
+
#
|
260
|
+
# Create or replace an existing artifact source.
|
261
|
+
#
|
262
|
+
# @param resource_group_name [String] The name of the resource group.
|
263
|
+
# @param lab_name [String] The name of the lab.
|
264
|
+
# @param name [String] The name of the artifact source.
|
265
|
+
# @param artifact_source [ArtifactSource] Properties of an artifact source.
|
266
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
267
|
+
# will be added to the HTTP request.
|
268
|
+
#
|
269
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
270
|
+
#
|
271
|
+
def create_or_update_with_http_info(resource_group_name, lab_name, name, artifact_source, custom_headers:nil)
|
272
|
+
create_or_update_async(resource_group_name, lab_name, name, artifact_source, custom_headers:custom_headers).value!
|
273
|
+
end
|
274
|
+
|
275
|
+
#
|
276
|
+
# Create or replace an existing artifact source.
|
277
|
+
#
|
278
|
+
# @param resource_group_name [String] The name of the resource group.
|
279
|
+
# @param lab_name [String] The name of the lab.
|
280
|
+
# @param name [String] The name of the artifact source.
|
281
|
+
# @param artifact_source [ArtifactSource] Properties of an artifact source.
|
282
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
283
|
+
# to the HTTP request.
|
284
|
+
#
|
285
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
286
|
+
#
|
287
|
+
def create_or_update_async(resource_group_name, lab_name, name, artifact_source, custom_headers:nil)
|
288
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
289
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
290
|
+
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
291
|
+
fail ArgumentError, 'name is nil' if name.nil?
|
292
|
+
fail ArgumentError, 'artifact_source is nil' if artifact_source.nil?
|
293
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
294
|
+
|
295
|
+
|
296
|
+
request_headers = {}
|
297
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
298
|
+
|
299
|
+
# Set Headers
|
300
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
301
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
302
|
+
|
303
|
+
# Serialize Request
|
304
|
+
request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ArtifactSource.mapper()
|
305
|
+
request_content = @client.serialize(request_mapper, artifact_source)
|
306
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
307
|
+
|
308
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{name}'
|
309
|
+
|
310
|
+
request_url = @base_url || @client.base_url
|
311
|
+
|
312
|
+
options = {
|
313
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
314
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name,'name' => name},
|
315
|
+
query_params: {'api-version' => @client.api_version},
|
316
|
+
body: request_content,
|
317
|
+
headers: request_headers.merge(custom_headers || {}),
|
318
|
+
base_url: request_url
|
319
|
+
}
|
320
|
+
promise = @client.make_request_async(:put, path_template, options)
|
321
|
+
|
322
|
+
promise = promise.then do |result|
|
323
|
+
http_response = result.response
|
324
|
+
status_code = http_response.status
|
325
|
+
response_content = http_response.body
|
326
|
+
unless status_code == 200 || status_code == 201
|
327
|
+
error_model = JSON.load(response_content)
|
328
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
329
|
+
end
|
330
|
+
|
331
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
332
|
+
# Deserialize Response
|
333
|
+
if status_code == 200
|
334
|
+
begin
|
335
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
336
|
+
result_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ArtifactSource.mapper()
|
337
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
338
|
+
rescue Exception => e
|
339
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
340
|
+
end
|
341
|
+
end
|
342
|
+
# Deserialize Response
|
343
|
+
if status_code == 201
|
344
|
+
begin
|
345
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
346
|
+
result_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ArtifactSource.mapper()
|
347
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
348
|
+
rescue Exception => e
|
349
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
350
|
+
end
|
351
|
+
end
|
352
|
+
|
353
|
+
result
|
354
|
+
end
|
355
|
+
|
356
|
+
promise.execute
|
357
|
+
end
|
358
|
+
|
359
|
+
#
|
360
|
+
# Delete artifact source.
|
361
|
+
#
|
362
|
+
# @param resource_group_name [String] The name of the resource group.
|
363
|
+
# @param lab_name [String] The name of the lab.
|
364
|
+
# @param name [String] The name of the artifact source.
|
365
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
366
|
+
# will be added to the HTTP request.
|
367
|
+
#
|
368
|
+
#
|
369
|
+
def delete(resource_group_name, lab_name, name, custom_headers:nil)
|
370
|
+
response = delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value!
|
371
|
+
nil
|
372
|
+
end
|
373
|
+
|
374
|
+
#
|
375
|
+
# Delete artifact source.
|
376
|
+
#
|
377
|
+
# @param resource_group_name [String] The name of the resource group.
|
378
|
+
# @param lab_name [String] The name of the lab.
|
379
|
+
# @param name [String] The name of the artifact source.
|
380
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
381
|
+
# will be added to the HTTP request.
|
382
|
+
#
|
383
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
384
|
+
#
|
385
|
+
def delete_with_http_info(resource_group_name, lab_name, name, custom_headers:nil)
|
386
|
+
delete_async(resource_group_name, lab_name, name, custom_headers:custom_headers).value!
|
387
|
+
end
|
388
|
+
|
389
|
+
#
|
390
|
+
# Delete artifact source.
|
391
|
+
#
|
392
|
+
# @param resource_group_name [String] The name of the resource group.
|
393
|
+
# @param lab_name [String] The name of the lab.
|
394
|
+
# @param name [String] The name of the artifact source.
|
395
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
396
|
+
# to the HTTP request.
|
397
|
+
#
|
398
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
399
|
+
#
|
400
|
+
def delete_async(resource_group_name, lab_name, name, custom_headers:nil)
|
401
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
402
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
403
|
+
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
404
|
+
fail ArgumentError, 'name is nil' if name.nil?
|
405
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
406
|
+
|
407
|
+
|
408
|
+
request_headers = {}
|
409
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
410
|
+
|
411
|
+
# Set Headers
|
412
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
413
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
414
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{name}'
|
415
|
+
|
416
|
+
request_url = @base_url || @client.base_url
|
417
|
+
|
418
|
+
options = {
|
419
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
420
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name,'name' => name},
|
421
|
+
query_params: {'api-version' => @client.api_version},
|
422
|
+
headers: request_headers.merge(custom_headers || {}),
|
423
|
+
base_url: request_url
|
424
|
+
}
|
425
|
+
promise = @client.make_request_async(:delete, path_template, options)
|
426
|
+
|
427
|
+
promise = promise.then do |result|
|
428
|
+
http_response = result.response
|
429
|
+
status_code = http_response.status
|
430
|
+
response_content = http_response.body
|
431
|
+
unless status_code == 200 || status_code == 204
|
432
|
+
error_model = JSON.load(response_content)
|
433
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
434
|
+
end
|
435
|
+
|
436
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
437
|
+
|
438
|
+
result
|
439
|
+
end
|
440
|
+
|
441
|
+
promise.execute
|
442
|
+
end
|
443
|
+
|
444
|
+
#
|
445
|
+
# Modify properties of artifact sources.
|
446
|
+
#
|
447
|
+
# @param resource_group_name [String] The name of the resource group.
|
448
|
+
# @param lab_name [String] The name of the lab.
|
449
|
+
# @param name [String] The name of the artifact source.
|
450
|
+
# @param artifact_source [ArtifactSourceFragment] Properties of an artifact
|
451
|
+
# source.
|
452
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
453
|
+
# will be added to the HTTP request.
|
454
|
+
#
|
455
|
+
# @return [ArtifactSource] operation results.
|
456
|
+
#
|
457
|
+
def update(resource_group_name, lab_name, name, artifact_source, custom_headers:nil)
|
458
|
+
response = update_async(resource_group_name, lab_name, name, artifact_source, custom_headers:custom_headers).value!
|
459
|
+
response.body unless response.nil?
|
460
|
+
end
|
461
|
+
|
462
|
+
#
|
463
|
+
# Modify properties of artifact sources.
|
464
|
+
#
|
465
|
+
# @param resource_group_name [String] The name of the resource group.
|
466
|
+
# @param lab_name [String] The name of the lab.
|
467
|
+
# @param name [String] The name of the artifact source.
|
468
|
+
# @param artifact_source [ArtifactSourceFragment] Properties of an artifact
|
469
|
+
# source.
|
470
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
471
|
+
# will be added to the HTTP request.
|
472
|
+
#
|
473
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
474
|
+
#
|
475
|
+
def update_with_http_info(resource_group_name, lab_name, name, artifact_source, custom_headers:nil)
|
476
|
+
update_async(resource_group_name, lab_name, name, artifact_source, custom_headers:custom_headers).value!
|
477
|
+
end
|
478
|
+
|
479
|
+
#
|
480
|
+
# Modify properties of artifact sources.
|
481
|
+
#
|
482
|
+
# @param resource_group_name [String] The name of the resource group.
|
483
|
+
# @param lab_name [String] The name of the lab.
|
484
|
+
# @param name [String] The name of the artifact source.
|
485
|
+
# @param artifact_source [ArtifactSourceFragment] Properties of an artifact
|
486
|
+
# source.
|
487
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
488
|
+
# to the HTTP request.
|
489
|
+
#
|
490
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
491
|
+
#
|
492
|
+
def update_async(resource_group_name, lab_name, name, artifact_source, custom_headers:nil)
|
493
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
494
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
495
|
+
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
496
|
+
fail ArgumentError, 'name is nil' if name.nil?
|
497
|
+
fail ArgumentError, 'artifact_source is nil' if artifact_source.nil?
|
498
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
499
|
+
|
500
|
+
|
501
|
+
request_headers = {}
|
502
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
503
|
+
|
504
|
+
# Set Headers
|
505
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
506
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
507
|
+
|
508
|
+
# Serialize Request
|
509
|
+
request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ArtifactSourceFragment.mapper()
|
510
|
+
request_content = @client.serialize(request_mapper, artifact_source)
|
511
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
512
|
+
|
513
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{name}'
|
514
|
+
|
515
|
+
request_url = @base_url || @client.base_url
|
516
|
+
|
517
|
+
options = {
|
518
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
519
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name,'name' => name},
|
520
|
+
query_params: {'api-version' => @client.api_version},
|
521
|
+
body: request_content,
|
522
|
+
headers: request_headers.merge(custom_headers || {}),
|
523
|
+
base_url: request_url
|
524
|
+
}
|
525
|
+
promise = @client.make_request_async(:patch, path_template, options)
|
526
|
+
|
527
|
+
promise = promise.then do |result|
|
528
|
+
http_response = result.response
|
529
|
+
status_code = http_response.status
|
530
|
+
response_content = http_response.body
|
531
|
+
unless status_code == 200
|
532
|
+
error_model = JSON.load(response_content)
|
533
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
534
|
+
end
|
535
|
+
|
536
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
537
|
+
# Deserialize Response
|
538
|
+
if status_code == 200
|
539
|
+
begin
|
540
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
541
|
+
result_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ArtifactSource.mapper()
|
542
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
543
|
+
rescue Exception => e
|
544
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
545
|
+
end
|
546
|
+
end
|
547
|
+
|
548
|
+
result
|
549
|
+
end
|
550
|
+
|
551
|
+
promise.execute
|
552
|
+
end
|
553
|
+
|
554
|
+
#
|
555
|
+
# List artifact sources in a given lab.
|
556
|
+
#
|
557
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
558
|
+
# to List operation.
|
559
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
560
|
+
# will be added to the HTTP request.
|
561
|
+
#
|
562
|
+
# @return [ArtifactSourceList] operation results.
|
563
|
+
#
|
564
|
+
def list_next(next_page_link, custom_headers:nil)
|
565
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
566
|
+
response.body unless response.nil?
|
567
|
+
end
|
568
|
+
|
569
|
+
#
|
570
|
+
# List artifact sources in a given lab.
|
571
|
+
#
|
572
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
573
|
+
# to List operation.
|
574
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
575
|
+
# will be added to the HTTP request.
|
576
|
+
#
|
577
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
578
|
+
#
|
579
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
580
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
581
|
+
end
|
582
|
+
|
583
|
+
#
|
584
|
+
# List artifact sources in a given lab.
|
585
|
+
#
|
586
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
587
|
+
# to List operation.
|
588
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
589
|
+
# to the HTTP request.
|
590
|
+
#
|
591
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
592
|
+
#
|
593
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
594
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
595
|
+
|
596
|
+
|
597
|
+
request_headers = {}
|
598
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
599
|
+
|
600
|
+
# Set Headers
|
601
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
602
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
603
|
+
path_template = '{nextLink}'
|
604
|
+
|
605
|
+
request_url = @base_url || @client.base_url
|
606
|
+
|
607
|
+
options = {
|
608
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
609
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
610
|
+
headers: request_headers.merge(custom_headers || {}),
|
611
|
+
base_url: request_url
|
612
|
+
}
|
613
|
+
promise = @client.make_request_async(:get, path_template, options)
|
614
|
+
|
615
|
+
promise = promise.then do |result|
|
616
|
+
http_response = result.response
|
617
|
+
status_code = http_response.status
|
618
|
+
response_content = http_response.body
|
619
|
+
unless status_code == 200
|
620
|
+
error_model = JSON.load(response_content)
|
621
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
622
|
+
end
|
623
|
+
|
624
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
625
|
+
# Deserialize Response
|
626
|
+
if status_code == 200
|
627
|
+
begin
|
628
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
629
|
+
result_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ArtifactSourceList.mapper()
|
630
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
631
|
+
rescue Exception => e
|
632
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
633
|
+
end
|
634
|
+
end
|
635
|
+
|
636
|
+
result
|
637
|
+
end
|
638
|
+
|
639
|
+
promise.execute
|
640
|
+
end
|
641
|
+
|
642
|
+
#
|
643
|
+
# List artifact sources in a given lab.
|
644
|
+
#
|
645
|
+
# @param resource_group_name [String] The name of the resource group.
|
646
|
+
# @param lab_name [String] The name of the lab.
|
647
|
+
# @param expand [String] Specify the $expand query. Example:
|
648
|
+
# 'properties($select=displayName)'
|
649
|
+
# @param filter [String] The filter to apply to the operation. Example:
|
650
|
+
# '$filter=contains(name,'myName')
|
651
|
+
# @param top [Integer] The maximum number of resources to return from the
|
652
|
+
# operation. Example: '$top=10'
|
653
|
+
# @param orderby [String] The ordering expression for the results, using OData
|
654
|
+
# notation. Example: '$orderby=name desc'
|
655
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
656
|
+
# will be added to the HTTP request.
|
657
|
+
#
|
658
|
+
# @return [ArtifactSourceList] which provide lazy access to pages of the
|
659
|
+
# response.
|
660
|
+
#
|
661
|
+
def list_as_lazy(resource_group_name, lab_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
662
|
+
response = list_async(resource_group_name, lab_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
|
663
|
+
unless response.nil?
|
664
|
+
page = response.body
|
665
|
+
page.next_method = Proc.new do |next_page_link|
|
666
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
667
|
+
end
|
668
|
+
page
|
669
|
+
end
|
670
|
+
end
|
671
|
+
|
672
|
+
end
|
673
|
+
end
|