// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto3";

package google.cloud.oracledatabase.v1;

import "google/api/field_behavior.proto";
import "google/api/resource.proto";

option csharp_namespace = "Google.Cloud.OracleDatabase.V1";
option go_package = "cloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasepb";
option java_multiple_files = true;
option java_outer_classname = "GoldengateDeploymentEnvironmentProto";
option java_package = "com.google.cloud.oracledatabase.v1";
option php_namespace = "Google\\Cloud\\OracleDatabase\\V1";
option ruby_package = "Google::Cloud::OracleDatabase::V1";

// Details of the Goldengate Deployment Environment resource.
message GoldengateDeploymentEnvironment {
  option (google.api.resource) = {
    type: "oracledatabase.googleapis.com/GoldengateDeploymentEnvironment"
    pattern: "projects/{project}/locations/{location}/goldengateDeploymentEnvironments/{goldengate_deployment_environment}"
    plural: "goldengateDeploymentEnvironments"
    singular: "goldengateDeploymentEnvironment"
  };

  // Deployment category of the Goldengate Deployment resource.
  enum DeploymentCategory {
    // Default unspecified value.
    DEPLOYMENT_CATEGORY_UNSPECIFIED = 0;

    // Goldengate Deployment Environment category is DATA_REPLICATION_CATEGORY.
    DATA_REPLICATION_CATEGORY = 1;

    // Goldengate Deployment Environment category is DATA_TRANSFORMS_CATEGORY.
    DATA_TRANSFORMS_CATEGORY = 2;
  }

  // The environment type of the Goldengate Deployment Environment resource.
  enum DeploymentEnvironmentType {
    // Default unspecified value.
    DEPLOYMENT_ENVIRONMENT_TYPE_UNSPECIFIED = 0;

    // Goldengate Deployment Environment type is PRODUCTION.
    PRODUCTION = 1;

    // Goldengate Deployment Environment type is DEVELOPMENT_OR_TESTING.
    DEVELOPMENT_OR_TESTING = 2;
  }

  // Identifier. The name of the Goldengate Deployment Environment resource with
  // the format:
  // projects/{project}/locations/{location}/goldengateDeploymentEnvironments/{goldengate_deployment_environment}
  string name = 1 [(google.api.field_behavior) = IDENTIFIER];

  // Output only. The category of the Goldengate Deployment Environment
  // resource.
  DeploymentCategory category = 2 [(google.api.field_behavior) = OUTPUT_ONLY];

  // The display name of the Goldengate Deployment Environment resource.
  string display_name = 3;

  // Output only. The default CPU core count of the Goldengate Deployment
  // Environment resource.
  int32 default_cpu_core_count = 4 [(google.api.field_behavior) = OUTPUT_ONLY];

  // Output only. The environment type of the Goldengate Deployment Environment
  // resource.
  DeploymentEnvironmentType environment_type = 5
      [(google.api.field_behavior) = OUTPUT_ONLY];

  // Output only. Whether auto scaling is enabled by default for the Goldengate
  // Deployment Environment resource.
  bool auto_scaling_enabled = 6 [(google.api.field_behavior) = OUTPUT_ONLY];

  // Output only. The max CPU core count of the Goldengate Deployment
  // Environment resource.
  int32 max_cpu_core_count = 7 [(google.api.field_behavior) = OUTPUT_ONLY];

  // Output only. The memory per CPU core in GBs of the Goldengate Deployment
  // Environment resource.
  int32 memory_gb_per_cpu_core = 8 [(google.api.field_behavior) = OUTPUT_ONLY];

  // Output only. The min CPU core count of the Goldengate Deployment
  // Environment resource.
  int32 min_cpu_core_count = 9 [(google.api.field_behavior) = OUTPUT_ONLY];

  // Output only. The network bandwidth per CPU core in Gbps of the Goldengate
  // Deployment Environment resource.
  int32 network_bandwidth_gbps_per_cpu_core = 10
      [(google.api.field_behavior) = OUTPUT_ONLY];

  // Output only. The storage usage limit per CPU core in GBs of the Goldengate
  // Deployment Environment resource.
  int32 storage_usage_limit_gb_per_cpu_core = 11
      [(google.api.field_behavior) = OUTPUT_ONLY];
}

// Message for listing GoldengateDeploymentEnvironments.
message ListGoldengateDeploymentEnvironmentsRequest {
  // Required. The parent, which owns this collection of
  // GoldengateDeploymentEnvironments. Format:
  // projects/{project}/locations/{location}
  string parent = 1 [
    (google.api.field_behavior) = REQUIRED,
    (google.api.resource_reference) = {
      child_type: "oracledatabase.googleapis.com/GoldengateDeploymentEnvironment"
    }
  ];

  // Optional. The maximum number of items to return.
  // If unspecified, at most 50 deployment environments will be returned.
  // The maximum value is 1000; values above 1000 will be coerced to 1000.
  int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];

  // Optional. A token identifying a page of results the server should return.
  string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
}

// Message for response to listing GoldengateDeploymentEnvironments
message ListGoldengateDeploymentEnvironmentsResponse {
  // The list of GoldengateDeploymentEnvironment
  repeated GoldengateDeploymentEnvironment goldengate_deployment_environments =
      1;

  // A token identifying a page of results the server should return.
  // If this field is empty, there are no subsequent pages.
  string next_page_token = 2;

  // Unordered list. Locations that could not be reached.
  repeated string unreachable = 3
      [(google.api.field_behavior) = UNORDERED_LIST];
}
