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

## 1.1.0-beta.5 (Unreleased)
## 1.0.0-beta.1 (2021-12-10)

- 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-2021-12. 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
2 changes: 1 addition & 1 deletion sdk/eventgrid/azure-resourcemanager-eventgrid/README.md
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-eventgrid</artifactId>
<version>1.1.0-beta.4</version>
<version>1.1.0-beta.5</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
5 changes: 0 additions & 5 deletions sdk/eventgrid/azure-resourcemanager-eventgrid/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@
<codesnippet.skip>false</codesnippet.skip>
<javadocDoclet></javadocDoclet>
<javadocDocletOptions></javadocDocletOptions>
<codesnippet.skip>false</codesnippet.skip>
<javadocDoclet></javadocDoclet>
<javadocDocletOptions></javadocDocletOptions>
</properties>
<dependencies>
<dependency>
Expand Down Expand Up @@ -95,8 +92,6 @@
<artifactId>revapi-maven-plugin</artifactId>
<version>0.11.2</version> <!-- {x-version-update;org.revapi:revapi-maven-plugin;external_dependency} -->
<configuration>
<skip>true</skip>

<analysisConfiguration>
<revapi.ignore>
<item>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.azure.core.http.HttpClient;
import com.azure.core.http.HttpPipeline;
import com.azure.core.http.HttpPipelineBuilder;
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
Expand Down Expand Up @@ -49,6 +50,7 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;

/** Entry point to EventGridManager. Azure EventGrid Management Client. */
public final class EventGridManager {
Expand Down Expand Up @@ -210,7 +212,7 @@ public EventGridManager authenticate(TokenCredential credential, AzureProfile pr
.append("-")
.append("com.azure.resourcemanager.eventgrid")
.append("/")
.append("1.1.0-beta.4");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand All @@ -233,11 +235,24 @@ public EventGridManager authenticate(TokenCredential credential, AzureProfile pr
List<HttpPipelinePolicy> policies = new ArrayList<>();
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new RequestIdPolicy());
policies
.addAll(
this
.policies
.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
.collect(Collectors.toList()));
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies);
policies
.addAll(
this
.policies
.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
HttpPolicyProviders.addAfterRetryPolicies(policies);
policies.add(new HttpLoggingPolicy(httpLogOptions));
HttpPipeline httpPipeline =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,11 @@ private PollerFlux<PollResult<DomainTopicInner>, DomainTopicInner> beginCreateOr
return this
.client
.<DomainTopicInner, DomainTopicInner>getLroResult(
mono, this.client.getHttpPipeline(), DomainTopicInner.class, DomainTopicInner.class, Context.NONE);
mono,
this.client.getHttpPipeline(),
DomainTopicInner.class,
DomainTopicInner.class,
this.client.getContext());
}

