google-cloud-artifact_registry-v1 1.0.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +30 -20
  3. data/lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb +1794 -333
  4. data/lib/google/cloud/artifact_registry/v1/artifact_registry/operations.rb +12 -15
  5. data/lib/google/cloud/artifact_registry/v1/artifact_registry/paths.rb +42 -0
  6. data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/client.rb +1680 -310
  7. data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/operations.rb +43 -38
  8. data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/service_stub.rb +1106 -223
  9. data/lib/google/cloud/artifact_registry/v1/version.rb +1 -1
  10. data/lib/google/devtools/artifactregistry/v1/attachment_pb.rb +52 -0
  11. data/lib/google/devtools/artifactregistry/v1/file_pb.rb +5 -1
  12. data/lib/google/devtools/artifactregistry/v1/generic_pb.rb +47 -0
  13. data/lib/google/devtools/artifactregistry/v1/package_pb.rb +4 -1
  14. data/lib/google/devtools/artifactregistry/v1/repository_pb.rb +11 -1
  15. data/lib/google/devtools/artifactregistry/v1/rule_pb.rb +57 -0
  16. data/lib/google/devtools/artifactregistry/v1/service_pb.rb +3 -1
  17. data/lib/google/devtools/artifactregistry/v1/service_services_pb.rb +31 -0
  18. data/lib/google/devtools/artifactregistry/v1/settings_pb.rb +1 -1
  19. data/lib/google/devtools/artifactregistry/v1/version_pb.rb +4 -1
  20. data/proto_docs/google/api/client.rb +39 -0
  21. data/proto_docs/google/devtools/artifactregistry/v1/artifact.rb +4 -4
  22. data/proto_docs/google/devtools/artifactregistry/v1/attachment.rb +152 -0
  23. data/proto_docs/google/devtools/artifactregistry/v1/file.rb +80 -7
  24. data/proto_docs/google/devtools/artifactregistry/v1/generic.rb +48 -0
  25. data/proto_docs/google/devtools/artifactregistry/v1/package.rb +76 -0
  26. data/proto_docs/google/devtools/artifactregistry/v1/repository.rb +188 -1
  27. data/proto_docs/google/devtools/artifactregistry/v1/rule.rb +149 -0
  28. data/proto_docs/google/devtools/artifactregistry/v1/settings.rb +10 -0
  29. data/proto_docs/google/devtools/artifactregistry/v1/tag.rb +23 -5
  30. data/proto_docs/google/devtools/artifactregistry/v1/version.rb +74 -1
  31. data/proto_docs/google/longrunning/operations.rb +19 -14
  32. metadata +11 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e67cbfe1792d075e26d0649f40e6dfdf27cf7229df0a7f6f813a0b524d326ae5
4
- data.tar.gz: 10081695247e230a7c760379c8fd3037d6b50f2b2452410c3e2b84689bc7488c
3
+ metadata.gz: ea13e6d9c4db6ac794635a61e8eddfed97d23e45d657b0865f35975727c1cc11
4
+ data.tar.gz: c5a258f59648a7712e8570c1b20dac5d82f039033429521be236bb37dd789ae8
5
5
  SHA512:
6
- metadata.gz: 356d0fbd728b35eec1497efbd2622fff4e3ddceb8337018bbbd15ad564abba077121100587e0869e5ee1c8fb479dfe36f0a6ebce2d5fa99828af6b30b7adf8b2
7
- data.tar.gz: 2222be1b894237b0418a47b104238e291a7d00fcf76783867c2cfd5261736da86f415cba48be42f2b94d56cd94824ee8016c4214e78f96bcb172385cb5d0a503
6
+ metadata.gz: 5ce4df12858f0c12f76b62e37872483a425e933096f2907bcee4ae6afcea4715b8b75e27f5e007f46eddf7910e96d1aca7289f5db80dfa83c118f5c7be83b125
7
+ data.tar.gz: 245e49065f7c69e35e605a8e91e88cb4793e7af819730c9cc3118e52f6dfc3397056ee5766d4d6ee21e81cfc1861a926f370baf731b3fffb4045c8b462ca1cec
data/README.md CHANGED
@@ -43,33 +43,43 @@ for class and method documentation.
43
43
  See also the [Product Documentation](https://cloud.google.com/artifact-registry/)
44
44
  for general usage information.
45
45
 
46
- ## Enabling Logging
47
-
48
- To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
- that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
- and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
-
54
- Configuring a Ruby stdlib logger:
46
+ ## Debug Logging
47
+
48
+ This library comes with opt-in Debug Logging that can help you troubleshoot
49
+ your application's integration with the API. When logging is activated, key
50
+ events such as requests and responses, along with data payloads and metadata
51
+ such as headers and client configuration, are logged to the standard error
52
+ stream.
53
+
54
+ **WARNING:** Client Library Debug Logging includes your data payloads in
55
+ plaintext, which could include sensitive data such as PII for yourself or your
56
+ customers, private keys, or other security data that could be compromising if
57
+ leaked. Always practice good data hygiene with your application logs, and follow
58
+ the principle of least access. Google also recommends that Client Library Debug
59
+ Logging be enabled only temporarily during active debugging, and not used
60
+ permanently in production.
61
+
62
+ To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
63
+ to the value `all`. Alternatively, you can set the value to a comma-delimited
64
+ list of client library gem names. This will select the default logging behavior,
65
+ which writes logs to the standard error stream. On a local workstation, this may
66
+ result in logs appearing on the console. When running on a Google Cloud hosting
67
+ service such as [Google Cloud Run](https://cloud.google.com/run), this generally
68
+ results in logs appearing alongside your application logs in the
69
+ [Google Cloud Logging](https://cloud.google.com/logging/) service.
70
+
71
+ You can customize logging by modifying the `logger` configuration when
72
+ constructing a client object. For example:
55
73
 
56
74
  ```ruby
75
+ require "google/cloud/artifact_registry/v1"
57
76
  require "logger"
58
77
 
59
- module MyLogger
60
- LOGGER = Logger.new $stderr, level: Logger::WARN
61
- def logger
62
- LOGGER
63
- end
64
- end
65
-
66
- # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
67
- module GRPC
68
- extend MyLogger
78
+ client = ::Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Client.new do |config|
79
+ config.logger = Logger.new "my-app.log"
69
80
  end
70
81
  ```
71
82
 
72
-
73
83
  ## Google Cloud Samples
74
84
 
75
85
  To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).