google-cloud-channel-v1 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +7 -7
- data/README.md +3 -3
- data/lib/google/cloud/channel/v1/cloud_channel_reports_service/client.rb +685 -0
- data/lib/google/cloud/channel/v1/cloud_channel_reports_service/credentials.rb +51 -0
- data/lib/google/cloud/channel/v1/cloud_channel_reports_service/operations.rb +770 -0
- data/lib/google/cloud/channel/v1/cloud_channel_reports_service/paths.rb +67 -0
- data/lib/google/cloud/channel/v1/cloud_channel_reports_service.rb +53 -0
- data/lib/google/cloud/channel/v1/cloud_channel_service/client.rb +4 -3
- data/lib/google/cloud/channel/v1/reports_service_pb.rb +136 -0
- data/lib/google/cloud/channel/v1/reports_service_services_pb.rb +76 -0
- data/lib/google/cloud/channel/v1/service_services_pb.rb +2 -1
- data/lib/google/cloud/channel/v1/version.rb +1 -1
- data/lib/google/cloud/channel/v1.rb +2 -1
- data/proto_docs/google/cloud/channel/v1/reports_service.rb +375 -0
- data/proto_docs/google/cloud/channel/v1/service.rb +2 -2
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/type/datetime.rb +99 -0
- metadata +13 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed67a0064a272c846aaa0d325254b42e0d8648a45a114c1180d0396fb8cc761f
|
4
|
+
data.tar.gz: ba8d5174f4d62b579cb0de9411b863ea704f5312e0014158b6826f3504bd11bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4b2513f59cc4278935b4ea6543b644033d2bc1cb533fffd1c197293586f0d66a566f64e3126fd60205073391f5455b676281c19ff478a1948fe7f077f5de839
|
7
|
+
data.tar.gz: 8aaa233c325f2b2724d3bf07b5593193b6b10a9e0f69ecb6d0a1e7f5358e21e1095489a50e7f05295189dfec77a00ab83f1392540e9e834e3ed20c1063a3f667
|
data/AUTHENTICATION.md
CHANGED
@@ -27,7 +27,7 @@ export CHANNEL_CREDENTIALS=path/to/keyfile.json
|
|
27
27
|
```ruby
|
28
28
|
require "google/cloud/channel/v1"
|
29
29
|
|
30
|
-
client = ::Google::Cloud::Channel::V1::
|
30
|
+
client = ::Google::Cloud::Channel::V1::CloudChannelReportsService::Client.new
|
31
31
|
```
|
32
32
|
|
33
33
|
## Credential Lookup
|
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
|
|
64
64
|
|
65
65
|
The environment variables that google-cloud-channel-v1
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
|
-
{::Google::Cloud::Channel::V1::
|
67
|
+
{::Google::Cloud::Channel::V1::CloudChannelReportsService::Credentials}):
|
68
68
|
|
69
69
|
* `CHANNEL_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
70
|
* `CHANNEL_KEYFILE` - Path to JSON file, or JSON contents
|
@@ -77,7 +77,7 @@ require "google/cloud/channel/v1"
|
|
77
77
|
|
78
78
|
ENV["CHANNEL_CREDENTIALS"] = "path/to/keyfile.json"
|
79
79
|
|
80
|
-
client = ::Google::Cloud::Channel::V1::
|
80
|
+
client = ::Google::Cloud::Channel::V1::CloudChannelReportsService::Client.new
|
81
81
|
```
|
82
82
|
|
83
83
|
### Configuration
|
@@ -88,7 +88,7 @@ it in an environment variable. Either on an individual client initialization:
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/channel/v1"
|
90
90
|
|
91
|
-
client = ::Google::Cloud::Channel::V1::
|
91
|
+
client = ::Google::Cloud::Channel::V1::CloudChannelReportsService::Client.new do |config|
|
92
92
|
config.credentials = "path/to/keyfile.json"
|
93
93
|
end
|
94
94
|
```
|
@@ -98,11 +98,11 @@ Or globally for all clients:
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/channel/v1"
|
100
100
|
|
101
|
-
::Google::Cloud::Channel::V1::
|
101
|
+
::Google::Cloud::Channel::V1::CloudChannelReportsService::Client.configure do |config|
|
102
102
|
config.credentials = "path/to/keyfile.json"
|
103
103
|
end
|
104
104
|
|
105
|
-
client = ::Google::Cloud::Channel::V1::
|
105
|
+
client = ::Google::Cloud::Channel::V1::CloudChannelReportsService::Client.new
|
106
106
|
```
|
107
107
|
|
108
108
|
### Cloud SDK
|
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -32,9 +32,9 @@ In order to use this library, you first need to go through the following steps:
|
|
32
32
|
```ruby
|
33
33
|
require "google/cloud/channel/v1"
|
34
34
|
|
35
|
-
client = ::Google::Cloud::Channel::V1::
|
36
|
-
request = ::Google::Cloud::Channel::V1::
|
37
|
-
response = client.
|
35
|
+
client = ::Google::Cloud::Channel::V1::CloudChannelReportsService::Client.new
|
36
|
+
request = ::Google::Cloud::Channel::V1::RunReportJobRequest.new # (request fields as keyword arguments...)
|
37
|
+
response = client.run_report_job request
|
38
38
|
```
|
39
39
|
|
40
40
|
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-channel-v1/latest)
|