google-apis-cloudchannel_v1 0.28.0 → 0.30.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2275,6 +2275,133 @@ module Google
2275
2275
  execute_or_queue_command(command, &block)
2276
2276
  end
2277
2277
 
2278
+ # Retrieves data generated by CloudChannelReportsService.RunReportJob.
2279
+ # @param [String] report_job
2280
+ # Required. The report job created by CloudChannelReportsService.RunReportJob.
2281
+ # Report_job uses the format: accounts/`account_id`/reportJobs/`report_job_id`
2282
+ # @param [Google::Apis::CloudchannelV1::GoogleCloudChannelV1FetchReportResultsRequest] google_cloud_channel_v1_fetch_report_results_request_object
2283
+ # @param [String] fields
2284
+ # Selector specifying which fields to include in a partial response.
2285
+ # @param [String] quota_user
2286
+ # Available to use for quota purposes for server-side applications. Can be any
2287
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2288
+ # @param [Google::Apis::RequestOptions] options
2289
+ # Request-specific options
2290
+ #
2291
+ # @yield [result, err] Result & error if block supplied
2292
+ # @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1FetchReportResultsResponse] parsed result object
2293
+ # @yieldparam err [StandardError] error object if request failed
2294
+ #
2295
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1FetchReportResultsResponse]
2296
+ #
2297
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2298
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2299
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2300
+ def fetch_account_report_job_report_results(report_job, google_cloud_channel_v1_fetch_report_results_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2301
+ command = make_simple_command(:post, 'v1/{+reportJob}:fetchReportResults', options)
2302
+ command.request_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1FetchReportResultsRequest::Representation
2303
+ command.request_object = google_cloud_channel_v1_fetch_report_results_request_object
2304
+ command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1FetchReportResultsResponse::Representation
2305
+ command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1FetchReportResultsResponse
2306
+ command.params['reportJob'] = report_job unless report_job.nil?
2307
+ command.query['fields'] = fields unless fields.nil?
2308
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2309
+ execute_or_queue_command(command, &block)
2310
+ end
2311
+
2312
+ # Lists the reports that RunReportJob can run. These reports include an ID, a
2313
+ # description, and the list of columns that will be in the result.
2314
+ # @param [String] parent
2315
+ # Required. The resource name of the partner account to list available reports
2316
+ # for. Parent uses the format: accounts/`account_id`
2317
+ # @param [String] language_code
2318
+ # Optional. The BCP-47 language code, such as "en-US". If specified, the
2319
+ # response is localized to the corresponding language code if the original data
2320
+ # sources support it. Default is "en-US".
2321
+ # @param [Fixnum] page_size
2322
+ # Optional. Requested page size of the report. The server might return fewer
2323
+ # results than requested. If unspecified, returns 20 reports. The maximum value
2324
+ # is 100.
2325
+ # @param [String] page_token
2326
+ # Optional. A token that specifies a page of results beyond the first page.
2327
+ # Obtained through ListReportsResponse.next_page_token of the previous
2328
+ # CloudChannelReportsService.ListReports call.
2329
+ # @param [String] fields
2330
+ # Selector specifying which fields to include in a partial response.
2331
+ # @param [String] quota_user
2332
+ # Available to use for quota purposes for server-side applications. Can be any
2333
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2334
+ # @param [Google::Apis::RequestOptions] options
2335
+ # Request-specific options
2336
+ #
2337
+ # @yield [result, err] Result & error if block supplied
2338
+ # @yieldparam result [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListReportsResponse] parsed result object
2339
+ # @yieldparam err [StandardError] error object if request failed
2340
+ #
2341
+ # @return [Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListReportsResponse]
2342
+ #
2343
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2344
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2345
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2346
+ def list_account_reports(parent, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2347
+ command = make_simple_command(:get, 'v1/{+parent}/reports', options)
2348
+ command.response_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListReportsResponse::Representation
2349
+ command.response_class = Google::Apis::CloudchannelV1::GoogleCloudChannelV1ListReportsResponse
2350
+ command.params['parent'] = parent unless parent.nil?
2351
+ command.query['languageCode'] = language_code unless language_code.nil?
2352
+ command.query['pageSize'] = page_size unless page_size.nil?
2353
+ command.query['pageToken'] = page_token unless page_token.nil?
2354
+ command.query['fields'] = fields unless fields.nil?
2355
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2356
+ execute_or_queue_command(command, &block)
2357
+ end
2358
+
2359
+ # Begins generation of data for a given report. The report identifier is a UID (
2360
+ # for example, `613bf59q`). Possible error codes: * PERMISSION_DENIED: The user
2361
+ # doesn't have access to this report. * INVALID_ARGUMENT: Required request
2362
+ # parameters are missing or invalid. * NOT_FOUND: The report identifier was not
2363
+ # found. * INTERNAL: Any non-user error related to a technical issue in the
2364
+ # backend. Contact Cloud Channel support. * UNKNOWN: Any non-user error related
2365
+ # to a technical issue in the backend. Contact Cloud Channel support. Return
2366
+ # value: The ID of a long-running operation. To get the results of the operation,
2367
+ # call the GetOperation method of CloudChannelOperationsService. The Operation
2368
+ # metadata contains an instance of OperationMetadata. To get the results of
2369
+ # report generation, call CloudChannelReportsService.FetchReportResults with the
2370
+ # RunReportJobResponse.report_job.
2371
+ # @param [String] name
2372
+ # Required. The report's resource name. Specifies the account and report used to
2373
+ # generate report data. The report_id identifier is a UID (for example, `
2374
+ # 613bf59q`). Name uses the format: accounts/`account_id`/reports/`report_id`
2375
+ # @param [Google::Apis::CloudchannelV1::GoogleCloudChannelV1RunReportJobRequest] google_cloud_channel_v1_run_report_job_request_object
2376
+ # @param [String] fields
2377
+ # Selector specifying which fields to include in a partial response.
2378
+ # @param [String] quota_user
2379
+ # Available to use for quota purposes for server-side applications. Can be any
2380
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2381
+ # @param [Google::Apis::RequestOptions] options
2382
+ # Request-specific options
2383
+ #
2384
+ # @yield [result, err] Result & error if block supplied
2385
+ # @yieldparam result [Google::Apis::CloudchannelV1::GoogleLongrunningOperation] parsed result object
2386
+ # @yieldparam err [StandardError] error object if request failed
2387
+ #
2388
+ # @return [Google::Apis::CloudchannelV1::GoogleLongrunningOperation]
2389
+ #
2390
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2391
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2392
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2393
+ def run_account_report(name, google_cloud_channel_v1_run_report_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2394
+ command = make_simple_command(:post, 'v1/{+name}:run', options)
2395
+ command.request_representation = Google::Apis::CloudchannelV1::GoogleCloudChannelV1RunReportJobRequest::Representation
2396
+ command.request_object = google_cloud_channel_v1_run_report_job_request_object
2397
+ command.response_representation = Google::Apis::CloudchannelV1::GoogleLongrunningOperation::Representation
2398
+ command.response_class = Google::Apis::CloudchannelV1::GoogleLongrunningOperation
2399
+ command.params['name'] = name unless name.nil?
2400
+ command.query['fields'] = fields unless fields.nil?
2401
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2402
+ execute_or_queue_command(command, &block)
2403
+ end
2404
+
2278
2405
  # Starts asynchronous cancellation on a long-running operation. The server makes
2279
2406
  # a best effort to cancel the operation, but success is not guaranteed. If the
2280
2407
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -33,6 +33,9 @@ module Google
33
33
 
34
34
  # Manage users on your domain
35
35
  AUTH_APPS_ORDER = 'https://www.googleapis.com/auth/apps.order'
36
+
37
+ # View usage reports for your G Suite domain
38
+ AUTH_APPS_REPORTS_USAGE_READONLY = 'https://www.googleapis.com/auth/apps.reports.usage.readonly'
36
39
  end
37
40
  end
38
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudchannel_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.0
4
+ version: 0.30.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-10-31 00:00:00.000000000 Z
11
+ date: 2023-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudchannel_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudchannel_v1/v0.28.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudchannel_v1/v0.30.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudchannel_v1
63
63
  post_install_message:
64
64
  rdoc_options: []