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

[AutoPR] servicefabric/data-plane #2265

Closed
wants to merge 7 commits into from
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
/**
* 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.servicefabric;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Azure Active Directory metadata used for secured connection to cluster.
*/
public class AadMetadata {
/**
* The AAD authority url.
*/
@JsonProperty(value = "authority")
private String authority;

/**
* The AAD client application Id.
*/
@JsonProperty(value = "client")
private String client;

/**
* The AAD cluster application Id.
*/
@JsonProperty(value = "cluster")
private String cluster;

/**
* The AAD login url.
*/
@JsonProperty(value = "login")
private String login;

/**
* The client application redirect address.
*/
@JsonProperty(value = "redirect")
private String redirect;

/**
* The AAD tenant Id.
*/
@JsonProperty(value = "tenant")
private String tenant;

/**
* Get the AAD authority url.
*
* @return the authority value
*/
public String authority() {
return this.authority;
}

/**
* Set the AAD authority url.
*
* @param authority the authority value to set
* @return the AadMetadata object itself.
*/
public AadMetadata withAuthority(String authority) {
this.authority = authority;
return this;
}

/**
* Get the AAD client application Id.
*
* @return the client value
*/
public String client() {
return this.client;
}

/**
* Set the AAD client application Id.
*
* @param client the client value to set
* @return the AadMetadata object itself.
*/
public AadMetadata withClient(String client) {
this.client = client;
return this;
}

/**
* Get the AAD cluster application Id.
*
* @return the cluster value
*/
public String cluster() {
return this.cluster;
}

/**
* Set the AAD cluster application Id.
*
* @param cluster the cluster value to set
* @return the AadMetadata object itself.
*/
public AadMetadata withCluster(String cluster) {
this.cluster = cluster;
return this;
}

/**
* Get the AAD login url.
*
* @return the login value
*/
public String login() {
return this.login;
}

/**
* Set the AAD login url.
*
* @param login the login value to set
* @return the AadMetadata object itself.
*/
public AadMetadata withLogin(String login) {
this.login = login;
return this;
}

/**
* Get the client application redirect address.
*
* @return the redirect value
*/
public String redirect() {
return this.redirect;
}

/**
* Set the client application redirect address.
*
* @param redirect the redirect value to set
* @return the AadMetadata object itself.
*/
public AadMetadata withRedirect(String redirect) {
this.redirect = redirect;
return this;
}

/**
* Get the AAD tenant Id.
*
* @return the tenant value
*/
public String tenant() {
return this.tenant;
}

/**
* Set the AAD tenant Id.
*
* @param tenant the tenant value to set
* @return the AadMetadata object itself.
*/
public AadMetadata withTenant(String tenant) {
this.tenant = tenant;
return this;
}

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

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
* Represents a scaling mechanism for adding or removing named partitions of a
* stateless service. Partition names are in the format '0','1''N-1'.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "Kind")
@JsonTypeName("AddRemoveIncrementalNamedPartition")
public class AddRemoveIncrementalNamedPartitionScalingMechanism extends ScalingMechanismDescription {
/**
* Minimum number of named partitions of the service.
*/
@JsonProperty(value = "MinPartitionCount", required = true)
private int minPartitionCount;

/**
* Maximum number of named partitions of the service.
*/
@JsonProperty(value = "MaxPartitionCount", required = true)
private int maxPartitionCount;

/**
* The number of instances to add or remove during a scaling operation.
*/
@JsonProperty(value = "ScaleIncrement", required = true)
private int scaleIncrement;

/**
* Get minimum number of named partitions of the service.
*
* @return the minPartitionCount value
*/
public int minPartitionCount() {
return this.minPartitionCount;
}

/**
* Set minimum number of named partitions of the service.
*
* @param minPartitionCount the minPartitionCount value to set
* @return the AddRemoveIncrementalNamedPartitionScalingMechanism object itself.
*/
public AddRemoveIncrementalNamedPartitionScalingMechanism withMinPartitionCount(int minPartitionCount) {
this.minPartitionCount = minPartitionCount;
return this;
}

/**
* Get maximum number of named partitions of the service.
*
* @return the maxPartitionCount value
*/
public int maxPartitionCount() {
return this.maxPartitionCount;
}

/**
* Set maximum number of named partitions of the service.
*
* @param maxPartitionCount the maxPartitionCount value to set
* @return the AddRemoveIncrementalNamedPartitionScalingMechanism object itself.
*/
public AddRemoveIncrementalNamedPartitionScalingMechanism withMaxPartitionCount(int maxPartitionCount) {
this.maxPartitionCount = maxPartitionCount;
return this;
}

/**
* Get the number of instances to add or remove during a scaling operation.
*
* @return the scaleIncrement value
*/
public int scaleIncrement() {
return this.scaleIncrement;
}

/**
* Set the number of instances to add or remove during a scaling operation.
*
* @param scaleIncrement the scaleIncrement value to set
* @return the AddRemoveIncrementalNamedPartitionScalingMechanism object itself.
*/
public AddRemoveIncrementalNamedPartitionScalingMechanism withScaleIncrement(int scaleIncrement) {
this.scaleIncrement = scaleIncrement;
return this;
}

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

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
* Describes the horizontal auto scaling mechanism that adds or removes
* replicas (containers or container groups).
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind")
@JsonTypeName("AddRemoveReplica")
public class AddRemoveReplicaScalingMechanism extends AutoScalingMechanism {
/**
* Minimum number of containers (scale down won't be performed below this
* number).
*/
@JsonProperty(value = "minCount", required = true)
private int minCount;

/**
* Maximum number of containers (scale up won't be performed above this
* number).
*/
@JsonProperty(value = "maxCount", required = true)
private int maxCount;

/**
* Each time auto scaling is performed, this number of containers will be
* added or removed.
*/
@JsonProperty(value = "scaleIncrement", required = true)
private int scaleIncrement;

/**
* Get minimum number of containers (scale down won't be performed below this number).
*
* @return the minCount value
*/
public int minCount() {
return this.minCount;
}

/**
* Set minimum number of containers (scale down won't be performed below this number).
*
* @param minCount the minCount value to set
* @return the AddRemoveReplicaScalingMechanism object itself.
*/
public AddRemoveReplicaScalingMechanism withMinCount(int minCount) {
this.minCount = minCount;
return this;
}

/**
* Get maximum number of containers (scale up won't be performed above this number).
*
* @return the maxCount value
*/
public int maxCount() {
return this.maxCount;
}

/**
* Set maximum number of containers (scale up won't be performed above this number).
*
* @param maxCount the maxCount value to set
* @return the AddRemoveReplicaScalingMechanism object itself.
*/
public AddRemoveReplicaScalingMechanism withMaxCount(int maxCount) {
this.maxCount = maxCount;
return this;
}

/**
* Get each time auto scaling is performed, this number of containers will be added or removed.
*
* @return the scaleIncrement value
*/
public int scaleIncrement() {
return this.scaleIncrement;
}

/**
* Set each time auto scaling is performed, this number of containers will be added or removed.
*
* @param scaleIncrement the scaleIncrement value to set
* @return the AddRemoveReplicaScalingMechanism object itself.
*/
public AddRemoveReplicaScalingMechanism withScaleIncrement(int scaleIncrement) {
this.scaleIncrement = scaleIncrement;
return this;
}

}
Loading