test/api_stub/models/resources/resource.rb in far-gem-0.5.1 vs test/api_stub/models/resources/resource.rb in far-gem-0.5.2

- old
+ new

@@ -35,9 +35,26 @@ }] }' result_mapper = Azure::ARM::Resources::Models::ResourceListResult.mapper client.deserialize(result_mapper, Fog::JSON.decode(resources), 'result.body').value end + + def self.list_resources_in_resource_group_response(client) + resources = '{ + "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, Fog::JSON.decode(resources), 'result.body') + end end end end end