UNPKG

@google-cloud/redis

Version:
1,134 lines (1,133 loc) 160 kB
{ "nested": { "google": { "nested": { "cloud": { "nested": { "redis": { "nested": { "v1": { "options": { "go_package": "cloud.google.com/go/redis/apiv1/redispb;redispb", "java_multiple_files": true, "java_outer_classname": "CloudRedisServiceV1Proto", "java_package": "com.google.cloud.redis.v1" }, "nested": { "CloudRedis": { "options": { "(google.api.default_host)": "redis.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform" }, "methods": { "ListInstances": { "requestType": "ListInstancesRequest", "responseType": "ListInstancesResponse", "options": { "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/instances", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v1/{parent=projects/*/locations/*}/instances" } }, { "(google.api.method_signature)": "parent" } ] }, "GetInstance": { "requestType": "GetInstanceRequest", "responseType": "Instance", "options": { "(google.api.http).get": "/v1/{name=projects/*/locations/*/instances/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v1/{name=projects/*/locations/*/instances/*}" } }, { "(google.api.method_signature)": "name" } ] }, "GetInstanceAuthString": { "requestType": "GetInstanceAuthStringRequest", "responseType": "InstanceAuthString", "options": { "(google.api.http).get": "/v1/{name=projects/*/locations/*/instances/*}/authString", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v1/{name=projects/*/locations/*/instances/*}/authString" } }, { "(google.api.method_signature)": "name" } ] }, "CreateInstance": { "requestType": "CreateInstanceRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/instances", "(google.api.http).body": "instance", "(google.api.method_signature)": "parent,instance_id,instance", "(google.longrunning.operation_info).response_type": "google.cloud.redis.v1.Instance", "(google.longrunning.operation_info).metadata_type": "google.cloud.redis.v1.OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1/{parent=projects/*/locations/*}/instances", "body": "instance" } }, { "(google.api.method_signature)": "parent,instance_id,instance" }, { "(google.longrunning.operation_info)": { "response_type": "google.cloud.redis.v1.Instance", "metadata_type": "google.cloud.redis.v1.OperationMetadata" } } ] }, "UpdateInstance": { "requestType": "UpdateInstanceRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).patch": "/v1/{instance.name=projects/*/locations/*/instances/*}", "(google.api.http).body": "instance", "(google.api.method_signature)": "update_mask,instance", "(google.longrunning.operation_info).response_type": "google.cloud.redis.v1.Instance", "(google.longrunning.operation_info).metadata_type": "google.cloud.redis.v1.OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "patch": "/v1/{instance.name=projects/*/locations/*/instances/*}", "body": "instance" } }, { "(google.api.method_signature)": "update_mask,instance" }, { "(google.longrunning.operation_info)": { "response_type": "google.cloud.redis.v1.Instance", "metadata_type": "google.cloud.redis.v1.OperationMetadata" } } ] }, "UpgradeInstance": { "requestType": "UpgradeInstanceRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).post": "/v1/{name=projects/*/locations/*/instances/*}:upgrade", "(google.api.http).body": "*", "(google.api.method_signature)": "name,redis_version", "(google.longrunning.operation_info).response_type": "google.cloud.redis.v1.Instance", "(google.longrunning.operation_info).metadata_type": "google.cloud.redis.v1.OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1/{name=projects/*/locations/*/instances/*}:upgrade", "body": "*" } }, { "(google.api.method_signature)": "name,redis_version" }, { "(google.longrunning.operation_info)": { "response_type": "google.cloud.redis.v1.Instance", "metadata_type": "google.cloud.redis.v1.OperationMetadata" } } ] }, "ImportInstance": { "requestType": "ImportInstanceRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).post": "/v1/{name=projects/*/locations/*/instances/*}:import", "(google.api.http).body": "*", "(google.api.method_signature)": "name,input_config", "(google.longrunning.operation_info).response_type": "google.cloud.redis.v1.Instance", "(google.longrunning.operation_info).metadata_type": "google.cloud.redis.v1.OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1/{name=projects/*/locations/*/instances/*}:import", "body": "*" } }, { "(google.api.method_signature)": "name,input_config" }, { "(google.longrunning.operation_info)": { "response_type": "google.cloud.redis.v1.Instance", "metadata_type": "google.cloud.redis.v1.OperationMetadata" } } ] }, "ExportInstance": { "requestType": "ExportInstanceRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).post": "/v1/{name=projects/*/locations/*/instances/*}:export", "(google.api.http).body": "*", "(google.api.method_signature)": "name,output_config", "(google.longrunning.operation_info).response_type": "google.cloud.redis.v1.Instance", "(google.longrunning.operation_info).metadata_type": "google.cloud.redis.v1.OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1/{name=projects/*/locations/*/instances/*}:export", "body": "*" } }, { "(google.api.method_signature)": "name,output_config" }, { "(google.longrunning.operation_info)": { "response_type": "google.cloud.redis.v1.Instance", "metadata_type": "google.cloud.redis.v1.OperationMetadata" } } ] }, "FailoverInstance": { "requestType": "FailoverInstanceRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).post": "/v1/{name=projects/*/locations/*/instances/*}:failover", "(google.api.http).body": "*", "(google.api.method_signature)": "name,data_protection_mode", "(google.longrunning.operation_info).response_type": "google.cloud.redis.v1.Instance", "(google.longrunning.operation_info).metadata_type": "google.cloud.redis.v1.OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1/{name=projects/*/locations/*/instances/*}:failover", "body": "*" } }, { "(google.api.method_signature)": "name,data_protection_mode" }, { "(google.longrunning.operation_info)": { "response_type": "google.cloud.redis.v1.Instance", "metadata_type": "google.cloud.redis.v1.OperationMetadata" } } ] }, "DeleteInstance": { "requestType": "DeleteInstanceRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).delete": "/v1/{name=projects/*/locations/*/instances/*}", "(google.api.method_signature)": "name", "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", "(google.longrunning.operation_info).metadata_type": "google.cloud.redis.v1.OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "delete": "/v1/{name=projects/*/locations/*/instances/*}" } }, { "(google.api.method_signature)": "name" }, { "(google.longrunning.operation_info)": { "response_type": "google.protobuf.Empty", "metadata_type": "google.cloud.redis.v1.OperationMetadata" } } ] }, "RescheduleMaintenance": { "requestType": "RescheduleMaintenanceRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).post": "/v1/{name=projects/*/locations/*/instances/*}:rescheduleMaintenance", "(google.api.http).body": "*", "(google.api.method_signature)": "name, reschedule_type, schedule_time", "(google.longrunning.operation_info).response_type": "google.cloud.redis.v1.Instance", "(google.longrunning.operation_info).metadata_type": "google.cloud.redis.v1.OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1/{name=projects/*/locations/*/instances/*}:rescheduleMaintenance", "body": "*" } }, { "(google.api.method_signature)": "name, reschedule_type, schedule_time" }, { "(google.longrunning.operation_info)": { "response_type": "google.cloud.redis.v1.Instance", "metadata_type": "google.cloud.redis.v1.OperationMetadata" } } ] } } }, "NodeInfo": { "fields": { "id": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "zone": { "type": "string", "id": 2, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } } } }, "Instance": { "options": { "(google.api.resource).type": "redis.googleapis.com/Instance", "(google.api.resource).pattern": "projects/{project}/locations/{location}/instances/{instance}" }, "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "displayName": { "type": "string", "id": 2 }, "labels": { "keyType": "string", "type": "string", "id": 3 }, "locationId": { "type": "string", "id": 4, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "alternativeLocationId": { "type": "string", "id": 5, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "redisVersion": { "type": "string", "id": 7, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "reservedIpRange": { "type": "string", "id": 9, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "secondaryIpRange": { "type": "string", "id": 30, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "host": { "type": "string", "id": 10, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "port": { "type": "int32", "id": 11, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "currentLocationId": { "type": "string", "id": 12, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "createTime": { "type": "google.protobuf.Timestamp", "id": 13, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "state": { "type": "State", "id": 14, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "statusMessage": { "type": "string", "id": 15, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "redisConfigs": { "keyType": "string", "type": "string", "id": 16, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "tier": { "type": "Tier", "id": 17, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "memorySizeGb": { "type": "int32", "id": 18, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "authorizedNetwork": { "type": "string", "id": 20, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "persistenceIamIdentity": { "type": "string", "id": 21, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "connectMode": { "type": "ConnectMode", "id": 22, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "authEnabled": { "type": "bool", "id": 23, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "serverCaCerts": { "rule": "repeated", "type": "TlsCertificate", "id": 25, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "transitEncryptionMode": { "type": "TransitEncryptionMode", "id": 26, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "maintenancePolicy": { "type": "MaintenancePolicy", "id": 27, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "maintenanceSchedule": { "type": "MaintenanceSchedule", "id": 28, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "replicaCount": { "type": "int32", "id": 31, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "nodes": { "rule": "repeated", "type": "NodeInfo", "id": 32, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "readEndpoint": { "type": "string", "id": 33, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "readEndpointPort": { "type": "int32", "id": 34, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "readReplicasMode": { "type": "ReadReplicasMode", "id": 35, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "customerManagedKey": { "type": "string", "id": 36, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "persistenceConfig": { "type": "PersistenceConfig", "id": 37, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "suspensionReasons": { "rule": "repeated", "type": "SuspensionReason", "id": 38, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "maintenanceVersion": { "type": "string", "id": 39, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "availableMaintenanceVersions": { "rule": "repeated", "type": "string", "id": 40, "options": { "(google.api.field_behavior)": "OPTIONAL" } } }, "nested": { "State": { "values": { "STATE_UNSPECIFIED": 0, "CREATING": 1, "READY": 2, "UPDATING": 3, "DELETING": 4, "REPAIRING": 5, "MAINTENANCE": 6, "IMPORTING": 8, "FAILING_OVER": 9 } }, "Tier": { "values": { "TIER_UNSPECIFIED": 0, "BASIC": 1, "STANDARD_HA": 3 } }, "ConnectMode": { "values": { "CONNECT_MODE_UNSPECIFIED": 0, "DIRECT_PEERING": 1, "PRIVATE_SERVICE_ACCESS": 2 } }, "TransitEncryptionMode": { "values": { "TRANSIT_ENCRYPTION_MODE_UNSPECIFIED": 0, "SERVER_AUTHENTICATION": 1, "DISABLED": 2 } }, "ReadReplicasMode": { "values": { "READ_REPLICAS_MODE_UNSPECIFIED": 0, "READ_REPLICAS_DISABLED": 1, "READ_REPLICAS_ENABLED": 2 } }, "SuspensionReason": { "values": { "SUSPENSION_REASON_UNSPECIFIED": 0, "CUSTOMER_MANAGED_KEY_ISSUE": 1 } } } }, "PersistenceConfig": { "fields": { "persistenceMode": { "type": "PersistenceMode", "id": 1, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "rdbSnapshotPeriod": { "type": "SnapshotPeriod", "id": 2, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "rdbNextSnapshotTime": { "type": "google.protobuf.Timestamp", "id": 4, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "rdbSnapshotStartTime": { "type": "google.protobuf.Timestamp", "id": 5, "options": { "(google.api.field_behavior)": "OPTIONAL" } } }, "nested": { "PersistenceMode": { "values": { "PERSISTENCE_MODE_UNSPECIFIED": 0, "DISABLED": 1, "RDB": 2 } }, "SnapshotPeriod": { "values": { "SNAPSHOT_PERIOD_UNSPECIFIED": 0, "ONE_HOUR": 3, "SIX_HOURS": 4, "TWELVE_HOURS": 5, "TWENTY_FOUR_HOURS": 6 } } } }, "RescheduleMaintenanceRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "redis.googleapis.com/Instance" } }, "rescheduleType": { "type": "RescheduleType", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "scheduleTime": { "type": "google.protobuf.Timestamp", "id": 3, "options": { "(google.api.field_behavior)": "OPTIONAL" } } }, "nested": { "RescheduleType": { "values": { "RESCHEDULE_TYPE_UNSPECIFIED": 0, "IMMEDIATE": 1, "NEXT_AVAILABLE_WINDOW": 2, "SPECIFIC_TIME": 3 } } } }, "MaintenancePolicy": { "fields": { "createTime": { "type": "google.protobuf.Timestamp", "id": 1, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "updateTime": { "type": "google.protobuf.Timestamp", "id": 2, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "description": { "type": "string", "id": 3, "options": { "(google.api.field_behavior)": "OPTIONAL" } }, "weeklyMaintenanceWindow": { "rule": "repeated", "type": "WeeklyMaintenanceWindow", "id": 4, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, "WeeklyMaintenanceWindow": { "fields": { "day": { "type": "google.type.DayOfWeek", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "startTime": { "type": "google.type.TimeOfDay", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "duration": { "type": "google.protobuf.Duration", "id": 3, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } } } }, "MaintenanceSchedule": { "fields": { "startTime": { "type": "google.protobuf.Timestamp", "id": 1, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "endTime": { "type": "google.protobuf.Timestamp", "id": 2, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "canReschedule": { "type": "bool", "id": 3, "options": { "deprecated": true } }, "scheduleDeadlineTime": { "type": "google.protobuf.Timestamp", "id": 5, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } } } }, "ListInstancesRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, "pageSize": { "type": "int32", "id": 2 }, "pageToken": { "type": "string", "id": 3 } } }, "ListInstancesResponse": { "fields": { "instances": { "rule": "repeated", "type": "Instance", "id": 1 }, "nextPageToken": { "type": "string", "id": 2 }, "unreachable": { "rule": "repeated", "type": "string", "id": 3 } } }, "GetInstanceRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "redis.googleapis.com/Instance" } } } }, "GetInstanceAuthStringRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "redis.googleapis.com/Instance" } } } }, "InstanceAuthString": { "fields": { "authString": { "type": "string", "id": 1 } } }, "CreateInstanceRequest": { "fields": { "parent": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, "instanceId": { "type": "string", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "instance": { "type": "Instance", "id": 3, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "UpdateInstanceRequest": { "fields": { "updateMask": { "type": "google.protobuf.FieldMask", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "instance": { "type": "Instance", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "UpgradeInstanceRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "redis.googleapis.com/Instance" } }, "redisVersion": { "type": "string", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "DeleteInstanceRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "redis.googleapis.com/Instance" } } } }, "GcsSource": { "fields": { "uri": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "InputConfig": { "oneofs": { "source": { "oneof": [ "gcsSource" ] } }, "fields": { "gcsSource": { "type": "GcsSource", "id": 1 } } }, "ImportInstanceRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "inputConfig": { "type": "InputConfig", "id": 3, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "GcsDestination": { "fields": { "uri": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "OutputConfig": { "oneofs": { "destination": { "oneof": [ "gcsDestination" ] } }, "fields": { "gcsDestination": { "type": "GcsDestination", "id": 1 } } }, "ExportInstanceRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "outputConfig": { "type": "OutputConfig", "id": 3, "options": { "(google.api.field_behavior)": "REQUIRED" } } } }, "FailoverInstanceRequest": { "fields": { "name": { "type": "string", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED", "(google.api.resource_reference).type": "redis.googleapis.com/Instance" } }, "dataProtectionMode": { "type": "DataProtectionMode", "id": 2, "options": { "(google.api.field_behavior)": "OPTIONAL" } } }, "nested": { "DataProtectionMode": { "values": { "DATA_PROTECTION_MODE_UNSPECIFIED": 0, "LIMITED_DATA_LOSS": 1, "FORCE_DATA_LOSS": 2 } } } }, "OperationMetadata": { "fields": { "createTime": { "type": "google.protobuf.Timestamp", "id": 1 }, "endTime": { "type": "google.protobuf.Timestamp", "id": 2 }, "target": { "type": "string", "id": 3 }, "verb": { "type": "string", "id": 4 }, "statusDetail": { "type": "string", "id": 5 }, "cancelRequested": { "type": "bool", "id": 6 }, "apiVersion": { "type": "string", "id": 7 } } }, "LocationMetadata": { "fields": { "availableZones": { "keyType": "string", "type": "ZoneMetadata", "id": 1, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } } } }, "ZoneMetadata": { "fields": {} }, "TlsCertificate": { "fields": { "serialNumber": { "type": "string", "id": 1 }, "cert": { "type": "string", "id": 2 }, "createTime": { "type": "google.protobuf.Timestamp", "id": 3, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "expireTime": { "type": "google.protobuf.Timestamp", "id": 4, "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } }, "sha1Fingerprint": { "type": "string", "id": 5 } }