azure_mgmt_machine_learning 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/LICENSE.txt +21 -0
  4. data/Rakefile +5 -0
  5. data/azure_mgmt_machine_learning.gemspec +34 -0
  6. data/lib/azure_mgmt_machine_learning.rb +5 -0
  7. data/lib/generated/azure_mgmt_machine_learning.rb +61 -0
  8. data/lib/generated/azure_mgmt_machine_learning/azure_mlweb_services_management_client.rb +67 -0
  9. data/lib/generated/azure_mgmt_machine_learning/models/asset_item.rb +151 -0
  10. data/lib/generated/azure_mgmt_machine_learning/models/asset_location.rb +56 -0
  11. data/lib/generated/azure_mgmt_machine_learning/models/asset_type.rb +16 -0
  12. data/lib/generated/azure_mgmt_machine_learning/models/column_format.rb +28 -0
  13. data/lib/generated/azure_mgmt_machine_learning/models/column_specification.rb +100 -0
  14. data/lib/generated/azure_mgmt_machine_learning/models/column_type.rb +18 -0
  15. data/lib/generated/azure_mgmt_machine_learning/models/commitment_plan.rb +45 -0
  16. data/lib/generated/azure_mgmt_machine_learning/models/diagnostics_configuration.rb +58 -0
  17. data/lib/generated/azure_mgmt_machine_learning/models/diagnostics_level.rb +17 -0
  18. data/lib/generated/azure_mgmt_machine_learning/models/example_request.rb +83 -0
  19. data/lib/generated/azure_mgmt_machine_learning/models/graph_edge.rb +76 -0
  20. data/lib/generated/azure_mgmt_machine_learning/models/graph_node.rb +85 -0
  21. data/lib/generated/azure_mgmt_machine_learning/models/graph_package.rb +93 -0
  22. data/lib/generated/azure_mgmt_machine_learning/models/graph_parameter.rb +76 -0
  23. data/lib/generated/azure_mgmt_machine_learning/models/graph_parameter_link.rb +55 -0
  24. data/lib/generated/azure_mgmt_machine_learning/models/input_port.rb +46 -0
  25. data/lib/generated/azure_mgmt_machine_learning/models/input_port_type.rb +15 -0
  26. data/lib/generated/azure_mgmt_machine_learning/models/machine_learning_workspace.rb +45 -0
  27. data/lib/generated/azure_mgmt_machine_learning/models/mode_value_info.rb +62 -0
  28. data/lib/generated/azure_mgmt_machine_learning/models/module_asset_parameter.rb +73 -0
  29. data/lib/generated/azure_mgmt_machine_learning/models/output_port.rb +46 -0
  30. data/lib/generated/azure_mgmt_machine_learning/models/output_port_type.rb +15 -0
  31. data/lib/generated/azure_mgmt_machine_learning/models/paginated_web_services_list.rb +63 -0
  32. data/lib/generated/azure_mgmt_machine_learning/models/parameter_type.rb +26 -0
  33. data/lib/generated/azure_mgmt_machine_learning/models/provisioning_state.rb +19 -0
  34. data/lib/generated/azure_mgmt_machine_learning/models/realtime_configuration.rb +50 -0
  35. data/lib/generated/azure_mgmt_machine_learning/models/service_input_output_specification.rb +86 -0
  36. data/lib/generated/azure_mgmt_machine_learning/models/storage_account.rb +54 -0
  37. data/lib/generated/azure_mgmt_machine_learning/models/table_specification.rb +96 -0
  38. data/lib/generated/azure_mgmt_machine_learning/models/web_service.rb +91 -0
  39. data/lib/generated/azure_mgmt_machine_learning/models/web_service_keys.rb +54 -0
  40. data/lib/generated/azure_mgmt_machine_learning/models/web_service_properties.rb +290 -0
  41. data/lib/generated/azure_mgmt_machine_learning/models/web_service_properties_for_graph.rb +221 -0
  42. data/lib/generated/azure_mgmt_machine_learning/module_definition.rb +8 -0
  43. data/lib/generated/azure_mgmt_machine_learning/version.rb +8 -0
  44. data/lib/generated/azure_mgmt_machine_learning/web_services.rb +868 -0
  45. metadata +157 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f77f0c51bb0fb72c272fb14ef3b9ebe8e54f76d5
