Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions
@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Advisorynotifications\Resource;
/**
* The "organizations" collection of methods.
* Typical usage is:
* <code>
* $advisorynotificationsService = new Google\Service\Advisorynotifications(...);
* $organizations = $advisorynotificationsService->organizations;
* </code>
*/
class Organizations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Organizations::class, 'Google_Service_Advisorynotifications_Resource_Organizations');
@@ -0,0 +1,68 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Advisorynotifications\Resource;
use Google\Service\Advisorynotifications\GoogleCloudAdvisorynotificationsV1Settings;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $advisorynotificationsService = new Google\Service\Advisorynotifications(...);
* $locations = $advisorynotificationsService->organizations_locations;
* </code>
*/
class OrganizationsLocations extends \Google\Service\Resource
{
/**
* Get notification settings. (locations.getSettings)
*
* @param string $name Required. The resource name of the settings to retrieve.
* Format: organizations/{organization}/locations/{location}/settings or
* projects/{projects}/locations/{location}/settings.
* @param array $optParams Optional parameters.
* @return GoogleCloudAdvisorynotificationsV1Settings
* @throws \Google\Service\Exception
*/
public function getSettings($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getSettings', [$params], GoogleCloudAdvisorynotificationsV1Settings::class);
}
/**
* Update notification settings. (locations.updateSettings)
*
* @param string $name Identifier. The resource name of the settings to
* retrieve. Format: organizations/{organization}/locations/{location}/settings
* or projects/{projects}/locations/{location}/settings.
* @param GoogleCloudAdvisorynotificationsV1Settings $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudAdvisorynotificationsV1Settings
* @throws \Google\Service\Exception
*/
public function updateSettings($name, GoogleCloudAdvisorynotificationsV1Settings $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateSettings', [$params], GoogleCloudAdvisorynotificationsV1Settings::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsLocations::class, 'Google_Service_Advisorynotifications_Resource_OrganizationsLocations');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Advisorynotifications\Resource;
use Google\Service\Advisorynotifications\GoogleCloudAdvisorynotificationsV1ListNotificationsResponse;
use Google\Service\Advisorynotifications\GoogleCloudAdvisorynotificationsV1Notification;
/**
* The "notifications" collection of methods.
* Typical usage is:
* <code>
* $advisorynotificationsService = new Google\Service\Advisorynotifications(...);
* $notifications = $advisorynotificationsService->organizations_locations_notifications;
* </code>
*/
class OrganizationsLocationsNotifications extends \Google\Service\Resource
{
/**
* Gets a notification. (notifications.get)
*
* @param string $name Required. A name of the notification to retrieve. Format:
* organizations/{organization}/locations/{location}/notifications/{notification
* } or projects/{projects}/locations/{location}/notifications/{notification}.
* @param array $optParams Optional parameters.
*
* @opt_param string languageCode ISO code for requested localization language.
* If unset, will be interpereted as "en". If the requested language is valid,
* but not supported for this notification, English will be returned with an
* "Not applicable" LocalizationState. If the ISO code is invalid (i.e. not a
* real language), this RPC will throw an error.
* @return GoogleCloudAdvisorynotificationsV1Notification
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudAdvisorynotificationsV1Notification::class);
}
/**
* Lists notifications under a given parent.
* (notifications.listOrganizationsLocationsNotifications)
*
* @param string $parent Required. The parent, which owns this collection of
* notifications. Must be of the form
* "organizations/{organization}/locations/{location}" or
* "projects/{project}/locations/{location}".
* @param array $optParams Optional parameters.
*
* @opt_param string languageCode ISO code for requested localization language.
* If unset, will be interpereted as "en". If the requested language is valid,
* but not supported for this notification, English will be returned with an
* "Not applicable" LocalizationState. If the ISO code is invalid (i.e. not a
* real language), this RPC will throw an error.
* @opt_param int pageSize The maximum number of notifications to return. The
* service may return fewer than this value. If unspecified or equal to 0, at
* most 50 notifications will be returned. The maximum value is 50; values above
* 50 will be coerced to 50.
* @opt_param string pageToken A page token returned from a previous request.
* When paginating, all other parameters provided in the request must match the
* call that returned the page token.
* @opt_param string view Specifies which parts of the notification resource
* should be returned in the response.
* @return GoogleCloudAdvisorynotificationsV1ListNotificationsResponse
* @throws \Google\Service\Exception
*/
public function listOrganizationsLocationsNotifications($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudAdvisorynotificationsV1ListNotificationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsLocationsNotifications::class, 'Google_Service_Advisorynotifications_Resource_OrganizationsLocationsNotifications');
@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Advisorynotifications\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $advisorynotificationsService = new Google\Service\Advisorynotifications(...);
* $projects = $advisorynotificationsService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_Advisorynotifications_Resource_Projects');
@@ -0,0 +1,68 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Advisorynotifications\Resource;
use Google\Service\Advisorynotifications\GoogleCloudAdvisorynotificationsV1Settings;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $advisorynotificationsService = new Google\Service\Advisorynotifications(...);
* $locations = $advisorynotificationsService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Get notification settings. (locations.getSettings)
*
* @param string $name Required. The resource name of the settings to retrieve.
* Format: organizations/{organization}/locations/{location}/settings or
* projects/{projects}/locations/{location}/settings.
* @param array $optParams Optional parameters.
* @return GoogleCloudAdvisorynotificationsV1Settings
* @throws \Google\Service\Exception
*/
public function getSettings($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getSettings', [$params], GoogleCloudAdvisorynotificationsV1Settings::class);
}
/**
* Update notification settings. (locations.updateSettings)
*
* @param string $name Identifier. The resource name of the settings to
* retrieve. Format: organizations/{organization}/locations/{location}/settings
* or projects/{projects}/locations/{location}/settings.
* @param GoogleCloudAdvisorynotificationsV1Settings $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudAdvisorynotificationsV1Settings
* @throws \Google\Service\Exception
*/
public function updateSettings($name, GoogleCloudAdvisorynotificationsV1Settings $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateSettings', [$params], GoogleCloudAdvisorynotificationsV1Settings::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_Advisorynotifications_Resource_ProjectsLocations');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Advisorynotifications\Resource;
use Google\Service\Advisorynotifications\GoogleCloudAdvisorynotificationsV1ListNotificationsResponse;
use Google\Service\Advisorynotifications\GoogleCloudAdvisorynotificationsV1Notification;
/**
* The "notifications" collection of methods.
* Typical usage is:
* <code>
* $advisorynotificationsService = new Google\Service\Advisorynotifications(...);
* $notifications = $advisorynotificationsService->projects_locations_notifications;
* </code>
*/
class ProjectsLocationsNotifications extends \Google\Service\Resource
{
/**
* Gets a notification. (notifications.get)
*
* @param string $name Required. A name of the notification to retrieve. Format:
* organizations/{organization}/locations/{location}/notifications/{notification
* } or projects/{projects}/locations/{location}/notifications/{notification}.
* @param array $optParams Optional parameters.
*
* @opt_param string languageCode ISO code for requested localization language.
* If unset, will be interpereted as "en". If the requested language is valid,
* but not supported for this notification, English will be returned with an
* "Not applicable" LocalizationState. If the ISO code is invalid (i.e. not a
* real language), this RPC will throw an error.
* @return GoogleCloudAdvisorynotificationsV1Notification
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudAdvisorynotificationsV1Notification::class);
}
/**
* Lists notifications under a given parent.
* (notifications.listProjectsLocationsNotifications)
*
* @param string $parent Required. The parent, which owns this collection of
* notifications. Must be of the form
* "organizations/{organization}/locations/{location}" or
* "projects/{project}/locations/{location}".
* @param array $optParams Optional parameters.
*
* @opt_param string languageCode ISO code for requested localization language.
* If unset, will be interpereted as "en". If the requested language is valid,
* but not supported for this notification, English will be returned with an
* "Not applicable" LocalizationState. If the ISO code is invalid (i.e. not a
* real language), this RPC will throw an error.
* @opt_param int pageSize The maximum number of notifications to return. The
* service may return fewer than this value. If unspecified or equal to 0, at
* most 50 notifications will be returned. The maximum value is 50; values above
* 50 will be coerced to 50.
* @opt_param string pageToken A page token returned from a previous request.
* When paginating, all other parameters provided in the request must match the
* call that returned the page token.
* @opt_param string view Specifies which parts of the notification resource
* should be returned in the response.
* @return GoogleCloudAdvisorynotificationsV1ListNotificationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsNotifications($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudAdvisorynotificationsV1ListNotificationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsNotifications::class, 'Google_Service_Advisorynotifications_Resource_ProjectsLocationsNotifications');