Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
:param pricing_name: name of the pricing configuration
:type pricing_name: str
:param pricing_tier: The pricing tier value. Possible values include:
'Free', 'Standard'
:type pricing_tier: str or ~azure.mgmt.security.models.PricingTier
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides`.
:return: Pricing or ClientRawResponse if raw=true
:rtype: ~azure.mgmt.security.models.Pricing or
~msrest.pipeline.ClientRawResponse
:raises: :class:`CloudError`
"""
pricing = models.Pricing(pricing_tier=pricing_tier)
# Construct URL
url = self.update.metadata['url']
path_format_arguments = {
'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str', pattern=r'^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$'),
'pricingName': self._serialize.url("pricing_name", pricing_name, 'str')
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')
# Construct headers
header_parameters = {}
header_parameters['Accept'] = 'application/json'