google-apis-generator 0.11.0 → 0.12.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: 2e7a2826690578f136208702c38e8c7170439bbe2478fbed139260aefe0a531b
|
4
|
+
data.tar.gz: 0f5f9953b30d46eded9732556a87e9fd8eba648d92bad004c8d3caba8a57b532
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2725c8298a1ec6b416488bfd54b96bdb8c2e245bd9bd565a78044fdcb7fa11be90fc12347b6b6f8472ad08b9b9d6003982b1ef1889b6287d8752f93d01fd3edd
|
7
|
+
data.tar.gz: 8ba05d11ed6c16f8dfd042f65f41ff2c5ee852cb3f680ec3c7c09b9734b65b965c9497278887bc591d5ed2c578a8c44549a0aa3a231ffe3cfcdbf38ff2562249
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
+
### 0.12.0 (2023-02-14)
|
4
|
+
|
5
|
+
#### Features
|
6
|
+
|
7
|
+
* Update core dependency to at least 0.11.0 ([#13572](https://github.com/googleapis/google-api-ruby-client/issues/13572))
|
8
|
+
|
9
|
+
### 0.11.1 (2023-01-04)
|
10
|
+
|
11
|
+
#### Bug Fixes
|
12
|
+
|
13
|
+
* Fix crash when a response doesn't reference a type ([#13150](https://github.com/googleapis/google-api-ruby-client/issues/13150))
|
14
|
+
|
3
15
|
### 0.11.0 (2022-10-18)
|
4
16
|
|
5
17
|
#### Features
|
@@ -6,7 +6,7 @@
|
|
6
6
|
# <%= block_comment(param.description, 0, 3) %>
|
7
7
|
<% end -%>
|
8
8
|
<% end -%>
|
9
|
-
<% if api_method.request -%>
|
9
|
+
<% if api.schemas[api_method.request&._ref] -%>
|
10
10
|
# @param [<%= api.schemas[api_method.request._ref].generated_type %>] <%= api.schemas[api_method.request._ref].generated_name %>_object
|
11
11
|
<% end -%>
|
12
12
|
<% for param in api_method.optional_query_parameters -%>
|
@@ -34,7 +34,7 @@
|
|
34
34
|
# Request-specific options
|
35
35
|
#
|
36
36
|
# @yield [result, err] Result & error if block supplied
|
37
|
-
<% if api_method.response -%>
|
37
|
+
<% if api.schemas[api_method.response&._ref] -%>
|
38
38
|
# @yieldparam result [<%= api.schemas[api_method.response._ref].generated_type %>] parsed result object
|
39
39
|
# @yieldparam err [StandardError] error object if request failed
|
40
40
|
#
|
@@ -49,7 +49,7 @@
|
|
49
49
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
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
|
-
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)
|
52
|
+
def <%= api_method.generated_name %>(<% for param in api_method.required_parameters %><%= param.generated_name %>, <% end %><% if api.schemas[api_method.request&._ref] %><%= 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
53
|
<% if api_method.supports_media_upload? && api.name == 'Storage' %>
|
54
54
|
if upload_source.nil?
|
55
55
|
command = make_simple_command(:<%= api_method.http_method.downcase %>, '<%= api_method.path %>', options)
|
@@ -83,11 +83,11 @@ def <%= api_method.generated_name %>(<% for param in api_method.required_paramet
|
|
83
83
|
<% else -%>
|
84
84
|
command = make_simple_command(:<%= api_method.http_method.downcase %>, '<%= api_method.path %>', options)
|
85
85
|
<% end -%>
|
86
|
-
<% if api_method.request -%>
|
86
|
+
<% if api.schemas[api_method.request&._ref] -%>
|
87
87
|
command.request_representation = <%= api.schemas[api_method.request._ref].generated_type %>::Representation
|
88
88
|
command.request_object = <%= api.schemas[api_method.request._ref].generated_name %>_object
|
89
89
|
<% end -%>
|
90
|
-
<% if api_method.response -%>
|
90
|
+
<% if api.schemas[api_method.response&._ref] -%>
|
91
91
|
<% if api.force_alt_json? -%>
|
92
92
|
command.query['alt'] = 'json'
|
93
93
|
<% end -%>
|
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.12.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:
|
11
|
+
date: 2023-02-15 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: 0.
|
47
|
+
version: 0.11.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: 0.
|
57
|
+
version: 0.11.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.12.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: []
|
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
155
|
- !ruby/object:Gem::Version
|
156
156
|
version: '0'
|
157
157
|
requirements: []
|
158
|
-
rubygems_version: 3.
|
158
|
+
rubygems_version: 3.4.2
|
159
159
|
signing_key:
|
160
160
|
specification_version: 4
|
161
161
|
summary: Code generator for legacy Google REST clients
|