Package org.azd.policy.policytypes
Class TypesRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.policy.policytypes.TypesRequestBuilder
Provides functionality to work with Policy Types Api.
-
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
ConstructorDescriptionTypesRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionRetrieve a specific policy type by ID.Retrieve a specific policy type by ID.list()
Retrieve all available policy types.Retrieve all available policy types.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
TypesRequestBuilder
Instantiates a new RequestBuilder instance and sets the default values.- Parameters:
organizationUrl
- Represents organization location request url.accessTokenCredential
- Access token credential object.
-
-
Method Details
-
getAsync
Retrieve a specific policy type by ID.- Parameters:
typeId
- Guid of the configuration policy type.- Returns:
- PolicyType object
PolicyType
- Throws:
AzDException
- Default Api Exception handler.
-
listAsync
Retrieve all available policy types.- Returns:
- PolicyTypes object
PolicyTypes
- Throws:
AzDException
- Default Api Exception handler.
-
get
Retrieve a specific policy type by ID.- Parameters:
typeId
- Guid of the configuration policy type.- Returns:
- PolicyType object
PolicyType
- Throws:
AzDException
- Default Api Exception handler.
-
list
Retrieve all available policy types.- Returns:
- PolicyTypes object
PolicyTypes
- Throws:
AzDException
- Default Api Exception handler.
-