Package org.azd.featuremanagement.scope
Class StateScopeRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.featuremanagement.scope.StateScopeRequestBuilder
Request builder to manage Feature management state scope 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
ConstructorDescriptionStateScopeRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionget
(FeatureManagement feature, FeatureManagementUserScope userScope, FeatureManagementScopeName scopeName, String scopeValue) Get the state of the specified feature for the given named scopegetAsync
(FeatureManagement feature, FeatureManagementUserScope userScope, FeatureManagementScopeName scopeName, String scopeValue) Get the state of the specified feature for the given named scopequery
(ContributedFeatureStateQuery query, FeatureManagementUserScope userScope) Get the states of the specified features for the default scopequery
(ContributedFeatureStateQuery query, FeatureManagementUserScope userScope, FeatureManagementScopeName scopeName, String scopeValue) Get the states of the specified features for the specific named scopequeryAsync
(ContributedFeatureStateQuery query, FeatureManagementUserScope userScope) Get the states of the specified features for the default scopequeryAsync
(ContributedFeatureStateQuery query, FeatureManagementUserScope userScope, FeatureManagementScopeName scopeName, String scopeValue) Get the states of the specified features for the specific named scopeset
(ContributedFeatureState featureState, FeatureManagement feature, FeatureManagementUserScope userScope, FeatureManagementScopeName scopeName, String scopeValue) Set the state of a feature at a specific scopeset
(ContributedFeatureState featureState, FeatureManagement feature, FeatureManagementUserScope userScope, FeatureManagementScopeName scopeName, String scopeValue, Consumer<FeatureManagementRequestBuilder.RequestConfiguration> requestConfiguration) Set the state of a feature at a specific scopesetAsync
(ContributedFeatureState featureState, FeatureManagement feature, FeatureManagementUserScope userScope, FeatureManagementScopeName scopeName, String scopeValue) Set the state of a feature at a specific scopesetAsync
(ContributedFeatureState featureState, FeatureManagement feature, FeatureManagementUserScope userScope, FeatureManagementScopeName scopeName, String scopeValue, Consumer<FeatureManagementRequestBuilder.RequestConfiguration> requestConfiguration) Set the state of a feature at a specific scopeMethods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
StateScopeRequestBuilder
public StateScopeRequestBuilder(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
-
getAsync
public CompletableFuture<ContributedFeatureState> getAsync(FeatureManagement feature, FeatureManagementUserScope userScope, FeatureManagementScopeName scopeName, String scopeValue) throws AzDException Get the state of the specified feature for the given named scope- Parameters:
feature
- Contribution id of the feature.userScope
- User-Scope at which to get the value. Should be "me" for the current user or "host" for all users.scopeName
- Scope at which to get the feature setting for (e.g. "project" or "team")scopeValue
- Value of the scope (e.g. the project or team id)- Returns:
- Contributed feature state object.
ContributedFeatureState
- Throws:
AzDException
- Default Api exception handler.
-
setAsync
public CompletableFuture<ContributedFeatureState> setAsync(ContributedFeatureState featureState, FeatureManagement feature, FeatureManagementUserScope userScope, FeatureManagementScopeName scopeName, String scopeValue) throws AzDException Set the state of a feature at a specific scope- Parameters:
feature
- Contribution id of the feature.userScope
- User-Scope at which to get the value. Should be "me" for the current user or "host" for all users.scopeName
- Scope at which to get the feature setting for (e.g. "project" or "team")scopeValue
- Value of the scope (e.g. the project or team id)- Returns:
- Contributed feature state object.
ContributedFeatureState
- Throws:
AzDException
- Default Api exception handler.
-
setAsync
public CompletableFuture<ContributedFeatureState> setAsync(ContributedFeatureState featureState, FeatureManagement feature, FeatureManagementUserScope userScope, FeatureManagementScopeName scopeName, String scopeValue, Consumer<FeatureManagementRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Set the state of a feature at a specific scope- Parameters:
feature
- Contribution id of the feature.userScope
- User-Scope at which to get the value. Should be "me" for the current user or "host" for all users.scopeName
- Scope at which to get the feature setting for (e.g. "project" or "team")scopeValue
- Value of the scope (e.g. the project or team id)requestConfiguration
- Consumer of request configuration. This represents the query parameter for the request.- Returns:
- Contributed feature state object.
ContributedFeatureState
- Throws:
AzDException
- Default Api exception handler.
-
queryAsync
public CompletableFuture<ContributedFeatureStateQuery> queryAsync(ContributedFeatureStateQuery query, FeatureManagementUserScope userScope) throws AzDException Get the states of the specified features for the default scope- Parameters:
query
- Query describing the features to query.userScope
- User-Scope at which to get the value. Should be "me" for the current user or "host" for all users.- Returns:
- Contributed feature state query object.
ContributedFeatureStateQuery
- Throws:
AzDException
- Default Api exception handler.
-
queryAsync
public CompletableFuture<ContributedFeatureStateQuery> queryAsync(ContributedFeatureStateQuery query, FeatureManagementUserScope userScope, FeatureManagementScopeName scopeName, String scopeValue) throws AzDException Get the states of the specified features for the specific named scope- Parameters:
query
- Query describing the features to query.userScope
- User-Scope at which to get the value. Should be "me" for the current user or "host" for all users.scopeName
- Scope at which to get the feature setting for (e.g. "project" or "team")scopeValue
- Value of the scope (e.g. the project or team id)- Returns:
- Contributed feature state query object.
ContributedFeatureStateQuery
- Throws:
AzDException
- Default Api exception handler.
-
get
public ContributedFeatureState get(FeatureManagement feature, FeatureManagementUserScope userScope, FeatureManagementScopeName scopeName, String scopeValue) throws AzDException Get the state of the specified feature for the given named scope- Parameters:
feature
- Contribution id of the feature.userScope
- User-Scope at which to get the value. Should be "me" for the current user or "host" for all users.scopeName
- Scope at which to get the feature setting for (e.g. "project" or "team")scopeValue
- Value of the scope (e.g. the project or team id)- Returns:
- Contributed feature state object.
ContributedFeatureState
- Throws:
AzDException
- Default Api exception handler.
-
set
public ContributedFeatureState set(ContributedFeatureState featureState, FeatureManagement feature, FeatureManagementUserScope userScope, FeatureManagementScopeName scopeName, String scopeValue) throws AzDException Set the state of a feature at a specific scope- Parameters:
feature
- Contribution id of the feature.userScope
- User-Scope at which to get the value. Should be "me" for the current user or "host" for all users.scopeName
- Scope at which to get the feature setting for (e.g. "project" or "team")scopeValue
- Value of the scope (e.g. the project or team id)- Returns:
- Contributed feature state object.
ContributedFeatureState
- Throws:
AzDException
- Default Api exception handler.
-
set
public ContributedFeatureState set(ContributedFeatureState featureState, FeatureManagement feature, FeatureManagementUserScope userScope, FeatureManagementScopeName scopeName, String scopeValue, Consumer<FeatureManagementRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Set the state of a feature at a specific scope- Parameters:
feature
- Contribution id of the feature.userScope
- User-Scope at which to get the value. Should be "me" for the current user or "host" for all users.scopeName
- Scope at which to get the feature setting for (e.g. "project" or "team")scopeValue
- Value of the scope (e.g. the project or team id)requestConfiguration
- Consumer of request configuration. This represents the query parameter for the request.- Returns:
- Contributed feature state object.
ContributedFeatureState
- Throws:
AzDException
- Default Api exception handler.
-
query
public ContributedFeatureStateQuery query(ContributedFeatureStateQuery query, FeatureManagementUserScope userScope) throws AzDException Get the states of the specified features for the default scope- Parameters:
query
- Query describing the features to query.userScope
- User-Scope at which to get the value. Should be "me" for the current user or "host" for all users.- Returns:
- Contributed feature state query object.
ContributedFeatureStateQuery
- Throws:
AzDException
- Default Api exception handler.
-
query
public ContributedFeatureStateQuery query(ContributedFeatureStateQuery query, FeatureManagementUserScope userScope, FeatureManagementScopeName scopeName, String scopeValue) throws AzDException Get the states of the specified features for the specific named scope- Parameters:
query
- Query describing the features to query.userScope
- User-Scope at which to get the value. Should be "me" for the current user or "host" for all users.scopeName
- Scope at which to get the feature setting for (e.g. "project" or "team")scopeValue
- Value of the scope (e.g. the project or team id)- Returns:
- Contributed feature state query object.
ContributedFeatureStateQuery
- Throws:
AzDException
- Default Api exception handler.
-