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
18/**
19 * Service definition for Baremetalsolution (v1).
20 *
21 * <p>
22 * Bare Metal Solution provides hardware to run specialized workloads with low
23 * latency on Google Cloud.</p>
24 *
25 * <p>
26 * For more information about this service, see the API
27 * <a href="https://cloud.google.com/bare-metal" target="_blank">Documentation</a>
28 * </p>
29 *
30 * @author Google, Inc.
31 */
32class Google_Service_Baremetalsolution extends Google_Service
33{
34  /** See, edit, configure, and delete your Google Cloud Platform data. */
35  const CLOUD_PLATFORM =
36      "https://www.googleapis.com/auth/cloud-platform";
37
38  public $projects_locations_instances;
39
40  /**
41   * Constructs the internal representation of the Baremetalsolution service.
42   *
43   * @param Google_Client $client The client used to deliver requests.
44   * @param string $rootUrl The root URL used for requests to the service.
45   */
46  public function __construct(Google_Client $client, $rootUrl = null)
47  {
48    parent::__construct($client);
49    $this->rootUrl = $rootUrl ?: 'https://baremetalsolution.googleapis.com/';
50    $this->servicePath = '';
51    $this->batchPath = 'batch';
52    $this->version = 'v1';
53    $this->serviceName = 'baremetalsolution';
54
55    $this->projects_locations_instances = new Google_Service_Baremetalsolution_Resource_ProjectsLocationsInstances(
56        $this,
57        $this->serviceName,
58        'instances',
59        array(
60          'methods' => array(
61            'resetInstance' => array(
62              'path' => 'v1/{+instance}:resetInstance',
63              'httpMethod' => 'POST',
64              'parameters' => array(
65                'instance' => array(
66                  'location' => 'path',
67                  'type' => 'string',
68                  'required' => true,
69                ),
70              ),
71            ),
72          )
73        )
74    );
75  }
76}
77