/**
Expand Down Expand Up @@ -684,7 +688,8 @@ private PollerFlux<PollResult<Void>, Void> beginDeleteAsync(
Mono<Response<Flux<ByteBuffer>>> mono = deleteWithResponseAsync(resourceGroupName, domainName, domainTopicName);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(
mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ private PollerFlux<PollResult<DomainInner>, DomainInner> beginCreateOrUpdateAsyn
return this
.client
.<DomainInner, DomainInner>getLroResult(
mono, this.client.getHttpPipeline(), DomainInner.class, DomainInner.class, Context.NONE);
mono, this.client.getHttpPipeline(), DomainInner.class, DomainInner.class, this.client.getContext());
}

/**
Expand Down Expand Up @@ -725,7 +725,8 @@ private PollerFlux<PollResult<Void>, Void> beginDeleteAsync(String resourceGroup
Mono<Response<Flux<ByteBuffer>>> mono = deleteWithResponseAsync(resourceGroupName, domainName);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(
mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down Expand Up @@ -974,7 +975,7 @@ private PollerFlux<PollResult<DomainInner>, DomainInner> beginUpdateAsync(
return this
.client
.<DomainInner, DomainInner>getLroResult(
mono, this.client.getHttpPipeline(), DomainInner.class, DomainInner.class, Context.NONE);
mono, this.client.getHttpPipeline(), DomainInner.class, DomainInner.class, this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ private PollerFlux<PollResult<EventSubscriptionInner>, EventSubscriptionInner> b
this.client.getHttpPipeline(),
EventSubscriptionInner.class,
EventSubscriptionInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down Expand Up @@ -1029,7 +1029,8 @@ private PollerFlux<PollResult<Void>, Void> beginDeleteAsync(String scope, String
Mono<Response<Flux<ByteBuffer>>> mono = deleteWithResponseAsync(scope, eventSubscriptionName);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(
mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down Expand Up @@ -1346,7 +1347,7 @@ private PollerFlux<PollResult<EventSubscriptionInner>, EventSubscriptionInner> b
this.client.getHttpPipeline(),
EventSubscriptionInner.class,
EventSubscriptionInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ private PollerFlux<PollResult<PrivateEndpointConnectionInner>, PrivateEndpointCo
this.client.getHttpPipeline(),
PrivateEndpointConnectionInner.class,
PrivateEndpointConnectionInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down Expand Up @@ -892,7 +892,8 @@ private PollerFlux<PollResult<Void>, Void> beginDeleteAsync(
deleteWithResponseAsync(resourceGroupName, parentType, parentName, privateEndpointConnectionName);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(
mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ private PollerFlux<PollResult<EventSubscriptionInner>, EventSubscriptionInner> b
this.client.getHttpPipeline(),
EventSubscriptionInner.class,
EventSubscriptionInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down Expand Up @@ -859,7 +859,8 @@ private PollerFlux<PollResult<Void>, Void> beginDeleteAsync(
deleteWithResponseAsync(resourceGroupName, systemTopicName, eventSubscriptionName);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(
mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down Expand Up @@ -1163,7 +1164,7 @@ private PollerFlux<PollResult<EventSubscriptionInner>, EventSubscriptionInner> b
this.client.getHttpPipeline(),
EventSubscriptionInner.class,
EventSubscriptionInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,11 @@ private PollerFlux<PollResult<SystemTopicInner>, SystemTopicInner> beginCreateOr
return this
.client
.<SystemTopicInner, SystemTopicInner>getLroResult(
mono, this.client.getHttpPipeline(), SystemTopicInner.class, SystemTopicInner.class, Context.NONE);
mono,
this.client.getHttpPipeline(),
SystemTopicInner.class,
SystemTopicInner.class,
this.client.getContext());
}

/**
Expand Down Expand Up @@ -704,7 +708,8 @@ private PollerFlux<PollResult<Void>, Void> beginDeleteAsync(String resourceGroup
Mono<Response<Flux<ByteBuffer>>> mono = deleteWithResponseAsync(resourceGroupName, systemTopicName);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(
mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down Expand Up @@ -962,7 +967,11 @@ private PollerFlux<PollResult<SystemTopicInner>, SystemTopicInner> beginUpdateAs
return this
.client
.<SystemTopicInner, SystemTopicInner>getLroResult(
mono, this.client.getHttpPipeline(), SystemTopicInner.class, SystemTopicInner.class, Context.NONE);
mono,
this.client.getHttpPipeline(),
SystemTopicInner.class,
SystemTopicInner.class,
this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ private PollerFlux<PollResult<TopicInner>, TopicInner> beginCreateOrUpdateAsync(
return this
.client
.<TopicInner, TopicInner>getLroResult(
mono, this.client.getHttpPipeline(), TopicInner.class, TopicInner.class, Context.NONE);
mono, this.client.getHttpPipeline(), TopicInner.class, TopicInner.class, this.client.getContext());
}

/**
Expand Down Expand Up @@ -743,7 +743,8 @@ private PollerFlux<PollResult<Void>, Void> beginDeleteAsync(String resourceGroup
Mono<Response<Flux<ByteBuffer>>> mono = deleteWithResponseAsync(resourceGroupName, topicName);
return this
.client
.<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, Context.NONE);
.<Void, Void>getLroResult(
mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
}

/**
Expand Down Expand Up @@ -989,7 +990,7 @@ private PollerFlux<PollResult<TopicInner>, TopicInner> beginUpdateAsync(
return this
.client
.<TopicInner, TopicInner>getLroResult(
mono, this.client.getHttpPipeline(), TopicInner.class, TopicInner.class, Context.NONE);
mono, this.client.getHttpPipeline(), TopicInner.class, TopicInner.class, this.client.getContext());
}

/**
Expand Down Expand Up @@ -1841,7 +1842,7 @@ private PollerFlux<PollResult<TopicSharedAccessKeysInner>, TopicSharedAccessKeys
this.client.getHttpPipeline(),
TopicSharedAccessKeysInner.class,
TopicSharedAccessKeysInner.class,
Context.NONE);
this.client.getContext());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,14 @@
@JsonSubTypes.Type(name = "StringNotIn", value = StringNotInAdvancedFilter.class),
@JsonSubTypes.Type(name = "StringBeginsWith", value = StringBeginsWithAdvancedFilter.class),
@JsonSubTypes.Type(name = "StringEndsWith", value = StringEndsWithAdvancedFilter.class),
@JsonSubTypes.Type(name = "StringContains", value = StringContainsAdvancedFilter.class)
@JsonSubTypes.Type(name = "StringContains", value = StringContainsAdvancedFilter.class),
@JsonSubTypes.Type(name = "NumberInRange", value = NumberInRangeAdvancedFilter.class),
@JsonSubTypes.Type(name = "NumberNotInRange", value = NumberNotInRangeAdvancedFilter.class),
@JsonSubTypes.Type(name = "StringNotBeginsWith", value = StringNotBeginsWithAdvancedFilter.class),
@JsonSubTypes.Type(name = "StringNotEndsWith", value = StringNotEndsWithAdvancedFilter.class),
@JsonSubTypes.Type(name = "StringNotContains", value = StringNotContainsAdvancedFilter.class),
@JsonSubTypes.Type(name = "IsNullOrUndefined", value = IsNullOrUndefinedAdvancedFilter.class),
@JsonSubTypes.Type(name = "IsNotNull", value = IsNotNullAdvancedFilter.class)
})
@Fluent
public class AdvancedFilter {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,27 @@ public final class AdvancedFilterOperatorType extends ExpandableStringEnum<Advan
/** Static value StringContains for AdvancedFilterOperatorType. */
public static final AdvancedFilterOperatorType STRING_CONTAINS = fromString("StringContains");

