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 containerregistry/resource-manager] Azure Container Registry Auto Build Feature Swagger and examples #42

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,148 @@
/**
* 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;

/**
* Properties that describe a base image dependency.
*/
public class BaseImageDependency {
/**
* The type of the base image dependency. Possible values include:
* 'BuildTime', 'RunTime'.
*/
@JsonProperty(value = "type")
private BaseImageDependencyType type;

/**
* The registry login server.
*/
@JsonProperty(value = "registry")
private String registry;

/**
* The repository name.
*/
@JsonProperty(value = "repository")
private String repository;

/**
* The tag name.
*/
@JsonProperty(value = "tag")
private String tag;

/**
* The sha256-based digest of the image manifest.
*/
@JsonProperty(value = "digest")
private String digest;

/**
* Get the type value.
*
* @return the type value
*/
public BaseImageDependencyType type() {
return this.type;
}

/**
* Set the type value.
*
* @param type the type value to set
* @return the BaseImageDependency object itself.
*/
public BaseImageDependency withType(BaseImageDependencyType type) {
this.type = type;
return this;
}

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

/**
* Set the registry value.
*
* @param registry the registry value to set
* @return the BaseImageDependency object itself.
*/
public BaseImageDependency withRegistry(String registry) {
this.registry = registry;
return this;
}

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

/**
* Set the repository value.
*
* @param repository the repository value to set
* @return the BaseImageDependency object itself.
*/
public BaseImageDependency withRepository(String repository) {
this.repository = repository;
return this;
}

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

/**
* Set the tag value.
*
* @param tag the tag value to set
* @return the BaseImageDependency object itself.
*/
public BaseImageDependency withTag(String tag) {
this.tag = tag;
return this;
}

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

/**
* Set the digest value.
*
* @param digest the digest value to set
* @return the BaseImageDependency object itself.
*/
public BaseImageDependency withDigest(String digest) {
this.digest = digest;
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 BaseImageDependencyType.
*/
public final class BaseImageDependencyType extends ExpandableStringEnum<BaseImageDependencyType> {
/** Static value BuildTime for BaseImageDependencyType. */
public static final BaseImageDependencyType BUILD_TIME = fromString("BuildTime");

/** Static value RunTime for BaseImageDependencyType. */
public static final BaseImageDependencyType RUN_TIME = fromString("RunTime");

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

/**
* @return known BaseImageDependencyType values
*/
public static Collection<BaseImageDependencyType> values() {
return values(BaseImageDependencyType.class);
}
}
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.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for BaseImageTriggerType.
*/
public final class BaseImageTriggerType extends ExpandableStringEnum<BaseImageTriggerType> {
/** Static value All for BaseImageTriggerType. */
public static final BaseImageTriggerType ALL = fromString("All");

/** Static value Runtime for BaseImageTriggerType. */
public static final BaseImageTriggerType RUNTIME = fromString("Runtime");

/** Static value None for BaseImageTriggerType. */
public static final BaseImageTriggerType NONE = fromString("None");

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

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