azure_mgmt_machine_learning_services 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services.rb +67 -0
  4. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/machine_learning_compute.rb +881 -0
  5. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/machine_learning_services_client.rb +139 -0
  6. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/aks.rb +131 -0
  7. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/aks_compute_secrets.rb +85 -0
  8. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/aksproperties.rb +103 -0
  9. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/batch_ai.rb +131 -0
  10. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/batch_aiproperties.rb +69 -0
  11. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/compute.rb +144 -0
  12. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/compute_resource.rb +110 -0
  13. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/compute_secrets.rb +48 -0
  14. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/compute_type.rb +19 -0
  15. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/data_factory.rb +119 -0
  16. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/error_detail.rb +57 -0
  17. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/error_response.rb +77 -0
  18. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/hdinsight.rb +131 -0
  19. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/hdinsight_properties.rb +72 -0
  20. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/identity.rb +72 -0
  21. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/list_workspace_keys_result.rb +85 -0
  22. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/machine_learning_service_error.rb +47 -0
  23. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/operation.rb +58 -0
  24. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/operation_display.rb +80 -0
  25. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/operation_list_result.rb +56 -0
  26. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/paginated_compute_resources_list.rb +101 -0
  27. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/password.rb +60 -0
  28. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/provisioning_state.rb +21 -0
  29. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/registry_list_credentials_result.rb +80 -0
  30. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/resource.rb +124 -0
  31. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/resource_identity_type.rb +15 -0
  32. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/scale_settings.rb +68 -0
  33. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/service_principal_credentials.rb +57 -0
  34. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/ssl_configuration.rb +80 -0
  35. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/system_service.rb +71 -0
  36. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/virtual_machine.rb +131 -0
  37. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/virtual_machine_properties.rb +82 -0
  38. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/virtual_machine_secrets.rb +63 -0
  39. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/virtual_machine_ssh_credentials.rb +79 -0
  40. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/workspace.rb +232 -0
  41. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/workspace_list_result.rb +101 -0
  42. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/models/workspace_update_parameters.rb +77 -0
  43. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/module_definition.rb +9 -0
  44. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/operations.rb +111 -0
  45. data/lib/2018-03-01-preview/generated/azure_mgmt_machine_learning_services/workspaces.rb +1033 -0
  46. data/lib/azure_mgmt_machine_learning_services.rb +6 -0
  47. data/lib/module_definition.rb +8 -0
  48. data/lib/profiles/latest/machinelearningservices_latest_profile_client.rb +40 -0
  49. data/lib/profiles/latest/machinelearningservices_module_definition.rb +8 -0
  50. data/lib/profiles/latest/modules/machinelearningservices_profile_module.rb +213 -0
  51. data/lib/version.rb +7 -0
  52. metadata +170 -0
