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,486 @@
|
|
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 Artifacts
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the Artifacts 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 artifacts in a given artifact source.
|
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 artifact_source_name [String] The name of the artifact source.
|
30
|
+
# @param expand [String] Specify the $expand query. Example:
|
31
|
+
# 'properties($select=title)'
|
32
|
+
# @param filter [String] The filter to apply to the operation. Example:
|
33
|
+
# '$filter=contains(name,'myName')
|
34
|
+
# @param top [Integer] The maximum number of resources to return from the
|
35
|
+
# operation. Example: '$top=10'
|
36
|
+
# @param orderby [String] The ordering expression for the results, using OData
|
37
|
+
# notation. Example: '$orderby=name desc'
|
38
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
39
|
+
# will be added to the HTTP request.
|
40
|
+
#
|
41
|
+
# @return [Array<Artifact>] operation results.
|
42
|
+
#
|
43
|
+
def list(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
44
|
+
first_page = list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers)
|
45
|
+
first_page.get_all_items
|
46
|
+
end
|
47
|
+
|
48
|
+
#
|
49
|
+
# List artifacts in a given artifact source.
|
50
|
+
#
|
51
|
+
# @param resource_group_name [String] The name of the resource group.
|
52
|
+
# @param lab_name [String] The name of the lab.
|
53
|
+
# @param artifact_source_name [String] The name of the artifact source.
|
54
|
+
# @param expand [String] Specify the $expand query. Example:
|
55
|
+
# 'properties($select=title)'
|
56
|
+
# @param filter [String] The filter to apply to the operation. Example:
|
57
|
+
# '$filter=contains(name,'myName')
|
58
|
+
# @param top [Integer] The maximum number of resources to return from the
|
59
|
+
# operation. Example: '$top=10'
|
60
|
+
# @param orderby [String] The ordering expression for the results, using OData
|
61
|
+
# notation. Example: '$orderby=name desc'
|
62
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
63
|
+
# will be added to the HTTP request.
|
64
|
+
#
|
65
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
66
|
+
#
|
67
|
+
def list_with_http_info(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
68
|
+
list_async(resource_group_name, lab_name, artifact_source_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
|
69
|
+
end
|
70
|
+
|
71
|
+
#
|
72
|
+
# List artifacts in a given artifact source.
|
73
|
+
#
|
74
|
+
# @param resource_group_name [String] The name of the resource group.
|
75
|
+
# @param lab_name [String] The name of the lab.
|
76
|
+
# @param artifact_source_name [String] The name of the artifact source.
|
77
|
+
# @param expand [String] Specify the $expand query. Example:
|
78
|
+
# 'properties($select=title)'
|
79
|
+
# @param filter [String] The filter to apply to the operation. Example:
|
80
|
+
# '$filter=contains(name,'myName')
|
81
|
+
# @param top [Integer] The maximum number of resources to return from the
|
82
|
+
# operation. Example: '$top=10'
|
83
|
+
# @param orderby [String] The ordering expression for the results, using OData
|
84
|
+
# notation. Example: '$orderby=name desc'
|
85
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
86
|
+
# to the HTTP request.
|
87
|
+
#
|
88
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
89
|
+
#
|
90
|
+
def list_async(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
91
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
92
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
93
|
+
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
94
|
+
fail ArgumentError, 'artifact_source_name is nil' if artifact_source_name.nil?
|
95
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
96
|
+
|
97
|
+
|
98
|
+
request_headers = {}
|
99
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
100
|
+
|
101
|
+
# Set Headers
|
102
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
103
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
104
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts'
|
105
|
+
|
106
|
+
request_url = @base_url || @client.base_url
|
107
|
+
|
108
|
+
options = {
|
109
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
110
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name,'artifactSourceName' => artifact_source_name},
|
111
|
+
query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'api-version' => @client.api_version},
|
112
|
+
headers: request_headers.merge(custom_headers || {}),
|
113
|
+
base_url: request_url
|
114
|
+
}
|
115
|
+
promise = @client.make_request_async(:get, path_template, options)
|
116
|
+
|
117
|
+
promise = promise.then do |result|
|
118
|
+
http_response = result.response
|
119
|
+
status_code = http_response.status
|
120
|
+
response_content = http_response.body
|
121
|
+
unless status_code == 200
|
122
|
+
error_model = JSON.load(response_content)
|
123
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
124
|
+
end
|
125
|
+
|
126
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
127
|
+
# Deserialize Response
|
128
|
+
if status_code == 200
|
129
|
+
begin
|
130
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
131
|
+
result_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ArtifactList.mapper()
|
132
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
133
|
+
rescue Exception => e
|
134
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
result
|
139
|
+
end
|
140
|
+
|
141
|
+
promise.execute
|
142
|
+
end
|
143
|
+
|
144
|
+
#
|
145
|
+
# Get artifact.
|
146
|
+
#
|
147
|
+
# @param resource_group_name [String] The name of the resource group.
|
148
|
+
# @param lab_name [String] The name of the lab.
|
149
|
+
# @param artifact_source_name [String] The name of the artifact source.
|
150
|
+
# @param name [String] The name of the artifact.
|
151
|
+
# @param expand [String] Specify the $expand query. Example:
|
152
|
+
# 'properties($select=title)'
|
153
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
154
|
+
# will be added to the HTTP request.
|
155
|
+
#
|
156
|
+
# @return [Artifact] operation results.
|
157
|
+
#
|
158
|
+
def get(resource_group_name, lab_name, artifact_source_name, name, expand:nil, custom_headers:nil)
|
159
|
+
response = get_async(resource_group_name, lab_name, artifact_source_name, name, expand:expand, custom_headers:custom_headers).value!
|
160
|
+
response.body unless response.nil?
|
161
|
+
end
|
162
|
+
|
163
|
+
#
|
164
|
+
# Get artifact.
|
165
|
+
#
|
166
|
+
# @param resource_group_name [String] The name of the resource group.
|
167
|
+
# @param lab_name [String] The name of the lab.
|
168
|
+
# @param artifact_source_name [String] The name of the artifact source.
|
169
|
+
# @param name [String] The name of the artifact.
|
170
|
+
# @param expand [String] Specify the $expand query. Example:
|
171
|
+
# 'properties($select=title)'
|
172
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
173
|
+
# will be added to the HTTP request.
|
174
|
+
#
|
175
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
176
|
+
#
|
177
|
+
def get_with_http_info(resource_group_name, lab_name, artifact_source_name, name, expand:nil, custom_headers:nil)
|
178
|
+
get_async(resource_group_name, lab_name, artifact_source_name, name, expand:expand, custom_headers:custom_headers).value!
|
179
|
+
end
|
180
|
+
|
181
|
+
#
|
182
|
+
# Get artifact.
|
183
|
+
#
|
184
|
+
# @param resource_group_name [String] The name of the resource group.
|
185
|
+
# @param lab_name [String] The name of the lab.
|
186
|
+
# @param artifact_source_name [String] The name of the artifact source.
|
187
|
+
# @param name [String] The name of the artifact.
|
188
|
+
# @param expand [String] Specify the $expand query. Example:
|
189
|
+
# 'properties($select=title)'
|
190
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
191
|
+
# to the HTTP request.
|
192
|
+
#
|
193
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
194
|
+
#
|
195
|
+
def get_async(resource_group_name, lab_name, artifact_source_name, name, expand:nil, custom_headers:nil)
|
196
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
197
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
198
|
+
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
199
|
+
fail ArgumentError, 'artifact_source_name is nil' if artifact_source_name.nil?
|
200
|
+
fail ArgumentError, 'name is nil' if name.nil?
|
201
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
202
|
+
|
203
|
+
|
204
|
+
request_headers = {}
|
205
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
206
|
+
|
207
|
+
# Set Headers
|
208
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
209
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
210
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{name}'
|
211
|
+
|
212
|
+
request_url = @base_url || @client.base_url
|
213
|
+
|
214
|
+
options = {
|
215
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
216
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name,'artifactSourceName' => artifact_source_name,'name' => name},
|
217
|
+
query_params: {'$expand' => expand,'api-version' => @client.api_version},
|
218
|
+
headers: request_headers.merge(custom_headers || {}),
|
219
|
+
base_url: request_url
|
220
|
+
}
|
221
|
+
promise = @client.make_request_async(:get, path_template, options)
|
222
|
+
|
223
|
+
promise = promise.then do |result|
|
224
|
+
http_response = result.response
|
225
|
+
status_code = http_response.status
|
226
|
+
response_content = http_response.body
|
227
|
+
unless status_code == 200
|
228
|
+
error_model = JSON.load(response_content)
|
229
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
230
|
+
end
|
231
|
+
|
232
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
233
|
+
# Deserialize Response
|
234
|
+
if status_code == 200
|
235
|
+
begin
|
236
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
237
|
+
result_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::Artifact.mapper()
|
238
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
239
|
+
rescue Exception => e
|
240
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
241
|
+
end
|
242
|
+
end
|
243
|
+
|
244
|
+
result
|
245
|
+
end
|
246
|
+
|
247
|
+
promise.execute
|
248
|
+
end
|
249
|
+
|
250
|
+
#
|
251
|
+
# Generates an ARM template for the given artifact, uploads the required files
|
252
|
+
# to a storage account, and validates the generated artifact.
|
253
|
+
#
|
254
|
+
# @param resource_group_name [String] The name of the resource group.
|
255
|
+
# @param lab_name [String] The name of the lab.
|
256
|
+
# @param artifact_source_name [String] The name of the artifact source.
|
257
|
+
# @param name [String] The name of the artifact.
|
258
|
+
# @param generate_arm_template_request [GenerateArmTemplateRequest] Parameters
|
259
|
+
# for generating an ARM template for deploying artifacts.
|
260
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
261
|
+
# will be added to the HTTP request.
|
262
|
+
#
|
263
|
+
# @return [ArmTemplateInfo] operation results.
|
264
|
+
#
|
265
|
+
def generate_arm_template(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers:nil)
|
266
|
+
response = generate_arm_template_async(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers:custom_headers).value!
|
267
|
+
response.body unless response.nil?
|
268
|
+
end
|
269
|
+
|
270
|
+
#
|
271
|
+
# Generates an ARM template for the given artifact, uploads the required files
|
272
|
+
# to a storage account, and validates the generated artifact.
|
273
|
+
#
|
274
|
+
# @param resource_group_name [String] The name of the resource group.
|
275
|
+
# @param lab_name [String] The name of the lab.
|
276
|
+
# @param artifact_source_name [String] The name of the artifact source.
|
277
|
+
# @param name [String] The name of the artifact.
|
278
|
+
# @param generate_arm_template_request [GenerateArmTemplateRequest] Parameters
|
279
|
+
# for generating an ARM template for deploying artifacts.
|
280
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
281
|
+
# will be added to the HTTP request.
|
282
|
+
#
|
283
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
284
|
+
#
|
285
|
+
def generate_arm_template_with_http_info(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers:nil)
|
286
|
+
generate_arm_template_async(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers:custom_headers).value!
|
287
|
+
end
|
288
|
+
|
289
|
+
#
|
290
|
+
# Generates an ARM template for the given artifact, uploads the required files
|
291
|
+
# to a storage account, and validates the generated artifact.
|
292
|
+
#
|
293
|
+
# @param resource_group_name [String] The name of the resource group.
|
294
|
+
# @param lab_name [String] The name of the lab.
|
295
|
+
# @param artifact_source_name [String] The name of the artifact source.
|
296
|
+
# @param name [String] The name of the artifact.
|
297
|
+
# @param generate_arm_template_request [GenerateArmTemplateRequest] Parameters
|
298
|
+
# for generating an ARM template for deploying artifacts.
|
299
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
300
|
+
# to the HTTP request.
|
301
|
+
#
|
302
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
303
|
+
#
|
304
|
+
def generate_arm_template_async(resource_group_name, lab_name, artifact_source_name, name, generate_arm_template_request, custom_headers:nil)
|
305
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
306
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
307
|
+
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
308
|
+
fail ArgumentError, 'artifact_source_name is nil' if artifact_source_name.nil?
|
309
|
+
fail ArgumentError, 'name is nil' if name.nil?
|
310
|
+
fail ArgumentError, 'generate_arm_template_request is nil' if generate_arm_template_request.nil?
|
311
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
312
|
+
|
313
|
+
|
314
|
+
request_headers = {}
|
315
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
316
|
+
|
317
|
+
# Set Headers
|
318
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
319
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
320
|
+
|
321
|
+
# Serialize Request
|
322
|
+
request_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::GenerateArmTemplateRequest.mapper()
|
323
|
+
request_content = @client.serialize(request_mapper, generate_arm_template_request)
|
324
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
325
|
+
|
326
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{name}/generateArmTemplate'
|
327
|
+
|
328
|
+
request_url = @base_url || @client.base_url
|
329
|
+
|
330
|
+
options = {
|
331
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
332
|
+
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name,'artifactSourceName' => artifact_source_name,'name' => name},
|
333
|
+
query_params: {'api-version' => @client.api_version},
|
334
|
+
body: request_content,
|
335
|
+
headers: request_headers.merge(custom_headers || {}),
|
336
|
+
base_url: request_url
|
337
|
+
}
|
338
|
+
promise = @client.make_request_async(:post, path_template, options)
|
339
|
+
|
340
|
+
promise = promise.then do |result|
|
341
|
+
http_response = result.response
|
342
|
+
status_code = http_response.status
|
343
|
+
response_content = http_response.body
|
344
|
+
unless status_code == 200
|
345
|
+
error_model = JSON.load(response_content)
|
346
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
347
|
+
end
|
348
|
+
|
349
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
350
|
+
# Deserialize Response
|
351
|
+
if status_code == 200
|
352
|
+
begin
|
353
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
354
|
+
result_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ArmTemplateInfo.mapper()
|
355
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
356
|
+
rescue Exception => e
|
357
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
358
|
+
end
|
359
|
+
end
|
360
|
+
|
361
|
+
result
|
362
|
+
end
|
363
|
+
|
364
|
+
promise.execute
|
365
|
+
end
|
366
|
+
|
367
|
+
#
|
368
|
+
# List artifacts in a given artifact source.
|
369
|
+
#
|
370
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
371
|
+
# to List operation.
|
372
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
373
|
+
# will be added to the HTTP request.
|
374
|
+
#
|
375
|
+
# @return [ArtifactList] operation results.
|
376
|
+
#
|
377
|
+
def list_next(next_page_link, custom_headers:nil)
|
378
|
+
response = list_next_async(next_page_link, custom_headers:custom_headers).value!
|
379
|
+
response.body unless response.nil?
|
380
|
+
end
|
381
|
+
|
382
|
+
#
|
383
|
+
# List artifacts in a given artifact source.
|
384
|
+
#
|
385
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
386
|
+
# to List 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 [MsRestAzure::AzureOperationResponse] HTTP response information.
|
391
|
+
#
|
392
|
+
def list_next_with_http_info(next_page_link, custom_headers:nil)
|
393
|
+
list_next_async(next_page_link, custom_headers:custom_headers).value!
|
394
|
+
end
|
395
|
+
|
396
|
+
#
|
397
|
+
# List artifacts in a given artifact source.
|
398
|
+
#
|
399
|
+
# @param next_page_link [String] The NextLink from the previous successful call
|
400
|
+
# to List operation.
|
401
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
402
|
+
# to the HTTP request.
|
403
|
+
#
|
404
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
405
|
+
#
|
406
|
+
def list_next_async(next_page_link, custom_headers:nil)
|
407
|
+
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
408
|
+
|
409
|
+
|
410
|
+
request_headers = {}
|
411
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
412
|
+
|
413
|
+
# Set Headers
|
414
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
415
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
416
|
+
path_template = '{nextLink}'
|
417
|
+
|
418
|
+
request_url = @base_url || @client.base_url
|
419
|
+
|
420
|
+
options = {
|
421
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
422
|
+
skip_encoding_path_params: {'nextLink' => next_page_link},
|
423
|
+
headers: request_headers.merge(custom_headers || {}),
|
424
|
+
base_url: request_url
|
425
|
+
}
|
426
|
+
promise = @client.make_request_async(:get, path_template, options)
|
427
|
+
|
428
|
+
promise = promise.then do |result|
|
429
|
+
http_response = result.response
|
430
|
+
status_code = http_response.status
|
431
|
+
response_content = http_response.body
|
432
|
+
unless status_code == 200
|
433
|
+
error_model = JSON.load(response_content)
|
434
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
435
|
+
end
|
436
|
+
|
437
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
438
|
+
# Deserialize Response
|
439
|
+
if status_code == 200
|
440
|
+
begin
|
441
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
442
|
+
result_mapper = Azure::DevTestLabs::Mgmt::V2018_09_15::Models::ArtifactList.mapper()
|
443
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
444
|
+
rescue Exception => e
|
445
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
446
|
+
end
|
447
|
+
end
|
448
|
+
|
449
|
+
result
|
450
|
+
end
|
451
|
+
|
452
|
+
promise.execute
|
453
|
+
end
|
454
|
+
|
455
|
+
#
|
456
|
+
# List artifacts in a given artifact source.
|
457
|
+
#
|
458
|
+
# @param resource_group_name [String] The name of the resource group.
|
459
|
+
# @param lab_name [String] The name of the lab.
|
460
|
+
# @param artifact_source_name [String] The name of the artifact source.
|
461
|
+
# @param expand [String] Specify the $expand query. Example:
|
462
|
+
# 'properties($select=title)'
|
463
|
+
# @param filter [String] The filter to apply to the operation. Example:
|
464
|
+
# '$filter=contains(name,'myName')
|
465
|
+
# @param top [Integer] The maximum number of resources to return from the
|
466
|
+
# operation. Example: '$top=10'
|
467
|
+
# @param orderby [String] The ordering expression for the results, using OData
|
468
|
+
# notation. Example: '$orderby=name desc'
|
469
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
470
|
+
# will be added to the HTTP request.
|
471
|
+
#
|
472
|
+
# @return [ArtifactList] which provide lazy access to pages of the response.
|
473
|
+
#
|
474
|
+
def list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand:nil, filter:nil, top:nil, orderby:nil, custom_headers:nil)
|
475
|
+
response = list_async(resource_group_name, lab_name, artifact_source_name, expand:expand, filter:filter, top:top, orderby:orderby, custom_headers:custom_headers).value!
|
476
|
+
unless response.nil?
|
477
|
+
page = response.body
|
478
|
+
page.next_method = Proc.new do |next_page_link|
|
479
|
+
list_next_async(next_page_link, custom_headers:custom_headers)
|
480
|
+
end
|
481
|
+
page
|
482
|
+
end
|
483
|
+
end
|
484
|
+
|
485
|
+
end
|
486
|
+
end
|