azure_mgmt_automation 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-10-31/generated/azure_mgmt_automation.rb +110 -97
  3. data/lib/2015-10-31/generated/azure_mgmt_automation/activity_operations.rb +36 -25
  4. data/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb +32 -22
  5. data/lib/2015-10-31/generated/azure_mgmt_automation/automation_account_operations.rb +38 -31
  6. data/lib/2015-10-31/generated/azure_mgmt_automation/automation_client.rb +22 -12
  7. data/lib/2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb +84 -58
  8. data/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb +84 -58
  9. data/lib/2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb +68 -47
  10. data/lib/2015-10-31/generated/azure_mgmt_automation/credential_operations.rb +84 -58
  11. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb +68 -47
  12. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_stream.rb +124 -0
  13. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_configuration_operations.rb +218 -61
  14. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb +69 -58
  15. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb +68 -47
  16. data/lib/2015-10-31/generated/azure_mgmt_automation/fields.rb +16 -11
  17. data/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb +73 -48
  18. data/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb +132 -91
  19. data/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb +73 -48
  20. data/lib/2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb +36 -25
  21. data/lib/2015-10-31/generated/azure_mgmt_automation/keys.rb +120 -0
  22. data/lib/2015-10-31/generated/azure_mgmt_automation/linked_workspace_operations.rb +120 -0
  23. data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter.rb +35 -2
  24. data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter_validation_set.rb +47 -0
  25. data/lib/2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule_monthly_occurrence.rb +1 -1
  26. data/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_key_name.rb +2 -2
  27. data/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_regenerate_key_parameter.rb +2 -2
  28. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account.rb +9 -9
  29. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_key_name.rb +16 -0
  30. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_key_permissions.rb +16 -0
  31. data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate.rb +1 -10
  32. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection.rb +1 -10
  33. data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential.rb +1 -10
  34. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job.rb +44 -4
  35. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb +3 -3
  36. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration.rb +20 -9
  37. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_list_result.rb +12 -0
  38. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_update_parameters.rb +132 -0
  39. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node.rb +1 -25
  40. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration.rb +20 -15
  41. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_create_or_update_parameters.rb +4 -4
  42. data/lib/2015-10-31/generated/azure_mgmt_automation/models/group_type_enum.rb +16 -0
  43. data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker.rb +11 -0
  44. data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group.rb +12 -0
  45. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb +37 -1
  46. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_create_parameters.rb +0 -42
  47. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_provisioning_state.rb +18 -0
  48. data/lib/2015-10-31/generated/azure_mgmt_automation/models/key.rb +73 -0
  49. data/lib/2015-10-31/generated/azure_mgmt_automation/models/key_list_result.rb +56 -0
  50. data/lib/2015-10-31/generated/azure_mgmt_automation/models/{sub_resource.rb → linked_workspace.rb} +7 -6
  51. data/lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb +20 -9
  52. data/lib/2015-10-31/generated/azure_mgmt_automation/models/proxy_resource.rb +62 -0
  53. data/lib/2015-10-31/generated/azure_mgmt_automation/models/resource.rb +4 -34
  54. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook.rb +9 -9
  55. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_draft.rb +2 -1
  56. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule.rb +1 -10
  57. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_association_property.rb +1 -1
  58. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_create_or_update_parameters.rb +1 -1
  59. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_update_parameters.rb +1 -1
  60. data/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job.rb +11 -0
  61. data/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job_create_parameters.rb +0 -11
  62. data/lib/2015-10-31/generated/azure_mgmt_automation/models/tracked_resource.rb +92 -0
  63. data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable.rb +1 -10
  64. data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook.rb +23 -7
  65. data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_update_parameters.rb +1 -1
  66. data/lib/2015-10-31/generated/azure_mgmt_automation/module_model_operations.rb +84 -58
  67. data/lib/2015-10-31/generated/azure_mgmt_automation/node_reports.rb +53 -54
  68. data/lib/2015-10-31/generated/azure_mgmt_automation/object_data_types.rb +32 -22
  69. data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb +150 -107
  70. data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb +130 -78
  71. data/lib/2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb +96 -60
  72. data/lib/2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb +8 -6
  73. data/lib/2015-10-31/generated/azure_mgmt_automation/{test_jobs.rb → test_job_operations.rb} +87 -62
  74. data/lib/2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb +44 -30
  75. data/lib/2015-10-31/generated/azure_mgmt_automation/usages.rb +8 -6
  76. data/lib/2015-10-31/generated/azure_mgmt_automation/variable_operations.rb +84 -58
  77. data/lib/2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb +100 -69
  78. data/lib/profiles/latest/modules/automation_profile_module.rb +364 -318
  79. data/lib/version.rb +1 -1
  80. metadata +19 -6
