google-api-client 0.9.pre2 → 0.9.pre3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +1 -1
- data/api_names_out.yaml +68 -5
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +3 -3
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +5 -5
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +34 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +5 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/service.rb +10 -10
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +19 -19
- data/generated/google/apis/analytics_v3/service.rb +35 -35
- data/generated/google/apis/androidenterprise_v1/service.rb +6 -6
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +16 -6
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/bigquery_v2/service.rb +4 -4
- data/generated/google/apis/blogger_v3/service.rb +7 -7
- data/generated/google/apis/books_v1/service.rb +47 -47
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +43 -27
- data/generated/google/apis/calendar_v3/service.rb +20 -10
- data/generated/google/apis/civicinfo_v2/service.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +8 -8
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +372 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +155 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +109 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +21 -18
- data/generated/google/apis/compute_v1/representations.rb +0 -1
- data/generated/google/apis/compute_v1/service.rb +459 -819
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +25 -15
- data/generated/google/apis/content_v2/representations.rb +2 -0
- data/generated/google/apis/content_v2/service.rb +2 -1
- data/generated/google/apis/coordinate_v1/service.rb +11 -11
- data/generated/google/apis/customsearch_v1/service.rb +3 -3
- data/generated/google/apis/deploymentmanager_v2beta2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +50 -90
- data/generated/google/apis/dfareporting_v2_1.rb +1 -1
- data/generated/google/apis/dfareporting_v2_1/classes.rb +4 -4
- data/generated/google/apis/dfareporting_v2_1/service.rb +65 -62
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/service.rb +11 -11
- data/generated/google/apis/drive_v2.rb +4 -1
- data/generated/google/apis/drive_v2/classes.rb +2 -2
- data/generated/google/apis/drive_v2/service.rb +15 -9
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +44 -31
- data/generated/google/apis/fitness_v1/representations.rb +0 -2
- data/generated/google/apis/fitness_v1/service.rb +5 -1
- data/generated/google/apis/fusiontables_v2/service.rb +9 -9
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/service.rb +18 -18
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +56 -53
- data/generated/google/apis/genomics_v1/service.rb +1 -1
- data/generated/google/apis/licensing_v1/service.rb +2 -2
- data/generated/google/apis/mapsengine_v1/service.rb +8 -8
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/service.rb +3 -3
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/service.rb +6 -6
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +21 -20
- data/generated/google/apis/pubsub_v1beta2/service.rb +13 -13
- data/generated/google/apis/replicapool_v1beta2/service.rb +3 -3
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +8 -1
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +1 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -5
- data/generated/google/apis/reseller_v1/service.rb +1 -1
- data/generated/google/apis/site_verification_v1/service.rb +2 -2
- data/generated/google/apis/sqladmin_v1beta4/service.rb +4 -4
- data/generated/google/apis/storage_v1/service.rb +6 -6
- data/generated/google/apis/taskqueue_v1beta2/service.rb +9 -9
- data/generated/google/apis/translate_v2/service.rb +6 -6
- data/generated/google/apis/urlshortener_v1/service.rb +3 -3
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/webmasters_v3/classes.rb +11 -11
- data/generated/google/apis/webmasters_v3/service.rb +3 -3
- data/generated/google/apis/youtube_analytics_v1/service.rb +25 -25
- data/generated/google/apis/youtube_v3/service.rb +305 -305
- data/lib/google/apis/generator/model.rb +10 -0
- data/lib/google/apis/generator/templates/_method.tmpl +3 -3
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
@@ -75,6 +75,16 @@ module Google
|
|
75
75
|
return [] if parameters.nil?
|
76
76
|
parameters.values.select { |param| param.location == 'query' }
|
77
77
|
end
|
78
|
+
|
79
|
+
def required_parameters
|
80
|
+
return [] if parameter_order.nil? || parameters.nil?
|
81
|
+
parameter_order.map { |name| parameters[name] }.select { |param| param.location == 'path' || param.required }
|
82
|
+
end
|
83
|
+
|
84
|
+
def optional_query_parameters
|
85
|
+
query_parameters.select { |param| param.required != true }
|
86
|
+
end
|
87
|
+
|
78
88
|
end
|
79
89
|
|
80
90
|
class RestResource
|
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
# <%= block_comment(api_method.description, 0, 1) %>
|
3
|
-
<% for param in api_method.
|
3
|
+
<% for param in api_method.required_parameters -%>
|
4
4
|
# @param [<% if param.repeated? %>Array<<%= param.generated_type %>>, <% end %><%= param.generated_type %>] <%= param.generated_name %>
|
5
5
|
<% if param.description -%>
|
6
6
|
# <%= block_comment(param.description, 0, 3) %>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<% if api_method.request -%>
|
10
10
|
# @param [<%= api.schemas[api_method.request._ref].generated_type %>] <%= api.schemas[api_method.request._ref].generated_name %>_object
|
11
11
|
<% end -%>
|
12
|
-
<% for param in api_method.
|
12
|
+
<% for param in api_method.optional_query_parameters -%>
|
13
13
|
# @param [<% if param.repeated? %>Array<<%= param.generated_type %>>, <% end %><%= param.generated_type %>] <%= param.generated_name %>
|
14
14
|
<% if param.description -%>
|
15
15
|
# <%= block_comment(param.description, 0, 3) %>
|
@@ -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.
|
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
53
|
path = '<%= api_method.path %>'
|
54
54
|
<% if api_method.supports_media_upload? -%>
|
55
55
|
if upload_source.nil?
|
data/lib/google/apis/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.pre3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Bazyl
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2015-07-
|
14
|
+
date: 2015-07-31 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: representable
|