azure_mgmt_cognitive_services 0.18.2 → 0.19.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/cognitive_services_accounts.rb +18 -0
- data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb +1 -1
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services.rb +42 -13
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/accounts.rb +178 -110
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb +235 -7
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/azure_entity_resource.rb +75 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/check_domain_availability_parameter.rb +57 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/check_domain_availability_result.rb +79 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account.rb +21 -43
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_api_properties.rb +149 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_properties.rb +201 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/encryption.rb +61 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/identity.rb +95 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/identity_type.rb +17 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/ip_rule.rb +49 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/key_source.rb +16 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/key_vault_properties.rb +68 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/network_rule_action.rb +16 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/network_rule_set.rb +89 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint.rb +47 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint_connection.rb +74 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint_connection_list_result.rb +56 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint_connection_properties.rb +80 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint_service_connection_status.rb +18 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_resource.rb +74 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_resource_list_result.rb +55 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_resource_properties.rb +100 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_service_connection_state.rb +73 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/proxy_resource.rb +63 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/public_network_access.rb +16 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/resource.rb +83 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/sku_capability.rb +57 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/{cognitive_services_account_update_parameters.rb → tracked_resource.rb} +34 -24
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/user_assigned_identity.rb +58 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/user_owned_storage.rb +46 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/virtual_network_rule.rb +69 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/operations.rb +5 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/private_endpoint_connections.rb +481 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/private_link_resources.rb +133 -0
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/resource_skus.rb +6 -0
- data/lib/azure_mgmt_cognitive_services.rb +1 -1
- data/lib/profiles/latest/modules/cognitiveservices_profile_module.rb +153 -39
- data/lib/version.rb +1 -1
- metadata +37 -8
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/check_sku_availability.rb +0 -138
- data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_create_parameters.rb +0 -108
@@ -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::CognitiveServices::Mgmt::V2017_04_18
|
7
|
+
#
|
8
|
+
# Cognitive Services Management Client
|
9
|
+
#
|
10
|
+
class PrivateLinkResources
|
11
|
+
include MsRestAzure
|
12
|
+
|
13
|
+
#
|
14
|
+
# Creates and initializes a new instance of the PrivateLinkResources class.
|
15
|
+
# @param client service class for accessing basic functionality.
|
16
|
+
#
|
17
|
+
def initialize(client)
|
18
|
+
@client = client
|
19
|
+
end
|
20
|
+
|
21
|
+
# @return [CognitiveServicesManagementClient] reference to the CognitiveServicesManagementClient
|
22
|
+
attr_reader :client
|
23
|
+
|
24
|
+
#
|
25
|
+
# Gets the private link resources that need to be created for a Cognitive
|
26
|
+
# Services account.
|
27
|
+
#
|
28
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
29
|
+
# is case insensitive.
|
30
|
+
# @param account_name [String] The name of Cognitive Services account.
|
31
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
32
|
+
# will be added to the HTTP request.
|
33
|
+
#
|
34
|
+
# @return [PrivateLinkResourceListResult] operation results.
|
35
|
+
#
|
36
|
+
def list(resource_group_name, account_name, custom_headers:nil)
|
37
|
+
response = list_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
38
|
+
response.body unless response.nil?
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Gets the private link resources that need to be created for a Cognitive
|
43
|
+
# Services account.
|
44
|
+
#
|
45
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
46
|
+
# is case insensitive.
|
47
|
+
# @param account_name [String] The name of Cognitive Services account.
|
48
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
49
|
+
# will be added to the HTTP request.
|
50
|
+
#
|
51
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
52
|
+
#
|
53
|
+
def list_with_http_info(resource_group_name, account_name, custom_headers:nil)
|
54
|
+
list_async(resource_group_name, account_name, custom_headers:custom_headers).value!
|
55
|
+
end
|
56
|
+
|
57
|
+
#
|
58
|
+
# Gets the private link resources that need to be created for a Cognitive
|
59
|
+
# Services account.
|
60
|
+
#
|
61
|
+
# @param resource_group_name [String] The name of the resource group. The name
|
62
|
+
# is case insensitive.
|
63
|
+
# @param account_name [String] The name of Cognitive Services account.
|
64
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
65
|
+
# to the HTTP request.
|
66
|
+
#
|
67
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
68
|
+
#
|
69
|
+
def list_async(resource_group_name, account_name, custom_headers:nil)
|
70
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
71
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
|
72
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
|
73
|
+
fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
74
|
+
fail ArgumentError, 'account_name is nil' if account_name.nil?
|
75
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MaxLength': '64'" if !account_name.nil? && account_name.length > 64
|
76
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'MinLength': '2'" if !account_name.nil? && account_name.length < 2
|
77
|
+
fail ArgumentError, "'account_name' should satisfy the constraint - 'Pattern': '^[a-zA-Z0-9][a-zA-Z0-9_.-]*$'" if !account_name.nil? && account_name.match(Regexp.new('^^[a-zA-Z0-9][a-zA-Z0-9_.-]*$$')).nil?
|
78
|
+
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
79
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
80
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
81
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
82
|
+
|
83
|
+
|
84
|
+
request_headers = {}
|
85
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
86
|
+
|
87
|
+
# Set Headers
|
88
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
89
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
90
|
+
path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CognitiveServices/accounts/{accountName}/privateLinkResources'
|
91
|
+
|
92
|
+
request_url = @base_url || @client.base_url
|
93
|
+
|
94
|
+
options = {
|
95
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
96
|
+
path_params: {'resourceGroupName' => resource_group_name,'accountName' => account_name,'subscriptionId' => @client.subscription_id},
|
97
|
+
query_params: {'api-version' => @client.api_version},
|
98
|
+
headers: request_headers.merge(custom_headers || {}),
|
99
|
+
base_url: request_url
|
100
|
+
}
|
101
|
+
promise = @client.make_request_async(:get, path_template, options)
|
102
|
+
|
103
|
+
promise = promise.then do |result|
|
104
|
+
http_response = result.response
|
105
|
+
status_code = http_response.status
|
106
|
+
response_content = http_response.body
|
107
|
+
unless status_code == 200
|
108
|
+
error_model = JSON.load(response_content)
|
109
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
110
|
+
end
|
111
|
+
|
112
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
113
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
114
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
115
|
+
# Deserialize Response
|
116
|
+
if status_code == 200
|
117
|
+
begin
|
118
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
119
|
+
result_mapper = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::PrivateLinkResourceListResult.mapper()
|
120
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
121
|
+
rescue Exception => e
|
122
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
result
|
127
|
+
end
|
128
|
+
|
129
|
+
promise.execute
|
130
|
+
end
|
131
|
+
|
132
|
+
end
|
133
|
+
end
|
@@ -59,7 +59,9 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
59
59
|
#
|
60
60
|
def list_async(custom_headers:nil)
|
61
61
|
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
62
|
+
fail ArgumentError, "'@client.api_version' should satisfy the constraint - 'MinLength': '1'" if !@client.api_version.nil? && @client.api_version.length < 1
|
62
63
|
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
64
|
+
fail ArgumentError, "'@client.subscription_id' should satisfy the constraint - 'MinLength': '1'" if !@client.subscription_id.nil? && @client.subscription_id.length < 1
|
63
65
|
|
64
66
|
|
65
67
|
request_headers = {}
|
@@ -91,6 +93,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
91
93
|
end
|
92
94
|
|
93
95
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
96
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
97
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
94
98
|
# Deserialize Response
|
95
99
|
if status_code == 200
|
96
100
|
begin
|
@@ -182,6 +186,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
|
|
182
186
|
end
|
183
187
|
|
184
188
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
189
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
190
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
185
191
|
# Deserialize Response
|
186
192
|
if status_code == 200
|
187
193
|
begin
|
@@ -2,6 +2,6 @@
|
|
2
2
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
3
3
|
# Licensed under the MIT License. See License.txt in the project root for license information.
|
4
4
|
|
5
|
-
require '2016-02-01-preview/generated/azure_mgmt_cognitive_services'
|
6
5
|
require '2017-04-18/generated/azure_mgmt_cognitive_services'
|
6
|
+
require '2016-02-01-preview/generated/azure_mgmt_cognitive_services'
|
7
7
|
require 'profiles/latest/cognitiveservices_latest_profile_client'
|
@@ -9,35 +9,64 @@ module Azure::CognitiveServices::Profiles::Latest
|
|
9
9
|
Accounts = Azure::CognitiveServices::Mgmt::V2017_04_18::Accounts
|
10
10
|
ResourceSkus = Azure::CognitiveServices::Mgmt::V2017_04_18::ResourceSkus
|
11
11
|
Operations = Azure::CognitiveServices::Mgmt::V2017_04_18::Operations
|
12
|
-
|
12
|
+
PrivateEndpointConnections = Azure::CognitiveServices::Mgmt::V2017_04_18::PrivateEndpointConnections
|
13
|
+
PrivateLinkResources = Azure::CognitiveServices::Mgmt::V2017_04_18::PrivateLinkResources
|
13
14
|
|
14
15
|
module Models
|
16
|
+
Usage = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Usage
|
17
|
+
UsagesResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::UsagesResult
|
18
|
+
SkuCapability = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::SkuCapability
|
15
19
|
ErrorBody = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ErrorBody
|
16
|
-
|
20
|
+
VirtualNetworkRule = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::VirtualNetworkRule
|
17
21
|
Error = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Error
|
18
|
-
|
22
|
+
KeyVaultProperties = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::KeyVaultProperties
|
19
23
|
OperationDisplayInfo = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::OperationDisplayInfo
|
20
|
-
|
24
|
+
UserOwnedStorage = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::UserOwnedStorage
|
21
25
|
OperationEntity = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::OperationEntity
|
22
|
-
|
26
|
+
PrivateLinkServiceConnectionState = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::PrivateLinkServiceConnectionState
|
23
27
|
OperationEntityListResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::OperationEntityListResult
|
24
|
-
|
28
|
+
PrivateEndpoint = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::PrivateEndpoint
|
29
|
+
CognitiveServicesAccountApiProperties = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountApiProperties
|
30
|
+
PrivateEndpointConnectionProperties = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::PrivateEndpointConnectionProperties
|
31
|
+
UserAssignedIdentity = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::UserAssignedIdentity
|
32
|
+
CognitiveServicesAccount = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccount
|
25
33
|
CheckSkuAvailabilityParameter = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckSkuAvailabilityParameter
|
26
|
-
|
34
|
+
CognitiveServicesAccountKeys = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountKeys
|
27
35
|
CheckSkuAvailabilityResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckSkuAvailabilityResult
|
28
|
-
|
36
|
+
CognitiveServicesResourceAndSku = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesResourceAndSku
|
29
37
|
CheckSkuAvailabilityResultList = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckSkuAvailabilityResultList
|
30
|
-
CognitiveServicesAccountKeys = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountKeys
|
31
|
-
ResourceSkuRestrictionInfo = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictionInfo
|
32
38
|
MetricName = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::MetricName
|
39
|
+
CheckDomainAvailabilityParameter = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckDomainAvailabilityParameter
|
40
|
+
IpRule = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::IpRule
|
41
|
+
CheckDomainAvailabilityResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckDomainAvailabilityResult
|
42
|
+
Encryption = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Encryption
|
43
|
+
ResourceSkuRestrictionInfo = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictionInfo
|
44
|
+
Identity = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Identity
|
33
45
|
ResourceSkuRestrictions = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictions
|
34
|
-
|
46
|
+
RegenerateKeyParameters = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::RegenerateKeyParameters
|
35
47
|
ResourceSku = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSku
|
36
|
-
|
48
|
+
Sku = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Sku
|
37
49
|
ResourceSkusResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkusResult
|
38
|
-
|
50
|
+
CognitiveServicesAccountProperties = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountProperties
|
51
|
+
PrivateEndpointConnectionListResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::PrivateEndpointConnectionListResult
|
52
|
+
CognitiveServicesAccountEnumerateSkusResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountEnumerateSkusResult
|
53
|
+
PrivateLinkResourceProperties = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::PrivateLinkResourceProperties
|
54
|
+
CognitiveServicesAccountListResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountListResult
|
55
|
+
Resource = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Resource
|
56
|
+
NetworkRuleSet = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::NetworkRuleSet
|
57
|
+
PrivateLinkResourceListResult = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::PrivateLinkResourceListResult
|
58
|
+
PrivateEndpointConnection = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::PrivateEndpointConnection
|
59
|
+
PrivateLinkResource = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::PrivateLinkResource
|
60
|
+
ProxyResource = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ProxyResource
|
61
|
+
TrackedResource = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::TrackedResource
|
62
|
+
AzureEntityResource = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::AzureEntityResource
|
39
63
|
SkuTier = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::SkuTier
|
40
64
|
ProvisioningState = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ProvisioningState
|
65
|
+
NetworkRuleAction = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::NetworkRuleAction
|
66
|
+
KeySource = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::KeySource
|
67
|
+
PrivateEndpointServiceConnectionStatus = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::PrivateEndpointServiceConnectionStatus
|
68
|
+
PublicNetworkAccess = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::PublicNetworkAccess
|
69
|
+
IdentityType = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::IdentityType
|
41
70
|
KeyName = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::KeyName
|
42
71
|
UnitType = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::UnitType
|
43
72
|
QuotaUsageStatus = Azure::CognitiveServices::Mgmt::V2017_04_18::Models::QuotaUsageStatus
|
@@ -49,7 +78,7 @@ module Azure::CognitiveServices::Profiles::Latest
|
|
49
78
|
# CognitiveServicesManagementClass
|
50
79
|
#
|
51
80
|
class CognitiveServicesManagementClass
|
52
|
-
attr_reader :accounts, :resource_skus, :operations, :
|
81
|
+
attr_reader :accounts, :resource_skus, :operations, :private_endpoint_connections, :private_link_resources, :configurable, :base_url, :options, :model_classes
|
53
82
|
|
54
83
|
def initialize(options = {})
|
55
84
|
if options.is_a?(Hash) && options.length == 0
|
@@ -72,7 +101,8 @@ module Azure::CognitiveServices::Profiles::Latest
|
|
72
101
|
@accounts = @client_0.accounts
|
73
102
|
@resource_skus = @client_0.resource_skus
|
74
103
|
@operations = @client_0.operations
|
75
|
-
@
|
104
|
+
@private_endpoint_connections = @client_0.private_endpoint_connections
|
105
|
+
@private_link_resources = @client_0.private_link_resources
|
76
106
|
|
77
107
|
@model_classes = ModelClasses.new
|
78
108
|
end
|
@@ -93,77 +123,146 @@ module Azure::CognitiveServices::Profiles::Latest
|
|
93
123
|
end
|
94
124
|
|
95
125
|
class ModelClasses
|
126
|
+
def usage
|
127
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Usage
|
128
|
+
end
|
129
|
+
def usages_result
|
130
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::UsagesResult
|
131
|
+
end
|
132
|
+
def sku_capability
|
133
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::SkuCapability
|
134
|
+
end
|
96
135
|
def error_body
|
97
136
|
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ErrorBody
|
98
137
|
end
|
99
|
-
def
|
100
|
-
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::
|
138
|
+
def virtual_network_rule
|
139
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::VirtualNetworkRule
|
101
140
|
end
|
102
141
|
def error
|
103
142
|
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Error
|
104
143
|
end
|
105
|
-
def
|
106
|
-
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::
|
144
|
+
def key_vault_properties
|
145
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::KeyVaultProperties
|
107
146
|
end
|
108
147
|
def operation_display_info
|
109
148
|
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::OperationDisplayInfo
|
110
149
|
end
|
111
|
-
def
|
112
|
-
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::
|
150
|
+
def user_owned_storage
|
151
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::UserOwnedStorage
|
113
152
|
end
|
114
153
|
def operation_entity
|
115
154
|
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::OperationEntity
|
116
155
|
end
|
117
|
-
def
|
118
|
-
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::
|
156
|
+
def private_link_service_connection_state
|
157
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::PrivateLinkServiceConnectionState
|
119
158
|
end
|
120
159
|
def operation_entity_list_result
|
121
160
|
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::OperationEntityListResult
|
122
161
|
end
|
123
|
-
def
|
124
|
-
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::
|
162
|
+
def private_endpoint
|
163
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::PrivateEndpoint
|
164
|
+
end
|
165
|
+
def cognitive_services_account_api_properties
|
166
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountApiProperties
|
167
|
+
end
|
168
|
+
def private_endpoint_connection_properties
|
169
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::PrivateEndpointConnectionProperties
|
170
|
+
end
|
171
|
+
def user_assigned_identity
|
172
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::UserAssignedIdentity
|
173
|
+
end
|
174
|
+
def cognitive_services_account
|
175
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccount
|
125
176
|
end
|
126
177
|
def check_sku_availability_parameter
|
127
178
|
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckSkuAvailabilityParameter
|
128
179
|
end
|
129
|
-
def
|
130
|
-
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::
|
180
|
+
def cognitive_services_account_keys
|
181
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountKeys
|
131
182
|
end
|
132
183
|
def check_sku_availability_result
|
133
184
|
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckSkuAvailabilityResult
|
134
185
|
end
|
135
|
-
def
|
136
|
-
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::
|
186
|
+
def cognitive_services_resource_and_sku
|
187
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesResourceAndSku
|
137
188
|
end
|
138
189
|
def check_sku_availability_result_list
|
139
190
|
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckSkuAvailabilityResultList
|
140
191
|
end
|
141
|
-
def
|
142
|
-
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::
|
192
|
+
def metric_name
|
193
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::MetricName
|
194
|
+
end
|
195
|
+
def check_domain_availability_parameter
|
196
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckDomainAvailabilityParameter
|
197
|
+
end
|
198
|
+
def ip_rule
|
199
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::IpRule
|
200
|
+
end
|
201
|
+
def check_domain_availability_result
|
202
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CheckDomainAvailabilityResult
|
203
|
+
end
|
204
|
+
def encryption
|
205
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Encryption
|
143
206
|
end
|
144
207
|
def resource_sku_restriction_info
|
145
208
|
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictionInfo
|
146
209
|
end
|
147
|
-
def
|
148
|
-
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::
|
210
|
+
def identity
|
211
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Identity
|
149
212
|
end
|
150
213
|
def resource_sku_restrictions
|
151
214
|
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkuRestrictions
|
152
215
|
end
|
153
|
-
def
|
154
|
-
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::
|
216
|
+
def regenerate_key_parameters
|
217
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::RegenerateKeyParameters
|
155
218
|
end
|
156
219
|
def resource_sku
|
157
220
|
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSku
|
158
221
|
end
|
159
|
-
def
|
160
|
-
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::
|
222
|
+
def sku
|
223
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Sku
|
161
224
|
end
|
162
225
|
def resource_skus_result
|
163
226
|
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ResourceSkusResult
|
164
227
|
end
|
165
|
-
def
|
166
|
-
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::
|
228
|
+
def cognitive_services_account_properties
|
229
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountProperties
|
230
|
+
end
|
231
|
+
def private_endpoint_connection_list_result
|
232
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::PrivateEndpointConnectionListResult
|
233
|
+
end
|
234
|
+
def cognitive_services_account_enumerate_skus_result
|
235
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountEnumerateSkusResult
|
236
|
+
end
|
237
|
+
def private_link_resource_properties
|
238
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::PrivateLinkResourceProperties
|
239
|
+
end
|
240
|
+
def cognitive_services_account_list_result
|
241
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::CognitiveServicesAccountListResult
|
242
|
+
end
|
243
|
+
def resource
|
244
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::Resource
|
245
|
+
end
|
246
|
+
def network_rule_set
|
247
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::NetworkRuleSet
|
248
|
+
end
|
249
|
+
def private_link_resource_list_result
|
250
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::PrivateLinkResourceListResult
|
251
|
+
end
|
252
|
+
def private_endpoint_connection
|
253
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::PrivateEndpointConnection
|
254
|
+
end
|
255
|
+
def private_link_resource
|
256
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::PrivateLinkResource
|
257
|
+
end
|
258
|
+
def proxy_resource
|
259
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ProxyResource
|
260
|
+
end
|
261
|
+
def tracked_resource
|
262
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::TrackedResource
|
263
|
+
end
|
264
|
+
def azure_entity_resource
|
265
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::AzureEntityResource
|
167
266
|
end
|
168
267
|
def sku_tier
|
169
268
|
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::SkuTier
|
@@ -171,6 +270,21 @@ module Azure::CognitiveServices::Profiles::Latest
|
|
171
270
|
def provisioning_state
|
172
271
|
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::ProvisioningState
|
173
272
|
end
|
273
|
+
def network_rule_action
|
274
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::NetworkRuleAction
|
275
|
+
end
|
276
|
+
def key_source
|
277
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::KeySource
|
278
|
+
end
|
279
|
+
def private_endpoint_service_connection_status
|
280
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::PrivateEndpointServiceConnectionStatus
|
281
|
+
end
|
282
|
+
def public_network_access
|
283
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::PublicNetworkAccess
|
284
|
+
end
|
285
|
+
def identity_type
|
286
|
+
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::IdentityType
|
287
|
+
end
|
174
288
|
def key_name
|
175
289
|
Azure::CognitiveServices::Mgmt::V2017_04_18::Models::KeyName
|
176
290
|
end
|