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] Fix unrecognized character in service fabric data plane swagger file #2328

Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
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,70 @@
/**
* 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 org.joda.time.Period;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Metadata about an Analysis Event.
*/
public class AnalysisEventMetadata {
/**
* The analysis delay.
*/
@JsonProperty(value = "Delay")
private Period delay;

/**
* The duration of analysis.
*/
@JsonProperty(value = "Duration")
private Period duration;

/**
* Get the analysis delay.
*
* @return the delay value
*/
public Period delay() {
return this.delay;
}

/**
* Set the analysis delay.
*
* @param delay the delay value to set
* @return the AnalysisEventMetadata object itself.
*/
public AnalysisEventMetadata withDelay(Period delay) {
this.delay = delay;
return this;
}

/**
* Get the duration of analysis.
*
* @return the duration value
*/
public Period duration() {
return this.duration;
}

/**
* Set the duration of analysis.
*
* @param duration the duration value to set
* @return the AnalysisEventMetadata object itself.
*/
public AnalysisEventMetadata withDuration(Period duration) {
this.duration = duration;
return this;
}

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

/**
* Backup configuration information for a specific Service Fabric application
* specifying what backup policy is being applied and suspend description, if
* any.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "Kind")
@JsonTypeName("Application")
public class ApplicationBackupConfigurationInfo extends BackupConfigurationInfo {
/**
* The name of the application, including the 'fabric:' URI scheme.
*/
@JsonProperty(value = "ApplicationName")
private String applicationName;

/**
* Get the name of the application, including the 'fabric:' URI scheme.
*
* @return the applicationName value
*/
public String applicationName() {
return this.applicationName;
}

/**
* Set the name of the application, including the 'fabric:' URI scheme.
*
* @param applicationName the applicationName value to set
* @return the ApplicationBackupConfigurationInfo object itself.
*/
public ApplicationBackupConfigurationInfo withApplicationName(String applicationName) {
this.applicationName = applicationName;
return this;
}

}
Loading