azure_mgmt_maintenance 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2018-06-01-preview/generated/azure_mgmt_maintenance.rb +48 -0
  4. data/lib/2018-06-01-preview/generated/azure_mgmt_maintenance/apply_updates.rb +481 -0
  5. data/lib/2018-06-01-preview/generated/azure_mgmt_maintenance/configuration_assignments.rb +747 -0
  6. data/lib/2018-06-01-preview/generated/azure_mgmt_maintenance/maintenance_configurations.rb +509 -0
  7. data/lib/2018-06-01-preview/generated/azure_mgmt_maintenance/maintenance_management_client.rb +149 -0
  8. data/lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/apply_update.rb +96 -0
  9. data/lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/configuration_assignment.rb +95 -0
  10. data/lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/error_details.rb +58 -0
  11. data/lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/impact_type.rb +18 -0
  12. data/lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/list_configuration_assignments_result.rb +56 -0
  13. data/lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/list_maintenance_configurations_result.rb +56 -0
  14. data/lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/list_updates_result.rb +55 -0
  15. data/lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/maintenance_configuration.rb +136 -0
  16. data/lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/maintenance_error.rb +47 -0
  17. data/lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/maintenance_scope.rb +18 -0
  18. data/lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/operation.rb +80 -0
  19. data/lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/operation_info.rb +79 -0
  20. data/lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/operations_list_result.rb +55 -0
  21. data/lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/resource.rb +80 -0
  22. data/lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/update.rb +105 -0
  23. data/lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/update_status.rb +19 -0
  24. data/lib/2018-06-01-preview/generated/azure_mgmt_maintenance/module_definition.rb +9 -0
  25. data/lib/2018-06-01-preview/generated/azure_mgmt_maintenance/operations.rb +118 -0
  26. data/lib/2018-06-01-preview/generated/azure_mgmt_maintenance/updates.rb +249 -0
  27. data/lib/azure_mgmt_maintenance.rb +6 -0
  28. data/lib/module_definition.rb +7 -0
  29. data/lib/profiles/latest/maintenance_latest_profile_client.rb +40 -0
  30. data/lib/profiles/latest/maintenance_module_definition.rb +8 -0
  31. data/lib/profiles/latest/modules/maintenance_profile_module.rb +133 -0
  32. data/lib/version.rb +7 -0
  33. metadata +148 -0
