Skip to content
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
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.5 (Unreleased)
## 1.0.0-beta.1 (2023-08-30)

- Azure Resource Manager SourceControlConfiguration client library for Java. This package contains Microsoft Azure SDK for SourceControlConfiguration Management SDK. KubernetesConfiguration Client. Package tag package-2023-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager SourceControlConfiguration client library for Java.

This package contains Microsoft Azure SDK for SourceControlConfiguration Management SDK. KubernetesConfiguration Client. Package tag package-2022-11. 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 SourceControlConfiguration Management SDK. KubernetesConfiguration Client. Package tag package-2023-05. 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-kubernetesconfiguration</artifactId>
<version>1.0.0-beta.4</version>
<version>1.0.0-beta.5</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down Expand Up @@ -103,3 +103,5 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Fkubernetesconfiguration%2Fazure-resourcemanager-kubernetesconfiguration%2FREADME.png)

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 SourceControlConfiguration Management</name>
<description>This package contains Microsoft Azure SDK for SourceControlConfiguration Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. KubernetesConfiguration Client. Package tag package-2022-11.</description>
<description>This package contains Microsoft Azure SDK for SourceControlConfiguration Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. KubernetesConfiguration Client. Package tag package-2023-05.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand All @@ -45,6 +45,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
<revapi.skip>true</revapi.skip>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ public SourceControlConfigurationManager authenticate(TokenCredential credential
.append("-")
.append("com.azure.resourcemanager.kubernetesconfiguration")
.append("/")
.append("1.0.0-beta.4");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -357,8 +357,10 @@ public Operations operations() {
}

/**
* @return Wrapped service client SourceControlConfigurationClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
* Gets wrapped service client SourceControlConfigurationClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
*
* @return Wrapped service client SourceControlConfigurationClient.
*/
public SourceControlConfigurationClient serviceClient() {
return this.clientObject;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,56 @@ public OffsetDateTime statusUpdatedAt() {
return this.innerProperties() == null ? null : this.innerProperties().statusUpdatedAt();
}

/**
* Get the waitForReconciliation property: Whether flux configuration deployment should wait for cluster to
* reconcile the kustomizations.
*
* @return the waitForReconciliation value.
*/
public Boolean waitForReconciliation() {
return this.innerProperties() == null ? null : this.innerProperties().waitForReconciliation();
}

/**
* Set the waitForReconciliation property: Whether flux configuration deployment should wait for cluster to
* reconcile the kustomizations.
*
* @param waitForReconciliation the waitForReconciliation value to set.
* @return the FluxConfigurationInner object itself.
*/
public FluxConfigurationInner withWaitForReconciliation(Boolean waitForReconciliation) {
if (this.innerProperties() == null) {
this.innerProperties = new FluxConfigurationProperties();
}
this.innerProperties().withWaitForReconciliation(waitForReconciliation);
return this;
}

/**
* Get the reconciliationWaitDuration property: Maximum duration to wait for flux configuration reconciliation. E.g
* PT1H, PT5M, P1D.
*
* @return the reconciliationWaitDuration value.
*/
public String reconciliationWaitDuration() {
return this.innerProperties() == null ? null : this.innerProperties().reconciliationWaitDuration();
}

/**
* Set the reconciliationWaitDuration property: Maximum duration to wait for flux configuration reconciliation. E.g
* PT1H, PT5M, P1D.
*
* @param reconciliationWaitDuration the reconciliationWaitDuration value to set.
* @return the FluxConfigurationInner object itself.
*/
public FluxConfigurationInner withReconciliationWaitDuration(String reconciliationWaitDuration) {
if (this.innerProperties() == null) {
this.innerProperties = new FluxConfigurationProperties();
}
this.innerProperties().withReconciliationWaitDuration(reconciliationWaitDuration);
return this;
}

/**
* Get the complianceState property: Combined status of the Flux Kubernetes resources created by the
* fluxConfiguration or created by the managed objects.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,18 @@ public final class FluxConfigurationProperties {
@JsonProperty(value = "statusUpdatedAt", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime statusUpdatedAt;

/*
* Whether flux configuration deployment should wait for cluster to reconcile the kustomizations.
*/
@JsonProperty(value = "waitForReconciliation")
private Boolean waitForReconciliation;

/*
* Maximum duration to wait for flux configuration reconciliation. E.g PT1H, PT5M, P1D
*/
@JsonProperty(value = "reconciliationWaitDuration")
private String reconciliationWaitDuration;

/*
* Combined status of the Flux Kubernetes resources created by the fluxConfiguration or created by the managed
* objects.
Expand Down Expand Up @@ -370,6 +382,50 @@ public OffsetDateTime statusUpdatedAt() {
return this.statusUpdatedAt;
}

/**
* Get the waitForReconciliation property: Whether flux configuration deployment should wait for cluster to
* reconcile the kustomizations.
*
* @return the waitForReconciliation value.
*/
public Boolean waitForReconciliation() {
return this.waitForReconciliation;
}

/**
* Set the waitForReconciliation property: Whether flux configuration deployment should wait for cluster to
* reconcile the kustomizations.
*
* @param waitForReconciliation the waitForReconciliation value to set.
* @return the FluxConfigurationProperties object itself.
*/
public FluxConfigurationProperties withWaitForReconciliation(Boolean waitForReconciliation) {
this.waitForReconciliation = waitForReconciliation;
return this;
}

/**
* Get the reconciliationWaitDuration property: Maximum duration to wait for flux configuration reconciliation. E.g
* PT1H, PT5M, P1D.
*
* @return the reconciliationWaitDuration value.
*/
public String reconciliationWaitDuration() {
return this.reconciliationWaitDuration;
}

/**
* Set the reconciliationWaitDuration property: Maximum duration to wait for flux configuration reconciliation. E.g
* PT1H, PT5M, P1D.
*
* @param reconciliationWaitDuration the reconciliationWaitDuration value to set.
* @return the FluxConfigurationProperties object itself.
*/
public FluxConfigurationProperties withReconciliationWaitDuration(String reconciliationWaitDuration) {
this.reconciliationWaitDuration = reconciliationWaitDuration;
return this;
}

/**
* Get the complianceState property: Combined status of the Flux Kubernetes resources created by the
* fluxConfiguration or created by the managed objects.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,14 @@ public OffsetDateTime statusUpdatedAt() {
return this.innerModel().statusUpdatedAt();
}

public Boolean waitForReconciliation() {
return this.innerModel().waitForReconciliation();
}

public String reconciliationWaitDuration() {
return this.innerModel().reconciliationWaitDuration();
}

public FluxComplianceState complianceState() {
return this.innerModel().complianceState();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public SourceControlConfigurationClientImpl buildClient() {
localSerializerAdapter,
localDefaultPollInterval,
localEnvironment,
subscriptionId,
this.subscriptionId,
localEndpoint);
return client;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public OperationsClient getOperations() {
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
this.apiVersion = "2022-11-01";
this.apiVersion = "2023-05-01";
this.extensions = new ExtensionsClientImpl(this);
this.operationStatus = new OperationStatusClientImpl(this);
this.fluxConfigurations = new FluxConfigurationsClientImpl(this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,22 @@ public interface FluxConfiguration {
*/
OffsetDateTime statusUpdatedAt();

/**
* Gets the waitForReconciliation property: Whether flux configuration deployment should wait for cluster to
* reconcile the kustomizations.
*
* @return the waitForReconciliation value.
*/
Boolean waitForReconciliation();

/**
* Gets the reconciliationWaitDuration property: Maximum duration to wait for flux configuration reconciliation. E.g
* PT1H, PT5M, P1D.
*
* @return the reconciliationWaitDuration value.
*/
String reconciliationWaitDuration();

/**
* Gets the complianceState property: Combined status of the Flux Kubernetes resources created by the
* fluxConfiguration or created by the managed objects.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,18 @@ public final class KustomizationDefinition {
@JsonProperty(value = "force")
private Boolean force;

/*
* Enable/disable health check for all Kubernetes objects created by this Kustomization.
*/
@JsonProperty(value = "wait")
private Boolean wait;

/*
* Used for variable substitution for this Kustomization after kustomize build.
*/
@JsonProperty(value = "postBuild")
private PostBuildDefinition postBuild;

/** Creates an instance of KustomizationDefinition class. */
public KustomizationDefinition() {
}
Expand Down Expand Up @@ -221,11 +233,54 @@ public KustomizationDefinition withForce(Boolean force) {
return this;
}

/**
* Get the wait property: Enable/disable health check for all Kubernetes objects created by this Kustomization.
*
* @return the wait value.
*/
public Boolean wait() {
return this.wait;
}

/**
* Set the wait property: Enable/disable health check for all Kubernetes objects created by this Kustomization.
*
* @param wait the wait value to set.
* @return the KustomizationDefinition object itself.
*/
public KustomizationDefinition withWait(Boolean wait) {
this.wait = wait;
return this;
}

/**
* Get the postBuild property: Used for variable substitution for this Kustomization after kustomize build.
*
* @return the postBuild value.
*/
public PostBuildDefinition postBuild() {
return this.postBuild;
}

/**
* Set the postBuild property: Used for variable substitution for this Kustomization after kustomize build.
*
* @param postBuild the postBuild value to set.
* @return the KustomizationDefinition object itself.
*/
public KustomizationDefinition withPostBuild(PostBuildDefinition postBuild) {
this.postBuild = postBuild;
return this;
}

/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (postBuild() != null) {
postBuild().validate();
}
}
}
Loading