Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-machinelearning] Added readOnly property #1894

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 18 additions & 10 deletions sdk/machinelearning/arm-machinelearning/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
# Release History

## 3.0.0 (2022-09-05)

**Breaking Changes**

## 2.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Interface AzureBlobDatastore no longer has parameter datastoreType
- Interface AzureDataLakeGen1Datastore no longer has parameter datastoreType
- Interface AzureDataLakeGen2Datastore no longer has parameter datastoreType
- Interface AzureFileDatastore no longer has parameter datastoreType
- Interface CommandJob no longer has parameter jobType
- Interface KubernetesOnlineDeployment no longer has parameter endpointComputeType
- Interface ManagedOnlineDeployment no longer has parameter endpointComputeType
- Interface MLTableData no longer has parameter dataType
- Interface PipelineJob no longer has parameter jobType
- Interface SweepJob no longer has parameter jobType
- Interface UriFileDataVersion no longer has parameter dataType
- Interface UriFolderDataVersion no longer has parameter dataType


## 2.0.0 (2022-08-05)

**Breaking Changes**
Expand Down
8 changes: 4 additions & 4 deletions sdk/machinelearning/arm-machinelearning/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "1dd79c416cdccde274113ec03b92b75069fad464",
"commit": "7b305e85aaf847e47e1d4f05ea84d9f435ce9021",
"readme": "specification/machinelearningservices/resource-manager/readme.md",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\machinelearningservices\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.1.20220727.1 --generate-sample=true",
"autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/machinelearningservices/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.0",
"use": "@autorest/typescript@6.0.0-rc.1.20220727.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
"use": "@autorest/typescript@6.0.0-rc.1"
}
16 changes: 4 additions & 12 deletions sdk/machinelearning/arm-machinelearning/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for AzureMachineLearningWorkspaces.",
"version": "2.0.1",
"version": "3.0.0",
"engines": {
"node": ">=12.0.0"
},
Expand Down Expand Up @@ -36,7 +36,7 @@
"mkdirp": "^1.0.4",
"rollup": "^2.66.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~4.6.0",
"typescript": "~4.2.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"@azure/identity": "^2.0.1",
Expand Down Expand Up @@ -109,13 +109,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-machinelearning?view=azure-node-preview"
}
}
"autoPublish": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -214,23 +214,20 @@ export interface AutoScaleProperties {
export interface AzureBlobDatastore extends DatastoreProperties {
accountName?: string;
containerName?: string;
datastoreType: "AzureBlob";
endpoint?: string;
protocol?: string;
serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity;
}

// @public
export interface AzureDataLakeGen1Datastore extends DatastoreProperties {
datastoreType: "AzureDataLakeGen1";
serviceDataAccessAuthIdentity?: ServiceDataAccessAuthIdentity;
storeName: string;
}

// @public
export interface AzureDataLakeGen2Datastore extends DatastoreProperties {
accountName: string;
datastoreType: "AzureDataLakeGen2";
endpoint?: string;
filesystem: string;
protocol?: string;
Expand All @@ -240,7 +237,6 @@ export interface AzureDataLakeGen2Datastore extends DatastoreProperties {
// @public
export interface AzureFileDatastore extends DatastoreProperties {
accountName: string;
datastoreType: "AzureFile";
endpoint?: string;
fileShareName: string;
protocol?: string;
Expand Down Expand Up @@ -741,7 +737,6 @@ export interface CommandJob extends JobBaseProperties {
inputs?: {
[propertyName: string]: JobInputUnion | null;
};
jobType: "Command";
limits?: CommandJobLimits;
outputs?: {
[propertyName: string]: JobOutputUnion | null;
Expand Down Expand Up @@ -884,7 +879,7 @@ export interface Compute {
computeType: "AKS" | "Kubernetes" | "AmlCompute" | "ComputeInstance" | "VirtualMachine" | "HDInsight" | "DataFactory" | "Databricks" | "DataLakeAnalytics" | "SynapseSpark";
readonly createdOn?: Date;
description?: string;
disableLocalAuth?: boolean;
readonly disableLocalAuth?: boolean;
readonly isAttachedCompute?: boolean;
readonly modifiedOn?: Date;
readonly provisioningErrors?: ErrorResponse[];
Expand Down Expand Up @@ -2729,7 +2724,6 @@ export interface Kubernetes extends Compute, KubernetesSchema {
// @public
export interface KubernetesOnlineDeployment extends OnlineDeploymentProperties {
containerResourceRequirements?: ContainerResourceRequirements;
endpointComputeType: "Kubernetes";
}

// @public
Expand Down Expand Up @@ -2818,7 +2812,6 @@ export interface ManagedIdentityAuthTypeWorkspaceConnectionProperties extends Wo

// @public
export interface ManagedOnlineDeployment extends OnlineDeploymentProperties {
endpointComputeType: "Managed";
}

// @public
Expand Down Expand Up @@ -2849,7 +2842,6 @@ export interface MLFlowModelJobOutput extends AssetJobOutput, JobOutput {

// @public
export interface MLTableData extends DataVersionBaseProperties {
dataType: "mltable";
referencedUris?: string[];
}

Expand Down Expand Up @@ -3494,7 +3486,6 @@ export interface PipelineJob extends JobBaseProperties {
jobs?: {
[propertyName: string]: Record<string, unknown>;
};
jobType: "Pipeline";
outputs?: {
[propertyName: string]: JobOutputUnion | null;
};
Expand Down Expand Up @@ -3943,7 +3934,6 @@ export interface SweepJob extends JobBaseProperties {
inputs?: {
[propertyName: string]: JobInputUnion | null;
};
jobType: "Sweep";
limits?: SweepJobLimits;
objective: Objective;
outputs?: {
Expand Down Expand Up @@ -4073,7 +4063,6 @@ export interface UpdateWorkspaceQuotasResult {

// @public
export interface UriFileDataVersion extends DataVersionBaseProperties {
dataType: "uri_file";
}

// @public (undocumented)
Expand All @@ -4086,7 +4075,6 @@ export interface UriFileJobOutput extends AssetJobOutput, JobOutput {

// @public
export interface UriFolderDataVersion extends DataVersionBaseProperties {
dataType: "uri_folder";
}

// @public (undocumented)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-machinelearning/2.0.1`;
const packageDetails = `azsdk-js-arm-machinelearning/3.0.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand All @@ -124,41 +124,34 @@ export class AzureMachineLearningWorkspaces extends coreClient.ServiceClient {
};
super(optionsWithDefaults);

let bearerTokenAuthenticationPolicyFound: boolean = false;
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
(pipelinePolicy) =>
pipelinePolicy.name ===
coreRestPipeline.bearerTokenAuthenticationPolicyName
);
}
if (
!options ||
!options.pipeline ||
options.pipeline.getOrderedPolicies().length == 0 ||
!bearerTokenAuthenticationPolicyFound
) {
this.pipeline.removePolicy({
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
});
this.pipeline.addPolicy(
coreRestPipeline.bearerTokenAuthenticationPolicy({
credential: credentials,
scopes: `${optionsWithDefaults.credentialScopes}`,
challengeCallbacks: {
authorizeRequestOnChallenge:
coreClient.authorizeRequestOnClaimChallenge
}
})
);
if (!bearerTokenAuthenticationPolicyFound) {
this.pipeline.removePolicy({
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
});
this.pipeline.addPolicy(
coreRestPipeline.bearerTokenAuthenticationPolicy({
scopes: `${optionsWithDefaults.baseUri}/.default`,
challengeCallbacks: {
authorizeRequestOnChallenge:
coreClient.authorizeRequestOnClaimChallenge
}
})
);
}
}
// Parameter assignments
this.subscriptionId = subscriptionId;

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2022-05-01";
this.apiVersion = options.apiVersion || "2022-10-01";
this.operations = new OperationsImpl(this);
this.workspaces = new WorkspacesImpl(this);
this.usages = new UsagesImpl(this);
Expand Down
Loading