azure_mgmt_automation 0.15.1 → 0.15.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-10-31/generated/azure_mgmt_automation/activity_operations.rb +2 -0
  3. data/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb +2 -0
  4. data/lib/2015-10-31/generated/azure_mgmt_automation/automation_account_operations.rb +5 -0
  5. data/lib/2015-10-31/generated/azure_mgmt_automation/automation_client.rb +1 -3
  6. data/lib/2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb +5 -0
  7. data/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb +5 -0
  8. data/lib/2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb +4 -0
  9. data/lib/2015-10-31/generated/azure_mgmt_automation/credential_operations.rb +5 -0
  10. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb +4 -0
  11. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_configuration_operations.rb +6 -0
  12. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb +4 -0
  13. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb +4 -0
  14. data/lib/2015-10-31/generated/azure_mgmt_automation/fields.rb +1 -0
  15. data/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb +4 -0
  16. data/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb +10 -0
  17. data/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb +4 -0
  18. data/lib/2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb +2 -0
  19. data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity.rb +11 -0
  20. data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_list_result.rb +4 -0
  21. data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_output_type.rb +3 -0
  22. data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter.rb +9 -0
  23. data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter_set.rb +4 -0
  24. data/lib/2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule.rb +7 -0
  25. data/lib/2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule_monthly_occurrence.rb +3 -0
  26. data/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration.rb +5 -0
  27. data/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_keys.rb +3 -0
  28. data/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_regenerate_key_parameter.rb +6 -0
  29. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account.rb +14 -0
  30. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account_create_or_update_parameters.rb +6 -0
  31. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account_list_result.rb +4 -0
  32. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account_update_parameters.rb +6 -0
  33. data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate.rb +9 -0
  34. data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_create_or_update_parameters.rb +6 -0
  35. data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_list_result.rb +4 -0
  36. data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_update_parameters.rb +3 -0
  37. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection.rb +9 -0
  38. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_create_or_update_parameters.rb +6 -0
  39. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_list_result.rb +4 -0
  40. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type.rb +9 -0
  41. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type_association_property.rb +2 -0
  42. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type_create_or_update_parameters.rb +5 -0
  43. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type_list_result.rb +4 -0
  44. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_update_parameters.rb +5 -0
  45. data/lib/2015-10-31/generated/azure_mgmt_automation/models/content_hash.rb +3 -0
  46. data/lib/2015-10-31/generated/azure_mgmt_automation/models/content_link.rb +4 -0
  47. data/lib/2015-10-31/generated/azure_mgmt_automation/models/content_source.rb +5 -0
  48. data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential.rb +7 -0
  49. data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_create_or_update_parameters.rb +5 -0
  50. data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_list_result.rb +4 -0
  51. data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_update_parameters.rb +5 -0
  52. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job.rb +15 -0
  53. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb +8 -0
  54. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_list_result.rb +4 -0
  55. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration.rb +18 -0
  56. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_association_property.rb +2 -0
  57. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_create_or_update_parameters.rb +11 -0
  58. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_list_result.rb +4 -0
  59. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_parameter.rb +5 -0
  60. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_meta_configuration.rb +8 -0
  61. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node.rb +15 -0
  62. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration.rb +6 -0
  63. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_association_property.rb +2 -0
  64. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_create_or_update_parameters.rb +4 -0
  65. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_list_result.rb +4 -0
  66. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_list_result.rb +4 -0
  67. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_report.rb +24 -0
  68. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_report_list_result.rb +4 -0
  69. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_update_parameters.rb +3 -0
  70. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_report_error.rb +7 -0
  71. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_report_resource.rb +12 -0
  72. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_report_resource_navigation.rb +2 -0
  73. data/lib/2015-10-31/generated/azure_mgmt_automation/models/error_response.rb +3 -0
  74. data/lib/2015-10-31/generated/azure_mgmt_automation/models/field_definition.rb +4 -0
  75. data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker.rb +4 -0
  76. data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group.rb +6 -0
  77. data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group_update_parameters.rb +2 -0
  78. data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_groups_list_result.rb +4 -0
  79. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb +16 -0
  80. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_create_parameters.rb +9 -0
  81. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_list_result.rb +4 -0
  82. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule.rb +8 -0
  83. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule_create_parameters.rb +6 -0
  84. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule_list_result.rb +4 -0
  85. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_stream.rb +9 -0
  86. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_stream_list_result.rb +4 -0
  87. data/lib/2015-10-31/generated/azure_mgmt_automation/models/module_create_or_update_parameters.rb +6 -0
  88. data/lib/2015-10-31/generated/azure_mgmt_automation/models/module_error_info.rb +3 -0
  89. data/lib/2015-10-31/generated/azure_mgmt_automation/models/module_list_result.rb +4 -0
  90. data/lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb +18 -0
  91. data/lib/2015-10-31/generated/azure_mgmt_automation/models/module_update_parameters.rb +6 -0
  92. data/lib/2015-10-31/generated/azure_mgmt_automation/models/operation.rb +3 -0
  93. data/lib/2015-10-31/generated/azure_mgmt_automation/models/operation_display.rb +4 -0
  94. data/lib/2015-10-31/generated/azure_mgmt_automation/models/operation_list_result.rb +3 -0
  95. data/lib/2015-10-31/generated/azure_mgmt_automation/models/resource.rb +7 -0
  96. data/lib/2015-10-31/generated/azure_mgmt_automation/models/run_as_credential_association_property.rb +2 -0
  97. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook.rb +25 -0
  98. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_association_property.rb +2 -0
  99. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_create_or_update_draft_parameters.rb +2 -0
  100. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_create_or_update_draft_properties.rb +7 -0
  101. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_create_or_update_parameters.rb +12 -0
  102. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_draft.rb +9 -0
  103. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_draft_undo_edit_result.rb +3 -0
  104. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_list_result.rb +4 -0
  105. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_parameter.rb +5 -0
  106. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_update_parameters.rb +9 -0
  107. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule.rb +17 -0
  108. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_association_property.rb +2 -0
  109. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_create_or_update_parameters.rb +9 -0
  110. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_list_result.rb +4 -0
  111. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_update_parameters.rb +4 -0
  112. data/lib/2015-10-31/generated/azure_mgmt_automation/models/sku.rb +4 -0
  113. data/lib/2015-10-31/generated/azure_mgmt_automation/models/statistics.rb +6 -0
  114. data/lib/2015-10-31/generated/azure_mgmt_automation/models/statistics_list_result.rb +3 -0
  115. data/lib/2015-10-31/generated/azure_mgmt_automation/models/sub_resource.rb +2 -0
  116. data/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job.rb +12 -0
  117. data/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job_create_parameters.rb +5 -0
  118. data/lib/2015-10-31/generated/azure_mgmt_automation/models/type_field.rb +3 -0
  119. data/lib/2015-10-31/generated/azure_mgmt_automation/models/type_field_list_result.rb +3 -0
  120. data/lib/2015-10-31/generated/azure_mgmt_automation/models/usage.rb +7 -0
  121. data/lib/2015-10-31/generated/azure_mgmt_automation/models/usage_counter_name.rb +3 -0
  122. data/lib/2015-10-31/generated/azure_mgmt_automation/models/usage_list_result.rb +3 -0
  123. data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable.rb +8 -0
  124. data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_create_or_update_parameters.rb +5 -0
  125. data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_list_result.rb +4 -0
  126. data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_update_parameters.rb +4 -0
  127. data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook.rb +14 -0
  128. data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_create_or_update_parameters.rb +9 -0
  129. data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_list_result.rb +4 -0
  130. data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_update_parameters.rb +7 -0
  131. data/lib/2015-10-31/generated/azure_mgmt_automation/module_model_operations.rb +5 -0
  132. data/lib/2015-10-31/generated/azure_mgmt_automation/node_reports.rb +4 -0
  133. data/lib/2015-10-31/generated/azure_mgmt_automation/object_data_types.rb +2 -0
  134. data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb +7 -0
  135. data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb +7 -0
  136. data/lib/2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb +5 -0
  137. data/lib/2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb +1 -0
  138. data/lib/2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb +2 -0
  139. data/lib/2015-10-31/generated/azure_mgmt_automation/test_jobs.rb +5 -0
  140. data/lib/2015-10-31/generated/azure_mgmt_automation/usages.rb +1 -0
  141. data/lib/2015-10-31/generated/azure_mgmt_automation/variable_operations.rb +5 -0
  142. data/lib/2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb +7 -0
  143. data/lib/profiles/latest/automation_latest_profile_client.rb +1 -3
  144. data/lib/version.rb +1 -1
  145. metadata +10 -8
  146. data/lib/2015-10-31/generated/azure_mgmt_automation/version.rb +0 -8
  147. data/lib/profiles/common/configurable.rb +0 -86
  148. data/lib/profiles/common/default.rb +0 -57
