<commit_before>#!/usr/bin/python
#
# Copyright (c) 2018 <NAME>, <<EMAIL>>, <NAME> <<EMAIL>>
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

from __future__ import absolute_import, division, print_function
__metaclass__ = type

ANSIBLE_METADATA = {'metadata_version': '1.1',
                    'status': ['preview'],
                    'supported_by': 'community'}

DOCUMENTATION = '''
---
module: azure_rm_cdnprofile
version_added: "2.8"
short_description: Manage a Azure CDN profile.
description:
    - Create, update and delete a Azure CDN profile.

options:
    resource_group:
        description:
            - Name of a resource group where the CDN profile exists or will be created.
        required: true
    name:
        description:
            - Name of the CDN profile.
        required: true
    location:
        description:
            - Valid azure location. Defaults to location of the resource group.
    sku:
        description:
            - The pricing tier, defines a CDN provider, feature list and rate of the CDN profile.
            - Detailed pricing can be find at U(https://azure.microsoft.com/en-us/pricing/details/cdn/)
        choices:
            - standard_verizon
            - premium_verizon
            - custom_verizon
            - standard_akamai
            - standard_chinacdn
            - standard_microsoft
    state:
        description:
            - Assert the state of the CDN profile. Use C(present) to create or update a CDN profile and C(absent) to delete it.
        default: present
        choices:
            - absent
            - present

extends_documentation_fragment:
    - azure
    - azure_tags

author:
    - "<NAME> <<EMAIL>>"
    - "<NAME> <<EMAIL>>"
'''

EXAMPLES = '''
    - name: Create a CDN profile
      azure_rm_cdnprofile:
          resource_group: Testing
          name: cdntest
          sku: Standard_Akamai
          tags:<commit_msg>fixed sample code (#48707)<commit_after>#!/usr/bin/python
#
# Copyright (c) 2018 <NAME>, <<EMAIL>>, <NAME> <<EMAIL>>
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)

from __future__ import absolute_import, division, print_function
__metaclass__ = type

ANSIBLE_METADATA = {'metadata_version': '1.1',
                    'status': ['preview'],
                    'supported_by': 'community'}

DOCUMENTATION = '''
---
module: azure_rm_cdnprofile
version_added: "2.8"
short_description: Manage a Azure CDN profile.
description:
    - Create, update and delete a Azure CDN profile.

options:
    resource_group:
        description:
            - Name of a resource group where the CDN profile exists or will be created.
        required: true
    name:
        description:
            - Name of the CDN profile.
        required: true
    location:
        description:
            - Valid azure location. Defaults to location of the resource group.
    sku:
        description:
            - The pricing tier, defines a CDN provider, feature list and rate of the CDN profile.
            - Detailed pricing can be find at U(https://azure.microsoft.com/en-us/pricing/details/cdn/)
        choices:
            - standard_verizon
            - premium_verizon
            - custom_verizon
            - standard_akamai
            - standard_chinacdn
            - standard_microsoft
    state:
        description:
            - Assert the state of the CDN profile. Use C(present) to create or update a CDN profile and C(absent) to delete it.
        default: present
        choices:
            - absent
            - present

extends_documentation_fragment:
    - azure
    - azure_tags

author:
    - "<NAME> <<EMAIL>>"
    - "<NAME> <<EMAIL>>"
'''

EXAMPLES = '''
    - name: Create a CDN profile
      azure_rm_cdnprofile:
          resource_group: Testing
          name: cdntest
          sku: standard_akamai
          tags:
{'fraction_non_alphanumeric': 0.09095515581454269, 'fraction_numerical': 0.007347352419559159, 'mean_word_length': 2.0462962962962963, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3134976', 'n_tokens_mistral': 1164, 'n_tokens_neox': 1123, 'n_words': 348}