@@ -0,0 +1,139 @@
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::MachineLearningServices::Mgmt::V2018_03_01_preview
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class MachineLearningServicesClient < 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] Azure subscription identifier.
21
+ attr_accessor :subscription_id
22
+
23
+ # @return [String] Version of Azure Machine Learning resource provider API.
24
+ attr_reader :api_version
25
+
26
+ # @return [String] The preferred language for the response.
27
+ attr_accessor :accept_language
28
+
29
+ # @return [Integer] The retry timeout in seconds for Long Running
30
+ # Operations. Default value is 30.
31
+ attr_accessor :long_running_operation_retry_timeout
32
+
33
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
34
+ # generated. When set to true a unique x-ms-client-request-id value is
35
+ # generated and included in each request. Default is true.
36
+ attr_accessor :generate_client_request_id
37
+
38
+ # @return [Operations] operations
39
+ attr_reader :operations
40
+
41
+ # @return [Workspaces] workspaces
42
+ attr_reader :workspaces
43
+
44
+ # @return [MachineLearningCompute] machine_learning_compute
45
+ attr_reader :machine_learning_compute
46
+
47
+ #
48
+ # Creates initializes a new instance of the MachineLearningServicesClient class.
49
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
50
+ # @param base_url [String] the base URI of the service.
51
+ # @param options [Array] filters to be applied to the HTTP requests.
52
+ #
53
+ def initialize(credentials = nil, base_url = nil, options = nil)
54
+ super(credentials, options)
55
+ @base_url = base_url || 'https://management.azure.com'
56
+
57
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
58
+ @credentials = credentials
59
+
60
+ @operations = Operations.new(self)
61
+ @workspaces = Workspaces.new(self)
62
+ @machine_learning_compute = MachineLearningCompute.new(self)
63
+ @api_version = '2018-03-01-preview'
64
+ @accept_language = 'en-US'
65
+ @long_running_operation_retry_timeout = 30
66
+ @generate_client_request_id = true
67
+ add_telemetry
68
+ end
69
+
70
+ #
71
+ # Makes a request and returns the body of the response.
72
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
73
+ # @param path [String] the path, relative to {base_url}.
74
+ # @param options [Hash{String=>String}] specifying any request options like :body.
75
+ # @return [Hash{String=>String}] containing the body of the response.
76
+ # Example:
77
+ #
78
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
79
+ # path = "/path"
80
+ # options = {
81
+ # body: request_content,
82
+ # query_params: {'api-version' => '2016-02-01'}
83
+ # }
84
+ # result = @client.make_request(:put, path, options)
85
+ #
86
+ def make_request(method, path, options = {})
87
+ result = make_request_with_http_info(method, path, options)
88
+ result.body unless result.nil?
89
+ end
90
+
91
+ #
92
+ # Makes a request and returns the operation response.
93
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
94
+ # @param path [String] the path, relative to {base_url}.
95
+ # @param options [Hash{String=>String}] specifying any request options like :body.
96
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
97
+ #
98
+ def make_request_with_http_info(method, path, options = {})
99
+ result = make_request_async(method, path, options).value!
100
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
101
+ result
102
+ end
103
+
104
+ #
105
+ # Makes a request asynchronously.
106
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
107
+ # @param path [String] the path, relative to {base_url}.
108
+ # @param options [Hash{String=>String}] specifying any request options like :body.
109
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
110
+ #
111
+ def make_request_async(method, path, options = {})
112
+ fail ArgumentError, 'method is nil' if method.nil?
113
+ fail ArgumentError, 'path is nil' if path.nil?
114
+
115
+ request_url = options[:base_url] || @base_url
116
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
117
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
118
+ end
119
+
120
+ request_headers = @request_headers
121
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
122
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
123
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
124
+
125
+ super(request_url, method, path, options)
126
+ end
127
+
128
+
129
+ private
130
+ #
131
+ # Adds telemetry information.
132
+ #
133
+ def add_telemetry
134
+ sdk_information = 'azure_mgmt_machine_learning_services'
135
+ sdk_information = "#{sdk_information}/0.17.0"
136
+ add_user_agent_information(sdk_information)
137
+ end
138
+ end
139
+ end
@@ -0,0 +1,131 @@
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::MachineLearningServices::Mgmt::V2018_03_01_preview
7
+ module Models
8
+ #
9
+ # A Machine Learning compute based on AKS.
10
+ #
11
+ class AKS < Compute
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @computeType = "AKS"
18
+ end
19
+
20
+ attr_accessor :computeType
21
+
22
+ # @return [AKSProperties] AKS properties
23
+ attr_accessor :properties
24
+
25
+
26
+ #
27
+ # Mapper for AKS class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ client_side_validation: true,
33
+ required: false,
34
+ serialized_name: 'AKS',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'AKS',
38
+ model_properties: {
39
+ compute_location: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'computeLocation',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ provisioning_state: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ read_only: true,
51
+ serialized_name: 'provisioningState',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ description: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ serialized_name: 'description',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ created_on: {
65
+ client_side_validation: true,
66
+ required: false,
67
+ read_only: true,
68
+ serialized_name: 'createdOn',
69
+ type: {
70
+ name: 'DateTime'
71
+ }
72
+ },
73
+ modified_on: {
74
+ client_side_validation: true,
75
+ required: false,
76
+ read_only: true,
77
+ serialized_name: 'modifiedOn',
78
+ type: {
79
+ name: 'DateTime'
80
+ }
81
+ },
82
+ resource_id: {
83
+ client_side_validation: true,
84
+ required: false,
85
+ serialized_name: 'resourceId',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ },
90
+ provisioning_errors: {
91
+ client_side_validation: true,
92
+ required: false,
93
+ read_only: true,
94
+ serialized_name: 'provisioningErrors',
95
+ type: {
96
+ name: 'Sequence',
97
+ element: {
98
+ client_side_validation: true,
99
+ required: false,
100
+ serialized_name: 'MachineLearningServiceErrorElementType',
101
+ type: {
102
+ name: 'Composite',
103
+ class_name: 'MachineLearningServiceError'
104
+ }
105
+ }
106
+ }
107
+ },
108
+ computeType: {
109
+ client_side_validation: true,
110
+ required: true,
111
+ serialized_name: 'computeType',
112
+ type: {
113
+ name: 'String'
114
+ }
115
+ },
116
+ properties: {
117
+ client_side_validation: true,
118
+ required: false,
119
+ serialized_name: 'properties',
120
+ type: {
121
+ name: 'Composite',
122
+ class_name: 'AKSProperties'
123
+ }
124
+ }
125
+ }
126
+ }
127
+ }
128
+ end
129
+ end
130
+ end
131
+ end
@@ -0,0 +1,85 @@
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::MachineLearningServices::Mgmt::V2018_03_01_preview
7
+ module Models
8
+ #
9
+ # Secrets related to a Machine Learning compute based on AKS.
10
+ #
11
+ class AksComputeSecrets < ComputeSecrets
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @computeType = "AKS"
18
+ end
19
+
20
+ attr_accessor :computeType
21
+
22
+ # @return [String] Content of kubeconfig file that can be used to connect
23
+ # to the Kubernetes cluster.
24
+ attr_accessor :user_kube_config
25
+
26
+ # @return [String] Content of kubeconfig file that can be used to connect
27
+ # to the Kubernetes cluster.
28
+ attr_accessor :admin_kube_config
29
+
30
+ # @return [String] Image registry pull secret.
31
+ attr_accessor :image_pull_secret_name
32
+
33
+
34
+ #
35
+ # Mapper for AksComputeSecrets class as Ruby Hash.
36
+ # This will be used for serialization/deserialization.
37
+ #
38
+ def self.mapper()
39
+ {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'AKS',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'AksComputeSecrets',
46
+ model_properties: {
47
+ computeType: {
48
+ client_side_validation: true,
49
+ required: true,
50
+ serialized_name: 'computeType',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ user_kube_config: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ serialized_name: 'userKubeConfig',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ },
63
+ admin_kube_config: {
64
+ client_side_validation: true,
65
+ required: false,
66
+ serialized_name: 'adminKubeConfig',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ },
71
+ image_pull_secret_name: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ serialized_name: 'imagePullSecretName',
75
+ type: {
76
+ name: 'String'
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ end
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,103 @@
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::MachineLearningServices::Mgmt::V2018_03_01_preview
7
+ module Models
8
+ #
9
+ # AKS properties
10
+ #
11
+ class AKSProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Cluster full qualified domain name
16
+ attr_accessor :cluster_fqdn
17
+
18
+ # @return [Array<SystemService>] System services
19
+ attr_accessor :system_services
20
+
21
+ # @return [Integer] Number of agents
22
+ attr_accessor :agent_count
23
+
24
+ # @return [String] Agent virtual machine size
25
+ attr_accessor :agent_vmsize
26
+
27
+ # @return [SslConfiguration] SSL configuration
28
+ attr_accessor :ssl_configuration
29
+
30
+
31
+ #
32
+ # Mapper for AKSProperties class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'AKS_properties',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'AKSProperties',
43
+ model_properties: {
44
+ cluster_fqdn: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'clusterFqdn',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ },
52
+ system_services: {
53
+ client_side_validation: true,
54
+ required: false,
55
+ serialized_name: 'systemServices',
56
+ type: {
57
+ name: 'Sequence',
58
+ element: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'SystemServiceElementType',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'SystemService'
65
+ }
66
+ }
67
+ }
68
+ },
69
+ agent_count: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ serialized_name: 'agentCount',
73
+ constraints: {
74
+ InclusiveMinimum: 1
75
+ },
76
+ type: {
77
+ name: 'Number'
78
+ }
79
+ },
80
+ agent_vmsize: {
81
+ client_side_validation: true,
82
+ required: false,
83
+ serialized_name: 'agentVMSize',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ },
88
+ ssl_configuration: {
89
+ client_side_validation: true,
90
+ required: false,
91
+ serialized_name: 'sslConfiguration',
92
+ type: {
93
+ name: 'Composite',
94
+ class_name: 'SslConfiguration'
95
+ }
96
+ }
97
+ }
98
+ }
99
+ }
100
+ end
101
+ end
102
+ end
103
+ end