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-eventgrid] EventGrid: Fix multiple linter and swagger correctness/completeness issues for latest preview and stable API versions #7371

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
4 changes: 4 additions & 0 deletions sdk/eventgrid/azure-resourcemanager-eventgrid/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release History

## 1.0.0-beta.1 (2021-02-20)

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

## 1.0.0-beta.2 (2021-02-18)

- Azure Resource Manager EventGrid client library for Java. This package contains Microsoft Azure SDK for EventGrid Management SDK. Azure EventGrid Management Client. Package tag package-2020-10-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public EventGridManager authenticate(TokenCredential credential, AzureProfile pr
.append("-")
.append("com.azure.resourcemanager.eventgrid")
.append("/")
.append("1.0.0-beta.2");
.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 @@ -15,6 +15,7 @@
import com.azure.resourcemanager.eventgrid.models.InputSchemaMapping;
import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess;
import com.azure.resourcemanager.eventgrid.models.ResourceSku;
import com.azure.resourcemanager.eventgrid.models.SystemData;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
Expand All @@ -38,6 +39,12 @@ public class DomainInner extends Resource {
@JsonProperty(value = "identity")
private IdentityInfo identity;

/*
* The system metadata relating to Domain resource.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;

/*
* List of private endpoint connections.
*/
Expand Down Expand Up @@ -133,6 +140,15 @@ public DomainInner withIdentity(IdentityInfo identity) {
return this;
}

/**
* Get the systemData property: The system metadata relating to Domain resource.
*
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}

/**
* Get the privateEndpointConnections property: List of private endpoint connections.
*
Expand Down Expand Up @@ -296,6 +312,9 @@ public void validate() {
if (identity() != null) {
identity().validate();
}
if (systemData() != null) {
systemData().validate();
}
if (privateEndpointConnections() != null) {
privateEndpointConnections().forEach(e -> e.validate());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.eventgrid.models.DomainTopicProvisioningState;
import com.azure.resourcemanager.eventgrid.models.SystemData;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

Expand All @@ -18,12 +19,27 @@
public class DomainTopicInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(DomainTopicInner.class);

/*
* The system metadata relating to Domain Topic resource.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;

/*
* Provisioning state of the domain topic.
*/
@JsonProperty(value = "properties.provisioningState")
private DomainTopicProvisioningState provisioningState;

/**
* Get the systemData property: The system metadata relating to Domain Topic resource.
*
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}

/**
* Get the provisioningState property: Provisioning state of the domain topic.
*
Expand All @@ -50,5 +66,8 @@ public DomainTopicInner withProvisioningState(DomainTopicProvisioningState provi
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (systemData() != null) {
systemData().validate();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class EventChannelInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(EventChannelInner.class);

/*
* The system metadata relating to this resource.
* The system metadata relating to Event Channel resource.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
Expand Down Expand Up @@ -80,7 +80,7 @@ public class EventChannelInner extends ProxyResource {
private String partnerTopicFriendlyDescription;

/**
* Get the systemData property: The system metadata relating to this resource.
* Get the systemData property: The system metadata relating to Event Channel resource.
*
* @return the systemData value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class EventSubscriptionInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(EventSubscriptionInner.class);

/*
* The system metadata relating to this resource.
* The system metadata relating to Event Subscription resource.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
Expand Down Expand Up @@ -118,7 +118,7 @@ public class EventSubscriptionInner extends ProxyResource {
private DeadLetterWithResourceIdentity deadLetterWithResourceIdentity;

/**
* Get the systemData property: The system metadata relating to this resource.
* Get the systemData property: The system metadata relating to Event Subscription resource.
*
* @return the systemData value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class PartnerNamespaceInner extends Resource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(PartnerNamespaceInner.class);

/*
* The system metadata relating to this resource.
* The system metadata relating to Partner Namespace resource.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
Expand All @@ -47,7 +47,7 @@ public class PartnerNamespaceInner extends Resource {
private String endpoint;

/**
* Get the systemData property: The system metadata relating to this resource.
* Get the systemData property: The system metadata relating to Partner Namespace resource.
*
* @return the systemData value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class PartnerRegistrationInner extends Resource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(PartnerRegistrationInner.class);

/*
* The system metadata relating to this resource.
* The system metadata relating to Partner Registration resource.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
Expand Down Expand Up @@ -126,7 +126,7 @@ public class PartnerRegistrationInner extends Resource {
private List<String> authorizedAzureSubscriptionIds;

/**
* Get the systemData property: The system metadata relating to this resource.
* Get the systemData property: The system metadata relating to Partner Registration resource.
*
* @return the systemData value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class PartnerTopicInner extends Resource {
private IdentityInfo identity;

/*
* The system metadata relating to this resource.
* The system metadata relating to Partner Topic resource.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
Expand Down Expand Up @@ -93,7 +93,7 @@ public PartnerTopicInner withIdentity(IdentityInfo identity) {
}

/**
* Get the systemData property: The system metadata relating to this resource.
* Get the systemData property: The system metadata relating to Partner Topic resource.
*
* @return the systemData value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess;
import com.azure.resourcemanager.eventgrid.models.ResourceKind;
import com.azure.resourcemanager.eventgrid.models.ResourceSku;
import com.azure.resourcemanager.eventgrid.models.SystemData;
import com.azure.resourcemanager.eventgrid.models.TopicProvisioningState;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
Expand Down Expand Up @@ -52,6 +53,12 @@ public class TopicInner extends Resource {
@JsonProperty(value = "extendedLocation")
private ExtendedLocation extendedLocation;

/*
* The system metadata relating to Topic resource.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;

/*
* The privateEndpointConnections property.
*/
Expand Down Expand Up @@ -189,6 +196,15 @@ public TopicInner withExtendedLocation(ExtendedLocation extendedLocation) {
return this;
}

/**
* Get the systemData property: The system metadata relating to Topic resource.
*
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}

/**
* Get the privateEndpointConnections property: The privateEndpointConnections property.
*
Expand Down Expand Up @@ -357,6 +373,9 @@ public void validate() {
if (extendedLocation() != null) {
extendedLocation().validate();
}
if (systemData() != null) {
systemData().validate();
}
if (privateEndpointConnections() != null) {
privateEndpointConnections().forEach(e -> e.validate());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import com.azure.resourcemanager.eventgrid.models.PrivateEndpointConnection;
import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess;
import com.azure.resourcemanager.eventgrid.models.ResourceSku;
import com.azure.resourcemanager.eventgrid.models.SystemData;
import java.util.Collections;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -65,6 +66,10 @@ public IdentityInfo identity() {
return this.innerModel().identity();
}

public SystemData systemData() {
return this.innerModel().systemData();
}

public List<PrivateEndpointConnection> privateEndpointConnections() {
List<PrivateEndpointConnectionInner> inner = this.innerModel().privateEndpointConnections();
if (inner != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.azure.resourcemanager.eventgrid.fluent.models.DomainTopicInner;
import com.azure.resourcemanager.eventgrid.models.DomainTopic;
import com.azure.resourcemanager.eventgrid.models.DomainTopicProvisioningState;
import com.azure.resourcemanager.eventgrid.models.SystemData;

public final class DomainTopicImpl implements DomainTopic {
private DomainTopicInner innerObject;
Expand All @@ -31,6 +32,10 @@ public String type() {
return this.innerModel().type();
}

public SystemData systemData() {
return this.innerModel().systemData();
}

public DomainTopicProvisioningState provisioningState() {
return this.innerModel().provisioningState();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Mono<Response<Flux<ByteBuffer>>> createOrUpdate(
@Delete(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains"
+ "/{domainName}/topics/{domainTopicName}")
@ExpectedResponses({202, 204})
@ExpectedResponses({200, 202, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono<Response<Flux<ByteBuffer>>> delete(
@HostParam("$host") String endpoint,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Mono<Response<Flux<ByteBuffer>>> createOrUpdate(
@Delete(
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains"
+ "/{domainName}")
@ExpectedResponses({202, 204})
@ExpectedResponses({200, 202, 204})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono<Response<Flux<ByteBuffer>>> delete(
@HostParam("$host") String endpoint,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.azure.resourcemanager.eventgrid.models.PublicNetworkAccess;
import com.azure.resourcemanager.eventgrid.models.ResourceKind;
import com.azure.resourcemanager.eventgrid.models.ResourceSku;
import com.azure.resourcemanager.eventgrid.models.SystemData;
import com.azure.resourcemanager.eventgrid.models.Topic;
import com.azure.resourcemanager.eventgrid.models.TopicProvisioningState;
import com.azure.resourcemanager.eventgrid.models.TopicRegenerateKeyRequest;
Expand Down Expand Up @@ -75,6 +76,10 @@ public ExtendedLocation extendedLocation() {
return this.innerModel().extendedLocation();
}

public SystemData systemData() {
return this.innerModel().systemData();
}

public List<PrivateEndpointConnection> privateEndpointConnections() {
List<PrivateEndpointConnectionInner> inner = this.innerModel().privateEndpointConnections();
if (inner != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ public interface Domain {
*/
IdentityInfo identity();

/**
* Gets the systemData property: The system metadata relating to Domain resource.
*
* @return the systemData value.
*/
SystemData systemData();

/**
* Gets the privateEndpointConnections property: List of private endpoint connections.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ public interface DomainTopic {
*/
String type();

/**
* Gets the systemData property: The system metadata relating to Domain Topic resource.
*
* @return the systemData value.
*/
SystemData systemData();

/**
* Gets the provisioningState property: Provisioning state of the domain topic.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public interface EventChannel {
String type();

/**
* Gets the systemData property: The system metadata relating to this resource.
* Gets the systemData property: The system metadata relating to Event Channel resource.
*
* @return the systemData value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public interface EventSubscription {
String type();

/**
* Gets the systemData property: The system metadata relating to this resource.
* Gets the systemData property: The system metadata relating to Event Subscription resource.
*
* @return the systemData value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public interface PartnerNamespace {
Map<String, String> tags();

/**
* Gets the systemData property: The system metadata relating to this resource.
* Gets the systemData property: The system metadata relating to Partner Namespace resource.
*
* @return the systemData value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public interface PartnerRegistration {
Map<String, String> tags();

/**
* Gets the systemData property: The system metadata relating to this resource.
* Gets the systemData property: The system metadata relating to Partner Registration resource.
*
* @return the systemData value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public interface PartnerTopic {
IdentityInfo identity();

/**
* Gets the systemData property: The system metadata relating to this resource.
* Gets the systemData property: The system metadata relating to Partner Topic resource.
*
* @return the systemData value.
*/
Expand Down
Loading