From 1cd9354ee3c527a75880a2ee948c2f1628ae2465 Mon Sep 17 00:00:00 2001 From: nicholasmhughes Date: Sat, 2 May 2020 21:26:01 -0400 Subject: [PATCH 01/14] renaming root dir --- {idem_provider_azurerm => idem_azurerm}/conf.py | 0 .../exec/azurerm/authorization/permission.py | 0 .../exec/azurerm/authorization/provider.py | 0 .../exec/azurerm/authorization/role.py | 0 .../exec/azurerm/compute/availability_set.py | 0 .../exec/azurerm/compute/disk.py | 0 .../exec/azurerm/compute/image.py | 0 .../exec/azurerm/compute/virtual_machine.py | 0 .../exec/azurerm/compute/virtual_machine_extension.py | 0 .../exec/azurerm/compute/virtual_machine_extension_image.py | 0 .../exec/azurerm/dns/record_set.py | 0 {idem_provider_azurerm => idem_azurerm}/exec/azurerm/dns/zone.py | 0 .../exec/azurerm/keyvault/key.py | 0 .../exec/azurerm/keyvault/vault.py | 0 .../exec/azurerm/log_analytics/workspace.py | 0 .../exec/azurerm/managementgroup/operations.py | 0 .../exec/azurerm/monitor/diagnostic_setting.py | 0 .../exec/azurerm/monitor/log_profile.py | 0 .../exec/azurerm/network/__init__.py | 0 .../exec/azurerm/network/load_balancer.py | 0 .../exec/azurerm/network/local_network_gateway.py | 0 .../exec/azurerm/network/network_interface.py | 0 .../exec/azurerm/network/network_security_group.py | 0 .../exec/azurerm/network/public_ip_address.py | 0 .../exec/azurerm/network/route.py | 0 .../exec/azurerm/network/virtual_network.py | 0 .../exec/azurerm/network/virtual_network_gateway.py | 0 .../exec/azurerm/network/virtual_network_peerings.py | 0 .../exec/azurerm/postgresql/check_name_availability.py | 0 .../exec/azurerm/postgresql/configuration.py | 0 .../exec/azurerm/postgresql/database.py | 0 .../exec/azurerm/postgresql/firewall_rule.py | 0 .../exec/azurerm/postgresql/location_based_performance_tier.py | 0 .../exec/azurerm/postgresql/log_files.py | 0 .../exec/azurerm/postgresql/operations.py | 0 .../exec/azurerm/postgresql/replicas.py | 0 .../exec/azurerm/postgresql/server.py | 0 .../exec/azurerm/postgresql/server_security_alert_policy.py | 0 .../exec/azurerm/postgresql/virtual_network_rule.py | 0 .../exec/azurerm/redis/operations.py | 0 .../exec/azurerm/resource/deployment.py | 0 .../exec/azurerm/resource/group.py | 0 .../exec/azurerm/resource/management_lock.py | 0 .../exec/azurerm/resource/policy.py | 0 .../exec/azurerm/resource/provider.py | 0 .../exec/azurerm/resource/subscription.py | 0 .../exec/azurerm/resource/tenant.py | 0 .../exec/azurerm/storage/account.py | 0 .../exec/azurerm/storage/container.py | 0 .../exec/azurerm/storage/sku.py | 0 .../exec/azurerm/storage/usage.py | 0 {idem_provider_azurerm => idem_azurerm}/exec/utils/azurerm.py | 0 {idem_provider_azurerm => idem_azurerm}/exec/utils/dictdiffer.py | 0 {idem_provider_azurerm => idem_azurerm}/scripts.py | 0 .../states/azurerm/compute/availability_set.py | 0 .../states/azurerm/compute/virtual_machine.py | 0 .../states/azurerm/dns/record_set.py | 0 .../states/azurerm/dns/zone.py | 0 .../states/azurerm/keyvault/key.py | 0 .../states/azurerm/keyvault/vault.py | 0 .../states/azurerm/log_analytics/workspace.py | 0 .../states/azurerm/managementgroup/operations.py | 0 .../states/azurerm/monitor/diagnostic_setting.py | 0 .../states/azurerm/network/load_balancer.py | 0 .../states/azurerm/network/local_network_gateway.py | 0 .../states/azurerm/network/network_interface.py | 0 .../states/azurerm/network/network_security_group.py | 0 .../states/azurerm/network/public_ip_address.py | 0 .../states/azurerm/network/route.py | 0 .../states/azurerm/network/virtual_network.py | 0 .../states/azurerm/network/virtual_network_gateway.py | 0 .../states/azurerm/network/virtual_network_peering.py | 0 .../states/azurerm/postgresql/configuration.py | 0 .../states/azurerm/postgresql/database.py | 0 .../states/azurerm/postgresql/firewall_rule.py | 0 .../states/azurerm/postgresql/server.py | 0 .../states/azurerm/postgresql/server_security_alert_policy.py | 0 .../states/azurerm/postgresql/virtual_network_rule.py | 0 .../states/azurerm/redis/operations.py | 0 .../states/azurerm/resource/group.py | 0 .../states/azurerm/resource/management_lock.py | 0 .../states/azurerm/resource/policy.py | 0 .../states/azurerm/storage/account.py | 0 .../states/azurerm/storage/container.py | 0 {idem_provider_azurerm => idem_azurerm}/version.py | 0 85 files changed, 0 insertions(+), 0 deletions(-) rename {idem_provider_azurerm => idem_azurerm}/conf.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/authorization/permission.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/authorization/provider.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/authorization/role.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/compute/availability_set.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/compute/disk.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/compute/image.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/compute/virtual_machine.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/compute/virtual_machine_extension.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/compute/virtual_machine_extension_image.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/dns/record_set.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/dns/zone.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/keyvault/key.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/keyvault/vault.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/log_analytics/workspace.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/managementgroup/operations.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/monitor/diagnostic_setting.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/monitor/log_profile.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/network/__init__.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/network/load_balancer.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/network/local_network_gateway.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/network/network_interface.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/network/network_security_group.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/network/public_ip_address.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/network/route.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/network/virtual_network.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/network/virtual_network_gateway.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/network/virtual_network_peerings.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/postgresql/check_name_availability.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/postgresql/configuration.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/postgresql/database.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/postgresql/firewall_rule.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/postgresql/location_based_performance_tier.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/postgresql/log_files.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/postgresql/operations.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/postgresql/replicas.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/postgresql/server.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/postgresql/server_security_alert_policy.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/postgresql/virtual_network_rule.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/redis/operations.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/resource/deployment.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/resource/group.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/resource/management_lock.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/resource/policy.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/resource/provider.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/resource/subscription.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/resource/tenant.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/storage/account.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/storage/container.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/storage/sku.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/azurerm/storage/usage.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/utils/azurerm.py (100%) rename {idem_provider_azurerm => idem_azurerm}/exec/utils/dictdiffer.py (100%) rename {idem_provider_azurerm => idem_azurerm}/scripts.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/compute/availability_set.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/compute/virtual_machine.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/dns/record_set.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/dns/zone.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/keyvault/key.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/keyvault/vault.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/log_analytics/workspace.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/managementgroup/operations.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/monitor/diagnostic_setting.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/network/load_balancer.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/network/local_network_gateway.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/network/network_interface.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/network/network_security_group.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/network/public_ip_address.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/network/route.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/network/virtual_network.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/network/virtual_network_gateway.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/network/virtual_network_peering.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/postgresql/configuration.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/postgresql/database.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/postgresql/firewall_rule.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/postgresql/server.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/postgresql/server_security_alert_policy.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/postgresql/virtual_network_rule.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/redis/operations.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/resource/group.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/resource/management_lock.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/resource/policy.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/storage/account.py (100%) rename {idem_provider_azurerm => idem_azurerm}/states/azurerm/storage/container.py (100%) rename {idem_provider_azurerm => idem_azurerm}/version.py (100%) diff --git a/idem_provider_azurerm/conf.py b/idem_azurerm/conf.py similarity index 100% rename from idem_provider_azurerm/conf.py rename to idem_azurerm/conf.py diff --git a/idem_provider_azurerm/exec/azurerm/authorization/permission.py b/idem_azurerm/exec/azurerm/authorization/permission.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/authorization/permission.py rename to idem_azurerm/exec/azurerm/authorization/permission.py diff --git a/idem_provider_azurerm/exec/azurerm/authorization/provider.py b/idem_azurerm/exec/azurerm/authorization/provider.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/authorization/provider.py rename to idem_azurerm/exec/azurerm/authorization/provider.py diff --git a/idem_provider_azurerm/exec/azurerm/authorization/role.py b/idem_azurerm/exec/azurerm/authorization/role.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/authorization/role.py rename to idem_azurerm/exec/azurerm/authorization/role.py diff --git a/idem_provider_azurerm/exec/azurerm/compute/availability_set.py b/idem_azurerm/exec/azurerm/compute/availability_set.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/compute/availability_set.py rename to idem_azurerm/exec/azurerm/compute/availability_set.py diff --git a/idem_provider_azurerm/exec/azurerm/compute/disk.py b/idem_azurerm/exec/azurerm/compute/disk.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/compute/disk.py rename to idem_azurerm/exec/azurerm/compute/disk.py diff --git a/idem_provider_azurerm/exec/azurerm/compute/image.py b/idem_azurerm/exec/azurerm/compute/image.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/compute/image.py rename to idem_azurerm/exec/azurerm/compute/image.py diff --git a/idem_provider_azurerm/exec/azurerm/compute/virtual_machine.py b/idem_azurerm/exec/azurerm/compute/virtual_machine.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/compute/virtual_machine.py rename to idem_azurerm/exec/azurerm/compute/virtual_machine.py diff --git a/idem_provider_azurerm/exec/azurerm/compute/virtual_machine_extension.py b/idem_azurerm/exec/azurerm/compute/virtual_machine_extension.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/compute/virtual_machine_extension.py rename to idem_azurerm/exec/azurerm/compute/virtual_machine_extension.py diff --git a/idem_provider_azurerm/exec/azurerm/compute/virtual_machine_extension_image.py b/idem_azurerm/exec/azurerm/compute/virtual_machine_extension_image.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/compute/virtual_machine_extension_image.py rename to idem_azurerm/exec/azurerm/compute/virtual_machine_extension_image.py diff --git a/idem_provider_azurerm/exec/azurerm/dns/record_set.py b/idem_azurerm/exec/azurerm/dns/record_set.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/dns/record_set.py rename to idem_azurerm/exec/azurerm/dns/record_set.py diff --git a/idem_provider_azurerm/exec/azurerm/dns/zone.py b/idem_azurerm/exec/azurerm/dns/zone.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/dns/zone.py rename to idem_azurerm/exec/azurerm/dns/zone.py diff --git a/idem_provider_azurerm/exec/azurerm/keyvault/key.py b/idem_azurerm/exec/azurerm/keyvault/key.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/keyvault/key.py rename to idem_azurerm/exec/azurerm/keyvault/key.py diff --git a/idem_provider_azurerm/exec/azurerm/keyvault/vault.py b/idem_azurerm/exec/azurerm/keyvault/vault.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/keyvault/vault.py rename to idem_azurerm/exec/azurerm/keyvault/vault.py diff --git a/idem_provider_azurerm/exec/azurerm/log_analytics/workspace.py b/idem_azurerm/exec/azurerm/log_analytics/workspace.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/log_analytics/workspace.py rename to idem_azurerm/exec/azurerm/log_analytics/workspace.py diff --git a/idem_provider_azurerm/exec/azurerm/managementgroup/operations.py b/idem_azurerm/exec/azurerm/managementgroup/operations.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/managementgroup/operations.py rename to idem_azurerm/exec/azurerm/managementgroup/operations.py diff --git a/idem_provider_azurerm/exec/azurerm/monitor/diagnostic_setting.py b/idem_azurerm/exec/azurerm/monitor/diagnostic_setting.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/monitor/diagnostic_setting.py rename to idem_azurerm/exec/azurerm/monitor/diagnostic_setting.py diff --git a/idem_provider_azurerm/exec/azurerm/monitor/log_profile.py b/idem_azurerm/exec/azurerm/monitor/log_profile.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/monitor/log_profile.py rename to idem_azurerm/exec/azurerm/monitor/log_profile.py diff --git a/idem_provider_azurerm/exec/azurerm/network/__init__.py b/idem_azurerm/exec/azurerm/network/__init__.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/network/__init__.py rename to idem_azurerm/exec/azurerm/network/__init__.py diff --git a/idem_provider_azurerm/exec/azurerm/network/load_balancer.py b/idem_azurerm/exec/azurerm/network/load_balancer.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/network/load_balancer.py rename to idem_azurerm/exec/azurerm/network/load_balancer.py diff --git a/idem_provider_azurerm/exec/azurerm/network/local_network_gateway.py b/idem_azurerm/exec/azurerm/network/local_network_gateway.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/network/local_network_gateway.py rename to idem_azurerm/exec/azurerm/network/local_network_gateway.py diff --git a/idem_provider_azurerm/exec/azurerm/network/network_interface.py b/idem_azurerm/exec/azurerm/network/network_interface.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/network/network_interface.py rename to idem_azurerm/exec/azurerm/network/network_interface.py diff --git a/idem_provider_azurerm/exec/azurerm/network/network_security_group.py b/idem_azurerm/exec/azurerm/network/network_security_group.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/network/network_security_group.py rename to idem_azurerm/exec/azurerm/network/network_security_group.py diff --git a/idem_provider_azurerm/exec/azurerm/network/public_ip_address.py b/idem_azurerm/exec/azurerm/network/public_ip_address.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/network/public_ip_address.py rename to idem_azurerm/exec/azurerm/network/public_ip_address.py diff --git a/idem_provider_azurerm/exec/azurerm/network/route.py b/idem_azurerm/exec/azurerm/network/route.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/network/route.py rename to idem_azurerm/exec/azurerm/network/route.py diff --git a/idem_provider_azurerm/exec/azurerm/network/virtual_network.py b/idem_azurerm/exec/azurerm/network/virtual_network.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/network/virtual_network.py rename to idem_azurerm/exec/azurerm/network/virtual_network.py diff --git a/idem_provider_azurerm/exec/azurerm/network/virtual_network_gateway.py b/idem_azurerm/exec/azurerm/network/virtual_network_gateway.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/network/virtual_network_gateway.py rename to idem_azurerm/exec/azurerm/network/virtual_network_gateway.py diff --git a/idem_provider_azurerm/exec/azurerm/network/virtual_network_peerings.py b/idem_azurerm/exec/azurerm/network/virtual_network_peerings.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/network/virtual_network_peerings.py rename to idem_azurerm/exec/azurerm/network/virtual_network_peerings.py diff --git a/idem_provider_azurerm/exec/azurerm/postgresql/check_name_availability.py b/idem_azurerm/exec/azurerm/postgresql/check_name_availability.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/postgresql/check_name_availability.py rename to idem_azurerm/exec/azurerm/postgresql/check_name_availability.py diff --git a/idem_provider_azurerm/exec/azurerm/postgresql/configuration.py b/idem_azurerm/exec/azurerm/postgresql/configuration.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/postgresql/configuration.py rename to idem_azurerm/exec/azurerm/postgresql/configuration.py diff --git a/idem_provider_azurerm/exec/azurerm/postgresql/database.py b/idem_azurerm/exec/azurerm/postgresql/database.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/postgresql/database.py rename to idem_azurerm/exec/azurerm/postgresql/database.py diff --git a/idem_provider_azurerm/exec/azurerm/postgresql/firewall_rule.py b/idem_azurerm/exec/azurerm/postgresql/firewall_rule.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/postgresql/firewall_rule.py rename to idem_azurerm/exec/azurerm/postgresql/firewall_rule.py diff --git a/idem_provider_azurerm/exec/azurerm/postgresql/location_based_performance_tier.py b/idem_azurerm/exec/azurerm/postgresql/location_based_performance_tier.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/postgresql/location_based_performance_tier.py rename to idem_azurerm/exec/azurerm/postgresql/location_based_performance_tier.py diff --git a/idem_provider_azurerm/exec/azurerm/postgresql/log_files.py b/idem_azurerm/exec/azurerm/postgresql/log_files.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/postgresql/log_files.py rename to idem_azurerm/exec/azurerm/postgresql/log_files.py diff --git a/idem_provider_azurerm/exec/azurerm/postgresql/operations.py b/idem_azurerm/exec/azurerm/postgresql/operations.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/postgresql/operations.py rename to idem_azurerm/exec/azurerm/postgresql/operations.py diff --git a/idem_provider_azurerm/exec/azurerm/postgresql/replicas.py b/idem_azurerm/exec/azurerm/postgresql/replicas.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/postgresql/replicas.py rename to idem_azurerm/exec/azurerm/postgresql/replicas.py diff --git a/idem_provider_azurerm/exec/azurerm/postgresql/server.py b/idem_azurerm/exec/azurerm/postgresql/server.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/postgresql/server.py rename to idem_azurerm/exec/azurerm/postgresql/server.py diff --git a/idem_provider_azurerm/exec/azurerm/postgresql/server_security_alert_policy.py b/idem_azurerm/exec/azurerm/postgresql/server_security_alert_policy.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/postgresql/server_security_alert_policy.py rename to idem_azurerm/exec/azurerm/postgresql/server_security_alert_policy.py diff --git a/idem_provider_azurerm/exec/azurerm/postgresql/virtual_network_rule.py b/idem_azurerm/exec/azurerm/postgresql/virtual_network_rule.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/postgresql/virtual_network_rule.py rename to idem_azurerm/exec/azurerm/postgresql/virtual_network_rule.py diff --git a/idem_provider_azurerm/exec/azurerm/redis/operations.py b/idem_azurerm/exec/azurerm/redis/operations.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/redis/operations.py rename to idem_azurerm/exec/azurerm/redis/operations.py diff --git a/idem_provider_azurerm/exec/azurerm/resource/deployment.py b/idem_azurerm/exec/azurerm/resource/deployment.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/resource/deployment.py rename to idem_azurerm/exec/azurerm/resource/deployment.py diff --git a/idem_provider_azurerm/exec/azurerm/resource/group.py b/idem_azurerm/exec/azurerm/resource/group.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/resource/group.py rename to idem_azurerm/exec/azurerm/resource/group.py diff --git a/idem_provider_azurerm/exec/azurerm/resource/management_lock.py b/idem_azurerm/exec/azurerm/resource/management_lock.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/resource/management_lock.py rename to idem_azurerm/exec/azurerm/resource/management_lock.py diff --git a/idem_provider_azurerm/exec/azurerm/resource/policy.py b/idem_azurerm/exec/azurerm/resource/policy.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/resource/policy.py rename to idem_azurerm/exec/azurerm/resource/policy.py diff --git a/idem_provider_azurerm/exec/azurerm/resource/provider.py b/idem_azurerm/exec/azurerm/resource/provider.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/resource/provider.py rename to idem_azurerm/exec/azurerm/resource/provider.py diff --git a/idem_provider_azurerm/exec/azurerm/resource/subscription.py b/idem_azurerm/exec/azurerm/resource/subscription.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/resource/subscription.py rename to idem_azurerm/exec/azurerm/resource/subscription.py diff --git a/idem_provider_azurerm/exec/azurerm/resource/tenant.py b/idem_azurerm/exec/azurerm/resource/tenant.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/resource/tenant.py rename to idem_azurerm/exec/azurerm/resource/tenant.py diff --git a/idem_provider_azurerm/exec/azurerm/storage/account.py b/idem_azurerm/exec/azurerm/storage/account.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/storage/account.py rename to idem_azurerm/exec/azurerm/storage/account.py diff --git a/idem_provider_azurerm/exec/azurerm/storage/container.py b/idem_azurerm/exec/azurerm/storage/container.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/storage/container.py rename to idem_azurerm/exec/azurerm/storage/container.py diff --git a/idem_provider_azurerm/exec/azurerm/storage/sku.py b/idem_azurerm/exec/azurerm/storage/sku.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/storage/sku.py rename to idem_azurerm/exec/azurerm/storage/sku.py diff --git a/idem_provider_azurerm/exec/azurerm/storage/usage.py b/idem_azurerm/exec/azurerm/storage/usage.py similarity index 100% rename from idem_provider_azurerm/exec/azurerm/storage/usage.py rename to idem_azurerm/exec/azurerm/storage/usage.py diff --git a/idem_provider_azurerm/exec/utils/azurerm.py b/idem_azurerm/exec/utils/azurerm.py similarity index 100% rename from idem_provider_azurerm/exec/utils/azurerm.py rename to idem_azurerm/exec/utils/azurerm.py diff --git a/idem_provider_azurerm/exec/utils/dictdiffer.py b/idem_azurerm/exec/utils/dictdiffer.py similarity index 100% rename from idem_provider_azurerm/exec/utils/dictdiffer.py rename to idem_azurerm/exec/utils/dictdiffer.py diff --git a/idem_provider_azurerm/scripts.py b/idem_azurerm/scripts.py similarity index 100% rename from idem_provider_azurerm/scripts.py rename to idem_azurerm/scripts.py diff --git a/idem_provider_azurerm/states/azurerm/compute/availability_set.py b/idem_azurerm/states/azurerm/compute/availability_set.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/compute/availability_set.py rename to idem_azurerm/states/azurerm/compute/availability_set.py diff --git a/idem_provider_azurerm/states/azurerm/compute/virtual_machine.py b/idem_azurerm/states/azurerm/compute/virtual_machine.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/compute/virtual_machine.py rename to idem_azurerm/states/azurerm/compute/virtual_machine.py diff --git a/idem_provider_azurerm/states/azurerm/dns/record_set.py b/idem_azurerm/states/azurerm/dns/record_set.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/dns/record_set.py rename to idem_azurerm/states/azurerm/dns/record_set.py diff --git a/idem_provider_azurerm/states/azurerm/dns/zone.py b/idem_azurerm/states/azurerm/dns/zone.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/dns/zone.py rename to idem_azurerm/states/azurerm/dns/zone.py diff --git a/idem_provider_azurerm/states/azurerm/keyvault/key.py b/idem_azurerm/states/azurerm/keyvault/key.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/keyvault/key.py rename to idem_azurerm/states/azurerm/keyvault/key.py diff --git a/idem_provider_azurerm/states/azurerm/keyvault/vault.py b/idem_azurerm/states/azurerm/keyvault/vault.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/keyvault/vault.py rename to idem_azurerm/states/azurerm/keyvault/vault.py diff --git a/idem_provider_azurerm/states/azurerm/log_analytics/workspace.py b/idem_azurerm/states/azurerm/log_analytics/workspace.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/log_analytics/workspace.py rename to idem_azurerm/states/azurerm/log_analytics/workspace.py diff --git a/idem_provider_azurerm/states/azurerm/managementgroup/operations.py b/idem_azurerm/states/azurerm/managementgroup/operations.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/managementgroup/operations.py rename to idem_azurerm/states/azurerm/managementgroup/operations.py diff --git a/idem_provider_azurerm/states/azurerm/monitor/diagnostic_setting.py b/idem_azurerm/states/azurerm/monitor/diagnostic_setting.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/monitor/diagnostic_setting.py rename to idem_azurerm/states/azurerm/monitor/diagnostic_setting.py diff --git a/idem_provider_azurerm/states/azurerm/network/load_balancer.py b/idem_azurerm/states/azurerm/network/load_balancer.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/network/load_balancer.py rename to idem_azurerm/states/azurerm/network/load_balancer.py diff --git a/idem_provider_azurerm/states/azurerm/network/local_network_gateway.py b/idem_azurerm/states/azurerm/network/local_network_gateway.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/network/local_network_gateway.py rename to idem_azurerm/states/azurerm/network/local_network_gateway.py diff --git a/idem_provider_azurerm/states/azurerm/network/network_interface.py b/idem_azurerm/states/azurerm/network/network_interface.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/network/network_interface.py rename to idem_azurerm/states/azurerm/network/network_interface.py diff --git a/idem_provider_azurerm/states/azurerm/network/network_security_group.py b/idem_azurerm/states/azurerm/network/network_security_group.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/network/network_security_group.py rename to idem_azurerm/states/azurerm/network/network_security_group.py diff --git a/idem_provider_azurerm/states/azurerm/network/public_ip_address.py b/idem_azurerm/states/azurerm/network/public_ip_address.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/network/public_ip_address.py rename to idem_azurerm/states/azurerm/network/public_ip_address.py diff --git a/idem_provider_azurerm/states/azurerm/network/route.py b/idem_azurerm/states/azurerm/network/route.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/network/route.py rename to idem_azurerm/states/azurerm/network/route.py diff --git a/idem_provider_azurerm/states/azurerm/network/virtual_network.py b/idem_azurerm/states/azurerm/network/virtual_network.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/network/virtual_network.py rename to idem_azurerm/states/azurerm/network/virtual_network.py diff --git a/idem_provider_azurerm/states/azurerm/network/virtual_network_gateway.py b/idem_azurerm/states/azurerm/network/virtual_network_gateway.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/network/virtual_network_gateway.py rename to idem_azurerm/states/azurerm/network/virtual_network_gateway.py diff --git a/idem_provider_azurerm/states/azurerm/network/virtual_network_peering.py b/idem_azurerm/states/azurerm/network/virtual_network_peering.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/network/virtual_network_peering.py rename to idem_azurerm/states/azurerm/network/virtual_network_peering.py diff --git a/idem_provider_azurerm/states/azurerm/postgresql/configuration.py b/idem_azurerm/states/azurerm/postgresql/configuration.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/postgresql/configuration.py rename to idem_azurerm/states/azurerm/postgresql/configuration.py diff --git a/idem_provider_azurerm/states/azurerm/postgresql/database.py b/idem_azurerm/states/azurerm/postgresql/database.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/postgresql/database.py rename to idem_azurerm/states/azurerm/postgresql/database.py diff --git a/idem_provider_azurerm/states/azurerm/postgresql/firewall_rule.py b/idem_azurerm/states/azurerm/postgresql/firewall_rule.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/postgresql/firewall_rule.py rename to idem_azurerm/states/azurerm/postgresql/firewall_rule.py diff --git a/idem_provider_azurerm/states/azurerm/postgresql/server.py b/idem_azurerm/states/azurerm/postgresql/server.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/postgresql/server.py rename to idem_azurerm/states/azurerm/postgresql/server.py diff --git a/idem_provider_azurerm/states/azurerm/postgresql/server_security_alert_policy.py b/idem_azurerm/states/azurerm/postgresql/server_security_alert_policy.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/postgresql/server_security_alert_policy.py rename to idem_azurerm/states/azurerm/postgresql/server_security_alert_policy.py diff --git a/idem_provider_azurerm/states/azurerm/postgresql/virtual_network_rule.py b/idem_azurerm/states/azurerm/postgresql/virtual_network_rule.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/postgresql/virtual_network_rule.py rename to idem_azurerm/states/azurerm/postgresql/virtual_network_rule.py diff --git a/idem_provider_azurerm/states/azurerm/redis/operations.py b/idem_azurerm/states/azurerm/redis/operations.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/redis/operations.py rename to idem_azurerm/states/azurerm/redis/operations.py diff --git a/idem_provider_azurerm/states/azurerm/resource/group.py b/idem_azurerm/states/azurerm/resource/group.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/resource/group.py rename to idem_azurerm/states/azurerm/resource/group.py diff --git a/idem_provider_azurerm/states/azurerm/resource/management_lock.py b/idem_azurerm/states/azurerm/resource/management_lock.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/resource/management_lock.py rename to idem_azurerm/states/azurerm/resource/management_lock.py diff --git a/idem_provider_azurerm/states/azurerm/resource/policy.py b/idem_azurerm/states/azurerm/resource/policy.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/resource/policy.py rename to idem_azurerm/states/azurerm/resource/policy.py diff --git a/idem_provider_azurerm/states/azurerm/storage/account.py b/idem_azurerm/states/azurerm/storage/account.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/storage/account.py rename to idem_azurerm/states/azurerm/storage/account.py diff --git a/idem_provider_azurerm/states/azurerm/storage/container.py b/idem_azurerm/states/azurerm/storage/container.py similarity index 100% rename from idem_provider_azurerm/states/azurerm/storage/container.py rename to idem_azurerm/states/azurerm/storage/container.py diff --git a/idem_provider_azurerm/version.py b/idem_azurerm/version.py similarity index 100% rename from idem_provider_azurerm/version.py rename to idem_azurerm/version.py From ea6034815a14f9d0e999269781c65a61931ba91f Mon Sep 17 00:00:00 2001 From: nicholasmhughes Date: Sat, 2 May 2020 22:44:36 -0400 Subject: [PATCH 02/14] changes for name change --- idem_azurerm/scripts.py | 2 +- idem_azurerm/version.py | 2 +- setup.py | 30 ++++++++++++++++-------------- 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/idem_azurerm/scripts.py b/idem_azurerm/scripts.py index fc32698f..600f28f5 100644 --- a/idem_azurerm/scripts.py +++ b/idem_azurerm/scripts.py @@ -3,4 +3,4 @@ def start(): hub = pop.hub.Hub() - hub.pop.sub.add('idem_provider_azurerm.idem_provider_azurerm') + hub.pop.sub.add('idem_azurerm.idem_azurerm') diff --git a/idem_azurerm/version.py b/idem_azurerm/version.py index 294b9514..37962c77 100644 --- a/idem_azurerm/version.py +++ b/idem_azurerm/version.py @@ -1 +1 @@ -version = '1.0' +version = '2.0.0' diff --git a/setup.py b/setup.py index 4458dea3..8e32fc29 100644 --- a/setup.py +++ b/setup.py @@ -7,25 +7,25 @@ import shutil from setuptools import setup, Command -PYPI_NAME = 'idem_azurerm' -NAME = 'idem_provider_azurerm' +NAME = 'idem-azurerm' +PYNAME = 'idem_azurerm' DESC = ('Idem language provider for Azure') -with open('README.md', encoding='utf-8') as f: - LONG_DESC = f.read() - -with open('requirements.txt') as f: - REQUIREMENTS = f.read().splitlines() - # Version info -- read without importing _locals = {} -with open('{}/version.py'.format(NAME)) as fp: +with open('{}/version.py'.format(PYNAME)) as fp: exec(fp.read(), None, _locals) VERSION = _locals['version'] SETUP_DIRNAME = os.path.dirname(__file__) if not SETUP_DIRNAME: SETUP_DIRNAME = os.getcwd() +with open('README.md', encoding='utf-8') as f: + LONG_DESC = f.read() + +with open('requirements.txt') as f: + REQUIREMENTS = f.read().splitlines() + class Clean(Command): user_options = [] @@ -36,7 +36,7 @@ def finalize_options(self): pass def run(self): - for subdir in (NAME, 'tests'): + for subdir in (PYNAME, 'tests'): for root, dirs, files in os.walk(os.path.join(os.path.dirname(__file__), subdir)): for dir_ in dirs: if dir_ == '__pycache__': @@ -45,7 +45,7 @@ def run(self): def discover_packages(): modules = [] - for package in (NAME, ): + for package in (PYNAME,): for root, _, files in os.walk(os.path.join(SETUP_DIRNAME, package)): pdir = os.path.relpath(root, SETUP_DIRNAME) modname = pdir.replace(os.sep, '.') @@ -53,18 +53,20 @@ def discover_packages(): return modules -setup(name=PYPI_NAME, +setup(name=NAME, author='EITR Technologies, LLC', author_email='devops@eitr.tech', - url='https://github.com/eitrtechnologies/idem_provider_azurerm', + url='https://github.com/eitrtechnologies/idem-azurerm', version=VERSION, - description=DESC, install_requires=REQUIREMENTS, + description=DESC, long_description=LONG_DESC, long_description_content_type='text/markdown', + python_requires=">=3.6", classifiers=[ 'Operating System :: OS Independent', 'Programming Language :: Python', + 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Development Status :: 5 - Production/Stable', From 0d85f2fdd6187646c7485d9fb07249956f928acd Mon Sep 17 00:00:00 2001 From: nicholasmhughes Date: Sun, 3 May 2020 01:08:40 -0400 Subject: [PATCH 03/14] pin azure sdk versions --- requirements.txt | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 3726a472..aee1f617 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,20 @@ idem>=5 -azure>=4 -azure-identity>=1.3 +azure-common==1.1.23 +azure-core==1.3.0 +azure-identity==1.3.0 +azure-keyvault-keys==4.0.0 +azure-mgmt-authorization==0.50.0 +azure-mgmt-compute==4.6.2 +azure-mgmt-dns==2.1.0 +azure-mgmt-keyvault==1.1.0 +azure-mgmt-loganalytics==0.2.0 +azure-mgmt-managementgroups==0.1.0 +azure-mgmt-monitor==0.5.2 +azure-mgmt-network==2.7.0 +azure-mgmt-rdbms==1.9.0 +azure-mgmt-redis==5.0.0 +azure-mgmt-resource==2.2.0 +azure-mgmt-storage==2.0.0 +azure-mgmt-web==0.35.0 +msrest==0.6.10 +msrestazure==0.6.2 From 0c3a026ad5a18a90f0978fefb99a5277f61aa0df Mon Sep 17 00:00:00 2001 From: nicholasmhughes Date: Sun, 3 May 2020 01:09:54 -0400 Subject: [PATCH 04/14] remove azurearm references --- idem_azurerm/exec/utils/azurerm.py | 6 +++--- .../azurerm/compute/availability_set.py | 6 ++---- .../states/azurerm/compute/virtual_machine.py | 14 ++++++------- idem_azurerm/states/azurerm/dns/record_set.py | 4 ++-- idem_azurerm/states/azurerm/dns/zone.py | 4 ++-- idem_azurerm/states/azurerm/keyvault/key.py | 4 ++-- idem_azurerm/states/azurerm/keyvault/vault.py | 4 ++-- .../states/azurerm/log_analytics/workspace.py | 4 ++-- .../azurerm/managementgroup/operations.py | 4 ++-- .../azurerm/monitor/diagnostic_setting.py | 4 ++-- .../states/azurerm/network/load_balancer.py | 7 ++----- .../azurerm/network/local_network_gateway.py | 4 ++-- .../azurerm/network/network_interface.py | 8 ++------ .../azurerm/network/network_security_group.py | 12 ++++------- .../azurerm/network/public_ip_address.py | 6 ++---- idem_azurerm/states/azurerm/network/route.py | 12 ++++------- .../states/azurerm/network/virtual_network.py | 14 ++++--------- .../network/virtual_network_gateway.py | 20 ++++--------------- .../network/virtual_network_peering.py | 9 +++------ .../azurerm/postgresql/configuration.py | 2 +- .../states/azurerm/postgresql/database.py | 4 ++-- .../azurerm/postgresql/firewall_rule.py | 4 ++-- .../states/azurerm/postgresql/server.py | 4 ++-- .../server_security_alert_policy.py | 2 +- .../postgresql/virtual_network_rule.py | 4 ++-- .../states/azurerm/redis/operations.py | 2 +- .../azurerm/resource/management_lock.py | 16 +++++++-------- .../states/azurerm/resource/policy.py | 8 ++++---- 28 files changed, 76 insertions(+), 116 deletions(-) diff --git a/idem_azurerm/exec/utils/azurerm.py b/idem_azurerm/exec/utils/azurerm.py index 955ab38e..4b6bb34f 100644 --- a/idem_azurerm/exec/utils/azurerm.py +++ b/idem_azurerm/exec/utils/azurerm.py @@ -193,15 +193,15 @@ async def get_client(hub, client_type, **kwargs): async def log_cloud_error(hub, client, message, **kwargs): ''' - Log an azurearm cloud error exception + Log an Azure cloud error exception ''' try: - cloud_logger = getattr(log, kwargs.get('azurearm_log_level')) + cloud_logger = getattr(log, kwargs.get('azurerm_log_level')) except (AttributeError, TypeError): cloud_logger = getattr(log, 'error') cloud_logger( - 'An AzureARM %s CloudError has occurred: %s', + 'An Azure %s CloudError has occurred: %s', client.capitalize(), message ) diff --git a/idem_azurerm/states/azurerm/compute/availability_set.py b/idem_azurerm/states/azurerm/compute/availability_set.py index 8aee17e1..5a573943 100644 --- a/idem_azurerm/states/azurerm/compute/availability_set.py +++ b/idem_azurerm/states/azurerm/compute/availability_set.py @@ -147,8 +147,6 @@ async def present(hub, ctx, name, resource_group, tags=None, platform_update_dom - tags: contact_name: Elmer Fudd Gantry - connection_auth: {{ profile }} - - require: - - azurearm_resource: Ensure resource group exists ''' ret = { @@ -168,7 +166,7 @@ async def present(hub, ctx, name, resource_group, tags=None, platform_update_dom aset = await hub.exec.azurerm.compute.availability_set.get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -292,7 +290,7 @@ async def absent(hub, ctx, name, resource_group, connection_auth=None, **kwargs) aset = await hub.exec.azurerm.compute.availability_set.get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/compute/virtual_machine.py b/idem_azurerm/states/azurerm/compute/virtual_machine.py index 0d6aee95..37672a2c 100644 --- a/idem_azurerm/states/azurerm/compute/virtual_machine.py +++ b/idem_azurerm/states/azurerm/compute/virtual_machine.py @@ -414,7 +414,7 @@ async def present( vm = await hub.exec.azurerm.compute.virtual_machine.get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -789,7 +789,7 @@ async def absent( vm = await hub.exec.azurerm.compute.virtual_machine.get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -825,7 +825,7 @@ async def absent( deleted_disk = await hub.exec.azurerm.compute.disk.delete( disk_name, disk_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -848,7 +848,7 @@ async def absent( deleted_disk = await hub.exec.azurerm.compute.disk.delete( disk_name, disk_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -869,14 +869,14 @@ async def absent( nic = await hub.exec.azurerm.network.network_interface.get( nic_name, nic_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) deleted_nic = await hub.exec.azurerm.network.network_interface.delete( nic_name, nic_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -897,7 +897,7 @@ async def absent( deleted_pip = await hub.exec.azurerm.network.public_ip_address.delete( pip_name, pip_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/dns/record_set.py b/idem_azurerm/states/azurerm/dns/record_set.py index 38057897..5c82122a 100644 --- a/idem_azurerm/states/azurerm/dns/record_set.py +++ b/idem_azurerm/states/azurerm/dns/record_set.py @@ -252,7 +252,7 @@ async def present(hub, ctx, name, zone_name, resource_group, record_type, if_mat zone_name, resource_group, record_type, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -402,7 +402,7 @@ async def absent(hub, ctx, name, zone_name, resource_group, connection_auth=None name, zone_name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/dns/zone.py b/idem_azurerm/states/azurerm/dns/zone.py index c0e20ce1..16aa1eb7 100644 --- a/idem_azurerm/states/azurerm/dns/zone.py +++ b/idem_azurerm/states/azurerm/dns/zone.py @@ -167,7 +167,7 @@ async def present(hub, ctx, name, resource_group, etag=None, if_match=None, if_n ret['comment'] = 'Connection information must be specified via connection_auth dictionary!' return ret - zone = await hub.exec.azurerm.dns.zone.get(name, resource_group, azurearm_log_level='info', **connection_auth) + zone = await hub.exec.azurerm.dns.zone.get(name, resource_group, azurerm_log_level='info', **connection_auth) if 'error' not in zone: tag_changes = await hub.exec.utils.dictdiffer.deep_diff(zone.get('tags', {}), tags or {}) @@ -296,7 +296,7 @@ async def absent(hub, ctx, name, resource_group, connection_auth=None, **kwargs) zone = await hub.exec.azurerm.dns.zone.get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/keyvault/key.py b/idem_azurerm/states/azurerm/keyvault/key.py index 268d5b43..7c8c6f7e 100644 --- a/idem_azurerm/states/azurerm/keyvault/key.py +++ b/idem_azurerm/states/azurerm/keyvault/key.py @@ -137,7 +137,7 @@ async def present(hub, ctx, name, key_type, vault_url, key_ops=None, enabled=Non key = await hub.exec.azurerm.keyvault.key.get_key( name=name, vault_url=vault_url, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -280,7 +280,7 @@ async def absent(hub, ctx, name, vault_url, connection_auth=None, **kwargs): key = await hub.exec.azurerm.keyvault.key.get_key( name=name, vault_url=vault_url, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/keyvault/vault.py b/idem_azurerm/states/azurerm/keyvault/vault.py index 9640083f..94c216ab 100644 --- a/idem_azurerm/states/azurerm/keyvault/vault.py +++ b/idem_azurerm/states/azurerm/keyvault/vault.py @@ -197,7 +197,7 @@ async def present(hub, ctx, name, resource_group, location, tenant_id, sku, acce vault = await hub.exec.azurerm.keyvault.vault.get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -416,7 +416,7 @@ async def absent(hub, ctx, name, resource_group, connection_auth=None, **kwargs) vault = await hub.exec.azurerm.keyvault.vault.get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/log_analytics/workspace.py b/idem_azurerm/states/azurerm/log_analytics/workspace.py index dbb9f96f..35bdff3e 100644 --- a/idem_azurerm/states/azurerm/log_analytics/workspace.py +++ b/idem_azurerm/states/azurerm/log_analytics/workspace.py @@ -133,7 +133,7 @@ async def present(hub, ctx, name, resource_group, location, sku=None, retention= workspace = await hub.exec.azurerm.log_analytics.workspace.get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -270,7 +270,7 @@ async def absent(hub, ctx, name, resource_group, connection_auth=None, **kwargs) workspace = await hub.exec.azurerm.log_analytics.workspace.get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/managementgroup/operations.py b/idem_azurerm/states/azurerm/managementgroup/operations.py index a84619d9..95c2bfc8 100644 --- a/idem_azurerm/states/azurerm/managementgroup/operations.py +++ b/idem_azurerm/states/azurerm/managementgroup/operations.py @@ -109,7 +109,7 @@ async def present(hub, ctx, name, display_name=None, parent=None, connection_aut mgroup = await hub.exec.azurerm.managementgroup.operations.get( name=name, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -202,7 +202,7 @@ async def absent(hub, ctx, name, connection_auth=None, **kwargs): mgroup = await hub.exec.azurerm.managementgroup.operations.get( name=name, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/monitor/diagnostic_setting.py b/idem_azurerm/states/azurerm/monitor/diagnostic_setting.py index 4eb41d33..47e1f652 100644 --- a/idem_azurerm/states/azurerm/monitor/diagnostic_setting.py +++ b/idem_azurerm/states/azurerm/monitor/diagnostic_setting.py @@ -161,7 +161,7 @@ async def present(hub, ctx, name, resource_uri, metrics, logs, workspace_id=None setting = await hub.exec.azurerm.monitor.diagnostic_setting.get( name, resource_uri, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -338,7 +338,7 @@ async def absent(hub, ctx, name, resource_uri, connection_auth=None, **kwargs): setting = await hub.exec.azurerm.monitor.diagnostic_setting.get( name, resource_uri, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/network/load_balancer.py b/idem_azurerm/states/azurerm/network/load_balancer.py index 560e05cb..d642d6ca 100644 --- a/idem_azurerm/states/azurerm/network/load_balancer.py +++ b/idem_azurerm/states/azurerm/network/load_balancer.py @@ -263,9 +263,6 @@ async def present(hub, ctx, name, resource_group, sku=None, frontend_ip_configur - tags: contact_name: Elmer Fudd Gantry - connection_auth: {{ profile }} - - require: - - azurearm_resource: Ensure resource group exists - - azurearm_network: Ensure public IP exists ''' ret = { @@ -285,7 +282,7 @@ async def present(hub, ctx, name, resource_group, sku=None, frontend_ip_configur load_bal = await hub.exec.azurerm.network.load_balancer.get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -493,7 +490,7 @@ async def absent(hub, ctx, name, resource_group, connection_auth=None, **kwargs) load_bal = await hub.exec.azurerm.network.load_balancer.get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/network/local_network_gateway.py b/idem_azurerm/states/azurerm/network/local_network_gateway.py index d2358823..3d95930c 100644 --- a/idem_azurerm/states/azurerm/network/local_network_gateway.py +++ b/idem_azurerm/states/azurerm/network/local_network_gateway.py @@ -170,7 +170,7 @@ async def present(hub, ctx, name, resource_group, gateway_ip_address, bgp_settin gateway = await hub.exec.azurerm.network.local_network_gateway.get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -303,7 +303,7 @@ async def absent(hub, ctx, name, resource_group, connection_auth=None, **kwargs) gateway = await hub.exec.azurerm.network.local_network_gateway.get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/network/network_interface.py b/idem_azurerm/states/azurerm/network/network_interface.py index 85c240a4..5768bd78 100644 --- a/idem_azurerm/states/azurerm/network/network_interface.py +++ b/idem_azurerm/states/azurerm/network/network_interface.py @@ -188,10 +188,6 @@ async def present(hub, ctx, name, ip_configurations, subnet, virtual_network, re - enable_ip_forwarding: False - network_security_group: nsg1 - connection_auth: {{ profile }} - - require: - - azurearm_network: Ensure subnet exists - - azurearm_network: Ensure network security group exists - - azurearm_network: Ensure another public IP exists ''' ret = { @@ -208,7 +204,7 @@ async def present(hub, ctx, name, ip_configurations, subnet, virtual_network, re iface = await hub.exec.azurerm.network.network_interface.get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -403,7 +399,7 @@ async def absent(hub, ctx, name, resource_group, connection_auth=None, **kwargs) iface = await hub.exec.azurerm.network.network_interface.get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/network/network_security_group.py b/idem_azurerm/states/azurerm/network/network_security_group.py index b839dd3b..ea7b6b59 100644 --- a/idem_azurerm/states/azurerm/network/network_security_group.py +++ b/idem_azurerm/states/azurerm/network/network_security_group.py @@ -169,8 +169,6 @@ async def present(hub, ctx, name, resource_group, tags=None, security_rules=None - tags: contact_name: Elmer Fudd Gantry - connection_auth: {{ profile }} - - require: - - azurearm_resource: Ensure resource group exists ''' ret = { @@ -187,7 +185,7 @@ async def present(hub, ctx, name, resource_group, tags=None, security_rules=None nsg = await hub.exec.azurerm.network.network_security_group.get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -295,7 +293,7 @@ async def absent(hub, ctx, name, resource_group, connection_auth=None, **kwargs) nsg = await hub.exec.azurerm.network.network_security_group.get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -420,8 +418,6 @@ async def security_rule_present(hub, ctx, name, access, direction, priority, pro - '80' - '443' - connection_auth: {{ profile }} - - require: - - azurearm_network: Ensure network security group exists ''' ret = { @@ -460,7 +456,7 @@ async def security_rule_present(hub, ctx, name, access, direction, priority, pro name, security_group, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -694,7 +690,7 @@ async def security_rule_absent(hub, ctx, name, security_group, resource_group, c name, security_group, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/network/public_ip_address.py b/idem_azurerm/states/azurerm/network/public_ip_address.py index 880b1cd9..144b8216 100644 --- a/idem_azurerm/states/azurerm/network/public_ip_address.py +++ b/idem_azurerm/states/azurerm/network/public_ip_address.py @@ -160,8 +160,6 @@ async def present(hub, ctx, name, resource_group, tags=None, sku=None, public_ip - tags: contact_name: Elmer Fudd Gantry - connection_auth: {{ profile }} - - require: - - azurearm_resource: Ensure resource group exists ''' ret = { @@ -181,7 +179,7 @@ async def present(hub, ctx, name, resource_group, tags=None, sku=None, public_ip pub_ip = await hub.exec.azurerm.network.public_ip_address.get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -320,7 +318,7 @@ async def absent(hub, ctx, name, resource_group, connection_auth=None, **kwargs) pub_ip = await hub.exec.azurerm.network.public_ip_address.get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/network/route.py b/idem_azurerm/states/azurerm/network/route.py index 14171690..8dece243 100644 --- a/idem_azurerm/states/azurerm/network/route.py +++ b/idem_azurerm/states/azurerm/network/route.py @@ -154,8 +154,6 @@ async def table_present(hub, ctx, name, resource_group, tags=None, routes=None, - tags: contact_name: Elmer Fudd Gantry - connection_auth: {{ profile }} - - require: - - azurearm_resource: Ensure resource group exists ''' ret = { @@ -172,7 +170,7 @@ async def table_present(hub, ctx, name, resource_group, tags=None, routes=None, rt_tbl = await hub.exec.azurerm.network.route.table_get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -281,7 +279,7 @@ async def table_absent(hub, ctx, name, resource_group, connection_auth=None, **k rt_tbl = await hub.exec.azurerm.network.route.table_get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -357,8 +355,6 @@ async def present(hub, ctx, name, address_prefix, next_hop_type, route_table, re - address_prefix: '192.168.0.0/16' - next_hop_type: vnetlocal - connection_auth: {{ profile }} - - require: - - azurearm_network: Ensure route table exists ''' ret = { @@ -376,7 +372,7 @@ async def present(hub, ctx, name, address_prefix, next_hop_type, route_table, re name, route_table, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -484,7 +480,7 @@ async def absent(hub, ctx, name, route_table, resource_group, connection_auth=No name, route_table, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/network/virtual_network.py b/idem_azurerm/states/azurerm/network/virtual_network.py index 460fa695..ee38f1c1 100644 --- a/idem_azurerm/states/azurerm/network/virtual_network.py +++ b/idem_azurerm/states/azurerm/network/virtual_network.py @@ -149,8 +149,6 @@ async def present(hub, ctx, name, address_prefixes, resource_group, dns_servers= - tags: contact_name: Elmer Fudd Gantry - connection_auth: {{ profile }} - - require: - - azurearm_resource: Ensure resource group exists ''' ret = { @@ -167,7 +165,7 @@ async def present(hub, ctx, name, address_prefixes, resource_group, dns_servers= vnet = await hub.exec.azurerm.network.virtual_network.get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -289,7 +287,7 @@ async def absent(hub, ctx, name, resource_group, connection_auth=None, **kwargs) vnet = await hub.exec.azurerm.network.virtual_network.get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -364,10 +362,6 @@ async def subnet_present(hub, ctx, name, address_prefix, virtual_network, resour - security_group: nsg1 - route_table: rt1 - connection_auth: {{ profile }} - - require: - - azurearm_network: Ensure virtual network exists - - azurearm_network: Ensure network security group exists - - azurearm_network: Ensure route table exists ''' ret = { @@ -385,7 +379,7 @@ async def subnet_present(hub, ctx, name, address_prefix, virtual_network, resour name, virtual_network, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -501,7 +495,7 @@ async def subnet_absent(hub, ctx, name, virtual_network, resource_group, connect name, virtual_network, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/network/virtual_network_gateway.py b/idem_azurerm/states/azurerm/network/virtual_network_gateway.py index a64fb052..6f21dc70 100644 --- a/idem_azurerm/states/azurerm/network/virtual_network_gateway.py +++ b/idem_azurerm/states/azurerm/network/virtual_network_gateway.py @@ -213,9 +213,6 @@ async def connection_present(hub, ctx, name, resource_group, virtual_network_gat - tags: contact_name: Elmer Fudd Gantry - connection_auth: {{ profile }} - - require: - - azurearm_resource: Ensure resource group exists - - azurearm_network: Ensure virtual network gateway exists Ensure virtual network gateway IPSec connection exists: azurerm.network.virtual_network_gateway.connection_present: @@ -239,9 +236,6 @@ async def connection_present(hub, ctx, name, resource_group, virtual_network_gat - tags: contact_name: Elmer Fudd Gantry - connection_auth: {{ profile }} - - require: - - azurearm_resource: Ensure resource group exists - - azurearm_network: Ensure virtual network gateway exists ''' ret = { @@ -258,7 +252,7 @@ async def connection_present(hub, ctx, name, resource_group, virtual_network_gat connection = await hub.exec.azurerm.network.virtual_network_gateway.connection_get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -491,7 +485,7 @@ async def connection_absent(hub, ctx, name, resource_group, connection_auth=None connection = await hub.exec.azurerm.network.virtual_network_gateway.connection_get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -613,9 +607,6 @@ async def present(hub, ctx, name, resource_group, virtual_network, ip_configurat - tags: contact_name: Elmer Fudd Gantry - connection_auth: {{ profile }} - - require: - - azurearm_resource: Ensure resource group exists - - azurearm_network: Ensure virtual network exists Ensure virtual network gateway exists: azurerm.network.virtual_network_gateway.present: @@ -643,9 +634,6 @@ async def present(hub, ctx, name, resource_group, virtual_network, ip_configurat - address_prefixes: - '10.0.0.0/8' - '192.168.0.0/16' - - require: - - azurearm_resource: Ensure resource group exists - - azurearm_network: Ensure virtual network gateway exists ''' ret = { @@ -662,7 +650,7 @@ async def present(hub, ctx, name, resource_group, virtual_network, ip_configurat gateway = await hub.exec.azurerm.network.virtual_network_gateway.get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -841,7 +829,7 @@ async def absent(hub, ctx, name, resource_group, connection_auth=None, **kwargs) gateway = await hub.exec.azurerm.network.virtual_network_gateway.get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/network/virtual_network_peering.py b/idem_azurerm/states/azurerm/network/virtual_network_peering.py index 80ff68b9..819e55d8 100644 --- a/idem_azurerm/states/azurerm/network/virtual_network_peering.py +++ b/idem_azurerm/states/azurerm/network/virtual_network_peering.py @@ -163,9 +163,6 @@ async def present(hub, ctx, name, remote_virtual_network, virtual_network, resou - allow_gateway_transit: False - use_remote_gateways: False - connection_auth: {{ profile }} - - require: - - azurearm_network: Ensure virtual network exists - - azurearm_network: Ensure remote virtual network exists ''' ret = { @@ -183,7 +180,7 @@ async def present(hub, ctx, name, remote_virtual_network, virtual_network, resou name, virtual_network, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -260,7 +257,7 @@ async def present(hub, ctx, name, remote_virtual_network, virtual_network, resou name=remote_name, virtual_network=remote_virtual_network, resource_group=remote_vnet_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -336,7 +333,7 @@ async def absent(hub, ctx, name, virtual_network, resource_group, connection_aut name, virtual_network, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/postgresql/configuration.py b/idem_azurerm/states/azurerm/postgresql/configuration.py index 973fb84f..1f3da335 100644 --- a/idem_azurerm/states/azurerm/postgresql/configuration.py +++ b/idem_azurerm/states/azurerm/postgresql/configuration.py @@ -126,7 +126,7 @@ async def present(hub, ctx, name, server_name, resource_group, value=None, conne name=name, server_name=server_name, resource_group=resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/postgresql/database.py b/idem_azurerm/states/azurerm/postgresql/database.py index f32a471e..f72cd6e3 100644 --- a/idem_azurerm/states/azurerm/postgresql/database.py +++ b/idem_azurerm/states/azurerm/postgresql/database.py @@ -125,7 +125,7 @@ async def present(hub, ctx, name, server_name, resource_group, charset=None, col name=name, server_name=server_name, resource_group=resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -239,7 +239,7 @@ async def absent(hub, ctx, name, server_name, resource_group, connection_auth=No name=name, server_name=server_name, resource_group=resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/postgresql/firewall_rule.py b/idem_azurerm/states/azurerm/postgresql/firewall_rule.py index 140b257e..11c4ca14 100644 --- a/idem_azurerm/states/azurerm/postgresql/firewall_rule.py +++ b/idem_azurerm/states/azurerm/postgresql/firewall_rule.py @@ -127,7 +127,7 @@ async def present(hub, ctx, name, server_name, resource_group, start_ip_address, name=name, server_name=server_name, resource_group=resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -236,7 +236,7 @@ async def absent(hub, ctx, name, server_name, resource_group, connection_auth=No name=name, server_name=server_name, resource_group=resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/postgresql/server.py b/idem_azurerm/states/azurerm/postgresql/server.py index 3cbdf6c9..2907c184 100644 --- a/idem_azurerm/states/azurerm/postgresql/server.py +++ b/idem_azurerm/states/azurerm/postgresql/server.py @@ -155,7 +155,7 @@ async def present(hub, ctx, name, resource_group, location, sku=None, version=No server = await hub.exec.azurerm.postgresql.server.get( name=name, resource_group=resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -328,7 +328,7 @@ async def absent(hub, ctx, name, resource_group, connection_auth=None, **kwargs) server = await hub.exec.azurerm.postgresql.server.get( name=name, resource_group=resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/postgresql/server_security_alert_policy.py b/idem_azurerm/states/azurerm/postgresql/server_security_alert_policy.py index 0f4a1d0d..48b870fe 100644 --- a/idem_azurerm/states/azurerm/postgresql/server_security_alert_policy.py +++ b/idem_azurerm/states/azurerm/postgresql/server_security_alert_policy.py @@ -145,7 +145,7 @@ async def present(hub, ctx, server_name, resource_group, policy_state, disabled_ policy = await hub.exec.azurerm.postgresql.server_security_alert_policy.get( server_name=server_name, resource_group=resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/postgresql/virtual_network_rule.py b/idem_azurerm/states/azurerm/postgresql/virtual_network_rule.py index cd7b9af9..a0697bc7 100644 --- a/idem_azurerm/states/azurerm/postgresql/virtual_network_rule.py +++ b/idem_azurerm/states/azurerm/postgresql/virtual_network_rule.py @@ -128,7 +128,7 @@ async def present(hub, ctx, name, server_name, resource_group, subnet_id, ignore name=name, server_name=server_name, resource_group=resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -234,7 +234,7 @@ async def absent(hub, ctx, name, server_name, resource_group, connection_auth=No name=name, server_name=server_name, resource_group=resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/redis/operations.py b/idem_azurerm/states/azurerm/redis/operations.py index 16acf02b..1706ff00 100644 --- a/idem_azurerm/states/azurerm/redis/operations.py +++ b/idem_azurerm/states/azurerm/redis/operations.py @@ -156,7 +156,7 @@ async def present(hub, ctx, name, resource_group, location, sku, redis_configura cache = await hub.exec.azurerm.redis.operations.get( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/resource/management_lock.py b/idem_azurerm/states/azurerm/resource/management_lock.py index 3f3b8840..3b6aa6f3 100644 --- a/idem_azurerm/states/azurerm/resource/management_lock.py +++ b/idem_azurerm/states/azurerm/resource/management_lock.py @@ -121,7 +121,7 @@ async def present_by_scope(hub, ctx, name, scope, lock_level, notes=None, owners lock = await hub.exec.azurerm.resource.management_lock.get_by_scope( name, scope, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -249,7 +249,7 @@ async def absent_by_scope(hub, ctx, name, scope, connection_auth=None, **kwargs) lock = await hub.exec.azurerm.resource.management_lock.get_by_scope( name, scope, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -352,7 +352,7 @@ async def present_at_resource_level(hub, ctx, name, lock_level, resource_group, resource_type, resource_provider_namespace, parent_resource_path, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -502,7 +502,7 @@ async def absent_at_resource_level(hub, ctx, name, resource_group, resource, res resource_type, resource_provider_namespace, parent_resource_path=parent_resource_path, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -595,13 +595,13 @@ async def present(hub, ctx, name, lock_level, resource_group=None, notes=None, o lock = await hub.exec.azurerm.resource.management_lock.get_at_resource_group_level( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) else: lock = await hub.exec.azurerm.resource.management_lock.get_at_subscription_level( name, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -738,13 +738,13 @@ async def absent(hub, ctx, name, resource_group=None, connection_auth=None, **kw lock = await hub.exec.azurerm.resource.management_lock.get_at_resource_group_level( name, resource_group, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) else: lock = await hub.exec.azurerm.resource.management_lock.get_at_subscription_level( name, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) diff --git a/idem_azurerm/states/azurerm/resource/policy.py b/idem_azurerm/states/azurerm/resource/policy.py index fd7f25ef..bf4125d7 100644 --- a/idem_azurerm/states/azurerm/resource/policy.py +++ b/idem_azurerm/states/azurerm/resource/policy.py @@ -242,7 +242,7 @@ async def definition_present( metadata = temp_rule.get('properties', {}).get('metadata') parameters = temp_rule.get('properties', {}).get('parameters') - policy = await hub.exec.azurerm.resource.policy.definition_get(name, azurearm_log_level='info', **connection_auth) + policy = await hub.exec.azurerm.resource.policy.definition_get(name, azurerm_log_level='info', **connection_auth) if 'error' not in policy: if policy_type and policy_type.lower() != policy.get('policy_type', '').lower(): @@ -368,7 +368,7 @@ async def definition_absent(hub, name, connection_auth=None, **kwargs): ret['comment'] = 'Connection information must be specified via connection_auth dictionary!' return ret - policy = await hub.exec.azurerm.resource.policy.definition_get(name, azurearm_log_level='info', **connection_auth) + policy = await hub.exec.azurerm.resource.policy.definition_get(name, azurerm_log_level='info', **connection_auth) if 'error' in policy: ret['result'] = True @@ -459,7 +459,7 @@ async def assignment_present(hub, ctx, name, scope, definition_name, display_nam policy = await hub.exec.azurerm.resource.policy.assignment_get( name, scope, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) @@ -586,7 +586,7 @@ async def assignment_absent(hub, ctx, name, scope, connection_auth=None, **kwarg policy = await hub.exec.azurerm.resource.policy.assignment_get( name, scope, - azurearm_log_level='info', + azurerm_log_level='info', **connection_auth ) From 27aa7e021cec5730cabc7e8666ee131463bfa4cc Mon Sep 17 00:00:00 2001 From: nicholasmhughes Date: Sun, 3 May 2020 01:11:58 -0400 Subject: [PATCH 05/14] add a changelog --- CHANGELOG.md | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..8649901b --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,68 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [2.0.0] - 2020-05-01 + +### Added + +- [#53](https://github.com/eitrtechnologies/idem-azurerm/pull/53) - Added virtual machine "cleanup" + functionality similar to that present in salt-cloud. +- [#47](https://github.com/eitrtechnologies/idem-azurerm/pull/47) - Added virtual machine creation + functionality to create feature parity with salt-cloud, plus more. +- [#35](https://github.com/eitrtechnologies/idem-azurerm/pull/35) - Added virtual machine extension execution + and state modules. +- [#33](https://github.com/eitrtechnologies/idem-azurerm/pull/33) - Added PostgreSQL replica and location-based + performance tier support. +- [#26](https://github.com/eitrtechnologies/idem-azurerm/pull/26) - Added PostgreSQL log files, virtual network + rules, and server security alert policies operations. +- [#25](https://github.com/eitrtechnologies/idem-azurerm/pull/25) - Added initial PostgreSQL support for basic + deployments. +- [#20](https://github.com/eitrtechnologies/idem-azurerm/pull/20) - Added execution and state modules for + deploying keys to Key Vaults. +- [#19](https://github.com/eitrtechnologies/idem-azurerm/pull/19) - Added Management Group execution and state + modules. +- [#13](https://github.com/eitrtechnologies/idem-azurerm/pull/13) - Added Log Analytics Workspace management + execution and state modules. +- [#10](https://github.com/eitrtechnologies/idem-azurerm/pull/10) - Added encrypted disk functionality to + virtual machines. +- [#9](https://github.com/eitrtechnologies/idem-azurerm/pull/9) - Added Redis execution and state modules for + management of the hosted service in Azure. +- [#7](https://github.com/eitrtechnologies/idem-azurerm/pull/7) - Added execution and state modules for Key + Vault management. +- [#6](https://github.com/eitrtechnologies/idem-azurerm/pull/6) - Added diagnostic setting and management lock + state modules. +- [#5](https://github.com/eitrtechnologies/idem-azurerm/pull/5) - Added storage execution and state modules for + storage account and storage container management. +- Added support for Azure Identity Provider credentials. + +### Changed + +- [#57](https://github.com/eitrtechnologies/idem-azurerm/pull/57) - Changed azurearm references and renamed to + idem-azurerm to match pip +- [#29](https://github.com/eitrtechnologies/idem-azurerm/pull/29) - Added function aliases for list functions, + changing the way they are referenced. + +### Fixed + +- [#42](https://github.com/eitrtechnologies/idem-azurerm/pull/42) - Fixed reference to salt modules for file + handling in Policy modules. +- [#27](https://github.com/eitrtechnologies/idem-azurerm/pull/27) - Allowed keyword arguments for absent states + in order to prevent throwing errors and more closely mirror the present states. + +### Deprecated + +### Removed + +## [1.0.0] - 2019-11-14 + +### Added + +- Initial release of execution and state modules from Salt along with some additional functionality ported from + salt-cloud for virtual machines. + +[2.0.0]: https://github.com/eitrtechnologies/idem-azurerm/compare/v1.0.0...v2.0.0 +[1.0.0]: https://github.com/eitrtechnologies/idem-azurerm/releases/tag/v1.0.0 From 856a0fe7391deba32a6f022f77fe21db82d4f2ba Mon Sep 17 00:00:00 2001 From: nicholasmhughes Date: Sun, 3 May 2020 12:36:51 -0400 Subject: [PATCH 06/14] changed salt user agent --- idem_azurerm/exec/utils/azurerm.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/idem_azurerm/exec/utils/azurerm.py b/idem_azurerm/exec/utils/azurerm.py index 4b6bb34f..0f9921b5 100644 --- a/idem_azurerm/exec/utils/azurerm.py +++ b/idem_azurerm/exec/utils/azurerm.py @@ -4,8 +4,10 @@ .. versionadded:: 1.0.0 +.. versionchanged:: 2.0.0 + :maintainer: -:maturity: new +:maturity: stable :depends: * `azure `_ >= 2.0.0rc6 * `azure-common `_ >= 1.1.4 @@ -186,7 +188,7 @@ async def get_client(hub, client_type, **kwargs): base_url=cloud_env.endpoints.resource_manager, ) - client.config.add_user_agent('Salt/{0}'.format('SOMEVERSIONHERE')) + client.config.add_user_agent("idem-azurerm/2.0.0") return client From 48ad241ff338f0828fb471ce36985a254ddaf421 Mon Sep 17 00:00:00 2001 From: nicholasmhughes Date: Sun, 3 May 2020 12:37:27 -0400 Subject: [PATCH 07/14] updated versionadded/changed for this release --- .../exec/azurerm/compute/virtual_machine.py | 4 +-- .../compute/virtual_machine_extension.py | 10 +++--- .../virtual_machine_extension_image.py | 8 ++--- idem_azurerm/exec/azurerm/keyvault/key.py | 34 +++++++++---------- .../exec/azurerm/log_analytics/workspace.py | 14 ++++---- .../azurerm/managementgroup/operations.py | 12 +++---- .../postgresql/check_name_availability.py | 4 +-- .../exec/azurerm/postgresql/configuration.py | 8 ++--- .../exec/azurerm/postgresql/database.py | 10 +++--- .../exec/azurerm/postgresql/firewall_rule.py | 10 +++--- .../location_based_performance_tier.py | 4 +-- .../exec/azurerm/postgresql/log_files.py | 4 +-- .../exec/azurerm/postgresql/operations.py | 4 +-- .../exec/azurerm/postgresql/replicas.py | 4 +-- .../exec/azurerm/postgresql/server.py | 16 ++++----- .../server_security_alert_policy.py | 6 ++-- .../postgresql/virtual_network_rule.py | 10 +++--- .../states/azurerm/compute/virtual_machine.py | 4 +-- idem_azurerm/states/azurerm/keyvault/key.py | 6 ++-- .../states/azurerm/log_analytics/workspace.py | 6 ++-- .../azurerm/managementgroup/operations.py | 6 ++-- .../azurerm/postgresql/configuration.py | 4 +-- .../states/azurerm/postgresql/database.py | 6 ++-- .../azurerm/postgresql/firewall_rule.py | 6 ++-- .../states/azurerm/postgresql/server.py | 6 ++-- .../server_security_alert_policy.py | 4 +-- .../postgresql/virtual_network_rule.py | 6 ++-- 27 files changed, 108 insertions(+), 108 deletions(-) diff --git a/idem_azurerm/exec/azurerm/compute/virtual_machine.py b/idem_azurerm/exec/azurerm/compute/virtual_machine.py index 25f6c15c..6c7fc754 100644 --- a/idem_azurerm/exec/azurerm/compute/virtual_machine.py +++ b/idem_azurerm/exec/azurerm/compute/virtual_machine.py @@ -4,7 +4,7 @@ .. versionadded:: 1.0.0 -.. versionchanged:: VERSION +.. versionchanged:: 2.0.0 :maintainer: :maturity: new @@ -117,7 +117,7 @@ async def create_or_update( ''' .. versionadded:: 1.0.0 - .. versionchanged:: VERSION + .. versionchanged:: 2.0.0 Create or update a virtual machine. diff --git a/idem_azurerm/exec/azurerm/compute/virtual_machine_extension.py b/idem_azurerm/exec/azurerm/compute/virtual_machine_extension.py index 98d47469..72c21897 100644 --- a/idem_azurerm/exec/azurerm/compute/virtual_machine_extension.py +++ b/idem_azurerm/exec/azurerm/compute/virtual_machine_extension.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) Compute Virtual Machine Extension Operations Execution Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -66,7 +66,7 @@ async def create_or_update(hub, name, vm_name, resource_group, location, publisher, extension_type, version, settings, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 The operation to create or update the extension. @@ -132,7 +132,7 @@ async def create_or_update(hub, name, vm_name, resource_group, location, publish async def delete(hub, name, vm_name, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 The operation to delete the extension. @@ -170,7 +170,7 @@ async def delete(hub, name, vm_name, resource_group, **kwargs): async def get(hub, name, vm_name, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 The operation to get the extension. @@ -207,7 +207,7 @@ async def get(hub, name, vm_name, resource_group, **kwargs): async def list_(hub, vm_name, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 The operation to get all extensions of a Virtual Machine. diff --git a/idem_azurerm/exec/azurerm/compute/virtual_machine_extension_image.py b/idem_azurerm/exec/azurerm/compute/virtual_machine_extension_image.py index bedeb388..797ab80a 100644 --- a/idem_azurerm/exec/azurerm/compute/virtual_machine_extension_image.py +++ b/idem_azurerm/exec/azurerm/compute/virtual_machine_extension_image.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) Compute Virtual Machine Extension Image Operations Execution Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -63,7 +63,7 @@ async def get(hub, location, publisher, extension_type, version, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Gets a virtual machine extension image. @@ -104,7 +104,7 @@ async def get(hub, location, publisher, extension_type, version, **kwargs): async def list_types(hub, location, publisher, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Gets a list of virtual machine extension image types. @@ -140,7 +140,7 @@ async def list_types(hub, location, publisher, **kwargs): async def list_versions(hub, location, publisher, extension_type, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Gets a list of virtual machine extension image versions. diff --git a/idem_azurerm/exec/azurerm/keyvault/key.py b/idem_azurerm/exec/azurerm/keyvault/key.py index 9971b5cb..81781a8d 100644 --- a/idem_azurerm/exec/azurerm/keyvault/key.py +++ b/idem_azurerm/exec/azurerm/keyvault/key.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) Key Execution Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -72,7 +72,7 @@ async def get_key_client(hub, vault_url, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Load the key client and return a KeyClient object. @@ -128,7 +128,7 @@ def _key_properties_as_dict(key_properties): async def backup_key(hub, name, vault_url, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Back up a key in a protected form useable only by Azure Key Vault. Requires key/backup permission. This is intended to allow copying a key from one vault to another. Both vaults must be owned by the same Azure subscription. @@ -163,7 +163,7 @@ async def backup_key(hub, name, vault_url, **kwargs): async def begin_delete_key(hub, name, vault_url, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Delete all versions of a key and its cryptographic material. Requires keys/delete permission. When this method returns Key Vault has begun deleting the key. Deletion may take several seconds in a vault with soft-delete @@ -197,7 +197,7 @@ async def begin_delete_key(hub, name, vault_url, **kwargs): async def begin_recover_deleted_key(hub, name, vault_url, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Recover a deleted key to its latest version. Possible only in a vault with soft-delete enabled. Requires keys/recover permission. When this method returns Key Vault has begun recovering the key. Recovery may take @@ -233,7 +233,7 @@ async def begin_recover_deleted_key(hub, name, vault_url, **kwargs): async def create_ec_key(hub, name, vault_url, key_ops=None, enabled=None, expires_on=None, not_before=None, tags=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Create a new elliptic curve key or, if name is already in use, create a new version of the key. Requires the keys/create permission. Key properties can be specified as keyword arguments. @@ -285,7 +285,7 @@ async def create_ec_key(hub, name, vault_url, key_ops=None, enabled=None, expire async def create_key(hub, name, key_type, vault_url, key_ops=None, enabled=None, expires_on=None, not_before=None, tags=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Create a key or, if name is already in use, create a new version of the key. Requires keys/create permission. Key properties can be specified as keyword arguments. @@ -342,7 +342,7 @@ async def create_key(hub, name, key_type, vault_url, key_ops=None, enabled=None, async def create_rsa_key(hub, name, vault_url, key_ops=None, enabled=None, expires_on=None, not_before=None, tags=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Create a new RSA key or, if name is already in use, create a new version of the key. Requires the keys/create permission. Key properties can be specified as keyword arguments. @@ -393,7 +393,7 @@ async def create_rsa_key(hub, name, vault_url, key_ops=None, enabled=None, expir async def get_deleted_key(hub, name, vault_url, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Get a deleted key. Possible only in a vault with soft-delete enabled. Requires keys/get permission. @@ -425,7 +425,7 @@ async def get_deleted_key(hub, name, vault_url, **kwargs): async def get_key(hub, name, vault_url, version=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Get a key's attributes and, if it's an asymmetric key, its public material. Requires keys/get permission. @@ -461,7 +461,7 @@ async def get_key(hub, name, vault_url, version=None, **kwargs): async def import_key(hub, name, vault_url, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Import a key created externally. Requires keys/import permission. If name is already in use, the key will be imported as a new version. Parameters used to build a JSONWebKey object will be passed to this module. More @@ -547,7 +547,7 @@ async def import_key(hub, name, vault_url, **kwargs): async def list_(hub, vault_url, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 List identifiers and properties of all keys in the vault. Requires keys/list permission. @@ -576,7 +576,7 @@ async def list_(hub, vault_url, **kwargs): async def list_properties_of_key_versions(hub, name, vault_url, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 List the identifiers and properties of a key's versions. Requires keys/list permission. @@ -609,7 +609,7 @@ async def list_properties_of_key_versions(hub, name, vault_url, **kwargs): async def list_deleted_keys(hub, vault_url, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 List all deleted keys, including the public part of each. Possible only in a vault with soft-delete enabled. Requires keys/list permission. @@ -639,7 +639,7 @@ async def list_deleted_keys(hub, vault_url, **kwargs): async def purge_deleted_key(hub, name, vault_url, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Permanently deletes a deleted key. Only possible in a vault with soft-delete enabled. Performs an irreversible deletion of the specified key, without possibility for recovery. The operation is not available if the @@ -674,7 +674,7 @@ async def purge_deleted_key(hub, name, vault_url, **kwargs): async def restore_key_backup(hub, backup, vault_url, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Restore a key backup to the vault. This imports all versions of the key, with its name, attributes, and access control policies. If the key's name is already in use, restoring it will fail. Also, the target vault must be @@ -709,7 +709,7 @@ async def restore_key_backup(hub, backup, vault_url, **kwargs): async def update_key_properties(hub, name, vault_url, version=None, enabled=None, expires_on=None, not_before=None, tags=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Change a key's properties (not its cryptographic material). Requires keys/update permission. Key properties that need to be updated can be specified as keyword arguments. diff --git a/idem_azurerm/exec/azurerm/log_analytics/workspace.py b/idem_azurerm/exec/azurerm/log_analytics/workspace.py index 9bdd3f6e..06e87f91 100644 --- a/idem_azurerm/exec/azurerm/log_analytics/workspace.py +++ b/idem_azurerm/exec/azurerm/log_analytics/workspace.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) Log Analytics Workspace Execution Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -66,7 +66,7 @@ async def create_or_update(hub, name, resource_group, location, sku=None, retention=None, customer_id=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Create or update a workspace. @@ -132,7 +132,7 @@ async def create_or_update(hub, name, resource_group, location, sku=None, retent async def delete(hub, name, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Deletes a workspace instance. @@ -165,7 +165,7 @@ async def delete(hub, name, resource_group, **kwargs): async def get(hub, name, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Gets a workspace instance. @@ -199,7 +199,7 @@ async def get(hub, name, resource_group, **kwargs): async def list_(hub, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Gets the workspaces in a subscription. @@ -229,7 +229,7 @@ async def list_(hub, **kwargs): async def list_by_resource_group(hub, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Gets the workspaces in a resource group. @@ -263,7 +263,7 @@ async def list_by_resource_group(hub, resource_group, **kwargs): async def list_intelligence_packs(hub, name, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Lists all the intelligence packs possible and whether they are enabled or disabled for a given workspace. diff --git a/idem_azurerm/exec/azurerm/managementgroup/operations.py b/idem_azurerm/exec/azurerm/managementgroup/operations.py index 414963ae..08d501c8 100644 --- a/idem_azurerm/exec/azurerm/managementgroup/operations.py +++ b/idem_azurerm/exec/azurerm/managementgroup/operations.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) Management Group Operations Execution Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -69,7 +69,7 @@ async def get_api_client(hub, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Load the ManagementGroupsAPI client and returns the client object. @@ -81,7 +81,7 @@ async def get_api_client(hub, **kwargs): async def create_or_update(hub, name, display_name=None, parent=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Create or update a management group. If a management group is already created and a subsequent create request is issued with different properties, the management group properties will be updated. @@ -147,7 +147,7 @@ async def create_or_update(hub, name, display_name=None, parent=None, **kwargs): async def delete(hub, name, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Delete management group. If a management group contains child resources, the request will fail. @@ -177,7 +177,7 @@ async def delete(hub, name, **kwargs): async def get(hub, name, expand=None, recurse=None, filter=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Get the details of the specified management group. @@ -215,7 +215,7 @@ async def get(hub, name, expand=None, recurse=None, filter=None, **kwargs): async def list_(hub, skip_token=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 List management groups for the authenticated user. diff --git a/idem_azurerm/exec/azurerm/postgresql/check_name_availability.py b/idem_azurerm/exec/azurerm/postgresql/check_name_availability.py index 127c70a7..f4fe37d2 100644 --- a/idem_azurerm/exec/azurerm/postgresql/check_name_availability.py +++ b/idem_azurerm/exec/azurerm/postgresql/check_name_availability.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) PostgreSQL Check Name Availability Operations Execution Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -64,7 +64,7 @@ async def execute(hub, name, type=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Check the availability of name for resource. diff --git a/idem_azurerm/exec/azurerm/postgresql/configuration.py b/idem_azurerm/exec/azurerm/postgresql/configuration.py index 02bec75f..32d4f574 100644 --- a/idem_azurerm/exec/azurerm/postgresql/configuration.py +++ b/idem_azurerm/exec/azurerm/postgresql/configuration.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) PostgreSQL Server Configuration Operations Execution Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -64,7 +64,7 @@ async def create_or_update(hub, name, server_name, resource_group, value=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Updates the specified configuration setting for the given server. A list of configuration settings that can be updated for the given server can be found by using the list_by_server operation below. Additionally, all @@ -107,7 +107,7 @@ async def create_or_update(hub, name, server_name, resource_group, value=None, * async def get(hub, name, server_name, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Gets information about a configuration of server. @@ -144,7 +144,7 @@ async def get(hub, name, server_name, resource_group, **kwargs): async def list_by_server(hub, server_name, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 List all the configurations in a given server. diff --git a/idem_azurerm/exec/azurerm/postgresql/database.py b/idem_azurerm/exec/azurerm/postgresql/database.py index 191d9555..3820fbb2 100644 --- a/idem_azurerm/exec/azurerm/postgresql/database.py +++ b/idem_azurerm/exec/azurerm/postgresql/database.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) PostgreSQL Database Operations Execution Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -65,7 +65,7 @@ async def create_or_update(hub, name, server_name, resource_group, charset=None, collation=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Creates a new database or updates an existing database. @@ -109,7 +109,7 @@ async def create_or_update(hub, name, server_name, resource_group, charset=None, async def delete(hub, name, server_name, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Deletes a database. @@ -147,7 +147,7 @@ async def delete(hub, name, server_name, resource_group, **kwargs): async def get(hub, name, server_name, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Gets information about a database. @@ -184,7 +184,7 @@ async def get(hub, name, server_name, resource_group, **kwargs): async def list_by_server(hub, server_name, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 List all the databases in a given server. diff --git a/idem_azurerm/exec/azurerm/postgresql/firewall_rule.py b/idem_azurerm/exec/azurerm/postgresql/firewall_rule.py index 7f2732b6..b1e3dbf3 100644 --- a/idem_azurerm/exec/azurerm/postgresql/firewall_rule.py +++ b/idem_azurerm/exec/azurerm/postgresql/firewall_rule.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) PostgreSQL Server Firewall Rule Operations Execution Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -65,7 +65,7 @@ async def create_or_update(hub, name, server_name, resource_group, start_ip_address, end_ip_address, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Creates a new firewall rule or updates an existing firewall rule. @@ -109,7 +109,7 @@ async def create_or_update(hub, name, server_name, resource_group, start_ip_addr async def delete(hub, name, server_name, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Deletes a server firewall rule. @@ -147,7 +147,7 @@ async def delete(hub, name, server_name, resource_group, **kwargs): async def get(hub, name, server_name, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Gets information about a server firewall rule. @@ -184,7 +184,7 @@ async def get(hub, name, server_name, resource_group, **kwargs): async def list_by_server(hub, server_name, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 List all the firewall rules in a given server. diff --git a/idem_azurerm/exec/azurerm/postgresql/location_based_performance_tier.py b/idem_azurerm/exec/azurerm/postgresql/location_based_performance_tier.py index 50bcf3ff..6b5f0d4c 100644 --- a/idem_azurerm/exec/azurerm/postgresql/location_based_performance_tier.py +++ b/idem_azurerm/exec/azurerm/postgresql/location_based_performance_tier.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) PostgreSQL Location Based Performance Tier Operations Execution Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -66,7 +66,7 @@ async def list_(hub, location, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 List all the performance tiers at specified location in a given subscription. diff --git a/idem_azurerm/exec/azurerm/postgresql/log_files.py b/idem_azurerm/exec/azurerm/postgresql/log_files.py index 28c59192..70c79022 100644 --- a/idem_azurerm/exec/azurerm/postgresql/log_files.py +++ b/idem_azurerm/exec/azurerm/postgresql/log_files.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) PostgreSQL Log File Operations Execution Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -64,7 +64,7 @@ async def list_by_server(hub, server_name, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 List all the log files in a given server. diff --git a/idem_azurerm/exec/azurerm/postgresql/operations.py b/idem_azurerm/exec/azurerm/postgresql/operations.py index 1279a058..b37f9973 100644 --- a/idem_azurerm/exec/azurerm/postgresql/operations.py +++ b/idem_azurerm/exec/azurerm/postgresql/operations.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) PostgreSQL Operations Execution Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -66,7 +66,7 @@ async def list_(hub, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Lists all of the available REST API operations. diff --git a/idem_azurerm/exec/azurerm/postgresql/replicas.py b/idem_azurerm/exec/azurerm/postgresql/replicas.py index bf9473a8..c6fe90ce 100644 --- a/idem_azurerm/exec/azurerm/postgresql/replicas.py +++ b/idem_azurerm/exec/azurerm/postgresql/replicas.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) PostgreSQL Server Replicas Operations Execution Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -64,7 +64,7 @@ async def list_by_server(hub, server_name, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 List all the replicas for a given server. diff --git a/idem_azurerm/exec/azurerm/postgresql/server.py b/idem_azurerm/exec/azurerm/postgresql/server.py index 064239ff..8d8a5a19 100644 --- a/idem_azurerm/exec/azurerm/postgresql/server.py +++ b/idem_azurerm/exec/azurerm/postgresql/server.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) PostgreSQL Server Operations Execution Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -69,7 +69,7 @@ async def create(hub, name, resource_group, location, sku=None, version=None, ssl_enforcement=None, storage_profile=None, login=None, login_password=None, create_mode='Default', tags=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Creates a new server, or will overwrite an existing server. @@ -165,7 +165,7 @@ async def create(hub, name, resource_group, location, sku=None, version=None, ss async def delete(hub, name, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Deletes a server. @@ -200,7 +200,7 @@ async def delete(hub, name, resource_group, **kwargs): async def get(hub, name, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Gets information about a server. @@ -234,7 +234,7 @@ async def get(hub, name, resource_group, **kwargs): async def list_(hub, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 List all the servers in a given subscription. @@ -264,7 +264,7 @@ async def list_(hub, **kwargs): async def list_by_resource_group(hub, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 List all the servers in a given resource group. @@ -298,7 +298,7 @@ async def list_by_resource_group(hub, resource_group, **kwargs): async def restart(hub, name, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Restarts a server. @@ -334,7 +334,7 @@ async def restart(hub, name, resource_group, **kwargs): async def update(hub, name, resource_group, sku=None, version=None, ssl_enforcement=None, storage_profile=None, login_password=None, tags=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Creates a new server, or will overwrite an existing server. diff --git a/idem_azurerm/exec/azurerm/postgresql/server_security_alert_policy.py b/idem_azurerm/exec/azurerm/postgresql/server_security_alert_policy.py index b41b0e1d..d16168af 100644 --- a/idem_azurerm/exec/azurerm/postgresql/server_security_alert_policy.py +++ b/idem_azurerm/exec/azurerm/postgresql/server_security_alert_policy.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) PostgreSQL Server Security Alert Policy Operations Execution Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -66,7 +66,7 @@ async def create_or_update(hub, server_name, resource_group, policy_state, disab email_account_admins=None, storage_endpoint=None, storage_account_access_key=None, retention_days=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Creates or updates a threat detection policy. @@ -138,7 +138,7 @@ async def create_or_update(hub, server_name, resource_group, policy_state, disab async def get(hub, server_name, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Get a server's security alert policy. diff --git a/idem_azurerm/exec/azurerm/postgresql/virtual_network_rule.py b/idem_azurerm/exec/azurerm/postgresql/virtual_network_rule.py index 74b6351c..0a83f991 100644 --- a/idem_azurerm/exec/azurerm/postgresql/virtual_network_rule.py +++ b/idem_azurerm/exec/azurerm/postgresql/virtual_network_rule.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) PostgreSQL Virtual Network Rule Operations Execution Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -64,7 +64,7 @@ async def create_or_update(hub, name, server_name, resource_group, subnet_id, ignore_missing_endpoint=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Creates or updates an existing virtual network rule. @@ -110,7 +110,7 @@ async def create_or_update(hub, name, server_name, resource_group, subnet_id, ig async def delete(hub, name, server_name, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Deletes the virtual network rule with the given name. @@ -148,7 +148,7 @@ async def delete(hub, name, server_name, resource_group, **kwargs): async def get(hub, name, server_name, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Gets a virtual network rule. @@ -185,7 +185,7 @@ async def get(hub, name, server_name, resource_group, **kwargs): async def list_by_server(hub, server_name, resource_group, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Gets a list of virtual network rules in a server. diff --git a/idem_azurerm/states/azurerm/compute/virtual_machine.py b/idem_azurerm/states/azurerm/compute/virtual_machine.py index 37672a2c..ee1c0184 100644 --- a/idem_azurerm/states/azurerm/compute/virtual_machine.py +++ b/idem_azurerm/states/azurerm/compute/virtual_machine.py @@ -4,7 +4,7 @@ .. versionadded:: 1.0.0 -.. versionchanged:: VERSION +.. versionchanged:: 2.0.0 :maintainer: :maturity: new @@ -164,7 +164,7 @@ async def present( ''' .. versionadded:: 1.0.0 - .. versionchanged:: VERSION + .. versionchanged:: 2.0.0 Ensure a virtual machine exists. diff --git a/idem_azurerm/states/azurerm/keyvault/key.py b/idem_azurerm/states/azurerm/keyvault/key.py index 7c8c6f7e..648c3aad 100644 --- a/idem_azurerm/states/azurerm/keyvault/key.py +++ b/idem_azurerm/states/azurerm/keyvault/key.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) Key State Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -82,7 +82,7 @@ async def present(hub, ctx, name, key_type, vault_url, key_ops=None, enabled=None, expires_on=None, not_before=None, tags=None, connection_auth=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Ensure the specified key exists within the given key vault. Requires keys/create permission. Key properties can be specified as keyword arguments. @@ -244,7 +244,7 @@ async def present(hub, ctx, name, key_type, vault_url, key_ops=None, enabled=Non async def absent(hub, ctx, name, vault_url, connection_auth=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Ensure the specified key does not exist within the given key vault. diff --git a/idem_azurerm/states/azurerm/log_analytics/workspace.py b/idem_azurerm/states/azurerm/log_analytics/workspace.py index 35bdff3e..4fdd8dc6 100644 --- a/idem_azurerm/states/azurerm/log_analytics/workspace.py +++ b/idem_azurerm/states/azurerm/log_analytics/workspace.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) Log Analytics Workspace State Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -81,7 +81,7 @@ async def present(hub, ctx, name, resource_group, location, sku=None, retention=None, customer_id=None, tags=None, connection_auth=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Ensure a specified log analytics workspace exists. @@ -234,7 +234,7 @@ async def present(hub, ctx, name, resource_group, location, sku=None, retention= async def absent(hub, ctx, name, resource_group, connection_auth=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Ensure a specified Log Analytics Workspace does not exist. diff --git a/idem_azurerm/states/azurerm/managementgroup/operations.py b/idem_azurerm/states/azurerm/managementgroup/operations.py index 95c2bfc8..562bf062 100644 --- a/idem_azurerm/states/azurerm/managementgroup/operations.py +++ b/idem_azurerm/states/azurerm/managementgroup/operations.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) Management Group State Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -71,7 +71,7 @@ async def present(hub, ctx, name, display_name=None, parent=None, connection_auth=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Ensures that the specified management group is present. @@ -179,7 +179,7 @@ async def present(hub, ctx, name, display_name=None, parent=None, connection_aut async def absent(hub, ctx, name, connection_auth=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Ensure a specified management group does not exist. diff --git a/idem_azurerm/states/azurerm/postgresql/configuration.py b/idem_azurerm/states/azurerm/postgresql/configuration.py index 1f3da335..a17ca29e 100644 --- a/idem_azurerm/states/azurerm/postgresql/configuration.py +++ b/idem_azurerm/states/azurerm/postgresql/configuration.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) PostgreSQL Server Configuration Operations State Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -80,7 +80,7 @@ async def present(hub, ctx, name, server_name, resource_group, value=None, connection_auth=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Ensures that a specific configuration setting exists with the given value for a specific PostgreSQL server. A list of configuration settings that can be updated for the given server can be found by using the list_by_server diff --git a/idem_azurerm/states/azurerm/postgresql/database.py b/idem_azurerm/states/azurerm/postgresql/database.py index f72cd6e3..380d3bce 100644 --- a/idem_azurerm/states/azurerm/postgresql/database.py +++ b/idem_azurerm/states/azurerm/postgresql/database.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) PostgreSQL Database Operations State Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -81,7 +81,7 @@ async def present(hub, ctx, name, server_name, resource_group, charset=None, collation=None, connection_auth=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Ensures that the specified database exists within the given PostgreSQL database. @@ -199,7 +199,7 @@ async def present(hub, ctx, name, server_name, resource_group, charset=None, col async def absent(hub, ctx, name, server_name, resource_group, connection_auth=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Ensures that the specified database does not exist within the given PostgreSQL server. diff --git a/idem_azurerm/states/azurerm/postgresql/firewall_rule.py b/idem_azurerm/states/azurerm/postgresql/firewall_rule.py index 11c4ca14..d959571e 100644 --- a/idem_azurerm/states/azurerm/postgresql/firewall_rule.py +++ b/idem_azurerm/states/azurerm/postgresql/firewall_rule.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) PostgreSQL Server Firewall Rule Operations State Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -81,7 +81,7 @@ async def present(hub, ctx, name, server_name, resource_group, start_ip_address, end_ip_address, connection_auth=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Ensures that the specified firewall rule exists within the given PostgreSQL server. @@ -196,7 +196,7 @@ async def present(hub, ctx, name, server_name, resource_group, start_ip_address, async def absent(hub, ctx, name, server_name, resource_group, connection_auth=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Ensures that the specified firewall rule does not exist within the given PostgreSQL server. diff --git a/idem_azurerm/states/azurerm/postgresql/server.py b/idem_azurerm/states/azurerm/postgresql/server.py index 2907c184..6facc108 100644 --- a/idem_azurerm/states/azurerm/postgresql/server.py +++ b/idem_azurerm/states/azurerm/postgresql/server.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) PostgreSQL Server Operations State Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -81,7 +81,7 @@ async def present(hub, ctx, name, resource_group, location, sku=None, version=No storage_profile=None, login=None, login_password=None, create_mode='Default', force_password=False, tags=None, connection_auth=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Ensure a specified PostgreSQL Server exists. @@ -292,7 +292,7 @@ async def present(hub, ctx, name, resource_group, location, sku=None, version=No async def absent(hub, ctx, name, resource_group, connection_auth=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Ensure a specified PostgreSQL Server does not exist. diff --git a/idem_azurerm/states/azurerm/postgresql/server_security_alert_policy.py b/idem_azurerm/states/azurerm/postgresql/server_security_alert_policy.py index 48b870fe..1b4876a6 100644 --- a/idem_azurerm/states/azurerm/postgresql/server_security_alert_policy.py +++ b/idem_azurerm/states/azurerm/postgresql/server_security_alert_policy.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) PostgreSQL Server Security Alert Policy Operations State Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -81,7 +81,7 @@ async def present(hub, ctx, server_name, resource_group, policy_state, disabled_ email_account_admins=None, storage_endpoint=None, storage_account_access_key=None, retention_days=None, force_access_key=False, connection_auth=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Ensures that the specified server security alert policy exists within the given PostgreSQL server. diff --git a/idem_azurerm/states/azurerm/postgresql/virtual_network_rule.py b/idem_azurerm/states/azurerm/postgresql/virtual_network_rule.py index a0697bc7..d4f7cecb 100644 --- a/idem_azurerm/states/azurerm/postgresql/virtual_network_rule.py +++ b/idem_azurerm/states/azurerm/postgresql/virtual_network_rule.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) PostgreSQL Virtual Network Rule Operations State Module -.. versionadded:: VERSION +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -81,7 +81,7 @@ async def present(hub, ctx, name, server_name, resource_group, subnet_id, ignore_missing_endpoint=None, connection_auth=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Ensures that the specified virtual network rule exists within the given PostgreSQL server. @@ -194,7 +194,7 @@ async def present(hub, ctx, name, server_name, resource_group, subnet_id, ignore async def absent(hub, ctx, name, server_name, resource_group, connection_auth=None, **kwargs): ''' - .. versionadded:: VERSION + .. versionadded:: 2.0.0 Ensures that the specified virtual network rule does not exist within the given PostgreSQL server. From f063b1fc1d8cceadfb27f052f762150d2ddb5bdc Mon Sep 17 00:00:00 2001 From: nicholasmhughes Date: Sun, 3 May 2020 12:43:22 -0400 Subject: [PATCH 08/14] corrected versionadded for this release --- idem_azurerm/exec/azurerm/redis/operations.py | 28 +++++++++---------- .../states/azurerm/redis/operations.py | 6 ++-- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/idem_azurerm/exec/azurerm/redis/operations.py b/idem_azurerm/exec/azurerm/redis/operations.py index 325899fc..b7fdf1d6 100644 --- a/idem_azurerm/exec/azurerm/redis/operations.py +++ b/idem_azurerm/exec/azurerm/redis/operations.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) Redis Operations Execution Module -.. versionadded:: 1.0.0 +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -67,7 +67,7 @@ async def check_name_availability(hub, name, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Checks that the redis cache name is valid and is not already in use. @@ -102,7 +102,7 @@ async def create(hub, name, resource_group, location, sku, redis_configuration=N tenant_settings=None, shard_count=None, minimum_tls_version=None, subnet_id=None, static_ip=None, zones=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Create or replace (overwrite/recreate, with potential downtime) an existing Redis cache. @@ -188,7 +188,7 @@ async def create(hub, name, resource_group, location, sku, redis_configuration=N async def delete(hub, name, resource_group, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Deletes a Redis cache. @@ -221,7 +221,7 @@ async def delete(hub, name, resource_group, **kwargs): async def export_data(hub, name, resource_group, prefix, container, format=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Export data from the redis cache to blobs in a container. @@ -275,7 +275,7 @@ async def export_data(hub, name, resource_group, prefix, container, format=None, async def force_reboot(hub, name, resource_group, reboot_type, shard_id=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Reboot specified Redis node(s). This operation requires write permission to the cache resource. There can be potential data loss. @@ -317,7 +317,7 @@ async def force_reboot(hub, name, resource_group, reboot_type, shard_id=None, ** async def get(hub, name, resource_group, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Gets a Redis cache (resource description). @@ -351,7 +351,7 @@ async def get(hub, name, resource_group, **kwargs): async def import_data(hub, name, resource_group, files, format=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Import data into Redis cache. @@ -391,7 +391,7 @@ async def import_data(hub, name, resource_group, files, format=None, **kwargs): async def list_(hub, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Gets all Redis caches in the specified subscription. @@ -421,7 +421,7 @@ async def list_(hub, **kwargs): async def list_by_resource_group(hub, resource_group, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Lists all Redis caches in a resource group. @@ -455,7 +455,7 @@ async def list_by_resource_group(hub, resource_group, **kwargs): async def list_keys(hub, name, resource_group, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Retrieve a Redis cache's access keys. This operation requires write permission to the cache resource. @@ -489,7 +489,7 @@ async def list_keys(hub, name, resource_group, **kwargs): async def list_upgrade_notifications(hub, name, resource_group, history, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Gets any upgrade notifications for a Redis cache. @@ -526,7 +526,7 @@ async def list_upgrade_notifications(hub, name, resource_group, history, **kwarg async def regenerate_key(hub, name, resource_group, key_type, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Regenerate Redis cache's access keys. This operation requires write permission to the cache resource. @@ -564,7 +564,7 @@ async def regenerate_key(hub, name, resource_group, key_type, **kwargs): async def update(hub, name, resource_group, sku=None, redis_configuration=None, enable_non_ssl_port=False, tenant_settings=None, shard_count=None, minimum_tls_version=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Update an existing Redis cache. diff --git a/idem_azurerm/states/azurerm/redis/operations.py b/idem_azurerm/states/azurerm/redis/operations.py index 1706ff00..b6114567 100644 --- a/idem_azurerm/states/azurerm/redis/operations.py +++ b/idem_azurerm/states/azurerm/redis/operations.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) Redis Operations State Module -.. versionadded:: 1.0.0 +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -81,7 +81,7 @@ async def present(hub, ctx, name, resource_group, location, sku, redis_configura tenant_settings=None, shard_count=None, minimum_tls_version=None, subnet_id=None, static_ip=None, zones=None, tags=None, connection_auth=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Ensure a redis cache exists in the resource group. @@ -297,7 +297,7 @@ async def present(hub, ctx, name, resource_group, location, sku, redis_configura async def absent(hub, ctx, name, resource_group, connection_auth=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Ensure a Redis cache does not exist in the specified resource group. From 358b7cc163616801771eb08d88e6c9b618f8e4c2 Mon Sep 17 00:00:00 2001 From: nicholasmhughes Date: Sun, 3 May 2020 12:45:04 -0400 Subject: [PATCH 09/14] __init__ isn't special on the hub --- idem_azurerm/exec/azurerm/network/{__init__.py => operations.py} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename idem_azurerm/exec/azurerm/network/{__init__.py => operations.py} (100%) diff --git a/idem_azurerm/exec/azurerm/network/__init__.py b/idem_azurerm/exec/azurerm/network/operations.py similarity index 100% rename from idem_azurerm/exec/azurerm/network/__init__.py rename to idem_azurerm/exec/azurerm/network/operations.py From 916f13319ef8259101db715c3aef4eea8225c31e Mon Sep 17 00:00:00 2001 From: nicholasmhughes Date: Sun, 3 May 2020 12:53:29 -0400 Subject: [PATCH 10/14] corrected versionadded for this release --- idem_azurerm/exec/azurerm/keyvault/vault.py | 24 ++++++++--------- idem_azurerm/exec/azurerm/storage/account.py | 22 ++++++++-------- .../exec/azurerm/storage/container.py | 26 +++++++++---------- idem_azurerm/exec/azurerm/storage/sku.py | 4 +-- idem_azurerm/exec/azurerm/storage/usage.py | 6 ++--- idem_azurerm/states/azurerm/keyvault/vault.py | 6 ++--- .../azurerm/monitor/diagnostic_setting.py | 6 ++--- .../azurerm/resource/management_lock.py | 14 +++++----- .../states/azurerm/storage/account.py | 6 ++--- .../states/azurerm/storage/container.py | 10 +++---- 10 files changed, 62 insertions(+), 62 deletions(-) diff --git a/idem_azurerm/exec/azurerm/keyvault/vault.py b/idem_azurerm/exec/azurerm/keyvault/vault.py index 2ffa7e6f..20ce7d8c 100644 --- a/idem_azurerm/exec/azurerm/keyvault/vault.py +++ b/idem_azurerm/exec/azurerm/keyvault/vault.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) Key Vault Execution Module -.. versionadded:: 1.0.0 +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -67,7 +67,7 @@ async def check_name_availability(hub, name, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Checks that the vault name is valid and is not already in use. @@ -101,7 +101,7 @@ async def create_or_update(hub, name, resource_group, location, tenant_id, sku, enabled_for_deployment=None, enabled_for_disk_encryption=None, enabled_for_template_deployment=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Create or update a key vault in the specified subscription. @@ -232,7 +232,7 @@ async def create_or_update(hub, name, resource_group, location, tenant_id, sku, async def delete(hub, name, resource_group, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Deletes the specified Azure key vault. @@ -265,7 +265,7 @@ async def delete(hub, name, resource_group, **kwargs): async def get(hub, name, resource_group, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Gets the specified Azure key vault. @@ -299,7 +299,7 @@ async def get(hub, name, resource_group, **kwargs): async def get_deleted(hub, name, location, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Gets the deleted Azure key vault. @@ -333,7 +333,7 @@ async def get_deleted(hub, name, location, **kwargs): async def list_(hub, top=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 The List operation gets information about the vaults associated with the subscription. @@ -367,7 +367,7 @@ async def list_(hub, top=None, **kwargs): async def list_by_resource_group(hub, resource_group, top=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 The List operation gets information about the vaults associated with the subscription and within the specified resource group. @@ -405,7 +405,7 @@ async def list_by_resource_group(hub, resource_group, top=None, **kwargs): async def list_by_subscription(hub, top=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 The List operation gets information about the vaults associated with the subscription. @@ -439,7 +439,7 @@ async def list_by_subscription(hub, top=None, **kwargs): async def list_deleted(hub, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Gets information about the deleted vaults in a subscription. @@ -469,7 +469,7 @@ async def list_deleted(hub, **kwargs): async def purge_deleted(hub, name, location, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Permanently deletes (purges) the specified Azure key vault. @@ -502,7 +502,7 @@ async def purge_deleted(hub, name, location, **kwargs): async def update_access_policy(hub, name, resource_group, operation_kind, access_policies, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Update access policies in a key vault in the specified subscription. diff --git a/idem_azurerm/exec/azurerm/storage/account.py b/idem_azurerm/exec/azurerm/storage/account.py index 3c1f6dce..ea0d1ce2 100644 --- a/idem_azurerm/exec/azurerm/storage/account.py +++ b/idem_azurerm/exec/azurerm/storage/account.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) Storage Account Operations Execution Module -.. versionadded:: 1.0.0 +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -65,7 +65,7 @@ async def check_name_availability(hub, name, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Checks that the storage account name is valid and is not already in use. @@ -98,7 +98,7 @@ async def create(hub, name, resource_group, sku, kind, location, custom_domain=N network_rule_set=None, access_tier=None, https_traffic_only=False, is_hns_enabled=False, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Asynchronously creates a new storage account with the specified parameters. If an account is already created and a subsequent create request is issued with different properties, the account properties will be updated. If an @@ -187,7 +187,7 @@ async def create(hub, name, resource_group, sku, kind, location, custom_domain=N async def delete(hub, name, resource_group, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Delete a storage account. @@ -220,7 +220,7 @@ async def delete(hub, name, resource_group, **kwargs): async def get_properties(hub, name, resource_group, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Returns the properties for the specified storage account including but not limited to name, SKU name, location, and account status. The ListKeys operation should be used to retrieve storage keys. @@ -254,7 +254,7 @@ async def get_properties(hub, name, resource_group, **kwargs): async def list_(hub, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Lists all the storage accounts available under the subscription. Note that storage keys are not returned; use the ListKeys operation for this. @@ -286,7 +286,7 @@ async def list_(hub, **kwargs): async def list_account_sas(hub, name, resource_group, services, resource_types, permissions, shared_access_expiry_time, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 List SAS credentials of a storage account. @@ -349,7 +349,7 @@ async def list_account_sas(hub, name, resource_group, services, resource_types, async def list_by_resource_group(hub, resource_group, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Lists all the storage accounts available under the given resource group. Note that storage keys are not returned; use the ListKeys operation for this. @@ -383,7 +383,7 @@ async def list_by_resource_group(hub, resource_group, **kwargs): async def list_keys(hub, name, resource_group, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Lists the access keys or Kerberos keys (if active directory enabled) for the specified storage account. @@ -417,7 +417,7 @@ async def list_keys(hub, name, resource_group, **kwargs): async def list_service_sas(hub, name, resource_group, canonicalized_resource, permissions, shared_access_expiry_time, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 List service SAS credentials of a specific resource. @@ -474,7 +474,7 @@ async def list_service_sas(hub, name, resource_group, canonicalized_resource, pe async def regenerate_key(hub, name, resource_group, key_name, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Regenerates one of the access keys or Kerberos keys for the specified storage account. diff --git a/idem_azurerm/exec/azurerm/storage/container.py b/idem_azurerm/exec/azurerm/storage/container.py index 66d8aaf2..2c68c3db 100644 --- a/idem_azurerm/exec/azurerm/storage/container.py +++ b/idem_azurerm/exec/azurerm/storage/container.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) Blob Container Operations Execution Module -.. versionadded:: 1.0.0 +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -65,7 +65,7 @@ async def clear_legal_hold(hub, name, account, resource_group, tags, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold clears out only the specified tags in the request. @@ -108,7 +108,7 @@ async def clear_legal_hold(hub, name, account, resource_group, tags, **kwargs): async def create(hub, name, account, resource_group, public_access=None, metadata=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Creates a new container under the specified account as described by request body. The container resource includes metadata and properties for that container. It does not include a list of the blobs contained by the container. @@ -160,7 +160,7 @@ async def create(hub, name, account, resource_group, public_access=None, metadat async def create_or_update_immutability_policy(hub, name, account, resource_group, immutability_period, if_match=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Creates or updates an unlocked immutability policy. The container must be of account kind 'StorageV2' in order to utilize an immutability policy. @@ -213,7 +213,7 @@ async def create_or_update_immutability_policy(hub, name, account, resource_grou async def delete(hub, name, account, resource_group, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Deletes specified container under its account. @@ -252,7 +252,7 @@ async def delete(hub, name, account, resource_group, **kwargs): async def delete_immutability_policy(hub, name, account, resource_group, if_match, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Aborts an unlocked immutability policy. The response of delete has immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation. Deleting a locked immutability policy is not allowed, only way @@ -298,7 +298,7 @@ async def delete_immutability_policy(hub, name, account, resource_group, if_matc async def extend_immutability_policy(hub, name, account, resource_group, immutability_period, if_match, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action allowed on a Locked policy will be this action. ETag in If-Match is required for this operation. @@ -348,7 +348,7 @@ async def extend_immutability_policy(hub, name, account, resource_group, immutab async def get(hub, name, account, resource_group, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Gets properties of a specified container. @@ -388,7 +388,7 @@ async def get(hub, name, account, resource_group, **kwargs): async def get_immutability_policy(hub, name, account, resource_group, if_match=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Gets properties of a specified container. @@ -433,7 +433,7 @@ async def get_immutability_policy(hub, name, account, resource_group, if_match=N async def list_(hub, account, resource_group, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Lists all containers and does not support a prefix like data plane. Also SRP today does not return continuation token. @@ -471,7 +471,7 @@ async def list_(hub, account, resource_group, **kwargs): async def lock_immutability_policy(hub, name, account, resource_group, if_match, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 :param name: The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) @@ -514,7 +514,7 @@ async def lock_immutability_policy(hub, name, account, resource_group, if_match, async def set_legal_hold(hub, name, account, resource_group, tags, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows an append pattern and does not clear out the existing tags that are not specified in the request. @@ -557,7 +557,7 @@ async def set_legal_hold(hub, name, account, resource_group, tags, **kwargs): async def update(hub, name, account, resource_group, public_access=None, metadata=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Updates container properties as specified in request body. Properties not mentioned in the request will be unchanged. Update fails if the specified container doesn't already exist. diff --git a/idem_azurerm/exec/azurerm/storage/sku.py b/idem_azurerm/exec/azurerm/storage/sku.py index 3de5c001..2c20927a 100644 --- a/idem_azurerm/exec/azurerm/storage/sku.py +++ b/idem_azurerm/exec/azurerm/storage/sku.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) SKU Operations Execution Module -.. versionadded:: 1.0.0 +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -65,7 +65,7 @@ async def list_(hub, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Lists the available SKUs supported by Microsoft.Storage for given subscription. diff --git a/idem_azurerm/exec/azurerm/storage/usage.py b/idem_azurerm/exec/azurerm/storage/usage.py index 4fc47316..b553c641 100644 --- a/idem_azurerm/exec/azurerm/storage/usage.py +++ b/idem_azurerm/exec/azurerm/storage/usage.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) Usage Operations Execution Module -.. versionadded:: 1.0.0 +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -65,7 +65,7 @@ async def list_(hub, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Gets the current usage count and the limit for the resources under the subscription. @@ -95,7 +95,7 @@ async def list_(hub, **kwargs): async def list_by_location(hub, location, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Gets the current usage count and the limit for the resources of the location under the subscription. diff --git a/idem_azurerm/states/azurerm/keyvault/vault.py b/idem_azurerm/states/azurerm/keyvault/vault.py index 94c216ab..74ad52a0 100644 --- a/idem_azurerm/states/azurerm/keyvault/vault.py +++ b/idem_azurerm/states/azurerm/keyvault/vault.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) Key Vault State Module -.. versionadded:: 1.0.0 +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -83,7 +83,7 @@ async def present(hub, ctx, name, resource_group, location, tenant_id, sku, acce enabled_for_disk_encryption=None, enabled_for_template_deployment=None, tags=None, connection_auth=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Ensure a specified keyvault exists. @@ -380,7 +380,7 @@ async def present(hub, ctx, name, resource_group, location, tenant_id, sku, acce async def absent(hub, ctx, name, resource_group, connection_auth=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Ensure a specified key vault does not exist. diff --git a/idem_azurerm/states/azurerm/monitor/diagnostic_setting.py b/idem_azurerm/states/azurerm/monitor/diagnostic_setting.py index 47e1f652..37c72215 100644 --- a/idem_azurerm/states/azurerm/monitor/diagnostic_setting.py +++ b/idem_azurerm/states/azurerm/monitor/diagnostic_setting.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) Diagnostic Setting State Module -.. versionadded:: 1.0.0 +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -73,7 +73,7 @@ async def present(hub, ctx, name, resource_uri, metrics, logs, workspace_id=None service_bus_rule_id=None, event_hub_authorization_rule_id=None, event_hub_name=None, connection_auth=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Ensure a diagnostic setting exists. At least one destination for the diagnostic setting logs is required. Any combination of the following destinations is acceptable: @@ -302,7 +302,7 @@ async def present(hub, ctx, name, resource_uri, metrics, logs, workspace_id=None async def absent(hub, ctx, name, resource_uri, connection_auth=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Ensure a diagnostic setting does not exist for the specified resource uri. diff --git a/idem_azurerm/states/azurerm/resource/management_lock.py b/idem_azurerm/states/azurerm/resource/management_lock.py index 3b6aa6f3..49f04529 100644 --- a/idem_azurerm/states/azurerm/resource/management_lock.py +++ b/idem_azurerm/states/azurerm/resource/management_lock.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) Management Lock State Module -.. versionadded:: 1.0.0 +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -70,7 +70,7 @@ async def present_by_scope(hub, ctx, name, scope, lock_level, notes=None, owners=None, connection_auth=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Ensure a management lock exists by scope. @@ -209,7 +209,7 @@ async def present_by_scope(hub, ctx, name, scope, lock_level, notes=None, owners async def absent_by_scope(hub, ctx, name, scope, connection_auth=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Ensure a management lock does not exist by scope. @@ -290,7 +290,7 @@ async def present_at_resource_level(hub, ctx, name, lock_level, resource_group, resource_provider_namespace, parent_resource_path=None, notes=None, owners=None, connection_auth=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Ensure a management lock exists at resource level. @@ -450,7 +450,7 @@ async def present_at_resource_level(hub, ctx, name, lock_level, resource_group, async def absent_at_resource_level(hub, ctx, name, resource_group, resource, resource_type, resource_provider_namespace, parent_resource_path=None, connection_auth=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Ensure a management lock does not exist at the resource level. @@ -546,7 +546,7 @@ async def absent_at_resource_level(hub, ctx, name, resource_group, resource, res async def present(hub, ctx, name, lock_level, resource_group=None, notes=None, owners=None, connection_auth=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Ensure a management lock exists. By default this module ensures that the management lock exists at the subscription level. If you would like to ensure that the management lock exists at the resource group level @@ -699,7 +699,7 @@ async def present(hub, ctx, name, lock_level, resource_group=None, notes=None, o async def absent(hub, ctx, name, resource_group=None, connection_auth=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Ensure a management lock does not exist. By default this module ensures that the management lock does not exist at the subscription level. If you would like to ensure that the management lock does not exist at the resource diff --git a/idem_azurerm/states/azurerm/storage/account.py b/idem_azurerm/states/azurerm/storage/account.py index c788f2c7..15d44111 100644 --- a/idem_azurerm/states/azurerm/storage/account.py +++ b/idem_azurerm/states/azurerm/storage/account.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) Storage Account State Module -.. versionadded:: 1.0.0 +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -80,7 +80,7 @@ async def present(hub, ctx, name, resource_group, sku, kind, location, custom_do network_rule_set=None, access_tier=None, https_traffic_only=None, is_hns_enabled=None, tags=None, connection_auth=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Ensure a storage account exists in the resource group. @@ -286,7 +286,7 @@ async def present(hub, ctx, name, resource_group, sku, kind, location, custom_do async def absent(hub, ctx, name, resource_group, connection_auth=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Ensure a storage account does not exist in the resource group. diff --git a/idem_azurerm/states/azurerm/storage/container.py b/idem_azurerm/states/azurerm/storage/container.py index 74e932ff..0d15923a 100644 --- a/idem_azurerm/states/azurerm/storage/container.py +++ b/idem_azurerm/states/azurerm/storage/container.py @@ -2,7 +2,7 @@ ''' Azure Resource Manager (ARM) Blob Container State Module -.. versionadded:: 1.0.0 +.. versionadded:: 2.0.0 :maintainer: :maturity: new @@ -80,7 +80,7 @@ async def present(hub, ctx, name, account, resource_group, public_access=None, metadata=None, tags=None, connection_auth=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Ensure a blob container exists. @@ -226,7 +226,7 @@ async def immutability_policy_present(hub, ctx, name, account, resource_group, immutability_period, if_match=None, tags=None, connection_auth=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Ensures that the immutability policy of a specified blob container exists. The container must be of account kind 'StorageV2' in order to utilize an immutability policy. @@ -355,7 +355,7 @@ async def immutability_policy_present(hub, ctx, name, account, resource_group, async def absent(hub, ctx, name, account, resource_group, connection_auth=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Ensures a specified blob container does not exist. @@ -432,7 +432,7 @@ async def absent(hub, ctx, name, account, resource_group, connection_auth=None, async def immutability_policy_absent(hub, ctx, name, account, resource_group, if_match=None, connection_auth=None, **kwargs): ''' - .. versionadded:: 1.0.0 + .. versionadded:: 2.0.0 Ensures that the immutability policy of a specified blob container does not exist. From 8d86737dae6491bc493d6a109b21327ed8c3a2e4 Mon Sep 17 00:00:00 2001 From: nicholasmhughes Date: Sun, 3 May 2020 12:56:50 -0400 Subject: [PATCH 11/14] updated versionchanged due to file handling update --- idem_azurerm/states/azurerm/resource/policy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/idem_azurerm/states/azurerm/resource/policy.py b/idem_azurerm/states/azurerm/resource/policy.py index bf4125d7..685c7e29 100644 --- a/idem_azurerm/states/azurerm/resource/policy.py +++ b/idem_azurerm/states/azurerm/resource/policy.py @@ -4,6 +4,8 @@ .. versionadded:: 1.0.0 +.. versionchanged:: 2.0.0 + :maintainer: :maturity: new :depends: @@ -118,6 +120,8 @@ async def definition_present( ''' .. versionadded:: 1.0.0 + .. versionchanged:: 2.0.0 + Ensure a security policy definition exists. :param name: From 99be7c388280cdee6be53ee448a5cadd266a7656 Mon Sep 17 00:00:00 2001 From: nicholasmhughes Date: Mon, 4 May 2020 18:10:24 -0400 Subject: [PATCH 12/14] updated release date --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8649901b..391da483 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [2.0.0] - 2020-05-01 +## [2.0.0] - 2020-05-04 ### Added From 1cf290299b4afa4ea14c0f96d0ce381af81df78a Mon Sep 17 00:00:00 2001 From: nicholasmhughes Date: Mon, 4 May 2020 18:10:46 -0400 Subject: [PATCH 13/14] pin pop and idem --- requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index aee1f617..7067feb5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ -idem>=5 +pop==10.1 +idem==5.1 azure-common==1.1.23 azure-core==1.3.0 azure-identity==1.3.0 From b04b8233a1816a4d1f8fe66f15db891bd6c2c0c8 Mon Sep 17 00:00:00 2001 From: nicholasmhughes Date: Mon, 4 May 2020 22:47:45 -0400 Subject: [PATCH 14/14] use takara version that works with pinned idem --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 7067feb5..f4161472 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,6 @@ pop==10.1 idem==5.1 +takara==1.1 azure-common==1.1.23 azure-core==1.3.0 azure-identity==1.3.0