azure_mgmt_cognitive_services 0.19.1 → 0.19.2

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 (27) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-02-01-preview/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb +1 -1
  3. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services.rb +34 -18
  4. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/accounts.rb +103 -56
  5. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/cognitive_services_management_client.rb +15 -4
  6. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/azure_entity_resource.rb +75 -0
  7. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/cognitive_services_account_properties.rb +57 -0
  8. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint.rb +47 -0
  9. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint_connection.rb +74 -0
  10. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint_connection_properties.rb +80 -0
  11. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_endpoint_service_connection_status.rb +18 -0
  12. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_resource.rb +74 -0
  13. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_resource_list_result.rb +55 -0
  14. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_resource_properties.rb +100 -0
  15. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/private_link_service_connection_state.rb +73 -0
  16. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/proxy_resource.rb +63 -0
  17. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/public_network_access.rb +16 -0
  18. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/resource.rb +83 -0
  19. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/sku_capability.rb +57 -0
  20. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/models/tracked_resource.rb +92 -0
  21. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/operations.rb +1 -0
  22. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/private_endpoint_connections.rb +373 -0
  23. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/private_link_resources.rb +133 -0
  24. data/lib/2017-04-18/generated/azure_mgmt_cognitive_services/resource_skus.rb +2 -0
  25. data/lib/profiles/latest/modules/cognitiveservices_profile_module.rb +117 -57
  26. data/lib/version.rb +1 -1
  27. metadata +20 -4
@@ -17,11 +17,10 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
17
17
  # @return Credentials needed for the client to connect to Azure.
18
18
  attr_reader :credentials
19
19
 
20
- # @return [String] Azure Subscription ID.
20
+ # @return [String] The ID of the target subscription.
21
21
  attr_accessor :subscription_id
22
22
 
23
- # @return [String] Version of the API to be used with the client request.
24
- # Current version is 2017-04-18
23
+ # @return [String] The API version to use for this operation.
25
24
  attr_reader :api_version
26
25
 
27
26
  # @return [String] The preferred language for the response.
@@ -45,6 +44,12 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
45
44
  # @return [Operations] operations
46
45
  attr_reader :operations
47
46
 
47
+ # @return [PrivateEndpointConnections] private_endpoint_connections
48
+ attr_reader :private_endpoint_connections
49
+
50
+ # @return [PrivateLinkResources] private_link_resources
51
+ attr_reader :private_link_resources
52
+
48
53
  #
49
54
  # Creates initializes a new instance of the CognitiveServicesManagementClient class.
50
55
  # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
@@ -61,6 +66,8 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
61
66
  @accounts = Accounts.new(self)
62
67
  @resource_skus = ResourceSkus.new(self)
63
68
  @operations = Operations.new(self)
69
+ @private_endpoint_connections = PrivateEndpointConnections.new(self)
70
+ @private_link_resources = PrivateLinkResources.new(self)
64
71
  @api_version = '2017-04-18'
65
72
  @accept_language = 'en-US'
66
73
  @long_running_operation_retry_timeout = 30
@@ -173,7 +180,9 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
173
180
  #
174
181
  def check_sku_availability_async(location, skus, kind, type, custom_headers:nil)
175
182
  fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
183
+ fail ArgumentError, "'subscription_id' should satisfy the constraint - 'MinLength': '1'" if !subscription_id.nil? && subscription_id.length < 1
176
184
  fail ArgumentError, 'api_version is nil' if api_version.nil?
185
+ fail ArgumentError, "'api_version' should satisfy the constraint - 'MinLength': '1'" if !api_version.nil? && api_version.length < 1
177
186
  fail ArgumentError, 'location is nil' if location.nil?
178
187
  fail ArgumentError, 'skus is nil' if skus.nil?
179
188
  fail ArgumentError, 'kind is nil' if kind.nil?
@@ -282,7 +291,9 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
282
291
  #
283
292
  def check_domain_availability_async(subdomain_name, type, custom_headers:nil)
284
293
  fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
294
+ fail ArgumentError, "'subscription_id' should satisfy the constraint - 'MinLength': '1'" if !subscription_id.nil? && subscription_id.length < 1
285
295
  fail ArgumentError, 'api_version is nil' if api_version.nil?
296
+ fail ArgumentError, "'api_version' should satisfy the constraint - 'MinLength': '1'" if !api_version.nil? && api_version.length < 1
286
297
  fail ArgumentError, 'subdomain_name is nil' if subdomain_name.nil?
