tags) {
super.withTags(tags);
return this;
}
@@ -167,8 +164,7 @@ public void validate() {
if (properties() == null) {
throw LOGGER
.logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property properties in model OnlineEndpointDataInner"));
+ new IllegalArgumentException("Missing required property properties in model OnlineEndpointInner"));
} else {
properties().validate();
}
@@ -177,5 +173,5 @@ public void validate() {
}
}
- private static final ClientLogger LOGGER = new ClientLogger(OnlineEndpointDataInner.class);
+ private static final ClientLogger LOGGER = new ClientLogger(OnlineEndpointInner.class);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateEndpointConnectionInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateEndpointConnectionInner.java
index 62a31cb1a7b9..dc583434554e 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateEndpointConnectionInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateEndpointConnectionInner.java
@@ -51,8 +51,7 @@ public final class PrivateEndpointConnectionInner extends ProxyResource {
private Sku sku;
/*
- * Azure Resource Manager metadata containing createdBy and modifiedBy
- * information.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateEndpointConnectionProperties.java
index 50e448958b64..910bb5a3c92e 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateEndpointConnectionProperties.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateEndpointConnectionProperties.java
@@ -21,8 +21,7 @@ public final class PrivateEndpointConnectionProperties {
private PrivateEndpoint privateEndpoint;
/*
- * A collection of information about the state of the connection between
- * service consumer and provider.
+ * A collection of information about the state of the connection between service consumer and provider.
*/
@JsonProperty(value = "privateLinkServiceConnectionState", required = true)
private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ResourceQuotaInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ResourceQuotaInner.java
index 055ba0985b78..f405a70f7ed7 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ResourceQuotaInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ResourceQuotaInner.java
@@ -37,7 +37,9 @@ public final class ResourceQuotaInner {
private ResourceName name;
/*
- * Limit. The maximum permitted quota of the resource.
+ * Limit.
+ *
+ * The maximum permitted quota of the resource.
*/
@JsonProperty(value = "limit", access = JsonProperty.Access.WRITE_ONLY)
private Long limit;
@@ -85,7 +87,9 @@ public ResourceName name() {
}
/**
- * Get the limit property: Limit. The maximum permitted quota of the resource.
+ * Get the limit property: Limit.
+ *
+ * The maximum permitted quota of the resource.
*
* @return the limit value.
*/
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ScheduleInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ScheduleInner.java
new file mode 100644
index 000000000000..6040f6705d83
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ScheduleInner.java
@@ -0,0 +1,74 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.machinelearning.models.ScheduleProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Azure Resource Manager resource envelope. */
+@Fluent
+public final class ScheduleInner extends ProxyResource {
+ /*
+ * [Required] Additional attributes of the entity.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private ScheduleProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the properties property: [Required] Additional attributes of the entity.
+ *
+ * @return the properties value.
+ */
+ public ScheduleProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: [Required] Additional attributes of the entity.
+ *
+ * @param properties the properties value to set.
+ * @return the ScheduleInner object itself.
+ */
+ public ScheduleInner withProperties(ScheduleProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property properties in model ScheduleInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ScheduleInner.class);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/SharedPrivateLinkResourceProperty.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/SharedPrivateLinkResourceProperty.java
index 138ce3737489..be5f199dd972 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/SharedPrivateLinkResourceProperty.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/SharedPrivateLinkResourceProperty.java
@@ -30,8 +30,7 @@ public final class SharedPrivateLinkResourceProperty {
private String requestMessage;
/*
- * Indicates whether the connection has been Approved/Rejected/Removed by
- * the owner of the service.
+ * Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
*/
@JsonProperty(value = "status")
private PrivateEndpointServiceConnectionStatus status;
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/UpdateWorkspaceQuotasResultInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/UpdateWorkspaceQuotasResultInner.java
index a23663828128..2cf11bde7d7b 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/UpdateWorkspaceQuotasResultInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/UpdateWorkspaceQuotasResultInner.java
@@ -19,9 +19,8 @@ public final class UpdateWorkspaceQuotasResultInner {
private List value;
/*
- * The URI to fetch the next page of workspace quota update result. Call
- * ListNext() with this to fetch the next page of Workspace Quota update
- * result.
+ * The URI to fetch the next page of workspace quota update result. Call ListNext() with this to fetch the next
+ * page of Workspace Quota update result.
*/
@JsonProperty(value = "nextLink", access = JsonProperty.Access.WRITE_ONLY)
private String nextLink;
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspaceConnectionInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspaceConnectionInner.java
deleted file mode 100644
index 29a2eba2110c..000000000000
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspaceConnectionInner.java
+++ /dev/null
@@ -1,172 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
-
-package com.azure.resourcemanager.machinelearning.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.ProxyResource;
-import com.azure.core.management.SystemData;
-import com.azure.resourcemanager.machinelearning.models.ValueFormat;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
-/** Workspace connection. */
-@Fluent
-public final class WorkspaceConnectionInner extends ProxyResource {
- /*
- * Properties of workspace connection.
- */
- @JsonProperty(value = "properties")
- private WorkspaceConnectionProps innerProperties;
-
- /*
- * Azure Resource Manager metadata containing createdBy and modifiedBy
- * information.
- */
- @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
- private SystemData systemData;
-
- /**
- * Get the innerProperties property: Properties of workspace connection.
- *
- * @return the innerProperties value.
- */
- private WorkspaceConnectionProps innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
- * @return the systemData value.
- */
- public SystemData systemData() {
- return this.systemData;
- }
-
- /**
- * Get the category property: Category of the workspace connection.
- *
- * @return the category value.
- */
- public String category() {
- return this.innerProperties() == null ? null : this.innerProperties().category();
- }
-
- /**
- * Set the category property: Category of the workspace connection.
- *
- * @param category the category value to set.
- * @return the WorkspaceConnectionInner object itself.
- */
- public WorkspaceConnectionInner withCategory(String category) {
- if (this.innerProperties() == null) {
- this.innerProperties = new WorkspaceConnectionProps();
- }
- this.innerProperties().withCategory(category);
- return this;
- }
-
- /**
- * Get the target property: Target of the workspace connection.
- *
- * @return the target value.
- */
- public String target() {
- return this.innerProperties() == null ? null : this.innerProperties().target();
- }
-
- /**
- * Set the target property: Target of the workspace connection.
- *
- * @param target the target value to set.
- * @return the WorkspaceConnectionInner object itself.
- */
- public WorkspaceConnectionInner withTarget(String target) {
- if (this.innerProperties() == null) {
- this.innerProperties = new WorkspaceConnectionProps();
- }
- this.innerProperties().withTarget(target);
- return this;
- }
-
- /**
- * Get the authType property: Authorization type of the workspace connection.
- *
- * @return the authType value.
- */
- public String authType() {
- return this.innerProperties() == null ? null : this.innerProperties().authType();
- }
-
- /**
- * Set the authType property: Authorization type of the workspace connection.
- *
- * @param authType the authType value to set.
- * @return the WorkspaceConnectionInner object itself.
- */
- public WorkspaceConnectionInner withAuthType(String authType) {
- if (this.innerProperties() == null) {
- this.innerProperties = new WorkspaceConnectionProps();
- }
- this.innerProperties().withAuthType(authType);
- return this;
- }
-
- /**
- * Get the value property: Value details of the workspace connection.
- *
- * @return the value value.
- */
- public String value() {
- return this.innerProperties() == null ? null : this.innerProperties().value();
- }
-
- /**
- * Set the value property: Value details of the workspace connection.
- *
- * @param value the value value to set.
- * @return the WorkspaceConnectionInner object itself.
- */
- public WorkspaceConnectionInner withValue(String value) {
- if (this.innerProperties() == null) {
- this.innerProperties = new WorkspaceConnectionProps();
- }
- this.innerProperties().withValue(value);
- return this;
- }
-
- /**
- * Get the valueFormat property: format for the workspace connection value.
- *
- * @return the valueFormat value.
- */
- public ValueFormat valueFormat() {
- return this.innerProperties() == null ? null : this.innerProperties().valueFormat();
- }
-
- /**
- * Set the valueFormat property: format for the workspace connection value.
- *
- * @param valueFormat the valueFormat value to set.
- * @return the WorkspaceConnectionInner object itself.
- */
- public WorkspaceConnectionInner withValueFormat(ValueFormat valueFormat) {
- if (this.innerProperties() == null) {
- this.innerProperties = new WorkspaceConnectionProps();
- }
- this.innerProperties().withValueFormat(valueFormat);
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
- }
-}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspaceConnectionPropertiesV2BasicResourceInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspaceConnectionPropertiesV2BasicResourceInner.java
new file mode 100644
index 000000000000..c095b2dacda5
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspaceConnectionPropertiesV2BasicResourceInner.java
@@ -0,0 +1,78 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.machinelearning.models.WorkspaceConnectionPropertiesV2;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The WorkspaceConnectionPropertiesV2BasicResource model. */
+@Fluent
+public final class WorkspaceConnectionPropertiesV2BasicResourceInner extends ProxyResource {
+ /*
+ * The properties property.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private WorkspaceConnectionPropertiesV2 properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the properties property: The properties property.
+ *
+ * @return the properties value.
+ */
+ public WorkspaceConnectionPropertiesV2 properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The properties property.
+ *
+ * @param properties the properties value to set.
+ * @return the WorkspaceConnectionPropertiesV2BasicResourceInner object itself.
+ */
+ public WorkspaceConnectionPropertiesV2BasicResourceInner withProperties(
+ WorkspaceConnectionPropertiesV2 properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property properties in model"
+ + " WorkspaceConnectionPropertiesV2BasicResourceInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER =
+ new ClientLogger(WorkspaceConnectionPropertiesV2BasicResourceInner.class);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspaceInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspaceInner.java
index dccf0f29f1b6..c2b1e38913d9 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspaceInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspaceInner.java
@@ -54,8 +54,7 @@ public final class WorkspaceInner extends ProxyResource {
private Sku sku;
/*
- * Azure Resource Manager metadata containing createdBy and modifiedBy
- * information.
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
@@ -601,6 +600,31 @@ public String mlFlowTrackingUri() {
return this.innerProperties() == null ? null : this.innerProperties().mlFlowTrackingUri();
}
+ /**
+ * Get the v1LegacyMode property: Enabling v1_legacy_mode may prevent you from using features provided by the v2
+ * API.
+ *
+ * @return the v1LegacyMode value.
+ */
+ public Boolean v1LegacyMode() {
+ return this.innerProperties() == null ? null : this.innerProperties().v1LegacyMode();
+ }
+
+ /**
+ * Set the v1LegacyMode property: Enabling v1_legacy_mode may prevent you from using features provided by the v2
+ * API.
+ *
+ * @param v1LegacyMode the v1LegacyMode value to set.
+ * @return the WorkspaceInner object itself.
+ */
+ public WorkspaceInner withV1LegacyMode(Boolean v1LegacyMode) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesInner();
+ }
+ this.innerProperties().withV1LegacyMode(v1LegacyMode);
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspacePropertiesInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspacePropertiesInner.java
index afc399e84a5b..0079b0338a3c 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspacePropertiesInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspacePropertiesInner.java
@@ -35,8 +35,8 @@ public final class WorkspacePropertiesInner {
private String friendlyName;
/*
- * ARM id of the key vault associated with this workspace. This cannot be
- * changed once the workspace has been created
+ * ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been
+ * created
*/
@JsonProperty(value = "keyVault")
private String keyVault;
@@ -54,22 +54,21 @@ public final class WorkspacePropertiesInner {
private String containerRegistry;
/*
- * ARM id of the storage account associated with this workspace. This
- * cannot be changed once the workspace has been created
+ * ARM id of the storage account associated with this workspace. This cannot be changed once the workspace has been
+ * created
*/
@JsonProperty(value = "storageAccount")
private String storageAccount;
/*
- * Url for the discovery service to identify regional endpoints for machine
- * learning experimentation services
+ * Url for the discovery service to identify regional endpoints for machine learning experimentation services
*/
@JsonProperty(value = "discoveryUrl")
private String discoveryUrl;
/*
- * The current deployment state of workspace resource. The
- * provisioningState is to indicate states for resource provisioning.
+ * The current deployment state of workspace resource. The provisioningState is to indicate states for resource
+ * provisioning.
*/
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;
@@ -81,15 +80,14 @@ public final class WorkspacePropertiesInner {
private EncryptionProperty encryption;
/*
- * The flag to signal HBI data in the workspace and reduce diagnostic data
- * collected by the service
+ * The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service
*/
@JsonProperty(value = "hbiWorkspace")
private Boolean hbiWorkspace;
/*
- * The name of the managed resource group created by workspace RP in
- * customer subscription if the workspace is CMK workspace
+ * The name of the managed resource group created by workspace RP in customer subscription if the workspace is CMK
+ * workspace
*/
@JsonProperty(value = "serviceProvisionedResourceGroup", access = JsonProperty.Access.WRITE_ONLY)
private String serviceProvisionedResourceGroup;
@@ -143,8 +141,7 @@ public final class WorkspacePropertiesInner {
private ServiceManagedResourcesSettings serviceManagedResourcesSettings;
/*
- * The user assigned identity resource id that represents the workspace
- * identity.
+ * The user assigned identity resource id that represents the workspace identity.
*/
@JsonProperty(value = "primaryUserAssignedIdentity")
private String primaryUserAssignedIdentity;
@@ -156,19 +153,23 @@ public final class WorkspacePropertiesInner {
private String tenantId;
/*
- * If the storage associated with the workspace has hierarchical
- * namespace(HNS) enabled.
+ * If the storage associated with the workspace has hierarchical namespace(HNS) enabled.
*/
@JsonProperty(value = "storageHnsEnabled", access = JsonProperty.Access.WRITE_ONLY)
private Boolean storageHnsEnabled;
/*
- * The URI associated with this workspace that machine learning flow must
- * point at to set up tracking.
+ * The URI associated with this workspace that machine learning flow must point at to set up tracking.
*/
@JsonProperty(value = "mlFlowTrackingUri", access = JsonProperty.Access.WRITE_ONLY)
private String mlFlowTrackingUri;
+ /*
+ * Enabling v1_legacy_mode may prevent you from using features provided by the v2 API.
+ */
+ @JsonProperty(value = "v1LegacyMode")
+ private Boolean v1LegacyMode;
+
/**
* Get the workspaceId property: The immutable id associated with this workspace.
*
@@ -568,6 +569,28 @@ public String mlFlowTrackingUri() {
return this.mlFlowTrackingUri;
}
+ /**
+ * Get the v1LegacyMode property: Enabling v1_legacy_mode may prevent you from using features provided by the v2
+ * API.
+ *
+ * @return the v1LegacyMode value.
+ */
+ public Boolean v1LegacyMode() {
+ return this.v1LegacyMode;
+ }
+
+ /**
+ * Set the v1LegacyMode property: Enabling v1_legacy_mode may prevent you from using features provided by the v2
+ * API.
+ *
+ * @param v1LegacyMode the v1LegacyMode value to set.
+ * @return the WorkspacePropertiesInner object itself.
+ */
+ public WorkspacePropertiesInner withV1LegacyMode(Boolean v1LegacyMode) {
+ this.v1LegacyMode = v1LegacyMode;
+ return this;
+ }
+
/**
* Validates the instance.
*
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspacePropertiesUpdateParameters.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspacePropertiesUpdateParameters.java
index 21988b519d02..7bc59beb9bba 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspacePropertiesUpdateParameters.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/WorkspacePropertiesUpdateParameters.java
@@ -37,8 +37,7 @@ public final class WorkspacePropertiesUpdateParameters {
private ServiceManagedResourcesSettings serviceManagedResourcesSettings;
/*
- * The user assigned identity resource id that represents the workspace
- * identity.
+ * The user assigned identity resource id that represents the workspace identity.
*/
@JsonProperty(value = "primaryUserAssignedIdentity")
private String primaryUserAssignedIdentity;
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesBuilder.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesBuilder.java
index f0af624f53ae..018c1d288b6a 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesBuilder.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesBuilder.java
@@ -119,24 +119,26 @@ public AzureMachineLearningWorkspacesBuilder serializerAdapter(SerializerAdapter
* @return an instance of AzureMachineLearningWorkspacesImpl.
*/
public AzureMachineLearningWorkspacesImpl buildClient() {
- if (endpoint == null) {
- this.endpoint = "https://management.azure.com";
- }
- if (environment == null) {
- this.environment = AzureEnvironment.AZURE;
- }
- if (pipeline == null) {
- this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
- }
- if (defaultPollInterval == null) {
- this.defaultPollInterval = Duration.ofSeconds(30);
- }
- if (serializerAdapter == null) {
- this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
- }
+ String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
+ AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
+ HttpPipeline localPipeline =
+ (pipeline != null)
+ ? pipeline
+ : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ Duration localDefaultPollInterval =
+ (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
+ SerializerAdapter localSerializerAdapter =
+ (serializerAdapter != null)
+ ? serializerAdapter
+ : SerializerFactory.createDefaultManagementSerializerAdapter();
AzureMachineLearningWorkspacesImpl client =
new AzureMachineLearningWorkspacesImpl(
- pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ localPipeline,
+ localSerializerAdapter,
+ localDefaultPollInterval,
+ localEnvironment,
+ subscriptionId,
+ localEndpoint);
return client;
}
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesImpl.java
index e40efd2bb575..242efe7553fd 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesImpl.java
@@ -44,6 +44,7 @@
import com.azure.resourcemanager.machinelearning.fluent.PrivateEndpointConnectionsClient;
import com.azure.resourcemanager.machinelearning.fluent.PrivateLinkResourcesClient;
import com.azure.resourcemanager.machinelearning.fluent.QuotasClient;
+import com.azure.resourcemanager.machinelearning.fluent.SchedulesClient;
import com.azure.resourcemanager.machinelearning.fluent.UsagesClient;
import com.azure.resourcemanager.machinelearning.fluent.VirtualMachineSizesClient;
import com.azure.resourcemanager.machinelearning.fluent.WorkspaceConnectionsClient;
@@ -433,6 +434,18 @@ public OnlineDeploymentsClient getOnlineDeployments() {
return this.onlineDeployments;
}
+ /** The SchedulesClient object to access its operations. */
+ private final SchedulesClient schedules;
+
+ /**
+ * Gets the SchedulesClient object to access its operations.
+ *
+ * @return the SchedulesClient object.
+ */
+ public SchedulesClient getSchedules() {
+ return this.schedules;
+ }
+
/** The WorkspaceFeaturesClient object to access its operations. */
private final WorkspaceFeaturesClient workspaceFeatures;
@@ -467,7 +480,7 @@ public WorkspaceFeaturesClient getWorkspaceFeatures() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2022-02-01-preview";
+ this.apiVersion = "2022-10-01";
this.operations = new OperationsClientImpl(this);
this.workspaces = new WorkspacesClientImpl(this);
this.usages = new UsagesClientImpl(this);
@@ -493,6 +506,7 @@ public WorkspaceFeaturesClient getWorkspaceFeatures() {
this.modelVersions = new ModelVersionsClientImpl(this);
this.onlineEndpoints = new OnlineEndpointsClientImpl(this);
this.onlineDeployments = new OnlineDeploymentsClientImpl(this);
+ this.schedules = new SchedulesClientImpl(this);
this.workspaceFeatures = new WorkspaceFeaturesClientImpl(this);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchDeploymentDataImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchDeploymentImpl.java
similarity index 71%
rename from sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchDeploymentDataImpl.java
rename to sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchDeploymentImpl.java
index fe5494f08928..379a98ca04ce 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchDeploymentDataImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchDeploymentImpl.java
@@ -7,21 +7,18 @@
import com.azure.core.management.Region;
import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.machinelearning.fluent.models.BatchDeploymentDataInner;
-import com.azure.resourcemanager.machinelearning.models.BatchDeploymentData;
-import com.azure.resourcemanager.machinelearning.models.BatchDeploymentDetails;
+import com.azure.resourcemanager.machinelearning.fluent.models.BatchDeploymentInner;
+import com.azure.resourcemanager.machinelearning.models.BatchDeployment;
+import com.azure.resourcemanager.machinelearning.models.BatchDeploymentProperties;
import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
import com.azure.resourcemanager.machinelearning.models.PartialBatchDeployment;
-import com.azure.resourcemanager.machinelearning.models.PartialBatchDeploymentPartialTrackedResource;
-import com.azure.resourcemanager.machinelearning.models.PartialManagedServiceIdentity;
-import com.azure.resourcemanager.machinelearning.models.PartialSku;
+import com.azure.resourcemanager.machinelearning.models.PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties;
import com.azure.resourcemanager.machinelearning.models.Sku;
import java.util.Collections;
import java.util.Map;
-public final class BatchDeploymentDataImpl
- implements BatchDeploymentData, BatchDeploymentData.Definition, BatchDeploymentData.Update {
- private BatchDeploymentDataInner innerObject;
+public final class BatchDeploymentImpl implements BatchDeployment, BatchDeployment.Definition, BatchDeployment.Update {
+ private BatchDeploymentInner innerObject;
private final com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager;
@@ -58,7 +55,7 @@ public String kind() {
return this.innerModel().kind();
}
- public BatchDeploymentDetails properties() {
+ public BatchDeploymentProperties properties() {
return this.innerModel().properties();
}
@@ -82,7 +79,7 @@ public String resourceGroupName() {
return resourceGroupName;
}
- public BatchDeploymentDataInner innerModel() {
+ public BatchDeploymentInner innerModel() {
return this.innerObject;
}
@@ -98,9 +95,9 @@ private com.azure.resourcemanager.machinelearning.MachineLearningManager manager
private String deploymentName;
- private PartialBatchDeploymentPartialTrackedResource updateBody;
+ private PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties updateBody;
- public BatchDeploymentDataImpl withExistingBatchEndpoint(
+ public BatchDeploymentImpl withExistingBatchEndpoint(
String resourceGroupName, String workspaceName, String endpointName) {
this.resourceGroupName = resourceGroupName;
this.workspaceName = workspaceName;
@@ -108,7 +105,7 @@ public BatchDeploymentDataImpl withExistingBatchEndpoint(
return this;
}
- public BatchDeploymentData create() {
+ public BatchDeployment create() {
this.innerObject =
serviceManager
.serviceClient()
@@ -118,7 +115,7 @@ public BatchDeploymentData create() {
return this;
}
- public BatchDeploymentData create(Context context) {
+ public BatchDeployment create(Context context) {
this.innerObject =
serviceManager
.serviceClient()
@@ -128,19 +125,18 @@ public BatchDeploymentData create(Context context) {
return this;
}
- BatchDeploymentDataImpl(
- String name, com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager) {
- this.innerObject = new BatchDeploymentDataInner();
+ BatchDeploymentImpl(String name, com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager) {
+ this.innerObject = new BatchDeploymentInner();
this.serviceManager = serviceManager;
this.deploymentName = name;
}
- public BatchDeploymentDataImpl update() {
- this.updateBody = new PartialBatchDeploymentPartialTrackedResource();
+ public BatchDeploymentImpl update() {
+ this.updateBody = new PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties();
return this;
}
- public BatchDeploymentData apply() {
+ public BatchDeployment apply() {
this.innerObject =
serviceManager
.serviceClient()
@@ -149,7 +145,7 @@ public BatchDeploymentData apply() {
return this;
}
- public BatchDeploymentData apply(Context context) {
+ public BatchDeployment apply(Context context) {
this.innerObject =
serviceManager
.serviceClient()
@@ -158,8 +154,8 @@ public BatchDeploymentData apply(Context context) {
return this;
}
- BatchDeploymentDataImpl(
- BatchDeploymentDataInner innerObject,
+ BatchDeploymentImpl(
+ BatchDeploymentInner innerObject,
com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
@@ -169,7 +165,7 @@ public BatchDeploymentData apply(Context context) {
this.deploymentName = Utils.getValueFromIdByName(innerObject.id(), "deployments");
}
- public BatchDeploymentData refresh() {
+ public BatchDeployment refresh() {
this.innerObject =
serviceManager
.serviceClient()
@@ -179,7 +175,7 @@ public BatchDeploymentData refresh() {
return this;
}
- public BatchDeploymentData refresh(Context context) {
+ public BatchDeployment refresh(Context context) {
this.innerObject =
serviceManager
.serviceClient()
@@ -189,22 +185,22 @@ public BatchDeploymentData refresh(Context context) {
return this;
}
- public BatchDeploymentDataImpl withRegion(Region location) {
+ public BatchDeploymentImpl withRegion(Region location) {
this.innerModel().withLocation(location.toString());
return this;
}
- public BatchDeploymentDataImpl withRegion(String location) {
+ public BatchDeploymentImpl withRegion(String location) {
this.innerModel().withLocation(location);
return this;
}
- public BatchDeploymentDataImpl withProperties(BatchDeploymentDetails properties) {
+ public BatchDeploymentImpl withProperties(BatchDeploymentProperties properties) {
this.innerModel().withProperties(properties);
return this;
}
- public BatchDeploymentDataImpl withTags(Map tags) {
+ public BatchDeploymentImpl withTags(Map tags) {
if (isInCreateMode()) {
this.innerModel().withTags(tags);
return this;
@@ -214,41 +210,26 @@ public BatchDeploymentDataImpl withTags(Map tags) {
}
}
- public BatchDeploymentDataImpl withIdentity(ManagedServiceIdentity identity) {
+ public BatchDeploymentImpl withIdentity(ManagedServiceIdentity identity) {
this.innerModel().withIdentity(identity);
return this;
}
- public BatchDeploymentDataImpl withKind(String kind) {
- if (isInCreateMode()) {
- this.innerModel().withKind(kind);
- return this;
- } else {
- this.updateBody.withKind(kind);
- return this;
- }
- }
-
- public BatchDeploymentDataImpl withSku(Sku sku) {
- this.innerModel().withSku(sku);
+ public BatchDeploymentImpl withKind(String kind) {
+ this.innerModel().withKind(kind);
return this;
}
- public BatchDeploymentDataImpl withIdentity(PartialManagedServiceIdentity identity) {
- this.updateBody.withIdentity(identity);
+ public BatchDeploymentImpl withSku(Sku sku) {
+ this.innerModel().withSku(sku);
return this;
}
- public BatchDeploymentDataImpl withProperties(PartialBatchDeployment properties) {
+ public BatchDeploymentImpl withProperties(PartialBatchDeployment properties) {
this.updateBody.withProperties(properties);
return this;
}
- public BatchDeploymentDataImpl withSku(PartialSku sku) {
- this.updateBody.withSku(sku);
- return this;
- }
-
private boolean isInCreateMode() {
return this.innerModel().id() == null;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchDeploymentsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchDeploymentsClientImpl.java
index 6986819a12fe..6e318f76a07d 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchDeploymentsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchDeploymentsClientImpl.java
@@ -33,9 +33,9 @@
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.machinelearning.fluent.BatchDeploymentsClient;
-import com.azure.resourcemanager.machinelearning.fluent.models.BatchDeploymentDataInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.BatchDeploymentInner;
import com.azure.resourcemanager.machinelearning.models.BatchDeploymentTrackedResourceArmPaginatedResult;
-import com.azure.resourcemanager.machinelearning.models.PartialBatchDeploymentPartialTrackedResource;
+import com.azure.resourcemanager.machinelearning.models.PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -111,7 +111,7 @@ Mono