google-analytics-admin-v1alpha 0.30.1 → 0.32.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 +31 -21
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/client.rb +61 -151
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/client.rb +61 -151
- data/lib/google/analytics/admin/v1alpha/analytics_admin_service/rest/service_stub.rb +1214 -902
- data/lib/google/analytics/admin/v1alpha/version.rb +1 -1
- data/proto_docs/google/analytics/admin/v1alpha/access_report.rb +24 -0
- data/proto_docs/google/analytics/admin/v1alpha/audience.rb +26 -0
- data/proto_docs/google/analytics/admin/v1alpha/channel_group.rb +12 -0
- data/proto_docs/google/analytics/admin/v1alpha/expanded_data_set.rb +10 -0
- data/proto_docs/google/analytics/admin/v1alpha/resources.rb +56 -0
- data/proto_docs/google/analytics/admin/v1alpha/subproperty_event_filter.rb +10 -0
- data/proto_docs/google/api/client.rb +39 -0
- metadata +6 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1bfd82a295fd9fb593fb7897d14831afcb143fa9d5a15970304725b41cb682e
|
4
|
+
data.tar.gz: 4261ba4f4115ae6e1c7960d37e0e7c70a367a1e48976b7e36a906084ae47c836
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2e213cb3ec7aec92db681975fb77e32b369e22bb0508e94ab6d8e3d065ac45c7fcd1c232a2f7dcfdf2e0a4360348092fee49ebb3c344f428095901e851dc004
|
7
|
+
data.tar.gz: 26d1fcadbd7c35d9da346992ab38020cf59bc91a2f5922499821bda7c1a2dd8c267c5ea5149718b1c2837be16f6c42970d47017146f031972e2703163051c9c8
|
data/README.md
CHANGED
@@ -40,40 +40,50 @@ response = client.get_account request
|
|
40
40
|
View the [Client Library Documentation](https://rubydoc.info/gems/google-analytics-admin-v1alpha)
|
41
41
|
for class and method documentation.
|
42
42
|
|
43
|
-
##
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
43
|
+
## Debug Logging
|
44
|
+
|
45
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
46
|
+
your application's integration with the API. When logging is activated, key
|
47
|
+
events such as requests and responses, along with data payloads and metadata
|
48
|
+
such as headers and client configuration, are logged to the standard error
|
49
|
+
stream.
|
50
|
+
|
51
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
52
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
53
|
+
customers, private keys, or other security data that could be compromising if
|
54
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
55
|
+
the principle of least access. Google also recommends that Client Library Debug
|
56
|
+
Logging be enabled only temporarily during active debugging, and not used
|
57
|
+
permanently in production.
|
58
|
+
|
59
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
60
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
61
|
+
list of client library gem names. This will select the default logging behavior,
|
62
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
63
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
64
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
65
|
+
results in logs appearing alongside your application logs in the
|
66
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
67
|
+
|
68
|
+
You can customize logging by modifying the `logger` configuration when
|
69
|
+
constructing a client object. For example:
|
52
70
|
|
53
71
|
```ruby
|
72
|
+
require "google/analytics/admin/v1alpha"
|
54
73
|
require "logger"
|
55
74
|
|
56
|
-
|
57
|
-
|
58
|
-
def logger
|
59
|
-
LOGGER
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|
63
|
-
# Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
64
|
-
module GRPC
|
65
|
-
extend MyLogger
|
75
|
+
client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config|
|
76
|
+
config.logger = Logger.new "my-app.log"
|
66
77
|
end
|
67
78
|
```
|
68
79
|
|
69
|
-
|
70
80
|
## Google Cloud Samples
|
71
81
|
|
72
82
|
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
73
83
|
|
74
84
|
## Supported Ruby Versions
|
75
85
|
|
76
|
-
This library is supported on Ruby
|
86
|
+
This library is supported on Ruby 3.0+.
|
77
87
|
|
78
88
|
Google provides official support for Ruby versions that are actively supported
|
79
89
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|