google-api-client 0.13.0 → 0.13.1
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 +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
- data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
- data/generated/google/apis/admin_directory_v1/service.rb +4 -1
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
- data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
- data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +747 -747
- data/generated/google/apis/appengine_v1/representations.rb +158 -158
- data/generated/google/apis/appengine_v1/service.rb +214 -214
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- 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 +6 -0
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +517 -515
- data/generated/google/apis/classroom_v1/representations.rb +147 -147
- data/generated/google/apis/classroom_v1/service.rb +1144 -1143
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
- data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
- data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
- data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
- data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
- data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
- data/generated/google/apis/cloudkms_v1/service.rb +276 -276
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
- data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
- data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +82 -6
- data/generated/google/apis/compute_beta/representations.rb +4 -0
- data/generated/google/apis/compute_beta/service.rb +1177 -834
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +371 -1
- data/generated/google/apis/compute_v1/representations.rb +139 -0
- data/generated/google/apis/compute_v1/service.rb +257 -9
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1122 -826
- data/generated/google/apis/container_v1/representations.rb +279 -135
- data/generated/google/apis/container_v1/service.rb +440 -98
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +3 -1
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +4 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
- data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
- data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +450 -431
- data/generated/google/apis/dataproc_v1/representations.rb +92 -92
- data/generated/google/apis/dataproc_v1/service.rb +200 -200
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +397 -397
- data/generated/google/apis/datastore_v1/representations.rb +100 -100
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
- data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
- data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
- data/generated/google/apis/firebaserules_v1/service.rb +151 -151
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +9 -9
- data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
- data/generated/google/apis/genomics_v1/representations.rb +306 -306
- data/generated/google/apis/genomics_v1/service.rb +1172 -1172
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +243 -243
- data/generated/google/apis/iam_v1/representations.rb +79 -79
- data/generated/google/apis/iam_v1/service.rb +137 -137
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +451 -451
- data/generated/google/apis/language_v1/representations.rb +103 -103
- data/generated/google/apis/language_v1/service.rb +49 -49
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +459 -459
- data/generated/google/apis/language_v1beta1/representations.rb +110 -110
- data/generated/google/apis/language_v1beta1/service.rb +43 -43
- data/generated/google/apis/logging_v2.rb +8 -8
- data/generated/google/apis/logging_v2/classes.rb +915 -915
- data/generated/google/apis/logging_v2/representations.rb +142 -142
- data/generated/google/apis/logging_v2/service.rb +415 -415
- data/generated/google/apis/logging_v2beta1.rb +8 -8
- data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
- data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
- data/generated/google/apis/logging_v2beta1/service.rb +221 -221
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
- data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
- data/generated/google/apis/manufacturers_v1/service.rb +101 -4
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +709 -673
- data/generated/google/apis/ml_v1/representations.rb +154 -151
- data/generated/google/apis/ml_v1/service.rb +341 -354
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +869 -869
- data/generated/google/apis/monitoring_v3/representations.rb +171 -171
- data/generated/google/apis/monitoring_v3/service.rb +340 -340
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1569 -1569
- data/generated/google/apis/partners_v2/representations.rb +256 -256
- data/generated/google/apis/partners_v2/service.rb +530 -530
- data/generated/google/apis/people_v1.rb +7 -7
- data/generated/google/apis/people_v1/classes.rb +1287 -946
- data/generated/google/apis/people_v1/representations.rb +355 -203
- data/generated/google/apis/people_v1/service.rb +409 -32
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +286 -287
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +178 -178
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
- data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/script_v1.rb +4 -4
- data/generated/google/apis/script_v1/classes.rb +172 -172
- data/generated/google/apis/script_v1/representations.rb +41 -41
- data/generated/google/apis/script_v1/service.rb +6 -6
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
- data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
- data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
- data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
- data/generated/google/apis/servicemanagement_v1.rb +6 -6
- data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
- data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
- data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
- data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
- data/generated/google/apis/serviceuser_v1/service.rb +59 -59
- data/generated/google/apis/sheets_v4.rb +5 -5
- data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
- data/generated/google/apis/sheets_v4/representations.rb +957 -940
- data/generated/google/apis/sheets_v4/service.rb +175 -175
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2932 -2905
- data/generated/google/apis/slides_v1/representations.rb +709 -694
- data/generated/google/apis/slides_v1/service.rb +50 -50
- data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
- data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
- data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
- data/generated/google/apis/spanner_v1.rb +7 -1
- data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
- data/generated/google/apis/spanner_v1/representations.rb +342 -323
- data/generated/google/apis/spanner_v1/service.rb +502 -492
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
- data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
- data/generated/google/apis/speech_v1beta1/service.rb +91 -91
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
- data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
- data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
- data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
- data/generated/google/apis/translate_v2/classes.rb +107 -107
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +81 -81
- data/generated/google/apis/vision_v1.rb +4 -1
- data/generated/google/apis/vision_v1/classes.rb +527 -527
- data/generated/google/apis/vision_v1/representations.rb +115 -115
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
- data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
- data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/analytics.rb +2 -2
- metadata +2 -2
@@ -48,6 +48,52 @@ module Google
|
|
48
48
|
@batch_path = 'batch'
|
49
49
|
end
|
50
50
|
|
51
|
+
# Lists report types.
|
52
|
+
# @param [Boolean] include_system_managed
|
53
|
+
# If set to true, also system-managed report types will be returned;
|
54
|
+
# otherwise only the report types that can be used to create new reporting
|
55
|
+
# jobs will be returned.
|
56
|
+
# @param [String] page_token
|
57
|
+
# A token identifying a page of results the server should return. Typically,
|
58
|
+
# this is the value of
|
59
|
+
# ListReportTypesResponse.next_page_token
|
60
|
+
# returned in response to the previous call to the `ListReportTypes` method.
|
61
|
+
# @param [Fixnum] page_size
|
62
|
+
# Requested page size. Server may return fewer report types than requested.
|
63
|
+
# If unspecified, server will pick an appropriate default.
|
64
|
+
# @param [String] on_behalf_of_content_owner
|
65
|
+
# The content owner's external ID on which behalf the user is acting on. If
|
66
|
+
# not set, the user is acting for himself (his own channel).
|
67
|
+
# @param [String] quota_user
|
68
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
69
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
70
|
+
# @param [String] fields
|
71
|
+
# Selector specifying which fields to include in a partial response.
|
72
|
+
# @param [Google::Apis::RequestOptions] options
|
73
|
+
# Request-specific options
|
74
|
+
#
|
75
|
+
# @yield [result, err] Result & error if block supplied
|
76
|
+
# @yieldparam result [Google::Apis::YoutubereportingV1::ListReportTypesResponse] parsed result object
|
77
|
+
# @yieldparam err [StandardError] error object if request failed
|
78
|
+
#
|
79
|
+
# @return [Google::Apis::YoutubereportingV1::ListReportTypesResponse]
|
80
|
+
#
|
81
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
82
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
83
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
84
|
+
def list_report_types(include_system_managed: nil, page_token: nil, page_size: nil, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
|
85
|
+
command = make_simple_command(:get, 'v1/reportTypes', options)
|
86
|
+
command.response_representation = Google::Apis::YoutubereportingV1::ListReportTypesResponse::Representation
|
87
|
+
command.response_class = Google::Apis::YoutubereportingV1::ListReportTypesResponse
|
88
|
+
command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
|
89
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
90
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
91
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
92
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
93
|
+
command.query['fields'] = fields unless fields.nil?
|
94
|
+
execute_or_queue_command(command, &block)
|
95
|
+
end
|
96
|
+
|
51
97
|
# Method for media download. Download is supported
|
52
98
|
# on the URI `/v1/media/`+name`?alt=media`.
|
53
99
|
# @param [String] resource_name
|
@@ -87,22 +133,12 @@ module Google
|
|
87
133
|
execute_or_queue_command(command, &block)
|
88
134
|
end
|
89
135
|
|
90
|
-
#
|
136
|
+
# Deletes a job.
|
137
|
+
# @param [String] job_id
|
138
|
+
# The ID of the job to delete.
|
91
139
|
# @param [String] on_behalf_of_content_owner
|
92
140
|
# The content owner's external ID on which behalf the user is acting on. If
|
93
141
|
# not set, the user is acting for himself (his own channel).
|
94
|
-
# @param [String] page_token
|
95
|
-
# A token identifying a page of results the server should return. Typically,
|
96
|
-
# this is the value of
|
97
|
-
# ListReportTypesResponse.next_page_token
|
98
|
-
# returned in response to the previous call to the `ListJobs` method.
|
99
|
-
# @param [Boolean] include_system_managed
|
100
|
-
# If set to true, also system-managed jobs will be returned; otherwise only
|
101
|
-
# user-created jobs will be returned. System-managed jobs can neither be
|
102
|
-
# modified nor deleted.
|
103
|
-
# @param [Fixnum] page_size
|
104
|
-
# Requested page size. Server may return fewer jobs than requested.
|
105
|
-
# If unspecified, server will pick an appropriate default.
|
106
142
|
# @param [String] quota_user
|
107
143
|
# Available to use for quota purposes for server-side applications. Can be any
|
108
144
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -112,22 +148,20 @@ module Google
|
|
112
148
|
# Request-specific options
|
113
149
|
#
|
114
150
|
# @yield [result, err] Result & error if block supplied
|
115
|
-
# @yieldparam result [Google::Apis::YoutubereportingV1::
|
151
|
+
# @yieldparam result [Google::Apis::YoutubereportingV1::Empty] parsed result object
|
116
152
|
# @yieldparam err [StandardError] error object if request failed
|
117
153
|
#
|
118
|
-
# @return [Google::Apis::YoutubereportingV1::
|
154
|
+
# @return [Google::Apis::YoutubereportingV1::Empty]
|
119
155
|
#
|
120
156
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
121
157
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
122
158
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
123
|
-
def
|
124
|
-
command = make_simple_command(:
|
125
|
-
command.response_representation = Google::Apis::YoutubereportingV1::
|
126
|
-
command.response_class = Google::Apis::YoutubereportingV1::
|
159
|
+
def delete_job(job_id, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
|
160
|
+
command = make_simple_command(:delete, 'v1/jobs/{jobId}', options)
|
161
|
+
command.response_representation = Google::Apis::YoutubereportingV1::Empty::Representation
|
162
|
+
command.response_class = Google::Apis::YoutubereportingV1::Empty
|
163
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
127
164
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
128
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
129
|
-
command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
|
130
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
131
165
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
132
166
|
command.query['fields'] = fields unless fields.nil?
|
133
167
|
execute_or_queue_command(command, &block)
|
@@ -167,6 +201,52 @@ module Google
|
|
167
201
|
execute_or_queue_command(command, &block)
|
168
202
|
end
|
169
203
|
|
204
|
+
# Lists jobs.
|
205
|
+
# @param [Boolean] include_system_managed
|
206
|
+
# If set to true, also system-managed jobs will be returned; otherwise only
|
207
|
+
# user-created jobs will be returned. System-managed jobs can neither be
|
208
|
+
# modified nor deleted.
|
209
|
+
# @param [String] page_token
|
210
|
+
# A token identifying a page of results the server should return. Typically,
|
211
|
+
# this is the value of
|
212
|
+
# ListReportTypesResponse.next_page_token
|
213
|
+
# returned in response to the previous call to the `ListJobs` method.
|
214
|
+
# @param [Fixnum] page_size
|
215
|
+
# Requested page size. Server may return fewer jobs than requested.
|
216
|
+
# If unspecified, server will pick an appropriate default.
|
217
|
+
# @param [String] on_behalf_of_content_owner
|
218
|
+
# The content owner's external ID on which behalf the user is acting on. If
|
219
|
+
# not set, the user is acting for himself (his own channel).
|
220
|
+
# @param [String] quota_user
|
221
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
222
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
223
|
+
# @param [String] fields
|
224
|
+
# Selector specifying which fields to include in a partial response.
|
225
|
+
# @param [Google::Apis::RequestOptions] options
|
226
|
+
# Request-specific options
|
227
|
+
#
|
228
|
+
# @yield [result, err] Result & error if block supplied
|
229
|
+
# @yieldparam result [Google::Apis::YoutubereportingV1::ListJobsResponse] parsed result object
|
230
|
+
# @yieldparam err [StandardError] error object if request failed
|
231
|
+
#
|
232
|
+
# @return [Google::Apis::YoutubereportingV1::ListJobsResponse]
|
233
|
+
#
|
234
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
235
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
236
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
237
|
+
def list_jobs(include_system_managed: nil, page_token: nil, page_size: nil, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
|
238
|
+
command = make_simple_command(:get, 'v1/jobs', options)
|
239
|
+
command.response_representation = Google::Apis::YoutubereportingV1::ListJobsResponse::Representation
|
240
|
+
command.response_class = Google::Apis::YoutubereportingV1::ListJobsResponse
|
241
|
+
command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
|
242
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
243
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
244
|
+
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
245
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
246
|
+
command.query['fields'] = fields unless fields.nil?
|
247
|
+
execute_or_queue_command(command, &block)
|
248
|
+
end
|
249
|
+
|
170
250
|
# Creates a job and returns it.
|
171
251
|
# @param [Google::Apis::YoutubereportingV1::Job] job_object
|
172
252
|
# @param [String] on_behalf_of_content_owner
|
@@ -201,9 +281,11 @@ module Google
|
|
201
281
|
execute_or_queue_command(command, &block)
|
202
282
|
end
|
203
283
|
|
204
|
-
#
|
284
|
+
# Gets the metadata of a specific report.
|
205
285
|
# @param [String] job_id
|
206
|
-
# The ID of the job
|
286
|
+
# The ID of the job.
|
287
|
+
# @param [String] report_id
|
288
|
+
# The ID of the report to retrieve.
|
207
289
|
# @param [String] on_behalf_of_content_owner
|
208
290
|
# The content owner's external ID on which behalf the user is acting on. If
|
209
291
|
# not set, the user is acting for himself (his own channel).
|
@@ -216,19 +298,20 @@ module Google
|
|
216
298
|
# Request-specific options
|
217
299
|
#
|
218
300
|
# @yield [result, err] Result & error if block supplied
|
219
|
-
# @yieldparam result [Google::Apis::YoutubereportingV1::
|
301
|
+
# @yieldparam result [Google::Apis::YoutubereportingV1::Report] parsed result object
|
220
302
|
# @yieldparam err [StandardError] error object if request failed
|
221
303
|
#
|
222
|
-
# @return [Google::Apis::YoutubereportingV1::
|
304
|
+
# @return [Google::Apis::YoutubereportingV1::Report]
|
223
305
|
#
|
224
306
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
225
307
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
226
308
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
227
|
-
def
|
228
|
-
command = make_simple_command(:
|
229
|
-
command.response_representation = Google::Apis::YoutubereportingV1::
|
230
|
-
command.response_class = Google::Apis::YoutubereportingV1::
|
309
|
+
def get_job_report(job_id, report_id, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
|
310
|
+
command = make_simple_command(:get, 'v1/jobs/{jobId}/reports/{reportId}', options)
|
311
|
+
command.response_representation = Google::Apis::YoutubereportingV1::Report::Representation
|
312
|
+
command.response_class = Google::Apis::YoutubereportingV1::Report
|
231
313
|
command.params['jobId'] = job_id unless job_id.nil?
|
314
|
+
command.params['reportId'] = report_id unless report_id.nil?
|
232
315
|
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
233
316
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
234
317
|
command.query['fields'] = fields unless fields.nil?
|
@@ -290,89 +373,6 @@ module Google
|
|
290
373
|
command.query['fields'] = fields unless fields.nil?
|
291
374
|
execute_or_queue_command(command, &block)
|
292
375
|
end
|
293
|
-
|
294
|
-
# Gets the metadata of a specific report.
|
295
|
-
# @param [String] job_id
|
296
|
-
# The ID of the job.
|
297
|
-
# @param [String] report_id
|
298
|
-
# The ID of the report to retrieve.
|
299
|
-
# @param [String] on_behalf_of_content_owner
|
300
|
-
# The content owner's external ID on which behalf the user is acting on. If
|
301
|
-
# not set, the user is acting for himself (his own channel).
|
302
|
-
# @param [String] quota_user
|
303
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
304
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
305
|
-
# @param [String] fields
|
306
|
-
# Selector specifying which fields to include in a partial response.
|
307
|
-
# @param [Google::Apis::RequestOptions] options
|
308
|
-
# Request-specific options
|
309
|
-
#
|
310
|
-
# @yield [result, err] Result & error if block supplied
|
311
|
-
# @yieldparam result [Google::Apis::YoutubereportingV1::Report] parsed result object
|
312
|
-
# @yieldparam err [StandardError] error object if request failed
|
313
|
-
#
|
314
|
-
# @return [Google::Apis::YoutubereportingV1::Report]
|
315
|
-
#
|
316
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
317
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
318
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
319
|
-
def get_job_report(job_id, report_id, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
|
320
|
-
command = make_simple_command(:get, 'v1/jobs/{jobId}/reports/{reportId}', options)
|
321
|
-
command.response_representation = Google::Apis::YoutubereportingV1::Report::Representation
|
322
|
-
command.response_class = Google::Apis::YoutubereportingV1::Report
|
323
|
-
command.params['jobId'] = job_id unless job_id.nil?
|
324
|
-
command.params['reportId'] = report_id unless report_id.nil?
|
325
|
-
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
326
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
327
|
-
command.query['fields'] = fields unless fields.nil?
|
328
|
-
execute_or_queue_command(command, &block)
|
329
|
-
end
|
330
|
-
|
331
|
-
# Lists report types.
|
332
|
-
# @param [String] on_behalf_of_content_owner
|
333
|
-
# The content owner's external ID on which behalf the user is acting on. If
|
334
|
-
# not set, the user is acting for himself (his own channel).
|
335
|
-
# @param [String] page_token
|
336
|
-
# A token identifying a page of results the server should return. Typically,
|
337
|
-
# this is the value of
|
338
|
-
# ListReportTypesResponse.next_page_token
|
339
|
-
# returned in response to the previous call to the `ListReportTypes` method.
|
340
|
-
# @param [Boolean] include_system_managed
|
341
|
-
# If set to true, also system-managed report types will be returned;
|
342
|
-
# otherwise only the report types that can be used to create new reporting
|
343
|
-
# jobs will be returned.
|
344
|
-
# @param [Fixnum] page_size
|
345
|
-
# Requested page size. Server may return fewer report types than requested.
|
346
|
-
# If unspecified, server will pick an appropriate default.
|
347
|
-
# @param [String] quota_user
|
348
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
349
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
350
|
-
# @param [String] fields
|
351
|
-
# Selector specifying which fields to include in a partial response.
|
352
|
-
# @param [Google::Apis::RequestOptions] options
|
353
|
-
# Request-specific options
|
354
|
-
#
|
355
|
-
# @yield [result, err] Result & error if block supplied
|
356
|
-
# @yieldparam result [Google::Apis::YoutubereportingV1::ListReportTypesResponse] parsed result object
|
357
|
-
# @yieldparam err [StandardError] error object if request failed
|
358
|
-
#
|
359
|
-
# @return [Google::Apis::YoutubereportingV1::ListReportTypesResponse]
|
360
|
-
#
|
361
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
362
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
363
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
364
|
-
def list_report_types(on_behalf_of_content_owner: nil, page_token: nil, include_system_managed: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
365
|
-
command = make_simple_command(:get, 'v1/reportTypes', options)
|
366
|
-
command.response_representation = Google::Apis::YoutubereportingV1::ListReportTypesResponse::Representation
|
367
|
-
command.response_class = Google::Apis::YoutubereportingV1::ListReportTypesResponse
|
368
|
-
command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
|
369
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
370
|
-
command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
|
371
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
372
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
373
|
-
command.query['fields'] = fields unless fields.nil?
|
374
|
-
execute_or_queue_command(command, &block)
|
375
|
-
end
|
376
376
|
|
377
377
|
protected
|
378
378
|
|
data/lib/google/apis/version.rb
CHANGED
@@ -34,7 +34,7 @@ module Samples
|
|
34
34
|
class Analytics < BaseCli
|
35
35
|
Analytics = Google::Apis::AnalyticsV3
|
36
36
|
|
37
|
-
desc 'show_visits PROFILE_ID', 'Show
|
37
|
+
desc 'show_visits PROFILE_ID', 'Show visits for the given analytics profile ID'
|
38
38
|
method_option :start, type: :string, required: true
|
39
39
|
method_option :end, type: :string, required: true
|
40
40
|
def show_visits(profile_id)
|
@@ -58,7 +58,7 @@ module Samples
|
|
58
58
|
print_table(data)
|
59
59
|
end
|
60
60
|
|
61
|
-
desc 'show_realtime_visits PROFILE_ID', 'Show realtime
|
61
|
+
desc 'show_realtime_visits PROFILE_ID', 'Show realtime visits for the given analytics profile ID'
|
62
62
|
def show_realtime_visits(profile_id)
|
63
63
|
analytics = Analytics::AnalyticsService.new
|
64
64
|
analytics.authorization = user_credentials_for(Analytics::AUTH_ANALYTICS)
|
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.13.
|
4
|
+
version: 0.13.1
|
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: 2017-
|
14
|
+
date: 2017-07-12 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: representable
|