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

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

/**
* The ImportImageParameters model.
*/
public class ImportImageParameters {
/**
* The source of the image.
*/
@JsonProperty(value = "source", required = true)
private ImportSource source;

/**
* List of strings of the form repo[:tag]. When tag is omitted the source
* will be used (or 'latest' if source tag is also omitted).
*/
@JsonProperty(value = "targetTags")
private List<String> targetTags;

/**
* List of strings of repository names to do a manifest only copy. No tag
* will be created.
*/
@JsonProperty(value = "untaggedTargetRepositories")
private List<String> untaggedTargetRepositories;

/**
* When Force, any existing target tags will be overwritten. When NoForce,
* any existing target tags will fail the operation before any copying
* begins. Possible values include: 'NoForce', 'Force'.
*/
@JsonProperty(value = "mode")
private ImportMode mode;

/**
* Get the source value.
*
* @return the source value
*/
public ImportSource source() {
return this.source;
}

/**
* Set the source value.
*
* @param source the source value to set
* @return the ImportImageParameters object itself.
*/
public ImportImageParameters withSource(ImportSource source) {
this.source = source;
return this;
}

/**
* Get the targetTags value.
*
* @return the targetTags value
*/
public List<String> targetTags() {
return this.targetTags;
}

/**
* Set the targetTags value.
*
* @param targetTags the targetTags value to set
* @return the ImportImageParameters object itself.
*/
public ImportImageParameters withTargetTags(List<String> targetTags) {
this.targetTags = targetTags;
return this;
}

/**
* Get the untaggedTargetRepositories value.
*
* @return the untaggedTargetRepositories value
*/
public List<String> untaggedTargetRepositories() {
return this.untaggedTargetRepositories;
}

/**
* Set the untaggedTargetRepositories value.
*
* @param untaggedTargetRepositories the untaggedTargetRepositories value to set
* @return the ImportImageParameters object itself.
*/
public ImportImageParameters withUntaggedTargetRepositories(List<String> untaggedTargetRepositories) {
this.untaggedTargetRepositories = untaggedTargetRepositories;
return this;
}

/**
* Get the mode value.
*
* @return the mode value
*/
public ImportMode mode() {
return this.mode;
}

/**
* Set the mode value.
*
* @param mode the mode value to set
* @return the ImportImageParameters object itself.
*/
public ImportImageParameters withMode(ImportMode mode) {
this.mode = mode;
return this;
}

}
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.management.containerregistry;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The definition of Azure Monitoring metric.
*/
public class OperationMetricSpecificationDefinition {
/**
* Metric name.
*/
@JsonProperty(value = "name")
private String name;

/**
* Metric display name.
*/
@JsonProperty(value = "displayName")
private String displayName;

/**
* Metric description.
*/
@JsonProperty(value = "displayDescription")
private String displayDescription;

/**
* Metric unit.
*/
@JsonProperty(value = "unit")
private String unit;

/**
* Metric aggregation type.
*/
@JsonProperty(value = "aggregationType")
private String aggregationType;

/**
* Internal metric name.
*/
@JsonProperty(value = "internalMetricName")
private String internalMetricName;

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

/**
* Set the name value.
*
* @param name the name value to set
* @return the OperationMetricSpecificationDefinition object itself.
*/
public OperationMetricSpecificationDefinition withName(String name) {
this.name = name;
return this;
}

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

/**
* Set the displayName value.
*
* @param displayName the displayName value to set
* @return the OperationMetricSpecificationDefinition object itself.
*/
public OperationMetricSpecificationDefinition withDisplayName(String displayName) {
this.displayName = displayName;
return this;
}

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

/**
* Set the displayDescription value.
*
* @param displayDescription the displayDescription value to set
* @return the OperationMetricSpecificationDefinition object itself.
*/
public OperationMetricSpecificationDefinition withDisplayDescription(String displayDescription) {
this.displayDescription = displayDescription;
return this;
}

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

/**
* Set the unit value.
*
* @param unit the unit value to set
* @return the OperationMetricSpecificationDefinition object itself.
*/
public OperationMetricSpecificationDefinition withUnit(String unit) {
this.unit = unit;
return this;
}

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

/**
* Set the aggregationType value.
*
* @param aggregationType the aggregationType value to set
* @return the OperationMetricSpecificationDefinition object itself.
*/
public OperationMetricSpecificationDefinition withAggregationType(String aggregationType) {
this.aggregationType = aggregationType;
return this;
}

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

/**
* Set the internalMetricName value.
*
* @param internalMetricName the internalMetricName value to set
* @return the OperationMetricSpecificationDefinition object itself.
*/
public OperationMetricSpecificationDefinition withInternalMetricName(String internalMetricName) {
this.internalMetricName = internalMetricName;
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.containerregistry;

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

/**
* The definition of Azure Monitoring metrics list.
*/
public class OperationServiceSpecificationDefinition {
/**
* A list of Azure Monitoring metrics definition.
*/
@JsonProperty(value = "metricSpecifications")
private List<OperationMetricSpecificationDefinition> metricSpecifications;

/**
* Get the metricSpecifications value.
*
* @return the metricSpecifications value
*/
public List<OperationMetricSpecificationDefinition> metricSpecifications() {
return this.metricSpecifications;
}

/**
* Set the metricSpecifications value.
*
* @param metricSpecifications the metricSpecifications value to set
* @return the OperationServiceSpecificationDefinition object itself.
*/
public OperationServiceSpecificationDefinition withMetricSpecifications(List<OperationMetricSpecificationDefinition> metricSpecifications) {
this.metricSpecifications = metricSpecifications;
return this;
}

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

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

/**
* Defines values for PolicyStatus.
*/
public final class PolicyStatus extends ExpandableStringEnum<PolicyStatus> {
/** Static value enabled for PolicyStatus. */
public static final PolicyStatus ENABLED = fromString("enabled");

/** Static value disabled for PolicyStatus. */
public static final PolicyStatus DISABLED = fromString("disabled");

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

/**
* @return known PolicyStatus values
*/
public static Collection<PolicyStatus> values() {
return values(PolicyStatus.class);
}
}
Loading