google-cloud-functions-v1 0.3.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/functions/v1/cloud_functions_service/client.rb +314 -97
- data/lib/google/cloud/functions/v1/cloud_functions_service/operations.rb +149 -37
- data/lib/google/cloud/functions/v1/cloud_functions_service/paths.rb +40 -0
- data/lib/google/cloud/functions/v1/functions_pb.rb +37 -2
- data/lib/google/cloud/functions/v1/operations_pb.rb +4 -2
- data/lib/google/cloud/functions/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/cloud/functions/v1/functions.rb +208 -5
- data/proto_docs/google/cloud/functions/v1/operations.rb +10 -1
- data/proto_docs/google/type/expr.rb +35 -12
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d6e2dd300e2a69aacd17e83e836edabd70ac59e121760509941cc6eb96bd91e
|
4
|
+
data.tar.gz: b0af785d3a9c0a03b2011a63cf6fe7690d1bd859a49a80ab2b67329b97380c32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd5f9fdcb00aff9dd799ecd0891b5d412aa952b5319bc7092636c0d2fb46622f2cad93689d521243eaf23a516e9b2add9fd97869335e66378fb618c90171be91
|
7
|
+
data.tar.gz: d96488272340992dd1bc2d3471fb5bf788f89278817405f656a3666d28ef83c971a899d533d73514a2ba8c68f4ca0a38011655a09db228ba1cbde1c5c1527234
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-functions-v1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::Functions::V1::CloudFunctionsService::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `FUNCTIONS_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `FUNCTIONS_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/functions/v1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::Functions::V1::CloudFunctionsService::Client.new
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/functions/v1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::Functions::V1::CloudFunctionsService::Client.new do |c
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/functions/v1"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/functions/v1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::Functions::V1::CloudFunctionsService::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::Functions::V1::ListFunctionsRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.list_functions request
|
38
38
|
```
|
39
39
|
|