diff --git a/src/Baremetalsolution.php b/src/Baremetalsolution.php new file mode 100644 index 0000000000..9a4fa1c5bd --- /dev/null +++ b/src/Baremetalsolution.php @@ -0,0 +1,84 @@ + + * Provides ways to manage Bare Metal Solution hardware installed in a regional + * extension located near a Google Cloud data center.

+ * + *

+ * For more information about this service, see the API + * Documentation + *

+ * + * @author Google, Inc. + */ +class Baremetalsolution extends \Google\Service +{ + /** See, edit, configure, and delete your Google Cloud Platform data. */ + const CLOUD_PLATFORM = + "https://www.googleapis.com/auth/cloud-platform"; + + public $projects_locations_instances; + + /** + * Constructs the internal representation of the Baremetalsolution service. + * + * @param Client|array $clientOrConfig The client used to deliver requests, or a + * config array to pass to a new Client instance. + * @param string $rootUrl The root URL used for requests to the service. + */ + public function __construct($clientOrConfig = [], $rootUrl = null) + { + parent::__construct($clientOrConfig); + $this->rootUrl = $rootUrl ?: 'https://baremetalsolution.googleapis.com/'; + $this->servicePath = ''; + $this->batchPath = 'batch'; + $this->version = 'v1'; + $this->serviceName = 'baremetalsolution'; + + $this->projects_locations_instances = new Baremetalsolution\Resource\ProjectsLocationsInstances( + $this, + $this->serviceName, + 'instances', + [ + 'methods' => [ + 'resetInstance' => [ + 'path' => 'v1/{+instance}:resetInstance', + 'httpMethod' => 'POST', + 'parameters' => [ + 'instance' => [ + 'location' => 'path', + 'type' => 'string', + 'required' => true, + ], + ], + ], + ] + ] + ); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Baremetalsolution::class, 'Google_Service_Baremetalsolution'); diff --git a/src/Baremetalsolution/ResetInstanceRequest.php b/src/Baremetalsolution/ResetInstanceRequest.php new file mode 100644 index 0000000000..34e5e3c5a7 --- /dev/null +++ b/src/Baremetalsolution/ResetInstanceRequest.php @@ -0,0 +1,25 @@ + + * $baremetalsolutionService = new Google\Service\Baremetalsolution(...); + * $projects = $baremetalsolutionService->projects; + * + */ +class Projects extends \Google\Service\Resource +{ +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(Projects::class, 'Google_Service_Baremetalsolution_Resource_Projects'); diff --git a/src/Baremetalsolution/Resource/ProjectsLocations.php b/src/Baremetalsolution/Resource/ProjectsLocations.php new file mode 100644 index 0000000000..99c3126f37 --- /dev/null +++ b/src/Baremetalsolution/Resource/ProjectsLocations.php @@ -0,0 +1,33 @@ + + * $baremetalsolutionService = new Google\Service\Baremetalsolution(...); + * $locations = $baremetalsolutionService->locations; + * + */ +class ProjectsLocations extends \Google\Service\Resource +{ +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ProjectsLocations::class, 'Google_Service_Baremetalsolution_Resource_ProjectsLocations'); diff --git a/src/Baremetalsolution/Resource/ProjectsLocationsInstances.php b/src/Baremetalsolution/Resource/ProjectsLocationsInstances.php new file mode 100644 index 0000000000..c24b322c9f --- /dev/null +++ b/src/Baremetalsolution/Resource/ProjectsLocationsInstances.php @@ -0,0 +1,51 @@ + + * $baremetalsolutionService = new Google\Service\Baremetalsolution(...); + * $instances = $baremetalsolutionService->instances; + * + */ +class ProjectsLocationsInstances extends \Google\Service\Resource +{ + /** + * Perform an ungraceful, hard reset on a machine (equivalent to shutting the + * power off, and then turning it back on). (instances.resetInstance) + * + * @param string $instance Required. Name of the instance to reset. + * @param ResetInstanceRequest $postBody + * @param array $optParams Optional parameters. + * @return ResetInstanceResponse + */ + public function resetInstance($instance, ResetInstanceRequest $postBody, $optParams = []) + { + $params = ['instance' => $instance, 'postBody' => $postBody]; + $params = array_merge($params, $optParams); + return $this->call('resetInstance', [$params], ResetInstanceResponse::class); + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(ProjectsLocationsInstances::class, 'Google_Service_Baremetalsolution_Resource_ProjectsLocationsInstances'); diff --git a/src/Monitoring/Service.php b/src/Monitoring/Service.php index 5bc5a3b4bf..86db0e714b 100644 --- a/src/Monitoring/Service.php +++ b/src/Monitoring/Service.php @@ -35,6 +35,7 @@ class Service extends \Google\Model public $name; protected $telemetryType = Telemetry::class; protected $telemetryDataType = ''; + public $userLabels; /** * @param AppEngine @@ -150,6 +151,14 @@ public function getTelemetry() { return $this->telemetry; } + public function setUserLabels($userLabels) + { + $this->userLabels = $userLabels; + } + public function getUserLabels() + { + return $this->userLabels; + } } // Adding a class alias for backwards compatibility with the previous class name. diff --git a/synth.metadata b/synth.metadata index 418fb7b987..3d5b79e926 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-php-client-services.git", - "sha": "822c5ca70c0b22502779816ebdb1dfa0bc1f3724" + "sha": "dc256c732782fd5eacc7955138367cdf55570565" } }, { "git": { "name": "discovery-artifact-manager", "remote": "https://github.com/googleapis/discovery-artifact-manager.git", - "sha": "c3d7a801902617a8e76979d90442d372cd083911" + "sha": "45d378d59cfc5932aa6458068d5aebd93751718c" } } ]