Package org.azd.helpers.serviceendpoint
Class ServiceEndpointHelpersRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.serviceendpoint.ServiceEndpointRequestBuilder
org.azd.helpers.serviceendpoint.ServiceEndpointHelpersRequestBuilder
Helper request builder that combines multiple Apis to create logical helper methods for ease of use.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.azd.abstractions.BaseRequestBuilder
BaseRequestBuilder.ProjectExcludeParameter
-
Field Summary
Fields inherited from class org.azd.abstractions.BaseRequestBuilder
accessTokenCredential, apiVersion, area, locationId, organizationUrl, serializer
-
Constructor Summary
ConstructorDescriptionServiceEndpointHelpersRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Methods inherited from class org.azd.serviceendpoint.ServiceEndpointRequestBuilder
endpoints
Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
ServiceEndpointHelpersRequestBuilder
public ServiceEndpointHelpersRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values.- Parameters:
organizationUrl
- Represents organization location request url.accessTokenCredential
- Access token credential object.
-
-
Method Details
-
createAzureRMServiceEndpoint
public ServiceEndpoint createAzureRMServiceEndpoint(String endpointName, String servicePrincipalId, String servicePrincipalKey, String tenantId, String subscriptionId, String subscriptionName) throws AzDException A helper method to create Azure RM service endpoint- Parameters:
endpointName
- Friendly name of the endpointservicePrincipalId
- service principal IdservicePrincipalKey
- service principal keytenantId
- Tenant IdsubscriptionId
- subscription IdsubscriptionName
- subscription name- Returns:
- ServiceEndpoint
ServiceEndpoint
- Throws:
AzDException
- Default Api Exception handler.
-