azure_mgmt_mixedreality 0.17.2 → 0.17.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2019-02-28-preview/generated/azure_mgmt_mixedreality/mixed_reality_client.rb +1 -1
- data/lib/2019-12-02-preview/generated/azure_mgmt_mixedreality/mixed_reality_client.rb +1 -1
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality.rb +54 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/mixed_reality_client.rb +243 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/account_key_regenerate_request.rb +47 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/account_keys.rb +59 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/azure_entity_resource.rb +75 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/check_name_availability_request.rb +58 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/check_name_availability_response.rb +70 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/identity.rb +72 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/name_availability.rb +16 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/name_unavailable_reason.rb +16 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/operation.rb +58 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/operation_display.rb +80 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/operation_page.rb +101 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/plan.rb +95 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/proxy_resource.rb +63 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/remote_rendering_account.rb +123 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/remote_rendering_account_identity.rb +63 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/remote_rendering_account_page.rb +101 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/resource.rb +83 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/resource_identity_type.rb +15 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/resource_model_with_allowed_property_set.rb +191 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/resource_model_with_allowed_property_set_identity.rb +64 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/resource_model_with_allowed_property_set_plan.rb +76 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/resource_model_with_allowed_property_set_sku.rb +77 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/sku.rb +99 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/sku_tier.rb +18 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/models/tracked_resource.rb +92 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/module_definition.rb +9 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/operations.rb +218 -0
- data/lib/2020-04-06-preview/generated/azure_mgmt_mixedreality/remote_rendering_accounts.rb +1066 -0
- data/lib/2020-05-01/generated/azure_mgmt_mixedreality.rb +44 -0
- data/lib/2020-05-01/generated/azure_mgmt_mixedreality/mixed_reality_client.rb +243 -0
- data/lib/2020-05-01/generated/azure_mgmt_mixedreality/models/account_key_regenerate_request.rb +47 -0
- data/lib/2020-05-01/generated/azure_mgmt_mixedreality/models/account_keys.rb +59 -0
- data/lib/2020-05-01/generated/azure_mgmt_mixedreality/models/azure_entity_resource.rb +75 -0
- data/lib/2020-05-01/generated/azure_mgmt_mixedreality/models/check_name_availability_request.rb +58 -0
- data/lib/2020-05-01/generated/azure_mgmt_mixedreality/models/check_name_availability_response.rb +70 -0
- data/lib/2020-05-01/generated/azure_mgmt_mixedreality/models/name_availability.rb +16 -0
- data/lib/2020-05-01/generated/azure_mgmt_mixedreality/models/name_unavailable_reason.rb +16 -0
- data/lib/2020-05-01/generated/azure_mgmt_mixedreality/models/operation.rb +58 -0
- data/lib/2020-05-01/generated/azure_mgmt_mixedreality/models/operation_display.rb +80 -0
- data/lib/2020-05-01/generated/azure_mgmt_mixedreality/models/operation_page.rb +101 -0
- data/lib/2020-05-01/generated/azure_mgmt_mixedreality/models/proxy_resource.rb +63 -0
- data/lib/2020-05-01/generated/azure_mgmt_mixedreality/models/resource.rb +83 -0
- data/lib/2020-05-01/generated/azure_mgmt_mixedreality/models/spatial_anchors_account.rb +111 -0
- data/lib/2020-05-01/generated/azure_mgmt_mixedreality/models/spatial_anchors_account_page.rb +101 -0
- data/lib/2020-05-01/generated/azure_mgmt_mixedreality/models/tracked_resource.rb +92 -0
- data/lib/2020-05-01/generated/azure_mgmt_mixedreality/module_definition.rb +9 -0
- data/lib/2020-05-01/generated/azure_mgmt_mixedreality/operations.rb +218 -0
- data/lib/2020-05-01/generated/azure_mgmt_mixedreality/spatial_anchors_accounts.rb +1066 -0
- data/lib/azure_mgmt_mixedreality.rb +2 -0
- data/lib/profiles/latest/modules/mixedreality_profile_module.rb +100 -56
- data/lib/version.rb +1 -1
- metadata +54 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fcd3ffdbebb6c5351e30dd464deb29a4b7a4ea71636195841665a5ab182f613
|
4
|
+
data.tar.gz: d07466ecb117fe940cba9c3305478bbaa19c34c2593913df3408968c0a5e1484
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6635d4d3d4acdaa0012642147071710c26022fa66416a07f271a34183b7b496e8745bd364341e279f4d57a0499e86ed0eff13133ece349f0c68e8b9478e26b52
|
7
|
+
data.tar.gz: 6aa903b96a22ef6ee6954e68af6bbae3a62c2106746c882042a764ea0fbbdeb10a3351b3cfa50ef90bcbf21f34e192a801578783cfcea8133dc54193a7bba94e
|
@@ -235,7 +235,7 @@ module Azure::MixedReality::Mgmt::V2019_02_28_preview
|
|
235
235
|
#
|
236
236
|
def add_telemetry
|
237
237
|
sdk_information = 'azure_mgmt_mixedreality'
|
238
|
-
sdk_information = "#{sdk_information}/0.17.
|
238
|
+
sdk_information = "#{sdk_information}/0.17.3"
|
239
239
|
add_user_agent_information(sdk_information)
|
240
240
|
end
|
241
241
|
end
|
@@ -239,7 +239,7 @@ module Azure::MixedReality::Mgmt::V2019_12_02_preview
|
|
239
239
|
#
|
240
240
|
def add_telemetry
|
241
241
|
sdk_information = 'azure_mgmt_mixedreality'
|
242
|
-
sdk_information = "#{sdk_information}/0.17.
|
242
|
+
sdk_information = "#{sdk_information}/0.17.3"
|
243
243
|
add_user_agent_information(sdk_information)
|
244
244
|
end
|
245
245
|
end
|
@@ -0,0 +1,54 @@
|
|
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
|
+
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 '2020-04-06-preview/generated/azure_mgmt_mixedreality/module_definition'
|
20
|
+
require 'ms_rest_azure'
|
21
|
+
|
22
|
+
module Azure::MixedReality::Mgmt::V2020_04_06_preview
|
23
|
+
autoload :Operations, '2020-04-06-preview/generated/azure_mgmt_mixedreality/operations.rb'
|
24
|
+
autoload :RemoteRenderingAccounts, '2020-04-06-preview/generated/azure_mgmt_mixedreality/remote_rendering_accounts.rb'
|
25
|
+
autoload :MixedRealityClient, '2020-04-06-preview/generated/azure_mgmt_mixedreality/mixed_reality_client.rb'
|
26
|
+
|
27
|
+
module Models
|
28
|
+
autoload :Plan, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/plan.rb'
|
29
|
+
autoload :CheckNameAvailabilityRequest, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/check_name_availability_request.rb'
|
30
|
+
autoload :Resource, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/resource.rb'
|
31
|
+
autoload :OperationDisplay, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/operation_display.rb'
|
32
|
+
autoload :RemoteRenderingAccountPage, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/remote_rendering_account_page.rb'
|
33
|
+
autoload :OperationPage, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/operation_page.rb'
|
34
|
+
autoload :Identity, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/identity.rb'
|
35
|
+
autoload :AccountKeyRegenerateRequest, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/account_key_regenerate_request.rb'
|
36
|
+
autoload :Operation, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/operation.rb'
|
37
|
+
autoload :AccountKeys, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/account_keys.rb'
|
38
|
+
autoload :CheckNameAvailabilityResponse, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/check_name_availability_response.rb'
|
39
|
+
autoload :ResourceModelWithAllowedPropertySet, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/resource_model_with_allowed_property_set.rb'
|
40
|
+
autoload :Sku, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/sku.rb'
|
41
|
+
autoload :RemoteRenderingAccountIdentity, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/remote_rendering_account_identity.rb'
|
42
|
+
autoload :RemoteRenderingAccount, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/remote_rendering_account.rb'
|
43
|
+
autoload :ResourceModelWithAllowedPropertySetIdentity, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/resource_model_with_allowed_property_set_identity.rb'
|
44
|
+
autoload :ResourceModelWithAllowedPropertySetSku, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/resource_model_with_allowed_property_set_sku.rb'
|
45
|
+
autoload :ResourceModelWithAllowedPropertySetPlan, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/resource_model_with_allowed_property_set_plan.rb'
|
46
|
+
autoload :ProxyResource, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/proxy_resource.rb'
|
47
|
+
autoload :AzureEntityResource, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/azure_entity_resource.rb'
|
48
|
+
autoload :TrackedResource, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/tracked_resource.rb'
|
49
|
+
autoload :NameAvailability, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/name_availability.rb'
|
50
|
+
autoload :NameUnavailableReason, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/name_unavailable_reason.rb'
|
51
|
+
autoload :SkuTier, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/sku_tier.rb'
|
52
|
+
autoload :ResourceIdentityType, '2020-04-06-preview/generated/azure_mgmt_mixedreality/models/resource_identity_type.rb'
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,243 @@
|
|
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::MixedReality::Mgmt::V2020_04_06_preview
|
7
|
+
#
|
8
|
+
# A service client - single point of access to the REST API.
|
9
|
+
#
|
10
|
+
class MixedRealityClient < 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] The API version to be used with the HTTP request.
|
21
|
+
attr_reader :api_version
|
22
|
+
|
23
|
+
# @return [String] The Azure subscription ID. This is a GUID-formatted
|
24
|
+
# string (e.g. 00000000-0000-0000-0000-000000000000)
|
25
|
+
attr_accessor :subscription_id
|
26
|
+
|
27
|
+
# @return [String] The preferred language for the response.
|
28
|
+
attr_accessor :accept_language
|
29
|
+
|
30
|
+
# @return [Integer] The retry timeout in seconds for Long Running
|
31
|
+
# Operations. Default value is 30.
|
32
|
+
attr_accessor :long_running_operation_retry_timeout
|
33
|
+
|
34
|
+
# @return [Boolean] Whether a unique x-ms-client-request-id should be
|
35
|
+
# generated. When set to true a unique x-ms-client-request-id value is
|
36
|
+
# generated and included in each request. Default is true.
|
37
|
+
attr_accessor :generate_client_request_id
|
38
|
+
|
39
|
+
# @return [Operations] operations
|
40
|
+
attr_reader :operations
|
41
|
+
|
42
|
+
# @return [RemoteRenderingAccounts] remote_rendering_accounts
|
43
|
+
attr_reader :remote_rendering_accounts
|
44
|
+
|
45
|
+
#
|
46
|
+
# Creates initializes a new instance of the MixedRealityClient 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 = nil, base_url = nil, options = nil)
|
52
|
+
super(credentials, options)
|
53
|
+
@base_url = base_url || 'https://management.azure.com'
|
54
|
+
|
55
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
56
|
+
@credentials = credentials
|
57
|
+
|
58
|
+
@operations = Operations.new(self)
|
59
|
+
@remote_rendering_accounts = RemoteRenderingAccounts.new(self)
|
60
|
+
@api_version = '2020-04-06-preview'
|
61
|
+
@accept_language = 'en-US'
|
62
|
+
@long_running_operation_retry_timeout = 30
|
63
|
+
@generate_client_request_id = true
|
64
|
+
add_telemetry
|
65
|
+
end
|
66
|
+
|
67
|
+
#
|
68
|
+
# Makes a request and returns the body of the response.
|
69
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
70
|
+
# @param path [String] the path, relative to {base_url}.
|
71
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
72
|
+
# @return [Hash{String=>String}] containing the body of the response.
|
73
|
+
# Example:
|
74
|
+
#
|
75
|
+
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
76
|
+
# path = "/path"
|
77
|
+
# options = {
|
78
|
+
# body: request_content,
|
79
|
+
# query_params: {'api-version' => '2016-02-01'}
|
80
|
+
# }
|
81
|
+
# result = @client.make_request(:put, path, options)
|
82
|
+
#
|
83
|
+
def make_request(method, path, options = {})
|
84
|
+
result = make_request_with_http_info(method, path, options)
|
85
|
+
result.body unless result.nil?
|
86
|
+
end
|
87
|
+
|
88
|
+
#
|
89
|
+
# Makes a request and returns the operation response.
|
90
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
91
|
+
# @param path [String] the path, relative to {base_url}.
|
92
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
93
|
+
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
94
|
+
#
|
95
|
+
def make_request_with_http_info(method, path, options = {})
|
96
|
+
result = make_request_async(method, path, options).value!
|
97
|
+
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
98
|
+
result
|
99
|
+
end
|
100
|
+
|
101
|
+
#
|
102
|
+
# Makes a request asynchronously.
|
103
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
104
|
+
# @param path [String] the path, relative to {base_url}.
|
105
|
+
# @param options [Hash{String=>String}] specifying any request options like :body.
|
106
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
107
|
+
#
|
108
|
+
def make_request_async(method, path, options = {})
|
109
|
+
fail ArgumentError, 'method is nil' if method.nil?
|
110
|
+
fail ArgumentError, 'path is nil' if path.nil?
|
111
|
+
|
112
|
+
request_url = options[:base_url] || @base_url
|
113
|
+
if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
|
114
|
+
@request_headers['Content-Type'] = options[:headers]['Content-Type']
|
115
|
+
end
|
116
|
+
|
117
|
+
request_headers = @request_headers
|
118
|
+
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
119
|
+
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
120
|
+
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
121
|
+
|
122
|
+
super(request_url, method, path, options)
|
123
|
+
end
|
124
|
+
|
125
|
+
#
|
126
|
+
# Check Name Availability for local uniqueness
|
127
|
+
#
|
128
|
+
# @param location [String] The location in which uniqueness will be verified.
|
129
|
+
# @param check_name_availability [CheckNameAvailabilityRequest] Check Name
|
130
|
+
# Availability Request.
|
131
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
132
|
+
# will be added to the HTTP request.
|
133
|
+
#
|
134
|
+
# @return [CheckNameAvailabilityResponse] operation results.
|
135
|
+
#
|
136
|
+
def check_name_availability_local(location, check_name_availability, custom_headers:nil)
|
137
|
+
response = check_name_availability_local_async(location, check_name_availability, custom_headers:custom_headers).value!
|
138
|
+
response.body unless response.nil?
|
139
|
+
end
|
140
|
+
|
141
|
+
#
|
142
|
+
# Check Name Availability for local uniqueness
|
143
|
+
#
|
144
|
+
# @param location [String] The location in which uniqueness will be verified.
|
145
|
+
# @param check_name_availability [CheckNameAvailabilityRequest] Check Name
|
146
|
+
# Availability Request.
|
147
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
148
|
+
# will be added to the HTTP request.
|
149
|
+
#
|
150
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
151
|
+
#
|
152
|
+
def check_name_availability_local_with_http_info(location, check_name_availability, custom_headers:nil)
|
153
|
+
check_name_availability_local_async(location, check_name_availability, custom_headers:custom_headers).value!
|
154
|
+
end
|
155
|
+
|
156
|
+
#
|
157
|
+
# Check Name Availability for local uniqueness
|
158
|
+
#
|
159
|
+
# @param location [String] The location in which uniqueness will be verified.
|
160
|
+
# @param check_name_availability [CheckNameAvailabilityRequest] Check Name
|
161
|
+
# Availability Request.
|
162
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
163
|
+
# to the HTTP request.
|
164
|
+
#
|
165
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
166
|
+
#
|
167
|
+
def check_name_availability_local_async(location, check_name_availability, custom_headers:nil)
|
168
|
+
fail ArgumentError, 'subscription_id is nil' if subscription_id.nil?
|
169
|
+
fail ArgumentError, 'location is nil' if location.nil?
|
170
|
+
fail ArgumentError, "'location' should satisfy the constraint - 'MaxLength': '90'" if !location.nil? && location.length > 90
|
171
|
+
fail ArgumentError, "'location' should satisfy the constraint - 'MinLength': '1'" if !location.nil? && location.length < 1
|
172
|
+
fail ArgumentError, "'location' should satisfy the constraint - 'Pattern': '^[-\w\._\(\)]+$'" if !location.nil? && location.match(Regexp.new('^^[-\w\._\(\)]+$$')).nil?
|
173
|
+
fail ArgumentError, 'check_name_availability is nil' if check_name_availability.nil?
|
174
|
+
fail ArgumentError, 'api_version is nil' if api_version.nil?
|
175
|
+
|
176
|
+
|
177
|
+
request_headers = {}
|
178
|
+
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
179
|
+
|
180
|
+
# Set Headers
|
181
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
182
|
+
request_headers['accept-language'] = accept_language unless accept_language.nil?
|
183
|
+
|
184
|
+
# Serialize Request
|
185
|
+
request_mapper = Azure::MixedReality::Mgmt::V2020_04_06_preview::Models::CheckNameAvailabilityRequest.mapper()
|
186
|
+
request_content = self.serialize(request_mapper, check_name_availability)
|
187
|
+
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
188
|
+
|
189
|
+
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.MixedReality/locations/{location}/checkNameAvailability'
|
190
|
+
|
191
|
+
request_url = @base_url || self.base_url
|
192
|
+
|
193
|
+
options = {
|
194
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
195
|
+
path_params: {'subscriptionId' => subscription_id,'location' => location},
|
196
|
+
query_params: {'api-version' => api_version},
|
197
|
+
body: request_content,
|
198
|
+
headers: request_headers.merge(custom_headers || {}),
|
199
|
+
base_url: request_url
|
200
|
+
}
|
201
|
+
promise = self.make_request_async(:post, path_template, options)
|
202
|
+
|
203
|
+
promise = promise.then do |result|
|
204
|
+
http_response = result.response
|
205
|
+
status_code = http_response.status
|
206
|
+
response_content = http_response.body
|
207
|
+
unless status_code == 200
|
208
|
+
error_model = JSON.load(response_content)
|
209
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
210
|
+
end
|
211
|
+
|
212
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
213
|
+
result.correlation_request_id = http_response['x-ms-correlation-request-id'] unless http_response['x-ms-correlation-request-id'].nil?
|
214
|
+
result.client_request_id = http_response['x-ms-client-request-id'] unless http_response['x-ms-client-request-id'].nil?
|
215
|
+
# Deserialize Response
|
216
|
+
if status_code == 200
|
217
|
+
begin
|
218
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
219
|
+
result_mapper = Azure::MixedReality::Mgmt::V2020_04_06_preview::Models::CheckNameAvailabilityResponse.mapper()
|
220
|
+
result.body = self.deserialize(result_mapper, parsed_response)
|
221
|
+
rescue Exception => e
|
222
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
result
|
227
|
+
end
|
228
|
+
|
229
|
+
promise.execute
|
230
|
+
end
|
231
|
+
|
232
|
+
|
233
|
+
private
|
234
|
+
#
|
235
|
+
# Adds telemetry information.
|
236
|
+
#
|
237
|
+
def add_telemetry
|
238
|
+
sdk_information = 'azure_mgmt_mixedreality'
|
239
|
+
sdk_information = "#{sdk_information}/0.17.3"
|
240
|
+
add_user_agent_information(sdk_information)
|
241
|
+
end
|
242
|
+
end
|
243
|
+
end
|
@@ -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::MixedReality::Mgmt::V2020_04_06_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Request for account key regeneration
|
10
|
+
#
|
11
|
+
class AccountKeyRegenerateRequest
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Integer] serial of key to be regenerated. Default value: 1 .
|
16
|
+
attr_accessor :serial
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for AccountKeyRegenerateRequest 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: 'AccountKeyRegenerateRequest',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'AccountKeyRegenerateRequest',
|
31
|
+
model_properties: {
|
32
|
+
serial: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'serial',
|
36
|
+
default_value: 1,
|
37
|
+
type: {
|
38
|
+
name: 'Number'
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,59 @@
|
|
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::MixedReality::Mgmt::V2020_04_06_preview
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Developer Keys of account
|
10
|
+
#
|
11
|
+
class AccountKeys
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] value of primary key.
|
16
|
+
attr_accessor :primary_key
|
17
|
+
|
18
|
+
# @return [String] value of secondary key.
|
19
|
+
attr_accessor :secondary_key
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for AccountKeys class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
client_side_validation: true,
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'AccountKeys',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'AccountKeys',
|
34
|
+
model_properties: {
|
35
|
+
primary_key: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
read_only: true,
|
39
|
+
serialized_name: 'primaryKey',
|
40
|
+
type: {
|
41
|
+
name: 'String'
|
42
|
+
}
|
43
|
+
},
|
44
|
+
secondary_key: {
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
read_only: true,
|
48
|
+
serialized_name: 'secondaryKey',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
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::MixedReality::Mgmt::V2020_04_06_preview
|
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
|