4
+ data.tar.gz: 24974b1557955c454a7b666f2e770cac3f3e034f
5
+ SHA512:
6
+ metadata.gz: 4202421aa69ba3115172cd276d26c98ada7382ddb03742f60e5b41af77bf57be34ca1c130b9a9dd006a4748b7a31ac80ae1a1906da73e49c021f5bb6a63b0b90
7
+ data.tar.gz: 319e04049c3634710d19c0f08f39c89be319d47c0effa5d02f238cf8c00e94c19fab87c02d938c0a4d2b2479eeaed02e8a606d8d480a89de7014d84ecac5b683
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --require spec_helper
2
+ --color
3
+ --format documentation
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Microsoft Corporation
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,5 @@
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 "bundler/gem_tasks"
@@ -0,0 +1,34 @@
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
+ lib = File.expand_path('../lib', __FILE__)
6
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
7
+
8
+ require 'generated/azure_mgmt_machine_learning/module_definition'
9
+ require 'generated/azure_mgmt_machine_learning/version'
10
+
11
+ Gem::Specification.new do |spec|
12
+ spec.name = 'azure_mgmt_machine_learning'
13
+ spec.version = Azure::ARM::MachineLearning::VERSION
14
+ spec.authors = 'Microsoft Corporation'
15
+ spec.email = 'azrubyteam@microsoft.com'
16
+ spec.description = 'Microsoft Azure Machine Learning Management Client Library for Ruby'
17
+ spec.summary = 'Official Ruby client library to consume Microsoft Azure Machine Learning Management services.'
18
+ spec.homepage = 'https://aka.ms/azure-sdk-for-ruby'
19
+ spec.license = 'MIT'
20
+
21
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
+ spec.bindir = 'bin'
23
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
+ spec.require_paths = ['lib']
25
+
26
+ spec.required_ruby_version = '>= 1.9.3'
27
+
28
+ spec.add_development_dependency 'bundler', '~> 1.9'
29
+ spec.add_development_dependency 'rake', '~> 10'
30
+ spec.add_development_dependency 'rspec', '~> 3'
31
+ spec.add_development_dependency 'dotenv', '~> 2'
32
+
33
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.3.0'
34
+ end
@@ -0,0 +1,5 @@
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 'generated/azure_mgmt_machine_learning'
@@ -0,0 +1,61 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require 'generated/azure_mgmt_machine_learning/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::ARM::MachineLearning
23
+ autoload :WebServices, 'generated/azure_mgmt_machine_learning/web_services.rb'
24
+ autoload :AzureMLWebServicesManagementClient, 'generated/azure_mgmt_machine_learning/azure_mlweb_services_management_client.rb'
25
+
26
+ module Models
27
+ autoload :WebServiceProperties, 'generated/azure_mgmt_machine_learning/models/web_service_properties.rb'
28
+ autoload :WebServiceKeys, 'generated/azure_mgmt_machine_learning/models/web_service_keys.rb'
29
+ autoload :RealtimeConfiguration, 'generated/azure_mgmt_machine_learning/models/realtime_configuration.rb'
30
+ autoload :DiagnosticsConfiguration, 'generated/azure_mgmt_machine_learning/models/diagnostics_configuration.rb'
31
+ autoload :StorageAccount, 'generated/azure_mgmt_machine_learning/models/storage_account.rb'
32
+ autoload :MachineLearningWorkspace, 'generated/azure_mgmt_machine_learning/models/machine_learning_workspace.rb'
33
+ autoload :CommitmentPlan, 'generated/azure_mgmt_machine_learning/models/commitment_plan.rb'
34
+ autoload :ServiceInputOutputSpecification, 'generated/azure_mgmt_machine_learning/models/service_input_output_specification.rb'
35
+ autoload :TableSpecification, 'generated/azure_mgmt_machine_learning/models/table_specification.rb'
36
+ autoload :ColumnSpecification, 'generated/azure_mgmt_machine_learning/models/column_specification.rb'
37
+ autoload :ExampleRequest, 'generated/azure_mgmt_machine_learning/models/example_request.rb'
38
+ autoload :AssetItem, 'generated/azure_mgmt_machine_learning/models/asset_item.rb'
39
+ autoload :AssetLocation, 'generated/azure_mgmt_machine_learning/models/asset_location.rb'
40
+ autoload :InputPort, 'generated/azure_mgmt_machine_learning/models/input_port.rb'
41
+ autoload :OutputPort, 'generated/azure_mgmt_machine_learning/models/output_port.rb'
42
+ autoload :ModuleAssetParameter, 'generated/azure_mgmt_machine_learning/models/module_asset_parameter.rb'
43
+ autoload :ModeValueInfo, 'generated/azure_mgmt_machine_learning/models/mode_value_info.rb'
44
+ autoload :GraphPackage, 'generated/azure_mgmt_machine_learning/models/graph_package.rb'
45
+ autoload :GraphNode, 'generated/azure_mgmt_machine_learning/models/graph_node.rb'
46
+ autoload :GraphEdge, 'generated/azure_mgmt_machine_learning/models/graph_edge.rb'
47
+ autoload :GraphParameter, 'generated/azure_mgmt_machine_learning/models/graph_parameter.rb'
48
+ autoload :GraphParameterLink, 'generated/azure_mgmt_machine_learning/models/graph_parameter_link.rb'
49
+ autoload :PaginatedWebServicesList, 'generated/azure_mgmt_machine_learning/models/paginated_web_services_list.rb'
50
+ autoload :WebService, 'generated/azure_mgmt_machine_learning/models/web_service.rb'
51
+ autoload :WebServicePropertiesForGraph, 'generated/azure_mgmt_machine_learning/models/web_service_properties_for_graph.rb'
52
+ autoload :ProvisioningState, 'generated/azure_mgmt_machine_learning/models/provisioning_state.rb'
53
+ autoload :DiagnosticsLevel, 'generated/azure_mgmt_machine_learning/models/diagnostics_level.rb'
54
+ autoload :ColumnType, 'generated/azure_mgmt_machine_learning/models/column_type.rb'
55
+ autoload :ColumnFormat, 'generated/azure_mgmt_machine_learning/models/column_format.rb'
56
+ autoload :AssetType, 'generated/azure_mgmt_machine_learning/models/asset_type.rb'
57
+ autoload :InputPortType, 'generated/azure_mgmt_machine_learning/models/input_port_type.rb'
58
+ autoload :OutputPortType, 'generated/azure_mgmt_machine_learning/models/output_port_type.rb'
59
+ autoload :ParameterType, 'generated/azure_mgmt_machine_learning/models/parameter_type.rb'
60
+ end
61
+ end
@@ -0,0 +1,67 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::MachineLearning
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class AzureMLWebServicesManagementClient < MsRestAzure::AzureServiceClient
11
+ include MsRest::Serialization
12
+ include MsRestAzure
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] Azure subscription id.
21
+ attr_accessor :subscription_id
22
+
23
+ # @return [String] The versiong of the Microsoft.MachineLearning resource
24
+ # provider API to be used.
25
+ attr_reader :api_version
26
+
27
+ # @return [String] Gets or sets the preferred language for the response.
28
+ attr_accessor :accept_language
29
+
30
+ # @return [Integer] Gets or sets the retry timeout in seconds for Long
31
+ # Running Operations. Default value is 30.
32
+ attr_accessor :long_running_operation_retry_timeout
33
+
34
+ # @return [Boolean] When set to true a unique x-ms-client-request-id value
35
+ # is generated and included in each request. Default is true.
36
+ attr_accessor :generate_client_request_id
37
+
38
+ # @return Subscription credentials which uniquely identify client
39
+ # subscription.
40
+ attr_accessor :credentials
41
+
42
+ # @return [WebServices] web_services
43
+ attr_reader :web_services
44
+
45
+ #
46
+ # Creates initializes a new instance of the AzureMLWebServicesManagementClient class.
47
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
48
+ # @param base_url [String] the base URI of the service.
49
+ # @param options [Array] filters to be applied to the HTTP requests.
50
+ #
51
+ def initialize(credentials, base_url = nil, options = nil)
52
+ super(credentials, options)
53
+ @base_url = base_url || 'https://management.azure.com'
54
+
55
+ fail ArgumentError, 'credentials is nil' if credentials.nil?
56
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
57
+ @credentials = credentials
58
+
59
+ @web_services = WebServices.new(self)
60
+ @api_version = '2016-05-01-preview'
61
+ @accept_language = 'en-US'
62
+ @long_running_operation_retry_timeout = 30
63
+ @generate_client_request_id = true
64
+ end
65
+
66
+ end
67
+ end
@@ -0,0 +1,151 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::MachineLearning
7
+ module Models
8
+ #
9
+ # Information about an asset associated with the web service.
10
+ #
11
+ class AssetItem
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Asset's friendly name.
16
+ attr_accessor :name
17
+
18
+ # @return [String] Asset's Id.
19
+ attr_accessor :id
20
+
21
+ # @return [AssetType] Asset's type. Possible values include: 'Module',
22
+ # 'Resource'
23
+ attr_accessor :type
24
+
25
+ # @return [AssetLocation] Access information for the asset.
26
+ attr_accessor :location_info
27
+
28
+ # @return [Hash{String => InputPort}] Information about the asset's
29
+ # input ports.
30
+ attr_accessor :input_ports
31
+
32
+ # @return [Hash{String => OutputPort}] Information about the asset's
33
+ # output ports.
34
+ attr_accessor :output_ports
35
+
36
+ # @return [Hash{String => String}] If the asset is a custom module, this
37
+ # holds the module's metadata.
38
+ attr_accessor :metadata
39
+
40
+ # @return [Array<ModuleAssetParameter>] If the asset is a custom module,
41
+ # this holds the module's parameters.
42
+ attr_accessor :parameters
43
+
44
+
45
+ #
46
+ # Mapper for AssetItem class as Ruby Hash.
47
+ # This will be used for serialization/deserialization.
48
+ #
49
+ def self.mapper()
50
+ {
51
+ required: false,
52
+ serialized_name: 'AssetItem',
53
+ type: {
54
+ name: 'Composite',
55
+ class_name: 'AssetItem',
56
+ model_properties: {
57
+ name: {
58
+ required: true,
59
+ serialized_name: 'name',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ id: {
65
+ required: false,
66
+ serialized_name: 'id',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ },
71
+ type: {
72
+ required: true,
73
+ serialized_name: 'type',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ },
78
+ location_info: {
79
+ required: true,
80
+ serialized_name: 'locationInfo',
81
+ type: {
82
+ name: 'Composite',
83
+ class_name: 'AssetLocation'
84
+ }
85
+ },
86
+ input_ports: {
87
+ required: false,
88
+ serialized_name: 'inputPorts',
89
+ type: {
90
+ name: 'Dictionary',
91
+ value: {
92
+ required: false,
93
+ serialized_name: 'InputPortElementType',
94
+ type: {
95
+ name: 'Composite',
96
+ class_name: 'InputPort'
97
+ }
98
+ }
99
+ }
100
+ },
101
+ output_ports: {
102
+ required: false,
103
+ serialized_name: 'outputPorts',
104
+ type: {
105
+ name: 'Dictionary',
106
+ value: {
107
+ required: false,
108
+ serialized_name: 'OutputPortElementType',
109
+ type: {
110
+ name: 'Composite',
111
+ class_name: 'OutputPort'
112
+ }
113
+ }
114
+ }
115
+ },
116
+ metadata: {
117
+ required: false,
118
+ serialized_name: 'metadata',
119
+ type: {
120
+ name: 'Dictionary',
121
+ value: {
122
+ required: false,
123
+ serialized_name: 'StringElementType',
124
+ type: {
125
+ name: 'String'
126
+ }
127
+ }
128
+ }
129
+ },
130
+ parameters: {
131
+ required: false,
132
+ serialized_name: 'parameters',
133
+ type: {
134
+ name: 'Sequence',
135
+ element: {
136
+ required: false,
137
+ serialized_name: 'ModuleAssetParameterElementType',
138
+ type: {
139
+ name: 'Composite',
140
+ class_name: 'ModuleAssetParameter'
141
+ }
142
+ }
143
+ }
144
+ }
145
+ }
146
+ }
147
+ }
148
+ end
149
+ end
150
+ end
151
+ end
@@ -0,0 +1,56 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::MachineLearning
7
+ module Models
8
+ #
9
+ # Describes the access location for a web service asset.
10
+ #
11
+ class AssetLocation
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The URI where the asset is accessible from, (e.g.
16
+ # aml://abc for system assets or https://xyz for user asets
17
+ attr_accessor :uri
18
+
19
+ # @return [String] Access credentials for the asset, if applicable (e.g.
20
+ # asset specified by storage account connection string + blob URI)
21
+ attr_accessor :credentials
22
+
23
+
24
+ #
25
+ # Mapper for AssetLocation class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ required: false,
31
+ serialized_name: 'AssetLocation',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'AssetLocation',
35
+ model_properties: {
36
+ uri: {
37
+ required: true,
38
+ serialized_name: 'uri',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ credentials: {
44
+ required: false,
45
+ serialized_name: 'credentials',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,16 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::MachineLearning
7
+ module Models
8
+ #
9
+ # Defines values for AssetType
10
+ #
11
+ module AssetType
12
+ Module = "Module"
13
+ Resource = "Resource"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,28 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::MachineLearning
7
+ module Models
8
+ #
9
+ # Defines values for ColumnFormat
10
+ #
11
+ module ColumnFormat
12
+ Byte = "Byte"
13
+ Char = "Char"
14
+ Datetime = "Datetime"
15
+ Double = "Double"
16
+ Duration = "Duration"
17
+ Float = "Float"
18
+ Int8 = "Int8"
19
+ Int16 = "Int16"
20
+ Int32 = "Int32"
21
+ Int64 = "Int64"
22
+ Uint8 = "Uint8"
23
+ Uint16 = "Uint16"
24
+ Uint32 = "Uint32"
25
+ Uint64 = "Uint64"
26
+ end
27
+ end
28
+ end