google-apis-generator 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51dd91af45cc93fc6815867ce0701daed0c7a3fc209bf1854cdbaf3aa4879ab5
|
4
|
+
data.tar.gz: c41d83a4d61d7bac2d318b1b49489456dd701c87d36e8cc0d5de74d10be2df87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4440fd7670109271f71209dd21d8d7b6e4ba1f8d5718c4645264c4b4a6bf4b286de2f8c90861036f20b789ad881eeac321e810a666616f9c6f2012ea85f0c372
|
7
|
+
data.tar.gz: 161ddd70cb0f79f899c5bf8fa13f278529aa4caba2f1793a78077f2fc2898a183cd7a9b0962e686d258a900fab6292063a90ad46bc16e351bf2bda5e6f381409
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
+
### 0.10.0 (2022-09-20)
|
4
|
+
|
5
|
+
#### Features
|
6
|
+
|
7
|
+
* Add storage upload to move away from unified upload protocol ([#11508](https://github.com/googleapis/google-api-ruby-client/issues/11508))
|
8
|
+
* Update core dependency to at least 0.7.2 ([#11660](https://github.com/googleapis/google-api-ruby-client/issues/11660))
|
9
|
+
* Update core dependency to at least 0.9.0 ([#11808](https://github.com/googleapis/google-api-ruby-client/issues/11808))
|
10
|
+
|
3
11
|
### 0.9.0 (2022-07-04)
|
4
12
|
|
5
13
|
#### Features
|
@@ -50,7 +50,15 @@
|
|
50
50
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
51
51
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
52
52
|
def <%= api_method.generated_name %>(<% for param in api_method.required_parameters %><%= param.generated_name %>, <% end %><% if api_method.request %><%= api.schemas[api_method.request._ref].generated_name %>_object = nil, <% end %><% for param in api_method.optional_query_parameters %><%= param.generated_name %>: nil, <% end %><% for param in api.parameters.values.reject {|p| p.name == 'key'} %><%= param.generated_name %>: nil, <% end %><% if api_method.supports_media_upload? %>upload_source: nil, content_type: nil, <% elsif api_method.supports_media_download? %>download_dest: nil, <% end %>options: nil, &block)
|
53
|
-
<% if api_method.supports_media_upload?
|
53
|
+
<% if api_method.supports_media_upload? && api.name == 'Storage' %>
|
54
|
+
if upload_source.nil?
|
55
|
+
command = make_simple_command(:<%= api_method.http_method.downcase %>, '<%= api_method.path %>', options)
|
56
|
+
else
|
57
|
+
command = make_storage_upload_command(:<%= api_method.http_method.downcase %>, '<%= api_method.path %>', options)
|
58
|
+
command.upload_source = upload_source
|
59
|
+
command.upload_content_type = content_type
|
60
|
+
end
|
61
|
+
<% elsif api_method.supports_media_upload? -%>
|
54
62
|
if upload_source.nil?
|
55
63
|
command = make_simple_command(:<%= api_method.http_method.downcase %>, '<%= api_method.path %>', options)
|
56
64
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -44,7 +44,7 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.9.0
|
48
48
|
- - "<"
|
49
49
|
- !ruby/object:Gem::Version
|
50
50
|
version: 2.a
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
requirements:
|
55
55
|
- - ">="
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version:
|
57
|
+
version: 0.9.0
|
58
58
|
- - "<"
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: 2.a
|
@@ -138,7 +138,7 @@ licenses:
|
|
138
138
|
metadata:
|
139
139
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
140
140
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/google-apis-generator/CHANGELOG.md
|
141
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-generator/v0.
|
141
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-generator/v0.10.0
|
142
142
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/google-apis-generator
|
143
143
|
post_install_message:
|
144
144
|
rdoc_options: []
|