Sha256: fcb601f11ab75e991e3734e46aa0f8674680b3841a5ad1832f7ff572f9bcaebf
Contents?: true
Size: 1.76 KB
Versions: 5
Compression:
Stored size: 1.76 KB
Contents
module ApiStub module Requests module Resources # Mock class for Tag Requests class AzureResource def self.azure_resource_response(client) body = '{ "id": "/subscriptions/########-####-####-####-############/resourceGroups/{RESOURCE-GROUP}/providers/Microsoft.Network/{PROVIDER-NAME}/{RESOURCE-NAME}", "name": "your-resource-name", "type": "providernamespace/resourcetype", "location": "westus", "tags": { "tag_name": "tag_value" }, "plan": { "name": "free" } }' result_mapper = Azure::ARM::Resources::Models::GenericResource.mapper client.deserialize(result_mapper, JSON.load(body), 'result.body') end def self.list_tagged_resources_response(client) body = '{ "value": [ { "id": "/subscriptions/########-####-####-####-############/resourceGroups/{RESOURCE-GROUP}/providers/Microsoft.Network/{PROVIDER-NAME}/{RESOURCE-NAME}", "name": "your-resource-name", "type": "providernamespace/resourcetype", "location": "westus", "tags": { "tag_name": "tag_value" }, "plan": { "name": "free" } } ], "nextLink": "https://management.azure.com/subscriptions/########-####-####-####-############/resourcegroups?api-version=2015-01-01&$skiptoken=######" }' result_mapper = Azure::ARM::Resources::Models::ResourceListResult.mapper client.deserialize(result_mapper, JSON.load(body), 'result.body') end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems