Skip to content

Commit e7be9e2

Browse files
author
SDKAuto
committed
CodeGen from PR 14275 in Azure/azure-rest-api-specs
Merge 842cbf5b8f4739e09866ac87cbc1d08ae799c075 into 4a63ff8cb18e6459ef51e5de25e9a51b04df9264
1 parent c678825 commit e7be9e2

39 files changed

+1074
-405
lines changed

sdk/loganalytics/azure-resourcemanager-loganalytics/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Release History
22

3-
## 1.0.0-beta.3 (Unreleased)
3+
## 1.0.0-beta.1 (2021-05-06)
44

5+
- 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).
56

67
## 1.0.0-beta.2 (2021-03-30)
78

sdk/loganalytics/azure-resourcemanager-loganalytics/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager LogAnalytics client library for Java.
44

5-
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).
5+
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).
66

77
## We'd love to hear your feedback
88

@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-loganalytics</artifactId>
35-
<version>1.0.0-beta.2</version>
35+
<version>1.0.0-beta.3</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/loganalytics/azure-resourcemanager-loganalytics/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<packaging>jar</packaging>
1414

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

1919
<licenses>

sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/LogAnalyticsManager.java

Lines changed: 42 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -82,20 +82,12 @@ public final class LogAnalyticsManager {
8282

8383
private ManagementGroups managementGroups;
8484

85-
private Operations operations;
86-
8785
private OperationStatuses operationStatuses;
8886

8987
private SharedKeysOperations sharedKeysOperations;
9088

9189
private Usages usages;
9290

93-
private Workspaces workspaces;
94-
95-
private DeletedWorkspaces deletedWorkspaces;
96-
97-
private Clusters clusters;
98-
9991
private StorageInsightConfigs storageInsightConfigs;
10092

10193
private SavedSearches savedSearches;
@@ -110,6 +102,14 @@ public final class LogAnalyticsManager {
110102

111103
private Tables tables;
112104

105+
private Clusters clusters;
106+
107+
private Operations operations;
108+
109+
private Workspaces workspaces;
110+
111+
private DeletedWorkspaces deletedWorkspaces;
112+
113113
private final OperationalInsightsManagementClient clientObject;
114114

115115
private LogAnalyticsManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -234,7 +234,7 @@ public LogAnalyticsManager authenticate(TokenCredential credential, AzureProfile
234234
.append("-")
235235
.append("com.azure.resourcemanager.loganalytics")
236236
.append("/")
237-
.append("1.0.0-beta.2");
237+
.append("1.0.0-beta.1");
238238
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
239239
userAgentBuilder
240240
.append(" (")
@@ -261,6 +261,7 @@ public LogAnalyticsManager authenticate(TokenCredential credential, AzureProfile
261261
.add(
262262
new BearerTokenAuthenticationPolicy(
263263
credential, profile.getEnvironment().getManagementEndpoint() + "/.default"));
264+
policies.addAll(this.policies);
264265
HttpPolicyProviders.addAfterRetryPolicies(policies);
265266
policies.add(new HttpLoggingPolicy(httpLogOptions));
266267
HttpPipeline httpPipeline =
@@ -320,14 +321,6 @@ public ManagementGroups managementGroups() {
320321
return managementGroups;
321322
}
322323

323-
/** @return Resource collection API of Operations. */
324-
public Operations operations() {
325-
if (this.operations == null) {
326-
this.operations = new OperationsImpl(clientObject.getOperations(), this);
327-
}
328-
return operations;
329-
}
330-
331324
/** @return Resource collection API of OperationStatuses. */
332325
public OperationStatuses operationStatuses() {
333326
if (this.operationStatuses == null) {
@@ -352,30 +345,6 @@ public Usages usages() {
352345
return usages;
353346
}
354347

355-
/** @return Resource collection API of Workspaces. */
356-
public Workspaces workspaces() {
357-
if (this.workspaces == null) {
358-
this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
359-
}
360-
return workspaces;
361-
}
362-
363-
/** @return Resource collection API of DeletedWorkspaces. */
364-
public DeletedWorkspaces deletedWorkspaces() {
365-
if (this.deletedWorkspaces == null) {
366-
this.deletedWorkspaces = new DeletedWorkspacesImpl(clientObject.getDeletedWorkspaces(), this);
367-
}
368-
return deletedWorkspaces;
369-
}
370-
371-
/** @return Resource collection API of Clusters. */
372-
public Clusters clusters() {
373-
if (this.clusters == null) {
374-
this.clusters = new ClustersImpl(clientObject.getClusters(), this);
375-
}
376-
return clusters;
377-
}
378-
379348
/** @return Resource collection API of StorageInsightConfigs. */
380349
public StorageInsightConfigs storageInsightConfigs() {
381350
if (this.storageInsightConfigs == null) {
@@ -432,6 +401,38 @@ public Tables tables() {
432401
return tables;
433402
}
434403

404+
/** @return Resource collection API of Clusters. */
405+
public Clusters clusters() {
406+
if (this.clusters == null) {
407+
this.clusters = new ClustersImpl(clientObject.getClusters(), this);
408+
}
409+
return clusters;
410+
}
411+
412+
/** @return Resource collection API of Operations. */
413+
public Operations operations() {
414+
if (this.operations == null) {
415+
this.operations = new OperationsImpl(clientObject.getOperations(), this);
416+
}
417+
return operations;
418+
}
419+
420+
/** @return Resource collection API of Workspaces. */
421+
public Workspaces workspaces() {
422+
if (this.workspaces == null) {
423+
this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
424+
}
425+
return workspaces;
426+
}
427+
428+
/** @return Resource collection API of DeletedWorkspaces. */
429+
public DeletedWorkspaces deletedWorkspaces() {
430+
if (this.deletedWorkspaces == null) {
431+
this.deletedWorkspaces = new DeletedWorkspacesImpl(clientObject.getDeletedWorkspaces(), this);
432+
}
433+
return deletedWorkspaces;
434+
}
435+
435436
/**
436437
* @return Wrapped service client OperationalInsightsManagementClient providing direct access to the underlying
437438
* auto-generated API implementation, based on Azure REST API.

sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/fluent/OperationalInsightsManagementClient.java

Lines changed: 28 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ public interface OperationalInsightsManagementClient {
2323
*/
2424
String getEndpoint();
2525

26-
/**
27-
* Gets Api Version.
28-
*
29-
* @return the apiVersion value.
30-
*/
31-
String getApiVersion();
32-
3326
/**
3427
* Gets The HTTP pipeline to send requests through.
3528
*
@@ -86,13 +79,6 @@ public interface OperationalInsightsManagementClient {
8679
*/
8780
ManagementGroupsClient getManagementGroups();
8881

89-
/**
90-
* Gets the OperationsClient object to access its operations.
91-
*
92-
* @return the OperationsClient object.
93-
*/
94-
OperationsClient getOperations();
95-
9682
/**
9783
* Gets the OperationStatusesClient object to access its operations.
9884
*
@@ -114,27 +100,6 @@ public interface OperationalInsightsManagementClient {
114100
*/
115101
UsagesClient getUsages();
116102

117-
/**
118-
* Gets the WorkspacesClient object to access its operations.
119-
*
120-
* @return the WorkspacesClient object.
121-
*/
122-
WorkspacesClient getWorkspaces();
123-
124-
/**
125-
* Gets the DeletedWorkspacesClient object to access its operations.
126-
*
127-
* @return the DeletedWorkspacesClient object.
128-
*/
129-
DeletedWorkspacesClient getDeletedWorkspaces();
130-
131-
/**
132-
* Gets the ClustersClient object to access its operations.
133-
*
134-
* @return the ClustersClient object.
135-
*/
136-
ClustersClient getClusters();
137-
138103
/**
139104
* Gets the StorageInsightConfigsClient object to access its operations.
140105
*
@@ -183,4 +148,32 @@ public interface OperationalInsightsManagementClient {
183148
* @return the TablesClient object.
184149
*/
185150
TablesClient getTables();
151+
152+
/**
153+
* Gets the ClustersClient object to access its operations.
154+
*
155+
* @return the ClustersClient object.
156+
*/
157+
ClustersClient getClusters();
158+
159+
/**
160+
* Gets the OperationsClient object to access its operations.
161+
*
162+
* @return the OperationsClient object.
163+
*/
164+
OperationsClient getOperations();
165+
166+
/**
167+
* Gets the WorkspacesClient object to access its operations.
168+
*
169+
* @return the WorkspacesClient object.
170+
*/
171+
WorkspacesClient getWorkspaces();
172+
173+
/**
174+
* Gets the DeletedWorkspacesClient object to access its operations.
175+
*
176+
* @return the DeletedWorkspacesClient object.
177+
*/
178+
DeletedWorkspacesClient getDeletedWorkspaces();
186179
}

0 commit comments

Comments
 (0)