287
298
  fail ArgumentError, 'type is nil' if type.nil?
288
299
 
@@ -354,7 +365,7 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
354
365
  #
355
366
  def add_telemetry
356
367
  sdk_information = 'azure_mgmt_cognitive_services'
357
- sdk_information = "#{sdk_information}/0.19.1"
368
+ sdk_information = "#{sdk_information}/0.19.2"
358
369
  add_user_agent_information(sdk_information)
359
370
  end
360
371
  end
@@ -0,0 +1,75 @@
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
+ module Models
8
+ #
9
+ # The resource model definition for a Azure Resource Manager resource with
10
+ # an etag.
11
+ #
12
+ class AzureEntityResource < Resource
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Resource Etag.
17
+ attr_accessor :etag
18
+
19
+
20
+ #
21
+ # Mapper for AzureEntityResource class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ client_side_validation: true,
27
+ required: false,
28
+ serialized_name: 'AzureEntityResource',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'AzureEntityResource',
32
+ model_properties: {
33
+ id: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ read_only: true,
37
+ serialized_name: 'id',
38
+ type: {
39
+ name: 'String'
40
+ }
41
+ },
42
+ name: {
43
+ client_side_validation: true,
44
+ required: false,
45
+ read_only: true,
46
+ serialized_name: 'name',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ type: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ read_only: true,
55
+ serialized_name: 'type',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ etag: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'etag',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ end
73
+ end
74
+ end
75
+ end
@@ -23,6 +23,11 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
23
23
  # @return [String] The internal identifier.
24
24
  attr_accessor :internal_id
25
25
 
26
+ # @return [Array<SkuCapability>] Gets the capabilities of the cognitive
27
+ # services account. Each item indicates the capability of a specific
28
+ # feature. The values are read-only and for reference only.
29
+ attr_accessor :capabilities
30
+
26
31
  # @return [String] Optional subdomain name used for token-based
27
32
  # authentication.
28
33
  attr_accessor :custom_sub_domain_name
@@ -38,6 +43,15 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
38
43
  # resource.
39
44
  attr_accessor :user_owned_storage
40
45
 
46
+ # @return [Array<PrivateEndpointConnection>] The private endpoint
47
+ # connection associated with the Cognitive Services account.
48
+ attr_accessor :private_endpoint_connections
49
+
50
+ # @return [PublicNetworkAccess] Whether or not public endpoint access is
51
+ # allowed for this account. Value is optional but if passed in, must be
52
+ # 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled'
53
+ attr_accessor :public_network_access
54
+
41
55
  # @return [CognitiveServicesAccountApiProperties] The api properties for
42
56
  # special APIs.
43
57
  attr_accessor :api_properties
@@ -83,6 +97,24 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
83
97
  name: 'String'
84
98
  }
85
99
  },
100
+ capabilities: {
101
+ client_side_validation: true,
102
+ required: false,
103
+ read_only: true,
104
+ serialized_name: 'capabilities',
105
+ type: {
106
+ name: 'Sequence',
107
+ element: {
108
+ client_side_validation: true,
109
+ required: false,
110
+ serialized_name: 'SkuCapabilityElementType',
111
+ type: {
112
+ name: 'Composite',
113
+ class_name: 'SkuCapability'
114
+ }
115
+ }
116
+ }
117
+ },
86
118
  custom_sub_domain_name: {
87
119
  client_side_validation: true,
88
120
  required: false,
@@ -126,6 +158,31 @@ module Azure::CognitiveServices::Mgmt::V2017_04_18
126
158
  }
127
159
  }
128
160
  },
