Skip to content
Merged
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
Expand Up @@ -8,35 +8,15 @@

package com.microsoft.azure.management.storagesync;

import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.ProxyResource;

/**
* The parameters used when creating a storage sync service.
* The parameters used when creating a cloud endpoint.
*/
@JsonFlatten
public class CloudEndpointCreateParameters {
/**
* Required. Gets or sets the location of the resource. This will be one of
* the supported and registered Azure Geo Regions (e.g. West US, East US,
* Southeast Asia, etc.). The geo region of a resource cannot be changed
* once it is created, but if an identical geo region is specified on
* update, the request will succeed.
*/
@JsonProperty(value = "location")
private String location;

/**
* Gets or sets a list of key value pairs that describe the resource. These
* tags can be used for viewing and grouping this resource (across resource
* groups). A maximum of 15 tags can be provided for a resource. Each tag
* must have a key with a length no greater than 128 characters and a value
* with a length no greater than 256 characters.
*/
@JsonProperty(value = "tags")
private Map<String, String> tags;

public class CloudEndpointCreateParameters extends ProxyResource {
/**
* Storage Account Resource Id.
*/
Expand All @@ -55,46 +35,6 @@ public class CloudEndpointCreateParameters {
@JsonProperty(value = "properties.storageAccountTenantId")
private String storageAccountTenantId;

/**
* Get required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed.
*
* @return the location value
*/
public String location() {
return this.location;
}

/**
* Set required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed.
*
* @param location the location value to set
* @return the CloudEndpointCreateParameters object itself.
*/
public CloudEndpointCreateParameters withLocation(String location) {
this.location = location;
return this;
}

/**
* Get gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters.
*
* @return the tags value
*/
public Map<String, String> tags() {
return this.tags;
}

/**
* Set gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters.
*
* @param tags the tags value to set
* @return the CloudEndpointCreateParameters object itself.
*/
public CloudEndpointCreateParameters withTags(Map<String, String> tags) {
this.tags = tags;
return this;
}

/**
* Get storage Account Resource Id.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,15 @@

package com.microsoft.azure.management.storagesync;

import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.ProxyResource;

/**
* The parameters used when creating a storage sync service.
* The parameters used when creating a registered server.
*/
@JsonFlatten
public class RegisteredServerCreateParameters {
/**
* Required. Gets or sets the location of the resource. This will be one of
* the supported and registered Azure Geo Regions (e.g. West US, East US,
* Southeast Asia, etc.). The geo region of a resource cannot be changed
* once it is created, but if an identical geo region is specified on
* update, the request will succeed.
*/
@JsonProperty(value = "location")
private String location;

/**
* Gets or sets a list of key value pairs that describe the resource. These
* tags can be used for viewing and grouping this resource (across resource
* groups). A maximum of 15 tags can be provided for a resource. Each tag
* must have a key with a length no greater than 128 characters and a value
* with a length no greater than 256 characters.
*/
@JsonProperty(value = "tags")
private Map<String, String> tags;

public class RegisteredServerCreateParameters extends ProxyResource {
/**
* Registered Server Certificate.
*/
Expand Down Expand Up @@ -91,46 +71,6 @@ public class RegisteredServerCreateParameters {
@JsonProperty(value = "properties.friendlyName")
private String friendlyName;

/**
* Get required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed.
*
* @return the location value
*/
public String location() {
return this.location;
}

/**
* Set required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed.
*
* @param location the location value to set
* @return the RegisteredServerCreateParameters object itself.
*/
public RegisteredServerCreateParameters withLocation(String location) {
this.location = location;
return this;
}

/**
* Get gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters.
*
* @return the tags value
*/
public Map<String, String> tags() {
return this.tags;
}

/**
* Set gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters.
*
* @param tags the tags value to set
* @return the RegisteredServerCreateParameters object itself.
*/
public RegisteredServerCreateParameters withTags(Map<String, String> tags) {
this.tags = tags;
return this;
}

/**
* Get registered Server Certificate.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
/**
* 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.storagesync;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Defines headers for triggerRollover operation.
*/
public class RegisteredServersTriggerRolloverHeaders {
/**
* request id.
*/
@JsonProperty(value = "x-ms-request-id")
private String xMsRequestId;

/**
* correlation request id.
*/
@JsonProperty(value = "x-ms-correlation-request-id")
private String xMsCorrelationRequestId;

/**
* Operation Status Location URI.
*/
@JsonProperty(value = "Location")
private String location;

/**
* Get request id.
*
* @return the xMsRequestId value
*/
public String xMsRequestId() {
return this.xMsRequestId;
}

/**
* Set request id.
*
* @param xMsRequestId the xMsRequestId value to set
* @return the RegisteredServersTriggerRolloverHeaders object itself.
*/
public RegisteredServersTriggerRolloverHeaders withXMsRequestId(String xMsRequestId) {
this.xMsRequestId = xMsRequestId;
return this;
}

/**
* Get correlation request id.
*
* @return the xMsCorrelationRequestId value
*/
public String xMsCorrelationRequestId() {
return this.xMsCorrelationRequestId;
}

/**
* Set correlation request id.
*
* @param xMsCorrelationRequestId the xMsCorrelationRequestId value to set
* @return the RegisteredServersTriggerRolloverHeaders object itself.
*/
public RegisteredServersTriggerRolloverHeaders withXMsCorrelationRequestId(String xMsCorrelationRequestId) {
this.xMsCorrelationRequestId = xMsCorrelationRequestId;
return this;
}

/**
* Get operation Status Location URI.
*
* @return the location value
*/
public String location() {
return this.location;
}

/**
* Set operation Status Location URI.
*
* @param location the location value to set
* @return the RegisteredServersTriggerRolloverHeaders object itself.
*/
public RegisteredServersTriggerRolloverHeaders withLocation(String location) {
this.location = location;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,15 @@

package com.microsoft.azure.management.storagesync;

import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.ProxyResource;

/**
* The parameters used when creating a storage sync service.
* The parameters used when creating a server endpoint.
*/
@JsonFlatten
public class ServerEndpointCreateParameters {
/**
* Required. Gets or sets the location of the resource. This will be one of
* the supported and registered Azure Geo Regions (e.g. West US, East US,
* Southeast Asia, etc.). The geo region of a resource cannot be changed
* once it is created, but if an identical geo region is specified on
* update, the request will succeed.
*/
@JsonProperty(value = "location")
private String location;

/**
* Gets or sets a list of key value pairs that describe the resource. These
* tags can be used for viewing and grouping this resource (across resource
* groups). A maximum of 15 tags can be provided for a resource. Each tag
* must have a key with a length no greater than 128 characters and a value
* with a length no greater than 256 characters.
*/
@JsonProperty(value = "tags")
private Map<String, String> tags;

public class ServerEndpointCreateParameters extends ProxyResource {
/**
* Server Local path.
*/
Expand All @@ -55,6 +35,12 @@ public class ServerEndpointCreateParameters {
@JsonProperty(value = "properties.volumeFreeSpacePercent")
private Integer volumeFreeSpacePercent;

/**
* Tier files older than days.
*/
@JsonProperty(value = "properties.tierFilesOlderThanDays")
private Integer tierFilesOlderThanDays;

/**
* Friendly Name.
*/
Expand All @@ -67,46 +53,6 @@ public class ServerEndpointCreateParameters {
@JsonProperty(value = "properties.serverResourceId")
private String serverResourceId;

/**
* Get required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed.
*
* @return the location value
*/
public String location() {
return this.location;
}

/**
* Set required. Gets or sets the location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it is created, but if an identical geo region is specified on update, the request will succeed.
*
* @param location the location value to set
* @return the ServerEndpointCreateParameters object itself.
*/
public ServerEndpointCreateParameters withLocation(String location) {
this.location = location;
return this;
}

/**
* Get gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters.
*
* @return the tags value
*/
public Map<String, String> tags() {
return this.tags;
}

/**
* Set gets or sets a list of key value pairs that describe the resource. These tags can be used for viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key with a length no greater than 128 characters and a value with a length no greater than 256 characters.
*
* @param tags the tags value to set
* @return the ServerEndpointCreateParameters object itself.
*/
public ServerEndpointCreateParameters withTags(Map<String, String> tags) {
this.tags = tags;
return this;
}

/**
* Get server Local path.
*
Expand Down Expand Up @@ -167,6 +113,26 @@ public ServerEndpointCreateParameters withVolumeFreeSpacePercent(Integer volumeF
return this;
}

/**
* Get tier files older than days.
*
* @return the tierFilesOlderThanDays value
*/
public Integer tierFilesOlderThanDays() {
return this.tierFilesOlderThanDays;
}

/**
* Set tier files older than days.
*
* @param tierFilesOlderThanDays the tierFilesOlderThanDays value to set
* @return the ServerEndpointCreateParameters object itself.
*/
public ServerEndpointCreateParameters withTierFilesOlderThanDays(Integer tierFilesOlderThanDays) {
this.tierFilesOlderThanDays = tierFilesOlderThanDays;
return this;
}

/**
* Get friendly Name.
*
Expand Down
Loading