From e919843ea5ee82c19e3a6de42be2efcbad98f2b6 Mon Sep 17 00:00:00 2001 From: Brett Powell Date: Wed, 31 Mar 2021 11:50:46 -0500 Subject: [PATCH] added new resource --- rpe/resources/gcp.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/rpe/resources/gcp.py b/rpe/resources/gcp.py index 0f7165f..cf05ca9 100644 --- a/rpe/resources/gcp.py +++ b/rpe/resources/gcp.py @@ -917,3 +917,22 @@ def _get_request_args(self): 'location': self._resource_data['location'], 'view': 'JOB_VIEW_DESCRIPTION' } + +class GcpMemorystoreRedis(GoogleAPIResource): + + service_name = "redis" + resource_path = "projects.locations.instances" + version = "v1" + + required_resource_data = ['name', 'project_id', 'location'] + + resource_type = 'redis.googleapis.com/Instance' + + def _get_request_args(self): + return { + 'name': 'projects/{}/locations/{}/instances/{}'.format( + self._resource_data['project_id'], + self._resource_data['location'], + self._resource_data['name'] + ), + }