Skip to content
Merged
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
6 changes: 3 additions & 3 deletions eventgrid/resource-manager/v2018_01_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<packaging>jar</packaging>
<name>Microsoft Azure SDK for EventGrid Management</name>
<description>This package contains Microsoft EventGrid Management SDK.</description>
<url>https://github.com/Azure/azure-libraries-for-java</url>
<url>https://github.com/Azure/azure-sdk-for-java</url>
<licenses>
<license>
<name>The MIT License (MIT)</name>
Expand All @@ -28,8 +28,8 @@
</license>
</licenses>
<scm>
<url>scm:git:https://github.com/Azure/azure-libraries-for-java</url>
<connection>scm:git:[email protected]:Azure/azure-libraries-for-java.git</connection>
<url>scm:git:https://github.com/Azure/azure-sdk-for-java</url>
<connection>scm:git:[email protected]:Azure/azure-sdk-for-java.git</connection>
<tag>HEAD</tag>
</scm>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ interface Blank extends WithScope {
interface WithScope {
/**
* Specifies scope.
* @param scope The identifier of the resource to which the event subscription needs to be created or updated. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic
* @return the next definition stage
*/
WithCreate withScope(String scope);
}
Expand All @@ -95,6 +97,8 @@ interface WithScope {
interface WithDestination {
/**
* Specifies destination.
* @param destination Information about the destination where events have to be delivered for the event subscription
* @return the next definition stage
*/
WithCreate withDestination(EventSubscriptionDestination destination);
}
Expand All @@ -105,6 +109,8 @@ interface WithDestination {
interface WithFilter {
/**
* Specifies filter.
* @param filter Information about the filter for the event subscription
* @return the next definition stage
*/
WithCreate withFilter(EventSubscriptionFilter filter);
}
Expand All @@ -115,6 +121,8 @@ interface WithFilter {
interface WithLabels {
/**
* Specifies labels.
* @param labels List of user defined labels
* @return the next definition stage
*/
WithCreate withLabels(List<String> labels);
}
Expand Down Expand Up @@ -143,6 +151,8 @@ interface UpdateStages {
interface WithDestination {
/**
* Specifies destination.
* @param destination Information about the destination where events have to be delivered for the event subscription
* @return the next update stage
*/
Update withDestination(EventSubscriptionDestination destination);
}
Expand All @@ -153,6 +163,8 @@ interface WithDestination {
interface WithFilter {
/**
* Specifies filter.
* @param filter Information about the filter for the event subscription
* @return the next update stage
*/
Update withFilter(EventSubscriptionFilter filter);
}
Expand All @@ -163,6 +175,8 @@ interface WithFilter {
interface WithLabels {
/**
* Specifies labels.
* @param labels List of user defined labels
* @return the next update stage
*/
Update withLabels(List<String> labels);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Topic regenerate share access key key request.
* Topic regenerate share access key request.
*/
public class TopicRegenerateKeyRequest {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ public String apiVersion() {
return this.apiVersion;
}

/** Gets or sets the preferred language for the response. */
/** The preferred language for the response. */
private String acceptLanguage;

/**
* Gets Gets or sets the preferred language for the response.
* Gets The preferred language for the response.
*
* @return the acceptLanguage value.
*/
Expand All @@ -76,7 +76,7 @@ public String acceptLanguage() {
}

/**
* Sets Gets or sets the preferred language for the response.
* Sets The preferred language for the response.
*
* @param acceptLanguage the acceptLanguage value.
* @return the service client itself
Expand All @@ -86,11 +86,11 @@ public EventGridManagementClientImpl withAcceptLanguage(String acceptLanguage) {
return this;
}

/** Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30. */
/** The retry timeout in seconds for Long Running Operations. Default value is 30. */
private int longRunningOperationRetryTimeout;

/**
* Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* Gets The retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @return the longRunningOperationRetryTimeout value.
*/
Expand All @@ -99,7 +99,7 @@ public int longRunningOperationRetryTimeout() {
}

/**
* Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* Sets The retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value.
* @return the service client itself
Expand All @@ -109,11 +109,11 @@ public EventGridManagementClientImpl withLongRunningOperationRetryTimeout(int lo
return this;
}

/** When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */
/** Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true. */
private boolean generateClientRequestId;

/**
* Gets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
* Gets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
* @return the generateClientRequestId value.
*/
Expand All @@ -122,7 +122,7 @@ public boolean generateClientRequestId() {
}

/**
* Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
* Sets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
* @param generateClientRequestId the generateClientRequestId value.
* @return the service client itself
Expand Down Expand Up @@ -233,6 +233,6 @@ protected void initialize() {
*/
@Override
public String userAgent() {
return String.format("%s (%s, %s)", super.userAgent(), "EventGridManagementClient", "2018-01-01");
return String.format("%s (%s, %s, auto-generated)", super.userAgent(), "EventGridManagementClient", "2018-01-01");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ class EventSubscriptionImpl extends CreatableUpdatableImpl<EventSubscription, Ev
this.manager = manager;
// Set resource name
this.eventSubscriptionName = inner.name();
// resource ancestor names
// set resource ancestor and positional variables
this.eventSubscriptionName = IdParsingUtils.getValueFromIdByName(inner.id(), "eventSubscriptions");
this.scope = IdParsingUtils.getValueFromIdByPosition(inner.id(), 0);
//
// set other parameters for create and update
this.updateParameter = new EventSubscriptionUpdateParameters();
}

Expand Down
6 changes: 3 additions & 3 deletions eventgrid/resource-manager/v2018_05_01_preview/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<packaging>jar</packaging>
<name>Microsoft Azure SDK for EventGrid Management</name>
<description>This package contains Microsoft EventGrid Management SDK.</description>
<url>https://github.com/Azure/azure-libraries-for-java</url>
<url>https://github.com/Azure/azure-sdk-for-java</url>
<licenses>
<license>
<name>The MIT License (MIT)</name>
Expand All @@ -28,8 +28,8 @@
</license>
</licenses>
<scm>
<url>scm:git:https://github.com/Azure/azure-libraries-for-java</url>
<connection>scm:git:[email protected]:Azure/azure-libraries-for-java.git</connection>
<url>scm:git:https://github.com/Azure/azure-sdk-for-java</url>
<connection>scm:git:[email protected]:Azure/azure-sdk-for-java.git</connection>
<tag>HEAD</tag>
</scm>
<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ interface Blank extends WithScope {
interface WithScope {
/**
* Specifies scope.
* @param scope The identifier of the resource to which the event subscription needs to be created or updated. The scope can be a subscription, or a resource group, or a top level resource belonging to a resource provider namespace, or an EventGrid topic. For example, use '/subscriptions/{subscriptionId}/' for a subscription, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for a resource group, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}' for a resource, and '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/topics/{topicName}' for an EventGrid topic
* @return the next definition stage
*/
WithCreate withScope(String scope);
}
Expand All @@ -110,6 +112,8 @@ interface WithScope {
interface WithDeadLetterDestination {
/**
* Specifies deadLetterDestination.
* @param deadLetterDestination The DeadLetter destination of the event subscription
* @return the next definition stage
*/
WithCreate withDeadLetterDestination(DeadLetterDestination deadLetterDestination);
}
Expand All @@ -120,6 +124,8 @@ interface WithDeadLetterDestination {
interface WithDestination {
/**
* Specifies destination.
* @param destination Information about the destination where events have to be delivered for the event subscription
* @return the next definition stage
*/
WithCreate withDestination(EventSubscriptionDestination destination);
}
Expand All @@ -130,6 +136,8 @@ interface WithDestination {
interface WithEventDeliverySchema {
/**
* Specifies eventDeliverySchema.
* @param eventDeliverySchema The event delivery schema for the event subscription. Possible values include: 'EventGridSchema', 'InputEventSchema', 'CloudEventV01Schema'
* @return the next definition stage
*/
WithCreate withEventDeliverySchema(EventDeliverySchema eventDeliverySchema);
}
Expand All @@ -140,6 +148,8 @@ interface WithEventDeliverySchema {
interface WithFilter {
/**
* Specifies filter.
* @param filter Information about the filter for the event subscription
* @return the next definition stage
*/
WithCreate withFilter(EventSubscriptionFilter filter);
}
Expand All @@ -150,6 +160,8 @@ interface WithFilter {
interface WithLabels {
/**
* Specifies labels.
* @param labels List of user defined labels
* @return the next definition stage
*/
WithCreate withLabels(List<String> labels);
}
Expand All @@ -160,6 +172,8 @@ interface WithLabels {
interface WithRetryPolicy {
/**
* Specifies retryPolicy.
* @param retryPolicy The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events
* @return the next definition stage
*/
WithCreate withRetryPolicy(RetryPolicy retryPolicy);
}
Expand Down Expand Up @@ -188,6 +202,8 @@ interface UpdateStages {
interface WithDeadLetterDestination {
/**
* Specifies deadLetterDestination.
* @param deadLetterDestination The DeadLetter destination of the event subscription
* @return the next update stage
*/
Update withDeadLetterDestination(DeadLetterDestination deadLetterDestination);
}
Expand All @@ -198,6 +214,8 @@ interface WithDeadLetterDestination {
interface WithDestination {
/**
* Specifies destination.
* @param destination Information about the destination where events have to be delivered for the event subscription
* @return the next update stage
*/
Update withDestination(EventSubscriptionDestination destination);
}
Expand All @@ -208,6 +226,8 @@ interface WithDestination {
interface WithEventDeliverySchema {
/**
* Specifies eventDeliverySchema.
* @param eventDeliverySchema The event delivery schema for the event subscription. Possible values include: 'EventGridSchema', 'InputEventSchema', 'CloudEventV01Schema'
* @return the next update stage
*/
Update withEventDeliverySchema(EventDeliverySchema eventDeliverySchema);
}
Expand All @@ -218,6 +238,8 @@ interface WithEventDeliverySchema {
interface WithFilter {
/**
* Specifies filter.
* @param filter Information about the filter for the event subscription
* @return the next update stage
*/
Update withFilter(EventSubscriptionFilter filter);
}
Expand All @@ -228,6 +250,8 @@ interface WithFilter {
interface WithLabels {
/**
* Specifies labels.
* @param labels List of user defined labels
* @return the next update stage
*/
Update withLabels(List<String> labels);
}
Expand All @@ -238,6 +262,8 @@ interface WithLabels {
interface WithRetryPolicy {
/**
* Specifies retryPolicy.
* @param retryPolicy The retry policy for events. This can be used to configure maximum number of delivery attempts and time to live for events
* @return the next update stage
*/
Update withRetryPolicy(RetryPolicy retryPolicy);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* This is used to express the source of an input schema mapping for a single
* target field in the Event Grid Event schema. This is currently used in the
* mappings for the 'id','topic' and 'eventtime' properties. This represents a
* mappings for the 'id','topic' and 'eventTime' properties. This represents a
* field in the input event schema.
*/
public class JsonField {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/**
* This is used to express the source of an input schema mapping for a single
* target field in the Event Grid Event schema. This is currently used in the
* mappings for the 'subject','eventtype' and 'dataversion' properties. This
* mappings for the 'subject','eventType' and 'dataVersion' properties. This
* represents a field in the input event schema along with a default value to
* be used, and at least one of these two properties should be provided.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,21 +67,25 @@ interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<Wit
}

/**
* The stage of the topic update allowing to specify InputSchema.
* The stage of the topic definition allowing to specify InputSchema.
*/
interface WithInputSchema {
/**
* Specifies inputSchema.
* @param inputSchema This determines the format that Event Grid should expect for incoming events published to the topic. Possible values include: 'EventGridSchema', 'CustomEventSchema', 'CloudEventV01Schema'
* @return the next definition stage
*/
WithCreate withInputSchema(InputSchema inputSchema);
}

/**
* The stage of the topic update allowing to specify InputSchemaMapping.
* The stage of the topic definition allowing to specify InputSchemaMapping.
*/
interface WithInputSchemaMapping {
/**
* Specifies inputSchemaMapping.
* @param inputSchemaMapping This enables publishing using custom event schemas. An InputSchemaMapping can be specified to map various properties of a source schema to various required properties of the EventGridEvent schema
* @return the next definition stage
*/
WithCreate withInputSchemaMapping(InputSchemaMapping inputSchemaMapping);
}
Expand All @@ -105,21 +109,25 @@ interface Update extends Appliable<Topic>, Resource.UpdateWithTags<Update>, Upda
*/
interface UpdateStages {
/**
* The stage of the topic {0} allowing to specify InputSchema.
* The stage of the topic update allowing to specify InputSchema.
*/
interface WithInputSchema {
/**
* Specifies inputSchema.
* @param inputSchema This determines the format that Event Grid should expect for incoming events published to the topic. Possible values include: 'EventGridSchema', 'CustomEventSchema', 'CloudEventV01Schema'
* @return the next update stage
*/
Update withInputSchema(InputSchema inputSchema);
}

/**
* The stage of the topic {0} allowing to specify InputSchemaMapping.
* The stage of the topic update allowing to specify InputSchemaMapping.
*/
interface WithInputSchemaMapping {
/**
* Specifies inputSchemaMapping.
* @param inputSchemaMapping This enables publishing using custom event schemas. An InputSchemaMapping can be specified to map various properties of a source schema to various required properties of the EventGridEvent schema
* @return the next update stage
*/
Update withInputSchemaMapping(InputSchemaMapping inputSchemaMapping);
}
Expand Down
Loading