Skip to content

Commit

Permalink
CodeGen from PR 31270 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 16951a87533aae994467daef74516815944fcbd1 into 12492edbcf4c2d43d153da544ffbf1ffe7cbd20b
  • Loading branch information
SDKAuto committed Dec 23, 2024
1 parent 005a5da commit 5752228
Show file tree
Hide file tree
Showing 291 changed files with 2,548 additions and 6,243 deletions.
833 changes: 829 additions & 4 deletions sdk/networkcloud/azure-resourcemanager-networkcloud/CHANGELOG.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions sdk/networkcloud/azure-resourcemanager-networkcloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager NetworkCloud client library for Java.

This package contains Microsoft Azure SDK for NetworkCloud Management SDK. The Network Cloud APIs provide management of the Azure Operator Nexus compute resources such as on-premises clusters, hardware resources, and workload infrastructure resources. Package tag package-2024-06-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
This package contains Microsoft Azure SDK for NetworkCloud Management SDK. The Network Cloud APIs provide management of the Azure Operator Nexus compute resources such as on-premises clusters, hardware resources, and workload infrastructure resources. Package tag package-2024-10-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## We'd love to hear your feedback

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-networkcloud</artifactId>
<version>1.1.0-beta.1</version>
<version>1.1.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
440 changes: 258 additions & 182 deletions sdk/networkcloud/azure-resourcemanager-networkcloud/SAMPLE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for NetworkCloud Management</name>
<description>This package contains Microsoft Azure SDK for NetworkCloud Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Network Cloud APIs provide management of the Azure Operator Nexus compute resources such as on-premises clusters, hardware resources, and workload infrastructure resources. Package tag package-2024-06-01-preview.</description>
<description>This package contains Microsoft Azure SDK for NetworkCloud Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Network Cloud APIs provide management of the Azure Operator Nexus compute resources such as on-premises clusters, hardware resources, and workload infrastructure resources. Package tag package-2024-10-01-preview.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public NetworkCloudManager authenticate(TokenCredential credential, AzureProfile
.append("-")
.append("com.azure.resourcemanager.networkcloud")
.append("/")
.append("1.1.0-beta.1");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.networkcloud.models.AnalyticsOutputSettings;
import com.azure.resourcemanager.networkcloud.models.ClusterAvailableUpgradeVersion;
import com.azure.resourcemanager.networkcloud.models.ClusterCapacity;
import com.azure.resourcemanager.networkcloud.models.ClusterConnectionStatus;
Expand All @@ -26,8 +27,10 @@
import com.azure.resourcemanager.networkcloud.models.ManagedServiceIdentity;
import com.azure.resourcemanager.networkcloud.models.RackDefinition;
import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionConfiguration;
import com.azure.resourcemanager.networkcloud.models.SecretArchiveSettings;
import com.azure.resourcemanager.networkcloud.models.ServicePrincipalInformation;
import com.azure.resourcemanager.networkcloud.models.ValidationThreshold;
import com.azure.resourcemanager.networkcloud.models.VulnerabilityScanningSettings;
import java.io.IOException;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -210,8 +213,33 @@ public ClusterInner withAggregatorOrSingleRackDefinition(RackDefinition aggregat
}

/**
* Get the analyticsWorkspaceId property: The resource ID of the Log Analytics Workspace that will be used for
* storing relevant logs.
* Get the analyticsOutputSettings property: The settings for the log analytics workspace used for output of logs
* from this cluster.
*
* @return the analyticsOutputSettings value.
*/
public AnalyticsOutputSettings analyticsOutputSettings() {
return this.innerProperties() == null ? null : this.innerProperties().analyticsOutputSettings();
}

/**
* Set the analyticsOutputSettings property: The settings for the log analytics workspace used for output of logs
* from this cluster.
*
* @param analyticsOutputSettings the analyticsOutputSettings value to set.
* @return the ClusterInner object itself.
*/
public ClusterInner withAnalyticsOutputSettings(AnalyticsOutputSettings analyticsOutputSettings) {
if (this.innerProperties() == null) {
this.innerProperties = new ClusterProperties();
}
this.innerProperties().withAnalyticsOutputSettings(analyticsOutputSettings);
return this;
}

/**
* Get the analyticsWorkspaceId property: Field Deprecated. The resource ID of the Log Analytics Workspace that will
* be used for storing relevant logs.
*
* @return the analyticsWorkspaceId value.
*/
Expand All @@ -220,8 +248,8 @@ public String analyticsWorkspaceId() {
}

/**
* Set the analyticsWorkspaceId property: The resource ID of the Log Analytics Workspace that will be used for
* storing relevant logs.
* Set the analyticsWorkspaceId property: Field Deprecated. The resource ID of the Log Analytics Workspace that will
* be used for storing relevant logs.
*
* @param analyticsWorkspaceId the analyticsWorkspaceId value to set.
* @return the ClusterInner object itself.
Expand Down Expand Up @@ -610,6 +638,31 @@ public ClusterInner withSecretArchive(ClusterSecretArchive secretArchive) {
return this;
}

/**
* Get the secretArchiveSettings property: The settings for the secret archive used to hold credentials for the
* cluster.
*
* @return the secretArchiveSettings value.
*/
public SecretArchiveSettings secretArchiveSettings() {
return this.innerProperties() == null ? null : this.innerProperties().secretArchiveSettings();
}

/**
* Set the secretArchiveSettings property: The settings for the secret archive used to hold credentials for the
* cluster.
*
* @param secretArchiveSettings the secretArchiveSettings value to set.
* @return the ClusterInner object itself.
*/
public ClusterInner withSecretArchiveSettings(SecretArchiveSettings secretArchiveSettings) {
if (this.innerProperties() == null) {
this.innerProperties = new ClusterProperties();
}
this.innerProperties().withSecretArchiveSettings(secretArchiveSettings);
return this;
}

/**
* Get the supportExpiryDate property: The support end date of the runtime version of the cluster.
*
Expand Down Expand Up @@ -642,6 +695,31 @@ public ClusterInner withUpdateStrategy(ClusterUpdateStrategy updateStrategy) {
return this;
}

/**
* Get the vulnerabilityScanningSettings property: The settings for how security vulnerability scanning is applied
* to the cluster.
*
* @return the vulnerabilityScanningSettings value.
*/
public VulnerabilityScanningSettings vulnerabilityScanningSettings() {
return this.innerProperties() == null ? null : this.innerProperties().vulnerabilityScanningSettings();
}

/**
* Set the vulnerabilityScanningSettings property: The settings for how security vulnerability scanning is applied
* to the cluster.
*
* @param vulnerabilityScanningSettings the vulnerabilityScanningSettings value to set.
* @return the ClusterInner object itself.
*/
public ClusterInner withVulnerabilityScanningSettings(VulnerabilityScanningSettings vulnerabilityScanningSettings) {
if (this.innerProperties() == null) {
this.innerProperties = new ClusterProperties();
}
this.innerProperties().withVulnerabilityScanningSettings(vulnerabilityScanningSettings);
return this;
}

/**
* Get the workloadResourceIds property: The list of workload resource IDs that are hosted within this cluster.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.networkcloud.models.AnalyticsOutputSettings;
import com.azure.resourcemanager.networkcloud.models.ClusterSecretArchive;
import com.azure.resourcemanager.networkcloud.models.ClusterUpdateStrategy;
import com.azure.resourcemanager.networkcloud.models.CommandOutputSettings;
import com.azure.resourcemanager.networkcloud.models.RackDefinition;
import com.azure.resourcemanager.networkcloud.models.RuntimeProtectionConfiguration;
import com.azure.resourcemanager.networkcloud.models.SecretArchiveSettings;
import com.azure.resourcemanager.networkcloud.models.ServicePrincipalInformation;
import com.azure.resourcemanager.networkcloud.models.ValidationThreshold;
import com.azure.resourcemanager.networkcloud.models.VulnerabilityScanningSettingsPatch;
import java.io.IOException;
import java.util.List;

Expand All @@ -30,6 +33,11 @@ public final class ClusterPatchProperties implements JsonSerializable<ClusterPat
*/
private RackDefinition aggregatorOrSingleRackDefinition;

/*
* The settings for the log analytics workspace used for output of logs from this cluster.
*/
private AnalyticsOutputSettings analyticsOutputSettings;

/*
* The customer-provided location information to identify where the cluster resides.
*/
Expand Down Expand Up @@ -68,11 +76,21 @@ public final class ClusterPatchProperties implements JsonSerializable<ClusterPat
*/
private ClusterSecretArchive secretArchive;

/*
* The settings for the secret archive used to hold credentials for the cluster.
*/
private SecretArchiveSettings secretArchiveSettings;

/*
* The strategy for updating the cluster.
*/
private ClusterUpdateStrategy updateStrategy;

/*
* The settings for how security vulnerability scanning is applied to the cluster.
*/
private VulnerabilityScanningSettingsPatch vulnerabilityScanningSettings;

/**
* Creates an instance of ClusterPatchProperties class.
*/
Expand Down Expand Up @@ -102,6 +120,28 @@ public RackDefinition aggregatorOrSingleRackDefinition() {
return this;
}

/**
* Get the analyticsOutputSettings property: The settings for the log analytics workspace used for output of logs
* from this cluster.
*
* @return the analyticsOutputSettings value.
*/
public AnalyticsOutputSettings analyticsOutputSettings() {
return this.analyticsOutputSettings;
}

/**
* Set the analyticsOutputSettings property: The settings for the log analytics workspace used for output of logs
* from this cluster.
*
* @param analyticsOutputSettings the analyticsOutputSettings value to set.
* @return the ClusterPatchProperties object itself.
*/
public ClusterPatchProperties withAnalyticsOutputSettings(AnalyticsOutputSettings analyticsOutputSettings) {
this.analyticsOutputSettings = analyticsOutputSettings;
return this;
}

/**
* Get the clusterLocation property: The customer-provided location information to identify where the cluster
* resides.
Expand Down Expand Up @@ -255,6 +295,28 @@ public ClusterPatchProperties withSecretArchive(ClusterSecretArchive secretArchi
return this;
}

/**
* Get the secretArchiveSettings property: The settings for the secret archive used to hold credentials for the
* cluster.
*
* @return the secretArchiveSettings value.
*/
public SecretArchiveSettings secretArchiveSettings() {
return this.secretArchiveSettings;
}

/**
* Set the secretArchiveSettings property: The settings for the secret archive used to hold credentials for the
* cluster.
*
* @param secretArchiveSettings the secretArchiveSettings value to set.
* @return the ClusterPatchProperties object itself.
*/
public ClusterPatchProperties withSecretArchiveSettings(SecretArchiveSettings secretArchiveSettings) {
this.secretArchiveSettings = secretArchiveSettings;
return this;
}

/**
* Get the updateStrategy property: The strategy for updating the cluster.
*
Expand All @@ -275,6 +337,29 @@ public ClusterPatchProperties withUpdateStrategy(ClusterUpdateStrategy updateStr
return this;
}

/**
* Get the vulnerabilityScanningSettings property: The settings for how security vulnerability scanning is applied
* to the cluster.
*
* @return the vulnerabilityScanningSettings value.
*/
public VulnerabilityScanningSettingsPatch vulnerabilityScanningSettings() {
return this.vulnerabilityScanningSettings;
}

/**
* Set the vulnerabilityScanningSettings property: The settings for how security vulnerability scanning is applied
* to the cluster.
*
* @param vulnerabilityScanningSettings the vulnerabilityScanningSettings value to set.
* @return the ClusterPatchProperties object itself.
*/
public ClusterPatchProperties
withVulnerabilityScanningSettings(VulnerabilityScanningSettingsPatch vulnerabilityScanningSettings) {
this.vulnerabilityScanningSettings = vulnerabilityScanningSettings;
return this;
}

/**
* Validates the instance.
*
Expand All @@ -284,6 +369,9 @@ public void validate() {
if (aggregatorOrSingleRackDefinition() != null) {
aggregatorOrSingleRackDefinition().validate();
}
if (analyticsOutputSettings() != null) {
analyticsOutputSettings().validate();
}
if (clusterServicePrincipal() != null) {
clusterServicePrincipal().validate();
}
Expand All @@ -302,9 +390,15 @@ public void validate() {
if (secretArchive() != null) {
secretArchive().validate();
}
if (secretArchiveSettings() != null) {
secretArchiveSettings().validate();
}
if (updateStrategy() != null) {
updateStrategy().validate();
}
if (vulnerabilityScanningSettings() != null) {
vulnerabilityScanningSettings().validate();
}
}

/**
Expand All @@ -314,6 +408,7 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("aggregatorOrSingleRackDefinition", this.aggregatorOrSingleRackDefinition);
jsonWriter.writeJsonField("analyticsOutputSettings", this.analyticsOutputSettings);
jsonWriter.writeStringField("clusterLocation", this.clusterLocation);
jsonWriter.writeJsonField("clusterServicePrincipal", this.clusterServicePrincipal);
jsonWriter.writeJsonField("commandOutputSettings", this.commandOutputSettings);
Expand All @@ -322,7 +417,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
(writer, element) -> writer.writeJson(element));
jsonWriter.writeJsonField("runtimeProtectionConfiguration", this.runtimeProtectionConfiguration);
jsonWriter.writeJsonField("secretArchive", this.secretArchive);
jsonWriter.writeJsonField("secretArchiveSettings", this.secretArchiveSettings);
jsonWriter.writeJsonField("updateStrategy", this.updateStrategy);
jsonWriter.writeJsonField("vulnerabilityScanningSettings", this.vulnerabilityScanningSettings);
return jsonWriter.writeEndObject();
}

Expand All @@ -344,6 +441,9 @@ public static ClusterPatchProperties fromJson(JsonReader jsonReader) throws IOEx
if ("aggregatorOrSingleRackDefinition".equals(fieldName)) {
deserializedClusterPatchProperties.aggregatorOrSingleRackDefinition
= RackDefinition.fromJson(reader);
} else if ("analyticsOutputSettings".equals(fieldName)) {
deserializedClusterPatchProperties.analyticsOutputSettings
= AnalyticsOutputSettings.fromJson(reader);
} else if ("clusterLocation".equals(fieldName)) {
deserializedClusterPatchProperties.clusterLocation = reader.getString();
} else if ("clusterServicePrincipal".equals(fieldName)) {
Expand All @@ -363,8 +463,13 @@ public static ClusterPatchProperties fromJson(JsonReader jsonReader) throws IOEx
= RuntimeProtectionConfiguration.fromJson(reader);
} else if ("secretArchive".equals(fieldName)) {
deserializedClusterPatchProperties.secretArchive = ClusterSecretArchive.fromJson(reader);
} else if ("secretArchiveSettings".equals(fieldName)) {
deserializedClusterPatchProperties.secretArchiveSettings = SecretArchiveSettings.fromJson(reader);
} else if ("updateStrategy".equals(fieldName)) {
deserializedClusterPatchProperties.updateStrategy = ClusterUpdateStrategy.fromJson(reader);
} else if ("vulnerabilityScanningSettings".equals(fieldName)) {
deserializedClusterPatchProperties.vulnerabilityScanningSettings
= VulnerabilityScanningSettingsPatch.fromJson(reader);
} else {
reader.skipChildren();
}
Expand Down
Loading

0 comments on commit 5752228

Please sign in to comment.