161
+ private_endpoint_connections: {
162
+ client_side_validation: true,
163
+ required: false,
164
+ serialized_name: 'privateEndpointConnections',
165
+ type: {
166
+ name: 'Sequence',
167
+ element: {
168
+ client_side_validation: true,
169
+ required: false,
170
+ serialized_name: 'PrivateEndpointConnectionElementType',
171
+ type: {
172
+ name: 'Composite',
173
+ class_name: 'PrivateEndpointConnection'
174
+ }
175
+ }
176
+ }
177
+ },
178
+ public_network_access: {
179
+ client_side_validation: true,
180
+ required: false,
181
+ serialized_name: 'publicNetworkAccess',
182
+ type: {
183
+ name: 'String'
184
+ }
185
+ },
129
186
  api_properties: {
130
187
  client_side_validation: true,
131
188
  required: false,
@@ -0,0 +1,47 @@
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
+ module Models
8
+ #
9
+ # The Private Endpoint resource.
10
+ #
11
+ class PrivateEndpoint
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The ARM identifier for Private Endpoint
16
+ attr_accessor :id
17
+
18
+
19
+ #
20
+ # Mapper for PrivateEndpoint class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'PrivateEndpoint',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'PrivateEndpoint',
31
+ model_properties: {
32
+ id: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ read_only: true,
36
+ serialized_name: 'id',
37
+ type: {
38
+ name: 'String'
39
+ }
40
+ }
41
+ }
42
+ }
43
+ }
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,74 @@
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
+ module Models
8
+ #
9
+ # The Private Endpoint Connection resource.
10
+ #
11
+ class PrivateEndpointConnection < Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [PrivateEndpointConnectionProperties] Resource properties.
16
+ attr_accessor :properties
17
+
18
+
19
+ #
20
+ # Mapper for PrivateEndpointConnection class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'PrivateEndpointConnection',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'PrivateEndpointConnection',
31
+ model_properties: {
32
+ id: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ read_only: true,
36
+ serialized_name: 'id',
37
+ type: {
38
+ name: 'String'
39
+ }
40
+ },
41
+ name: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ read_only: true,
45
+ serialized_name: 'name',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ type: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ read_only: true,
54
+ serialized_name: 'type',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ properties: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'properties',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'PrivateEndpointConnectionProperties'
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ end
72
+ end
73
+ end
74
+ end
@@ -0,0 +1,80 @@
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
+ module Models
8
+ #
9
+ # Properties of the PrivateEndpointConnectProperties.
10
+ #
11
+ class PrivateEndpointConnectionProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [PrivateEndpoint] The resource of private end point.
16
+ attr_accessor :private_endpoint
17
+
18
+ # @return [PrivateLinkServiceConnectionState] A collection of information
19
+ # about the state of the connection between service consumer and
20
+ # provider.
21
+ attr_accessor :private_link_service_connection_state
22
+
23
+ # @return [Array<String>] The private link resource group ids.
24
+ attr_accessor :group_ids
25
+
26
+
27
+ #
28
+ # Mapper for PrivateEndpointConnectionProperties class as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'PrivateEndpointConnectionProperties',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'PrivateEndpointConnectionProperties',
39
+ model_properties: {
40
+ private_endpoint: {
41
+ client_side_validation: true,
42
+ required: false,
43
+ serialized_name: 'privateEndpoint',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'PrivateEndpoint'
47
+ }
48
+ },
49
+ private_link_service_connection_state: {
50
+ client_side_validation: true,
51
+ required: true,
52
+ serialized_name: 'privateLinkServiceConnectionState',
53
+ type: {
54
+ name: 'Composite',
55
+ class_name: 'PrivateLinkServiceConnectionState'
56
+ }
57
+ },
58
+ group_ids: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'groupIds',
62
+ type: {
63
+ name: 'Sequence',
64
+ element: {
65
+ client_side_validation: true,
66
+ required: false,
67
+ serialized_name: 'StringElementType',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ end
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,18 @@
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
+ module Models
8
+ #
9
+ # Defines values for PrivateEndpointServiceConnectionStatus
10
+ #
11
+ module PrivateEndpointServiceConnectionStatus
12
+ Pending = "Pending"
13
+ Approved = "Approved"
14
+ Rejected = "Rejected"
15
+ Disconnected = "Disconnected"
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,74 @@
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
+ module Models
8
+ #
9
+ # A private link resource
10
+ #
11
+ class PrivateLinkResource < Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [PrivateLinkResourceProperties] Resource properties.
16
+ attr_accessor :properties
17
+
18
+
19
+ #
20
+ # Mapper for PrivateLinkResource class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'PrivateLinkResource',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'PrivateLinkResource',
31
+ model_properties: {
32
+ id: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ read_only: true,
36
+ serialized_name: 'id',
37
+ type: {
38
+ name: 'String'
39
+ }
40
+ },
41
+ name: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ read_only: true,
45
+ serialized_name: 'name',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ type: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ read_only: true,
54
+ serialized_name: 'type',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ properties: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'properties',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'PrivateLinkResourceProperties'
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ end
72
+ end
73
+ end
74
+ end