type: google.api.Service
config_version: 3
name: redis.googleapis.com
title: Google Cloud Memorystore for Redis API

apis:
  - name: google.cloud.redis.v1.CloudRedis

types:
  - name: google.cloud.redis.v1.LocationMetadata
  - name: google.cloud.redis.v1.OperationMetadata
  - name: google.cloud.redis.v1.ZoneMetadata

documentation:
  summary: Creates and manages Redis instances on the Google Cloud Platform.

backend:
  rules:
    - selector: google.longrunning.Operations.ListOperations
      deadline: 60.0
    - selector: google.longrunning.Operations.GetOperation
      deadline: 60.0
    - selector: google.longrunning.Operations.DeleteOperation
      deadline: 60.0
    - selector: google.longrunning.Operations.CancelOperation
      deadline: 60.0
    - selector: google.longrunning.Operations.WaitOperation
      deadline: 60.0
    - selector: google.cloud.redis.v1.CloudRedis.ListInstances
      deadline: 60.0
    - selector: google.cloud.redis.v1.CloudRedis.GetInstance
      deadline: 60.0
    - selector: google.cloud.redis.v1.CloudRedis.CreateInstance
      deadline: 60.0
    - selector: google.cloud.redis.v1.CloudRedis.UpdateInstance
      deadline: 60.0
    - selector: google.cloud.redis.v1.CloudRedis.FailoverInstance
      deadline: 60.0
    - selector: google.cloud.redis.v1.CloudRedis.DeleteInstance
      deadline: 60.0

http:
  rules:
  - selector: google.longrunning.Operations.ListOperations
    get: '/v1/{name=projects/*/locations/*}/operations'

  - selector: google.longrunning.Operations.GetOperation
    get: '/v1/{name=projects/*/locations/*/operations/*}'

  - selector: google.longrunning.Operations.DeleteOperation
    delete: '/v1/{name=projects/*/locations/*/operations/*}'

  - selector: google.longrunning.Operations.CancelOperation
    post: '/v1/{name=projects/*/locations/*/operations/*}:cancel'

authentication:
  rules:
    - selector: 'google.cloud.redis.v1.CloudRedis.*'
      oauth:
        canonical_scopes: |-
          https://www.googleapis.com/auth/cloud-platform
    - selector: 'google.longrunning.Operations.*'
      oauth:
        canonical_scopes: |-
          https://www.googleapis.com/auth/cloud-platform
