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-resourcemanager-appcontainers] Fixerrorresponseschema #1107

Closed
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.4 (Unreleased)
## 1.0.0-beta.1 (2022-07-28)

- Azure Resource Manager ContainerAppsApi client library for Java. This package contains Microsoft Azure SDK for ContainerAppsApi Management SDK. Package tag package-2022-03. 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 @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-appcontainers</artifactId>
<version>1.0.0-beta.3</version>
<version>1.0.0-beta.4</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
15 changes: 15 additions & 0 deletions sdk/appcontainers/azure-resourcemanager-appcontainers/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,21 @@ import com.azure.core.util.Context;

/** Samples for ContainerApps ListCustomHostnameAnalysis. */
public final class ContainerAppsListCustomHostnameAnalysisSamples {
/*
* x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListCustomHostNameAnalysisErrorResponse.json
*/
/**
* Sample code: Analyse Custom Hostname Error Response.
*
* @param manager Entry point to ContainerAppsApiManager.
*/
public static void analyseCustomHostnameErrorResponse(
com.azure.resourcemanager.appcontainers.ContainerAppsApiManager manager) {
manager
.containerApps()
.listCustomHostnameAnalysisWithResponse("rg", "testcontainerApp0", "my.name.corp", Context.NONE);
}

/*
* x-ms-original-file: specification/app/resource-manager/Microsoft.App/stable/2022-03-01/examples/ContainerApps_ListCustomHostNameAnalysis.json
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public ContainerAppsApiManager authenticate(TokenCredential credential, AzurePro
.append("-")
.append("com.azure.resourcemanager.appcontainers")
.append("/")
.append("1.0.0-beta.3");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,54 +5,90 @@
package com.azure.resourcemanager.appcontainers.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.resourcemanager.appcontainers.models.DefaultErrorResponseError;
import com.azure.resourcemanager.appcontainers.models.CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo;
import com.azure.resourcemanager.appcontainers.models.DnsVerificationTestResult;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Custom domain analysis. */
@Fluent
public final class CustomHostnameAnalysisResultInner extends ProxyResource {
public final class CustomHostnameAnalysisResultInner {
/*
* CustomHostnameAnalysisResult resource specific properties
* Host name that was analyzed
*/
@JsonProperty(value = "properties")
private CustomHostnameAnalysisResultProperties innerProperties;
@JsonProperty(value = "hostName", access = JsonProperty.Access.WRITE_ONLY)
private String hostname;

/*
* Azure Resource Manager metadata containing createdBy and modifiedBy
* information.
* <code>true</code> if hostname is already verified; otherwise,
* <code>false</code>.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
@JsonProperty(value = "isHostnameAlreadyVerified", access = JsonProperty.Access.WRITE_ONLY)
private Boolean isHostnameAlreadyVerified;

/**
* Get the innerProperties property: CustomHostnameAnalysisResult resource specific properties.
*
* @return the innerProperties value.
/*
* DNS verification test result.
*/
private CustomHostnameAnalysisResultProperties innerProperties() {
return this.innerProperties;
}
@JsonProperty(value = "customDomainVerificationTest", access = JsonProperty.Access.WRITE_ONLY)
private DnsVerificationTestResult customDomainVerificationTest;

/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
/*
* Raw failure information if DNS verification fails.
*/
public SystemData systemData() {
return this.systemData;
}
@JsonProperty(value = "customDomainVerificationFailureInfo", access = JsonProperty.Access.WRITE_ONLY)
private CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo customDomainVerificationFailureInfo;

/*
* <code>true</code> if there is a conflict on the Container App's managed
* environment; otherwise, <code>false</code>.
*/
@JsonProperty(value = "hasConflictOnManagedEnvironment", access = JsonProperty.Access.WRITE_ONLY)
private Boolean hasConflictOnManagedEnvironment;

/*
* Name of the conflicting Container App on the Managed Environment if it's
* within the same subscription.
*/
@JsonProperty(value = "conflictingContainerAppResourceId", access = JsonProperty.Access.WRITE_ONLY)
private String conflictingContainerAppResourceId;

/*
* CName records visible for this hostname.
*/
@JsonProperty(value = "cNameRecords")
private List<String> cNameRecords;

/*
* TXT records visible for this hostname.
*/
@JsonProperty(value = "txtRecords")
private List<String> txtRecords;

/*
* A records visible for this hostname.
*/
@JsonProperty(value = "aRecords")
private List<String> aRecords;

/*
* Alternate CName records visible for this hostname.
*/
@JsonProperty(value = "alternateCNameRecords")
private List<String> alternateCNameRecords;

/*
* Alternate TXT records visible for this hostname.
*/
@JsonProperty(value = "alternateTxtRecords")
private List<String> alternateTxtRecords;

/**
* Get the hostname property: Host name that was analyzed.
*
* @return the hostname value.
*/
public String hostname() {
return this.innerProperties() == null ? null : this.innerProperties().hostname();
return this.hostname;
}

/**
Expand All @@ -62,7 +98,7 @@ public String hostname() {
* @return the isHostnameAlreadyVerified value.
*/
public Boolean isHostnameAlreadyVerified() {
return this.innerProperties() == null ? null : this.innerProperties().isHostnameAlreadyVerified();
return this.isHostnameAlreadyVerified;
}

/**
Expand All @@ -71,16 +107,16 @@ public Boolean isHostnameAlreadyVerified() {
* @return the customDomainVerificationTest value.
*/
public DnsVerificationTestResult customDomainVerificationTest() {
return this.innerProperties() == null ? null : this.innerProperties().customDomainVerificationTest();
return this.customDomainVerificationTest;
}

/**
* Get the customDomainVerificationFailureInfo property: Raw failure information if DNS verification fails.
*
* @return the customDomainVerificationFailureInfo value.
*/
public DefaultErrorResponseError customDomainVerificationFailureInfo() {
return this.innerProperties() == null ? null : this.innerProperties().customDomainVerificationFailureInfo();
public CustomHostnameAnalysisResultCustomDomainVerificationFailureInfo customDomainVerificationFailureInfo() {
return this.customDomainVerificationFailureInfo;
}

/**
Expand All @@ -90,7 +126,7 @@ public DefaultErrorResponseError customDomainVerificationFailureInfo() {
* @return the hasConflictOnManagedEnvironment value.
*/
public Boolean hasConflictOnManagedEnvironment() {
return this.innerProperties() == null ? null : this.innerProperties().hasConflictOnManagedEnvironment();
return this.hasConflictOnManagedEnvironment;
}

/**
Expand All @@ -100,7 +136,7 @@ public Boolean hasConflictOnManagedEnvironment() {
* @return the conflictingContainerAppResourceId value.
*/
public String conflictingContainerAppResourceId() {
return this.innerProperties() == null ? null : this.innerProperties().conflictingContainerAppResourceId();
return this.conflictingContainerAppResourceId;
}

/**
Expand All @@ -109,7 +145,7 @@ public String conflictingContainerAppResourceId() {
* @return the cNameRecords value.
*/
public List<String> cNameRecords() {
return this.innerProperties() == null ? null : this.innerProperties().cNameRecords();
return this.cNameRecords;
}

/**
Expand All @@ -119,10 +155,7 @@ public List<String> cNameRecords() {
* @return the CustomHostnameAnalysisResultInner object itself.
*/
public CustomHostnameAnalysisResultInner withCNameRecords(List<String> cNameRecords) {
if (this.innerProperties() == null) {
this.innerProperties = new CustomHostnameAnalysisResultProperties();
}
this.innerProperties().withCNameRecords(cNameRecords);
this.cNameRecords = cNameRecords;
return this;
}

Expand All @@ -132,7 +165,7 @@ public CustomHostnameAnalysisResultInner withCNameRecords(List<String> cNameReco
* @return the txtRecords value.
*/
public List<String> txtRecords() {
return this.innerProperties() == null ? null : this.innerProperties().txtRecords();
return this.txtRecords;
}

/**
Expand All @@ -142,10 +175,7 @@ public List<String> txtRecords() {
* @return the CustomHostnameAnalysisResultInner object itself.
*/
public CustomHostnameAnalysisResultInner withTxtRecords(List<String> txtRecords) {
if (this.innerProperties() == null) {
this.innerProperties = new CustomHostnameAnalysisResultProperties();
}
this.innerProperties().withTxtRecords(txtRecords);
this.txtRecords = txtRecords;
return this;
}

Expand All @@ -155,7 +185,7 @@ public CustomHostnameAnalysisResultInner withTxtRecords(List<String> txtRecords)
* @return the aRecords value.
*/
public List<String> aRecords() {
return this.innerProperties() == null ? null : this.innerProperties().aRecords();
return this.aRecords;
}

/**
Expand All @@ -165,10 +195,7 @@ public List<String> aRecords() {
* @return the CustomHostnameAnalysisResultInner object itself.
*/
public CustomHostnameAnalysisResultInner withARecords(List<String> aRecords) {
if (this.innerProperties() == null) {
this.innerProperties = new CustomHostnameAnalysisResultProperties();
}
this.innerProperties().withARecords(aRecords);
this.aRecords = aRecords;
return this;
}

Expand All @@ -178,7 +205,7 @@ public CustomHostnameAnalysisResultInner withARecords(List<String> aRecords) {
* @return the alternateCNameRecords value.
*/
public List<String> alternateCNameRecords() {
return this.innerProperties() == null ? null : this.innerProperties().alternateCNameRecords();
return this.alternateCNameRecords;
}

/**
Expand All @@ -188,10 +215,7 @@ public List<String> alternateCNameRecords() {
* @return the CustomHostnameAnalysisResultInner object itself.
*/
public CustomHostnameAnalysisResultInner withAlternateCNameRecords(List<String> alternateCNameRecords) {
if (this.innerProperties() == null) {
this.innerProperties = new CustomHostnameAnalysisResultProperties();
}
this.innerProperties().withAlternateCNameRecords(alternateCNameRecords);
this.alternateCNameRecords = alternateCNameRecords;
return this;
}

Expand All @@ -201,7 +225,7 @@ public CustomHostnameAnalysisResultInner withAlternateCNameRecords(List<String>
* @return the alternateTxtRecords value.
*/
public List<String> alternateTxtRecords() {
return this.innerProperties() == null ? null : this.innerProperties().alternateTxtRecords();
return this.alternateTxtRecords;
}

/**
Expand All @@ -211,10 +235,7 @@ public List<String> alternateTxtRecords() {
* @return the CustomHostnameAnalysisResultInner object itself.
*/
public CustomHostnameAnalysisResultInner withAlternateTxtRecords(List<String> alternateTxtRecords) {
if (this.innerProperties() == null) {
this.innerProperties = new CustomHostnameAnalysisResultProperties();
}
this.innerProperties().withAlternateTxtRecords(alternateTxtRecords);
this.alternateTxtRecords = alternateTxtRecords;
return this;
}

Expand All @@ -224,8 +245,8 @@ public CustomHostnameAnalysisResultInner withAlternateTxtRecords(List<String> al
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
if (customDomainVerificationFailureInfo() != null) {
customDomainVerificationFailureInfo().validate();
}
}
}
Loading