Skip to content

Commit

Permalink
CodeGen from PR 12908 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
s360 fixes for MixedReality 2020-05-01 and 2020-04-06-preview swagger (Azure#12908)

* s360 fixes for 2020-05-01 swagger

* add suppression for keys returned in a post

* fix suppression

* fix 2020-04-06-preview

* update readme.md

* remove changes to CloudError
  • Loading branch information
SDKAuto committed Feb 16, 2021
1 parent e19c009 commit 33d0104
Show file tree
Hide file tree
Showing 10 changed files with 1,015 additions and 84 deletions.
2 changes: 2 additions & 0 deletions sdk/mixedreality/arm-mixedreality/src/mixedRealityClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class MixedRealityClient extends MixedRealityClientContext {
operations: operations.Operations;
spatialAnchorsAccounts: operations.SpatialAnchorsAccounts;
remoteRenderingAccounts: operations.RemoteRenderingAccounts;
objectAnchorsAccounts: operations.ObjectAnchorsAccounts;

/**
* Initializes a new instance of the MixedRealityClient class.
Expand All @@ -33,6 +34,7 @@ class MixedRealityClient extends MixedRealityClientContext {
this.operations = new operations.Operations(this);
this.spatialAnchorsAccounts = new operations.SpatialAnchorsAccounts(this);
this.remoteRenderingAccounts = new operations.RemoteRenderingAccounts(this);
this.objectAnchorsAccounts = new operations.ObjectAnchorsAccounts(this);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,25 @@ export class MixedRealityClientContext extends msRestAzure.AzureServiceClient {
if (!options) {
options = {};
}
if (!options.userAgent) {
if(!options.userAgent) {
const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
}

super(credentials, options);

this.apiVersion = '2021-01-01';
this.apiVersion = '2021-03-01-preview';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
this.requestContentType = "application/json; charset=utf-8";
this.credentials = credentials;
this.subscriptionId = subscriptionId;

if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
}
}
Expand Down
275 changes: 246 additions & 29 deletions sdk/mixedreality/arm-mixedreality/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,24 @@ export interface OperationDisplay {
description: string;
}

/**
* REST API operation
*/
export interface Operation {
/**
* Operation name: {provider}/{resource}/{operation}
*/
name?: string;
/**
* Indicates whether the operation is a data action
*/
isDataAction?: boolean;
/**
* The object that represents the operation.
*/
display?: OperationDisplay;
}

/**
* Specifications of the Log for Azure Monitoring
*/
Expand Down Expand Up @@ -152,39 +170,13 @@ export interface ServiceSpecification {
/**
* Operation properties.
*/
export interface OperationProperties {
export interface Properties {
/**
* Service specification.
*/
serviceSpecification?: ServiceSpecification;
}

/**
* REST API operation
*/
export interface Operation {
/**
* Operation name: {provider}/{resource}/{operation}
*/
name?: string;
/**
* The object that represents the operation.
*/
display?: OperationDisplay;
/**
* Whether or not this is a data plane operation
*/
isDataAction?: boolean;
/**
* The origin
*/
origin?: string;
/**
* Properties of the operation
*/
properties?: OperationProperties;
}

/**
* Identity for the resource.
*/
Expand Down Expand Up @@ -263,7 +255,7 @@ export interface SystemData {
*/
lastModifiedByType?: CreatedByType;
/**
* The type of identity that last modified the resource.
* The timestamp of resource last modification (UTC)
*/
lastModifiedAt?: Date;
}
Expand Down Expand Up @@ -492,7 +484,7 @@ export interface AccountKeys {
*/
export interface AccountKeyRegenerateRequest {
/**
* serial of key to be regenerated. Default value: 1.
* Serial of key to be regenerated. Default value: 1.
*/
serial?: number;
}
Expand Down Expand Up @@ -537,6 +529,38 @@ export interface RemoteRenderingAccount extends TrackedResource {
systemData?: SystemData;
}

/**
* An interface representing ObjectAnchorsAccountIdentity.
*/
export interface ObjectAnchorsAccountIdentity extends Identity {
}

/**
* ObjectAnchorsAccount Response.
*/
export interface ObjectAnchorsAccount extends TrackedResource {
identity?: ObjectAnchorsAccountIdentity;
/**
* The name of the storage account associated with this accountId
*/
storageAccountName?: string;
/**
* unique id of certain account.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly accountId?: string;
/**
* Correspond domain name of certain Spatial Anchors Account
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly accountDomain?: string;
/**
* The system metadata related to an object anchors account.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly systemData?: SystemData;
}

/**
* An interface representing MixedRealityClientOptions.
*/
Expand Down Expand Up @@ -583,6 +607,19 @@ export interface RemoteRenderingAccountPage extends Array<RemoteRenderingAccount
nextLink?: string;
}

/**
* @interface
* Result of the request to get resource collection. It contains a list of resources and a URL link
* to get the next set of results.
* @extends Array<ObjectAnchorsAccount>
*/
export interface ObjectAnchorsAccountPage extends Array<ObjectAnchorsAccount> {
/**
* URL to get the next set of resource list results if there are any.
*/
nextLink?: string;
}

/**
* Defines values for NameUnavailableReason.
* Possible values include: 'Invalid', 'AlreadyExists'
Expand Down Expand Up @@ -1034,3 +1071,183 @@ export type RemoteRenderingAccountsListByResourceGroupNextResponse = RemoteRende
parsedBody: RemoteRenderingAccountPage;
};
};

/**
* Contains response data for the listBySubscription operation.
*/
export type ObjectAnchorsAccountsListBySubscriptionResponse = ObjectAnchorsAccountPage & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: ObjectAnchorsAccountPage;
};
};

/**
* Contains response data for the listByResourceGroup operation.
*/
export type ObjectAnchorsAccountsListByResourceGroupResponse = ObjectAnchorsAccountPage & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: ObjectAnchorsAccountPage;
};
};

/**
* Contains response data for the get operation.
*/
export type ObjectAnchorsAccountsGetResponse = ObjectAnchorsAccount & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: ObjectAnchorsAccount;
};
};

/**
* Contains response data for the update operation.
*/
export type ObjectAnchorsAccountsUpdateResponse = ObjectAnchorsAccount & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: ObjectAnchorsAccount;
};
};

/**
* Contains response data for the create operation.
*/
export type ObjectAnchorsAccountsCreateResponse = ObjectAnchorsAccount & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: ObjectAnchorsAccount;
};
};

/**
* Contains response data for the listKeys operation.
*/
export type ObjectAnchorsAccountsListKeysResponse = AccountKeys & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: AccountKeys;
};
};

/**
* Contains response data for the regenerateKeys operation.
*/
export type ObjectAnchorsAccountsRegenerateKeysResponse = AccountKeys & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: AccountKeys;
};
};

/**
* Contains response data for the listBySubscriptionNext operation.
*/
export type ObjectAnchorsAccountsListBySubscriptionNextResponse = ObjectAnchorsAccountPage & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: ObjectAnchorsAccountPage;
};
};

/**
* Contains response data for the listByResourceGroupNext operation.
*/
export type ObjectAnchorsAccountsListByResourceGroupNextResponse = ObjectAnchorsAccountPage & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: ObjectAnchorsAccountPage;
};
};
Loading

0 comments on commit 33d0104

Please sign in to comment.