Skip to content

Commit c9478fe

Browse files
author
SDKAuto
committed
CodeGen from PR 14105 in Azure/azure-rest-api-specs
Merge 974c236fd438982beedd732c1d5e507fa573dce6 into 349641379572d7e2064bee963ba9c0a283287940
1 parent 8fd7b9d commit c9478fe

File tree

9 files changed

+963
-6
lines changed

9 files changed

+963
-6
lines changed

sdk/mixedreality/arm-mixedreality/src/mixedRealityClient.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class MixedRealityClient extends MixedRealityClientContext {
2020
operations: operations.Operations;
2121
spatialAnchorsAccounts: operations.SpatialAnchorsAccounts;
2222
remoteRenderingAccounts: operations.RemoteRenderingAccounts;
23+
objectAnchorsAccounts: operations.ObjectAnchorsAccounts;
2324

2425
/**
2526
* Initializes a new instance of the MixedRealityClient class.
@@ -33,6 +34,7 @@ class MixedRealityClient extends MixedRealityClientContext {
3334
this.operations = new operations.Operations(this);
3435
this.spatialAnchorsAccounts = new operations.SpatialAnchorsAccounts(this);
3536
this.remoteRenderingAccounts = new operations.RemoteRenderingAccounts(this);
37+
this.objectAnchorsAccounts = new operations.ObjectAnchorsAccounts(this);
3638
}
3739

3840
/**

sdk/mixedreality/arm-mixedreality/src/mixedRealityClientContext.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,25 @@ export class MixedRealityClientContext extends msRestAzure.AzureServiceClient {
3737
if (!options) {
3838
options = {};
3939
}
40-
if (!options.userAgent) {
40+
if(!options.userAgent) {
4141
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
4242
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
4343
}
4444

4545
super(credentials, options);
4646

47-
this.apiVersion = '2021-01-01';
47+
this.apiVersion = '2021-03-01-preview';
4848
this.acceptLanguage = 'en-US';
4949
this.longRunningOperationRetryTimeout = 30;
5050
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
5151
this.requestContentType = "application/json; charset=utf-8";
5252
this.credentials = credentials;
5353
this.subscriptionId = subscriptionId;
5454

55-
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
55+
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
5656
this.acceptLanguage = options.acceptLanguage;
5757
}
58-
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
58+
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
5959
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
6060
}
6161
}

sdk/mixedreality/arm-mixedreality/src/models/index.ts

Lines changed: 227 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export interface SystemData {
263263
*/
264264
lastModifiedByType?: CreatedByType;
265265
/**
266-
* The type of identity that last modified the resource.
266+
* The timestamp of resource last modification (UTC)
267267
*/
268268
lastModifiedAt?: Date;
269269
}
@@ -492,7 +492,7 @@ export interface AccountKeys {
492492
*/
493493
export interface AccountKeyRegenerateRequest {
494494
/**
495-
* serial of key to be regenerated. Default value: 1.
495+
* Serial of key to be regenerated. Default value: 1.
496496
*/
497497
serial?: number;
498498
}
@@ -537,6 +537,38 @@ export interface RemoteRenderingAccount extends TrackedResource {
537537
systemData?: SystemData;
538538
}
539539

540+
/**
541+
* An interface representing ObjectAnchorsAccountIdentity.
542+
*/
543+
export interface ObjectAnchorsAccountIdentity extends Identity {
544+
}
545+
546+
/**
547+
* ObjectAnchorsAccount Response.
548+
*/
549+
export interface ObjectAnchorsAccount extends TrackedResource {
550+
identity?: ObjectAnchorsAccountIdentity;
551+
/**
552+
* The name of the storage account associated with this accountId
553+
*/
554+
storageAccountName?: string;
555+
/**
556+
* unique id of certain account.
557+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
558+
*/
559+
readonly accountId?: string;
560+
/**
561+
* Correspond domain name of certain Spatial Anchors Account
562+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
563+
*/
564+
readonly accountDomain?: string;
565+
/**
566+
* The system metadata related to an object anchors account.
567+
* **NOTE: This property will not be serialized. It can only be populated by the server.**
568+
*/
569+
readonly systemData?: SystemData;
570+
}
571+
540572
/**
541573
* An interface representing MixedRealityClientOptions.
542574
*/
@@ -583,6 +615,19 @@ export interface RemoteRenderingAccountPage extends Array<RemoteRenderingAccount
583615
nextLink?: string;
584616
}
585617

