vendor_settings.proto 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.run.v2;
  16. import "google/api/resource.proto";
  17. option go_package = "google.golang.org/genproto/googleapis/cloud/run/v2;run";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "VendorSettingsProto";
  20. option java_package = "com.google.cloud.run.v2";
  21. // VPC Access settings. For more information on creating a VPC Connector, visit
  22. // https://cloud.google.com/vpc/docs/configure-serverless-vpc-access For
  23. // information on how to configure Cloud Run with an existing VPC Connector,
  24. // visit https://cloud.google.com/run/docs/configuring/connecting-vpc
  25. message VpcAccess {
  26. // Egress options for VPC access.
  27. enum VpcEgress {
  28. // Unspecified
  29. VPC_EGRESS_UNSPECIFIED = 0;
  30. // All outbound traffic is routed through the VPC connector.
  31. ALL_TRAFFIC = 1;
  32. // Only private IP ranges are routed through the VPC connector.
  33. PRIVATE_RANGES_ONLY = 2;
  34. }
  35. // VPC Access connector name.
  36. // Format: projects/{project}/locations/{location}/connectors/{connector},
  37. // where {project} can be project id or number.
  38. string connector = 1 [(google.api.resource_reference) = {
  39. type: "vpcaccess.googleapis.com/Connector"
  40. }];
  41. // Traffic VPC egress settings.
  42. VpcEgress egress = 2;
  43. }
  44. // Settings for Binary Authorization feature.
  45. message BinaryAuthorization {
  46. oneof binauthz_method {
  47. // If True, indicates to use the default project's binary authorization
  48. // policy. If False, binary authorization will be disabled.
  49. bool use_default = 1;
  50. }
  51. // If present, indicates to use Breakglass using this justification.
  52. // If use_default is False, then it must be empty.
  53. // For more information on breakglass, see
  54. // https://cloud.google.com/binary-authorization/docs/using-breakglass
  55. string breakglass_justification = 2;
  56. }
  57. // Settings for revision-level scaling settings.
  58. message RevisionScaling {
  59. // Minimum number of serving instances that this resource should have.
  60. int32 min_instance_count = 1;
  61. // Maximum number of serving instances that this resource should have.
  62. int32 max_instance_count = 2;
  63. }
  64. // Allowed ingress traffic for the Container.
  65. enum IngressTraffic {
  66. // Unspecified
  67. INGRESS_TRAFFIC_UNSPECIFIED = 0;
  68. // All inbound traffic is allowed.
  69. INGRESS_TRAFFIC_ALL = 1;
  70. // Only internal traffic is allowed.
  71. INGRESS_TRAFFIC_INTERNAL_ONLY = 2;
  72. // Both internal and Google Cloud Load Balancer traffic is allowed.
  73. INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER = 3;
  74. }
  75. // Alternatives for execution environments.
  76. enum ExecutionEnvironment {
  77. // Unspecified
  78. EXECUTION_ENVIRONMENT_UNSPECIFIED = 0;
  79. // Uses the First Generation environment.
  80. EXECUTION_ENVIRONMENT_GEN1 = 1;
  81. // Uses Second Generation environment.
  82. EXECUTION_ENVIRONMENT_GEN2 = 2;
  83. }