azure_mgmt_scheduler 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/azure_mgmt_scheduler.gemspec +4 -5
- data/lib/azure_mgmt_scheduler.rb +3 -72
- data/lib/generated/azure_mgmt_scheduler.rb +74 -0
- data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/job_collections.rb +146 -59
- data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/jobs.rb +105 -50
- data/lib/generated/azure_mgmt_scheduler/models/basic_authentication.rb +62 -0
- data/lib/generated/azure_mgmt_scheduler/models/client_cert_authentication.rb +92 -0
- data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/day_of_week.rb +0 -0
- data/lib/generated/azure_mgmt_scheduler/models/http_authentication.rb +47 -0
- data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/http_authentication_type.rb +0 -0
- data/lib/generated/azure_mgmt_scheduler/models/http_request.rb +92 -0
- data/lib/generated/azure_mgmt_scheduler/models/job_action.rb +115 -0
- data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/job_action_type.rb +0 -0
- data/lib/generated/azure_mgmt_scheduler/models/job_collection_definition.rb +105 -0
- data/lib/generated/azure_mgmt_scheduler/models/job_collection_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_scheduler/models/job_collection_properties.rb +68 -0
- data/lib/generated/azure_mgmt_scheduler/models/job_collection_quota.rb +65 -0
- data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/job_collection_state.rb +0 -0
- data/lib/generated/azure_mgmt_scheduler/models/job_definition.rb +78 -0
- data/lib/generated/azure_mgmt_scheduler/models/job_error_action.rb +104 -0
- data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/job_execution_status.rb +0 -0
- data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/job_history_action_name.rb +0 -0
- data/lib/generated/azure_mgmt_scheduler/models/job_history_definition.rb +80 -0
- data/lib/generated/azure_mgmt_scheduler/models/job_history_definition_properties.rb +126 -0
- data/lib/generated/azure_mgmt_scheduler/models/job_history_filter.rb +46 -0
- data/lib/generated/azure_mgmt_scheduler/models/job_history_list_result.rb +95 -0
- data/lib/generated/azure_mgmt_scheduler/models/job_list_result.rb +94 -0
- data/lib/generated/azure_mgmt_scheduler/models/job_max_recurrence.rb +57 -0
- data/lib/generated/azure_mgmt_scheduler/models/job_properties.rb +90 -0
- data/lib/generated/azure_mgmt_scheduler/models/job_recurrence.rb +90 -0
- data/lib/generated/azure_mgmt_scheduler/models/job_recurrence_schedule.rb +126 -0
- data/lib/generated/azure_mgmt_scheduler/models/job_recurrence_schedule_monthly_occurrence.rb +59 -0
- data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/job_schedule_day.rb +0 -0
- data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/job_state.rb +0 -0
- data/lib/generated/azure_mgmt_scheduler/models/job_state_filter.rb +46 -0
- data/lib/generated/azure_mgmt_scheduler/models/job_status.rb +93 -0
- data/lib/generated/azure_mgmt_scheduler/models/oauth_authentication.rb +82 -0
- data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/recurrence_frequency.rb +0 -0
- data/lib/generated/azure_mgmt_scheduler/models/retry_policy.rb +67 -0
- data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/retry_type.rb +0 -0
- data/lib/generated/azure_mgmt_scheduler/models/service_bus_authentication.rb +66 -0
- data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/service_bus_authentication_type.rb +0 -0
- data/lib/generated/azure_mgmt_scheduler/models/service_bus_brokered_message_properties.rb +164 -0
- data/lib/generated/azure_mgmt_scheduler/models/service_bus_message.rb +107 -0
- data/lib/generated/azure_mgmt_scheduler/models/service_bus_queue_message.rb +96 -0
- data/lib/generated/azure_mgmt_scheduler/models/service_bus_topic_message.rb +96 -0
- data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/service_bus_transport_type.rb +0 -0
- data/lib/generated/azure_mgmt_scheduler/models/sku.rb +46 -0
- data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/sku_definition.rb +0 -0
- data/lib/generated/azure_mgmt_scheduler/models/storage_queue_message.rb +74 -0
- data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/module_definition.rb +0 -0
- data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/scheduler_management_client.rb +4 -4
- data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/version.rb +1 -1
- metadata +72 -92
- data/lib/azure_mgmt_scheduler/models/basic_authentication.rb +0 -75
- data/lib/azure_mgmt_scheduler/models/client_cert_authentication.rb +0 -104
- data/lib/azure_mgmt_scheduler/models/http_authentication.rb +0 -61
- data/lib/azure_mgmt_scheduler/models/http_request.rb +0 -99
- data/lib/azure_mgmt_scheduler/models/job_action.rb +0 -159
- data/lib/azure_mgmt_scheduler/models/job_collection_definition.rb +0 -109
- data/lib/azure_mgmt_scheduler/models/job_collection_list_result.rb +0 -86
- data/lib/azure_mgmt_scheduler/models/job_collection_properties.rb +0 -92
- data/lib/azure_mgmt_scheduler/models/job_collection_quota.rb +0 -82
- data/lib/azure_mgmt_scheduler/models/job_definition.rb +0 -89
- data/lib/azure_mgmt_scheduler/models/job_error_action.rb +0 -143
- data/lib/azure_mgmt_scheduler/models/job_history_definition.rb +0 -90
- data/lib/azure_mgmt_scheduler/models/job_history_definition_properties.rb +0 -136
- data/lib/azure_mgmt_scheduler/models/job_history_filter.rb +0 -60
- data/lib/azure_mgmt_scheduler/models/job_history_list_result.rb +0 -87
- data/lib/azure_mgmt_scheduler/models/job_list_result.rb +0 -86
- data/lib/azure_mgmt_scheduler/models/job_max_recurrence.rb +0 -71
- data/lib/azure_mgmt_scheduler/models/job_properties.rb +0 -119
- data/lib/azure_mgmt_scheduler/models/job_recurrence.rb +0 -110
- data/lib/azure_mgmt_scheduler/models/job_recurrence_schedule.rb +0 -156
- data/lib/azure_mgmt_scheduler/models/job_recurrence_schedule_monthly_occurrence.rb +0 -73
- data/lib/azure_mgmt_scheduler/models/job_state_filter.rb +0 -60
- data/lib/azure_mgmt_scheduler/models/job_status.rb +0 -103
- data/lib/azure_mgmt_scheduler/models/oauth_authentication.rb +0 -93
- data/lib/azure_mgmt_scheduler/models/retry_policy.rb +0 -80
- data/lib/azure_mgmt_scheduler/models/service_bus_authentication.rb +0 -78
- data/lib/azure_mgmt_scheduler/models/service_bus_brokered_message_properties.rb +0 -168
- data/lib/azure_mgmt_scheduler/models/service_bus_message.rb +0 -122
- data/lib/azure_mgmt_scheduler/models/service_bus_queue_message.rb +0 -108
- data/lib/azure_mgmt_scheduler/models/service_bus_topic_message.rb +0 -108
- data/lib/azure_mgmt_scheduler/models/sku.rb +0 -60
- data/lib/azure_mgmt_scheduler/models/storage_queue_message.rb +0 -83
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ZGI5N2FhMzBjZTQyNzFhMjZkYmM3MzhhMWQ5MmI1N2VlOGIyZjdmZg==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 1a7d07d5296b1784ff324a009b9613133ec5395a
|
4
|
+
data.tar.gz: e7a31138b8f2c683e00133140f47768bca65049f
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
MWUwMzY2ZmZlODIyMWZhNGEyOTQ5NjhkOTk0OWMyYmQxYWFjMTZhMDZjNjYy
|
11
|
-
MTgwNDRkNmNhYTg1NWE1NDRhYTg1N2YxMmMwYWY3NGI1Nzk4ZWY=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MTljMGJlMzVkNjk5MDU1ZmQ5YzEzZTVmYTdkYTg1YTY1YTBjYjlhZWE0ZWJm
|
14
|
-
MzAwZmVjMjZkZThkMWFkZTFmYWI0YmMwNjlkZmM3MDUyZTg4MDIxMjliYzkz
|
15
|
-
MTdiMmFkNWUwYTUxNTdmOTlkMTE5NGE2ZDU2N2VjYTkzMmFmZTA=
|
6
|
+
metadata.gz: d3d9c533a0885463fb494b881d4f9d55b46bdb5b8c940f747e407638ef5db1a3df27d418a4c7a455f3b2495a1d6e666067225ad616aec127e1178d9bc7c0d170
|
7
|
+
data.tar.gz: 9359e1743695d92b32bbf172dd5d941e731d39fcd1c1288935d4851762301273ed57b9e54bfa7a3d409020260b496425ade0bba6697567b8aa0fc873b2c78192
|
@@ -5,8 +5,8 @@
|
|
5
5
|
lib = File.expand_path('../lib', __FILE__)
|
6
6
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
7
7
|
|
8
|
-
require 'azure_mgmt_scheduler/module_definition'
|
9
|
-
require 'azure_mgmt_scheduler/version'
|
8
|
+
require 'generated/azure_mgmt_scheduler/module_definition'
|
9
|
+
require 'generated/azure_mgmt_scheduler/version'
|
10
10
|
|
11
11
|
Gem::Specification.new do |spec|
|
12
12
|
spec.name = 'azure_mgmt_scheduler'
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.email = 'azrubyteam@microsoft.com'
|
16
16
|
spec.description = 'Microsoft Azure Scheduler Management Client Library for Ruby'
|
17
17
|
spec.summary = 'Official Ruby client library to consume Microsoft Azure Scheduler Management services.'
|
18
|
-
spec.homepage = '
|
18
|
+
spec.homepage = 'https://aka.ms/azure-sdk-for-ruby'
|
19
19
|
spec.license = 'MIT'
|
20
20
|
|
21
21
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
@@ -29,7 +29,6 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_development_dependency 'rake', '~> 10'
|
30
30
|
spec.add_development_dependency 'rspec', '~> 3'
|
31
31
|
spec.add_development_dependency 'dotenv', '~> 2'
|
32
|
-
spec.add_development_dependency 'azure_mgmt_resources', '~> 0.3'
|
33
32
|
|
34
|
-
spec.add_runtime_dependency 'ms_rest_azure', '~> 0.
|
33
|
+
spec.add_runtime_dependency 'ms_rest_azure', '~> 0.3.0'
|
35
34
|
end
|
data/lib/azure_mgmt_scheduler.rb
CHANGED
@@ -1,74 +1,5 @@
|
|
1
1
|
# encoding: utf-8
|
2
|
-
#
|
3
|
-
#
|
4
|
-
# regenerated.
|
2
|
+
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
|
+
# Licensed under the MIT License. See License.txt in the project root for license information.
|
5
4
|
|
6
|
-
require '
|
7
|
-
require 'cgi'
|
8
|
-
require 'date'
|
9
|
-
require 'json'
|
10
|
-
require 'base64'
|
11
|
-
require 'erb'
|
12
|
-
require 'securerandom'
|
13
|
-
require 'time'
|
14
|
-
require 'timeliness'
|
15
|
-
require 'faraday'
|
16
|
-
require 'faraday-cookie_jar'
|
17
|
-
require 'concurrent'
|
18
|
-
require 'ms_rest'
|
19
|
-
require 'azure_mgmt_scheduler/module_definition'
|
20
|
-
require 'ms_rest_azure'
|
21
|
-
|
22
|
-
module Azure::ARM::Scheduler
|
23
|
-
autoload :JobCollections, 'azure_mgmt_scheduler/job_collections.rb'
|
24
|
-
autoload :Jobs, 'azure_mgmt_scheduler/jobs.rb'
|
25
|
-
autoload :SchedulerManagementClient, 'azure_mgmt_scheduler/scheduler_management_client.rb'
|
26
|
-
|
27
|
-
module Models
|
28
|
-
autoload :JobCollectionListResult, 'azure_mgmt_scheduler/models/job_collection_list_result.rb'
|
29
|
-
autoload :JobCollectionDefinition, 'azure_mgmt_scheduler/models/job_collection_definition.rb'
|
30
|
-
autoload :JobCollectionProperties, 'azure_mgmt_scheduler/models/job_collection_properties.rb'
|
31
|
-
autoload :Sku, 'azure_mgmt_scheduler/models/sku.rb'
|
32
|
-
autoload :JobCollectionQuota, 'azure_mgmt_scheduler/models/job_collection_quota.rb'
|
33
|
-
autoload :JobMaxRecurrence, 'azure_mgmt_scheduler/models/job_max_recurrence.rb'
|
34
|
-
autoload :JobListResult, 'azure_mgmt_scheduler/models/job_list_result.rb'
|
35
|
-
autoload :JobDefinition, 'azure_mgmt_scheduler/models/job_definition.rb'
|
36
|
-
autoload :JobProperties, 'azure_mgmt_scheduler/models/job_properties.rb'
|
37
|
-
autoload :JobAction, 'azure_mgmt_scheduler/models/job_action.rb'
|
38
|
-
autoload :HttpRequest, 'azure_mgmt_scheduler/models/http_request.rb'
|
39
|
-
autoload :HttpAuthentication, 'azure_mgmt_scheduler/models/http_authentication.rb'
|
40
|
-
autoload :StorageQueueMessage, 'azure_mgmt_scheduler/models/storage_queue_message.rb'
|
41
|
-
autoload :RetryPolicy, 'azure_mgmt_scheduler/models/retry_policy.rb'
|
42
|
-
autoload :JobErrorAction, 'azure_mgmt_scheduler/models/job_error_action.rb'
|
43
|
-
autoload :JobRecurrence, 'azure_mgmt_scheduler/models/job_recurrence.rb'
|
44
|
-
autoload :JobRecurrenceSchedule, 'azure_mgmt_scheduler/models/job_recurrence_schedule.rb'
|
45
|
-
autoload :JobRecurrenceScheduleMonthlyOccurrence, 'azure_mgmt_scheduler/models/job_recurrence_schedule_monthly_occurrence.rb'
|
46
|
-
autoload :JobStatus, 'azure_mgmt_scheduler/models/job_status.rb'
|
47
|
-
autoload :JobHistoryListResult, 'azure_mgmt_scheduler/models/job_history_list_result.rb'
|
48
|
-
autoload :JobHistoryDefinition, 'azure_mgmt_scheduler/models/job_history_definition.rb'
|
49
|
-
autoload :JobHistoryDefinitionProperties, 'azure_mgmt_scheduler/models/job_history_definition_properties.rb'
|
50
|
-
autoload :ServiceBusMessage, 'azure_mgmt_scheduler/models/service_bus_message.rb'
|
51
|
-
autoload :ServiceBusAuthentication, 'azure_mgmt_scheduler/models/service_bus_authentication.rb'
|
52
|
-
autoload :ServiceBusBrokeredMessageProperties, 'azure_mgmt_scheduler/models/service_bus_brokered_message_properties.rb'
|
53
|
-
autoload :JobStateFilter, 'azure_mgmt_scheduler/models/job_state_filter.rb'
|
54
|
-
autoload :JobHistoryFilter, 'azure_mgmt_scheduler/models/job_history_filter.rb'
|
55
|
-
autoload :ServiceBusQueueMessage, 'azure_mgmt_scheduler/models/service_bus_queue_message.rb'
|
56
|
-
autoload :ServiceBusTopicMessage, 'azure_mgmt_scheduler/models/service_bus_topic_message.rb'
|
57
|
-
autoload :ClientCertAuthentication, 'azure_mgmt_scheduler/models/client_cert_authentication.rb'
|
58
|
-
autoload :BasicAuthentication, 'azure_mgmt_scheduler/models/basic_authentication.rb'
|
59
|
-
autoload :OAuthAuthentication, 'azure_mgmt_scheduler/models/oauth_authentication.rb'
|
60
|
-
autoload :SkuDefinition, 'azure_mgmt_scheduler/models/sku_definition.rb'
|
61
|
-
autoload :JobCollectionState, 'azure_mgmt_scheduler/models/job_collection_state.rb'
|
62
|
-
autoload :RecurrenceFrequency, 'azure_mgmt_scheduler/models/recurrence_frequency.rb'
|
63
|
-
autoload :JobActionType, 'azure_mgmt_scheduler/models/job_action_type.rb'
|
64
|
-
autoload :HttpAuthenticationType, 'azure_mgmt_scheduler/models/http_authentication_type.rb'
|
65
|
-
autoload :RetryType, 'azure_mgmt_scheduler/models/retry_type.rb'
|
66
|
-
autoload :DayOfWeek, 'azure_mgmt_scheduler/models/day_of_week.rb'
|
67
|
-
autoload :JobScheduleDay, 'azure_mgmt_scheduler/models/job_schedule_day.rb'
|
68
|
-
autoload :JobState, 'azure_mgmt_scheduler/models/job_state.rb'
|
69
|
-
autoload :JobHistoryActionName, 'azure_mgmt_scheduler/models/job_history_action_name.rb'
|
70
|
-
autoload :JobExecutionStatus, 'azure_mgmt_scheduler/models/job_execution_status.rb'
|
71
|
-
autoload :ServiceBusAuthenticationType, 'azure_mgmt_scheduler/models/service_bus_authentication_type.rb'
|
72
|
-
autoload :ServiceBusTransportType, 'azure_mgmt_scheduler/models/service_bus_transport_type.rb'
|
73
|
-
end
|
74
|
-
end
|
5
|
+
require 'generated/azure_mgmt_scheduler'
|
@@ -0,0 +1,74 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
require 'uri'
|
7
|
+
require 'cgi'
|
8
|
+
require 'date'
|
9
|
+
require 'json'
|
10
|
+
require 'base64'
|
11
|
+
require 'erb'
|
12
|
+
require 'securerandom'
|
13
|
+
require 'time'
|
14
|
+
require 'timeliness'
|
15
|
+
require 'faraday'
|
16
|
+
require 'faraday-cookie_jar'
|
17
|
+
require 'concurrent'
|
18
|
+
require 'ms_rest'
|
19
|
+
require 'generated/azure_mgmt_scheduler/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::ARM::Scheduler
|
23
|
+
autoload :JobCollections, 'generated/azure_mgmt_scheduler/job_collections.rb'
|
24
|
+
autoload :Jobs, 'generated/azure_mgmt_scheduler/jobs.rb'
|
25
|
+
autoload :SchedulerManagementClient, 'generated/azure_mgmt_scheduler/scheduler_management_client.rb'
|
26
|
+
|
27
|
+
module Models
|
28
|
+
autoload :JobCollectionListResult, 'generated/azure_mgmt_scheduler/models/job_collection_list_result.rb'
|
29
|
+
autoload :JobCollectionDefinition, 'generated/azure_mgmt_scheduler/models/job_collection_definition.rb'
|
30
|
+
autoload :JobCollectionProperties, 'generated/azure_mgmt_scheduler/models/job_collection_properties.rb'
|
31
|
+
autoload :Sku, 'generated/azure_mgmt_scheduler/models/sku.rb'
|
32
|
+
autoload :JobCollectionQuota, 'generated/azure_mgmt_scheduler/models/job_collection_quota.rb'
|
33
|
+
autoload :JobMaxRecurrence, 'generated/azure_mgmt_scheduler/models/job_max_recurrence.rb'
|
34
|
+
autoload :JobListResult, 'generated/azure_mgmt_scheduler/models/job_list_result.rb'
|
35
|
+
autoload :JobDefinition, 'generated/azure_mgmt_scheduler/models/job_definition.rb'
|
36
|
+
autoload :JobProperties, 'generated/azure_mgmt_scheduler/models/job_properties.rb'
|
37
|
+
autoload :JobAction, 'generated/azure_mgmt_scheduler/models/job_action.rb'
|
38
|
+
autoload :HttpRequest, 'generated/azure_mgmt_scheduler/models/http_request.rb'
|
39
|
+
autoload :HttpAuthentication, 'generated/azure_mgmt_scheduler/models/http_authentication.rb'
|
40
|
+
autoload :StorageQueueMessage, 'generated/azure_mgmt_scheduler/models/storage_queue_message.rb'
|
41
|
+
autoload :RetryPolicy, 'generated/azure_mgmt_scheduler/models/retry_policy.rb'
|
42
|
+
autoload :JobErrorAction, 'generated/azure_mgmt_scheduler/models/job_error_action.rb'
|
43
|
+
autoload :JobRecurrence, 'generated/azure_mgmt_scheduler/models/job_recurrence.rb'
|
44
|
+
autoload :JobRecurrenceSchedule, 'generated/azure_mgmt_scheduler/models/job_recurrence_schedule.rb'
|
45
|
+
autoload :JobRecurrenceScheduleMonthlyOccurrence, 'generated/azure_mgmt_scheduler/models/job_recurrence_schedule_monthly_occurrence.rb'
|
46
|
+
autoload :JobStatus, 'generated/azure_mgmt_scheduler/models/job_status.rb'
|
47
|
+
autoload :JobHistoryListResult, 'generated/azure_mgmt_scheduler/models/job_history_list_result.rb'
|
48
|
+
autoload :JobHistoryDefinition, 'generated/azure_mgmt_scheduler/models/job_history_definition.rb'
|
49
|
+
autoload :JobHistoryDefinitionProperties, 'generated/azure_mgmt_scheduler/models/job_history_definition_properties.rb'
|
50
|
+
autoload :ServiceBusMessage, 'generated/azure_mgmt_scheduler/models/service_bus_message.rb'
|
51
|
+
autoload :ServiceBusAuthentication, 'generated/azure_mgmt_scheduler/models/service_bus_authentication.rb'
|
52
|
+
autoload :ServiceBusBrokeredMessageProperties, 'generated/azure_mgmt_scheduler/models/service_bus_brokered_message_properties.rb'
|
53
|
+
autoload :JobStateFilter, 'generated/azure_mgmt_scheduler/models/job_state_filter.rb'
|
54
|
+
autoload :JobHistoryFilter, 'generated/azure_mgmt_scheduler/models/job_history_filter.rb'
|
55
|
+
autoload :ServiceBusQueueMessage, 'generated/azure_mgmt_scheduler/models/service_bus_queue_message.rb'
|
56
|
+
autoload :ServiceBusTopicMessage, 'generated/azure_mgmt_scheduler/models/service_bus_topic_message.rb'
|
57
|
+
autoload :ClientCertAuthentication, 'generated/azure_mgmt_scheduler/models/client_cert_authentication.rb'
|
58
|
+
autoload :BasicAuthentication, 'generated/azure_mgmt_scheduler/models/basic_authentication.rb'
|
59
|
+
autoload :OAuthAuthentication, 'generated/azure_mgmt_scheduler/models/oauth_authentication.rb'
|
60
|
+
autoload :SkuDefinition, 'generated/azure_mgmt_scheduler/models/sku_definition.rb'
|
61
|
+
autoload :JobCollectionState, 'generated/azure_mgmt_scheduler/models/job_collection_state.rb'
|
62
|
+
autoload :RecurrenceFrequency, 'generated/azure_mgmt_scheduler/models/recurrence_frequency.rb'
|
63
|
+
autoload :JobActionType, 'generated/azure_mgmt_scheduler/models/job_action_type.rb'
|
64
|
+
autoload :HttpAuthenticationType, 'generated/azure_mgmt_scheduler/models/http_authentication_type.rb'
|
65
|
+
autoload :RetryType, 'generated/azure_mgmt_scheduler/models/retry_type.rb'
|
66
|
+
autoload :DayOfWeek, 'generated/azure_mgmt_scheduler/models/day_of_week.rb'
|
67
|
+
autoload :JobScheduleDay, 'generated/azure_mgmt_scheduler/models/job_schedule_day.rb'
|
68
|
+
autoload :JobState, 'generated/azure_mgmt_scheduler/models/job_state.rb'
|
69
|
+
autoload :JobHistoryActionName, 'generated/azure_mgmt_scheduler/models/job_history_action_name.rb'
|
70
|
+
autoload :JobExecutionStatus, 'generated/azure_mgmt_scheduler/models/job_execution_status.rb'
|
71
|
+
autoload :ServiceBusAuthenticationType, 'generated/azure_mgmt_scheduler/models/service_bus_authentication_type.rb'
|
72
|
+
autoload :ServiceBusTransportType, 'generated/azure_mgmt_scheduler/models/service_bus_transport_type.rb'
|
73
|
+
end
|
74
|
+
end
|
@@ -28,11 +28,31 @@ module Azure::ARM::Scheduler
|
|
28
28
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
29
29
|
# will be added to the HTTP request.
|
30
30
|
#
|
31
|
-
# @return [JobCollectionListResult]
|
31
|
+
# @return [JobCollectionListResult] which provide lazy access to pages of the
|
32
|
+
# response.
|
32
33
|
#
|
33
|
-
def
|
34
|
+
def list_by_subscription_as_lazy(custom_headers = nil)
|
34
35
|
response = list_by_subscription_async(custom_headers).value!
|
35
|
-
|
36
|
+
unless response.nil?
|
37
|
+
page = response.body
|
38
|
+
page.next_method = Proc.new do |next_link|
|
39
|
+
list_by_subscription_next_async(next_link, custom_headers)
|
40
|
+
end
|
41
|
+
page
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
#
|
46
|
+
# Gets all job collections under specified subscription.
|
47
|
+
#
|
48
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
49
|
+
# will be added to the HTTP request.
|
50
|
+
#
|
51
|
+
# @return [Array<JobCollectionDefinition>] operation results.
|
52
|
+
#
|
53
|
+
def list_by_subscription(custom_headers = nil)
|
54
|
+
first_page = list_by_subscription_as_lazy(custom_headers)
|
55
|
+
first_page.get_all_items
|
36
56
|
end
|
37
57
|
|
38
58
|
#
|
@@ -58,6 +78,8 @@ module Azure::ARM::Scheduler
|
|
58
78
|
def list_by_subscription_async(custom_headers = nil)
|
59
79
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
60
80
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
81
|
+
|
82
|
+
|
61
83
|
request_headers = {}
|
62
84
|
|
63
85
|
# Set Headers
|
@@ -93,10 +115,8 @@ module Azure::ARM::Scheduler
|
|
93
115
|
if status_code == 200
|
94
116
|
begin
|
95
117
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
96
|
-
|
97
|
-
|
98
|
-
end
|
99
|
-
result.body = parsed_response
|
118
|
+
result_mapper = JobCollectionListResult.mapper()
|
119
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
100
120
|
rescue Exception => e
|
101
121
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
102
122
|
end
|
@@ -115,11 +135,32 @@ module Azure::ARM::Scheduler
|
|
115
135
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
116
136
|
# will be added to the HTTP request.
|
117
137
|
#
|
118
|
-
# @return [JobCollectionListResult]
|
138
|
+
# @return [JobCollectionListResult] which provide lazy access to pages of the
|
139
|
+
# response.
|
119
140
|
#
|
120
|
-
def
|
141
|
+
def list_by_resource_group_as_lazy(resource_group_name, custom_headers = nil)
|
121
142
|
response = list_by_resource_group_async(resource_group_name, custom_headers).value!
|
122
|
-
|
143
|
+
unless response.nil?
|
144
|
+
page = response.body
|
145
|
+
page.next_method = Proc.new do |next_link|
|
146
|
+
list_by_resource_group_next_async(next_link, custom_headers)
|
147
|
+
end
|
148
|
+
page
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
#
|
153
|
+
# Gets all job collections under specified resource group.
|
154
|
+
#
|
155
|
+
# @param resource_group_name [String] The resource group name.
|
156
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
157
|
+
# will be added to the HTTP request.
|
158
|
+
#
|
159
|
+
# @return [Array<JobCollectionDefinition>] operation results.
|
160
|
+
#
|
161
|
+
def list_by_resource_group(resource_group_name, custom_headers = nil)
|
162
|
+
first_page = list_by_resource_group_as_lazy(resource_group_name, custom_headers)
|
163
|
+
first_page.get_all_items
|
123
164
|
end
|
124
165
|
|
125
166
|
#
|
@@ -148,6 +189,8 @@ module Azure::ARM::Scheduler
|
|
148
189
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
149
190
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
150
191
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
192
|
+
|
193
|
+
|
151
194
|
request_headers = {}
|
152
195
|
|
153
196
|
# Set Headers
|
@@ -183,10 +226,8 @@ module Azure::ARM::Scheduler
|
|
183
226
|
if status_code == 200
|
184
227
|
begin
|
185
228
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
186
|
-
|
187
|
-
|
188
|
-
end
|
189
|
-
result.body = parsed_response
|
229
|
+
result_mapper = JobCollectionListResult.mapper()
|
230
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
190
231
|
rescue Exception => e
|
191
232
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
192
233
|
end
|
@@ -242,6 +283,8 @@ module Azure::ARM::Scheduler
|
|
242
283
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
243
284
|
fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
|
244
285
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
286
|
+
|
287
|
+
|
245
288
|
request_headers = {}
|
246
289
|
|
247
290
|
# Set Headers
|
@@ -277,10 +320,8 @@ module Azure::ARM::Scheduler
|
|
277
320
|
if status_code == 200
|
278
321
|
begin
|
279
322
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
280
|
-
|
281
|
-
|
282
|
-
end
|
283
|
-
result.body = parsed_response
|
323
|
+
result_mapper = JobCollectionDefinition.mapper()
|
324
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
284
325
|
rescue Exception => e
|
285
326
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
286
327
|
end
|
@@ -343,19 +384,21 @@ module Azure::ARM::Scheduler
|
|
343
384
|
fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
|
344
385
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
345
386
|
fail ArgumentError, 'job_collection is nil' if job_collection.nil?
|
346
|
-
|
387
|
+
|
388
|
+
|
347
389
|
request_headers = {}
|
348
390
|
|
349
391
|
# Set Headers
|
350
392
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
351
393
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
352
394
|
|
353
|
-
# Serialize Request
|
354
395
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
request_content =
|
396
|
+
|
397
|
+
# Serialize Request
|
398
|
+
request_mapper = JobCollectionDefinition.mapper()
|
399
|
+
request_content = @client.serialize(request_mapper, job_collection, 'job_collection')
|
400
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
401
|
+
|
359
402
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}'
|
360
403
|
options = {
|
361
404
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -387,10 +430,8 @@ module Azure::ARM::Scheduler
|
|
387
430
|
if status_code == 200
|
388
431
|
begin
|
389
432
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
390
|
-
|
391
|
-
|
392
|
-
end
|
393
|
-
result.body = parsed_response
|
433
|
+
result_mapper = JobCollectionDefinition.mapper()
|
434
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
394
435
|
rescue Exception => e
|
395
436
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
396
437
|
end
|
@@ -399,10 +440,8 @@ module Azure::ARM::Scheduler
|
|
399
440
|
if status_code == 201
|
400
441
|
begin
|
401
442
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
402
|
-
|
403
|
-
|
404
|
-
end
|
405
|
-
result.body = parsed_response
|
443
|
+
result_mapper = JobCollectionDefinition.mapper()
|
444
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
406
445
|
rescue Exception => e
|
407
446
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
408
447
|
end
|
@@ -465,19 +504,21 @@ module Azure::ARM::Scheduler
|
|
465
504
|
fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
|
466
505
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
467
506
|
fail ArgumentError, 'job_collection is nil' if job_collection.nil?
|
468
|
-
|
507
|
+
|
508
|
+
|
469
509
|
request_headers = {}
|
470
510
|
|
471
511
|
# Set Headers
|
472
512
|
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
473
513
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
474
514
|
|
475
|
-
# Serialize Request
|
476
515
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
request_content =
|
516
|
+
|
517
|
+
# Serialize Request
|
518
|
+
request_mapper = JobCollectionDefinition.mapper()
|
519
|
+
request_content = @client.serialize(request_mapper, job_collection, 'job_collection')
|
520
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
521
|
+
|
481
522
|
path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}'
|
482
523
|
options = {
|
483
524
|
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
@@ -509,10 +550,8 @@ module Azure::ARM::Scheduler
|
|
509
550
|
if status_code == 200
|
510
551
|
begin
|
511
552
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
512
|
-
|
513
|
-
|
514
|
-
end
|
515
|
-
result.body = parsed_response
|
553
|
+
result_mapper = JobCollectionDefinition.mapper()
|
554
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
516
555
|
rescue Exception => e
|
517
556
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
518
557
|
end
|
@@ -529,10 +568,24 @@ module Azure::ARM::Scheduler
|
|
529
568
|
#
|
530
569
|
# @param resource_group_name [String] The resource group name.
|
531
570
|
# @param job_collection_name [String] The job collection name.
|
571
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
572
|
+
# will be added to the HTTP request.
|
573
|
+
#
|
574
|
+
def delete(resource_group_name, job_collection_name, custom_headers = nil)
|
575
|
+
response = delete_async(resource_group_name, job_collection_name, custom_headers).value!
|
576
|
+
nil
|
577
|
+
end
|
578
|
+
|
579
|
+
#
|
580
|
+
# @param resource_group_name [String] The resource group name.
|
581
|
+
# @param job_collection_name [String] The job collection name.
|
582
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
583
|
+
# will be added to the HTTP request.
|
584
|
+
#
|
532
585
|
# @return [Concurrent::Promise] promise which provides async access to http
|
533
586
|
# response.
|
534
587
|
#
|
535
|
-
def
|
588
|
+
def delete_async(resource_group_name, job_collection_name, custom_headers = nil)
|
536
589
|
# Send request
|
537
590
|
promise = begin_delete_async(resource_group_name, job_collection_name, custom_headers)
|
538
591
|
|
@@ -541,8 +594,8 @@ module Azure::ARM::Scheduler
|
|
541
594
|
deserialize_method = lambda do |parsed_response|
|
542
595
|
end
|
543
596
|
|
544
|
-
|
545
|
-
|
597
|
+
# Waiting for response.
|
598
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
546
599
|
end
|
547
600
|
|
548
601
|
promise
|
@@ -591,6 +644,8 @@ module Azure::ARM::Scheduler
|
|
591
644
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
592
645
|
fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
|
593
646
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
647
|
+
|
648
|
+
|
594
649
|
request_headers = {}
|
595
650
|
|
596
651
|
# Set Headers
|
@@ -634,10 +689,24 @@ module Azure::ARM::Scheduler
|
|
634
689
|
#
|
635
690
|
# @param resource_group_name [String] The resource group name.
|
636
691
|
# @param job_collection_name [String] The job collection name.
|
692
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
693
|
+
# will be added to the HTTP request.
|
694
|
+
#
|
695
|
+
def enable(resource_group_name, job_collection_name, custom_headers = nil)
|
696
|
+
response = enable_async(resource_group_name, job_collection_name, custom_headers).value!
|
697
|
+
nil
|
698
|
+
end
|
699
|
+
|
700
|
+
#
|
701
|
+
# @param resource_group_name [String] The resource group name.
|
702
|
+
# @param job_collection_name [String] The job collection name.
|
703
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
704
|
+
# will be added to the HTTP request.
|
705
|
+
#
|
637
706
|
# @return [Concurrent::Promise] promise which provides async access to http
|
638
707
|
# response.
|
639
708
|
#
|
640
|
-
def
|
709
|
+
def enable_async(resource_group_name, job_collection_name, custom_headers = nil)
|
641
710
|
# Send request
|
642
711
|
promise = begin_enable_async(resource_group_name, job_collection_name, custom_headers)
|
643
712
|
|
@@ -646,8 +715,8 @@ module Azure::ARM::Scheduler
|
|
646
715
|
deserialize_method = lambda do |parsed_response|
|
647
716
|
end
|
648
717
|
|
649
|
-
|
650
|
-
|
718
|
+
# Waiting for response.
|
719
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
651
720
|
end
|
652
721
|
|
653
722
|
promise
|
@@ -696,6 +765,8 @@ module Azure::ARM::Scheduler
|
|
696
765
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
697
766
|
fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
|
698
767
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
768
|
+
|
769
|
+
|
699
770
|
request_headers = {}
|
700
771
|
|
701
772
|
# Set Headers
|
@@ -739,10 +810,24 @@ module Azure::ARM::Scheduler
|
|
739
810
|
#
|
740
811
|
# @param resource_group_name [String] The resource group name.
|
741
812
|
# @param job_collection_name [String] The job collection name.
|
813
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
814
|
+
# will be added to the HTTP request.
|
815
|
+
#
|
816
|
+
def disable(resource_group_name, job_collection_name, custom_headers = nil)
|
817
|
+
response = disable_async(resource_group_name, job_collection_name, custom_headers).value!
|
818
|
+
nil
|
819
|
+
end
|
820
|
+
|
821
|
+
#
|
822
|
+
# @param resource_group_name [String] The resource group name.
|
823
|
+
# @param job_collection_name [String] The job collection name.
|
824
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
825
|
+
# will be added to the HTTP request.
|
826
|
+
#
|
742
827
|
# @return [Concurrent::Promise] promise which provides async access to http
|
743
828
|
# response.
|
744
829
|
#
|
745
|
-
def
|
830
|
+
def disable_async(resource_group_name, job_collection_name, custom_headers = nil)
|
746
831
|
# Send request
|
747
832
|
promise = begin_disable_async(resource_group_name, job_collection_name, custom_headers)
|
748
833
|
|
@@ -751,8 +836,8 @@ module Azure::ARM::Scheduler
|
|
751
836
|
deserialize_method = lambda do |parsed_response|
|
752
837
|
end
|
753
838
|
|
754
|
-
|
755
|
-
|
839
|
+
# Waiting for response.
|
840
|
+
@client.get_long_running_operation_result(response, deserialize_method)
|
756
841
|
end
|
757
842
|
|
758
843
|
promise
|
@@ -801,6 +886,8 @@ module Azure::ARM::Scheduler
|
|
801
886
|
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
802
887
|
fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
|
803
888
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
889
|
+
|
890
|
+
|
804
891
|
request_headers = {}
|
805
892
|
|
806
893
|
# Set Headers
|
@@ -880,6 +967,8 @@ module Azure::ARM::Scheduler
|
|
880
967
|
#
|
881
968
|
def list_by_subscription_next_async(next_page_link, custom_headers = nil)
|
882
969
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
970
|
+
|
971
|
+
|
883
972
|
request_headers = {}
|
884
973
|
|
885
974
|
# Set Headers
|
@@ -914,10 +1003,8 @@ module Azure::ARM::Scheduler
|
|
914
1003
|
if status_code == 200
|
915
1004
|
begin
|
916
1005
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
917
|
-
|
918
|
-
|
919
|
-
end
|
920
|
-
result.body = parsed_response
|
1006
|
+
result_mapper = JobCollectionListResult.mapper()
|
1007
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
921
1008
|
rescue Exception => e
|
922
1009
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
923
1010
|
end
|
@@ -970,6 +1057,8 @@ module Azure::ARM::Scheduler
|
|
970
1057
|
#
|
971
1058
|
def list_by_resource_group_next_async(next_page_link, custom_headers = nil)
|
972
1059
|
fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
|
1060
|
+
|
1061
|
+
|
973
1062
|
request_headers = {}
|
974
1063
|
|
975
1064
|
# Set Headers
|
@@ -1004,10 +1093,8 @@ module Azure::ARM::Scheduler
|
|
1004
1093
|
if status_code == 200
|
1005
1094
|
begin
|
1006
1095
|
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
1007
|
-
|
1008
|
-
|
1009
|
-
end
|
1010
|
-
result.body = parsed_response
|
1096
|
+
result_mapper = JobCollectionListResult.mapper()
|
1097
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
1011
1098
|
rescue Exception => e
|
1012
1099
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
1013
1100
|
end
|