Skip to content

Commit d29c0ab

Browse files
author
SDKAuto
committed
CodeGen from PR 11649 in Azure/azure-rest-api-specs
Merge 02f6511d7e980ed7e91d0adb183ee92bff265234 into 11e915c47baf981dc5613fd782fccef4bc942a42
1 parent c417552 commit d29c0ab

File tree

13 files changed

+464
-459
lines changed

13 files changed

+464
-459
lines changed

sdk/loganalytics/mgmt-v2015_03_20/pom.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<parent>
1212
<groupId>com.microsoft.azure</groupId>
1313
<artifactId>azure-arm-parent</artifactId>
14-
<version>1.2.0</version>
15-
<relativePath>../../parents/azure-arm-parent</relativePath>
14+
<version>1.1.0</version>
15+
<relativePath>../../../pom.management.xml</relativePath>
1616
</parent>
1717
<artifactId>azure-mgmt-loganalytics</artifactId>
1818
<version>1.0.0-beta</version>
@@ -71,6 +71,8 @@
7171
<artifactId>azure-arm-client-runtime</artifactId>
7272
<type>test-jar</type>
7373
<scope>test</scope>
74+
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
75+
<version>1.6.5</version>
7476
</dependency>
7577
</dependencies>
7678
<build>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.loganalytics.v2015_03_20;
10+
11+
import com.microsoft.azure.arm.model.HasInner;
12+
import com.microsoft.azure.management.loganalytics.v2015_03_20.implementation.AvailableServiceTierInner;
13+
import com.microsoft.azure.arm.resources.models.HasManager;
14+
import com.microsoft.azure.management.loganalytics.v2015_03_20.implementation.LogAnalyticsManager;
15+
import org.joda.time.DateTime;
16+
17+
/**
18+
* Type representing AvailableServiceTier.
19+
*/
20+
public interface AvailableServiceTier extends HasInner<AvailableServiceTierInner>, HasManager<LogAnalyticsManager> {
21+
/**
22+
* @return the capacityReservationLevel value.
23+
*/
24+
Long capacityReservationLevel();
25+
26+
/**
27+
* @return the defaultRetention value.
28+
*/
29+
Long defaultRetention();
30+
31+
/**
32+
* @return the enabled value.
33+
*/
34+
Boolean enabled();
35+
36+
/**
37+
* @return the lastSkuUpdate value.
38+
*/
39+
DateTime lastSkuUpdate();
40+
41+
/**
42+
* @return the maximumRetention value.
43+
*/
44+
Long maximumRetention();
45+
46+
/**
47+
* @return the minimumRetention value.
48+
*/
49+
Long minimumRetention();
50+
51+
/**
52+
* @return the serviceTier value.
53+
*/
54+
SkuNameEnum serviceTier();
55+
56+
}

sdk/loganalytics/mgmt-v2015_03_20/src/main/java/com/microsoft/azure/management/loganalytics/v2015_03_20/SavedSearches.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,4 @@ public interface SavedSearches extends SupportsCreating<SavedSearch.DefinitionSt
5050
*/
5151
Completable deleteAsync(String resourceGroupName, String workspaceName, String savedSearchId);
5252

53-
/**
54-
* Gets the results from a saved search for a given workspace.
55-
*
56-
* @param resourceGroupName The Resource Group name.
57-
* @param workspaceName The Log Analytics Workspace name.
58-
* @param savedSearchId The id of the saved search.
59-
* @throws IllegalArgumentException thrown if parameters fail the validation
60-
* @return the observable for the request
61-
*/
62-
Observable<SearchResultsResponse> getResultsAsync(String resourceGroupName, String workspaceName, String savedSearchId);
63-
6453
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.loganalytics.v2015_03_20;
10+
11+
import java.util.Collection;
12+
import com.fasterxml.jackson.annotation.JsonCreator;
13+
import com.microsoft.rest.ExpandableStringEnum;
14+
15+
/**
16+
* Defines values for SkuNameEnum.
17+
*/
18+
public final class SkuNameEnum extends ExpandableStringEnum<SkuNameEnum> {
19+
/** Static value Free for SkuNameEnum. */
20+
public static final SkuNameEnum FREE = fromString("Free");
21+
22+
/** Static value Standard for SkuNameEnum. */
23+
public static final SkuNameEnum STANDARD = fromString("Standard");
24+
25+
/** Static value Premium for SkuNameEnum. */
26+
public static final SkuNameEnum PREMIUM = fromString("Premium");
27+
28+
/** Static value PerNode for SkuNameEnum. */
29+
public static final SkuNameEnum PER_NODE = fromString("PerNode");
30+
31+
/** Static value PerGB2018 for SkuNameEnum. */
32+
public static final SkuNameEnum PER_GB2018 = fromString("PerGB2018");
33+
34+
/** Static value Standalone for SkuNameEnum. */
35+
public static final SkuNameEnum STANDALONE = fromString("Standalone");
36+
37+
/** Static value CapacityReservation for SkuNameEnum. */
38+
public static final SkuNameEnum CAPACITY_RESERVATION = fromString("CapacityReservation");
39+
40+
/**
41+
* Creates or finds a SkuNameEnum from its string representation.
42+
* @param name a name to look for
43+
* @return the corresponding SkuNameEnum
44+
*/
45+
@JsonCreator
46+
public static SkuNameEnum fromString(String name) {
47+
return fromString(name, SkuNameEnum.class);
48+
}
49+
50+
/**
51+
* @return known SkuNameEnum values
52+
*/
53+
public static Collection<SkuNameEnum> values() {
54+
return values(SkuNameEnum.class);
55+
}
56+
}

