Skip to content

Commit

Permalink
CodeGen from PR 13777 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge bfda6f8c1725d691eba1ca241ca68e9bbf5a8fe2 into b3577207350270e9ae3b3e22c91b1730c602f276
  • Loading branch information
SDKAuto committed Apr 13, 2021
1 parent e86840a commit eefde48
Show file tree
Hide file tree
Showing 9 changed files with 1,073 additions and 6 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
269 changes: 267 additions & 2 deletions sdk/mixedreality/arm-mixedreality/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ export interface MetricDimension {
* Internal name of the dimension.
*/
internalName?: string;
/**
* Flag to indicate export for Shoebox
*/
toBeExportedForShoebox?: boolean;
}

/**
Expand All @@ -125,6 +129,38 @@ export interface MetricSpecification {
* Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count.
*/
aggregationType?: string;
/**
* Supported aggregation types. Valid values: Average, Minimum, Maximum, Total, Count.
*/
supportedAggregationTypes?: string[];
/**
* Supported time grains. Valid values: PT1M, PT5M, PT15M, PT30M, PT1H, PT6H, PT12H, P1D
*/
supportedTimeGrainTypes?: string[];
/**
* Flag to indicate use of regional Mdm accounts
*/
enableRegionalMdmAccount?: boolean;
/**
* Source mdm account
*/
sourceMdmAccount?: string;
/**
* Source mdm namespace
*/
sourceMdmNamespace?: string;
/**
* Metric filter regex pattern
*/
metricFilterPattern?: string;
/**
* Flag to determine is Zero is returned for time duration where no metric is emitted
*/
fillGapWithZero?: boolean;
/**
* Metric category
*/
category?: string;
/**
* Internal metric name.
*/
Expand All @@ -133,6 +169,10 @@ export interface MetricSpecification {
* Dimensions of the metric
*/
dimensions?: MetricDimension[];
/**
* Locked aggregation type of the metric
*/
lockedAggregationType?: string;
}

/**
Expand Down Expand Up @@ -263,7 +303,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 +532,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 +577,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 +655,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 +1119,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 eefde48

Please sign in to comment.