Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ReleasePR mgmt-v2015_03_20] AssociatedWorkspaces and CapacityReservationProperties added to cluster #17621

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
6 changes: 4 additions & 2 deletions sdk/loganalytics/mgmt-v2015_03_20/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<relativePath>../../parents/azure-arm-parent</relativePath>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-loganalytics</artifactId>
<version>1.0.0-beta</version>
Expand Down Expand Up @@ -71,6 +71,8 @@
<artifactId>azure-arm-client-runtime</artifactId>
<type>test-jar</type>
<scope>test</scope>
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
<version>1.6.5</version>
</dependency>
</dependencies>
<build>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.loganalytics.v2015_03_20;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.loganalytics.v2015_03_20.implementation.AvailableServiceTierInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.loganalytics.v2015_03_20.implementation.LogAnalyticsManager;
import org.joda.time.DateTime;

/**
* Type representing AvailableServiceTier.
*/
public interface AvailableServiceTier extends HasInner<AvailableServiceTierInner>, HasManager<LogAnalyticsManager> {
/**
* @return the capacityReservationLevel value.
*/
Long capacityReservationLevel();

/**
* @return the defaultRetention value.
*/
Long defaultRetention();

/**
* @return the enabled value.
*/
Boolean enabled();

/**
* @return the lastSkuUpdate value.
*/
DateTime lastSkuUpdate();

/**
* @return the maximumRetention value.
*/
Long maximumRetention();

/**
* @return the minimumRetention value.
*/
Long minimumRetention();

/**
* @return the serviceTier value.
*/
SkuNameEnum serviceTier();

}
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,4 @@ public interface SavedSearches extends SupportsCreating<SavedSearch.DefinitionSt
*/
Completable deleteAsync(String resourceGroupName, String workspaceName, String savedSearchId);

/**
* Gets the results from a saved search for a given workspace.
*
* @param resourceGroupName The Resource Group name.
* @param workspaceName The Log Analytics Workspace name.
* @param savedSearchId The id of the saved search.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<SearchResultsResponse> getResultsAsync(String resourceGroupName, String workspaceName, String savedSearchId);

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.loganalytics.v2015_03_20;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for SkuNameEnum.
*/
public final class SkuNameEnum extends ExpandableStringEnum<SkuNameEnum> {
/** Static value Free for SkuNameEnum. */
public static final SkuNameEnum FREE = fromString("Free");

/** Static value Standard for SkuNameEnum. */
public static final SkuNameEnum STANDARD = fromString("Standard");

/** Static value Premium for SkuNameEnum. */
public static final SkuNameEnum PREMIUM = fromString("Premium");

/** Static value PerNode for SkuNameEnum. */
public static final SkuNameEnum PER_NODE = fromString("PerNode");

/** Static value PerGB2018 for SkuNameEnum. */
public static final SkuNameEnum PER_GB2018 = fromString("PerGB2018");

/** Static value Standalone for SkuNameEnum. */
public static final SkuNameEnum STANDALONE = fromString("Standalone");

/** Static value CapacityReservation for SkuNameEnum. */
public static final SkuNameEnum CAPACITY_RESERVATION = fromString("CapacityReservation");

/**
* Creates or finds a SkuNameEnum from its string representation.
* @param name a name to look for
* @return the corresponding SkuNameEnum
*/
@JsonCreator
public static SkuNameEnum fromString(String name) {
return fromString(name, SkuNameEnum.class);
}

/**
* @return known SkuNameEnum values
*/
public static Collection<SkuNameEnum> values() {
return values(SkuNameEnum.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,56 +9,47 @@
package com.microsoft.azure.management.loganalytics.v2015_03_20;

import rx.Observable;
import com.microsoft.azure.management.loganalytics.v2015_03_20.implementation.WorkspacesInner;
import com.microsoft.azure.arm.model.HasInner;
import rx.Completable;

/**
* Type representing Workspaces.
*/
public interface Workspaces {
public interface Workspaces extends HasInner<WorkspacesInner> {
/**
* Gets status of an ongoing purge operation.
*
* @param resourceGroupName The Resource Group name.
* @param workspaceName The Log Analytics Workspace name.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<WorkspacePurgeStatusResponse> getPurgeStatusAsync(String resourceGroupName, String workspaceName);

/**
* Gets the schema for a given workspace.
* Gets the available service tiers for the workspace.
*
* @param resourceGroupName The Resource Group name.
* @param workspaceName The Log Analytics Workspace name.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<SearchGetSchemaResponse> getSchemaAsync(String resourceGroupName, String workspaceName);
Observable<AvailableServiceTier> availableServiceTiersAsync(String resourceGroupName, String workspaceName);

/**
* 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.
* Gets status of an ongoing purge operation.
*
* @param resourceGroupName The Resource Group name.
* @param workspaceName The Log Analytics Workspace name.
* @param parameters The parameters required to execute a search query.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<SearchResultsResponse> getSearchResultsAsync(String resourceGroupName, String workspaceName, SearchParameters parameters);
Observable<WorkspacePurgeStatusResponse> getPurgeStatusAsync(String resourceGroupName, String workspaceName);

/**
* Gets updated search results for a given search query.
* Gets the schema for a given workspace.
*
* @param resourceGroupName The Resource Group name.
* @param workspaceName The Log Analytics Workspace name.
* @param id The id of the search that will have results updated. You can get the id from the response of the GetResults call.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<SearchResultsResponse> updateSearchResultsAsync(String resourceGroupName, String workspaceName, String id);
Observable<SearchGetSchemaResponse> getSchemaAsync(String resourceGroupName, String workspaceName);

/**
* Purges data in an Log Analytics workspace by a set of user-defined filters.
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.
*
* @param resourceGroupName The Resource Group name.
* @param workspaceName The Log Analytics Workspace name.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.loganalytics.v2015_03_20.implementation;

import com.microsoft.azure.management.loganalytics.v2015_03_20.AvailableServiceTier;
import com.microsoft.azure.arm.model.implementation.WrapperImpl;
import rx.Observable;
import org.joda.time.DateTime;
import com.microsoft.azure.management.loganalytics.v2015_03_20.SkuNameEnum;

class AvailableServiceTierImpl extends WrapperImpl<AvailableServiceTierInner> implements AvailableServiceTier {
private final LogAnalyticsManager manager;

AvailableServiceTierImpl(AvailableServiceTierInner inner, LogAnalyticsManager manager) {
super(inner);
this.manager = manager;
}

@Override
public LogAnalyticsManager manager() {
return this.manager;
}



@Override
public Long capacityReservationLevel() {
return this.inner().capacityReservationLevel();
}

@Override
public Long defaultRetention() {
return this.inner().defaultRetention();
}

@Override
public Boolean enabled() {
return this.inner().enabled();
}

@Override
public DateTime lastSkuUpdate() {
return this.inner().lastSkuUpdate();
}

@Override
public Long maximumRetention() {
return this.inner().maximumRetention();
}

@Override
public Long minimumRetention() {
return this.inner().minimumRetention();
}

@Override
public SkuNameEnum serviceTier() {
return this.inner().serviceTier();
}

}
Loading