@@ -0,0 +1,120 @@
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
+ #
8
+ # Automation Client
9
+ #
10
+ class Keys
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the Keys class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [AutomationClient] reference to the AutomationClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Retrieve the automation keys for an account.
26
+ #
27
+ # @param resource_group_name [String] Name of an Azure Resource group.
28
+ # @param automation_account_name [String] The name of the automation account.
29
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
30
+ # will be added to the HTTP request.
31
+ #
32
+ # @return [KeyListResult] operation results.
33
+ #
34
+ def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil)
35
+ response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
36
+ response.body unless response.nil?
37
+ end
38
+
39
+ #
40
+ # Retrieve the automation keys for an account.
41
+ #
42
+ # @param resource_group_name [String] Name of an Azure Resource group.
43
+ # @param automation_account_name [String] The name of the automation account.
44
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
45
+ # will be added to the HTTP request.
46
+ #
47
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
+ #
49
+ def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
50
+ list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
51
+ end
52
+
53
+ #
54
+ # Retrieve the automation keys for an account.
55
+ #
56
+ # @param resource_group_name [String] Name of an Azure Resource group.
57
+ # @param automation_account_name [String] The name of the automation account.
58
+ # @param [Hash{String => String}] A hash of custom headers that will be added
59
+ # to the HTTP request.
60
+ #
61
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
+ #
63
+ def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil)
64
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
65
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
66
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
67
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
68
+ fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
69
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
70
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
71
+
72
+
73
+ request_headers = {}
74
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
75
+
76
+ # Set Headers
77
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
78
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
79
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/listKeys'
80
+
81
+ request_url = @base_url || @client.base_url
82
+
83
+ options = {
84
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
85
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
86
+ query_params: {'api-version' => @client.api_version},
87
+ headers: request_headers.merge(custom_headers || {}),
88
+ base_url: request_url
89
+ }
90
+ promise = @client.make_request_async(:post, path_template, options)
91
+
92
+ promise = promise.then do |result|
93
+ http_response = result.response
94
+ status_code = http_response.status
95
+ response_content = http_response.body
96
+ unless status_code == 200
97
+ error_model = JSON.load(response_content)
98
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
99
+ end
100
+
101
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
102
+ # Deserialize Response
103
+ if status_code == 200
104
+ begin
105
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
106
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::KeyListResult.mapper()
107
+ result.body = @client.deserialize(result_mapper, parsed_response)
108
+ rescue Exception => e
109
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
110
+ end
111
+ end
112
+
113
+ result
114
+ end
115
+
116
+ promise.execute
117
+ end
118
+
119
+ end
120
+ end
@@ -0,0 +1,120 @@
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
+ #
8
+ # Automation Client
9
+ #
10
+ class LinkedWorkspaceOperations
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the LinkedWorkspaceOperations class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [AutomationClient] reference to the AutomationClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Retrieve the linked workspace for the account id.
26
+ #
27
+ # @param resource_group_name [String] Name of an Azure Resource group.
28
+ # @param automation_account_name [String] The name of the automation account.
29
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
30
+ # will be added to the HTTP request.
31
+ #
32
+ # @return [LinkedWorkspace] operation results.
33
+ #
34
+ def get(resource_group_name, automation_account_name, custom_headers:nil)
35
+ response = get_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
36
+ response.body unless response.nil?
37
+ end
38
+
39
+ #
40
+ # Retrieve the linked workspace for the account id.
41
+ #
42
+ # @param resource_group_name [String] Name of an Azure Resource group.
43
+ # @param automation_account_name [String] The name of the automation account.
44
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
45
+ # will be added to the HTTP request.
46
+ #
47
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
48
+ #
49
+ def get_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
50
+ get_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
51
+ end
52
+
53
+ #
54
+ # Retrieve the linked workspace for the account id.
55
+ #
56
+ # @param resource_group_name [String] Name of an Azure Resource group.
57
+ # @param automation_account_name [String] The name of the automation account.
58
+ # @param [Hash{String => String}] A hash of custom headers that will be added
59
+ # to the HTTP request.
60
+ #
61
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
62
+ #
63
+ def get_async(resource_group_name, automation_account_name, custom_headers:nil)
64
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
65
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
66
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
67
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
68
+ fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
69
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
70
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
71
+
72
+
73
+ request_headers = {}
74
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
75
+
76
+ # Set Headers
77
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
78
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
79
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/linkedWorkspace'
80
+
81
+ request_url = @base_url || @client.base_url
82
+
83
+ options = {
84
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
85
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
86
+ query_params: {'api-version' => @client.api_version},
87
+ headers: request_headers.merge(custom_headers || {}),
88
+ base_url: request_url
89
+ }
90
+ promise = @client.make_request_async(:get, path_template, options)
91
+
92
+ promise = promise.then do |result|
93
+ http_response = result.response
94
+ status_code = http_response.status
95
+ response_content = http_response.body
96
+ unless status_code == 200
97
+ error_model = JSON.load(response_content)
98
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
99
+ end
100
+
101
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
102
+ # Deserialize Response
103
+ if status_code == 200
104
+ begin
105
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
106
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::LinkedWorkspace.mapper()
107
+ result.body = @client.deserialize(result_mapper, parsed_response)
108
+ rescue Exception => e
109
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
110
+ end
111
+ end
112
+
113
+ result
114
+ end
115
+
116
+ promise.execute
117
+ end
118
+
119
+ end
120
+ end
@@ -27,7 +27,7 @@ module Azure::Automation::Mgmt::V2015_10_31
27
27
  # the parameter is dynamic.
