mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
Add support for Azure 2.0.0 (#27920)
* Adapt azure_rm_resource_group to azure 2.0.0 + azure Cli support * Fix exceptions in Azure ARM plugins * update azure_rm_networkinterface documention to reflect required params * change state param to not required for docs in azure_rm_subnet * fix import to reflect azure==2.0.0 changes * add aliases and fix docs for azure_rm_storageblob * add resource_group_name alias to azure_rm_storageaccount_facts * fix import bug due to change in azure==2.0.0 * fix args bug and enum modules issue * update docs to reflect azure==2.0.0 * pin management clients to a specific api_version * update docs to reflect the new azure-ansible-base python package * add fallback for older api resource group listing * rework azure dependencies installation * refactor path joining to a cross-plat solution
This commit is contained in:
parent
1b9d9376e2
commit
e4cd899363
17 changed files with 151 additions and 51 deletions
|
@ -29,6 +29,7 @@ options:
|
|||
required: true
|
||||
aliases:
|
||||
- account_name
|
||||
- storage_account
|
||||
blob:
|
||||
description:
|
||||
- Name of a blob object within the container.
|
||||
|
@ -89,6 +90,8 @@ options:
|
|||
description:
|
||||
- Name of the resource group to use.
|
||||
required: true
|
||||
aliases:
|
||||
- resource_group_name
|
||||
src:
|
||||
description:
|
||||
- Source file path. Use with state 'present' to upload a blob.
|
||||
|
@ -207,12 +210,12 @@ class AzureRMStorageBlob(AzureRMModuleBase):
|
|||
def __init__(self):
|
||||
|
||||
self.module_arg_spec = dict(
|
||||
storage_account_name=dict(required=True, type='str', aliases=['account_name']),
|
||||
storage_account_name=dict(required=True, type='str', aliases=['account_name', 'storage_account']),
|
||||
blob=dict(type='str', aliases=['blob_name']),
|
||||
container=dict(required=True, type='str', aliases=['container_name']),
|
||||
dest=dict(type='str'),
|
||||
force=dict(type='bool', default=False),
|
||||
resource_group=dict(required=True, type='str'),
|
||||
resource_group=dict(required=True, type='str', aliases=['resource_group_name']),
|
||||
src=dict(type='str'),
|
||||
state=dict(type='str', default='present', choices=['absent', 'present']),
|
||||
public_access=dict(type='str', choices=['container', 'blob']),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue