Skip to content
Open
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: 2 additions & 2 deletions sdk/storagecache/mgmt-v2020_03_01/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.3.0</version>
<relativePath>../../parents/azure-arm-parent</relativePath>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-storagecache</artifactId>
<version>1.0.0-beta</version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,24 @@ public interface ApiOperation extends HasInner<ApiOperationInner>, HasManager<St
*/
ApiOperationDisplay display();

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

/**
* @return the name value.
*/
String name();

/**
* @return the origin value.
*/
String origin();

/**
* @return the serviceSpecification value.
*/
ApiOperationPropertiesServiceSpecification serviceSpecification();

}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ public class ApiOperationDisplay {
@JsonProperty(value = "resource")
private String resource;

/**
* The description of the operation.
*/
@JsonProperty(value = "description")
private String description;

/**
* Get operation type: Read, write, delete, etc.
*
Expand Down Expand Up @@ -92,4 +98,24 @@ public ApiOperationDisplay withResource(String resource) {
return this;
}

/**
* Get the description of the operation.
*
* @return the description value
*/
public String description() {
return this.description;
}

/**
* Set the description of the operation.
*
* @param description the description value to set
* @return the ApiOperationDisplay object itself.
*/
public ApiOperationDisplay withDescription(String description) {
this.description = description;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/**
* 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.storagecache.v2020_03_01;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Specification of the all the metrics provided for a resource type.
*/
public class ApiOperationPropertiesServiceSpecification {
/**
* Details about operations related to metrics.
*/
@JsonProperty(value = "metricSpecifications")
private List<MetricSpecification> metricSpecifications;

/**
* Get details about operations related to metrics.
*
* @return the metricSpecifications value
*/
public List<MetricSpecification> metricSpecifications() {
return this.metricSpecifications;
}

/**
* Set details about operations related to metrics.
*
* @param metricSpecifications the metricSpecifications value to set
* @return the ApiOperationPropertiesServiceSpecification object itself.
*/
public ApiOperationPropertiesServiceSpecification withMetricSpecifications(List<MetricSpecification> metricSpecifications) {
this.metricSpecifications = metricSpecifications;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/**
* 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.storagecache.v2020_03_01;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.storagecache.v2020_03_01.implementation.AscOperationInner;
import com.microsoft.azure.arm.model.Indexable;
import com.microsoft.azure.arm.model.Refreshable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.storagecache.v2020_03_01.implementation.StorageCacheManager;

/**
* Type representing AscOperation.
*/
public interface AscOperation extends HasInner<AscOperationInner>, Indexable, Refreshable<AscOperation>, HasManager<StorageCacheManager> {
/**
* @return the endTime value.
*/
String endTime();

/**
* @return the error value.
*/
ErrorResponse error();

/**
* @return the id value.
*/
String id();

/**
* @return the name value.
*/
String name();

/**
* @return the startTime value.
*/
String startTime();

/**
* @return the status value.
*/
String status();

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/**
* 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.storagecache.v2020_03_01;

import rx.Observable;
import com.microsoft.azure.management.storagecache.v2020_03_01.implementation.AscOperationsInner;
import com.microsoft.azure.arm.model.HasInner;

/**
* Type representing AscOperations.
*/
public interface AscOperations extends HasInner<AscOperationsInner> {
/**
* Gets the status of an asynchronous operation for the Azure HPC cache.
*
* @param location The region name which the operation will lookup into.
* @param operationId The operation id which uniquely identifies the asynchronous operation.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<AscOperation> getAsync(String location, String operationId);

}
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ public interface Cache extends HasInner<CacheInner>, Resource, GroupableResource
*/
String subnet();

/**
* @return the systemData value.
*/
SystemData systemData();

/**
* @return the upgradeStatus value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import rx.Observable;
import com.microsoft.azure.arm.resources.collection.SupportsListingByResourceGroup;
import com.microsoft.azure.arm.collection.SupportsListing;
import rx.Completable;
import com.microsoft.azure.management.storagecache.v2020_03_01.implementation.CachesInner;
import com.microsoft.azure.arm.model.HasInner;

Expand All @@ -30,7 +31,7 @@ public interface Caches extends SupportsCreating<Cache.DefinitionStages.Blank>,
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<Object> flushAsync(String resourceGroupName, String cacheName);
Completable flushAsync(String resourceGroupName, String cacheName);

/**
* Tells a Stopped state Cache to transition to Active state.
Expand All @@ -40,7 +41,7 @@ public interface Caches extends SupportsCreating<Cache.DefinitionStages.Blank>,
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<Object> startAsync(String resourceGroupName, String cacheName);
Completable startAsync(String resourceGroupName, String cacheName);

/**
* Tells an Active Cache to transition to Stopped state.
Expand All @@ -50,7 +51,7 @@ public interface Caches extends SupportsCreating<Cache.DefinitionStages.Blank>,
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<Object> stopAsync(String resourceGroupName, String cacheName);
Completable stopAsync(String resourceGroupName, String cacheName);

/**
* Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect.
Expand All @@ -60,6 +61,6 @@ public interface Caches extends SupportsCreating<Cache.DefinitionStages.Blank>,
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<Object> upgradeFirmwareAsync(String resourceGroupName, String cacheName);
Completable upgradeFirmwareAsync(String resourceGroupName, String cacheName);

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/**
* Storage container for use as a CLFS Storage Target.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "targetBaseType", defaultImpl = ClfsTargetProperties.class)
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "targetType", defaultImpl = ClfsTargetProperties.class)
@JsonTypeName("clfs")
public class ClfsTargetProperties extends StorageTargetProperties {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/**
* 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.storagecache.v2020_03_01;

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

/**
* Defines values for CreatedByType.
*/
public final class CreatedByType extends ExpandableStringEnum<CreatedByType> {
/** Static value User for CreatedByType. */
public static final CreatedByType USER = fromString("User");

/** Static value Application for CreatedByType. */
public static final CreatedByType APPLICATION = fromString("Application");

/** Static value ManagedIdentity for CreatedByType. */
public static final CreatedByType MANAGED_IDENTITY = fromString("ManagedIdentity");

/** Static value Key for CreatedByType. */
public static final CreatedByType KEY = fromString("Key");

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

/**
* @return known CreatedByType values
*/
public static Collection<CreatedByType> values() {
return values(CreatedByType.class);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/**
* 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.storagecache.v2020_03_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Describes the format of Error response.
*/
public class ErrorResponse {
/**
* Error code.
*/
@JsonProperty(value = "code")
private String code;

/**
* Error message indicating why the operation failed.
*/
@JsonProperty(value = "message")
private String message;

/**
* Get error code.
*
* @return the code value
*/
public String code() {
return this.code;
}

/**
* Set error code.
*
* @param code the code value to set
* @return the ErrorResponse object itself.
*/
public ErrorResponse withCode(String code) {
this.code = code;
return this;
}

/**
* Get error message indicating why the operation failed.
*
* @return the message value
*/
public String message() {
return this.message;
}

/**
* Set error message indicating why the operation failed.
*
* @param message the message value to set
* @return the ErrorResponse object itself.
*/
public ErrorResponse withMessage(String message) {
this.message = message;
return this;
}

}
Loading