28
28
  attr_accessor :is_dynamic
29
29
 
30
- # @return [Boolean] Gets or sets the position of the activity parameter.
30
+ # @return [Integer] Gets or sets the position of the activity parameter.
31
31
  attr_accessor :position
32
32
 
33
33
  # @return [Boolean] Gets or sets a Boolean value that indicates true if
@@ -51,6 +51,14 @@ module Azure::Automation::Mgmt::V2015_10_31
51
51
  # values.
52
52
  attr_accessor :value_from_remaining_arguments
53
53
 
54
+ # @return [String] Gets or sets the description of the activity
55
+ # parameter.
56
+ attr_accessor :description
57
+
58
+ # @return [Array<ActivityParameterValidationSet>] Gets or sets the
59
+ # validation set of activity parameter.
60
+ attr_accessor :validation_set
61
+
54
62
 
55
63
  #
56
64
  # Mapper for ActivityParameter class as Ruby Hash.
@@ -102,7 +110,7 @@ module Azure::Automation::Mgmt::V2015_10_31
102
110
  required: false,
103
111
  serialized_name: 'position',
104
112
  type: {
105
- name: 'Boolean'
113
+ name: 'Number'
106
114
  }
107
115
  },
108
116
  value_from_pipeline: {
@@ -128,6 +136,31 @@ module Azure::Automation::Mgmt::V2015_10_31
128
136
  type: {
129
137
  name: 'Boolean'
130
138
  }
139
+ },
140
+ description: {
141
+ client_side_validation: true,
142
+ required: false,
143
+ serialized_name: 'description',
144
+ type: {
145
+ name: 'String'
146
+ }
147
+ },
148
+ validation_set: {
149
+ client_side_validation: true,
150
+ required: false,
151
+ serialized_name: 'validationSet',
152
+ type: {
153
+ name: 'Sequence',
154
+ element: {
155
+ client_side_validation: true,
156
+ required: false,
157
+ serialized_name: 'ActivityParameterValidationSetElementType',
158
+ type: {
159
+ name: 'Composite',
160
+ class_name: 'ActivityParameterValidationSet'
161
+ }
162
+ }
163
+ }
131
164
  }
