azure_mgmt_managed_applications 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/azure_mgmt_managed_applications.rb +7 -0
  4. data/lib/generated/azure_mgmt_managed_applications.rb +47 -0
  5. data/lib/generated/azure_mgmt_managed_applications/appliance_definitions.rb +1014 -0
  6. data/lib/generated/azure_mgmt_managed_applications/appliances.rb +1400 -0
  7. data/lib/generated/azure_mgmt_managed_applications/managed_application_client.rb +133 -0
  8. data/lib/generated/azure_mgmt_managed_applications/models/appliance.rb +192 -0
  9. data/lib/generated/azure_mgmt_managed_applications/models/appliance_artifact.rb +66 -0
  10. data/lib/generated/azure_mgmt_managed_applications/models/appliance_artifact_type.rb +16 -0
  11. data/lib/generated/azure_mgmt_managed_applications/models/appliance_definition.rb +184 -0
  12. data/lib/generated/azure_mgmt_managed_applications/models/appliance_definition_list_result.rb +95 -0
  13. data/lib/generated/azure_mgmt_managed_applications/models/appliance_list_result.rb +94 -0
  14. data/lib/generated/azure_mgmt_managed_applications/models/appliance_lock_level.rb +17 -0
  15. data/lib/generated/azure_mgmt_managed_applications/models/appliance_patchable.rb +192 -0
  16. data/lib/generated/azure_mgmt_managed_applications/models/appliance_provider_authorization.rb +59 -0
  17. data/lib/generated/azure_mgmt_managed_applications/models/error_response.rb +65 -0
  18. data/lib/generated/azure_mgmt_managed_applications/models/generic_resource.rb +111 -0
  19. data/lib/generated/azure_mgmt_managed_applications/models/identity.rb +68 -0
  20. data/lib/generated/azure_mgmt_managed_applications/models/plan.rb +84 -0
  21. data/lib/generated/azure_mgmt_managed_applications/models/plan_patchable.rb +84 -0
  22. data/lib/generated/azure_mgmt_managed_applications/models/provisioning_state.rb +25 -0
  23. data/lib/generated/azure_mgmt_managed_applications/models/resource.rb +94 -0
  24. data/lib/generated/azure_mgmt_managed_applications/models/resource_identity_type.rb +15 -0
  25. data/lib/generated/azure_mgmt_managed_applications/models/sku.rb +94 -0
  26. data/lib/generated/azure_mgmt_managed_applications/module_definition.rb +8 -0
  27. data/lib/generated/azure_mgmt_managed_applications/version.rb +8 -0
  28. metadata +139 -0
