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.
Files changed (87) hide show
  1. checksums.yaml +5 -13
  2. data/azure_mgmt_scheduler.gemspec +4 -5
  3. data/lib/azure_mgmt_scheduler.rb +3 -72
  4. data/lib/generated/azure_mgmt_scheduler.rb +74 -0
  5. data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/job_collections.rb +146 -59
  6. data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/jobs.rb +105 -50
  7. data/lib/generated/azure_mgmt_scheduler/models/basic_authentication.rb +62 -0
  8. data/lib/generated/azure_mgmt_scheduler/models/client_cert_authentication.rb +92 -0
  9. data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/day_of_week.rb +0 -0
  10. data/lib/generated/azure_mgmt_scheduler/models/http_authentication.rb +47 -0
  11. data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/http_authentication_type.rb +0 -0
  12. data/lib/generated/azure_mgmt_scheduler/models/http_request.rb +92 -0
  13. data/lib/generated/azure_mgmt_scheduler/models/job_action.rb +115 -0
  14. data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/job_action_type.rb +0 -0
  15. data/lib/generated/azure_mgmt_scheduler/models/job_collection_definition.rb +105 -0
  16. data/lib/generated/azure_mgmt_scheduler/models/job_collection_list_result.rb +95 -0
  17. data/lib/generated/azure_mgmt_scheduler/models/job_collection_properties.rb +68 -0
  18. data/lib/generated/azure_mgmt_scheduler/models/job_collection_quota.rb +65 -0
  19. data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/job_collection_state.rb +0 -0
  20. data/lib/generated/azure_mgmt_scheduler/models/job_definition.rb +78 -0
  21. data/lib/generated/azure_mgmt_scheduler/models/job_error_action.rb +104 -0
  22. data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/job_execution_status.rb +0 -0
  23. data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/job_history_action_name.rb +0 -0
  24. data/lib/generated/azure_mgmt_scheduler/models/job_history_definition.rb +80 -0
  25. data/lib/generated/azure_mgmt_scheduler/models/job_history_definition_properties.rb +126 -0
  26. data/lib/generated/azure_mgmt_scheduler/models/job_history_filter.rb +46 -0
  27. data/lib/generated/azure_mgmt_scheduler/models/job_history_list_result.rb +95 -0
  28. data/lib/generated/azure_mgmt_scheduler/models/job_list_result.rb +94 -0
  29. data/lib/generated/azure_mgmt_scheduler/models/job_max_recurrence.rb +57 -0
  30. data/lib/generated/azure_mgmt_scheduler/models/job_properties.rb +90 -0
  31. data/lib/generated/azure_mgmt_scheduler/models/job_recurrence.rb +90 -0
  32. data/lib/generated/azure_mgmt_scheduler/models/job_recurrence_schedule.rb +126 -0
  33. data/lib/generated/azure_mgmt_scheduler/models/job_recurrence_schedule_monthly_occurrence.rb +59 -0
  34. data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/job_schedule_day.rb +0 -0
  35. data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/job_state.rb +0 -0
  36. data/lib/generated/azure_mgmt_scheduler/models/job_state_filter.rb +46 -0
  37. data/lib/generated/azure_mgmt_scheduler/models/job_status.rb +93 -0
  38. data/lib/generated/azure_mgmt_scheduler/models/oauth_authentication.rb +82 -0
  39. data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/recurrence_frequency.rb +0 -0
  40. data/lib/generated/azure_mgmt_scheduler/models/retry_policy.rb +67 -0
  41. data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/retry_type.rb +0 -0
  42. data/lib/generated/azure_mgmt_scheduler/models/service_bus_authentication.rb +66 -0
  43. data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/service_bus_authentication_type.rb +0 -0
  44. data/lib/generated/azure_mgmt_scheduler/models/service_bus_brokered_message_properties.rb +164 -0
  45. data/lib/generated/azure_mgmt_scheduler/models/service_bus_message.rb +107 -0
  46. data/lib/generated/azure_mgmt_scheduler/models/service_bus_queue_message.rb +96 -0
  47. data/lib/generated/azure_mgmt_scheduler/models/service_bus_topic_message.rb +96 -0
  48. data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/service_bus_transport_type.rb +0 -0
  49. data/lib/generated/azure_mgmt_scheduler/models/sku.rb +46 -0
  50. data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/models/sku_definition.rb +0 -0
  51. data/lib/generated/azure_mgmt_scheduler/models/storage_queue_message.rb +74 -0
  52. data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/module_definition.rb +0 -0
  53. data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/scheduler_management_client.rb +4 -4
  54. data/lib/{azure_mgmt_scheduler → generated/azure_mgmt_scheduler}/version.rb +1 -1
  55. metadata +72 -92
  56. data/lib/azure_mgmt_scheduler/models/basic_authentication.rb +0 -75
  57. data/lib/azure_mgmt_scheduler/models/client_cert_authentication.rb +0 -104
  58. data/lib/azure_mgmt_scheduler/models/http_authentication.rb +0 -61
  59. data/lib/azure_mgmt_scheduler/models/http_request.rb +0 -99
  60. data/lib/azure_mgmt_scheduler/models/job_action.rb +0 -159
  61. data/lib/azure_mgmt_scheduler/models/job_collection_definition.rb +0 -109
  62. data/lib/azure_mgmt_scheduler/models/job_collection_list_result.rb +0 -86
  63. data/lib/azure_mgmt_scheduler/models/job_collection_properties.rb +0 -92
  64. data/lib/azure_mgmt_scheduler/models/job_collection_quota.rb +0 -82
  65. data/lib/azure_mgmt_scheduler/models/job_definition.rb +0 -89
  66. data/lib/azure_mgmt_scheduler/models/job_error_action.rb +0 -143
  67. data/lib/azure_mgmt_scheduler/models/job_history_definition.rb +0 -90
  68. data/lib/azure_mgmt_scheduler/models/job_history_definition_properties.rb +0 -136
  69. data/lib/azure_mgmt_scheduler/models/job_history_filter.rb +0 -60
  70. data/lib/azure_mgmt_scheduler/models/job_history_list_result.rb +0 -87
  71. data/lib/azure_mgmt_scheduler/models/job_list_result.rb +0 -86
  72. data/lib/azure_mgmt_scheduler/models/job_max_recurrence.rb +0 -71
  73. data/lib/azure_mgmt_scheduler/models/job_properties.rb +0 -119
  74. data/lib/azure_mgmt_scheduler/models/job_recurrence.rb +0 -110
  75. data/lib/azure_mgmt_scheduler/models/job_recurrence_schedule.rb +0 -156
  76. data/lib/azure_mgmt_scheduler/models/job_recurrence_schedule_monthly_occurrence.rb +0 -73
  77. data/lib/azure_mgmt_scheduler/models/job_state_filter.rb +0 -60
  78. data/lib/azure_mgmt_scheduler/models/job_status.rb +0 -103
  79. data/lib/azure_mgmt_scheduler/models/oauth_authentication.rb +0 -93
  80. data/lib/azure_mgmt_scheduler/models/retry_policy.rb +0 -80
  81. data/lib/azure_mgmt_scheduler/models/service_bus_authentication.rb +0 -78
  82. data/lib/azure_mgmt_scheduler/models/service_bus_brokered_message_properties.rb +0 -168
  83. data/lib/azure_mgmt_scheduler/models/service_bus_message.rb +0 -122
  84. data/lib/azure_mgmt_scheduler/models/service_bus_queue_message.rb +0 -108
  85. data/lib/azure_mgmt_scheduler/models/service_bus_topic_message.rb +0 -108
  86. data/lib/azure_mgmt_scheduler/models/sku.rb +0 -60
  87. data/lib/azure_mgmt_scheduler/models/storage_queue_message.rb +0 -83
