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
@@ -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.datafactory;

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

/**
* Defines values for BlobEventTypes.
*/
public final class BlobEventTypes extends ExpandableStringEnum<BlobEventTypes> {
/** Static value Microsoft.Storage.BlobCreated for BlobEventTypes. */
public static final BlobEventTypes MICROSOFT_STORAGE_BLOB_CREATED = fromString("Microsoft.Storage.BlobCreated");

/** Static value Microsoft.Storage.BlobDeleted for BlobEventTypes. */
public static final BlobEventTypes MICROSOFT_STORAGE_BLOB_DELETED = fromString("Microsoft.Storage.BlobDeleted");

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

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

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.microsoft.rest.serializer.JsonFlatten;

/**
* Trigger that runs everytime a Blob event occurs.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("BlobEventsTrigger")
@JsonFlatten
public class BlobEventsTrigger extends MultiplePipelineTrigger {
/**
* The blob path must begin with the pattern provided for trigger to fire.
* For example, '/records/blobs/december/' will only fire the trigger for
* blobs in the december folder under the records container. At least one
* of these must be provided: blobPathBeginsWith, blobPathEndsWith.
*/
@JsonProperty(value = "typeProperties.blobPathBeginsWith")
private String blobPathBeginsWith;

/**
* The blob path must end with the pattern provided for trigger to fire.
* For example, 'december/boxes.csv' will only fire the trigger for blobs
* named boxes in a december folder. At least one of these must be
* provided: blobPathBeginsWith, blobPathEndsWith.
*/
@JsonProperty(value = "typeProperties.blobPathEndsWith")
private String blobPathEndsWith;

/**
* The type of events that cause this trigger to fire.
*/
@JsonProperty(value = "typeProperties.events", required = true)
private List<BlobEventTypes> events;

/**
* The ARM resource ID of the Storage Account.
*/
@JsonProperty(value = "typeProperties.scope", required = true)
private String scope;

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

/**
* Set the blobPathBeginsWith value.
*
* @param blobPathBeginsWith the blobPathBeginsWith value to set
* @return the BlobEventsTrigger object itself.
*/
public BlobEventsTrigger withBlobPathBeginsWith(String blobPathBeginsWith) {
this.blobPathBeginsWith = blobPathBeginsWith;
return this;
}

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

/**
* Set the blobPathEndsWith value.
*
* @param blobPathEndsWith the blobPathEndsWith value to set
* @return the BlobEventsTrigger object itself.
*/
public BlobEventsTrigger withBlobPathEndsWith(String blobPathEndsWith) {
this.blobPathEndsWith = blobPathEndsWith;
return this;
}

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

/**
* Set the events value.
*
* @param events the events value to set
* @return the BlobEventsTrigger object itself.
*/
public BlobEventsTrigger withEvents(List<BlobEventTypes> events) {
this.events = events;
return this;
}

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

/**
* Set the scope value.
*
* @param scope the scope value to set
* @return the BlobEventsTrigger object itself.
*/
public BlobEventsTrigger withScope(String scope) {
this.scope = scope;
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.management.datafactory;

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

/**
* Parameters for updating a factory resource.
*/
public class FactoryUpdateParameters {
/**
* The resource tags.
*/
@JsonProperty(value = "tags")
private Map<String, String> tags;

/**
* Managed service identity of the factory.
*/
@JsonProperty(value = "identity")
private FactoryIdentity identity;

/**
* Get the tags value.
*
* @return the tags value
*/
public Map<String, String> tags() {
return this.tags;
}

/**
* Set the tags value.
*
* @param tags the tags value to set
* @return the FactoryUpdateParameters object itself.
*/
public FactoryUpdateParameters withTags(Map<String, String> tags) {
this.tags = tags;
return this;
}

/**
* Get the identity value.
*
* @return the identity value
*/
public FactoryIdentity identity() {
return this.identity;
}

/**
* Set the identity value.
*
* @param identity the identity value to set
* @return the FactoryUpdateParameters object itself.
*/
public FactoryUpdateParameters withIdentity(FactoryIdentity identity) {
this.identity = identity;
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.management.datafactory;

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

/**
* Request to remove a node.
*/
public class IntegrationRuntimeRemoveNodeRequest {
/**
* Unmatched properties from the message are deserialized this collection.
*/
@JsonProperty(value = "")
private Map<String, Object> additionalProperties;

/**
* The name of the node to be removed.
*/
@JsonProperty(value = "nodeName")
private String nodeName;

/**
* Get the additionalProperties value.
*
* @return the additionalProperties value
*/
public Map<String, Object> additionalProperties() {
return this.additionalProperties;
}

/**
* Set the additionalProperties value.
*
* @param additionalProperties the additionalProperties value to set
* @return the IntegrationRuntimeRemoveNodeRequest object itself.
*/
public IntegrationRuntimeRemoveNodeRequest withAdditionalProperties(Map<String, Object> additionalProperties) {
this.additionalProperties = additionalProperties;
return this;
}

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

/**
* Set the nodeName value.
*
* @param nodeName the nodeName value to set
* @return the IntegrationRuntimeRemoveNodeRequest object itself.
*/
public IntegrationRuntimeRemoveNodeRequest withNodeName(String nodeName) {
this.nodeName = nodeName;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("MultiplePipelineTrigger")
@JsonSubTypes({
@JsonSubTypes.Type(name = "BlobEventsTrigger", value = BlobEventsTrigger.class),
@JsonSubTypes.Type(name = "BlobTrigger", value = BlobTrigger.class),
@JsonSubTypes.Type(name = "ScheduleTrigger", value = ScheduleTrigger.class)
})
Expand Down
Loading