yum_artifact.proto 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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.devtools.artifactregistry.v1beta2;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/rpc/status.proto";
  19. option csharp_namespace = "Google.Cloud.ArtifactRegistry.V1Beta2";
  20. option go_package = "google.golang.org/genproto/googleapis/devtools/artifactregistry/v1beta2;artifactregistry";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "YumArtifactProto";
  23. option java_package = "com.google.devtools.artifactregistry.v1beta2";
  24. option php_namespace = "Google\\Cloud\\ArtifactRegistry\\V1beta2";
  25. option ruby_package = "Google::Cloud::ArtifactRegistry::V1beta2";
  26. // A detailed representation of a Yum artifact.
  27. message YumArtifact {
  28. option (google.api.resource) = {
  29. type: "artifactregistry.googleapis.com/YumArtifact"
  30. pattern: "projects/{project}/locations/{location}/repositories/{repository}/yumArtifacts/{yum_artifact}"
  31. };
  32. // Package type is either binary or source.
  33. enum PackageType {
  34. // Package type is not specified.
  35. PACKAGE_TYPE_UNSPECIFIED = 0;
  36. // Binary package (.rpm).
  37. BINARY = 1;
  38. // Source package (.srpm).
  39. SOURCE = 2;
  40. }
  41. // Output only. The Artifact Registry resource name of the artifact.
  42. string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
  43. // Output only. The yum package name of the artifact.
  44. string package_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
  45. // Output only. An artifact is a binary or source package.
  46. PackageType package_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
  47. // Output only. Operating system architecture of the artifact.
  48. string architecture = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
  49. }
  50. // Google Cloud Storage location where the artifacts currently reside.
  51. message ImportYumArtifactsGcsSource {
  52. // Cloud Storage paths URI (e.g., gs://my_bucket//my_object).
  53. repeated string uris = 1;
  54. // Supports URI wildcards for matching multiple objects from a single URI.
  55. bool use_wildcards = 2;
  56. }
  57. // The request to import new yum artifacts.
  58. message ImportYumArtifactsRequest {
  59. // The source location of the package binaries.
  60. oneof source {
  61. // Google Cloud Storage location where input content is located.
  62. ImportYumArtifactsGcsSource gcs_source = 2;
  63. }
  64. // The name of the parent resource where the artifacts will be imported.
  65. string parent = 1;
  66. }
  67. // Error information explaining why a package was not imported.
  68. message ImportYumArtifactsErrorInfo {
  69. // The source that was not imported.
  70. oneof source {
  71. // Google Cloud Storage location requested.
  72. ImportYumArtifactsGcsSource gcs_source = 1;
  73. }
  74. // The detailed error status.
  75. google.rpc.Status error = 2;
  76. }
  77. // The response message from importing YUM artifacts.
  78. message ImportYumArtifactsResponse {
  79. // The yum artifacts imported.
  80. repeated YumArtifact yum_artifacts = 1;
  81. // Detailed error info for artifacts that were not imported.
  82. repeated ImportYumArtifactsErrorInfo errors = 2;
  83. }
  84. // The operation metadata for importing artifacts.
  85. message ImportYumArtifactsMetadata {
  86. }