Skip to content

Commit

Permalink
added resource memcache instance
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettPowell committed Apr 1, 2021
1 parent 40b2b25 commit 035e22e
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 @@ -936,3 +936,22 @@ def _get_request_args(self):
self._resource_data['name']
),
}

class GcpMemcacheInstance(GoogleAPIResource):

service_name = "memcache"
resource_path = "projects.locations.instances"
version = "v1"

required_resource_data = ['name', 'project_id', 'location']

resource_type = 'memcache.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 035e22e

Please sign in to comment.