Skip to content
Draft
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.1 (2021-03-07)

- Azure Resource Manager LogAnalytics client library for Java. This package contains Microsoft Azure SDK for LogAnalytics Management SDK. Operational Insights Client. Package tag package-2020-10. 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.1 (2020-12-18)

Expand Down
20 changes: 18 additions & 2 deletions sdk/loganalytics/azure-resourcemanager-loganalytics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,21 @@

Azure Resource Manager LogAnalytics client library for Java.

This package contains Microsoft Azure SDK for LogAnalytics Management SDK. Operational Insights Client. Package tag package-2020-08. 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 LogAnalytics Management SDK. Operational Insights Client. Package tag package-2020-10. 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

We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.

If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.

Thank you in advance for your collaboration. We really appreciate your time!

## Documentation

Various documentation is available to help you get started

- [API reference documentation][docs]

## Getting started

Expand All @@ -18,7 +32,7 @@ This package contains Microsoft Azure SDK for LogAnalytics Management SDK. Opera
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-loganalytics</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down Expand Up @@ -75,6 +89,8 @@ For details on contributing to this repository, see the [contributing guide](htt
1. Create new Pull Request

<!-- 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/
[azure_subscription]: https://azure.microsoft.com/free/
[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/master/sdk/identity/azure-identity
Expand Down
7 changes: 6 additions & 1 deletion sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for LogAnalytics Management</name>
<description>This package contains Microsoft Azure SDK for LogAnalytics Management SDK. Operational Insights Client. Package tag package-2020-08. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt</description>
<description>This package contains Microsoft Azure SDK for LogAnalytics Management SDK. Operational Insights Client. Package tag package-2020-10. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down Expand Up @@ -41,6 +41,11 @@
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal>
</properties>
<dependencies>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core</artifactId>
<version>1.13.0</version> <!-- {x-version-update;com.azure:azure-core;dependency} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core-management</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,22 +82,12 @@ public final class LogAnalyticsManager {

private ManagementGroups managementGroups;

private Operations operations;

private OperationStatuses operationStatuses;

private SharedKeysOperations sharedKeysOperations;

private Usages usages;

private Workspaces workspaces;

private DeletedWorkspaces deletedWorkspaces;

private Clusters clusters;

private StorageInsightConfigs storageInsightConfigs;

private SavedSearches savedSearches;

private AvailableServiceTiers availableServiceTiers;
Expand All @@ -108,8 +98,18 @@ public final class LogAnalyticsManager {

private WorkspacePurges workspacePurges;

private StorageInsightConfigs storageInsightConfigs;

private Clusters clusters;

private Operations operations;

private Tables tables;

private Workspaces workspaces;

private DeletedWorkspaces deletedWorkspaces;

private final OperationalInsightsManagementClient clientObject;

private LogAnalyticsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Expand Down Expand Up @@ -228,17 +228,31 @@ public LogAnalyticsManager authenticate(TokenCredential credential, AzureProfile
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");

StringBuilder userAgentBuilder = new StringBuilder();
userAgentBuilder
.append("azsdk-java")
.append("-")
.append("com.azure.resourcemanager.loganalytics")
.append("/")
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
.append("; ")
.append(Configuration.getGlobalConfiguration().get("os.name"))
.append("; ")
.append(Configuration.getGlobalConfiguration().get("os.version"))
.append("; auto-generated)");
} else {
userAgentBuilder.append(" (auto-generated)");
}

if (retryPolicy == null) {
retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
}
List<HttpPipelinePolicy> policies = new ArrayList<>();
policies
.add(
new UserAgentPolicy(
null,
"com.azure.resourcemanager.loganalytics",
"1.0.0-beta.1",
Configuration.getGlobalConfiguration()));
policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
policies.add(new RequestIdPolicy());
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
Expand Down Expand Up @@ -306,14 +320,6 @@ public ManagementGroups managementGroups() {
return managementGroups;
}

/** @return Resource collection API of Operations. */
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
}
return operations;
}

/** @return Resource collection API of OperationStatuses. */
public OperationStatuses operationStatuses() {
if (this.operationStatuses == null) {
Expand All @@ -338,38 +344,6 @@ public Usages usages() {
return usages;
}

/** @return Resource collection API of Workspaces. */
public Workspaces workspaces() {
if (this.workspaces == null) {
this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
}
return workspaces;
}

/** @return Resource collection API of DeletedWorkspaces. */
public DeletedWorkspaces deletedWorkspaces() {
if (this.deletedWorkspaces == null) {
this.deletedWorkspaces = new DeletedWorkspacesImpl(clientObject.getDeletedWorkspaces(), this);
}
return deletedWorkspaces;
}

/** @return Resource collection API of Clusters. */
public Clusters clusters() {
if (this.clusters == null) {
this.clusters = new ClustersImpl(clientObject.getClusters(), this);
}
return clusters;
}

/** @return Resource collection API of StorageInsightConfigs. */
public StorageInsightConfigs storageInsightConfigs() {
if (this.storageInsightConfigs == null) {
this.storageInsightConfigs = new StorageInsightConfigsImpl(clientObject.getStorageInsightConfigs(), this);
}
return storageInsightConfigs;
}

/** @return Resource collection API of SavedSearches. */
public SavedSearches savedSearches() {
if (this.savedSearches == null) {
Expand Down Expand Up @@ -410,6 +384,30 @@ public WorkspacePurges workspacePurges() {
return workspacePurges;
}

/** @return Resource collection API of StorageInsightConfigs. */
public StorageInsightConfigs storageInsightConfigs() {
if (this.storageInsightConfigs == null) {
this.storageInsightConfigs = new StorageInsightConfigsImpl(clientObject.getStorageInsightConfigs(), this);
}
return storageInsightConfigs;
}

/** @return Resource collection API of Clusters. */
public Clusters clusters() {
if (this.clusters == null) {
this.clusters = new ClustersImpl(clientObject.getClusters(), this);
}
return clusters;
}

/** @return Resource collection API of Operations. */
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(clientObject.getOperations(), this);
}
return operations;
}

/** @return Resource collection API of Tables. */
public Tables tables() {
if (this.tables == null) {
Expand All @@ -418,6 +416,22 @@ public Tables tables() {
return tables;
}

/** @return Resource collection API of Workspaces. */
public Workspaces workspaces() {
if (this.workspaces == null) {
this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
}
return workspaces;
}

/** @return Resource collection API of DeletedWorkspaces. */
public DeletedWorkspaces deletedWorkspaces() {
if (this.deletedWorkspaces == null) {
this.deletedWorkspaces = new DeletedWorkspacesImpl(clientObject.getDeletedWorkspaces(), this);
}
return deletedWorkspaces;
}

/**
* @return Wrapped service client OperationalInsightsManagementClient providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ public interface OperationalInsightsManagementClient {
*/
String getEndpoint();

/**
* Gets Api Version.
*
* @return the apiVersion value.
*/
String getApiVersion();

/**
* Gets The HTTP pipeline to send requests through.
*
Expand Down Expand Up @@ -86,13 +79,6 @@ public interface OperationalInsightsManagementClient {
*/
ManagementGroupsClient getManagementGroups();

/**
* Gets the OperationsClient object to access its operations.
*
* @return the OperationsClient object.
*/
OperationsClient getOperations();

/**
* Gets the OperationStatusesClient object to access its operations.
*
Expand All @@ -114,34 +100,6 @@ public interface OperationalInsightsManagementClient {
*/
UsagesClient getUsages();

/**
* Gets the WorkspacesClient object to access its operations.
*
* @return the WorkspacesClient object.
*/
WorkspacesClient getWorkspaces();

/**
* Gets the DeletedWorkspacesClient object to access its operations.
*
* @return the DeletedWorkspacesClient object.
*/
DeletedWorkspacesClient getDeletedWorkspaces();

/**
* Gets the ClustersClient object to access its operations.
*
* @return the ClustersClient object.
*/
ClustersClient getClusters();

/**
* Gets the StorageInsightConfigsClient object to access its operations.
*
* @return the StorageInsightConfigsClient object.
*/
StorageInsightConfigsClient getStorageInsightConfigs();

/**
* Gets the SavedSearchesClient object to access its operations.
*
Expand Down Expand Up @@ -177,10 +135,45 @@ public interface OperationalInsightsManagementClient {
*/
WorkspacePurgesClient getWorkspacePurges();

/**
* Gets the StorageInsightConfigsClient object to access its operations.
*
* @return the StorageInsightConfigsClient object.
*/
StorageInsightConfigsClient getStorageInsightConfigs();

/**
* Gets the ClustersClient object to access its operations.
*
* @return the ClustersClient object.
*/
ClustersClient getClusters();

/**
* Gets the OperationsClient object to access its operations.
*
* @return the OperationsClient object.
*/
OperationsClient getOperations();

/**
* Gets the TablesClient object to access its operations.
*
* @return the TablesClient object.
*/
TablesClient getTables();

/**
* Gets the WorkspacesClient object to access its operations.
*
* @return the WorkspacesClient object.
*/
WorkspacesClient getWorkspaces();

/**
* Gets the DeletedWorkspacesClient object to access its operations.
*
* @return the DeletedWorkspacesClient object.
*/
DeletedWorkspacesClient getDeletedWorkspaces();
}
Loading