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/elastic/azure-resourcemanager-elastic/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.5 (Unreleased)
## 1.0.0-beta.1 (2023-11-13)

- Azure Resource Manager elastic client library for Java. This package contains Microsoft Azure SDK for elastic Management SDK. Package tag package-2023-11-01-preview. 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
10 changes: 6 additions & 4 deletions sdk/elastic/azure-resourcemanager-elastic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager elastic client library for Java.

This package contains Microsoft Azure SDK for elastic Management SDK. Package tag package-2023-02-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
This package contains Microsoft Azure SDK for elastic Management SDK. Package tag package-2023-11-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## We'd love to hear your feedback

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-elastic</artifactId>
<version>1.0.0-beta.4</version>
<version>1.0.0-beta.5</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand All @@ -45,7 +45,7 @@ Azure Management Libraries require a `TokenCredential` implementation for authen

### Authentication

By default, Azure Active Directory token authentication depends on correct configuration of the following environment variables.
By default, Microsoft Entra ID token authentication depends on correct configuration of the following environment variables.

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
Expand Down Expand Up @@ -94,7 +94,7 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
<!-- LINKS -->
[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
[docs]: https://azure.github.io/azure-sdk-for-java/
[jdk]: https://docs.microsoft.com/java/azure/jdk/
[jdk]: https://learn.microsoft.com/azure/developer/java/fundamentals/
[azure_subscription]: https://azure.microsoft.com/free/
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
Expand All @@ -103,3 +103,5 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
[coc]: https://opensource.microsoft.com/codeofconduct/
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/

![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-java%2Fsdk%2Felastic%2Fazure-resourcemanager-elastic%2FREADME.png)
125 changes: 96 additions & 29 deletions sdk/elastic/azure-resourcemanager-elastic/SAMPLE.md

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion sdk/elastic/azure-resourcemanager-elastic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for elastic Management</name>
<description>This package contains Microsoft Azure SDK for elastic Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2023-02-01-preview.</description>
<description>This package contains Microsoft Azure SDK for elastic Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2023-11-01-preview.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand All @@ -45,6 +45,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
<revapi.skip>true</revapi.skip>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
import com.azure.resourcemanager.elastic.fluent.MicrosoftElastic;
import com.azure.resourcemanager.elastic.implementation.AllTrafficFiltersImpl;
import com.azure.resourcemanager.elastic.implementation.AssociateTrafficFiltersImpl;
import com.azure.resourcemanager.elastic.implementation.BillingInfoesImpl;
import com.azure.resourcemanager.elastic.implementation.ConnectedPartnerResourcesImpl;
import com.azure.resourcemanager.elastic.implementation.CreateAndAssociateIpFiltersImpl;
import com.azure.resourcemanager.elastic.implementation.CreateAndAssociatePLFiltersImpl;
import com.azure.resourcemanager.elastic.implementation.DeploymentInfoesImpl;
Expand All @@ -48,6 +50,8 @@
import com.azure.resourcemanager.elastic.implementation.VMIngestionsImpl;
import com.azure.resourcemanager.elastic.models.AllTrafficFilters;
import com.azure.resourcemanager.elastic.models.AssociateTrafficFilters;
import com.azure.resourcemanager.elastic.models.BillingInfoes;
import com.azure.resourcemanager.elastic.models.ConnectedPartnerResources;
import com.azure.resourcemanager.elastic.models.CreateAndAssociateIpFilters;
import com.azure.resourcemanager.elastic.models.CreateAndAssociatePLFilters;
import com.azure.resourcemanager.elastic.models.DeploymentInfoes;
Expand Down Expand Up @@ -88,6 +92,10 @@ public final class ElasticManager {

private ExternalUsers externalUsers;

private BillingInfoes billingInfoes;

private ConnectedPartnerResources connectedPartnerResources;

private TagRules tagRules;

private VMHosts vMHosts;
Expand Down Expand Up @@ -283,7 +291,7 @@ public ElasticManager authenticate(TokenCredential credential, AzureProfile prof
.append("-")
.append("com.azure.resourcemanager.elastic")
.append("/")
.append("1.0.0-beta.4");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -412,6 +420,31 @@ public ExternalUsers externalUsers() {
return externalUsers;
}

/**
* Gets the resource collection API of BillingInfoes.
*
* @return Resource collection API of BillingInfoes.
*/
public BillingInfoes billingInfoes() {
if (this.billingInfoes == null) {
this.billingInfoes = new BillingInfoesImpl(clientObject.getBillingInfoes(), this);
}
return billingInfoes;
}

/**
* Gets the resource collection API of ConnectedPartnerResources.
*
* @return Resource collection API of ConnectedPartnerResources.
*/
public ConnectedPartnerResources connectedPartnerResources() {
if (this.connectedPartnerResources == null) {
this.connectedPartnerResources =
new ConnectedPartnerResourcesImpl(clientObject.getConnectedPartnerResources(), this);
}
return connectedPartnerResources;
}

/**
* Gets the resource collection API of TagRules. It manages MonitoringTagRules.
*
Expand Down Expand Up @@ -598,8 +631,10 @@ public Organizations organizations() {
}

/**
* @return Wrapped service client MicrosoftElastic providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
* Gets wrapped service client MicrosoftElastic providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
*
* @return Wrapped service client MicrosoftElastic.
*/
public MicrosoftElastic serviceClient() {
return this.clientObject;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public interface AllTrafficFiltersClient {
/**
* Get the list of all traffic filters for the account.
*
* @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
Expand All @@ -30,7 +30,7 @@ Response<ElasticTrafficFilterResponseInner> listWithResponse(
/**
* Get the list of all traffic filters for the account.
*
* @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public interface AssociateTrafficFiltersClient {
/**
* Associate traffic filter for the given deployment.
*
* @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
Expand All @@ -28,7 +28,7 @@ public interface AssociateTrafficFiltersClient {
/**
* Associate traffic filter for the given deployment.
*
* @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param rulesetId Ruleset Id of the filter.
* @param context The context to associate with this operation.
Expand All @@ -44,7 +44,7 @@ SyncPoller<PollResult<Void>, Void> beginAssociate(
/**
* Associate traffic filter for the given deployment.
*
* @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
Expand All @@ -56,7 +56,7 @@ SyncPoller<PollResult<Void>, Void> beginAssociate(
/**
* Associate traffic filter for the given deployment.
*
* @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param rulesetId Ruleset Id of the filter.
* @param context The context to associate with this operation.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.elastic.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.elastic.fluent.models.BillingInfoResponseInner;

/** An instance of this class provides access to all the operations defined in BillingInfoesClient. */
public interface BillingInfoesClient {
/**
* Get marketplace and organization info mapped to the given monitor.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return marketplace and organization info mapped to the given monitor along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<BillingInfoResponseInner> getWithResponse(String resourceGroupName, String monitorName, Context context);

/**
* Get marketplace and organization info mapped to the given monitor.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return marketplace and organization info mapped to the given monitor.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BillingInfoResponseInner get(String resourceGroupName, String monitorName);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.elastic.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
import com.azure.resourcemanager.elastic.fluent.models.ConnectedPartnerResourcesListFormatInner;

/** An instance of this class provides access to all the operations defined in ConnectedPartnerResourcesClient. */
public interface ConnectedPartnerResourcesClient {
/**
* List of all active deployments that are associated with the marketplace subscription linked to the given monitor.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of all active elastic deployments as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ConnectedPartnerResourcesListFormatInner> list(String resourceGroupName, String monitorName);

/**
* List of all active deployments that are associated with the marketplace subscription linked to the given monitor.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of all active elastic deployments as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ConnectedPartnerResourcesListFormatInner> list(
String resourceGroupName, String monitorName, Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public interface CreateAndAssociateIpFiltersClient {
/**
* Create and Associate IP traffic filter for the given deployment.
*
* @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
Expand All @@ -28,7 +28,7 @@ public interface CreateAndAssociateIpFiltersClient {
/**
* Create and Associate IP traffic filter for the given deployment.
*
* @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param ips List of ips.
* @param name Name of the traffic filter.
Expand All @@ -45,7 +45,7 @@ SyncPoller<PollResult<Void>, Void> beginCreate(
/**
* Create and Associate IP traffic filter for the given deployment.
*
* @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
Expand All @@ -57,7 +57,7 @@ SyncPoller<PollResult<Void>, Void> beginCreate(
/**
* Create and Associate IP traffic filter for the given deployment.
*
* @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param ips List of ips.
* @param name Name of the traffic filter.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public interface CreateAndAssociatePLFiltersClient {
/**
* Create and Associate private link traffic filter for the given deployment.
*
* @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
Expand All @@ -28,7 +28,7 @@ public interface CreateAndAssociatePLFiltersClient {
/**
* Create and Associate private link traffic filter for the given deployment.
*
* @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param name Name of the traffic filter.
* @param privateEndpointGuid Guid of the private endpoint.
Expand All @@ -51,7 +51,7 @@ SyncPoller<PollResult<Void>, Void> beginCreate(
/**
* Create and Associate private link traffic filter for the given deployment.
*
* @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
Expand All @@ -63,7 +63,7 @@ SyncPoller<PollResult<Void>, Void> beginCreate(
/**
* Create and Associate private link traffic filter for the given deployment.
*
* @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param monitorName Monitor resource name.
* @param name Name of the traffic filter.
* @param privateEndpointGuid Guid of the private endpoint.
Expand Down
Loading