com.azure.resourcemanager.security.fluent.PricingsClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-security Show documentation
Show all versions of azure-resourcemanager-security Show documentation
This package contains Microsoft Azure SDK for Security Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. API spec for Microsoft.Security (Azure Security Center) resource provider. Package tag package-composite-v3.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.security.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.security.fluent.models.PricingInner;
import com.azure.resourcemanager.security.fluent.models.PricingListInner;
/**
* An instance of this class provides access to all the operations defined in PricingsClient.
*/
public interface PricingsClient {
/**
* Get the Defender plans pricing configurations of the selected scope (valid scopes are resource id or a
* subscription id). At the resource level, supported resource types are 'VirtualMachines, VMSS and ARC Machines'.
*
* @param scopeId The scope id of the pricing. Valid scopes are: subscription (format:
* 'subscriptions/{subscriptionId}'), or a specific resource (format:
* 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName})
* - Supported resources are (VirtualMachines).
* @param pricingName name of the pricing configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the Defender plans pricing configurations of the selected scope (valid scopes are resource id or a
* subscription id) along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getWithResponse(String scopeId, String pricingName, Context context);
/**
* Get the Defender plans pricing configurations of the selected scope (valid scopes are resource id or a
* subscription id). At the resource level, supported resource types are 'VirtualMachines, VMSS and ARC Machines'.
*
* @param scopeId The scope id of the pricing. Valid scopes are: subscription (format:
* 'subscriptions/{subscriptionId}'), or a specific resource (format:
* 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName})
* - Supported resources are (VirtualMachines).
* @param pricingName name of the pricing configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the Defender plans pricing configurations of the selected scope (valid scopes are resource id or a
* subscription id).
*/
@ServiceMethod(returns = ReturnType.SINGLE)
PricingInner get(String scopeId, String pricingName);
/**
* Updates a provided Microsoft Defender for Cloud pricing configuration in the scope. Valid scopes are:
* subscription id or a specific resource id (Supported resources are: 'VirtualMachines, VMSS and ARC Machines' and
* only for plan='VirtualMachines' and subPlan='P1').
*
* @param scopeId The scope id of the pricing. Valid scopes are: subscription (format:
* 'subscriptions/{subscriptionId}'), or a specific resource (format:
* 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName})
* - Supported resources are (VirtualMachines).
* @param pricingName name of the pricing configuration.
* @param pricing Pricing object.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return microsoft Defender for Cloud is provided in two pricing tiers: free and standard along with
* {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response updateWithResponse(String scopeId, String pricingName, PricingInner pricing,
Context context);
/**
* Updates a provided Microsoft Defender for Cloud pricing configuration in the scope. Valid scopes are:
* subscription id or a specific resource id (Supported resources are: 'VirtualMachines, VMSS and ARC Machines' and
* only for plan='VirtualMachines' and subPlan='P1').
*
* @param scopeId The scope id of the pricing. Valid scopes are: subscription (format:
* 'subscriptions/{subscriptionId}'), or a specific resource (format:
* 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName})
* - Supported resources are (VirtualMachines).
* @param pricingName name of the pricing configuration.
* @param pricing Pricing object.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return microsoft Defender for Cloud is provided in two pricing tiers: free and standard.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
PricingInner update(String scopeId, String pricingName, PricingInner pricing);
/**
* Deletes a provided Microsoft Defender for Cloud pricing configuration in a specific resource. Valid only for
* resource scope (Supported resources are: 'VirtualMachines, VMSS and ARC MachinesS').
*
* @param scopeId The identifier of the resource, (format:
* 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}).
* @param pricingName name of the pricing configuration.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response deleteWithResponse(String scopeId, String pricingName, Context context);
/**
* Deletes a provided Microsoft Defender for Cloud pricing configuration in a specific resource. Valid only for
* resource scope (Supported resources are: 'VirtualMachines, VMSS and ARC MachinesS').
*
* @param scopeId The identifier of the resource, (format:
* 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}).
* @param pricingName name of the pricing configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String scopeId, String pricingName);
/**
* Lists Microsoft Defender for Cloud pricing configurations of the scopeId, that match the optional given $filter.
* Valid scopes are: subscription id or a specific resource id (Supported resources are: 'VirtualMachines, VMSS and
* ARC Machines'). Valid $filter is: 'name in ({planName1},{planName2},...)'. If $filter is not provided, the
* unfiltered list will be returned. If '$filter=name in (planName1,planName2)' is provided, the returned list
* includes the pricings set for 'planName1' and 'planName2' only.
*
* @param scopeId The scope id of the pricing. Valid scopes are: subscription (format:
* 'subscriptions/{subscriptionId}'), or a specific resource (format:
* 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName})
* - Supported resources are (VirtualMachines).
* @param filter OData filter. Optional.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of pricing configurations response along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listWithResponse(String scopeId, String filter, Context context);
/**
* Lists Microsoft Defender for Cloud pricing configurations of the scopeId, that match the optional given $filter.
* Valid scopes are: subscription id or a specific resource id (Supported resources are: 'VirtualMachines, VMSS and
* ARC Machines'). Valid $filter is: 'name in ({planName1},{planName2},...)'. If $filter is not provided, the
* unfiltered list will be returned. If '$filter=name in (planName1,planName2)' is provided, the returned list
* includes the pricings set for 'planName1' and 'planName2' only.
*
* @param scopeId The scope id of the pricing. Valid scopes are: subscription (format:
* 'subscriptions/{subscriptionId}'), or a specific resource (format:
* 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName})
* - Supported resources are (VirtualMachines).
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return list of pricing configurations response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
PricingListInner list(String scopeId);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy