Class RestServiceLinkedService
java.lang.Object
com.azure.resourcemanager.datafactory.models.LinkedService
com.azure.resourcemanager.datafactory.models.RestServiceLinkedService
Rest Service linked service.
-
Constructor Summary
ConstructorDescriptionCreates an instance of RestServiceLinkedService class. -
Method Summary
Modifier and TypeMethodDescriptionGet the aadResourceId property: The resource you are requesting authorization to use.Get the authenticationType property: Type of authentication used to connect to the REST service.Get the authHeaders property: The additional HTTP headers in the request to RESTful API used for authorization.Get the azureCloudType property: Indicates the azure cloud type of the service principle auth.clientId()
Get the clientId property: The client ID associated with your application.Get the clientSecret property: The client secret associated with your application.Get the credential property: The credential reference containing authentication information.Get the enableServerCertificateValidation property: Whether to validate server side SSL certificate when connecting to the endpoint.The default value is true.Get the encryptedCredential property: The encrypted credential used for authentication.password()
Get the password property: The password used in Basic authentication type.resource()
Get the resource property: The target service or resource to which the access will be requested.scope()
Get the scope property: The scope of the access required.Get the servicePrincipalId property: The application's client ID used in AadServicePrincipal authentication type.Get the servicePrincipalKey property: The application's key used in AadServicePrincipal authentication type.tenant()
Get the tenant property: The tenant information (domain name or tenant ID) used in AadServicePrincipal authentication type under which your application resides.Get the tokenEndpoint property: The token endpoint of the authorization server to acquire access token.url()
Get the url property: The base URL of the REST service.username()
Get the username property: The user name used in Basic authentication type.void
validate()
Validates the instance.withAadResourceId
(Object aadResourceId) Set the aadResourceId property: The resource you are requesting authorization to use.withAnnotations
(List<Object> annotations) Set the annotations property: List of tags that can be used for describing the linked service.withAuthenticationType
(RestServiceAuthenticationType authenticationType) Set the authenticationType property: Type of authentication used to connect to the REST service.withAuthHeaders
(Object authHeaders) Set the authHeaders property: The additional HTTP headers in the request to RESTful API used for authorization.withAzureCloudType
(Object azureCloudType) Set the azureCloudType property: Indicates the azure cloud type of the service principle auth.withClientId
(Object clientId) Set the clientId property: The client ID associated with your application.withClientSecret
(SecretBase clientSecret) Set the clientSecret property: The client secret associated with your application.withConnectVia
(IntegrationRuntimeReference connectVia) Set the connectVia property: The integration runtime reference.withCredential
(CredentialReference credential) Set the credential property: The credential reference containing authentication information.withDescription
(String description) Set the description property: Linked service description.withEnableServerCertificateValidation
(Object enableServerCertificateValidation) Set the enableServerCertificateValidation property: Whether to validate server side SSL certificate when connecting to the endpoint.The default value is true.withEncryptedCredential
(Object encryptedCredential) Set the encryptedCredential property: The encrypted credential used for authentication.withParameters
(Map<String, ParameterSpecification> parameters) Set the parameters property: Parameters for linked service.withPassword
(SecretBase password) Set the password property: The password used in Basic authentication type.withResource
(Object resource) Set the resource property: The target service or resource to which the access will be requested.Set the scope property: The scope of the access required.withServicePrincipalId
(Object servicePrincipalId) Set the servicePrincipalId property: The application's client ID used in AadServicePrincipal authentication type.withServicePrincipalKey
(SecretBase servicePrincipalKey) Set the servicePrincipalKey property: The application's key used in AadServicePrincipal authentication type.withTenant
(Object tenant) Set the tenant property: The tenant information (domain name or tenant ID) used in AadServicePrincipal authentication type under which your application resides.withTokenEndpoint
(Object tokenEndpoint) Set the tokenEndpoint property: The token endpoint of the authorization server to acquire access token.Set the url property: The base URL of the REST service.withUsername
(Object username) Set the username property: The user name used in Basic authentication type.Methods inherited from class com.azure.resourcemanager.datafactory.models.LinkedService
additionalProperties, annotations, connectVia, description, parameters, withAdditionalProperties
-
Constructor Details
-
RestServiceLinkedService
public RestServiceLinkedService()Creates an instance of RestServiceLinkedService class.
-
-
Method Details
-
withConnectVia
Set the connectVia property: The integration runtime reference.- Overrides:
withConnectVia
in classLinkedService
- Parameters:
connectVia
- the connectVia value to set.- Returns:
- the LinkedService object itself.
-
withDescription
Set the description property: Linked service description.- Overrides:
withDescription
in classLinkedService
- Parameters:
description
- the description value to set.- Returns:
- the LinkedService object itself.
-
withParameters
Set the parameters property: Parameters for linked service.- Overrides:
withParameters
in classLinkedService
- Parameters:
parameters
- the parameters value to set.- Returns:
- the LinkedService object itself.
-
withAnnotations
Set the annotations property: List of tags that can be used for describing the linked service.- Overrides:
withAnnotations
in classLinkedService
- Parameters:
annotations
- the annotations value to set.- Returns:
- the LinkedService object itself.
-
url
Get the url property: The base URL of the REST service.- Returns:
- the url value.
-
withUrl
Set the url property: The base URL of the REST service.- Parameters:
url
- the url value to set.- Returns:
- the RestServiceLinkedService object itself.
-
enableServerCertificateValidation
Get the enableServerCertificateValidation property: Whether to validate server side SSL certificate when connecting to the endpoint.The default value is true. Type: boolean (or Expression with resultType boolean).- Returns:
- the enableServerCertificateValidation value.
-
withEnableServerCertificateValidation
public RestServiceLinkedService withEnableServerCertificateValidation(Object enableServerCertificateValidation) Set the enableServerCertificateValidation property: Whether to validate server side SSL certificate when connecting to the endpoint.The default value is true. Type: boolean (or Expression with resultType boolean).- Parameters:
enableServerCertificateValidation
- the enableServerCertificateValidation value to set.- Returns:
- the RestServiceLinkedService object itself.
-
authenticationType
Get the authenticationType property: Type of authentication used to connect to the REST service.- Returns:
- the authenticationType value.
-
withAuthenticationType
public RestServiceLinkedService withAuthenticationType(RestServiceAuthenticationType authenticationType) Set the authenticationType property: Type of authentication used to connect to the REST service.- Parameters:
authenticationType
- the authenticationType value to set.- Returns:
- the RestServiceLinkedService object itself.
-
username
Get the username property: The user name used in Basic authentication type.- Returns:
- the username value.
-
withUsername
Set the username property: The user name used in Basic authentication type.- Parameters:
username
- the username value to set.- Returns:
- the RestServiceLinkedService object itself.
-
password
Get the password property: The password used in Basic authentication type.- Returns:
- the password value.
-
withPassword
Set the password property: The password used in Basic authentication type.- Parameters:
password
- the password value to set.- Returns:
- the RestServiceLinkedService object itself.
-
authHeaders
Get the authHeaders property: The additional HTTP headers in the request to RESTful API used for authorization. Type: object (or Expression with resultType object).- Returns:
- the authHeaders value.
-
withAuthHeaders
Set the authHeaders property: The additional HTTP headers in the request to RESTful API used for authorization. Type: object (or Expression with resultType object).- Parameters:
authHeaders
- the authHeaders value to set.- Returns:
- the RestServiceLinkedService object itself.
-
servicePrincipalId
Get the servicePrincipalId property: The application's client ID used in AadServicePrincipal authentication type.- Returns:
- the servicePrincipalId value.
-
withServicePrincipalId
Set the servicePrincipalId property: The application's client ID used in AadServicePrincipal authentication type.- Parameters:
servicePrincipalId
- the servicePrincipalId value to set.- Returns:
- the RestServiceLinkedService object itself.
-
servicePrincipalKey
Get the servicePrincipalKey property: The application's key used in AadServicePrincipal authentication type.- Returns:
- the servicePrincipalKey value.
-
withServicePrincipalKey
Set the servicePrincipalKey property: The application's key used in AadServicePrincipal authentication type.- Parameters:
servicePrincipalKey
- the servicePrincipalKey value to set.- Returns:
- the RestServiceLinkedService object itself.
-
tenant
Get the tenant property: The tenant information (domain name or tenant ID) used in AadServicePrincipal authentication type under which your application resides.- Returns:
- the tenant value.
-
withTenant
Set the tenant property: The tenant information (domain name or tenant ID) used in AadServicePrincipal authentication type under which your application resides.- Parameters:
tenant
- the tenant value to set.- Returns:
- the RestServiceLinkedService object itself.
-
azureCloudType
Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string).- Returns:
- the azureCloudType value.
-
withAzureCloudType
Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string).- Parameters:
azureCloudType
- the azureCloudType value to set.- Returns:
- the RestServiceLinkedService object itself.
-
aadResourceId
Get the aadResourceId property: The resource you are requesting authorization to use.- Returns:
- the aadResourceId value.
-
withAadResourceId
Set the aadResourceId property: The resource you are requesting authorization to use.- Parameters:
aadResourceId
- the aadResourceId value to set.- Returns:
- the RestServiceLinkedService object itself.
-
encryptedCredential
Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string).- Returns:
- the encryptedCredential value.
-
withEncryptedCredential
Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string).- Parameters:
encryptedCredential
- the encryptedCredential value to set.- Returns:
- the RestServiceLinkedService object itself.
-
credential
Get the credential property: The credential reference containing authentication information.- Returns:
- the credential value.
-
withCredential
Set the credential property: The credential reference containing authentication information.- Parameters:
credential
- the credential value to set.- Returns:
- the RestServiceLinkedService object itself.
-
clientId
Get the clientId property: The client ID associated with your application. Type: string (or Expression with resultType string).- Returns:
- the clientId value.
-
withClientId
Set the clientId property: The client ID associated with your application. Type: string (or Expression with resultType string).- Parameters:
clientId
- the clientId value to set.- Returns:
- the RestServiceLinkedService object itself.
-
clientSecret
Get the clientSecret property: The client secret associated with your application.- Returns:
- the clientSecret value.
-
withClientSecret
Set the clientSecret property: The client secret associated with your application.- Parameters:
clientSecret
- the clientSecret value to set.- Returns:
- the RestServiceLinkedService object itself.
-
tokenEndpoint
Get the tokenEndpoint property: The token endpoint of the authorization server to acquire access token. Type: string (or Expression with resultType string).- Returns:
- the tokenEndpoint value.
-
withTokenEndpoint
Set the tokenEndpoint property: The token endpoint of the authorization server to acquire access token. Type: string (or Expression with resultType string).- Parameters:
tokenEndpoint
- the tokenEndpoint value to set.- Returns:
- the RestServiceLinkedService object itself.
-
resource
Get the resource property: The target service or resource to which the access will be requested. Type: string (or Expression with resultType string).- Returns:
- the resource value.
-
withResource
Set the resource property: The target service or resource to which the access will be requested. Type: string (or Expression with resultType string).- Parameters:
resource
- the resource value to set.- Returns:
- the RestServiceLinkedService object itself.
-
scope
Get the scope property: The scope of the access required. It describes what kind of access will be requested. Type: string (or Expression with resultType string).- Returns:
- the scope value.
-
withScope
Set the scope property: The scope of the access required. It describes what kind of access will be requested. Type: string (or Expression with resultType string).- Parameters:
scope
- the scope value to set.- Returns:
- the RestServiceLinkedService object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classLinkedService
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-