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; 19 20use Google\Client; 21 22/** 23 * Service definition for Assuredworkloads (v1). 24 * 25 * <p> 26</p> 27 * 28 * <p> 29 * For more information about this service, see the API 30 * <a href="https://cloud.google.com" target="_blank">Documentation</a> 31 * </p> 32 * 33 * @author Google, Inc. 34 */ 35class Assuredworkloads extends \Google\Service 36{ 37 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ 38 const CLOUD_PLATFORM = 39 "https://www.googleapis.com/auth/cloud-platform"; 40 41 public $organizations_locations_operations; 42 public $organizations_locations_workloads; 43 44 /** 45 * Constructs the internal representation of the Assuredworkloads service. 46 * 47 * @param Client|array $clientOrConfig The client used to deliver requests, or a 48 * config array to pass to a new Client instance. 49 * @param string $rootUrl The root URL used for requests to the service. 50 */ 51 public function __construct($clientOrConfig = [], $rootUrl = null) 52 { 53 parent::__construct($clientOrConfig); 54 $this->rootUrl = $rootUrl ?: 'https://assuredworkloads.googleapis.com/'; 55 $this->servicePath = ''; 56 $this->batchPath = 'batch'; 57 $this->version = 'v1'; 58 $this->serviceName = 'assuredworkloads'; 59 60 $this->organizations_locations_operations = new Assuredworkloads\Resource\OrganizationsLocationsOperations( 61 $this, 62 $this->serviceName, 63 'operations', 64 [ 65 'methods' => [ 66 'get' => [ 67 'path' => 'v1/{+name}', 68 'httpMethod' => 'GET', 69 'parameters' => [ 70 'name' => [ 71 'location' => 'path', 72 'type' => 'string', 73 'required' => true, 74 ], 75 ], 76 ],'list' => [ 77 'path' => 'v1/{+name}/operations', 78 'httpMethod' => 'GET', 79 'parameters' => [ 80 'name' => [ 81 'location' => 'path', 82 'type' => 'string', 83 'required' => true, 84 ], 85 'filter' => [ 86 'location' => 'query', 87 'type' => 'string', 88 ], 89 'pageSize' => [ 90 'location' => 'query', 91 'type' => 'integer', 92 ], 93 'pageToken' => [ 94 'location' => 'query', 95 'type' => 'string', 96 ], 97 ], 98 ], 99 ] 100 ] 101 ); 102 $this->organizations_locations_workloads = new Assuredworkloads\Resource\OrganizationsLocationsWorkloads( 103 $this, 104 $this->serviceName, 105 'workloads', 106 [ 107 'methods' => [ 108 'create' => [ 109 'path' => 'v1/{+parent}/workloads', 110 'httpMethod' => 'POST', 111 'parameters' => [ 112 'parent' => [ 113 'location' => 'path', 114 'type' => 'string', 115 'required' => true, 116 ], 117 'externalId' => [ 118 'location' => 'query', 119 'type' => 'string', 120 ], 121 ], 122 ],'delete' => [ 123 'path' => 'v1/{+name}', 124 'httpMethod' => 'DELETE', 125 'parameters' => [ 126 'name' => [ 127 'location' => 'path', 128 'type' => 'string', 129 'required' => true, 130 ], 131 'etag' => [ 132 'location' => 'query', 133 'type' => 'string', 134 ], 135 ], 136 ],'get' => [ 137 'path' => 'v1/{+name}', 138 'httpMethod' => 'GET', 139 'parameters' => [ 140 'name' => [ 141 'location' => 'path', 142 'type' => 'string', 143 'required' => true, 144 ], 145 ], 146 ],'list' => [ 147 'path' => 'v1/{+parent}/workloads', 148 'httpMethod' => 'GET', 149 'parameters' => [ 150 'parent' => [ 151 'location' => 'path', 152 'type' => 'string', 153 'required' => true, 154 ], 155 'filter' => [ 156 'location' => 'query', 157 'type' => 'string', 158 ], 159 'pageSize' => [ 160 'location' => 'query', 161 'type' => 'integer', 162 ], 163 'pageToken' => [ 164 'location' => 'query', 165 'type' => 'string', 166 ], 167 ], 168 ],'patch' => [ 169 'path' => 'v1/{+name}', 170 'httpMethod' => 'PATCH', 171 'parameters' => [ 172 'name' => [ 173 'location' => 'path', 174 'type' => 'string', 175 'required' => true, 176 ], 177 'updateMask' => [ 178 'location' => 'query', 179 'type' => 'string', 180 ], 181 ], 182 ], 183 ] 184 ] 185 ); 186 } 187} 188 189// Adding a class alias for backwards compatibility with the previous class name. 190class_alias(Assuredworkloads::class, 'Google_Service_Assuredworkloads'); 191