Skip to content
Closed
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 @@ -23,6 +23,26 @@
* Type representing Factories.
*/
public interface Factories extends SupportsCreating<Factory.DefinitionStages.Blank>, SupportsDeletingByResourceGroup, SupportsBatchDeletion, SupportsGettingByResourceGroup<Factory>, SupportsListingByResourceGroup<Factory>, SupportsListing<Factory>, HasInner<FactoriesInner> {
/**
* List data factories which the given data factory has access.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<Factory> listSharedFactoriesAsync(final String resourceGroupName, final String factoryName);

/**
* List integration runtimes which the given data factory has access.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<IntegrationRuntimeResource> listSharedIntegrationRuntimesAsync(final String resourceGroupName, final String factoryName);

/**
* Cancel a pipeline run by its run ID.
*
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.datafactoryv2.v2017_09_01_preview;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Grant or revoke access to integration runtime request.
*/
public class IntegrationRuntimePermissionRequest {
/**
* The data factory name.
*/
@JsonProperty(value = "factoryName")
private String factoryName;

/**
* The data factory identity.
*/
@JsonProperty(value = "factoryIdentity", required = true)
private String factoryIdentity;

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

/**
* Set the data factory name.
*
* @param factoryName the factoryName value to set
* @return the IntegrationRuntimePermissionRequest object itself.
*/
public IntegrationRuntimePermissionRequest withFactoryName(String factoryName) {
this.factoryName = factoryName;
return this;
}

/**
* Get the data factory identity.
*
* @return the factoryIdentity value
*/
public String factoryIdentity() {
return this.factoryIdentity;
}

/**
* Set the data factory identity.
*
* @param factoryIdentity the factoryIdentity value to set
* @return the IntegrationRuntimePermissionRequest object itself.
*/
public IntegrationRuntimePermissionRequest withFactoryIdentity(String factoryIdentity) {
this.factoryIdentity = factoryIdentity;
return this;
}

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

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.datafactoryv2.v2017_09_01_preview.implementation.DataFactoryManager;
import com.microsoft.azure.management.datafactoryv2.v2017_09_01_preview.implementation.IntegrationRuntimePermissionResponseInner;

/**
* Type representing IntegrationRuntimePermissionResponse.
*/
public interface IntegrationRuntimePermissionResponse extends HasInner<IntegrationRuntimePermissionResponseInner>, HasManager<DataFactoryManager> {
/**
* @return the sharedIntegrationRuntimeCount value.
*/
Integer sharedIntegrationRuntimeCount();

}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ public final class IntegrationRuntimeState extends ExpandableStringEnum<Integrat
/** Static value Offline for IntegrationRuntimeState. */
public static final IntegrationRuntimeState OFFLINE = fromString("Offline");

/** Static value AccessDenied for IntegrationRuntimeState. */
public static final IntegrationRuntimeState ACCESS_DENIED = fromString("AccessDenied");

/**
* Creates or finds a IntegrationRuntimeState from its string representation.
* @param name a name to look for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

package com.microsoft.azure.management.datafactoryv2.v2017_09_01_preview;

import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
Expand All @@ -24,12 +23,6 @@
@JsonSubTypes.Type(name = "Managed", value = ManagedIntegrationRuntimeStatus.class)
})
public class IntegrationRuntimeStatus {
/**
* Unmatched properties from the message are deserialized this collection.
*/
@JsonProperty(value = "")
private Map<String, Object> additionalProperties;

/**
* The data factory name which the integration runtime belong to.
*/
Expand All @@ -39,31 +32,11 @@ public class IntegrationRuntimeStatus {
/**
* The state of integration runtime. Possible values include: 'Initial',
* 'Stopped', 'Started', 'Starting', 'Stopping', 'NeedRegistration',
* 'Online', 'Limited', 'Offline'.
* 'Online', 'Limited', 'Offline', 'AccessDenied'.
*/
@JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY)
private IntegrationRuntimeState state;

/**
* Get unmatched properties from the message are deserialized this collection.
*
* @return the additionalProperties value
*/
public Map<String, Object> additionalProperties() {
return this.additionalProperties;
}

/**
* Set unmatched properties from the message are deserialized this collection.
*
* @param additionalProperties the additionalProperties value to set
* @return the IntegrationRuntimeStatus object itself.
*/
public IntegrationRuntimeStatus withAdditionalProperties(Map<String, Object> additionalProperties) {
this.additionalProperties = additionalProperties;
return this;
}

/**
* Get the data factory name which the integration runtime belong to.
*
Expand All @@ -74,7 +47,7 @@ public String dataFactoryName() {
}

/**
* Get the state of integration runtime. Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline'.
* Get the state of integration runtime. Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline', 'AccessDenied'.
*
* @return the state value
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,30 @@ public interface IntegrationRuntimes extends SupportsCreating<IntegrationRuntime
*/
Completable upgradeAsync(String resourceGroupName, String factoryName, String integrationRuntimeName);

/**
* Grant integration runtime access to other data factory.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param integrationRuntimeName The integration runtime name.
* @param integrationRuntimePermissionRequest The data factory identity which will be granted the access to given integration runtime.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<IntegrationRuntimePermissionResponse> addIdentityAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, IntegrationRuntimePermissionRequest integrationRuntimePermissionRequest);

/**
* Revoke the integration runtime access from other data factory.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param integrationRuntimeName The integration runtime name.
* @param integrationRuntimePermissionRequest The data factory identity which will be revoked the access to given integration runtime.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<IntegrationRuntimePermissionResponse> removeIdentityAsync(String resourceGroupName, String factoryName, String integrationRuntimeName, IntegrationRuntimePermissionRequest integrationRuntimePermissionRequest);

/**
* Gets an integration runtime.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
* The base definition of a secret type.
* The key authorization type.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "authorizationType")
@JsonTypeName("Key")
public class LinkedIntegrationRuntimeKey extends LinkedIntegrationRuntimeProperties {
/**
* Type of the secret.
* The key used for authorization.
*/
@JsonProperty(value = "key", required = true)
private SecureString key;

/**
* Get type of the secret.
* Get the key used for authorization.
*
* @return the key value
*/
Expand All @@ -34,7 +34,7 @@ public SecureString key() {
}

/**
* Set type of the secret.
* Set the key used for authorization.
*
* @param key the key value to set
* @return the LinkedIntegrationRuntimeKey object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import com.fasterxml.jackson.annotation.JsonSubTypes;

/**
* The base definition of a secret type.
* The base definition of a linked integration runtime properties.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "authorizationType")
@JsonTypeName("LinkedIntegrationRuntimeProperties")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
* The base definition of a secret type.
* The role based access control (RBAC) authorization type.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "authorizationType")
@JsonTypeName("RBAC")
public class LinkedIntegrationRuntimeRbac extends LinkedIntegrationRuntimeProperties {
/**
* The resource ID of the integration runtime to be shared.
* The resource identifier of the integration runtime to be shared.
*/
@JsonProperty(value = "resourceId", required = true)
private String resourceId;

/**
* Get the resource ID of the integration runtime to be shared.
* Get the resource identifier of the integration runtime to be shared.
*
* @return the resourceId value
*/
Expand All @@ -34,7 +34,7 @@ public String resourceId() {
}

/**
* Set the resource ID of the integration runtime to be shared.
* Set the resource identifier of the integration runtime to be shared.
*
* @param resourceId the resourceId value to set
* @return the LinkedIntegrationRuntimeRbac object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class ManagedIntegrationRuntime extends IntegrationRuntimeInner {
* Integration runtime state, only valid for managed dedicated integration
* runtime. Possible values include: 'Initial', 'Stopped', 'Started',
* 'Starting', 'Stopping', 'NeedRegistration', 'Online', 'Limited',
* 'Offline'.
* 'Offline', 'AccessDenied'.
*/
@JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY)
private IntegrationRuntimeState state;
Expand All @@ -44,7 +44,7 @@ public class ManagedIntegrationRuntime extends IntegrationRuntimeInner {
private IntegrationRuntimeSsisProperties ssisProperties;

/**
* Get integration runtime state, only valid for managed dedicated integration runtime. Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline'.
* Get integration runtime state, only valid for managed dedicated integration runtime. Possible values include: 'Initial', 'Stopped', 'Started', 'Starting', 'Stopping', 'NeedRegistration', 'Online', 'Limited', 'Offline', 'AccessDenied'.
*
* @return the state value
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

package com.microsoft.azure.management.datafactoryv2.v2017_09_01_preview;

import java.util.Map;
import org.joda.time.DateTime;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
Expand All @@ -22,6 +23,12 @@
@JsonTypeName("Managed")
@JsonFlatten
public class ManagedIntegrationRuntimeStatus extends IntegrationRuntimeStatus {
/**
* Unmatched properties from the message are deserialized this collection.
*/
@JsonProperty(value = "typeProperties.")
private Map<String, Object> additionalProperties;

/**
* The time at which the integration runtime was created, in ISO8601
* format.
Expand All @@ -47,6 +54,26 @@ public class ManagedIntegrationRuntimeStatus extends IntegrationRuntimeStatus {
@JsonProperty(value = "typeProperties.lastOperation", access = JsonProperty.Access.WRITE_ONLY)
private ManagedIntegrationRuntimeOperationResult lastOperation;

/**
* Get unmatched properties from the message are deserialized this collection.
*
* @return the additionalProperties value
*/
public Map<String, Object> additionalProperties() {
return this.additionalProperties;
}

/**
* Set unmatched properties from the message are deserialized this collection.
*
* @param additionalProperties the additionalProperties value to set
* @return the ManagedIntegrationRuntimeStatus object itself.
*/
public ManagedIntegrationRuntimeStatus withAdditionalProperties(Map<String, Object> additionalProperties) {
this.additionalProperties = additionalProperties;
return this;
}

/**
* Get the time at which the integration runtime was created, in ISO8601 format.
*
Expand Down
Loading