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

View File

@@ -0,0 +1,60 @@
<?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;
class GoogleCloudAdvisorynotificationsV1Attachment extends \Google\Model
{
protected $csvType = GoogleCloudAdvisorynotificationsV1Csv::class;
protected $csvDataType = '';
/**
* @var string
*/
public $displayName;
/**
* @param GoogleCloudAdvisorynotificationsV1Csv
*/
public function setCsv(GoogleCloudAdvisorynotificationsV1Csv $csv)
{
$this->csv = $csv;
}
/**
* @return GoogleCloudAdvisorynotificationsV1Csv
*/
public function getCsv()
{
return $this->csv;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudAdvisorynotificationsV1Attachment::class, 'Google_Service_Advisorynotifications_GoogleCloudAdvisorynotificationsV1Attachment');

View File

@@ -0,0 +1,61 @@
<?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;
class GoogleCloudAdvisorynotificationsV1Csv extends \Google\Collection
{
protected $collection_key = 'headers';
protected $dataRowsType = GoogleCloudAdvisorynotificationsV1CsvCsvRow::class;
protected $dataRowsDataType = 'array';
/**
* @var string[]
*/
public $headers;
/**
* @param GoogleCloudAdvisorynotificationsV1CsvCsvRow[]
*/
public function setDataRows($dataRows)
{
$this->dataRows = $dataRows;
}
/**
* @return GoogleCloudAdvisorynotificationsV1CsvCsvRow[]
*/
public function getDataRows()
{
return $this->dataRows;
}
/**
* @param string[]
*/
public function setHeaders($headers)
{
$this->headers = $headers;
}
/**
* @return string[]
*/
public function getHeaders()
{
return $this->headers;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudAdvisorynotificationsV1Csv::class, 'Google_Service_Advisorynotifications_GoogleCloudAdvisorynotificationsV1Csv');

View File

@@ -0,0 +1,45 @@
<?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;
class GoogleCloudAdvisorynotificationsV1CsvCsvRow extends \Google\Collection
{
protected $collection_key = 'entries';
/**
* @var string[]
*/
public $entries;
/**
* @param string[]
*/
public function setEntries($entries)
{
$this->entries = $entries;
}
/**
* @return string[]
*/
public function getEntries()
{
return $this->entries;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudAdvisorynotificationsV1CsvCsvRow::class, 'Google_Service_Advisorynotifications_GoogleCloudAdvisorynotificationsV1CsvCsvRow');

View File

@@ -0,0 +1,79 @@
<?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;
class GoogleCloudAdvisorynotificationsV1ListNotificationsResponse extends \Google\Collection
{
protected $collection_key = 'notifications';
/**
* @var string
*/
public $nextPageToken;
protected $notificationsType = GoogleCloudAdvisorynotificationsV1Notification::class;
protected $notificationsDataType = 'array';
/**
* @var int
*/
public $totalSize;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param GoogleCloudAdvisorynotificationsV1Notification[]
*/
public function setNotifications($notifications)
{
$this->notifications = $notifications;
}
/**
* @return GoogleCloudAdvisorynotificationsV1Notification[]
*/
public function getNotifications()
{
return $this->notifications;
}
/**
* @param int
*/
public function setTotalSize($totalSize)
{
$this->totalSize = $totalSize;
}
/**
* @return int
*/
public function getTotalSize()
{
return $this->totalSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudAdvisorynotificationsV1ListNotificationsResponse::class, 'Google_Service_Advisorynotifications_GoogleCloudAdvisorynotificationsV1ListNotificationsResponse');

View File

@@ -0,0 +1,95 @@
<?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;
class GoogleCloudAdvisorynotificationsV1Message extends \Google\Collection
{
protected $collection_key = 'attachments';
protected $attachmentsType = GoogleCloudAdvisorynotificationsV1Attachment::class;
protected $attachmentsDataType = 'array';
protected $bodyType = GoogleCloudAdvisorynotificationsV1MessageBody::class;
protected $bodyDataType = '';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $localizationTime;
/**
* @param GoogleCloudAdvisorynotificationsV1Attachment[]
*/
public function setAttachments($attachments)
{
$this->attachments = $attachments;
}
/**
* @return GoogleCloudAdvisorynotificationsV1Attachment[]
*/
public function getAttachments()
{
return $this->attachments;
}
/**
* @param GoogleCloudAdvisorynotificationsV1MessageBody
*/
public function setBody(GoogleCloudAdvisorynotificationsV1MessageBody $body)
{
$this->body = $body;
}
/**
* @return GoogleCloudAdvisorynotificationsV1MessageBody
*/
public function getBody()
{
return $this->body;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setLocalizationTime($localizationTime)
{
$this->localizationTime = $localizationTime;
}
/**
* @return string
*/
public function getLocalizationTime()
{
return $this->localizationTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudAdvisorynotificationsV1Message::class, 'Google_Service_Advisorynotifications_GoogleCloudAdvisorynotificationsV1Message');

View File

@@ -0,0 +1,42 @@
<?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;
class GoogleCloudAdvisorynotificationsV1MessageBody extends \Google\Model
{
protected $textType = GoogleCloudAdvisorynotificationsV1Text::class;
protected $textDataType = '';
/**
* @param GoogleCloudAdvisorynotificationsV1Text
*/
public function setText(GoogleCloudAdvisorynotificationsV1Text $text)
{
$this->text = $text;
}
/**
* @return GoogleCloudAdvisorynotificationsV1Text
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudAdvisorynotificationsV1MessageBody::class, 'Google_Service_Advisorynotifications_GoogleCloudAdvisorynotificationsV1MessageBody');

View File

@@ -0,0 +1,113 @@
<?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;
class GoogleCloudAdvisorynotificationsV1Notification extends \Google\Collection
{
protected $collection_key = 'messages';
/**
* @var string
*/
public $createTime;
protected $messagesType = GoogleCloudAdvisorynotificationsV1Message::class;
protected $messagesDataType = 'array';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $notificationType;
protected $subjectType = GoogleCloudAdvisorynotificationsV1Subject::class;
protected $subjectDataType = '';
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param GoogleCloudAdvisorynotificationsV1Message[]
*/
public function setMessages($messages)
{
$this->messages = $messages;
}
/**
* @return GoogleCloudAdvisorynotificationsV1Message[]
*/
public function getMessages()
{
return $this->messages;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setNotificationType($notificationType)
{
$this->notificationType = $notificationType;
}
/**
* @return string
*/
public function getNotificationType()
{
return $this->notificationType;
}
/**
* @param GoogleCloudAdvisorynotificationsV1Subject
*/
public function setSubject(GoogleCloudAdvisorynotificationsV1Subject $subject)
{
$this->subject = $subject;
}
/**
* @return GoogleCloudAdvisorynotificationsV1Subject
*/
public function getSubject()
{
return $this->subject;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudAdvisorynotificationsV1Notification::class, 'Google_Service_Advisorynotifications_GoogleCloudAdvisorynotificationsV1Notification');

View File

@@ -0,0 +1,44 @@
<?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;
class GoogleCloudAdvisorynotificationsV1NotificationSettings extends \Google\Model
{
/**
* @var bool
*/
public $enabled;
/**
* @param bool
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudAdvisorynotificationsV1NotificationSettings::class, 'Google_Service_Advisorynotifications_GoogleCloudAdvisorynotificationsV1NotificationSettings');

View File

@@ -0,0 +1,78 @@
<?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;
class GoogleCloudAdvisorynotificationsV1Settings extends \Google\Model
{
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $name;
protected $notificationSettingsType = GoogleCloudAdvisorynotificationsV1NotificationSettings::class;
protected $notificationSettingsDataType = 'map';
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param GoogleCloudAdvisorynotificationsV1NotificationSettings[]
*/
public function setNotificationSettings($notificationSettings)
{
$this->notificationSettings = $notificationSettings;
}
/**
* @return GoogleCloudAdvisorynotificationsV1NotificationSettings[]
*/
public function getNotificationSettings()
{
return $this->notificationSettings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudAdvisorynotificationsV1Settings::class, 'Google_Service_Advisorynotifications_GoogleCloudAdvisorynotificationsV1Settings');

View File

@@ -0,0 +1,42 @@
<?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;
class GoogleCloudAdvisorynotificationsV1Subject extends \Google\Model
{
protected $textType = GoogleCloudAdvisorynotificationsV1Text::class;
protected $textDataType = '';
/**
* @param GoogleCloudAdvisorynotificationsV1Text
*/
public function setText(GoogleCloudAdvisorynotificationsV1Text $text)
{
$this->text = $text;
}
/**
* @return GoogleCloudAdvisorynotificationsV1Text
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudAdvisorynotificationsV1Subject::class, 'Google_Service_Advisorynotifications_GoogleCloudAdvisorynotificationsV1Subject');

View File

@@ -0,0 +1,80 @@
<?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;
class GoogleCloudAdvisorynotificationsV1Text extends \Google\Model
{
/**
* @var string
*/
public $enText;
/**
* @var string
*/
public $localizationState;
/**
* @var string
*/
public $localizedText;
/**
* @param string
*/
public function setEnText($enText)
{
$this->enText = $enText;
}
/**
* @return string
*/
public function getEnText()
{
return $this->enText;
}
/**
* @param string
*/
public function setLocalizationState($localizationState)
{
$this->localizationState = $localizationState;
}
/**
* @return string
*/
public function getLocalizationState()
{
return $this->localizationState;
}
/**
* @param string
*/
public function setLocalizedText($localizedText)
{
$this->localizedText = $localizedText;
}
/**
* @return string
*/
public function getLocalizedText()
{
return $this->localizedText;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudAdvisorynotificationsV1Text::class, 'Google_Service_Advisorynotifications_GoogleCloudAdvisorynotificationsV1Text');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');