/** Static value NumberInRange for AdvancedFilterOperatorType. */
public static final AdvancedFilterOperatorType NUMBER_IN_RANGE = fromString("NumberInRange");

/** Static value NumberNotInRange for AdvancedFilterOperatorType. */
public static final AdvancedFilterOperatorType NUMBER_NOT_IN_RANGE = fromString("NumberNotInRange");

/** Static value StringNotBeginsWith for AdvancedFilterOperatorType. */
public static final AdvancedFilterOperatorType STRING_NOT_BEGINS_WITH = fromString("StringNotBeginsWith");

/** Static value StringNotEndsWith for AdvancedFilterOperatorType. */
public static final AdvancedFilterOperatorType STRING_NOT_ENDS_WITH = fromString("StringNotEndsWith");

/** Static value StringNotContains for AdvancedFilterOperatorType. */
public static final AdvancedFilterOperatorType STRING_NOT_CONTAINS = fromString("StringNotContains");

/** Static value IsNullOrUndefined for AdvancedFilterOperatorType. */
public static final AdvancedFilterOperatorType IS_NULL_OR_UNDEFINED = fromString("IsNullOrUndefined");

/** Static value IsNotNull for AdvancedFilterOperatorType. */
public static final AdvancedFilterOperatorType IS_NOT_NULL = fromString("IsNotNull");

/**
* Creates or finds a AdvancedFilterOperatorType from its string representation.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.eventgrid.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** IsNotNull Advanced Filter. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "operatorType")
@JsonTypeName("IsNotNull")
@Fluent
public final class IsNotNullAdvancedFilter extends AdvancedFilter {
@JsonIgnore private final ClientLogger logger = new ClientLogger(IsNotNullAdvancedFilter.class);

/** {@inheritDoc} */
@Override
public IsNotNullAdvancedFilter withKey(String key) {
super.withKey(key);
return this;
}

/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
@Override
public void validate() {
super.validate();
}
}
Loading