cloud_scanner_generic.simulators package

Submodules

cloud_scanner_generic.simulators.resource_service_simulator module

class cloud_scanner_generic.simulators.resource_service_simulator.ResourceServiceSimulator

Bases: cloud_scanner.contracts.resource_service.ResourceService

get_filter(payload) → cloud_scanner.contracts.resource_service.ResourceFilter

Get filter object based on payload Not implemented in this class.

get_resources(filter: cloud_scanner.contracts.resource_service.ResourceFilter = None)

Get resources based on filter Not implemented in this class.

name

Name of resource service Not implemented in this class.

resources = [{'id': '/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/yyyyyyyyyyyy/providers/microsoft.insights/components/wwwwwwwwwwww', 'name': 'wwwwwwwwwwww', 'type': 'microsoft.insights/components', 'location': 'southcentralus', 'tags': {'hidden-link:/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/yyyyyyyyyyyy/providers/Microsoft.Web/sites/wwwwwwwwwwww': 'Resource'}, 'kind': 'web'}, {'id': '/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/yyyyyyyyyyyy/providers/Microsoft.ServiceBus/namespaces/wwwwwwwwwwww', 'name': 'wwwwwwwwwwww', 'type': 'Microsoft.ServiceBus/namespaces', 'location': 'southcentralus', 'tags': {}, 'sku': {'name': 'Standard', 'tier': 'Standard'}}, {'id': '/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/yyyyyyyyyyyy/providers/Microsoft.Storage/storageAccounts/wwwwwwwwwwww', 'name': 'wwwwwwwwwwww', 'type': 'Microsoft.Storage/storageAccounts', 'location': 'southcentralus', 'tags': {}, 'kind': 'Storage', 'sku': {'name': 'Standard_LRS', 'tier': 'Standard'}}, {'id': '/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/yyyyyyyyyyyy/providers/Microsoft.Web/serverFarms/wwwwwwwwwwww', 'name': 'wwwwwwwwwwww', 'type': 'Microsoft.Web/serverFarms', 'location': 'southcentralus', 'kind': 'functionapp'}, {'id': '/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/yyyyyyyyyyyy/providers/Microsoft.Web/sites/wwwwwwwwwwww', 'name': 'wwwwwwwwwwww', 'type': 'Microsoft.Web/sites', 'location': 'southcentralus', 'kind': 'functionapp'}]
update_resource(resource)

Update resource within cloud service provider Not implemented in this class.

Module contents