com.azure.resourcemanager.security.models.Pricings Maven / Gradle / Ivy
// 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.models;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.security.fluent.models.PricingInner;
/**
* Resource collection API of Pricings.
*/
public interface Pricings {
/**
* 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}.
*/
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).
*/
Pricing 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}.
*/
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.
*/
Pricing 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}.
*/
Response deleteByResourceGroupWithResponse(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.
*/
void deleteByResourceGroup(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}.
*/
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.
*/
PricingList list(String scopeId);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy