source: vendor/google/apiclient-services/src/CloudIAP/Resource/ProjectsBrands.php

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

Upload project files

  • Property mode set to 100644
File size: 3.3 KB
Line 
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\CloudIAP\Resource;
19
20use Google\Service\CloudIAP\Brand;
21use Google\Service\CloudIAP\ListBrandsResponse;
22
23/**
24 * The "brands" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $iapService = new Google\Service\CloudIAP(...);
28 * $brands = $iapService->projects_brands;
29 * </code>
30 */
31class ProjectsBrands extends \Google\Service\Resource
32{
33 /**
34 * Constructs a new OAuth brand for the project if one does not exist. The
35 * created brand is "internal only", meaning that OAuth clients created under it
36 * only accept requests from users who belong to the same Google Workspace
37 * organization as the project. The brand is created in an un-reviewed status.
38 * NOTE: The "internal only" status can be manually changed in the Google Cloud
39 * Console. Requires that a brand does not already exist for the project, and
40 * that the specified support email is owned by the caller. (brands.create)
41 *
42 * @param string $parent Required. GCP Project number/id under which the brand
43 * is to be created. In the following format: projects/{project_number/id}.
44 * @param Brand $postBody
45 * @param array $optParams Optional parameters.
46 * @return Brand
47 * @throws \Google\Service\Exception
48 */
49 public function create($parent, Brand $postBody, $optParams = [])
50 {
51 $params = ['parent' => $parent, 'postBody' => $postBody];
52 $params = array_merge($params, $optParams);
53 return $this->call('create', [$params], Brand::class);
54 }
55 /**
56 * Retrieves the OAuth brand of the project. (brands.get)
57 *
58 * @param string $name Required. Name of the brand to be fetched. In the
59 * following format: projects/{project_number/id}/brands/{brand}.
60 * @param array $optParams Optional parameters.
61 * @return Brand
62 * @throws \Google\Service\Exception
63 */
64 public function get($name, $optParams = [])
65 {
66 $params = ['name' => $name];
67 $params = array_merge($params, $optParams);
68 return $this->call('get', [$params], Brand::class);
69 }
70 /**
71 * Lists the existing brands for the project. (brands.listProjectsBrands)
72 *
73 * @param string $parent Required. GCP Project number/id. In the following
74 * format: projects/{project_number/id}.
75 * @param array $optParams Optional parameters.
76 * @return ListBrandsResponse
77 * @throws \Google\Service\Exception
78 */
79 public function listProjectsBrands($parent, $optParams = [])
80 {
81 $params = ['parent' => $parent];
82 $params = array_merge($params, $optParams);
83 return $this->call('list', [$params], ListBrandsResponse::class);
84 }
85}
86
87// Adding a class alias for backwards compatibility with the previous class name.
88class_alias(ProjectsBrands::class, 'Google_Service_CloudIAP_Resource_ProjectsBrands');
Note: See TracBrowser for help on using the repository browser.