Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Commit

Permalink
added new resource
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettPowell committed Mar 31, 2021
1 parent 04952c7 commit e919843
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions rpe/resources/gcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
),
}

0 comments on commit e919843

Please sign in to comment.