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.
- checksums.yaml +4 -4
- data/lib/2015-10-31/generated/azure_mgmt_automation/activity_operations.rb +2 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb +2 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/automation_account_operations.rb +5 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/automation_client.rb +1 -3
- data/lib/2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb +5 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb +5 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/credential_operations.rb +5 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_configuration_operations.rb +6 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/fields.rb +1 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb +10 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb +2 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity.rb +11 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_list_result.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_output_type.rb +3 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter.rb +9 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter_set.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule.rb +7 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule_monthly_occurrence.rb +3 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration.rb +5 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_keys.rb +3 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_regenerate_key_parameter.rb +6 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account.rb +14 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account_create_or_update_parameters.rb +6 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account_list_result.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account_update_parameters.rb +6 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate.rb +9 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_create_or_update_parameters.rb +6 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_list_result.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_update_parameters.rb +3 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection.rb +9 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_create_or_update_parameters.rb +6 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_list_result.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type.rb +9 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type_association_property.rb +2 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type_create_or_update_parameters.rb +5 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type_list_result.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_update_parameters.rb +5 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/content_hash.rb +3 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/content_link.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/content_source.rb +5 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential.rb +7 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_create_or_update_parameters.rb +5 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_list_result.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_update_parameters.rb +5 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job.rb +15 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb +8 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_list_result.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration.rb +18 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_association_property.rb +2 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_create_or_update_parameters.rb +11 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_list_result.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_parameter.rb +5 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_meta_configuration.rb +8 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node.rb +15 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration.rb +6 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_association_property.rb +2 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_create_or_update_parameters.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_list_result.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_list_result.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_report.rb +24 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_report_list_result.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_update_parameters.rb +3 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_report_error.rb +7 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_report_resource.rb +12 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_report_resource_navigation.rb +2 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/error_response.rb +3 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/field_definition.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group.rb +6 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group_update_parameters.rb +2 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_groups_list_result.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb +16 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_create_parameters.rb +9 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_list_result.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule.rb +8 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule_create_parameters.rb +6 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule_list_result.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_stream.rb +9 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_stream_list_result.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/module_create_or_update_parameters.rb +6 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/module_error_info.rb +3 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/module_list_result.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb +18 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/module_update_parameters.rb +6 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/operation.rb +3 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/operation_display.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/operation_list_result.rb +3 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/resource.rb +7 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/run_as_credential_association_property.rb +2 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook.rb +25 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_association_property.rb +2 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_create_or_update_draft_parameters.rb +2 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_create_or_update_draft_properties.rb +7 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_create_or_update_parameters.rb +12 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_draft.rb +9 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_draft_undo_edit_result.rb +3 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_list_result.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_parameter.rb +5 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_update_parameters.rb +9 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule.rb +17 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_association_property.rb +2 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_create_or_update_parameters.rb +9 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_list_result.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_update_parameters.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/sku.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/statistics.rb +6 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/statistics_list_result.rb +3 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/sub_resource.rb +2 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job.rb +12 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job_create_parameters.rb +5 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/type_field.rb +3 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/type_field_list_result.rb +3 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/usage.rb +7 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/usage_counter_name.rb +3 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/usage_list_result.rb +3 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable.rb +8 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_create_or_update_parameters.rb +5 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_list_result.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_update_parameters.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook.rb +14 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_create_or_update_parameters.rb +9 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_list_result.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_update_parameters.rb +7 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/module_model_operations.rb +5 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/node_reports.rb +4 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/object_data_types.rb +2 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb +7 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb +7 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb +5 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb +1 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb +2 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/test_jobs.rb +5 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/usages.rb +1 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/variable_operations.rb +5 -0
- data/lib/2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb +7 -0
- data/lib/profiles/latest/automation_latest_profile_client.rb +1 -3
- data/lib/version.rb +1 -1
- metadata +10 -8
- data/lib/2015-10-31/generated/azure_mgmt_automation/version.rb +0 -8
- data/lib/profiles/common/configurable.rb +0 -86
- data/lib/profiles/common/default.rb +0 -57
@@ -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
|