132
165
  }
133
166
  }
@@ -0,0 +1,47 @@
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
+ module Models
8
+ #
9
+ # Definition of the activity parameter validation set.
10
+ #
11
+ class ActivityParameterValidationSet
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the name of the activity parameter
16
+ # validation set member.
17
+ attr_accessor :member_value
18
+
19
+
20
+ #
21
+ # Mapper for ActivityParameterValidationSet class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ client_side_validation: true,
27
+ required: false,
28
+ serialized_name: 'ActivityParameterValidationSet',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'ActivityParameterValidationSet',
32
+ model_properties: {
33
+ member_value: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'memberValue',
37
+ type: {
38
+ name: 'String'
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ end
45
+ end
46
+ end
47
+ end
@@ -17,7 +17,7 @@ module Azure::Automation::Mgmt::V2015_10_31
17
17
  attr_accessor :occurrence
18
18
 
19
19
  # @return [ScheduleDay] Day of the occurrence. Must be one of monday,
20
- # tuesday, wednesday,thursday, friday, saturday, sunday. Possible values
20
+ # tuesday, wednesday, thursday, friday, saturday, sunday. Possible values
21
21
  # include: 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday',
22
22
  # 'Saturday', 'Sunday'
23
23
  attr_accessor :day
@@ -9,8 +9,8 @@ module Azure::Automation::Mgmt::V2015_10_31
9
9
  # Defines values for AgentRegistrationKeyName
10
10
  #
11
11
  module AgentRegistrationKeyName
12
- Primary = "Primary"
13
- Secondary = "Secondary"
12
+ Primary = "primary"
13
+ Secondary = "secondary"
14
14
  end
15
15
  end
16
16
  end
@@ -13,8 +13,8 @@ module Azure::Automation::Mgmt::V2015_10_31
13
13
  include MsRestAzure
14
14
 
15
15
  # @return [AgentRegistrationKeyName] Gets or sets the agent registration
16
- # key name - Primary or Secondary. Possible values include: 'Primary',
17
- # 'Secondary'
16
+ # key name - primary or secondary. Possible values include: 'primary',
17
+ # 'secondary'
18
18
  attr_accessor :key_name
19
19
 
20
20
  # @return [String] Gets or sets the name of the resource.
@@ -8,7 +8,7 @@ module Azure::Automation::Mgmt::V2015_10_31
8
8
  #
9
9
  # Definition of the automation account type.
10
10
  #
11
- class AutomationAccount < Resource
11
+ class AutomationAccount < TrackedResource
12
12
 
13
13
  include MsRestAzure
14
14
 
@@ -75,14 +75,6 @@ module Azure::Automation::Mgmt::V2015_10_31
75
75
  name: 'String'
76
76
  }
77
77
  },
78
- location: {
79
- client_side_validation: true,
80
- required: true,
81
- serialized_name: 'location',
82
- type: {
83
- name: 'String'
84
- }
85
- },
86
78
  tags: {
87
79
  client_side_validation: true,
88
80
  required: false,
@@ -99,6 +91,14 @@ module Azure::Automation::Mgmt::V2015_10_31
99
91
  }
100
92
  }
101
93
  },
94
+ location: {
95
+ client_side_validation: true,
96
+ required: false,
97
+ serialized_name: 'location',
98
+ type: {
99
+ name: 'String'
100
+ }
101
+ },
102
102
  sku: {
103
103
  client_side_validation: true,
104
104
  required: false,
@@ -0,0 +1,16 @@
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
+ module Models
8
+ #
9
+ # Defines values for AutomationKeyName
10
+ #
11
+ module AutomationKeyName
12
+ Primary = "Primary"
13
+ Secondary = "Secondary"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,16 @@
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
+ module Models
8
+ #
9
+ # Defines values for AutomationKeyPermissions
10
+ #
11
+ module AutomationKeyPermissions
12
+ Read = "Read"
13
+ Full = "Full"
14
+ end
15
+ end
16
+ end