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,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\Essentialcontacts;
class GoogleCloudEssentialcontactsV1ComputeContactsResponse extends \Google\Collection
{
protected $collection_key = 'contacts';
protected $contactsType = GoogleCloudEssentialcontactsV1Contact::class;
protected $contactsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param GoogleCloudEssentialcontactsV1Contact[]
*/
public function setContacts($contacts)
{
$this->contacts = $contacts;
}
/**
* @return GoogleCloudEssentialcontactsV1Contact[]
*/
public function getContacts()
{
return $this->contacts;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudEssentialcontactsV1ComputeContactsResponse::class, 'Google_Service_Essentialcontacts_GoogleCloudEssentialcontactsV1ComputeContactsResponse');

View File

@@ -0,0 +1,135 @@
<?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\Essentialcontacts;
class GoogleCloudEssentialcontactsV1Contact extends \Google\Collection
{
protected $collection_key = 'notificationCategorySubscriptions';
/**
* @var string
*/
public $email;
/**
* @var string
*/
public $languageTag;
/**
* @var string
*/
public $name;
/**
* @var string[]
*/
public $notificationCategorySubscriptions;
/**
* @var string
*/
public $validateTime;
/**
* @var string
*/
public $validationState;
/**
* @param string
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* @param string
*/
public function setLanguageTag($languageTag)
{
$this->languageTag = $languageTag;
}
/**
* @return string
*/
public function getLanguageTag()
{
return $this->languageTag;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string[]
*/
public function setNotificationCategorySubscriptions($notificationCategorySubscriptions)
{
$this->notificationCategorySubscriptions = $notificationCategorySubscriptions;
}
/**
* @return string[]
*/
public function getNotificationCategorySubscriptions()
{
return $this->notificationCategorySubscriptions;
}
/**
* @param string
*/
public function setValidateTime($validateTime)
{
$this->validateTime = $validateTime;
}
/**
* @return string
*/
public function getValidateTime()
{
return $this->validateTime;
}
/**
* @param string
*/
public function setValidationState($validationState)
{
$this->validationState = $validationState;
}
/**
* @return string
*/
public function getValidationState()
{
return $this->validationState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudEssentialcontactsV1Contact::class, 'Google_Service_Essentialcontacts_GoogleCloudEssentialcontactsV1Contact');

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\Essentialcontacts;
class GoogleCloudEssentialcontactsV1ListContactsResponse extends \Google\Collection
{
protected $collection_key = 'contacts';
protected $contactsType = GoogleCloudEssentialcontactsV1Contact::class;
protected $contactsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param GoogleCloudEssentialcontactsV1Contact[]
*/
public function setContacts($contacts)
{
$this->contacts = $contacts;
}
/**
* @return GoogleCloudEssentialcontactsV1Contact[]
*/
public function getContacts()
{
return $this->contacts;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudEssentialcontactsV1ListContactsResponse::class, 'Google_Service_Essentialcontacts_GoogleCloudEssentialcontactsV1ListContactsResponse');

View File

@@ -0,0 +1,63 @@
<?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\Essentialcontacts;
class GoogleCloudEssentialcontactsV1SendTestMessageRequest extends \Google\Collection
{
protected $collection_key = 'contacts';
/**
* @var string[]
*/
public $contacts;
/**
* @var string
*/
public $notificationCategory;
/**
* @param string[]
*/
public function setContacts($contacts)
{
$this->contacts = $contacts;
}
/**
* @return string[]
*/
public function getContacts()
{
return $this->contacts;
}
/**
* @param string
*/
public function setNotificationCategory($notificationCategory)
{
$this->notificationCategory = $notificationCategory;
}
/**
* @return string
*/
public function getNotificationCategory()
{
return $this->notificationCategory;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudEssentialcontactsV1SendTestMessageRequest::class, 'Google_Service_Essentialcontacts_GoogleCloudEssentialcontactsV1SendTestMessageRequest');

View File

@@ -0,0 +1,25 @@
<?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\Essentialcontacts;
class GoogleProtobufEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleProtobufEmpty::class, 'Google_Service_Essentialcontacts_GoogleProtobufEmpty');

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\Essentialcontacts\Resource;
/**
* The "folders" collection of methods.
* Typical usage is:
* <code>
* $essentialcontactsService = new Google\Service\Essentialcontacts(...);
* $folders = $essentialcontactsService->folders;
* </code>
*/
class Folders extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Folders::class, 'Google_Service_Essentialcontacts_Resource_Folders');

View File

@@ -0,0 +1,186 @@
<?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\Essentialcontacts\Resource;
use Google\Service\Essentialcontacts\GoogleCloudEssentialcontactsV1ComputeContactsResponse;
use Google\Service\Essentialcontacts\GoogleCloudEssentialcontactsV1Contact;
use Google\Service\Essentialcontacts\GoogleCloudEssentialcontactsV1ListContactsResponse;
use Google\Service\Essentialcontacts\GoogleCloudEssentialcontactsV1SendTestMessageRequest;
use Google\Service\Essentialcontacts\GoogleProtobufEmpty;
/**
* The "contacts" collection of methods.
* Typical usage is:
* <code>
* $essentialcontactsService = new Google\Service\Essentialcontacts(...);
* $contacts = $essentialcontactsService->folders_contacts;
* </code>
*/
class FoldersContacts extends \Google\Service\Resource
{
/**
* Lists all contacts for the resource that are subscribed to the specified
* notification categories, including contacts inherited from any parent
* resources. (contacts.compute)
*
* @param string $parent Required. The name of the resource to compute contacts
* for. Format: organizations/{organization_id}, folders/{folder_id} or
* projects/{project_id}
* @param array $optParams Optional parameters.
*
* @opt_param string notificationCategories The categories of notifications to
* compute contacts for. If ALL is included in this list, contacts subscribed to
* any notification category will be returned.
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* `next_page_token` in the response indicates that more results might be
* available. If not specified, the default page_size is 100.
* @opt_param string pageToken Optional. If present, retrieves the next batch of
* results from the preceding call to this method. `page_token` must be the
* value of `next_page_token` from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return GoogleCloudEssentialcontactsV1ComputeContactsResponse
* @throws \Google\Service\Exception
*/
public function compute($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('compute', [$params], GoogleCloudEssentialcontactsV1ComputeContactsResponse::class);
}
/**
* Adds a new contact for a resource. (contacts.create)
*
* @param string $parent Required. The resource to save this contact for.
* Format: organizations/{organization_id}, folders/{folder_id} or
* projects/{project_id}
* @param GoogleCloudEssentialcontactsV1Contact $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudEssentialcontactsV1Contact
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudEssentialcontactsV1Contact $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudEssentialcontactsV1Contact::class);
}
/**
* Deletes a contact. (contacts.delete)
*
* @param string $name Required. The name of the contact to delete. Format:
* organizations/{organization_id}/contacts/{contact_id},
* folders/{folder_id}/contacts/{contact_id} or
* projects/{project_id}/contacts/{contact_id}
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Gets a single contact. (contacts.get)
*
* @param string $name Required. The name of the contact to retrieve. Format:
* organizations/{organization_id}/contacts/{contact_id},
* folders/{folder_id}/contacts/{contact_id} or
* projects/{project_id}/contacts/{contact_id}
* @param array $optParams Optional parameters.
* @return GoogleCloudEssentialcontactsV1Contact
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudEssentialcontactsV1Contact::class);
}
/**
* Lists the contacts that have been set on a resource.
* (contacts.listFoldersContacts)
*
* @param string $parent Required. The parent resource name. Format:
* organizations/{organization_id}, folders/{folder_id} or projects/{project_id}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* `next_page_token` in the response indicates that more results might be
* available. If not specified, the default page_size is 100.
* @opt_param string pageToken Optional. If present, retrieves the next batch of
* results from the preceding call to this method. `page_token` must be the
* value of `next_page_token` from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return GoogleCloudEssentialcontactsV1ListContactsResponse
* @throws \Google\Service\Exception
*/
public function listFoldersContacts($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudEssentialcontactsV1ListContactsResponse::class);
}
/**
* Updates a contact. Note: A contact's email address cannot be changed.
* (contacts.patch)
*
* @param string $name Output only. The identifier for the contact. Format:
* {resource_type}/{resource_id}/contacts/{contact_id}
* @param GoogleCloudEssentialcontactsV1Contact $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. The update mask applied to the
* resource. For the `FieldMask` definition, see
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#fieldmask
* @return GoogleCloudEssentialcontactsV1Contact
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudEssentialcontactsV1Contact $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudEssentialcontactsV1Contact::class);
}
/**
* Allows a contact admin to send a test message to contact to verify that it
* has been configured correctly. (contacts.sendTestMessage)
*
* @param string $resource Required. The name of the resource to send the test
* message for. All contacts must either be set directly on this resource or
* inherited from another resource that is an ancestor of this one. Format:
* organizations/{organization_id}, folders/{folder_id} or projects/{project_id}
* @param GoogleCloudEssentialcontactsV1SendTestMessageRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function sendTestMessage($resource, GoogleCloudEssentialcontactsV1SendTestMessageRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('sendTestMessage', [$params], GoogleProtobufEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersContacts::class, 'Google_Service_Essentialcontacts_Resource_FoldersContacts');

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\Essentialcontacts\Resource;
/**
* The "organizations" collection of methods.
* Typical usage is:
* <code>
* $essentialcontactsService = new Google\Service\Essentialcontacts(...);
* $organizations = $essentialcontactsService->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_Essentialcontacts_Resource_Organizations');

View File

@@ -0,0 +1,186 @@
<?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\Essentialcontacts\Resource;
use Google\Service\Essentialcontacts\GoogleCloudEssentialcontactsV1ComputeContactsResponse;
use Google\Service\Essentialcontacts\GoogleCloudEssentialcontactsV1Contact;
use Google\Service\Essentialcontacts\GoogleCloudEssentialcontactsV1ListContactsResponse;
use Google\Service\Essentialcontacts\GoogleCloudEssentialcontactsV1SendTestMessageRequest;
use Google\Service\Essentialcontacts\GoogleProtobufEmpty;
/**
* The "contacts" collection of methods.
* Typical usage is:
* <code>
* $essentialcontactsService = new Google\Service\Essentialcontacts(...);
* $contacts = $essentialcontactsService->organizations_contacts;
* </code>
*/
class OrganizationsContacts extends \Google\Service\Resource
{
/**
* Lists all contacts for the resource that are subscribed to the specified
* notification categories, including contacts inherited from any parent
* resources. (contacts.compute)
*
* @param string $parent Required. The name of the resource to compute contacts
* for. Format: organizations/{organization_id}, folders/{folder_id} or
* projects/{project_id}
* @param array $optParams Optional parameters.
*
* @opt_param string notificationCategories The categories of notifications to
* compute contacts for. If ALL is included in this list, contacts subscribed to
* any notification category will be returned.
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* `next_page_token` in the response indicates that more results might be
* available. If not specified, the default page_size is 100.
* @opt_param string pageToken Optional. If present, retrieves the next batch of
* results from the preceding call to this method. `page_token` must be the
* value of `next_page_token` from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return GoogleCloudEssentialcontactsV1ComputeContactsResponse
* @throws \Google\Service\Exception
*/
public function compute($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('compute', [$params], GoogleCloudEssentialcontactsV1ComputeContactsResponse::class);
}
/**
* Adds a new contact for a resource. (contacts.create)
*
* @param string $parent Required. The resource to save this contact for.
* Format: organizations/{organization_id}, folders/{folder_id} or
* projects/{project_id}
* @param GoogleCloudEssentialcontactsV1Contact $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudEssentialcontactsV1Contact
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudEssentialcontactsV1Contact $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudEssentialcontactsV1Contact::class);
}
/**
* Deletes a contact. (contacts.delete)
*
* @param string $name Required. The name of the contact to delete. Format:
* organizations/{organization_id}/contacts/{contact_id},
* folders/{folder_id}/contacts/{contact_id} or
* projects/{project_id}/contacts/{contact_id}
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Gets a single contact. (contacts.get)
*
* @param string $name Required. The name of the contact to retrieve. Format:
* organizations/{organization_id}/contacts/{contact_id},
* folders/{folder_id}/contacts/{contact_id} or
* projects/{project_id}/contacts/{contact_id}
* @param array $optParams Optional parameters.
* @return GoogleCloudEssentialcontactsV1Contact
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudEssentialcontactsV1Contact::class);
}
/**
* Lists the contacts that have been set on a resource.
* (contacts.listOrganizationsContacts)
*
* @param string $parent Required. The parent resource name. Format:
* organizations/{organization_id}, folders/{folder_id} or projects/{project_id}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* `next_page_token` in the response indicates that more results might be
* available. If not specified, the default page_size is 100.
* @opt_param string pageToken Optional. If present, retrieves the next batch of
* results from the preceding call to this method. `page_token` must be the
* value of `next_page_token` from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return GoogleCloudEssentialcontactsV1ListContactsResponse
* @throws \Google\Service\Exception
*/
public function listOrganizationsContacts($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudEssentialcontactsV1ListContactsResponse::class);
}
/**
* Updates a contact. Note: A contact's email address cannot be changed.
* (contacts.patch)
*
* @param string $name Output only. The identifier for the contact. Format:
* {resource_type}/{resource_id}/contacts/{contact_id}
* @param GoogleCloudEssentialcontactsV1Contact $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. The update mask applied to the
* resource. For the `FieldMask` definition, see
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#fieldmask
* @return GoogleCloudEssentialcontactsV1Contact
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudEssentialcontactsV1Contact $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudEssentialcontactsV1Contact::class);
}
/**
* Allows a contact admin to send a test message to contact to verify that it
* has been configured correctly. (contacts.sendTestMessage)
*
* @param string $resource Required. The name of the resource to send the test
* message for. All contacts must either be set directly on this resource or
* inherited from another resource that is an ancestor of this one. Format:
* organizations/{organization_id}, folders/{folder_id} or projects/{project_id}
* @param GoogleCloudEssentialcontactsV1SendTestMessageRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function sendTestMessage($resource, GoogleCloudEssentialcontactsV1SendTestMessageRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('sendTestMessage', [$params], GoogleProtobufEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsContacts::class, 'Google_Service_Essentialcontacts_Resource_OrganizationsContacts');

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\Essentialcontacts\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $essentialcontactsService = new Google\Service\Essentialcontacts(...);
* $projects = $essentialcontactsService->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_Essentialcontacts_Resource_Projects');

View File

@@ -0,0 +1,186 @@
<?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\Essentialcontacts\Resource;
use Google\Service\Essentialcontacts\GoogleCloudEssentialcontactsV1ComputeContactsResponse;
use Google\Service\Essentialcontacts\GoogleCloudEssentialcontactsV1Contact;
use Google\Service\Essentialcontacts\GoogleCloudEssentialcontactsV1ListContactsResponse;
use Google\Service\Essentialcontacts\GoogleCloudEssentialcontactsV1SendTestMessageRequest;
use Google\Service\Essentialcontacts\GoogleProtobufEmpty;
/**
* The "contacts" collection of methods.
* Typical usage is:
* <code>
* $essentialcontactsService = new Google\Service\Essentialcontacts(...);
* $contacts = $essentialcontactsService->projects_contacts;
* </code>
*/
class ProjectsContacts extends \Google\Service\Resource
{
/**
* Lists all contacts for the resource that are subscribed to the specified
* notification categories, including contacts inherited from any parent
* resources. (contacts.compute)
*
* @param string $parent Required. The name of the resource to compute contacts
* for. Format: organizations/{organization_id}, folders/{folder_id} or
* projects/{project_id}
* @param array $optParams Optional parameters.
*
* @opt_param string notificationCategories The categories of notifications to
* compute contacts for. If ALL is included in this list, contacts subscribed to
* any notification category will be returned.
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* `next_page_token` in the response indicates that more results might be
* available. If not specified, the default page_size is 100.
* @opt_param string pageToken Optional. If present, retrieves the next batch of
* results from the preceding call to this method. `page_token` must be the
* value of `next_page_token` from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return GoogleCloudEssentialcontactsV1ComputeContactsResponse
* @throws \Google\Service\Exception
*/
public function compute($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('compute', [$params], GoogleCloudEssentialcontactsV1ComputeContactsResponse::class);
}
/**
* Adds a new contact for a resource. (contacts.create)
*
* @param string $parent Required. The resource to save this contact for.
* Format: organizations/{organization_id}, folders/{folder_id} or
* projects/{project_id}
* @param GoogleCloudEssentialcontactsV1Contact $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudEssentialcontactsV1Contact
* @throws \Google\Service\Exception
*/
public function create($parent, GoogleCloudEssentialcontactsV1Contact $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleCloudEssentialcontactsV1Contact::class);
}
/**
* Deletes a contact. (contacts.delete)
*
* @param string $name Required. The name of the contact to delete. Format:
* organizations/{organization_id}/contacts/{contact_id},
* folders/{folder_id}/contacts/{contact_id} or
* projects/{project_id}/contacts/{contact_id}
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Gets a single contact. (contacts.get)
*
* @param string $name Required. The name of the contact to retrieve. Format:
* organizations/{organization_id}/contacts/{contact_id},
* folders/{folder_id}/contacts/{contact_id} or
* projects/{project_id}/contacts/{contact_id}
* @param array $optParams Optional parameters.
* @return GoogleCloudEssentialcontactsV1Contact
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudEssentialcontactsV1Contact::class);
}
/**
* Lists the contacts that have been set on a resource.
* (contacts.listProjectsContacts)
*
* @param string $parent Required. The parent resource name. Format:
* organizations/{organization_id}, folders/{folder_id} or projects/{project_id}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* `next_page_token` in the response indicates that more results might be
* available. If not specified, the default page_size is 100.
* @opt_param string pageToken Optional. If present, retrieves the next batch of
* results from the preceding call to this method. `page_token` must be the
* value of `next_page_token` from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return GoogleCloudEssentialcontactsV1ListContactsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsContacts($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudEssentialcontactsV1ListContactsResponse::class);
}
/**
* Updates a contact. Note: A contact's email address cannot be changed.
* (contacts.patch)
*
* @param string $name Output only. The identifier for the contact. Format:
* {resource_type}/{resource_id}/contacts/{contact_id}
* @param GoogleCloudEssentialcontactsV1Contact $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. The update mask applied to the
* resource. For the `FieldMask` definition, see
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#fieldmask
* @return GoogleCloudEssentialcontactsV1Contact
* @throws \Google\Service\Exception
*/
public function patch($name, GoogleCloudEssentialcontactsV1Contact $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], GoogleCloudEssentialcontactsV1Contact::class);
}
/**
* Allows a contact admin to send a test message to contact to verify that it
* has been configured correctly. (contacts.sendTestMessage)
*
* @param string $resource Required. The name of the resource to send the test
* message for. All contacts must either be set directly on this resource or
* inherited from another resource that is an ancestor of this one. Format:
* organizations/{organization_id}, folders/{folder_id} or projects/{project_id}
* @param GoogleCloudEssentialcontactsV1SendTestMessageRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function sendTestMessage($resource, GoogleCloudEssentialcontactsV1SendTestMessageRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('sendTestMessage', [$params], GoogleProtobufEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsContacts::class, 'Google_Service_Essentialcontacts_Resource_ProjectsContacts');