sdk/loganalytics/mgmt-v2015_03_20/src/main/java/com/microsoft/azure/management/loganalytics/v2015_03_20/Workspaces.java

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,56 +9,47 @@
99
package com.microsoft.azure.management.loganalytics.v2015_03_20;
1010

1111
import rx.Observable;
12+
import com.microsoft.azure.management.loganalytics.v2015_03_20.implementation.WorkspacesInner;
13+
import com.microsoft.azure.arm.model.HasInner;
1214
import rx.Completable;
1315

1416
/**
1517
* Type representing Workspaces.
1618
*/
17-
public interface Workspaces {
19+
public interface Workspaces extends HasInner<WorkspacesInner> {
1820
/**
19-
* Gets status of an ongoing purge operation.
20-
*
21-
* @param resourceGroupName The Resource Group name.
22-
* @param workspaceName The Log Analytics Workspace name.
23-
* @throws IllegalArgumentException thrown if parameters fail the validation
24-
* @return the observable for the request
25-
*/
26-
Observable<WorkspacePurgeStatusResponse> getPurgeStatusAsync(String resourceGroupName, String workspaceName);
27-
28-
/**
29-
* Gets the schema for a given workspace.
21+
* Gets the available service tiers for the workspace.
3022
*
3123
* @param resourceGroupName The Resource Group name.
3224
* @param workspaceName The Log Analytics Workspace name.
3325
* @throws IllegalArgumentException thrown if parameters fail the validation
3426
* @return the observable for the request
3527
*/
36-
Observable<SearchGetSchemaResponse> getSchemaAsync(String resourceGroupName, String workspaceName);
28+
Observable<AvailableServiceTier> availableServiceTiersAsync(String resourceGroupName, String workspaceName);
3729

3830
/**
39-
* Submit a search for a given workspace. The response will contain an id to track the search. User can use the id to poll the search status and get the full search result later if the search takes long time to finish.
31+
* Gets status of an ongoing purge operation.
4032
*
4133
* @param resourceGroupName The Resource Group name.
4234
* @param workspaceName The Log Analytics Workspace name.
43-
* @param parameters The parameters required to execute a search query.
4435
* @throws IllegalArgumentException thrown if parameters fail the validation
4536
* @return the observable for the request
4637
*/
47-
Observable<SearchResultsResponse> getSearchResultsAsync(String resourceGroupName, String workspaceName, SearchParameters parameters);
38+
Observable<WorkspacePurgeStatusResponse> getPurgeStatusAsync(String resourceGroupName, String workspaceName);
4839

4940
/**
50-
* Gets updated search results for a given search query.
41+
* Gets the schema for a given workspace.
5142
*
5243
* @param resourceGroupName The Resource Group name.
5344
* @param workspaceName The Log Analytics Workspace name.
54-
* @param id The id of the search that will have results updated. You can get the id from the response of the GetResults call.
5545
* @throws IllegalArgumentException thrown if parameters fail the validation
5646
* @return the observable for the request
5747
*/
58-
Observable<SearchResultsResponse> updateSearchResultsAsync(String resourceGroupName, String workspaceName, String id);
48+
Observable<SearchGetSchemaResponse> getSchemaAsync(String resourceGroupName, String workspaceName);
5949

6050
/**
6151
* Purges data in an Log Analytics workspace by a set of user-defined filters.
52+
In order to manage system resources, purge requests are throttled at 50 requests per hour. You should batch the execution of purge requests by sending a single command whose predicate includes all user identities that require purging. Use the in operator to specify multiple identities. You should run the query prior to using for a purge request to verify that the results are expected.
6253
*
6354
* @param resourceGroupName The Resource Group name.
6455
* @param workspaceName The Log Analytics Workspace name.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.loganalytics.v2015_03_20.implementation;
10+
11+
import com.microsoft.azure.management.loganalytics.v2015_03_20.AvailableServiceTier;
12+
import com.microsoft.azure.arm.model.implementation.WrapperImpl;
13+
import rx.Observable;
14+
import org.joda.time.DateTime;
15+
import com.microsoft.azure.management.loganalytics.v2015_03_20.SkuNameEnum;
16+
17+
class AvailableServiceTierImpl extends WrapperImpl<AvailableServiceTierInner> implements AvailableServiceTier {
18+
private final LogAnalyticsManager manager;
19+
20+
AvailableServiceTierImpl(AvailableServiceTierInner inner, LogAnalyticsManager manager) {
21+
super(inner);
22+
this.manager = manager;
23+
}
24+
25+
@Override
26+
public LogAnalyticsManager manager() {
27+
return this.manager;
28+
}
29+
30+
31+
32+
@Override
33+
public Long capacityReservationLevel() {
34+
return this.inner().capacityReservationLevel();
35+
}
36+
37+
@Override
38+
public Long defaultRetention() {
39+
return this.inner().defaultRetention();
40+
}
41+
42+
@Override
43+
public Boolean enabled() {
44+
return this.inner().enabled();
45+
}
46+
47+
@Override
48+
public DateTime lastSkuUpdate() {
49+
return this.inner().lastSkuUpdate();
50+
}
51+
52+
@Override
53+
public Long maximumRetention() {
54+
return this.inner().maximumRetention();
55+
}
56+
57+
@Override
58+
public Long minimumRetention() {
59+
return this.inner().minimumRetention();
60+
}
61+
62+
@Override
63+
public SkuNameEnum serviceTier() {
64+
return this.inner().serviceTier();
65+
}
66+
67+
}

0 commit comments

Comments
 (0)