618+
/**
619+
* @interface
620+
* Result of the request to get resource collection. It contains a list of resources and a URL link
621+
* to get the next set of results.
622+
* @extends Array<ObjectAnchorsAccount>
623+
*/
624+
export interface ObjectAnchorsAccountPage extends Array<ObjectAnchorsAccount> {
625+
/**
626+
* URL to get the next set of resource list results if there are any.
627+
*/
628+
nextLink?: string;
629+
}
630+
586631
/**
587632
* Defines values for NameUnavailableReason.
588633
* Possible values include: 'Invalid', 'AlreadyExists'
@@ -1034,3 +1079,183 @@ export type RemoteRenderingAccountsListByResourceGroupNextResponse = RemoteRende
10341079
parsedBody: RemoteRenderingAccountPage;
10351080
};
10361081
};
1082+
1083+
/**
1084+
* Contains response data for the listBySubscription operation.
1085+
*/
1086+
export type ObjectAnchorsAccountsListBySubscriptionResponse = ObjectAnchorsAccountPage & {
1087+
/**
1088+
* The underlying HTTP response.
1089+
*/
1090+
_response: msRest.HttpResponse & {
1091+
/**
1092+
* The response body as text (string format)
1093+
*/
1094+
bodyAsText: string;
1095+
1096+
/**
1097+
* The response body as parsed JSON or XML
1098+
*/
1099+
parsedBody: ObjectAnchorsAccountPage;
1100+
};
1101+
};
1102+
1103+
/**
1104+
* Contains response data for the listByResourceGroup operation.
1105+
*/
1106+
export type ObjectAnchorsAccountsListByResourceGroupResponse = ObjectAnchorsAccountPage & {
1107+
/**
1108+
* The underlying HTTP response.
1109+
*/
1110+
_response: msRest.HttpResponse & {
1111+
/**
1112+
* The response body as text (string format)
1113+
*/
1114+
bodyAsText: string;
1115+
1116+
/**
1117+
* The response body as parsed JSON or XML
1118+
*/
1119+
parsedBody: ObjectAnchorsAccountPage;
1120+
};
1121+
};
1122+
1123+
/**
1124+
* Contains response data for the get operation.
1125+
*/
1126+
export type ObjectAnchorsAccountsGetResponse = ObjectAnchorsAccount & {
1127+
/**
1128+
* The underlying HTTP response.
1129+
*/
1130+
_response: msRest.HttpResponse & {
1131+
/**
1132+
* The response body as text (string format)
1133+
*/
1134+
bodyAsText: string;
1135+
1136+
/**
1137+
* The response body as parsed JSON or XML
1138+
*/
1139+
parsedBody: ObjectAnchorsAccount;
1140+
};
1141+
};
1142+
1143+
/**
1144+
* Contains response data for the update operation.
1145+
*/
1146+
export type ObjectAnchorsAccountsUpdateResponse = ObjectAnchorsAccount & {
1147+
/**
1148+
* The underlying HTTP response.
1149+
*/
1150+
_response: msRest.HttpResponse & {
1151+
/**
1152+
* The response body as text (string format)
1153+
*/
1154+
bodyAsText: string;
1155+
1156+
/**
1157+
* The response body as parsed JSON or XML
1158+
*/
1159+
parsedBody: ObjectAnchorsAccount;
1160+
};
1161+
};
1162+
1163+
/**
1164+
* Contains response data for the create operation.
1165+
*/
1166+
export type ObjectAnchorsAccountsCreateResponse = ObjectAnchorsAccount & {
1167+
/**
1168+
* The underlying HTTP response.
1169+
*/
1170+
_response: msRest.HttpResponse & {
1171+
/**
1172+
* The response body as text (string format)
1173+
*/
1174+
bodyAsText: string;
1175+
1176+
/**
1177+
* The response body as parsed JSON or XML
1178+
*/
1179+
parsedBody: ObjectAnchorsAccount;
1180+
};
1181+
};
1182+
1183+
/**
1184+
* Contains response data for the listKeys operation.
1185+
*/
1186+
export type ObjectAnchorsAccountsListKeysResponse = AccountKeys & {
1187+
/**
1188+
* The underlying HTTP response.
1189+
*/
1190+
_response: msRest.HttpResponse & {
1191+
/**
1192+
* The response body as text (string format)
1193+
*/
1194+
bodyAsText: string;
1195+
1196+
/**
1197+
* The response body as parsed JSON or XML
1198+
*/
1199+
parsedBody: AccountKeys;
1200+
};
1201+
};
1202+
1203+
/**
1204+
* Contains response data for the regenerateKeys operation.
1205+
*/
1206+
export type ObjectAnchorsAccountsRegenerateKeysResponse = AccountKeys & {
1207+
/**
1208+
* The underlying HTTP response.
1209+
*/
1210+
_response: msRest.HttpResponse & {
1211+
/**
1212+
* The response body as text (string format)
1213+
*/
1214+
bodyAsText: string;
1215+
1216+
/**
1217+
* The response body as parsed JSON or XML
1218+
*/
1219+
parsedBody: AccountKeys;
1220+
};
1221+
};
1222+
1223+
/**
1224+
* Contains response data for the listBySubscriptionNext operation.
1225+
*/
1226+
export type ObjectAnchorsAccountsListBySubscriptionNextResponse = ObjectAnchorsAccountPage & {
1227+
/**
1228+
* The underlying HTTP response.
1229+
*/
1230+
_response: msRest.HttpResponse & {
1231+
/**
1232+
* The response body as text (string format)
1233+
*/
1234+
bodyAsText: string;
1235+
1236+
/**
1237+
* The response body as parsed JSON or XML
1238+
*/
1239+
parsedBody: ObjectAnchorsAccountPage;
1240+
};
1241+
};
1242+
1243+
/**
1244+
* Contains response data for the listByResourceGroupNext operation.
1245+
*/
1246+
export type ObjectAnchorsAccountsListByResourceGroupNextResponse = ObjectAnchorsAccountPage & {
1247+
/**
1248+
* The underlying HTTP response.
1249+
*/
1250+
_response: msRest.HttpResponse & {
1251+
/**
1252+
* The response body as text (string format)
1253+
*/
1254+
bodyAsText: string;
1255+
1256+
/**
1257+
* The response body as parsed JSON or XML
1258+
*/
1259+
parsedBody: ObjectAnchorsAccountPage;
1260+
};
1261+
};

0 commit comments

Comments
 (0)