@@ -70,6 +70,8 @@ module Azure::ARM::Scheduler
70
70
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
71
71
  fail ArgumentError, 'job_name is nil' if job_name.nil?
72
72
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
73
+
74
+
73
75
  request_headers = {}
74
76
 
75
77
  # Set Headers
@@ -105,10 +107,8 @@ module Azure::ARM::Scheduler
105
107
  if status_code == 200
106
108
  begin
107
109
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
108
- unless parsed_response.nil?
109
- parsed_response = JobDefinition.deserialize_object(parsed_response)
110
- end
111
- result.body = parsed_response
110
+ result_mapper = JobDefinition.mapper()
111
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
112
112
  rescue Exception => e
113
113
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
114
114
  end
@@ -172,19 +172,21 @@ module Azure::ARM::Scheduler
172
172
  fail ArgumentError, 'job_name is nil' if job_name.nil?
173
173
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
174
174
  fail ArgumentError, 'job is nil' if job.nil?
175
- job.validate unless job.nil?
175
+
176
+
176
177
  request_headers = {}
177
178
 
178
179
  # Set Headers
179
180
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
180
181
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
181
182
 
182
- # Serialize Request
183
183
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
184
- unless job.nil?
185
- job = JobDefinition.serialize_object(job)
186
- end
187
- request_content = job != nil ? JSON.generate(job, quirks_mode: true) : nil
184
+
185
+ # Serialize Request
186
+ request_mapper = JobDefinition.mapper()
187
+ request_content = @client.serialize(request_mapper, job, 'job')
188
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
189
+
188
190
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}/jobs/{jobName}'
189
191
  options = {
190
192
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -216,10 +218,8 @@ module Azure::ARM::Scheduler
216
218
  if status_code == 200
217
219
  begin
218
220
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
219
- unless parsed_response.nil?
220
- parsed_response = JobDefinition.deserialize_object(parsed_response)
221
- end
222
- result.body = parsed_response
221
+ result_mapper = JobDefinition.mapper()
222
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
223
223
  rescue Exception => e
224
224
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
225
225
  end
@@ -228,10 +228,8 @@ module Azure::ARM::Scheduler
228
228
  if status_code == 201
229
229
  begin
230
230
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
231
- unless parsed_response.nil?
232
- parsed_response = JobDefinition.deserialize_object(parsed_response)
233
- end
234
- result.body = parsed_response
231
+ result_mapper = JobDefinition.mapper()
232
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
235
233
  rescue Exception => e
236
234
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
237
235
  end
@@ -295,19 +293,21 @@ module Azure::ARM::Scheduler
295
293
  fail ArgumentError, 'job_name is nil' if job_name.nil?
296
294
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
297
295
  fail ArgumentError, 'job is nil' if job.nil?
298
- job.validate unless job.nil?
296
+
297
+
299
298
  request_headers = {}
300
299
 
301
300
  # Set Headers
302
301
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
303
302
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
304
303
 
305
- # Serialize Request
306
304
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
307
- unless job.nil?
308
- job = JobDefinition.serialize_object(job)
309
- end
310
- request_content = job != nil ? JSON.generate(job, quirks_mode: true) : nil
305
+
306
+ # Serialize Request
307
+ request_mapper = JobDefinition.mapper()
308
+ request_content = @client.serialize(request_mapper, job, 'job')
309
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
310
+
311
311
  path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}/jobs/{jobName}'