@@ -1,8 +0,0 @@
1
- # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator.
3
- # Changes may cause incorrect behavior and will be lost if the code is
4
- # regenerated.
5
-
6
- module Azure::Automation::Mgmt::V2015_10_31
7
- VERSION = '0.15.1'
8
- end
@@ -1,86 +0,0 @@
1
- # encoding: utf-8
2
- # Copyright (c) Microsoft Corporation. All rights reserved.
3
- # Licensed under the MIT License. See License.txt in the project root for license information.
4
-
5
- module Azure::Common
6
- # The Azure::Common::Configurable module provides basic configuration for Azure activities.
7
- module Configurable
8
- # @return [String] Azure tenant id (also known as domain).
9
- attr_accessor :tenant_id
10
-
11
- # @return [String] Azure client id.
12
- attr_accessor :client_id
13
-
14
- # @return [String] Azure secret key.
15
- attr_accessor :client_secret
16
-
17
- # @return [String] Azure subscription id.
18
- attr_accessor :subscription_id
19
-
20
- # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure active directory service settings.
21
- attr_accessor :active_directory_settings
22
-
23
- # @return [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
24
- attr_accessor :credentials
25
-
26
- class << self
27
- #
28
- # List of configurable keys for {Azure::Common::Client}.
29
- # @return [Array] of option keys.
30
- #
31
- def keys
32
- @keys ||= [:tenant_id, :client_id, :client_secret, :subscription_id, :active_directory_settings]
33
- end
34
- end
35
-
36
- #
37
- # Set configuration options using a block.
38
- #
39
- def configure
40
- yield self
41
- end
42
-
43
- #
44
- # Resets the configurable options to provided options or defaults.
45
- # This will also creates MsRest::TokenCredentials to be used for subsequent Azure Resource Manager clients.
46
- #
47
- def reset!(options = {})
48
- Azure::Common::Configurable.keys.each do |key|
49
- default_value = Azure::Common::Default.options[key]
50
- instance_variable_set(:"@#{key}", options.fetch(key, default_value))
51
- end
52
-
53
- fail ArgumentError, 'tenant_id is nil' if self.tenant_id.nil?
54
- fail ArgumentError, 'client_id is nil' if self.client_id.nil?
55
- fail ArgumentError, 'client_secret is nil' if self.client_secret.nil?
56
- fail ArgumentError, 'subscription_id is nil' if self.subscription_id.nil?
57
- fail ArgumentError, 'active_directory_settings is nil' if self.active_directory_settings.nil?
58
-
59
- default_value = MsRest::TokenCredentials.new(
60
- MsRestAzure::ApplicationTokenProvider.new(
61
- self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
62
-
63
- instance_variable_set(:"@credentials", options.fetch(:credentials, default_value))
64
-
65
- self
66
- end
67
-
68
- def config
69
- self
70
- end
71
-
72
- private
73
-
74
- #
75
- # configures configurable options to default values
76
- #
77
- def setup_default_options
78
- opts = {}
79
- Azure::Common::Configurable.keys.map do |key|
80
- opts[key] = Azure::Common::Default.options[key]
81
- end
82
-
83
- opts
84
- end
85
- end
86
- end
@@ -1,57 +0,0 @@
1
- # encoding: utf-8
2
- # Copyright (c) Microsoft Corporation. All rights reserved.
3
- # Licensed under the MIT License. See License.txt in the project root for license information.
4
-
5
- module Azure::Common
6
- module Default
7
- class << self
8
- #
9
- # Default Azure Tenant Id.
10
- # @return [String] Azure Tenant Id.
11
- #
12
- def tenant_id
13
- ENV['AZURE_TENANT_ID']
14
- end
15
-
16
- #
17
- # Default Azure Client Id.
18
- # @return [String] Azure Client Id.
19
- #
20
- def client_id
21
- ENV['AZURE_CLIENT_ID']
22
- end
23
-
24
- #
25
- # Default Azure Client Secret.
26
- # @return [String] Azure Client Secret.
27
- #
28
- def client_secret
29
- ENV['AZURE_CLIENT_SECRET']
30
- end
31
-
32
- #
33
- # Default Azure Subscription Id.
34
- # @return [String] Azure Subscription Id.
35
- #
36
- def subscription_id
37
- ENV['AZURE_SUBSCRIPTION_ID']
38
- end
39
-
40
- #
41
- # Default Azure Active Directory Service Settings.
42
- # @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure Active Directory Service Settings.
43
- #
44
- def active_directory_settings
45
- MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings
46
- end
47
-
48
- #
49
- # Configuration options.
50
- # @return [Hash] Configuration options.
51
- #
52
- def options
53
- Hash[Azure::Common::Configurable.keys.map { |key| [key, send(key)]}]
54
- end
55
- end
56
- end
57
- end