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 servicefabricmesh/resource-manager] BugFix: defaultSinkRefs is an array of string #2231

Merged
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
@@ -0,0 +1,204 @@
/**
* 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.servicefabricmesh;

import java.util.List;
import com.microsoft.azure.management.servicefabricmesh.implementation.ServiceResourceDescriptionInner;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* This type describes properties of an application resource.
*/
public class ApplicationProperties {
/**
* User readable description of the application.
*/
@JsonProperty(value = "description")
private String description;

/**
* Internal use.
*/
@JsonProperty(value = "debugParams")
private String debugParams;

/**
* describes the services in the application.
*/
@JsonProperty(value = "services")
private List<ServiceResourceDescriptionInner> services;

/**
* Describes the health state of an application resource. Possible values
* include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'.
*/
@JsonProperty(value = "healthState", access = JsonProperty.Access.WRITE_ONLY)
private HealthState healthState;

/**
* When the application's health state is not 'Ok', this additional details
* from service fabric Health Manager for the user to know why the
* application is marked unhealthy.
*/
@JsonProperty(value = "unhealthyEvaluation", access = JsonProperty.Access.WRITE_ONLY)
private String unhealthyEvaluation;

/**
* Status of the application resource. Possible values include: 'Invalid',
* 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'.
*/
@JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
private ApplicationResourceStatus status;

/**
* Gives additional information about the current status of the application
* deployment.
*/
@JsonProperty(value = "statusDetails", access = JsonProperty.Access.WRITE_ONLY)
private String statusDetails;

/**
* Names of the services in the application.
*/
@JsonProperty(value = "serviceNames", access = JsonProperty.Access.WRITE_ONLY)
private List<String> serviceNames;

/**
* Describes the diagnostics definition and usage for an application
* resource.
*/
@JsonProperty(value = "diagnostics")
private DiagnosticsDescription diagnostics;

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

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

/**
* Get internal use.
*
* @return the debugParams value
*/
public String debugParams() {
return this.debugParams;
}

/**
* Set internal use.
*
* @param debugParams the debugParams value to set
* @return the ApplicationProperties object itself.
*/
public ApplicationProperties withDebugParams(String debugParams) {
this.debugParams = debugParams;
return this;
}

/**
* Get describes the services in the application.
*
* @return the services value
*/
public List<ServiceResourceDescriptionInner> services() {
return this.services;
}

/**
* Set describes the services in the application.
*
* @param services the services value to set
* @return the ApplicationProperties object itself.
*/
public ApplicationProperties withServices(List<ServiceResourceDescriptionInner> services) {
this.services = services;
return this;
}

/**
* Get describes the health state of an application resource. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'.
*
* @return the healthState value
*/
public HealthState healthState() {
return this.healthState;
}

/**
* Get when the application's health state is not 'Ok', this additional details from service fabric Health Manager for the user to know why the application is marked unhealthy.
*
* @return the unhealthyEvaluation value
*/
public String unhealthyEvaluation() {
return this.unhealthyEvaluation;
}

/**
* Get status of the application resource. Possible values include: 'Invalid', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'.
*
* @return the status value
*/
public ApplicationResourceStatus status() {
return this.status;
}

/**
* Get gives additional information about the current status of the application deployment.
*
* @return the statusDetails value
*/
public String statusDetails() {
return this.statusDetails;
}

/**
* Get names of the services in the application.
*
* @return the serviceNames value
*/
public List<String> serviceNames() {
return this.serviceNames;
}

/**
* Get describes the diagnostics definition and usage for an application resource.
*
* @return the diagnostics value
*/
public DiagnosticsDescription diagnostics() {
return this.diagnostics;
}

/**
* Set describes the diagnostics definition and usage for an application resource.
*
* @param diagnostics the diagnostics value to set
* @return the ApplicationProperties object itself.
*/
public ApplicationProperties withDiagnostics(DiagnosticsDescription diagnostics) {
this.diagnostics = diagnostics;
return this;
}

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

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

/**
* Defines values for ApplicationResourceStatus.
*/
public final class ApplicationResourceStatus extends ExpandableStringEnum<ApplicationResourceStatus> {
/** Static value Invalid for ApplicationResourceStatus. */
public static final ApplicationResourceStatus INVALID = fromString("Invalid");

/** Static value Ready for ApplicationResourceStatus. */
public static final ApplicationResourceStatus READY = fromString("Ready");

/** Static value Upgrading for ApplicationResourceStatus. */
public static final ApplicationResourceStatus UPGRADING = fromString("Upgrading");

/** Static value Creating for ApplicationResourceStatus. */
public static final ApplicationResourceStatus CREATING = fromString("Creating");

/** Static value Deleting for ApplicationResourceStatus. */
public static final ApplicationResourceStatus DELETING = fromString("Deleting");

/** Static value Failed for ApplicationResourceStatus. */
public static final ApplicationResourceStatus FAILED = fromString("Failed");

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

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

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* An operation available at the listed Azure resource provider.
*/
public class AvailableOperationDisplay {
/**
* Name of the operation provider.
*/
@JsonProperty(value = "provider")
private String provider;

/**
* Name of the resource on which the operation is available.
*/
@JsonProperty(value = "resource")
private String resource;

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

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

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

/**
* Set name of the operation provider.
*
* @param provider the provider value to set
* @return the AvailableOperationDisplay object itself.
*/
public AvailableOperationDisplay withProvider(String provider) {
this.provider = provider;
return this;
}

/**
* Get name of the resource on which the operation is available.
*
* @return the resource value
*/
public String resource() {
return this.resource;
}

/**
* Set name of the resource on which the operation is available.
*
* @param resource the resource value to set
* @return the AvailableOperationDisplay object itself.
*/
public AvailableOperationDisplay withResource(String resource) {
this.resource = resource;
return this;
}

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

/**
* Set name of the available operation.
*
* @param operation the operation value to set
* @return the AvailableOperationDisplay object itself.
*/
public AvailableOperationDisplay withOperation(String operation) {
this.operation = operation;
return this;
}

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

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

}
Loading