@@ -0,0 +1,6 @@
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
+ require '2018-06-01-preview/generated/azure_mgmt_maintenance'
6
+ require 'profiles/latest/maintenance_latest_profile_client'
@@ -0,0 +1,7 @@
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 end
6
+ module Azure::Maintenance end
7
+ module Azure::Maintenance::Mgmt end
@@ -0,0 +1,40 @@
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
+ require 'profiles/latest/maintenance_module_definition'
6
+ require 'profiles/latest/modules/maintenance_profile_module'
7
+
8
+ module Azure::Maintenance::Profiles::Latest
9
+ module Mgmt
10
+ #
11
+ # Client class for the Latest profile SDK.
12
+ #
13
+ class Client < MaintenanceManagementClass
14
+ include MsRestAzure::Common::Configurable
15
+
16
+ #
17
+ # Initializes a new instance of the Client class.
18
+ # @param options [Hash] hash of client options.
19
+ # options = {
20
+ # tenant_id: 'YOUR TENANT ID',
21
+ # client_id: 'YOUR CLIENT ID',
22
+ # client_secret: 'YOUR CLIENT SECRET',
23
+ # subscription_id: 'YOUR SUBSCRIPTION ID',
24
+ # credentials: credentials,
25
+ # active_directory_settings: active_directory_settings,
26
+ # base_url: 'YOUR BASE URL',
27
+ # options: options
28
+ # }
29
+ # 'credentials' are optional and if not passed in the hash, will be obtained
30
+ # from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
31
+ #
32
+ # Also, base_url, active_directory_settings & options are optional.
33
+ #
34
+ def initialize(options = {})
35
+ super(options)
36
+ end
37
+
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,8 @@
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 end
6
+ module Azure::Maintenance end
7
+ module Azure::Maintenance::Profiles end
8
+ module Azure::Maintenance::Profiles::Latest end
@@ -0,0 +1,133 @@
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
+ require 'azure_mgmt_maintenance'
6
+
7
+ module Azure::Maintenance::Profiles::Latest
8
+ module Mgmt
9
+ ApplyUpdates = Azure::Maintenance::Mgmt::V2018_06_01_preview::ApplyUpdates
10
+ ConfigurationAssignments = Azure::Maintenance::Mgmt::V2018_06_01_preview::ConfigurationAssignments
11
+ MaintenanceConfigurations = Azure::Maintenance::Mgmt::V2018_06_01_preview::MaintenanceConfigurations
12
+ Operations = Azure::Maintenance::Mgmt::V2018_06_01_preview::Operations
13
+ Updates = Azure::Maintenance::Mgmt::V2018_06_01_preview::Updates
14
+
15
+ module Models
16
+ MaintenanceError = Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::MaintenanceError
17
+ ListMaintenanceConfigurationsResult = Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::ListMaintenanceConfigurationsResult
18
+ Resource = Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::Resource
19
+ Update = Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::Update
20
+ ListUpdatesResult = Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::ListUpdatesResult
21
+ OperationInfo = Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::OperationInfo
22
+ ListConfigurationAssignmentsResult = Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::ListConfigurationAssignmentsResult
23
+ Operation = Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::Operation
24
+ ErrorDetails = Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::ErrorDetails
25
+ OperationsListResult = Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::OperationsListResult
26
+ ApplyUpdate = Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::ApplyUpdate
27
+ ConfigurationAssignment = Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::ConfigurationAssignment
28
+ MaintenanceConfiguration = Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::MaintenanceConfiguration
29
+ UpdateStatus = Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::UpdateStatus
30
+ MaintenanceScope = Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::MaintenanceScope
31
+ ImpactType = Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::ImpactType
32
+ end
33
+
34
+ #
35
+ # MaintenanceManagementClass
36
+ #
37
+ class MaintenanceManagementClass
38
+ attr_reader :apply_updates, :configuration_assignments, :maintenance_configurations, :operations, :updates, :configurable, :base_url, :options, :model_classes
39
+
40
+ def initialize(options = {})
41
+ if options.is_a?(Hash) && options.length == 0
42
+ @options = setup_default_options
43
+ else
44
+ @options = options
45
+ end
46
+
47
+ reset!(options)
48
+
49
+ @configurable = self
50
+ @base_url = options[:base_url].nil? ? nil:options[:base_url]
51
+ @options = options[:options].nil? ? nil:options[:options]
52
+
53
+ @client_0 = Azure::Maintenance::Mgmt::V2018_06_01_preview::MaintenanceManagementClient.new(configurable.credentials, base_url, options)
54
+ if(@client_0.respond_to?(:subscription_id))
55
+ @client_0.subscription_id = configurable.subscription_id
56
+ end
57
+ add_telemetry(@client_0)
58
+ @apply_updates = @client_0.apply_updates
59
+ @configuration_assignments = @client_0.configuration_assignments
60
+ @maintenance_configurations = @client_0.maintenance_configurations
61
+ @operations = @client_0.operations
62
+ @updates = @client_0.updates
63
+
64
+ @model_classes = ModelClasses.new
65
+ end
66
+
67
+ def add_telemetry(client)
68
+ profile_information = 'Profiles/Latest/Maintenance/Mgmt'
69
+ client.add_user_agent_information(profile_information)
70
+ end
71
+
72
+ def method_missing(method, *args)
73
+ if @client_0.respond_to?method
74
+ @client_0.send(method, *args)
75
+ else
76
+ super
77
+ end
78
+ end
79
+
80
+ end
81
+
82
+ class ModelClasses
83
+ def maintenance_error
84
+ Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::MaintenanceError
85
+ end
86
+ def list_maintenance_configurations_result
87
+ Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::ListMaintenanceConfigurationsResult
88
+ end
89
+ def resource
90
+ Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::Resource
91
+ end
92
+ def update
93
+ Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::Update
94
+ end
95
+ def list_updates_result
96
+ Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::ListUpdatesResult
97
+ end
98
+ def operation_info
99
+ Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::OperationInfo
100
+ end
101
+ def list_configuration_assignments_result
102
+ Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::ListConfigurationAssignmentsResult
103
+ end
104
+ def operation
105
+ Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::Operation
106
+ end
107
+ def error_details
108
+ Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::ErrorDetails
109
+ end
110
+ def operations_list_result
111
+ Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::OperationsListResult
112
+ end
113
+ def apply_update
114
+ Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::ApplyUpdate
115
+ end
116
+ def configuration_assignment
117
+ Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::ConfigurationAssignment
118
+ end
119
+ def maintenance_configuration
120
+ Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::MaintenanceConfiguration
121
+ end
122
+ def update_status
123
+ Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::UpdateStatus
124
+ end
125
+ def maintenance_scope
126
+ Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::MaintenanceScope
127
+ end
128
+ def impact_type
129
+ Azure::Maintenance::Mgmt::V2018_06_01_preview::Models::ImpactType
130
+ end
131
+ end
132
+ end
133
+ end
@@ -0,0 +1,7 @@
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::Maintenance::Mgmt
6
+ VERSION = '0.17.0'
7
+ end
metadata ADDED
@@ -0,0 +1,148 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: azure_mgmt_maintenance
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.17.0
5
+ platform: ruby
6
+ authors:
7
+ - Microsoft Corporation
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-11-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.9'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.9'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: dotenv
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2'
69
+ - !ruby/object:Gem::Dependency
70
+ name: ms_rest_azure
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.11.1
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.11.1
83
+ description:
84
+ email: azrubyteam@microsoft.com
85
+ executables: []
86
+ extensions: []
87
+ extra_rdoc_files: []
88
+ files:
89
+ - LICENSE.txt
90
+ - lib/2018-06-01-preview/generated/azure_mgmt_maintenance.rb
91
+ - lib/2018-06-01-preview/generated/azure_mgmt_maintenance/apply_updates.rb
92
+ - lib/2018-06-01-preview/generated/azure_mgmt_maintenance/configuration_assignments.rb
93
+ - lib/2018-06-01-preview/generated/azure_mgmt_maintenance/maintenance_configurations.rb
94
+ - lib/2018-06-01-preview/generated/azure_mgmt_maintenance/maintenance_management_client.rb
95
+ - lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/apply_update.rb
96
+ - lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/configuration_assignment.rb
97
+ - lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/error_details.rb
98
+ - lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/impact_type.rb
99
+ - lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/list_configuration_assignments_result.rb
100
+ - lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/list_maintenance_configurations_result.rb
101
+ - lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/list_updates_result.rb
102
+ - lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/maintenance_configuration.rb
103
+ - lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/maintenance_error.rb
104
+ - lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/maintenance_scope.rb
105
+ - lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/operation.rb
106
+ - lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/operation_info.rb
107
+ - lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/operations_list_result.rb
108
+ - lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/resource.rb
109
+ - lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/update.rb
110
+ - lib/2018-06-01-preview/generated/azure_mgmt_maintenance/models/update_status.rb
111
+ - lib/2018-06-01-preview/generated/azure_mgmt_maintenance/module_definition.rb
112
+ - lib/2018-06-01-preview/generated/azure_mgmt_maintenance/operations.rb
113
+ - lib/2018-06-01-preview/generated/azure_mgmt_maintenance/updates.rb
114
+ - lib/azure_mgmt_maintenance.rb
115
+ - lib/module_definition.rb
116
+ - lib/profiles/latest/maintenance_latest_profile_client.rb
117
+ - lib/profiles/latest/maintenance_module_definition.rb
118
+ - lib/profiles/latest/modules/maintenance_profile_module.rb
119
+ - lib/version.rb
120
+ homepage: https://aka.ms/azure-sdk-for-ruby
121
+ licenses:
122
+ - MIT
123
+ metadata:
124
+ bug_tracker_uri: https://github.com/Azure/azure-sdk-for-ruby/issues
125
+ changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
126
+ documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
127
+ homepage_uri: https://aka.ms/azure-sdk-for-ruby
128
+ post_install_message:
129
+ rdoc_options: []
130
+ require_paths:
131
+ - lib
132
+ required_ruby_version: !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: 2.0.0
137
+ required_rubygems_version: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - ">="
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ requirements: []
143
+ rubyforge_project:
144
+ rubygems_version: 2.7.8
145
+ signing_key:
146
+ specification_version: 4
147
+ summary: Official Ruby client library to consume Maintenance
148
+ test_files: []