azure_mgmt_cognitive_services 0.4.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.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/LICENSE.txt +21 -0
- data/Rakefile +5 -0
- data/azure_mgmt_cognitive_services.gemspec +34 -0
- data/lib/azure_mgmt_cognitive_services.rb +5 -0
- data/lib/generated/azure_mgmt_cognitive_services.rb +44 -0
- data/lib/generated/azure_mgmt_cognitive_services/cognitive_services_accounts.rb +1022 -0
- data/lib/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb +67 -0
- data/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb +151 -0
- data/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb +103 -0
- data/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_enumerate_skus_result.rb +55 -0
- data/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_keys.rb +54 -0
- data/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_list_result.rb +54 -0
- data/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_update_parameters.rb +66 -0
- data/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_resource_and_sku.rb +55 -0
- data/lib/generated/azure_mgmt_cognitive_services/models/error.rb +45 -0
- data/lib/generated/azure_mgmt_cognitive_services/models/error_body.rb +54 -0
- data/lib/generated/azure_mgmt_cognitive_services/models/key_name.rb +16 -0
- data/lib/generated/azure_mgmt_cognitive_services/models/kind.rb +22 -0
- data/lib/generated/azure_mgmt_cognitive_services/models/provisioning_state.rb +18 -0
- data/lib/generated/azure_mgmt_cognitive_services/models/regenerate_key_parameters.rb +46 -0
- data/lib/generated/azure_mgmt_cognitive_services/models/sku.rb +60 -0
- data/lib/generated/azure_mgmt_cognitive_services/models/sku_name.rb +20 -0
- data/lib/generated/azure_mgmt_cognitive_services/models/sku_tier.rb +17 -0
- data/lib/generated/azure_mgmt_cognitive_services/module_definition.rb +8 -0
- data/lib/generated/azure_mgmt_cognitive_services/version.rb +8 -0
- metadata +140 -0
@@ -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::CognitiveServices
|
7
|
+
#
|
8
|
+
# A service client - single point of access to the REST API.
|
9
|
+
#
|
10
|
+
class CognitiveServicesManagementClient < 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] Version of the API to be used with the client request.
|
24
|
+
# Current version is 2016-02-01-preview
|
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 [CognitiveServicesAccounts] cognitive_services_accounts
|
43
|
+
attr_reader :cognitive_services_accounts
|
44
|
+
|
45
|
+
#
|
46
|
+
# Creates initializes a new instance of the CognitiveServicesManagementClient 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
|
+
@cognitive_services_accounts = CognitiveServicesAccounts.new(self)
|
60
|
+
@api_version = '2016-02-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::CognitiveServices
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Cognitive Services Account is an Azure resource representing the
|
10
|
+
# provisioned account, its type, location and SKU.
|
11
|
+
#
|
12
|
+
class CognitiveServicesAccount
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] Entity Tag
|
17
|
+
attr_accessor :etag
|
18
|
+
|
19
|
+
# @return [String] The id of the created account
|
20
|
+
attr_accessor :id
|
21
|
+
|
22
|
+
# @return [String] Type of cognitive service account.
|
23
|
+
attr_accessor :kind
|
24
|
+
|
25
|
+
# @return [String] The location of the resource
|
26
|
+
attr_accessor :location
|
27
|
+
|
28
|
+
# @return [String] The name of the created account
|
29
|
+
attr_accessor :name
|
30
|
+
|
31
|
+
# @return [ProvisioningState] Gets the status of the cognitive services
|
32
|
+
# account at the time the operation was called. Possible values
|
33
|
+
# include: 'Creating', 'ResolvingDNS', 'Succeeded', 'Failed'
|
34
|
+
attr_accessor :provisioning_state
|
35
|
+
|
36
|
+
# @return [String] Endpoint of the created account
|
37
|
+
attr_accessor :endpoint
|
38
|
+
|
39
|
+
# @return [Sku]
|
40
|
+
attr_accessor :sku
|
41
|
+
|
42
|
+
# @return [Hash{String => String}] Gets or sets a list of key value
|
43
|
+
# pairs that describe the resource. These tags can be used in viewing
|
44
|
+
# and grouping this resource (across resource groups). A maximum of 15
|
45
|
+
# tags can be provided for a resource. Each tag must have a key no
|
46
|
+
# greater than 128 characters and value no greater than 256 characters.
|
47
|
+
attr_accessor :tags
|
48
|
+
|
49
|
+
# @return [String] Resource type
|
50
|
+
attr_accessor :type
|
51
|
+
|
52
|
+
|
53
|
+
#
|
54
|
+
# Mapper for CognitiveServicesAccount class as Ruby Hash.
|
55
|
+
# This will be used for serialization/deserialization.
|
56
|
+
#
|
57
|
+
def self.mapper()
|
58
|
+
{
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'CognitiveServicesAccount',
|
61
|
+
type: {
|
62
|
+
name: 'Composite',
|
63
|
+
class_name: 'CognitiveServicesAccount',
|
64
|
+
model_properties: {
|
65
|
+
etag: {
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'etag',
|
68
|
+
type: {
|
69
|
+
name: 'String'
|
70
|
+
}
|
71
|
+
},
|
72
|
+
id: {
|
73
|
+
required: false,
|
74
|
+
serialized_name: 'id',
|
75
|
+
type: {
|
76
|
+
name: 'String'
|
77
|
+
}
|
78
|
+
},
|
79
|
+
kind: {
|
80
|
+
required: false,
|
81
|
+
serialized_name: 'kind',
|
82
|
+
type: {
|
83
|
+
name: 'String'
|
84
|
+
}
|
85
|
+
},
|
86
|
+
location: {
|
87
|
+
required: false,
|
88
|
+
serialized_name: 'location',
|
89
|
+
type: {
|
90
|
+
name: 'String'
|
91
|
+
}
|
92
|
+
},
|
93
|
+
name: {
|
94
|
+
required: false,
|
95
|
+
serialized_name: 'name',
|
96
|
+
type: {
|
97
|
+
name: 'String'
|
98
|
+
}
|
99
|
+
},
|
100
|
+
provisioning_state: {
|
101
|
+
required: false,
|
102
|
+
read_only: true,
|
103
|
+
serialized_name: 'properties.provisioningState',
|
104
|
+
type: {
|
105
|
+
name: 'Enum',
|
106
|
+
module: 'ProvisioningState'
|
107
|
+
}
|
108
|
+
},
|
109
|
+
endpoint: {
|
110
|
+
required: false,
|
111
|
+
serialized_name: 'properties.endpoint',
|
112
|
+
type: {
|
113
|
+
name: 'String'
|
114
|
+
}
|
115
|
+
},
|
116
|
+
sku: {
|
117
|
+
required: false,
|
118
|
+
serialized_name: 'sku',
|
119
|
+
type: {
|
120
|
+
name: 'Composite',
|
121
|
+
class_name: 'Sku'
|
122
|
+
}
|
123
|
+
},
|
124
|
+
tags: {
|
125
|
+
required: false,
|
126
|
+
serialized_name: 'tags',
|
127
|
+
type: {
|
128
|
+
name: 'Dictionary',
|
129
|
+
value: {
|
130
|
+
required: false,
|
131
|
+
serialized_name: 'StringElementType',
|
132
|
+
type: {
|
133
|
+
name: 'String'
|
134
|
+
}
|
135
|
+
}
|
136
|
+
}
|
137
|
+
},
|
138
|
+
type: {
|
139
|
+
required: false,
|
140
|
+
serialized_name: 'type',
|
141
|
+
type: {
|
142
|
+
name: 'String'
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}
|
146
|
+
}
|
147
|
+
}
|
148
|
+
end
|
149
|
+
end
|
150
|
+
end
|
151
|
+
end
|
@@ -0,0 +1,103 @@
|
|
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::CognitiveServices
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The parameters to provide for the account.
|
10
|
+
#
|
11
|
+
class CognitiveServicesAccountCreateParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Sku]
|
16
|
+
attr_accessor :sku
|
17
|
+
|
18
|
+
# @return [Kind] Required. Indicates the type of cognitive service
|
19
|
+
# account. Possible values include: 'ComputerVision', 'Emotion',
|
20
|
+
# 'Face', 'LUIS', 'Recommendations', 'Speech', 'TextAnalytics', 'WebLM'
|
21
|
+
attr_accessor :kind
|
22
|
+
|
23
|
+
# @return [String] Required. Gets or sets the location of the resource.
|
24
|
+
# This will be one of the supported and registered Azure Geo Regions
|
25
|
+
# (e.g. West US, East US, Southeast Asia, etc.). The geo region of a
|
26
|
+
# resource cannot be changed once it is created, but if an identical
|
27
|
+
# geo region is specified on update the request will succeed.
|
28
|
+
attr_accessor :location
|
29
|
+
|
30
|
+
# @return [Hash{String => String}] Gets or sets a list of key value
|
31
|
+
# pairs that describe the resource. These tags can be used in viewing
|
32
|
+
# and grouping this resource (across resource groups). A maximum of 15
|
33
|
+
# tags can be provided for a resource. Each tag must have a key no
|
34
|
+
# greater than 128 characters and value no greater than 256 characters.
|
35
|
+
attr_accessor :tags
|
36
|
+
|
37
|
+
# @return Must exist in the request. Must not be null.
|
38
|
+
attr_accessor :properties
|
39
|
+
|
40
|
+
|
41
|
+
#
|
42
|
+
# Mapper for CognitiveServicesAccountCreateParameters class as Ruby Hash.
|
43
|
+
# This will be used for serialization/deserialization.
|
44
|
+
#
|
45
|
+
def self.mapper()
|
46
|
+
{
|
47
|
+
required: false,
|
48
|
+
serialized_name: 'CognitiveServicesAccountCreateParameters',
|
49
|
+
type: {
|
50
|
+
name: 'Composite',
|
51
|
+
class_name: 'CognitiveServicesAccountCreateParameters',
|
52
|
+
model_properties: {
|
53
|
+
sku: {
|
54
|
+
required: true,
|
55
|
+
serialized_name: 'sku',
|
56
|
+
type: {
|
57
|
+
name: 'Composite',
|
58
|
+
class_name: 'Sku'
|
59
|
+
}
|
60
|
+
},
|
61
|
+
kind: {
|
62
|
+
required: true,
|
63
|
+
serialized_name: 'kind',
|
64
|
+
type: {
|
65
|
+
name: 'Enum',
|
66
|
+
module: 'Kind'
|
67
|
+
}
|
68
|
+
},
|
69
|
+
location: {
|
70
|
+
required: true,
|
71
|
+
serialized_name: 'location',
|
72
|
+
type: {
|
73
|
+
name: 'String'
|
74
|
+
}
|
75
|
+
},
|
76
|
+
tags: {
|
77
|
+
required: false,
|
78
|
+
serialized_name: 'tags',
|
79
|
+
type: {
|
80
|
+
name: 'Dictionary',
|
81
|
+
value: {
|
82
|
+
required: false,
|
83
|
+
serialized_name: 'StringElementType',
|
84
|
+
type: {
|
85
|
+
name: 'String'
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
},
|
90
|
+
properties: {
|
91
|
+
required: true,
|
92
|
+
serialized_name: 'properties',
|
93
|
+
type: {
|
94
|
+
name: 'Object'
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
@@ -0,0 +1,55 @@
|
|
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::CognitiveServices
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The list of cognitive services accounts operation response.
|
10
|
+
#
|
11
|
+
class CognitiveServicesAccountEnumerateSkusResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<CognitiveServicesResourceAndSku>] Gets the list of
|
16
|
+
# Cognitive Services accounts and their properties.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for CognitiveServicesAccountEnumerateSkusResult class as Ruby
|
22
|
+
# Hash.
|
23
|
+
# This will be used for serialization/deserialization.
|
24
|
+
#
|
25
|
+
def self.mapper()
|
26
|
+
{
|
27
|
+
required: false,
|
28
|
+
serialized_name: 'CognitiveServicesAccountEnumerateSkusResult',
|
29
|
+
type: {
|
30
|
+
name: 'Composite',
|
31
|
+
class_name: 'CognitiveServicesAccountEnumerateSkusResult',
|
32
|
+
model_properties: {
|
33
|
+
value: {
|
34
|
+
required: false,
|
35
|
+
read_only: true,
|
36
|
+
serialized_name: 'value',
|
37
|
+
type: {
|
38
|
+
name: 'Sequence',
|
39
|
+
element: {
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'CognitiveServicesResourceAndSkuElementType',
|
42
|
+
type: {
|
43
|
+
name: 'Composite',
|
44
|
+
class_name: 'CognitiveServicesResourceAndSku'
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,54 @@
|
|
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::CognitiveServices
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The access keys for the cognitive services account.
|
10
|
+
#
|
11
|
+
class CognitiveServicesAccountKeys
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets the value of key 1.
|
16
|
+
attr_accessor :key1
|
17
|
+
|
18
|
+
# @return [String] Gets the value of key 2.
|
19
|
+
attr_accessor :key2
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for CognitiveServicesAccountKeys class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
required: false,
|
29
|
+
serialized_name: 'CognitiveServicesAccountKeys',
|
30
|
+
type: {
|
31
|
+
name: 'Composite',
|
32
|
+
class_name: 'CognitiveServicesAccountKeys',
|
33
|
+
model_properties: {
|
34
|
+
key1: {
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'key1',
|
37
|
+
type: {
|
38
|
+
name: 'String'
|
39
|
+
}
|
40
|
+
},
|
41
|
+
key2: {
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'key2',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
data/lib/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_list_result.rb
ADDED
@@ -0,0 +1,54 @@
|
|
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::CognitiveServices
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The list of cognitive services accounts operation response.
|
10
|
+
#
|
11
|
+
class CognitiveServicesAccountListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Array<CognitiveServicesAccount>] Gets the list of Cognitive
|
16
|
+
# Services accounts and their properties.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for CognitiveServicesAccountListResult class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'CognitiveServicesAccountListResult',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'CognitiveServicesAccountListResult',
|
31
|
+
model_properties: {
|
32
|
+
value: {
|
33
|
+
required: false,
|
34
|
+
read_only: true,
|
35
|
+
serialized_name: 'value',
|
36
|
+
type: {
|
37
|
+
name: 'Sequence',
|
38
|
+
element: {
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'CognitiveServicesAccountElementType',
|
41
|
+
type: {
|
42
|
+
name: 'Composite',
|
43
|
+
class_name: 'CognitiveServicesAccount'
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|