source: vendor/google/apiclient-services/src/Apigee/Resource/OrganizationsReports.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 3 weeks ago

Upload project files

  • Property mode set to 100644
File size: 5.0 KB
RevLine 
[e3d4e0a]1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\Apigee\Resource;
19
20use Google\Service\Apigee\GoogleCloudApigeeV1CustomReport;
21use Google\Service\Apigee\GoogleCloudApigeeV1DeleteCustomReportResponse;
22use Google\Service\Apigee\GoogleCloudApigeeV1ListCustomReportsResponse;
23
24/**
25 * The "reports" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $apigeeService = new Google\Service\Apigee(...);
29 * $reports = $apigeeService->organizations_reports;
30 * </code>
31 */
32class OrganizationsReports extends \Google\Service\Resource
33{
34 /**
35 * Creates a Custom Report for an Organization. A Custom Report provides Apigee
36 * Customers to create custom dashboards in addition to the standard dashboards
37 * which are provided. The Custom Report in its simplest form contains
38 * specifications about metrics, dimensions and filters. It is important to note
39 * that the custom report by itself does not provide an executable entity. The
40 * Edge UI converts the custom report definition into an analytics query and
41 * displays the result in a chart. (reports.create)
42 *
43 * @param string $parent Required. The parent organization name under which the
44 * Custom Report will be created. Must be of the form:
45 * `organizations/{organization_id}/reports`
46 * @param GoogleCloudApigeeV1CustomReport $postBody
47 * @param array $optParams Optional parameters.
48 * @return GoogleCloudApigeeV1CustomReport
49 * @throws \Google\Service\Exception
50 */
51 public function create($parent, GoogleCloudApigeeV1CustomReport $postBody, $optParams = [])
52 {
53 $params = ['parent' => $parent, 'postBody' => $postBody];
54 $params = array_merge($params, $optParams);
55 return $this->call('create', [$params], GoogleCloudApigeeV1CustomReport::class);
56 }
57 /**
58 * Deletes an existing custom report definition (reports.delete)
59 *
60 * @param string $name Required. Custom Report name of the form:
61 * `organizations/{organization_id}/reports/{report_name}`
62 * @param array $optParams Optional parameters.
63 * @return GoogleCloudApigeeV1DeleteCustomReportResponse
64 * @throws \Google\Service\Exception
65 */
66 public function delete($name, $optParams = [])
67 {
68 $params = ['name' => $name];
69 $params = array_merge($params, $optParams);
70 return $this->call('delete', [$params], GoogleCloudApigeeV1DeleteCustomReportResponse::class);
71 }
72 /**
73 * Retrieve a custom report definition. (reports.get)
74 *
75 * @param string $name Required. Custom Report name of the form:
76 * `organizations/{organization_id}/reports/{report_name}`
77 * @param array $optParams Optional parameters.
78 * @return GoogleCloudApigeeV1CustomReport
79 * @throws \Google\Service\Exception
80 */
81 public function get($name, $optParams = [])
82 {
83 $params = ['name' => $name];
84 $params = array_merge($params, $optParams);
85 return $this->call('get', [$params], GoogleCloudApigeeV1CustomReport::class);
86 }
87 /**
88 * Return a list of Custom Reports (reports.listOrganizationsReports)
89 *
90 * @param string $parent Required. The parent organization name under which the
91 * API product will be listed `organizations/{organization_id}/reports`
92 * @param array $optParams Optional parameters.
93 *
94 * @opt_param bool expand Set to 'true' to get expanded details about each
95 * custom report.
96 * @return GoogleCloudApigeeV1ListCustomReportsResponse
97 * @throws \Google\Service\Exception
98 */
99 public function listOrganizationsReports($parent, $optParams = [])
100 {
101 $params = ['parent' => $parent];
102 $params = array_merge($params, $optParams);
103 return $this->call('list', [$params], GoogleCloudApigeeV1ListCustomReportsResponse::class);
104 }
105 /**
106 * Update an existing custom report definition (reports.update)
107 *
108 * @param string $name Required. Custom Report name of the form:
109 * `organizations/{organization_id}/reports/{report_name}`
110 * @param GoogleCloudApigeeV1CustomReport $postBody
111 * @param array $optParams Optional parameters.
112 * @return GoogleCloudApigeeV1CustomReport
113 * @throws \Google\Service\Exception
114 */
115 public function update($name, GoogleCloudApigeeV1CustomReport $postBody, $optParams = [])
116 {
117 $params = ['name' => $name, 'postBody' => $postBody];
118 $params = array_merge($params, $optParams);
119 return $this->call('update', [$params], GoogleCloudApigeeV1CustomReport::class);
120 }
121}
122
123// Adding a class alias for backwards compatibility with the previous class name.
124class_alias(OrganizationsReports::class, 'Google_Service_Apigee_Resource_OrganizationsReports');
Note: See TracBrowser for help on using the repository browser.