google-cloud-data_catalog-v1 1.1.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +30 -20
  3. data/lib/google/cloud/data_catalog/v1/data_catalog/client.rb +321 -35
  4. data/lib/google/cloud/data_catalog/v1/data_catalog/operations.rb +12 -15
  5. data/lib/google/cloud/data_catalog/v1/data_catalog/rest/client.rb +299 -35
  6. data/lib/google/cloud/data_catalog/v1/data_catalog/rest/operations.rb +43 -38
  7. data/lib/google/cloud/data_catalog/v1/data_catalog/rest/service_stub.rb +484 -205
  8. data/lib/google/cloud/data_catalog/v1/policy_tag_manager/client.rb +30 -14
  9. data/lib/google/cloud/data_catalog/v1/policy_tag_manager/rest/client.rb +30 -14
  10. data/lib/google/cloud/data_catalog/v1/policy_tag_manager/rest/service_stub.rb +118 -80
  11. data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/client.rb +28 -4
  12. data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/rest/client.rb +28 -4
  13. data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/rest/service_stub.rb +38 -20
  14. data/lib/google/cloud/data_catalog/v1/version.rb +1 -1
  15. data/lib/google/cloud/datacatalog/v1/bigquery_pb.rb +1 -1
  16. data/lib/google/cloud/datacatalog/v1/common_pb.rb +1 -1
  17. data/lib/google/cloud/datacatalog/v1/data_source_pb.rb +1 -1
  18. data/lib/google/cloud/datacatalog/v1/datacatalog_pb.rb +8 -1
  19. data/lib/google/cloud/datacatalog/v1/datacatalog_services_pb.rb +13 -0
  20. data/lib/google/cloud/datacatalog/v1/dataplex_spec_pb.rb +1 -1
  21. data/lib/google/cloud/datacatalog/v1/dump_content_pb.rb +1 -1
  22. data/lib/google/cloud/datacatalog/v1/gcs_fileset_spec_pb.rb +1 -1
  23. data/lib/google/cloud/datacatalog/v1/physical_schema_pb.rb +1 -1
  24. data/lib/google/cloud/datacatalog/v1/policytagmanager_pb.rb +1 -1
  25. data/lib/google/cloud/datacatalog/v1/policytagmanagerserialization_pb.rb +1 -1
  26. data/lib/google/cloud/datacatalog/v1/search_pb.rb +1 -1
  27. data/lib/google/cloud/datacatalog/v1/tags_pb.rb +1 -1
  28. data/lib/google/cloud/datacatalog/v1/timestamps_pb.rb +1 -1
  29. data/proto_docs/google/api/client.rb +19 -0
  30. data/proto_docs/google/cloud/datacatalog/v1/datacatalog.rb +110 -2
  31. data/proto_docs/google/cloud/datacatalog/v1/tags.rb +7 -0
  32. data/proto_docs/google/longrunning/operations.rb +19 -14
  33. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0a1e08286cf347edeb16b39bb54f9fd8a9cb261cb0eaef186ae7dba1c817191
4
- data.tar.gz: 20a90e0722f47a9b55930c841f92ba24902abaed4efd5806bc11e48bb06321ae
3
+ metadata.gz: f5fdf2a7b9890e4c91dc7d815cabc2e289c04a959d87873fd163836da072e4bc
4
+ data.tar.gz: 2392a2ca15e105cf99246ad1f2b1e257645c2476fb59c5ddc7def08604899f2e
5
5
  SHA512:
6
- metadata.gz: 0a0377656a130a9aca7c2227947eb4c0863389ed1a164c2db8a53dccae81b6e31e9d617dc448ca4986ef35f5b530ff573a2c3ad9c9d8784c2da2027192c38f78
7
- data.tar.gz: 411aa9037cce27f3103189bcf9788215d575fb5726e90071bcb2449ee4a099e0791683f0129204932dfb083b95139cfdf68af08b1f04bdfe64b5df1865dd5d34
6
+ metadata.gz: 423f3dd072cbff107ab56e48807fcf7fc7dfa4ccac5fdfc3505ee6f4939c71670b943a27a26166ce7121661e5ac40eb1108e84590557739fdedeed1e542e98a6
7
+ data.tar.gz: 05574c10d6eb5944ffcbd6f3927b6d0a4a9a230e2998cd81cc9b4a0fe20881bd8c3f5c5157dc7d6b151ddc8a893807aa4eaec901bf8feafb23208cd95fd7792b
data/README.md CHANGED
@@ -43,33 +43,43 @@ for class and method documentation.
43
43
  See also the [Product Documentation](https://cloud.google.com/data-catalog)
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/data_catalog/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::DataCatalog::V1::DataCatalog::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).