azure_mgmt_devtestlabs 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_devtestlabs.rb +149 -55
- data/lib/generated/azure_mgmt_devtestlabs/arm_templates.rb +363 -0
- data/lib/generated/azure_mgmt_devtestlabs/{artifact_source_operations.rb → artifact_sources.rb} +85 -69
- data/lib/generated/azure_mgmt_devtestlabs/{artifact_operations.rb → artifacts.rb} +59 -43
- data/lib/generated/azure_mgmt_devtestlabs/costs.rb +244 -0
- data/lib/generated/azure_mgmt_devtestlabs/{custom_image_operations.rb → custom_images.rb} +81 -68
- data/lib/generated/azure_mgmt_devtestlabs/dev_test_labs_client.rb +73 -37
- data/lib/generated/azure_mgmt_devtestlabs/disks.rb +975 -0
- data/lib/generated/azure_mgmt_devtestlabs/environments.rb +672 -0
- data/lib/generated/azure_mgmt_devtestlabs/{formula_operations.rb → formulas.rb} +82 -64
- data/lib/generated/azure_mgmt_devtestlabs/{gallery_image_operations.rb → gallery_images.rb} +33 -26
- data/lib/generated/azure_mgmt_devtestlabs/global_schedules.rb +1121 -0
- data/lib/generated/azure_mgmt_devtestlabs/{lab_operations.rb → labs.rb} +439 -141
- data/lib/generated/azure_mgmt_devtestlabs/models/applicable_schedule.rb +105 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/applicable_schedule_fragment.rb +105 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/apply_artifacts_request.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/arm_template.rb +167 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/arm_template_info.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/arm_template_parameter_properties.rb +55 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/artifact.rb +70 -53
- data/lib/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/artifact_deployment_status_properties_fragment.rb +68 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/artifact_install_properties.rb +43 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/artifact_install_properties_fragment.rb +105 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/artifact_parameter_properties_fragment.rb +55 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/artifact_source.rb +75 -62
- data/lib/generated/azure_mgmt_devtestlabs/models/artifact_source_fragment.rb +185 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/attach_disk_properties.rb +46 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/attach_new_data_disk_options.rb +66 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/bulk_creation_parameters.rb +45 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/compute_data_disk.rb +76 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/compute_data_disk_fragment.rb +76 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status.rb +65 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/compute_vm_instance_view_status_fragment.rb +65 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/compute_vm_properties.rb +131 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/compute_vm_properties_fragment.rb +131 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_properties.rb +92 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/cost_threshold_status.rb +16 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/{lab_cost_type.rb → cost_type.rb} +3 -3
- data/lib/generated/azure_mgmt_devtestlabs/models/custom_image.rb +58 -57
- data/lib/generated/azure_mgmt_devtestlabs/models/custom_image_os_type.rb +1 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/custom_image_properties_custom.rb +5 -4
- data/lib/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/data_disk_properties.rb +70 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/day_details.rb +3 -2
- data/lib/generated/azure_mgmt_devtestlabs/models/{subscription_notification_properties.rb → day_details_fragment.rb} +11 -11
- data/lib/generated/azure_mgmt_devtestlabs/models/detach_data_disk_properties.rb +46 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/detach_disk_properties.rb +46 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/disk.rb +186 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/dtl_environment.rb +146 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/enable_status.rb +1 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/environment_deployment_properties.rb +64 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/evaluate_policies_properties.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/evaluate_policies_request.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/evaluate_policies_response.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/event.rb +47 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/event_fragment.rb +47 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/export_resource_usage_parameters.rb +58 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/external_subnet.rb +55 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/external_subnet_fragment.rb +55 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/file_upload_options.rb +16 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/formula.rb +53 -61
- data/lib/generated/azure_mgmt_devtestlabs/models/formula_properties_from_vm.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/gallery_image.rb +44 -54
- data/lib/generated/azure_mgmt_devtestlabs/models/gallery_image_reference.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/gallery_image_reference_fragment.rb +85 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/generate_arm_template_request.rb +14 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_parameter.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/generate_upload_uri_response.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/host_caching_options.rb +17 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/hour_details.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/hour_details_fragment.rb +45 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/identity_properties.rb +75 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule.rb +70 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/inbound_nat_rule_fragment.rb +70 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/lab.rb +85 -54
- data/lib/generated/azure_mgmt_devtestlabs/models/lab_cost.rb +204 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/{cost_per_day_properties.rb → lab_cost_details_properties.rb} +7 -6
- data/lib/generated/azure_mgmt_devtestlabs/models/lab_cost_summary_properties.rb +45 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/lab_fragment.rb +127 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/{resource_cost_properties.rb → lab_resource_cost_properties.rb} +49 -28
- data/lib/generated/azure_mgmt_devtestlabs/models/lab_vhd.rb +3 -2
- data/lib/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine.rb +141 -42
- data/lib/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_creation_parameter.rb +412 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/lab_virtual_machine_fragment.rb +410 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/linux_os_info.rb +5 -3
- data/lib/generated/azure_mgmt_devtestlabs/models/linux_os_state.rb +1 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/network_interface_properties.rb +130 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/network_interface_properties_fragment.rb +130 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/notification_channel.rb +150 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/notification_channel_event_type.rb +16 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/{cost.rb → notification_channel_fragment.rb} +64 -64
- data/lib/generated/azure_mgmt_devtestlabs/models/notification_settings.rb +69 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/notification_settings_fragment.rb +69 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/notification_status.rb +16 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/notify_parameters.rb +56 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/parameter_info.rb +5 -5
- data/lib/generated/azure_mgmt_devtestlabs/models/parameters_value_file_info.rb +55 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/percentage_cost_threshold_properties.rb +45 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/policy.rb +62 -58
- data/lib/generated/azure_mgmt_devtestlabs/models/policy_evaluator_type.rb +1 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/policy_fact_name.rb +4 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/policy_fragment.rb +168 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/policy_set_result.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/policy_status.rb +1 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/policy_violation.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/port.rb +56 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/port_fragment.rb +56 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/premium_data_disk.rb +16 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/reporting_cycle_type.rb +16 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_arm_template.rb +94 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_artifact.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_artifact_source.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_custom_image.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_disk.rb +94 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_dtl_environment.rb +95 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_formula.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_gallery_image.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab_vhd.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_lab_virtual_machine.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_notification_channel.rb +96 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_policy.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_schedule.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_secret.rb +94 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_service_runner.rb +94 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_user.rb +94 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/response_with_continuation_virtual_network.rb +2 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/retarget_schedule_properties.rb +57 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/schedule.rb +82 -57
- data/lib/generated/azure_mgmt_devtestlabs/models/schedule_fragment.rb +189 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/secret.rb +110 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/service_runner.rb +91 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration.rb +54 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/shared_public_ip_address_configuration_fragment.rb +55 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/shutdown_notification_content.rb +147 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/source_control_type.rb +1 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/{lab_storage_type.rb → storage_type.rb} +3 -3
- data/lib/generated/azure_mgmt_devtestlabs/models/subnet.rb +8 -7
- data/lib/generated/azure_mgmt_devtestlabs/models/subnet_fragment.rb +67 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/subnet_override.rb +29 -6
- data/lib/generated/azure_mgmt_devtestlabs/models/subnet_override_fragment.rb +101 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration.rb +54 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/subnet_shared_public_ip_address_configuration_fragment.rb +55 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/target_cost_properties.rb +105 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/target_cost_status.rb +16 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/transport_protocol.rb +16 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/usage_permission_type.rb +1 -1
- data/lib/generated/azure_mgmt_devtestlabs/models/user.rb +133 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/user_fragment.rb +122 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/user_identity.rb +91 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/user_identity_fragment.rb +91 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/user_secret_store.rb +55 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/user_secret_store_fragment.rb +55 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/virtual_machine_creation_source.rb +16 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/virtual_network.rb +77 -59
- data/lib/generated/azure_mgmt_devtestlabs/models/virtual_network_fragment.rb +177 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/week_details.rb +5 -3
- data/lib/generated/azure_mgmt_devtestlabs/models/week_details_fragment.rb +63 -0
- data/lib/generated/azure_mgmt_devtestlabs/models/windows_os_info.rb +4 -2
- data/lib/generated/azure_mgmt_devtestlabs/models/windows_os_state.rb +1 -1
- data/lib/generated/azure_mgmt_devtestlabs/module_definition.rb +1 -1
- data/lib/generated/azure_mgmt_devtestlabs/notification_channels.rb +764 -0
- data/lib/generated/azure_mgmt_devtestlabs/{policy_operations.rb → policies.rb} +82 -69
- data/lib/generated/azure_mgmt_devtestlabs/{policy_set.rb → policy_sets.rb} +18 -16
- data/lib/generated/azure_mgmt_devtestlabs/{virtual_machine.rb → schedules.rb} +282 -417
- data/lib/generated/azure_mgmt_devtestlabs/secrets.rb +573 -0
- data/lib/generated/azure_mgmt_devtestlabs/service_runners.rb +545 -0
- data/lib/generated/azure_mgmt_devtestlabs/users.rb +704 -0
- data/lib/generated/azure_mgmt_devtestlabs/version.rb +2 -2
- data/lib/generated/azure_mgmt_devtestlabs/{schedule_operations.rb → virtual_machine_schedules.rb} +132 -92
- data/lib/generated/azure_mgmt_devtestlabs/virtual_machines.rb +1669 -0
- data/lib/generated/azure_mgmt_devtestlabs/{virtual_network_operations.rb → virtual_networks.rb} +94 -81
- metadata +118 -24
- data/lib/generated/azure_mgmt_devtestlabs/cost_operations.rb +0 -121
- data/lib/generated/azure_mgmt_devtestlabs/models/subscription_notification.rb +0 -68
- data/lib/generated/azure_mgmt_devtestlabs/models/subscription_notification_state.rb +0 -20
data/lib/generated/azure_mgmt_devtestlabs/{artifact_source_operations.rb → artifact_sources.rb}
RENAMED
@@ -1,18 +1,17 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::DevTestLabs
|
7
7
|
#
|
8
|
-
#
|
8
|
+
# The DevTest Labs Client.
|
9
9
|
#
|
10
|
-
class
|
11
|
-
include Azure::ARM::DevTestLabs::Models
|
10
|
+
class ArtifactSources
|
12
11
|
include MsRestAzure
|
13
12
|
|
14
13
|
#
|
15
|
-
# Creates and initializes a new instance of the
|
14
|
+
# Creates and initializes a new instance of the ArtifactSources class.
|
16
15
|
# @param client service class for accessing basic functionality.
|
17
16
|
#
|
18
17
|
def initialize(client)
|
@@ -27,18 +26,20 @@ module Azure::ARM::DevTestLabs
|
|
27
26
|
#
|
28
27
|
# @param resource_group_name [String] The name of the resource group.
|
29
28
|
# @param lab_name [String] The name of the lab.
|
30
|
-
# @param
|
29
|
+
# @param expand [String] Specify the $expand query. Example:
|
30
|
+
# 'properties($select=displayName)'
|
31
|
+
# @param filter [String] The filter to apply to the operation.
|
31
32
|
# @param top [Integer] The maximum number of resources to return from the
|
32
33
|
# operation.
|
33
|
-
# @param
|
34
|
+
# @param orderby [String] The ordering expression for the results, using OData
|
34
35
|
# notation.
|
35
36
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
36
37
|
# will be added to the HTTP request.
|
37
38
|
#
|
38
39
|
# @return [Array<ArtifactSource>] operation results.
|
39
40
|
#
|
40
|
-
def list(resource_group_name, lab_name, filter = nil, top = nil,
|
41
|
-
first_page = list_as_lazy(resource_group_name, lab_name, filter, top,
|
41
|
+
def list(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
|
42
|
+
first_page = list_as_lazy(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers)
|
42
43
|
first_page.get_all_items
|
43
44
|
end
|
44
45
|
|
@@ -47,18 +48,20 @@ module Azure::ARM::DevTestLabs
|
|
47
48
|
#
|
48
49
|
# @param resource_group_name [String] The name of the resource group.
|
49
50
|
# @param lab_name [String] The name of the lab.
|
50
|
-
# @param
|
51
|
+
# @param expand [String] Specify the $expand query. Example:
|
52
|
+
# 'properties($select=displayName)'
|
53
|
+
# @param filter [String] The filter to apply to the operation.
|
51
54
|
# @param top [Integer] The maximum number of resources to return from the
|
52
55
|
# operation.
|
53
|
-
# @param
|
56
|
+
# @param orderby [String] The ordering expression for the results, using OData
|
54
57
|
# notation.
|
55
58
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
56
59
|
# will be added to the HTTP request.
|
57
60
|
#
|
58
61
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
59
62
|
#
|
60
|
-
def list_with_http_info(resource_group_name, lab_name, filter = nil, top = nil,
|
61
|
-
list_async(resource_group_name, lab_name, filter, top,
|
63
|
+
def list_with_http_info(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
|
64
|
+
list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value!
|
62
65
|
end
|
63
66
|
|
64
67
|
#
|
@@ -66,17 +69,19 @@ module Azure::ARM::DevTestLabs
|
|
66
69
|
#
|
67
70
|
# @param resource_group_name [String] The name of the resource group.
|
68
71
|
# @param lab_name [String] The name of the lab.
|
69
|
-
# @param
|
72
|
+
# @param expand [String] Specify the $expand query. Example:
|
73
|
+
# 'properties($select=displayName)'
|
74
|
+
# @param filter [String] The filter to apply to the operation.
|
70
75
|
# @param top [Integer] The maximum number of resources to return from the
|
71
76
|
# operation.
|
72
|
-
# @param
|
77
|
+
# @param orderby [String] The ordering expression for the results, using OData
|
73
78
|
# notation.
|
74
79
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
75
80
|
# to the HTTP request.
|
76
81
|
#
|
77
82
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
78
83
|
#
|
79
|
-
def list_async(resource_group_name, lab_name, filter = nil, top = nil,
|
84
|
+
def list_async(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
|
80
85
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
81
86
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
82
87
|
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
@@ -88,14 +93,14 @@ module Azure::ARM::DevTestLabs
|
|
88
93
|
# Set Headers
|
89
94
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
90
95
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
91
|
-
path_template = '
|
96
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources'
|
92
97
|
|
93
98
|
request_url = @base_url || @client.base_url
|
94
99
|
|
95
100
|
options = {
|
96
101
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
97
102
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name},
|
98
|
-
query_params: {'$filter' => filter,'$top' => top,'$
|
103
|
+
query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'api-version' => @client.api_version},
|
99
104
|
headers: request_headers.merge(custom_headers || {}),
|
100
105
|
base_url: request_url
|
101
106
|
}
|
@@ -115,8 +120,8 @@ module Azure::ARM::DevTestLabs
|
|
115
120
|
if status_code == 200
|
116
121
|
begin
|
117
122
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
118
|
-
result_mapper = ResponseWithContinuationArtifactSource.mapper()
|
119
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
123
|
+
result_mapper = Azure::ARM::DevTestLabs::Models::ResponseWithContinuationArtifactSource.mapper()
|
124
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
120
125
|
rescue Exception => e
|
121
126
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
122
127
|
end
|
@@ -134,13 +139,15 @@ module Azure::ARM::DevTestLabs
|
|
134
139
|
# @param resource_group_name [String] The name of the resource group.
|
135
140
|
# @param lab_name [String] The name of the lab.
|
136
141
|
# @param name [String] The name of the artifact source.
|
142
|
+
# @param expand [String] Specify the $expand query. Example:
|
143
|
+
# 'properties($select=displayName)'
|
137
144
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
138
145
|
# will be added to the HTTP request.
|
139
146
|
#
|
140
147
|
# @return [ArtifactSource] operation results.
|
141
148
|
#
|
142
|
-
def
|
143
|
-
response =
|
149
|
+
def get(resource_group_name, lab_name, name, expand = nil, custom_headers = nil)
|
150
|
+
response = get_async(resource_group_name, lab_name, name, expand, custom_headers).value!
|
144
151
|
response.body unless response.nil?
|
145
152
|
end
|
146
153
|
|
@@ -150,13 +157,15 @@ module Azure::ARM::DevTestLabs
|
|
150
157
|
# @param resource_group_name [String] The name of the resource group.
|
151
158
|
# @param lab_name [String] The name of the lab.
|
152
159
|
# @param name [String] The name of the artifact source.
|
160
|
+
# @param expand [String] Specify the $expand query. Example:
|
161
|
+
# 'properties($select=displayName)'
|
153
162
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
154
163
|
# will be added to the HTTP request.
|
155
164
|
#
|
156
165
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
157
166
|
#
|
158
|
-
def
|
159
|
-
|
167
|
+
def get_with_http_info(resource_group_name, lab_name, name, expand = nil, custom_headers = nil)
|
168
|
+
get_async(resource_group_name, lab_name, name, expand, custom_headers).value!
|
160
169
|
end
|
161
170
|
|
162
171
|
#
|
@@ -165,12 +174,14 @@ module Azure::ARM::DevTestLabs
|
|
165
174
|
# @param resource_group_name [String] The name of the resource group.
|
166
175
|
# @param lab_name [String] The name of the lab.
|
167
176
|
# @param name [String] The name of the artifact source.
|
177
|
+
# @param expand [String] Specify the $expand query. Example:
|
178
|
+
# 'properties($select=displayName)'
|
168
179
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
169
180
|
# to the HTTP request.
|
170
181
|
#
|
171
182
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
172
183
|
#
|
173
|
-
def
|
184
|
+
def get_async(resource_group_name, lab_name, name, expand = nil, custom_headers = nil)
|
174
185
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
175
186
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
176
187
|
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
@@ -183,14 +194,14 @@ module Azure::ARM::DevTestLabs
|
|
183
194
|
# Set Headers
|
184
195
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
185
196
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
186
|
-
path_template = '
|
197
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{name}'
|
187
198
|
|
188
199
|
request_url = @base_url || @client.base_url
|
189
200
|
|
190
201
|
options = {
|
191
202
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
192
203
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name,'name' => name},
|
193
|
-
query_params: {'api-version' => @client.api_version},
|
204
|
+
query_params: {'$expand' => expand,'api-version' => @client.api_version},
|
194
205
|
headers: request_headers.merge(custom_headers || {}),
|
195
206
|
base_url: request_url
|
196
207
|
}
|
@@ -210,8 +221,8 @@ module Azure::ARM::DevTestLabs
|
|
210
221
|
if status_code == 200
|
211
222
|
begin
|
212
223
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
213
|
-
result_mapper = ArtifactSource.mapper()
|
214
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
224
|
+
result_mapper = Azure::ARM::DevTestLabs::Models::ArtifactSource.mapper()
|
225
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
215
226
|
rescue Exception => e
|
216
227
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
217
228
|
end
|
@@ -229,14 +240,14 @@ module Azure::ARM::DevTestLabs
|
|
229
240
|
# @param resource_group_name [String] The name of the resource group.
|
230
241
|
# @param lab_name [String] The name of the lab.
|
231
242
|
# @param name [String] The name of the artifact source.
|
232
|
-
# @param artifact_source [ArtifactSource]
|
243
|
+
# @param artifact_source [ArtifactSource] Properties of an artifact source.
|
233
244
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
234
245
|
# will be added to the HTTP request.
|
235
246
|
#
|
236
247
|
# @return [ArtifactSource] operation results.
|
237
248
|
#
|
238
|
-
def
|
239
|
-
response =
|
249
|
+
def create_or_update(resource_group_name, lab_name, name, artifact_source, custom_headers = nil)
|
250
|
+
response = create_or_update_async(resource_group_name, lab_name, name, artifact_source, custom_headers).value!
|
240
251
|
response.body unless response.nil?
|
241
252
|
end
|
242
253
|
|
@@ -246,14 +257,14 @@ module Azure::ARM::DevTestLabs
|
|
246
257
|
# @param resource_group_name [String] The name of the resource group.
|
247
258
|
# @param lab_name [String] The name of the lab.
|
248
259
|
# @param name [String] The name of the artifact source.
|
249
|
-
# @param artifact_source [ArtifactSource]
|
260
|
+
# @param artifact_source [ArtifactSource] Properties of an artifact source.
|
250
261
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
251
262
|
# will be added to the HTTP request.
|
252
263
|
#
|
253
264
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
254
265
|
#
|
255
|
-
def
|
256
|
-
|
266
|
+
def create_or_update_with_http_info(resource_group_name, lab_name, name, artifact_source, custom_headers = nil)
|
267
|
+
create_or_update_async(resource_group_name, lab_name, name, artifact_source, custom_headers).value!
|
257
268
|
end
|
258
269
|
|
259
270
|
#
|
@@ -262,13 +273,13 @@ module Azure::ARM::DevTestLabs
|
|
262
273
|
# @param resource_group_name [String] The name of the resource group.
|
263
274
|
# @param lab_name [String] The name of the lab.
|
264
275
|
# @param name [String] The name of the artifact source.
|
265
|
-
# @param artifact_source [ArtifactSource]
|
276
|
+
# @param artifact_source [ArtifactSource] Properties of an artifact source.
|
266
277
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
267
278
|
# to the HTTP request.
|
268
279
|
#
|
269
280
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
270
281
|
#
|
271
|
-
def
|
282
|
+
def create_or_update_async(resource_group_name, lab_name, name, artifact_source, custom_headers = nil)
|
272
283
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
273
284
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
274
285
|
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
@@ -286,11 +297,11 @@ module Azure::ARM::DevTestLabs
|
|
286
297
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
287
298
|
|
288
299
|
# Serialize Request
|
289
|
-
request_mapper = ArtifactSource.mapper()
|
290
|
-
request_content = @client.serialize(request_mapper, artifact_source
|
300
|
+
request_mapper = Azure::ARM::DevTestLabs::Models::ArtifactSource.mapper()
|
301
|
+
request_content = @client.serialize(request_mapper, artifact_source)
|
291
302
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
292
303
|
|
293
|
-
path_template = '
|
304
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{name}'
|
294
305
|
|
295
306
|
request_url = @base_url || @client.base_url
|
296
307
|
|
@@ -318,8 +329,8 @@ module Azure::ARM::DevTestLabs
|
|
318
329
|
if status_code == 200
|
319
330
|
begin
|
320
331
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
321
|
-
result_mapper = ArtifactSource.mapper()
|
322
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
332
|
+
result_mapper = Azure::ARM::DevTestLabs::Models::ArtifactSource.mapper()
|
333
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
323
334
|
rescue Exception => e
|
324
335
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
325
336
|
end
|
@@ -328,8 +339,8 @@ module Azure::ARM::DevTestLabs
|
|
328
339
|
if status_code == 201
|
329
340
|
begin
|
330
341
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
331
|
-
result_mapper = ArtifactSource.mapper()
|
332
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
342
|
+
result_mapper = Azure::ARM::DevTestLabs::Models::ArtifactSource.mapper()
|
343
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
333
344
|
rescue Exception => e
|
334
345
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
335
346
|
end
|
@@ -351,8 +362,8 @@ module Azure::ARM::DevTestLabs
|
|
351
362
|
# will be added to the HTTP request.
|
352
363
|
#
|
353
364
|
#
|
354
|
-
def
|
355
|
-
response =
|
365
|
+
def delete(resource_group_name, lab_name, name, custom_headers = nil)
|
366
|
+
response = delete_async(resource_group_name, lab_name, name, custom_headers).value!
|
356
367
|
nil
|
357
368
|
end
|
358
369
|
|
@@ -367,8 +378,8 @@ module Azure::ARM::DevTestLabs
|
|
367
378
|
#
|
368
379
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
369
380
|
#
|
370
|
-
def
|
371
|
-
|
381
|
+
def delete_with_http_info(resource_group_name, lab_name, name, custom_headers = nil)
|
382
|
+
delete_async(resource_group_name, lab_name, name, custom_headers).value!
|
372
383
|
end
|
373
384
|
|
374
385
|
#
|
@@ -382,7 +393,7 @@ module Azure::ARM::DevTestLabs
|
|
382
393
|
#
|
383
394
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
384
395
|
#
|
385
|
-
def
|
396
|
+
def delete_async(resource_group_name, lab_name, name, custom_headers = nil)
|
386
397
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
387
398
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
388
399
|
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
@@ -395,7 +406,7 @@ module Azure::ARM::DevTestLabs
|
|
395
406
|
# Set Headers
|
396
407
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
397
408
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
398
|
-
path_template = '
|
409
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{name}'
|
399
410
|
|
400
411
|
request_url = @base_url || @client.base_url
|
401
412
|
|
@@ -431,14 +442,15 @@ module Azure::ARM::DevTestLabs
|
|
431
442
|
# @param resource_group_name [String] The name of the resource group.
|
432
443
|
# @param lab_name [String] The name of the lab.
|
433
444
|
# @param name [String] The name of the artifact source.
|
434
|
-
# @param artifact_source [
|
445
|
+
# @param artifact_source [ArtifactSourceFragment] Properties of an artifact
|
446
|
+
# source.
|
435
447
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
436
448
|
# will be added to the HTTP request.
|
437
449
|
#
|
438
450
|
# @return [ArtifactSource] operation results.
|
439
451
|
#
|
440
|
-
def
|
441
|
-
response =
|
452
|
+
def update(resource_group_name, lab_name, name, artifact_source, custom_headers = nil)
|
453
|
+
response = update_async(resource_group_name, lab_name, name, artifact_source, custom_headers).value!
|
442
454
|
response.body unless response.nil?
|
443
455
|
end
|
444
456
|
|
@@ -448,14 +460,15 @@ module Azure::ARM::DevTestLabs
|
|
448
460
|
# @param resource_group_name [String] The name of the resource group.
|
449
461
|
# @param lab_name [String] The name of the lab.
|
450
462
|
# @param name [String] The name of the artifact source.
|
451
|
-
# @param artifact_source [
|
463
|
+
# @param artifact_source [ArtifactSourceFragment] Properties of an artifact
|
464
|
+
# source.
|
452
465
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
453
466
|
# will be added to the HTTP request.
|
454
467
|
#
|
455
468
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
456
469
|
#
|
457
|
-
def
|
458
|
-
|
470
|
+
def update_with_http_info(resource_group_name, lab_name, name, artifact_source, custom_headers = nil)
|
471
|
+
update_async(resource_group_name, lab_name, name, artifact_source, custom_headers).value!
|
459
472
|
end
|
460
473
|
|
461
474
|
#
|
@@ -464,13 +477,14 @@ module Azure::ARM::DevTestLabs
|
|
464
477
|
# @param resource_group_name [String] The name of the resource group.
|
465
478
|
# @param lab_name [String] The name of the lab.
|
466
479
|
# @param name [String] The name of the artifact source.
|
467
|
-
# @param artifact_source [
|
480
|
+
# @param artifact_source [ArtifactSourceFragment] Properties of an artifact
|
481
|
+
# source.
|
468
482
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
469
483
|
# to the HTTP request.
|
470
484
|
#
|
471
485
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
472
486
|
#
|
473
|
-
def
|
487
|
+
def update_async(resource_group_name, lab_name, name, artifact_source, custom_headers = nil)
|
474
488
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
475
489
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
476
490
|
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
@@ -488,11 +502,11 @@ module Azure::ARM::DevTestLabs
|
|
488
502
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
489
503
|
|
490
504
|
# Serialize Request
|
491
|
-
request_mapper =
|
492
|
-
request_content = @client.serialize(request_mapper, artifact_source
|
505
|
+
request_mapper = Azure::ARM::DevTestLabs::Models::ArtifactSourceFragment.mapper()
|
506
|
+
request_content = @client.serialize(request_mapper, artifact_source)
|
493
507
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
494
508
|
|
495
|
-
path_template = '
|
509
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{name}'
|
496
510
|
|
497
511
|
request_url = @base_url || @client.base_url
|
498
512
|
|
@@ -520,8 +534,8 @@ module Azure::ARM::DevTestLabs
|
|
520
534
|
if status_code == 200
|
521
535
|
begin
|
522
536
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
523
|
-
result_mapper = ArtifactSource.mapper()
|
524
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
537
|
+
result_mapper = Azure::ARM::DevTestLabs::Models::ArtifactSource.mapper()
|
538
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
525
539
|
rescue Exception => e
|
526
540
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
527
541
|
end
|
@@ -607,8 +621,8 @@ module Azure::ARM::DevTestLabs
|
|
607
621
|
if status_code == 200
|
608
622
|
begin
|
609
623
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
610
|
-
result_mapper = ResponseWithContinuationArtifactSource.mapper()
|
611
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
624
|
+
result_mapper = Azure::ARM::DevTestLabs::Models::ResponseWithContinuationArtifactSource.mapper()
|
625
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
612
626
|
rescue Exception => e
|
613
627
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
614
628
|
end
|
@@ -625,10 +639,12 @@ module Azure::ARM::DevTestLabs
|
|
625
639
|
#
|
626
640
|
# @param resource_group_name [String] The name of the resource group.
|
627
641
|
# @param lab_name [String] The name of the lab.
|
628
|
-
# @param
|
642
|
+
# @param expand [String] Specify the $expand query. Example:
|
643
|
+
# 'properties($select=displayName)'
|
644
|
+
# @param filter [String] The filter to apply to the operation.
|
629
645
|
# @param top [Integer] The maximum number of resources to return from the
|
630
646
|
# operation.
|
631
|
-
# @param
|
647
|
+
# @param orderby [String] The ordering expression for the results, using OData
|
632
648
|
# notation.
|
633
649
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
634
650
|
# will be added to the HTTP request.
|
@@ -636,8 +652,8 @@ module Azure::ARM::DevTestLabs
|
|
636
652
|
# @return [ResponseWithContinuationArtifactSource] which provide lazy access to
|
637
653
|
# pages of the response.
|
638
654
|
#
|
639
|
-
def list_as_lazy(resource_group_name, lab_name, filter = nil, top = nil,
|
640
|
-
response = list_async(resource_group_name, lab_name, filter, top,
|
655
|
+
def list_as_lazy(resource_group_name, lab_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
|
656
|
+
response = list_async(resource_group_name, lab_name, expand, filter, top, orderby, custom_headers).value!
|
641
657
|
unless response.nil?
|
642
658
|
page = response.body
|
643
659
|
page.next_method = Proc.new do |next_page_link|
|
@@ -1,18 +1,17 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
# Code generated by Microsoft (R) AutoRest Code Generator 1.
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
|
3
3
|
# Changes may cause incorrect behavior and will be lost if the code is
|
4
4
|
# regenerated.
|
5
5
|
|
6
6
|
module Azure::ARM::DevTestLabs
|
7
7
|
#
|
8
|
-
#
|
8
|
+
# The DevTest Labs Client.
|
9
9
|
#
|
10
|
-
class
|
11
|
-
include Azure::ARM::DevTestLabs::Models
|
10
|
+
class Artifacts
|
12
11
|
include MsRestAzure
|
13
12
|
|
14
13
|
#
|
15
|
-
# Creates and initializes a new instance of the
|
14
|
+
# Creates and initializes a new instance of the Artifacts class.
|
16
15
|
# @param client service class for accessing basic functionality.
|
17
16
|
#
|
18
17
|
def initialize(client)
|
@@ -28,18 +27,20 @@ module Azure::ARM::DevTestLabs
|
|
28
27
|
# @param resource_group_name [String] The name of the resource group.
|
29
28
|
# @param lab_name [String] The name of the lab.
|
30
29
|
# @param artifact_source_name [String] The name of the artifact source.
|
31
|
-
# @param
|
30
|
+
# @param expand [String] Specify the $expand query. Example:
|
31
|
+
# 'properties($select=title)'
|
32
|
+
# @param filter [String] The filter to apply to the operation.
|
32
33
|
# @param top [Integer] The maximum number of resources to return from the
|
33
34
|
# operation.
|
34
|
-
# @param
|
35
|
+
# @param orderby [String] The ordering expression for the results, using OData
|
35
36
|
# notation.
|
36
37
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
37
38
|
# will be added to the HTTP request.
|
38
39
|
#
|
39
40
|
# @return [Array<Artifact>] operation results.
|
40
41
|
#
|
41
|
-
def list(resource_group_name, lab_name, artifact_source_name, filter = nil, top = nil,
|
42
|
-
first_page = list_as_lazy(resource_group_name, lab_name, artifact_source_name, filter, top,
|
42
|
+
def list(resource_group_name, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
|
43
|
+
first_page = list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand, filter, top, orderby, custom_headers)
|
43
44
|
first_page.get_all_items
|
44
45
|
end
|
45
46
|
|
@@ -49,18 +50,20 @@ module Azure::ARM::DevTestLabs
|
|
49
50
|
# @param resource_group_name [String] The name of the resource group.
|
50
51
|
# @param lab_name [String] The name of the lab.
|
51
52
|
# @param artifact_source_name [String] The name of the artifact source.
|
52
|
-
# @param
|
53
|
+
# @param expand [String] Specify the $expand query. Example:
|
54
|
+
# 'properties($select=title)'
|
55
|
+
# @param filter [String] The filter to apply to the operation.
|
53
56
|
# @param top [Integer] The maximum number of resources to return from the
|
54
57
|
# operation.
|
55
|
-
# @param
|
58
|
+
# @param orderby [String] The ordering expression for the results, using OData
|
56
59
|
# notation.
|
57
60
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
58
61
|
# will be added to the HTTP request.
|
59
62
|
#
|
60
63
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
61
64
|
#
|
62
|
-
def list_with_http_info(resource_group_name, lab_name, artifact_source_name, filter = nil, top = nil,
|
63
|
-
list_async(resource_group_name, lab_name, artifact_source_name, filter, top,
|
65
|
+
def list_with_http_info(resource_group_name, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
|
66
|
+
list_async(resource_group_name, lab_name, artifact_source_name, expand, filter, top, orderby, custom_headers).value!
|
64
67
|
end
|
65
68
|
|
66
69
|
#
|
@@ -69,17 +72,19 @@ module Azure::ARM::DevTestLabs
|
|
69
72
|
# @param resource_group_name [String] The name of the resource group.
|
70
73
|
# @param lab_name [String] The name of the lab.
|
71
74
|
# @param artifact_source_name [String] The name of the artifact source.
|
72
|
-
# @param
|
75
|
+
# @param expand [String] Specify the $expand query. Example:
|
76
|
+
# 'properties($select=title)'
|
77
|
+
# @param filter [String] The filter to apply to the operation.
|
73
78
|
# @param top [Integer] The maximum number of resources to return from the
|
74
79
|
# operation.
|
75
|
-
# @param
|
80
|
+
# @param orderby [String] The ordering expression for the results, using OData
|
76
81
|
# notation.
|
77
82
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
78
83
|
# to the HTTP request.
|
79
84
|
#
|
80
85
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
81
86
|
#
|
82
|
-
def list_async(resource_group_name, lab_name, artifact_source_name, filter = nil, top = nil,
|
87
|
+
def list_async(resource_group_name, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
|
83
88
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
84
89
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
85
90
|
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
@@ -92,14 +97,14 @@ module Azure::ARM::DevTestLabs
|
|
92
97
|
# Set Headers
|
93
98
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
94
99
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
95
|
-
path_template = '
|
100
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts'
|
96
101
|
|
97
102
|
request_url = @base_url || @client.base_url
|
98
103
|
|
99
104
|
options = {
|
100
105
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
101
106
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name,'artifactSourceName' => artifact_source_name},
|
102
|
-
query_params: {'$filter' => filter,'$top' => top,'$
|
107
|
+
query_params: {'$expand' => expand,'$filter' => filter,'$top' => top,'$orderby' => orderby,'api-version' => @client.api_version},
|
103
108
|
headers: request_headers.merge(custom_headers || {}),
|
104
109
|
base_url: request_url
|
105
110
|
}
|
@@ -119,8 +124,8 @@ module Azure::ARM::DevTestLabs
|
|
119
124
|
if status_code == 200
|
120
125
|
begin
|
121
126
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
122
|
-
result_mapper = ResponseWithContinuationArtifact.mapper()
|
123
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
127
|
+
result_mapper = Azure::ARM::DevTestLabs::Models::ResponseWithContinuationArtifact.mapper()
|
128
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
124
129
|
rescue Exception => e
|
125
130
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
126
131
|
end
|
@@ -139,13 +144,15 @@ module Azure::ARM::DevTestLabs
|
|
139
144
|
# @param lab_name [String] The name of the lab.
|
140
145
|
# @param artifact_source_name [String] The name of the artifact source.
|
141
146
|
# @param name [String] The name of the artifact.
|
147
|
+
# @param expand [String] Specify the $expand query. Example:
|
148
|
+
# 'properties($select=title)'
|
142
149
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
143
150
|
# will be added to the HTTP request.
|
144
151
|
#
|
145
152
|
# @return [Artifact] operation results.
|
146
153
|
#
|
147
|
-
def
|
148
|
-
response =
|
154
|
+
def get(resource_group_name, lab_name, artifact_source_name, name, expand = nil, custom_headers = nil)
|
155
|
+
response = get_async(resource_group_name, lab_name, artifact_source_name, name, expand, custom_headers).value!
|
149
156
|
response.body unless response.nil?
|
150
157
|
end
|
151
158
|
|
@@ -156,13 +163,15 @@ module Azure::ARM::DevTestLabs
|
|
156
163
|
# @param lab_name [String] The name of the lab.
|
157
164
|
# @param artifact_source_name [String] The name of the artifact source.
|
158
165
|
# @param name [String] The name of the artifact.
|
166
|
+
# @param expand [String] Specify the $expand query. Example:
|
167
|
+
# 'properties($select=title)'
|
159
168
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
160
169
|
# will be added to the HTTP request.
|
161
170
|
#
|
162
171
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
163
172
|
#
|
164
|
-
def
|
165
|
-
|
173
|
+
def get_with_http_info(resource_group_name, lab_name, artifact_source_name, name, expand = nil, custom_headers = nil)
|
174
|
+
get_async(resource_group_name, lab_name, artifact_source_name, name, expand, custom_headers).value!
|
166
175
|
end
|
167
176
|
|
168
177
|
#
|
@@ -172,12 +181,14 @@ module Azure::ARM::DevTestLabs
|
|
172
181
|
# @param lab_name [String] The name of the lab.
|
173
182
|
# @param artifact_source_name [String] The name of the artifact source.
|
174
183
|
# @param name [String] The name of the artifact.
|
184
|
+
# @param expand [String] Specify the $expand query. Example:
|
185
|
+
# 'properties($select=title)'
|
175
186
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
176
187
|
# to the HTTP request.
|
177
188
|
#
|
178
189
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
179
190
|
#
|
180
|
-
def
|
191
|
+
def get_async(resource_group_name, lab_name, artifact_source_name, name, expand = nil, custom_headers = nil)
|
181
192
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
182
193
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
183
194
|
fail ArgumentError, 'lab_name is nil' if lab_name.nil?
|
@@ -191,14 +202,14 @@ module Azure::ARM::DevTestLabs
|
|
191
202
|
# Set Headers
|
192
203
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
193
204
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
194
|
-
path_template = '
|
205
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{name}'
|
195
206
|
|
196
207
|
request_url = @base_url || @client.base_url
|
197
208
|
|
198
209
|
options = {
|
199
210
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
200
211
|
path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'labName' => lab_name,'artifactSourceName' => artifact_source_name,'name' => name},
|
201
|
-
query_params: {'api-version' => @client.api_version},
|
212
|
+
query_params: {'$expand' => expand,'api-version' => @client.api_version},
|
202
213
|
headers: request_headers.merge(custom_headers || {}),
|
203
214
|
base_url: request_url
|
204
215
|
}
|
@@ -218,8 +229,8 @@ module Azure::ARM::DevTestLabs
|
|
218
229
|
if status_code == 200
|
219
230
|
begin
|
220
231
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
221
|
-
result_mapper = Artifact.mapper()
|
222
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
232
|
+
result_mapper = Azure::ARM::DevTestLabs::Models::Artifact.mapper()
|
233
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
223
234
|
rescue Exception => e
|
224
235
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
225
236
|
end
|
@@ -239,7 +250,8 @@ module Azure::ARM::DevTestLabs
|
|
239
250
|
# @param lab_name [String] The name of the lab.
|
240
251
|
# @param artifact_source_name [String] The name of the artifact source.
|
241
252
|
# @param name [String] The name of the artifact.
|
242
|
-
# @param generate_arm_template_request [GenerateArmTemplateRequest]
|
253
|
+
# @param generate_arm_template_request [GenerateArmTemplateRequest] Parameters
|
254
|
+
# for generating an ARM template for deploying artifacts.
|
243
255
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
244
256
|
# will be added to the HTTP request.
|
245
257
|
#
|
@@ -258,7 +270,8 @@ module Azure::ARM::DevTestLabs
|
|
258
270
|
# @param lab_name [String] The name of the lab.
|
259
271
|
# @param artifact_source_name [String] The name of the artifact source.
|
260
272
|
# @param name [String] The name of the artifact.
|
261
|
-
# @param generate_arm_template_request [GenerateArmTemplateRequest]
|
273
|
+
# @param generate_arm_template_request [GenerateArmTemplateRequest] Parameters
|
274
|
+
# for generating an ARM template for deploying artifacts.
|
262
275
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
263
276
|
# will be added to the HTTP request.
|
264
277
|
#
|
@@ -276,7 +289,8 @@ module Azure::ARM::DevTestLabs
|
|
276
289
|
# @param lab_name [String] The name of the lab.
|
277
290
|
# @param artifact_source_name [String] The name of the artifact source.
|
278
291
|
# @param name [String] The name of the artifact.
|
279
|
-
# @param generate_arm_template_request [GenerateArmTemplateRequest]
|
292
|
+
# @param generate_arm_template_request [GenerateArmTemplateRequest] Parameters
|
293
|
+
# for generating an ARM template for deploying artifacts.
|
280
294
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
281
295
|
# to the HTTP request.
|
282
296
|
#
|
@@ -301,11 +315,11 @@ module Azure::ARM::DevTestLabs
|
|
301
315
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
302
316
|
|
303
317
|
# Serialize Request
|
304
|
-
request_mapper = GenerateArmTemplateRequest.mapper()
|
305
|
-
request_content = @client.serialize(request_mapper, generate_arm_template_request
|
318
|
+
request_mapper = Azure::ARM::DevTestLabs::Models::GenerateArmTemplateRequest.mapper()
|
319
|
+
request_content = @client.serialize(request_mapper, generate_arm_template_request)
|
306
320
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
307
321
|
|
308
|
-
path_template = '
|
322
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{artifactSourceName}/artifacts/{name}/generateArmTemplate'
|
309
323
|
|
310
324
|
request_url = @base_url || @client.base_url
|
311
325
|
|
@@ -333,8 +347,8 @@ module Azure::ARM::DevTestLabs
|
|
333
347
|
if status_code == 200
|
334
348
|
begin
|
335
349
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
336
|
-
result_mapper = ArmTemplateInfo.mapper()
|
337
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
350
|
+
result_mapper = Azure::ARM::DevTestLabs::Models::ArmTemplateInfo.mapper()
|
351
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
338
352
|
rescue Exception => e
|
339
353
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
340
354
|
end
|
@@ -420,8 +434,8 @@ module Azure::ARM::DevTestLabs
|
|
420
434
|
if status_code == 200
|
421
435
|
begin
|
422
436
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
423
|
-
result_mapper = ResponseWithContinuationArtifact.mapper()
|
424
|
-
result.body = @client.deserialize(result_mapper, parsed_response
|
437
|
+
result_mapper = Azure::ARM::DevTestLabs::Models::ResponseWithContinuationArtifact.mapper()
|
438
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
425
439
|
rescue Exception => e
|
426
440
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
427
441
|
end
|
@@ -439,10 +453,12 @@ module Azure::ARM::DevTestLabs
|
|
439
453
|
# @param resource_group_name [String] The name of the resource group.
|
440
454
|
# @param lab_name [String] The name of the lab.
|
441
455
|
# @param artifact_source_name [String] The name of the artifact source.
|
442
|
-
# @param
|
456
|
+
# @param expand [String] Specify the $expand query. Example:
|
457
|
+
# 'properties($select=title)'
|
458
|
+
# @param filter [String] The filter to apply to the operation.
|
443
459
|
# @param top [Integer] The maximum number of resources to return from the
|
444
460
|
# operation.
|
445
|
-
# @param
|
461
|
+
# @param orderby [String] The ordering expression for the results, using OData
|
446
462
|
# notation.
|
447
463
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
448
464
|
# will be added to the HTTP request.
|
@@ -450,8 +466,8 @@ module Azure::ARM::DevTestLabs
|
|
450
466
|
# @return [ResponseWithContinuationArtifact] which provide lazy access to pages
|
451
467
|
# of the response.
|
452
468
|
#
|
453
|
-
def list_as_lazy(resource_group_name, lab_name, artifact_source_name, filter = nil, top = nil,
|
454
|
-
response = list_async(resource_group_name, lab_name, artifact_source_name, filter, top,
|
469
|
+
def list_as_lazy(resource_group_name, lab_name, artifact_source_name, expand = nil, filter = nil, top = nil, orderby = nil, custom_headers = nil)
|
470
|
+
response = list_async(resource_group_name, lab_name, artifact_source_name, expand, filter, top, orderby, custom_headers).value!
|
455
471
|
unless response.nil?
|
456
472
|
page = response.body
|
457
473
|
page.next_method = Proc.new do |next_page_link|
|