Skip to content
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
Expand Up @@ -123,6 +123,11 @@ public interface Run extends HasInner<RunInner>, Indexable, Refreshable<Run>, Up
*/
String task();

/**
* @return the timerTrigger value.
*/
TimerTriggerDescriptor timerTrigger();

/**
* @return the type value.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/**
* 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.v2019_04_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The TimerTriggerDescriptor model.
*/
public class TimerTriggerDescriptor {
/**
* The timer trigger name that caused the run.
*/
@JsonProperty(value = "timerTriggerName")
private String timerTriggerName;

/**
* The occurrence that triggered the run.
*/
@JsonProperty(value = "scheduleOccurrence")
private String scheduleOccurrence;

/**
* Get the timer trigger name that caused the run.
*
* @return the timerTriggerName value
*/
public String timerTriggerName() {
return this.timerTriggerName;
}

/**
* Set the timer trigger name that caused the run.
*
* @param timerTriggerName the timerTriggerName value to set
* @return the TimerTriggerDescriptor object itself.
*/
public TimerTriggerDescriptor withTimerTriggerName(String timerTriggerName) {
this.timerTriggerName = timerTriggerName;
return this;
}

/**
* Get the occurrence that triggered the run.
*
* @return the scheduleOccurrence value
*/
public String scheduleOccurrence() {
return this.scheduleOccurrence;
}

/**
* Set the occurrence that triggered the run.
*
* @param scheduleOccurrence the scheduleOccurrence value to set
* @return the TimerTriggerDescriptor object itself.
*/
public TimerTriggerDescriptor withScheduleOccurrence(String scheduleOccurrence) {
this.scheduleOccurrence = scheduleOccurrence;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.microsoft.azure.management.containerregistry.v2019_04_01.RunType;
import com.microsoft.azure.management.containerregistry.v2019_04_01.SourceTriggerDescriptor;
import com.microsoft.azure.management.containerregistry.v2019_04_01.RunStatus;
import com.microsoft.azure.management.containerregistry.v2019_04_01.TimerTriggerDescriptor;

class RunImpl extends CreatableUpdatableImpl<Run, RunInner, RunImpl> implements Run, Run.Update {
private final ContainerRegistryManager manager;
Expand Down Expand Up @@ -179,6 +180,11 @@ public String task() {
return this.inner().task();
}

@Override
public TimerTriggerDescriptor timerTrigger() {
return this.inner().timerTrigger();
}

@Override
public String type() {
return this.inner().type();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import com.microsoft.azure.management.containerregistry.v2019_04_01.PlatformProperties;
import com.microsoft.azure.management.containerregistry.v2019_04_01.AgentProperties;
import com.microsoft.azure.management.containerregistry.v2019_04_01.ProvisioningState;
import com.microsoft.azure.management.containerregistry.v2019_04_01.TimerTriggerDescriptor;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.ProxyResource;
Expand Down Expand Up @@ -143,6 +144,12 @@ public class RunInner extends ProxyResource {
@JsonProperty(value = "properties.isArchiveEnabled")
private Boolean isArchiveEnabled;

/**
* The timer trigger that caused the run.
*/
@JsonProperty(value = "properties.timerTrigger")
private TimerTriggerDescriptor timerTrigger;

/**
* Get the unique identifier for the run.
*
Expand Down Expand Up @@ -492,4 +499,24 @@ public RunInner withIsArchiveEnabled(Boolean isArchiveEnabled) {
return this;
}

/**
* Get the timer trigger that caused the run.
*
* @return the timerTrigger value
*/
public TimerTriggerDescriptor timerTrigger() {
return this.timerTrigger;
}

/**
* Set the timer trigger that caused the run.
*
* @param timerTrigger the timerTrigger value to set
* @return the RunInner object itself.
*/
public RunInner withTimerTrigger(TimerTriggerDescriptor timerTrigger) {
this.timerTrigger = timerTrigger;
return this;
}

}
133 changes: 133 additions & 0 deletions containerregistry/resource-manager/v2019_06_01/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
<!--
* 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.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.microsoft.azure.containerregistry.v2019_06_01</groupId>
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>0.0.3-beta</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>azure-mgmt-containerregistry</artifactId>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for ContainerRegistry Management</name>
<description>This package contains Microsoft ContainerRegistry Management SDK.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>
<licenses>
<license>
<name>The MIT License (MIT)</name>
<url>http://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>scm:git:https://github.com/Azure/azure-sdk-for-java</url>
<connection>scm:git:[email protected]:Azure/azure-sdk-for-java.git</connection>
<tag>HEAD</tag>
</scm>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal>
</properties>
<developers>
<developer>
<id>microsoft</id>
<name>Microsoft</name>
</developer>
</developers>
<dependencies>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-client-runtime</artifactId>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-client-runtime</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-client-authentication</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-mgmt-resources</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-client-runtime</artifactId>
<type>test-jar</type>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<annotationProcessors>
<annotationProcessor>
com.microsoft.azure.management.apigeneration.LangDefinitionProcessor
</annotationProcessor>
</annotationProcessors>
<debug>true</debug>
<optimize>true</optimize>
<compilerArguments>
<AaddGeneratedAnnotation>true</AaddGeneratedAnnotation>
<Adebug>true</Adebug>
</compilerArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
<configuration>
<excludePackageNames>*.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search</excludePackageNames>
<bottom>
<![CDATA[<code>
/**
<br />* Copyright (c) Microsoft Corporation. All rights reserved.
<br />* Licensed under the MIT License. See License.txt in the project root for
<br />* license information.
<br />*/
</code>]]>
</bottom>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/**
* 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.v2019_06_01;

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

/**
* Defines values for Action.
*/
public final class Action extends ExpandableStringEnum<Action> {
/** Static value Allow for Action. */
public static final Action ALLOW = fromString("Allow");

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

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

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The agent that initiated the event. For most situations, this could be from
* the authorization context of the request.
*/
public class Actor {
/**
* The subject or username associated with the request context that
* generated the event.
*/
@JsonProperty(value = "name")
private String name;

/**
* Get the subject or username associated with the request context that generated the event.
*
* @return the name value
*/
public String name() {
return this.name;
}

/**
* Set the subject or username associated with the request context that generated the event.
*
* @param name the name value to set
* @return the Actor object itself.
*/
public Actor withName(String name) {
this.name = name;
return this;
}

}
Loading