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.
- checksums.yaml +4 -4
- data/README.md +30 -20
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/client.rb +1794 -333
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/operations.rb +12 -15
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/paths.rb +42 -0
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/client.rb +1680 -310
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/operations.rb +43 -38
- data/lib/google/cloud/artifact_registry/v1/artifact_registry/rest/service_stub.rb +1106 -223
- data/lib/google/cloud/artifact_registry/v1/version.rb +1 -1
- data/lib/google/devtools/artifactregistry/v1/attachment_pb.rb +52 -0
- data/lib/google/devtools/artifactregistry/v1/file_pb.rb +5 -1
- data/lib/google/devtools/artifactregistry/v1/generic_pb.rb +47 -0
- data/lib/google/devtools/artifactregistry/v1/package_pb.rb +4 -1
- data/lib/google/devtools/artifactregistry/v1/repository_pb.rb +11 -1
- data/lib/google/devtools/artifactregistry/v1/rule_pb.rb +57 -0
- data/lib/google/devtools/artifactregistry/v1/service_pb.rb +3 -1
- data/lib/google/devtools/artifactregistry/v1/service_services_pb.rb +31 -0
- data/lib/google/devtools/artifactregistry/v1/settings_pb.rb +1 -1
- data/lib/google/devtools/artifactregistry/v1/version_pb.rb +4 -1
- data/proto_docs/google/api/client.rb +39 -0
- data/proto_docs/google/devtools/artifactregistry/v1/artifact.rb +4 -4
- data/proto_docs/google/devtools/artifactregistry/v1/attachment.rb +152 -0
- data/proto_docs/google/devtools/artifactregistry/v1/file.rb +80 -7
- data/proto_docs/google/devtools/artifactregistry/v1/generic.rb +48 -0
- data/proto_docs/google/devtools/artifactregistry/v1/package.rb +76 -0
- data/proto_docs/google/devtools/artifactregistry/v1/repository.rb +188 -1
- data/proto_docs/google/devtools/artifactregistry/v1/rule.rb +149 -0
- data/proto_docs/google/devtools/artifactregistry/v1/settings.rb +10 -0
- data/proto_docs/google/devtools/artifactregistry/v1/tag.rb +23 -5
- data/proto_docs/google/devtools/artifactregistry/v1/version.rb +74 -1
- data/proto_docs/google/longrunning/operations.rb +19 -14
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea13e6d9c4db6ac794635a61e8eddfed97d23e45d657b0865f35975727c1cc11
|
4
|
+
data.tar.gz: c5a258f59648a7712e8570c1b20dac5d82f039033429521be236bb37dd789ae8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
##
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
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
|
-
|
60
|
-
|
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).
|