Skip to content

Commit

Permalink
CodeGen from PR 31045 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 778ce76977d288db185e11af1eb5d6fc5ea0ee3c into e38ec2583d44351a8b605285b51457914bad72e1
  • Loading branch information
SDKAuto committed Oct 24, 2024
1 parent 7a6c71d commit b83e77a
Show file tree
Hide file tree
Showing 64 changed files with 2,768 additions and 737 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
public final class AuditTrailItem implements JsonSerializable<AuditTrailItem> {

/*
* The system generated unique id for the resource.
* This is typically the same as the name but might be different for different models.
*/
@Generated
private String id;
Expand Down Expand Up @@ -55,7 +55,7 @@ private AuditTrailItem() {
}

/**
* Get the id property: The system generated unique id for the resource.
* Get the id property: This is typically the same as the name but might be different for different models.
*
* @return the id value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.analytics.defender.easm.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.Generated;
import com.azure.core.annotation.Immutable;
import com.azure.core.util.CoreUtils;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
Expand All @@ -15,7 +15,7 @@
/**
* The AzureDataExplorerDataConnection model.
*/
@Immutable
@Fluent
public final class AzureDataExplorerDataConnection extends DataConnection {

/*
Expand All @@ -31,41 +31,17 @@ public final class AzureDataExplorerDataConnection extends DataConnection {
private final AzureDataExplorerDataConnectionProperties properties;

/*
* The system generated unique id for the resource.
* This is typically the same as the name but might be different for different models.
*/
@Generated
private String id;

/*
* The name that can be used for display purposes.
*/
@Generated
private String displayName;

/*
* The type of data the data connection will transfer
*/
@Generated
private DataConnectionContent content;

/*
* The date the data connection was created.
*/
@Generated
private OffsetDateTime createdDate;

/*
* The rate at which the data connection will receive updates.
*/
@Generated
private DataConnectionFrequency frequency;

/*
* The day to update the data connection on.
*/
@Generated
private Integer frequencyOffset;

/*
* The date the data connection was last updated.
*/
Expand All @@ -78,12 +54,6 @@ public final class AzureDataExplorerDataConnection extends DataConnection {
@Generated
private OffsetDateTime userUpdatedAt;

/*
* An indicator of whether the data connection is active.
*/
@Generated
private Boolean active;

/*
* A message that specifies details about data connection if inactive.
*/
Expand All @@ -96,7 +66,7 @@ public final class AzureDataExplorerDataConnection extends DataConnection {
* @param properties the properties value to set.
*/
@Generated
private AzureDataExplorerDataConnection(AzureDataExplorerDataConnectionProperties properties) {
public AzureDataExplorerDataConnection(AzureDataExplorerDataConnectionProperties properties) {
this.properties = properties;
}

Expand All @@ -122,7 +92,7 @@ public AzureDataExplorerDataConnectionProperties getProperties() {
}

/**
* Get the id property: The system generated unique id for the resource.
* Get the id property: This is typically the same as the name but might be different for different models.
*
* @return the id value.
*/
Expand All @@ -132,28 +102,6 @@ public String getId() {
return this.id;
}

/**
* Get the displayName property: The name that can be used for display purposes.
*
* @return the displayName value.
*/
@Generated
@Override
public String getDisplayName() {
return this.displayName;
}

/**
* Get the content property: The type of data the data connection will transfer.
*
* @return the content value.
*/
@Generated
@Override
public DataConnectionContent getContent() {
return this.content;
}

/**
* Get the createdDate property: The date the data connection was created.
*
Expand All @@ -165,28 +113,6 @@ public OffsetDateTime getCreatedDate() {
return this.createdDate;
}

/**
* Get the frequency property: The rate at which the data connection will receive updates.
*
* @return the frequency value.
*/
@Generated
@Override
public DataConnectionFrequency getFrequency() {
return this.frequency;
}

/**
* Get the frequencyOffset property: The day to update the data connection on.
*
* @return the frequencyOffset value.
*/
@Generated
@Override
public Integer getFrequencyOffset() {
return this.frequencyOffset;
}

/**
* Get the updatedDate property: The date the data connection was last updated.
*
Expand All @@ -209,17 +135,6 @@ public OffsetDateTime getUserUpdatedAt() {
return this.userUpdatedAt;
}

/**
* Get the active property: An indicator of whether the data connection is active.
*
* @return the active value.
*/
@Generated
@Override
public Boolean isActive() {
return this.active;
}

/**
* Get the inactiveMessage property: A message that specifies details about data connection if inactive.
*
Expand All @@ -238,7 +153,6 @@ public String getInactiveMessage() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("id", getId());
jsonWriter.writeStringField("displayName", getDisplayName());
jsonWriter.writeStringField("content", getContent() == null ? null : getContent().toString());
jsonWriter.writeStringField("frequency", getFrequency() == null ? null : getFrequency().toString());
Expand Down Expand Up @@ -314,17 +228,67 @@ public static AzureDataExplorerDataConnection fromJson(JsonReader jsonReader) th
= new AzureDataExplorerDataConnection(properties);
deserializedAzureDataExplorerDataConnection.setName(name);
deserializedAzureDataExplorerDataConnection.id = id;
deserializedAzureDataExplorerDataConnection.displayName = displayName;
deserializedAzureDataExplorerDataConnection.content = content;
deserializedAzureDataExplorerDataConnection.setDisplayName(displayName);
deserializedAzureDataExplorerDataConnection.setContent(content);
deserializedAzureDataExplorerDataConnection.createdDate = createdDate;
deserializedAzureDataExplorerDataConnection.frequency = frequency;
deserializedAzureDataExplorerDataConnection.frequencyOffset = frequencyOffset;
deserializedAzureDataExplorerDataConnection.setFrequency(frequency);
deserializedAzureDataExplorerDataConnection.setFrequencyOffset(frequencyOffset);
deserializedAzureDataExplorerDataConnection.updatedDate = updatedDate;
deserializedAzureDataExplorerDataConnection.userUpdatedAt = userUpdatedAt;
deserializedAzureDataExplorerDataConnection.active = active;
deserializedAzureDataExplorerDataConnection.setActive(active);
deserializedAzureDataExplorerDataConnection.inactiveMessage = inactiveMessage;
deserializedAzureDataExplorerDataConnection.kind = kind;
return deserializedAzureDataExplorerDataConnection;
});
}

/**
* {@inheritDoc}
*/
@Generated
@Override
public AzureDataExplorerDataConnection setDisplayName(String displayName) {
super.setDisplayName(displayName);
return this;
}

/**
* {@inheritDoc}
*/
@Generated
@Override
public AzureDataExplorerDataConnection setContent(DataConnectionContent content) {
super.setContent(content);
return this;
}

/**
* {@inheritDoc}
*/
@Generated
@Override
public AzureDataExplorerDataConnection setFrequency(DataConnectionFrequency frequency) {
super.setFrequency(frequency);
return this;
}

/**
* {@inheritDoc}
*/
@Generated
@Override
public AzureDataExplorerDataConnection setFrequencyOffset(Integer frequencyOffset) {
super.setFrequencyOffset(frequencyOffset);
return this;
}

/**
* {@inheritDoc}
*/
@Generated
@Override
public AzureDataExplorerDataConnection setActive(Boolean active) {
super.setActive(active);
return this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.analytics.defender.easm.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.Generated;
import com.azure.core.annotation.Immutable;
import com.azure.core.util.CoreUtils;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
Expand All @@ -16,7 +16,7 @@
/**
* The DataConnection model.
*/
@Immutable
@Fluent
public class DataConnection implements JsonSerializable<DataConnection> {

/*
Expand All @@ -26,7 +26,7 @@ public class DataConnection implements JsonSerializable<DataConnection> {
private String kind = "DataConnection";

/*
* The system generated unique id for the resource.
* This is typically the same as the name but might be different for different models.
*/
@Generated
private String id;
Expand Down Expand Up @@ -62,7 +62,7 @@ public class DataConnection implements JsonSerializable<DataConnection> {
private DataConnectionFrequency frequency;

/*
* The day to update the data connection on.
* The day to update the data connection on. (1-7 for weekly, 1-31 for monthly)
*/
@Generated
private Integer frequencyOffset;
Expand Down Expand Up @@ -95,7 +95,7 @@ public class DataConnection implements JsonSerializable<DataConnection> {
* Creates an instance of DataConnection class.
*/
@Generated
protected DataConnection() {
public DataConnection() {
}

/**
Expand All @@ -109,7 +109,7 @@ public String getKind() {
}

/**
* Get the id property: The system generated unique id for the resource.
* Get the id property: This is typically the same as the name but might be different for different models.
*
* @return the id value.
*/
Expand All @@ -119,7 +119,7 @@ public String getId() {
}

/**
* Set the id property: The system generated unique id for the resource.
* Set the id property: This is typically the same as the name but might be different for different models.
*
* @param id the id value to set.
* @return the DataConnection object itself.
Expand Down Expand Up @@ -169,7 +169,7 @@ public String getDisplayName() {
* @return the DataConnection object itself.
*/
@Generated
DataConnection setDisplayName(String displayName) {
public DataConnection setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
Expand All @@ -191,7 +191,7 @@ public DataConnectionContent getContent() {
* @return the DataConnection object itself.
*/
@Generated
DataConnection setContent(DataConnectionContent content) {
public DataConnection setContent(DataConnectionContent content) {
this.content = content;
return this;
}
Expand Down Expand Up @@ -235,13 +235,13 @@ public DataConnectionFrequency getFrequency() {
* @return the DataConnection object itself.
*/
@Generated
DataConnection setFrequency(DataConnectionFrequency frequency) {
public DataConnection setFrequency(DataConnectionFrequency frequency) {
this.frequency = frequency;
return this;
}

/**
* Get the frequencyOffset property: The day to update the data connection on.
* Get the frequencyOffset property: The day to update the data connection on. (1-7 for weekly, 1-31 for monthly).
*
* @return the frequencyOffset value.
*/
Expand All @@ -251,13 +251,13 @@ public Integer getFrequencyOffset() {
}

/**
* Set the frequencyOffset property: The day to update the data connection on.
* Set the frequencyOffset property: The day to update the data connection on. (1-7 for weekly, 1-31 for monthly).
*
* @param frequencyOffset the frequencyOffset value to set.
* @return the DataConnection object itself.
*/
@Generated
DataConnection setFrequencyOffset(Integer frequencyOffset) {
public DataConnection setFrequencyOffset(Integer frequencyOffset) {
this.frequencyOffset = frequencyOffset;
return this;
}
Expand Down Expand Up @@ -323,7 +323,7 @@ public Boolean isActive() {
* @return the DataConnection object itself.
*/
@Generated
DataConnection setActive(Boolean active) {
public DataConnection setActive(Boolean active) {
this.active = active;
return this;
}
Expand Down Expand Up @@ -358,7 +358,6 @@ DataConnection setInactiveMessage(String inactiveMessage) {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("kind", this.kind);
jsonWriter.writeStringField("id", this.id);
jsonWriter.writeStringField("displayName", this.displayName);
jsonWriter.writeStringField("content", this.content == null ? null : this.content.toString());
jsonWriter.writeStringField("frequency", this.frequency == null ? null : this.frequency.toString());
Expand Down
Loading

0 comments on commit b83e77a

Please sign in to comment.