Interface FactoriesClient
public interface FactoriesClient
An instance of this class provides access to all the operations defined in FactoriesClient.
-
Method Summary
Modifier and TypeMethodDescriptionconfigureFactoryRepo
(String locationId, FactoryRepoUpdate factoryRepoUpdate) Updates a factory's repo information.com.azure.core.http.rest.Response<FactoryInner>
configureFactoryRepoWithResponse
(String locationId, FactoryRepoUpdate factoryRepoUpdate, com.azure.core.util.Context context) Updates a factory's repo information.createOrUpdate
(String resourceGroupName, String factoryName, FactoryInner factory) Creates or updates a factory.com.azure.core.http.rest.Response<FactoryInner>
createOrUpdateWithResponse
(String resourceGroupName, String factoryName, FactoryInner factory, String ifMatch, com.azure.core.util.Context context) Creates or updates a factory.void
Deletes a factory.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String resourceGroupName, String factoryName, com.azure.core.util.Context context) Deletes a factory.getByResourceGroup
(String resourceGroupName, String factoryName) Gets a factory.com.azure.core.http.rest.Response<FactoryInner>
getByResourceGroupWithResponse
(String resourceGroupName, String factoryName, String ifNoneMatch, com.azure.core.util.Context context) Gets a factory.getDataPlaneAccess
(String resourceGroupName, String factoryName, UserAccessPolicy policy) Get Data Plane access.com.azure.core.http.rest.Response<AccessPolicyResponseInner>
getDataPlaneAccessWithResponse
(String resourceGroupName, String factoryName, UserAccessPolicy policy, com.azure.core.util.Context context) Get Data Plane access.getGitHubAccessToken
(String resourceGroupName, String factoryName, GitHubAccessTokenRequest gitHubAccessTokenRequest) Get GitHub Access Token.com.azure.core.http.rest.Response<GitHubAccessTokenResponseInner>
getGitHubAccessTokenWithResponse
(String resourceGroupName, String factoryName, GitHubAccessTokenRequest gitHubAccessTokenRequest, com.azure.core.util.Context context) Get GitHub Access Token.com.azure.core.http.rest.PagedIterable<FactoryInner>
list()
Lists factories under the specified subscription.com.azure.core.http.rest.PagedIterable<FactoryInner>
list
(com.azure.core.util.Context context) Lists factories under the specified subscription.com.azure.core.http.rest.PagedIterable<FactoryInner>
listByResourceGroup
(String resourceGroupName) Lists factories.com.azure.core.http.rest.PagedIterable<FactoryInner>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Lists factories.update
(String resourceGroupName, String factoryName, FactoryUpdateParameters factoryUpdateParameters) Updates a factory.com.azure.core.http.rest.Response<FactoryInner>
updateWithResponse
(String resourceGroupName, String factoryName, FactoryUpdateParameters factoryUpdateParameters, com.azure.core.util.Context context) Updates a factory.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<FactoryInner> list()Lists factories under the specified subscription.- Returns:
- a list of factory resources as paginated response with
PagedIterable
. - Throws:
com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
Lists factories under the specified subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- a list of factory resources as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
configureFactoryRepoWithResponse
com.azure.core.http.rest.Response<FactoryInner> configureFactoryRepoWithResponse(String locationId, FactoryRepoUpdate factoryRepoUpdate, com.azure.core.util.Context context) Updates a factory's repo information.- Parameters:
locationId
- The location identifier.factoryRepoUpdate
- Update factory repo request definition.context
- The context to associate with this operation.- Returns:
- factory resource type along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
configureFactoryRepo
Updates a factory's repo information.- Parameters:
locationId
- The location identifier.factoryRepoUpdate
- Update factory repo request definition.- Returns:
- factory resource type.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
Lists factories.- Parameters:
resourceGroupName
- The resource group name.- Returns:
- a list of factory resources as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<FactoryInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Lists factories.- Parameters:
resourceGroupName
- The resource group name.context
- The context to associate with this operation.- Returns:
- a list of factory resources as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<FactoryInner> createOrUpdateWithResponse(String resourceGroupName, String factoryName, FactoryInner factory, String ifMatch, com.azure.core.util.Context context) Creates or updates a factory.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.factory
- Factory resource definition.ifMatch
- ETag of the factory entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update.context
- The context to associate with this operation.- Returns:
- factory resource type along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
Creates or updates a factory.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.factory
- Factory resource definition.- Returns:
- factory resource type.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
updateWithResponse
com.azure.core.http.rest.Response<FactoryInner> updateWithResponse(String resourceGroupName, String factoryName, FactoryUpdateParameters factoryUpdateParameters, com.azure.core.util.Context context) Updates a factory.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.factoryUpdateParameters
- The parameters for updating a factory.context
- The context to associate with this operation.- Returns:
- factory resource type along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
update
FactoryInner update(String resourceGroupName, String factoryName, FactoryUpdateParameters factoryUpdateParameters) Updates a factory.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.factoryUpdateParameters
- The parameters for updating a factory.- Returns:
- factory resource type.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<FactoryInner> getByResourceGroupWithResponse(String resourceGroupName, String factoryName, String ifNoneMatch, com.azure.core.util.Context context) Gets a factory.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.ifNoneMatch
- ETag of the factory entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned.context
- The context to associate with this operation.- Returns:
- a factory along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByResourceGroup
Gets a factory.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.- Returns:
- a factory.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String factoryName, com.azure.core.util.Context context) Deletes a factory.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.context
- The context to associate with this operation.- Returns:
- the
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Deletes a factory.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getGitHubAccessTokenWithResponse
com.azure.core.http.rest.Response<GitHubAccessTokenResponseInner> getGitHubAccessTokenWithResponse(String resourceGroupName, String factoryName, GitHubAccessTokenRequest gitHubAccessTokenRequest, com.azure.core.util.Context context) Get GitHub Access Token.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.gitHubAccessTokenRequest
- Get GitHub access token request definition.context
- The context to associate with this operation.- Returns:
- gitHub Access Token along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getGitHubAccessToken
GitHubAccessTokenResponseInner getGitHubAccessToken(String resourceGroupName, String factoryName, GitHubAccessTokenRequest gitHubAccessTokenRequest) Get GitHub Access Token.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.gitHubAccessTokenRequest
- Get GitHub access token request definition.- Returns:
- gitHub Access Token.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getDataPlaneAccessWithResponse
com.azure.core.http.rest.Response<AccessPolicyResponseInner> getDataPlaneAccessWithResponse(String resourceGroupName, String factoryName, UserAccessPolicy policy, com.azure.core.util.Context context) Get Data Plane access.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.policy
- Data Plane user access policy definition.context
- The context to associate with this operation.- Returns:
- data Plane access along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getDataPlaneAccess
AccessPolicyResponseInner getDataPlaneAccess(String resourceGroupName, String factoryName, UserAccessPolicy policy) Get Data Plane access.- Parameters:
resourceGroupName
- The resource group name.factoryName
- The factory name.policy
- Data Plane user access policy definition.- Returns:
- data Plane access.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-