@@ -0,0 +1,133 @@
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::ARM::ManagedApplications
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class ManagedApplicationClient < MsRestAzure::AzureServiceClient
11
+ include MsRestAzure
12
+ include MsRestAzure::Serialization
13
+
14
+ # @return [String] the base URI of the service.
15
+ attr_accessor :base_url
16
+
17
+ # @return Credentials needed for the client to connect to Azure.
18
+ attr_reader :credentials
19
+
20
+ # @return [String] The ID of the target subscription.
21
+ attr_accessor :subscription_id
22
+
23
+ # @return [String] The API version to use for this operation.
24
+ attr_reader :api_version
25
+
26
+ # @return [String] Gets or sets the preferred language for the response.
27
+ attr_accessor :accept_language
28
+
29
+ # @return [Integer] Gets or sets the retry timeout in seconds for Long
30
+ # Running Operations. Default value is 30.
31
+ attr_accessor :long_running_operation_retry_timeout
32
+
33
+ # @return [Boolean] When set to true a unique x-ms-client-request-id value
34
+ # is generated and included in each request. Default is true.
35
+ attr_accessor :generate_client_request_id
36
+
37
+ # @return [Appliances] appliances
38
+ attr_reader :appliances
39
+
40
+ # @return [ApplianceDefinitions] appliance_definitions
41
+ attr_reader :appliance_definitions
42
+
43
+ #
44
+ # Creates initializes a new instance of the ManagedApplicationClient class.
45
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
46
+ # @param base_url [String] the base URI of the service.
47
+ # @param options [Array] filters to be applied to the HTTP requests.
48
+ #
49
+ def initialize(credentials = nil, base_url = nil, options = nil)
50
+ super(credentials, options)
51
+ @base_url = base_url || 'https://management.azure.com'
52
+
53
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
54
+ @credentials = credentials
55
+
56
+ @appliances = Appliances.new(self)
57
+ @appliance_definitions = ApplianceDefinitions.new(self)
58
+ @api_version = '2016-09-01-preview'
59
+ @accept_language = 'en-US'
60
+ @long_running_operation_retry_timeout = 30
61
+ @generate_client_request_id = true
62
+ add_telemetry
63
+ end
64
+
65
+ #
66
+ # Makes a request and returns the body of the response.
67
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
68
+ # @param path [String] the path, relative to {base_url}.
69
+ # @param options [Hash{String=>String}] specifying any request options like :body.
70
+ # @return [Hash{String=>String}] containing the body of the response.
71
+ # Example:
72
+ #
73
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
74
+ # path = "/path"
75
+ # options = {
76
+ # body: request_content,
77
+ # query_params: {'api-version' => '2016-02-01'}
78
+ # }
79
+ # result = @client.make_request(:put, path, options)
80
+ #
81
+ def make_request(method, path, options = {})
82
+ result = make_request_with_http_info(method, path, options)
83
+ result.body unless result.nil?
84
+ end
85
+
86
+ #
87
+ # Makes a request and returns the operation response.
88
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
89
+ # @param path [String] the path, relative to {base_url}.
90
+ # @param options [Hash{String=>String}] specifying any request options like :body.
91
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
92
+ #
93
+ def make_request_with_http_info(method, path, options = {})
94
+ result = make_request_async(method, path, options).value!
95
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
96
+ result
97
+ end
98
+
99
+ #
100
+ # Makes a request asynchronously.
101
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
102
+ # @param path [String] the path, relative to {base_url}.
103
+ # @param options [Hash{String=>String}] specifying any request options like :body.
104
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
105
+ #
106
+ def make_request_async(method, path, options = {})
107
+ fail ArgumentError, 'method is nil' if method.nil?
108
+ fail ArgumentError, 'path is nil' if path.nil?
109
+
110
+ request_url = options[:base_url] || @base_url
111
+
112
+ request_headers = @request_headers
113
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
114
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
115
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
116
+
117
+ super(request_url, method, path, options)
118
+ end
119
+
120
+
121
+ private
122
+ #
123
+ # Adds telemetry information.
124
+ #
125
+ def add_telemetry
126
+ sdk_information = 'azure_mgmt_managed_applications'
127
+ if defined? Azure::ARM::ManagedApplications::VERSION
128
+ sdk_information = "#{sdk_information}/#{Azure::ARM::ManagedApplications::VERSION}"
129
+ end
130
+ add_user_agent_information(sdk_information)
131
+ end
132
+ end
133
+ end
@@ -0,0 +1,192 @@
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::ARM::ManagedApplications
7
+ module Models
8
+ #
9
+ # Information about appliance.
10
+ #
11
+ class Appliance < GenericResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The managed resource group Id.
16
+ attr_accessor :managed_resource_group_id
17
+
18
+ # @return [String] The fully qualified path of appliance definition Id.
19
+ attr_accessor :appliance_definition_id
20
+
21
+ # @return Name and value pairs that define the appliance parameters. It
22
+ # can be a JObject or a well formed JSON string.
23
+ attr_accessor :parameters
24
+
25
+ # @return Name and value pairs that define the appliance outputs.
26
+ attr_accessor :outputs
27
+
28
+ # @return [ProvisioningState] The appliance provisioning state. Possible
29
+ # values include: 'Accepted', 'Running', 'Ready', 'Creating', 'Created',
30
+ # 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', 'Updating'
31
+ attr_accessor :provisioning_state
32
+
33
+ # @return [String] The blob URI where the UI definition file is located.
34
+ attr_accessor :ui_definition_uri
35
+
36
+ # @return [Plan] The plan information.
37
+ attr_accessor :plan
38
+
39
+ # @return [String] The kind of the appliance. Allowed values are
40
+ # MarketPlace and ServiceCatalog.
41
+ attr_accessor :kind
42
+
43
+
44
+ #
45
+ # Mapper for Appliance class as Ruby Hash.
46
+ # This will be used for serialization/deserialization.
47
+ #
48
+ def self.mapper()
49
+ {
50
+ required: false,
51
+ serialized_name: 'Appliance',
52
+ type: {
53
+ name: 'Composite',
54
+ class_name: 'Appliance',
55
+ model_properties: {
56
+ id: {
57
+ required: false,
58
+ read_only: true,
59
+ serialized_name: 'id',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ name: {
65
+ required: false,
66
+ read_only: true,
67
+ serialized_name: 'name',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ type: {
73
+ required: false,
74
+ read_only: true,
75
+ serialized_name: 'type',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ },
80
+ location: {
81
+ required: false,
82
+ serialized_name: 'location',
83
+ type: {
84
+ name: 'String'
85
+ }
86
+ },
87
+ tags: {
88
+ required: false,
89
+ serialized_name: 'tags',
90
+ type: {
91
+ name: 'Dictionary',
92
+ value: {
93
+ required: false,
94
+ serialized_name: 'StringElementType',
95
+ type: {
96
+ name: 'String'
97
+ }
98
+ }
99
+ }
100
+ },
101
+ managed_by: {
102
+ required: false,
103
+ serialized_name: 'managedBy',
104
+ type: {
105
+ name: 'String'
106
+ }
107
+ },
108
+ sku: {
109
+ required: false,
110
+ serialized_name: 'sku',
111
+ type: {
112
+ name: 'Composite',
113
+ class_name: 'Sku'
114
+ }
115
+ },
116
+ identity: {
117
+ required: false,
118
+ serialized_name: 'identity',
119
+ type: {
120
+ name: 'Composite',
121
+ class_name: 'Identity'
122
+ }
123
+ },
124
+ managed_resource_group_id: {
125
+ required: true,
126
+ serialized_name: 'properties.managedResourceGroupId',
127
+ type: {
128
+ name: 'String'
129
+ }
130
+ },
131
+ appliance_definition_id: {
132
+ required: false,
133
+ serialized_name: 'properties.applianceDefinitionId',
134
+ type: {
135
+ name: 'String'
136
+ }
137
+ },
138
+ parameters: {
139
+ required: false,
140
+ serialized_name: 'properties.parameters',
141
+ type: {
142
+ name: 'Object'
143
+ }
144
+ },
145
+ outputs: {
146
+ required: false,
147
+ read_only: true,
148
+ serialized_name: 'properties.outputs',
149
+ type: {
150
+ name: 'Object'
151
+ }
152
+ },
153
+ provisioning_state: {
154
+ required: false,
155
+ read_only: true,
156
+ serialized_name: 'properties.provisioningState',
157
+ type: {
158
+ name: 'String'
159
+ }
160
+ },
161
+ ui_definition_uri: {
162
+ required: false,
163
+ serialized_name: 'properties.uiDefinitionUri',
164
+ type: {
165
+ name: 'String'
166
+ }
167
+ },
168
+ plan: {
169
+ required: false,
170
+ serialized_name: 'plan',
171
+ type: {
172
+ name: 'Composite',
173
+ class_name: 'Plan'
174
+ }
175
+ },
176
+ kind: {
177
+ required: true,
178
+ serialized_name: 'kind',
179
+ constraints: {
180
+ Pattern: '^[-\w\._,\(\)]+$'
181
+ },
182
+ type: {
183
+ name: 'String'
184
+ }
185
+ }
186
+ }
187
+ }
188
+ }
189
+ end
190
+ end
191
+ end
192
+ end
@@ -0,0 +1,66 @@
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::ARM::ManagedApplications
7
+ module Models
8
+ #
9
+ # Appliance artifact.
10
+ #
11
+ class ApplianceArtifact
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The appliance artifact name.
16
+ attr_accessor :name
17
+
18
+ # @return [String] The appliance artifact blob uri.
19
+ attr_accessor :uri
20
+
21
+ # @return [ApplianceArtifactType] The the appliance artifact type.
22
+ # Possible values include: 'Template', 'Custom'
23
+ attr_accessor :type
24
+
25
+
26
+ #
27
+ # Mapper for ApplianceArtifact class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ required: false,
33
+ serialized_name: 'ApplianceArtifact',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'ApplianceArtifact',
37
+ model_properties: {
38
+ name: {
39
+ required: false,
40
+ serialized_name: 'name',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ uri: {
46
+ required: false,
47
+ serialized_name: 'uri',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ },
52
+ type: {
53
+ required: false,
54
+ serialized_name: 'type',
55
+ type: {
56
+ name: 'Enum',
57
+ module: 'ApplianceArtifactType'
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ end
64
+ end
65
+ end
66
+ 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::ARM::ManagedApplications
7
+ module Models
8
+ #
9
+ # Defines values for ApplianceArtifactType
10
+ #
11
+ module ApplianceArtifactType
12
+ Template = "Template"
13
+ Custom = "Custom"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,184 @@
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::ARM::ManagedApplications
7
+ module Models
8
+ #
9
+ # Information about appliance definition.
10
+ #
11
+ class ApplianceDefinition < GenericResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [ApplianceLockLevel] The appliance lock level. Possible values
16
+ # include: 'CanNotDelete', 'ReadOnly', 'None'
17
+ attr_accessor :lock_level
18
+
19
+ # @return [String] The appliance definition display name.
20
+ attr_accessor :display_name
21
+
22
+ # @return [Array<ApplianceProviderAuthorization>] The appliance provider
23
+ # authorizations.
24
+ attr_accessor :authorizations
25
+
26
+ # @return [Array<ApplianceArtifact>] The collection of appliance
27
+ # artifacts. The portal will use the files specified as artifacts to
28
+ # construct the user experience of creating an appliance from an
29
+ # appliance definition.
30
+ attr_accessor :artifacts
31
+
32
+ # @return [String] The appliance definition description.
33
+ attr_accessor :description
34
+
35
+ # @return [String] The appliance definition package file Uri.
36
+ attr_accessor :package_file_uri
37
+
38
+
39
+ #
40
+ # Mapper for ApplianceDefinition class as Ruby Hash.
41
+ # This will be used for serialization/deserialization.
42
+ #
43
+ def self.mapper()
44
+ {
45
+ required: false,
46
+ serialized_name: 'ApplianceDefinition',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'ApplianceDefinition',
50
+ model_properties: {
51
+ id: {
52
+ required: false,
53
+ read_only: true,
54
+ serialized_name: 'id',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ name: {
60
+ required: false,
61
+ read_only: true,
62
+ serialized_name: 'name',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ type: {
68
+ required: false,
69
+ read_only: true,
70
+ serialized_name: 'type',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ location: {
76
+ required: false,
77
+ serialized_name: 'location',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ tags: {
83
+ required: false,
84
+ serialized_name: 'tags',
85
+ type: {
86
+ name: 'Dictionary',
87
+ value: {
88
+ required: false,
89
+ serialized_name: 'StringElementType',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ }
94
+ }
95
+ },
96
+ managed_by: {
97
+ required: false,
98
+ serialized_name: 'managedBy',
99
+ type: {
100
+ name: 'String'
101
+ }
102
+ },
103
+ sku: {
104
+ required: false,
105
+ serialized_name: 'sku',
106
+ type: {
107
+ name: 'Composite',
108
+ class_name: 'Sku'
109
+ }
110
+ },
111
+ identity: {
112
+ required: false,
113
+ serialized_name: 'identity',
114
+ type: {
115
+ name: 'Composite',
116
+ class_name: 'Identity'
117
+ }
118
+ },
119
+ lock_level: {
120
+ required: true,
121
+ serialized_name: 'properties.lockLevel',
122
+ type: {
123
+ name: 'Enum',
124
+ module: 'ApplianceLockLevel'
125
+ }
126
+ },
127
+ display_name: {
128
+ required: false,
129
+ serialized_name: 'properties.displayName',
130
+ type: {
131
+ name: 'String'
132
+ }
133
+ },
134
+ authorizations: {
135
+ required: true,
136
+ serialized_name: 'properties.authorizations',
137
+ type: {
138
+ name: 'Sequence',
139
+ element: {
140
+ required: false,
141
+ serialized_name: 'ApplianceProviderAuthorizationElementType',
142
+ type: {
143
+ name: 'Composite',
144
+ class_name: 'ApplianceProviderAuthorization'
145
+ }
146
+ }
147
+ }
148
+ },
149
+ artifacts: {
150
+ required: false,
151
+ serialized_name: 'properties.artifacts',
152
+ type: {
153
+ name: 'Sequence',
154
+ element: {
155
+ required: false,
156
+ serialized_name: 'ApplianceArtifactElementType',
157
+ type: {
158
+ name: 'Composite',
159
+ class_name: 'ApplianceArtifact'
160
+ }
161
+ }
162
+ }
163
+ },
164
+ description: {
165
+ required: false,
166
+ serialized_name: 'properties.description',
167
+ type: {
168
+ name: 'String'
169
+ }
170
+ },
171
+ package_file_uri: {
172
+ required: true,
173
+ serialized_name: 'properties.packageFileUri',
174
+ type: {
175
+ name: 'String'
176
+ }
177
+ }
178
+ }
179
+ }
180
+ }
181
+ end
182
+ end
183
+ end
184
+ end