312
312
  options = {
313
313
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
@@ -339,10 +339,8 @@ module Azure::ARM::Scheduler
339
339
  if status_code == 200
340
340
  begin
341
341
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
342
- unless parsed_response.nil?
343
- parsed_response = JobDefinition.deserialize_object(parsed_response)
344
- end
345
- result.body = parsed_response
342
+ result_mapper = JobDefinition.mapper()
343
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
346
344
  rescue Exception => e
347
345
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
348
346
  end
@@ -401,6 +399,8 @@ module Azure::ARM::Scheduler
401
399
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
402
400
  fail ArgumentError, 'job_name is nil' if job_name.nil?
403
401
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
402
+
403
+
404
404
  request_headers = {}
405
405
 
406
406
  # Set Headers
@@ -486,6 +486,8 @@ module Azure::ARM::Scheduler
486
486
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
487
487
  fail ArgumentError, 'job_name is nil' if job_name.nil?
488
488
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
489
+
490
+
489
491
  request_headers = {}
490
492
 
491
493
  # Set Headers
@@ -536,11 +538,36 @@ module Azure::ARM::Scheduler
536
538
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
537
539
  # will be added to the HTTP request.
538
540
  #
539
- # @return [JobListResult] operation results.
541
+ # @return [JobListResult] which provide lazy access to pages of the response.
540
542
  #
541
- def list(resource_group_name, job_collection_name, top = nil, skip = nil, filter = nil, custom_headers = nil)
543
+ def list_as_lazy(resource_group_name, job_collection_name, top = nil, skip = nil, filter = nil, custom_headers = nil)
542
544
  response = list_async(resource_group_name, job_collection_name, top, skip, filter, custom_headers).value!
543
- response.body unless response.nil?
545
+ unless response.nil?
546
+ page = response.body
547
+ page.next_method = Proc.new do |next_link|
548
+ list_next_async(next_link, custom_headers)
549
+ end
550
+ page
551
+ end
552
+ end
553
+
554
+ #
555
+ # Lists all jobs under the specified job collection.
556
+ #
557
+ # @param resource_group_name [String] The resource group name.
558
+ # @param job_collection_name [String] The job collection name.
559
+ # @param top [Integer] The number of jobs to request, in the of range [1..100].
560
+ # @param skip [Integer] The (0-based) index of the job history list from which
561
+ # to begin requesting entries.
562
+ # @param filter [String] The filter to apply on the job state.
563
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
564
+ # will be added to the HTTP request.
565
+ #
566
+ # @return [Array<JobDefinition>] operation results.
567
+ #
568
+ def list(resource_group_name, job_collection_name, top = nil, skip = nil, filter = nil, custom_headers = nil)
569
+ first_page = list_as_lazy(resource_group_name, job_collection_name, top, skip, filter, custom_headers)
570
+ first_page.get_all_items
544
571
  end
545
572
 
546
573
  #
@@ -580,6 +607,8 @@ module Azure::ARM::Scheduler
580
607
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
581
608
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
582
609
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
610
+
611
+
583
612
  request_headers = {}
584
613
 
585
614
  # Set Headers
@@ -615,10 +644,8 @@ module Azure::ARM::Scheduler
615
644
  if status_code == 200
616
645
  begin
617
646
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
618
- unless parsed_response.nil?
619
- parsed_response = JobListResult.deserialize_object(parsed_response)
620
- end
621
- result.body = parsed_response
647
+ result_mapper = JobListResult.mapper()
648
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
622
649
  rescue Exception => e
623
650
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
624
651
  end
@@ -644,11 +671,39 @@ module Azure::ARM::Scheduler
644
671
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
645
672
  # will be added to the HTTP request.
646
673
  #
647
- # @return [JobHistoryListResult] operation results.
674
+ # @return [JobHistoryListResult] which provide lazy access to pages of the
675
+ # response.
648
676
  #
649
- def list_job_history(resource_group_name, job_collection_name, job_name, top = nil, skip = nil, filter = nil, custom_headers = nil)
677
+ def list_job_history_as_lazy(resource_group_name, job_collection_name, job_name, top = nil, skip = nil, filter = nil, custom_headers = nil)
650
678
  response = list_job_history_async(resource_group_name, job_collection_name, job_name, top, skip, filter, custom_headers).value!
651
- response.body unless response.nil?
679
+ unless response.nil?
680
+ page = response.body
681
+ page.next_method = Proc.new do |next_link|
682
+ list_job_history_next_async(next_link, custom_headers)
683
+ end
684
+ page
685
+ end
686
+ end
687
+
688
+ #
689
+ # Lists job history.
690
+ #
691
+ # @param resource_group_name [String] The resource group name.
692
+ # @param job_collection_name [String] The job collection name.
693
+ # @param job_name [String] The job name.
694
+ # @param top [Integer] the number of job history to request, in the of range
695
+ # [1..100].
696
+ # @param skip [Integer] The (0-based) index of the job history list from which
697
+ # to begin requesting entries.
698
+ # @param filter [String] The filter to apply on the job state.
699
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
700
+ # will be added to the HTTP request.
701
+ #
702
+ # @return [Array<JobHistoryDefinition>] operation results.
703
+ #
704
+ def list_job_history(resource_group_name, job_collection_name, job_name, top = nil, skip = nil, filter = nil, custom_headers = nil)
705
+ first_page = list_job_history_as_lazy(resource_group_name, job_collection_name, job_name, top, skip, filter, custom_headers)
706
+ first_page.get_all_items
652
707
  end
653
708
 
654
709
  #
@@ -693,6 +748,8 @@ module Azure::ARM::Scheduler
693
748
  fail ArgumentError, 'job_collection_name is nil' if job_collection_name.nil?
694
749
  fail ArgumentError, 'job_name is nil' if job_name.nil?
695
750
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
751
+
752
+
696
753
  request_headers = {}
697
754
 
698
755
  # Set Headers
@@ -728,10 +785,8 @@ module Azure::ARM::Scheduler
728
785
  if status_code == 200
729
786
  begin
730
787
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
731
- unless parsed_response.nil?
732
- parsed_response = JobHistoryListResult.deserialize_object(parsed_response)
733
- end
734
- result.body = parsed_response
788
+ result_mapper = JobHistoryListResult.mapper()
789
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
735
790
  rescue Exception => e
736
791
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
737
792
  end
@@ -784,6 +839,8 @@ module Azure::ARM::Scheduler
784
839
  #
785
840
  def list_next_async(next_page_link, custom_headers = nil)
786
841
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
842
+
843
+
787
844
  request_headers = {}
788
845
 
789
846
  # Set Headers
@@ -818,10 +875,8 @@ module Azure::ARM::Scheduler
818
875
  if status_code == 200
819
876
  begin
820
877
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
821
- unless parsed_response.nil?
822
- parsed_response = JobListResult.deserialize_object(parsed_response)
823
- end
824
- result.body = parsed_response
878
+ result_mapper = JobListResult.mapper()
879
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
825
880
  rescue Exception => e
826
881
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
827
882
  end
@@ -874,6 +929,8 @@ module Azure::ARM::Scheduler
874
929
  #
875
930
  def list_job_history_next_async(next_page_link, custom_headers = nil)
876
931
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
932
+
933
+
877
934
  request_headers = {}
878
935
 
879
936
  # Set Headers
@@ -908,10 +965,8 @@ module Azure::ARM::Scheduler
908
965
  if status_code == 200
909
966
  begin
910
967
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
911
- unless parsed_response.nil?
912
- parsed_response = JobHistoryListResult.deserialize_object(parsed_response)
913
- end
914
- result.body = parsed_response
968
+ result_mapper = JobHistoryListResult.mapper()
969
+ result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
915
970
  rescue Exception => e
916
971
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
917
972
  end
@@ -0,0 +1,62 @@
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
+ module Azure::ARM::Scheduler
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ class BasicAuthentication < HttpAuthentication
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the username.
16
+ attr_accessor :username
17
+
18
+ # @return [String] Gets or sets the password.
19
+ attr_accessor :password
20
+
21
+
22
+ #
23
+ # Mapper for BasicAuthentication class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ required: false,
29
+ serialized_name: 'BasicAuthentication',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'BasicAuthentication',
33
+ model_properties: {
34
+ type: {
35
+ required: false,
36
+ serialized_name: 'type',
37
+ type: {
38
+ name: 'Enum',
39
+ module: 'HttpAuthenticationType'
40
+ }
41
+ },
42
+ username: {
43
+ required: false,
44
+ serialized_name: 'username',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ password: {
50
+ required: false,
51
+ serialized_name: 'password',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
59
+ end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,92 @@
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
+ module Azure::ARM::Scheduler
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ class ClientCertAuthentication < HttpAuthentication
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the password.
16
+ attr_accessor :password
17
+
18
+ # @return [String] Gets or sets the pfx.
19
+ attr_accessor :pfx
20
+
21
+ # @return [String] Gets or sets the certificate thumbprint.
22
+ attr_accessor :certificate_thumbprint
23
+
24
+ # @return [DateTime] Gets or sets the certificate expiration date.
25
+ attr_accessor :certificate_expiration_date
26
+
27
+ # @return [String] Gets or sets the certificate subject name.
28
+ attr_accessor :certificate_subject_name
29
+
30
+
31
+ #
32
+ # Mapper for ClientCertAuthentication class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ required: false,
38
+ serialized_name: 'ClientCertAuthentication',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'ClientCertAuthentication',
42
+ model_properties: {
43
+ type: {
44
+ required: false,
45
+ serialized_name: 'type',
46
+ type: {
47
+ name: 'Enum',
48
+ module: 'HttpAuthenticationType'
49
+ }
50
+ },
51
+ password: {
52
+ required: false,
53
+ serialized_name: 'password',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ pfx: {
59
+ required: false,
60
+ serialized_name: 'pfx',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ certificate_thumbprint: {
66
+ required: false,
67
+ serialized_name: 'certificateThumbprint',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ certificate_expiration_date: {
73
+ required: false,
74
+ serialized_name: 'certificateExpirationDate',
75
+ type: {
76
+ name: 'DateTime'
77
+ }
78
+ },
79
+ certificate_subject_name: {
80
+ required: false,
81
+ serialized_name: 'certificateSubjectName',
82
+ type: {
83
+ name: 'String'
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ end
90
+ end
91
+ end
92
+ end