gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,92 @@
<?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\WorkspaceEvents;
class APIKeySecurityScheme extends \Google\Model
{
/**
* Description of this security scheme.
*
* @var string
*/
public $description;
/**
* Location of the API key, valid values are "query", "header", or "cookie"
*
* @var string
*/
public $location;
/**
* Name of the header, query or cookie parameter to be used.
*
* @var string
*/
public $name;
/**
* Description of this security scheme.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Location of the API key, valid values are "query", "header", or "cookie"
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Name of the header, query or cookie parameter to be used.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(APIKeySecurityScheme::class, 'Google_Service_WorkspaceEvents_APIKeySecurityScheme');
@@ -0,0 +1,89 @@
<?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\WorkspaceEvents;
class AgentCapabilities extends \Google\Collection
{
protected $collection_key = 'extensions';
protected $extensionsType = AgentExtension::class;
protected $extensionsDataType = 'array';
/**
* If the agent can send push notifications to the clients webhook
*
* @var bool
*/
public $pushNotifications;
/**
* If the agent will support streaming responses
*
* @var bool
*/
public $streaming;
/**
* Extensions supported by this agent.
*
* @param AgentExtension[] $extensions
*/
public function setExtensions($extensions)
{
$this->extensions = $extensions;
}
/**
* @return AgentExtension[]
*/
public function getExtensions()
{
return $this->extensions;
}
/**
* If the agent can send push notifications to the clients webhook
*
* @param bool $pushNotifications
*/
public function setPushNotifications($pushNotifications)
{
$this->pushNotifications = $pushNotifications;
}
/**
* @return bool
*/
public function getPushNotifications()
{
return $this->pushNotifications;
}
/**
* If the agent will support streaming responses
*
* @param bool $streaming
*/
public function setStreaming($streaming)
{
$this->streaming = $streaming;
}
/**
* @return bool
*/
public function getStreaming()
{
return $this->streaming;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentCapabilities::class, 'Google_Service_WorkspaceEvents_AgentCapabilities');
@@ -0,0 +1,416 @@
<?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\WorkspaceEvents;
class AgentCard extends \Google\Collection
{
protected $collection_key = 'skills';
protected $additionalInterfacesType = AgentInterface::class;
protected $additionalInterfacesDataType = 'array';
protected $capabilitiesType = AgentCapabilities::class;
protected $capabilitiesDataType = '';
/**
* protolint:enable REPEATED_FIELD_NAMES_PLURALIZED The set of interaction
* modes that the agent supports across all skills. This can be overridden per
* skill. Defined as mime types.
*
* @var string[]
*/
public $defaultInputModes;
/**
* The mime types supported as outputs from this agent.
*
* @var string[]
*/
public $defaultOutputModes;
/**
* A description of the agent's domain of action/solution space. Example:
* "Agent that helps users with recipes and cooking."
*
* @var string
*/
public $description;
/**
* A url to provide additional documentation about the agent.
*
* @var string
*/
public $documentationUrl;
/**
* An optional URL to an icon for the agent.
*
* @var string
*/
public $iconUrl;
/**
* A human readable name for the agent. Example: "Recipe Agent"
*
* @var string
*/
public $name;
/**
* The transport of the preferred endpoint. If empty, defaults to JSONRPC.
*
* @var string
*/
public $preferredTransport;
/**
* The version of the A2A protocol this agent supports.
*
* @var string
*/
public $protocolVersion;
protected $providerType = AgentProvider::class;
protected $providerDataType = '';
protected $securityType = Security::class;
protected $securityDataType = 'array';
protected $securitySchemesType = SecurityScheme::class;
protected $securitySchemesDataType = 'map';
protected $signaturesType = AgentCardSignature::class;
protected $signaturesDataType = 'array';
protected $skillsType = AgentSkill::class;
protected $skillsDataType = 'array';
/**
* Whether the agent supports providing an extended agent card when the user
* is authenticated, i.e. is the card from .well-known different than the card
* from GetAgentCard.
*
* @var bool
*/
public $supportsAuthenticatedExtendedCard;
/**
* A URL to the address the agent is hosted at. This represents the preferred
* endpoint as declared by the agent.
*
* @var string
*/
public $url;
/**
* The version of the agent. Example: "1.0.0"
*
* @var string
*/
public $version;
/**
* Announcement of additional supported transports. Client can use any of the
* supported transports.
*
* @param AgentInterface[] $additionalInterfaces
*/
public function setAdditionalInterfaces($additionalInterfaces)
{
$this->additionalInterfaces = $additionalInterfaces;
}
/**
* @return AgentInterface[]
*/
public function getAdditionalInterfaces()
{
return $this->additionalInterfaces;
}
/**
* A2A Capability set supported by the agent.
*
* @param AgentCapabilities $capabilities
*/
public function setCapabilities(AgentCapabilities $capabilities)
{
$this->capabilities = $capabilities;
}
/**
* @return AgentCapabilities
*/
public function getCapabilities()
{
return $this->capabilities;
}
/**
* protolint:enable REPEATED_FIELD_NAMES_PLURALIZED The set of interaction
* modes that the agent supports across all skills. This can be overridden per
* skill. Defined as mime types.
*
* @param string[] $defaultInputModes
*/
public function setDefaultInputModes($defaultInputModes)
{
$this->defaultInputModes = $defaultInputModes;
}
/**
* @return string[]
*/
public function getDefaultInputModes()
{
return $this->defaultInputModes;
}
/**
* The mime types supported as outputs from this agent.
*
* @param string[] $defaultOutputModes
*/
public function setDefaultOutputModes($defaultOutputModes)
{
$this->defaultOutputModes = $defaultOutputModes;
}
/**
* @return string[]
*/
public function getDefaultOutputModes()
{
return $this->defaultOutputModes;
}
/**
* A description of the agent's domain of action/solution space. Example:
* "Agent that helps users with recipes and cooking."
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* A url to provide additional documentation about the agent.
*
* @param string $documentationUrl
*/
public function setDocumentationUrl($documentationUrl)
{
$this->documentationUrl = $documentationUrl;
}
/**
* @return string
*/
public function getDocumentationUrl()
{
return $this->documentationUrl;
}
/**
* An optional URL to an icon for the agent.
*
* @param string $iconUrl
*/
public function setIconUrl($iconUrl)
{
$this->iconUrl = $iconUrl;
}
/**
* @return string
*/
public function getIconUrl()
{
return $this->iconUrl;
}
/**
* A human readable name for the agent. Example: "Recipe Agent"
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The transport of the preferred endpoint. If empty, defaults to JSONRPC.
*
* @param string $preferredTransport
*/
public function setPreferredTransport($preferredTransport)
{
$this->preferredTransport = $preferredTransport;
}
/**
* @return string
*/
public function getPreferredTransport()
{
return $this->preferredTransport;
}
/**
* The version of the A2A protocol this agent supports.
*
* @param string $protocolVersion
*/
public function setProtocolVersion($protocolVersion)
{
$this->protocolVersion = $protocolVersion;
}
/**
* @return string
*/
public function getProtocolVersion()
{
return $this->protocolVersion;
}
/**
* The service provider of the agent.
*
* @param AgentProvider $provider
*/
public function setProvider(AgentProvider $provider)
{
$this->provider = $provider;
}
/**
* @return AgentProvider
*/
public function getProvider()
{
return $this->provider;
}
/**
* protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Security requirements for
* contacting the agent. This list can be seen as an OR of ANDs. Each object
* in the list describes one possible set of security requirements that must
* be present on a request. This allows specifying, for example, "callers must
* either use OAuth OR an API Key AND mTLS." Example: security { schemes {
* key: "oauth" value { list: ["read"] } } } security { schemes { key: "api-
* key" } schemes { key: "mtls" } }
*
* @param Security[] $security
*/
public function setSecurity($security)
{
$this->security = $security;
}
/**
* @return Security[]
*/
public function getSecurity()
{
return $this->security;
}
/**
* The security scheme details used for authenticating with this agent.
*
* @param SecurityScheme[] $securitySchemes
*/
public function setSecuritySchemes($securitySchemes)
{
$this->securitySchemes = $securitySchemes;
}
/**
* @return SecurityScheme[]
*/
public function getSecuritySchemes()
{
return $this->securitySchemes;
}
/**
* JSON Web Signatures computed for this AgentCard.
*
* @param AgentCardSignature[] $signatures
*/
public function setSignatures($signatures)
{
$this->signatures = $signatures;
}
/**
* @return AgentCardSignature[]
*/
public function getSignatures()
{
return $this->signatures;
}
/**
* Skills represent a unit of ability an agent can perform. This may somewhat
* abstract but represents a more focused set of actions that the agent is
* highly likely to succeed at.
*
* @param AgentSkill[] $skills
*/
public function setSkills($skills)
{
$this->skills = $skills;
}
/**
* @return AgentSkill[]
*/
public function getSkills()
{
return $this->skills;
}
/**
* Whether the agent supports providing an extended agent card when the user
* is authenticated, i.e. is the card from .well-known different than the card
* from GetAgentCard.
*
* @param bool $supportsAuthenticatedExtendedCard
*/
public function setSupportsAuthenticatedExtendedCard($supportsAuthenticatedExtendedCard)
{
$this->supportsAuthenticatedExtendedCard = $supportsAuthenticatedExtendedCard;
}
/**
* @return bool
*/
public function getSupportsAuthenticatedExtendedCard()
{
return $this->supportsAuthenticatedExtendedCard;
}
/**
* A URL to the address the agent is hosted at. This represents the preferred
* endpoint as declared by the agent.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
/**
* The version of the agent. Example: "1.0.0"
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentCard::class, 'Google_Service_WorkspaceEvents_AgentCard');
@@ -0,0 +1,94 @@
<?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\WorkspaceEvents;
class AgentCardSignature extends \Google\Model
{
/**
* The unprotected JWS header values.
*
* @var array[]
*/
public $header;
/**
* Required. The protected JWS header for the signature. This is always a
* base64url-encoded JSON object. Required.
*
* @var string
*/
public $protected;
/**
* Required. The computed signature, base64url-encoded. Required.
*
* @var string
*/
public $signature;
/**
* The unprotected JWS header values.
*
* @param array[] $header
*/
public function setHeader($header)
{
$this->header = $header;
}
/**
* @return array[]
*/
public function getHeader()
{
return $this->header;
}
/**
* Required. The protected JWS header for the signature. This is always a
* base64url-encoded JSON object. Required.
*
* @param string $protected
*/
public function setProtected($protected)
{
$this->protected = $protected;
}
/**
* @return string
*/
public function getProtected()
{
return $this->protected;
}
/**
* Required. The computed signature, base64url-encoded. Required.
*
* @param string $signature
*/
public function setSignature($signature)
{
$this->signature = $signature;
}
/**
* @return string
*/
public function getSignature()
{
return $this->signature;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentCardSignature::class, 'Google_Service_WorkspaceEvents_AgentCardSignature');
@@ -0,0 +1,120 @@
<?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\WorkspaceEvents;
class AgentExtension extends \Google\Model
{
/**
* A description of how this agent uses this extension. Example: "Google OAuth
* 2.0 authentication"
*
* @var string
*/
public $description;
/**
* Optional configuration for the extension.
*
* @var array[]
*/
public $params;
/**
* Whether the client must follow specific requirements of the extension.
* Example: false
*
* @var bool
*/
public $required;
/**
* The URI of the extension. Example:
* "https://developers.google.com/identity/protocols/oauth2"
*
* @var string
*/
public $uri;
/**
* A description of how this agent uses this extension. Example: "Google OAuth
* 2.0 authentication"
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional configuration for the extension.
*
* @param array[] $params
*/
public function setParams($params)
{
$this->params = $params;
}
/**
* @return array[]
*/
public function getParams()
{
return $this->params;
}
/**
* Whether the client must follow specific requirements of the extension.
* Example: false
*
* @param bool $required
*/
public function setRequired($required)
{
$this->required = $required;
}
/**
* @return bool
*/
public function getRequired()
{
return $this->required;
}
/**
* The URI of the extension. Example:
* "https://developers.google.com/identity/protocols/oauth2"
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentExtension::class, 'Google_Service_WorkspaceEvents_AgentExtension');
@@ -0,0 +1,74 @@
<?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\WorkspaceEvents;
class AgentInterface extends \Google\Model
{
/**
* The transport supported this url. This is an open form string, to be easily
* extended for many transport protocols. The core ones officially supported
* are JSONRPC, GRPC and HTTP+JSON.
*
* @var string
*/
public $transport;
/**
* The url this interface is found at.
*
* @var string
*/
public $url;
/**
* The transport supported this url. This is an open form string, to be easily
* extended for many transport protocols. The core ones officially supported
* are JSONRPC, GRPC and HTTP+JSON.
*
* @param string $transport
*/
public function setTransport($transport)
{
$this->transport = $transport;
}
/**
* @return string
*/
public function getTransport()
{
return $this->transport;
}
/**
* The url this interface is found at.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentInterface::class, 'Google_Service_WorkspaceEvents_AgentInterface');
@@ -0,0 +1,70 @@
<?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\WorkspaceEvents;
class AgentProvider extends \Google\Model
{
/**
* The providers organization name Example: "Google"
*
* @var string
*/
public $organization;
/**
* The providers reference url Example: "https://ai.google.dev"
*
* @var string
*/
public $url;
/**
* The providers organization name Example: "Google"
*
* @param string $organization
*/
public function setOrganization($organization)
{
$this->organization = $organization;
}
/**
* @return string
*/
public function getOrganization()
{
return $this->organization;
}
/**
* The providers reference url Example: "https://ai.google.dev"
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentProvider::class, 'Google_Service_WorkspaceEvents_AgentProvider');
@@ -0,0 +1,210 @@
<?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\WorkspaceEvents;
class AgentSkill extends \Google\Collection
{
protected $collection_key = 'tags';
/**
* A human (or llm) readable description of the skill details and behaviors.
*
* @var string
*/
public $description;
/**
* A set of example queries that this skill is designed to address. These
* examples should help the caller to understand how to craft requests to the
* agent to achieve specific goals. Example: ["I need a recipe for bread"]
*
* @var string[]
*/
public $examples;
/**
* Unique identifier of the skill within this agent.
*
* @var string
*/
public $id;
/**
* Possible input modalities supported.
*
* @var string[]
*/
public $inputModes;
/**
* A human readable name for the skill.
*
* @var string
*/
public $name;
/**
* Possible output modalities produced
*
* @var string[]
*/
public $outputModes;
protected $securityType = Security::class;
protected $securityDataType = 'array';
/**
* A set of tags for the skill to enhance categorization/utilization. Example:
* ["cooking", "customer support", "billing"]
*
* @var string[]
*/
public $tags;
/**
* A human (or llm) readable description of the skill details and behaviors.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* A set of example queries that this skill is designed to address. These
* examples should help the caller to understand how to craft requests to the
* agent to achieve specific goals. Example: ["I need a recipe for bread"]
*
* @param string[] $examples
*/
public function setExamples($examples)
{
$this->examples = $examples;
}
/**
* @return string[]
*/
public function getExamples()
{
return $this->examples;
}
/**
* Unique identifier of the skill within this agent.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Possible input modalities supported.
*
* @param string[] $inputModes
*/
public function setInputModes($inputModes)
{
$this->inputModes = $inputModes;
}
/**
* @return string[]
*/
public function getInputModes()
{
return $this->inputModes;
}
/**
* A human readable name for the skill.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Possible output modalities produced
*
* @param string[] $outputModes
*/
public function setOutputModes($outputModes)
{
$this->outputModes = $outputModes;
}
/**
* @return string[]
*/
public function getOutputModes()
{
return $this->outputModes;
}
/**
* protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Security schemes
* necessary for the agent to leverage this skill. As in the overall
* AgentCard.security, this list represents a logical OR of security
* requirement objects. Each object is a set of security schemes that must be
* used together (a logical AND). protolint:enable
* REPEATED_FIELD_NAMES_PLURALIZED
*
* @param Security[] $security
*/
public function setSecurity($security)
{
$this->security = $security;
}
/**
* @return Security[]
*/
public function getSecurity()
{
return $this->security;
}
/**
* A set of tags for the skill to enhance categorization/utilization. Example:
* ["cooking", "customer support", "billing"]
*
* @param string[] $tags
*/
public function setTags($tags)
{
$this->tags = $tags;
}
/**
* @return string[]
*/
public function getTags()
{
return $this->tags;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AgentSkill::class, 'Google_Service_WorkspaceEvents_AgentSkill');
@@ -0,0 +1,157 @@
<?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\WorkspaceEvents;
class Artifact extends \Google\Collection
{
protected $collection_key = 'parts';
/**
* Unique identifier (e.g. UUID) for the artifact. It must be at least unique
* within a task.
*
* @var string
*/
public $artifactId;
/**
* A human readable description of the artifact, optional.
*
* @var string
*/
public $description;
/**
* The URIs of extensions that are present or contributed to this Artifact.
*
* @var string[]
*/
public $extensions;
/**
* Optional metadata included with the artifact.
*
* @var array[]
*/
public $metadata;
/**
* A human readable name for the artifact.
*
* @var string
*/
public $name;
protected $partsType = Part::class;
protected $partsDataType = 'array';
/**
* Unique identifier (e.g. UUID) for the artifact. It must be at least unique
* within a task.
*
* @param string $artifactId
*/
public function setArtifactId($artifactId)
{
$this->artifactId = $artifactId;
}
/**
* @return string
*/
public function getArtifactId()
{
return $this->artifactId;
}
/**
* A human readable description of the artifact, optional.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The URIs of extensions that are present or contributed to this Artifact.
*
* @param string[] $extensions
*/
public function setExtensions($extensions)
{
$this->extensions = $extensions;
}
/**
* @return string[]
*/
public function getExtensions()
{
return $this->extensions;
}
/**
* Optional metadata included with the artifact.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* A human readable name for the artifact.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The content of the artifact.
*
* @param Part[] $parts
*/
public function setParts($parts)
{
$this->parts = $parts;
}
/**
* @return Part[]
*/
public function getParts()
{
return $this->parts;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Artifact::class, 'Google_Service_WorkspaceEvents_Artifact');
@@ -0,0 +1,71 @@
<?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\WorkspaceEvents;
class AuthenticationInfo extends \Google\Collection
{
protected $collection_key = 'schemes';
/**
* Optional credentials
*
* @var string
*/
public $credentials;
/**
* Supported authentication schemes - e.g. Basic, Bearer, etc
*
* @var string[]
*/
public $schemes;
/**
* Optional credentials
*
* @param string $credentials
*/
public function setCredentials($credentials)
{
$this->credentials = $credentials;
}
/**
* @return string
*/
public function getCredentials()
{
return $this->credentials;
}
/**
* Supported authentication schemes - e.g. Basic, Bearer, etc
*
* @param string[] $schemes
*/
public function setSchemes($schemes)
{
$this->schemes = $schemes;
}
/**
* @return string[]
*/
public function getSchemes()
{
return $this->schemes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthenticationInfo::class, 'Google_Service_WorkspaceEvents_AuthenticationInfo');
@@ -0,0 +1,122 @@
<?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\WorkspaceEvents;
class AuthorizationCodeOAuthFlow extends \Google\Model
{
/**
* The authorization URL to be used for this flow. This MUST be in the form of
* a URL. The OAuth2 standard requires the use of TLS
*
* @var string
*/
public $authorizationUrl;
/**
* The URL to be used for obtaining refresh tokens. This MUST be in the form
* of a URL. The OAuth2 standard requires the use of TLS.
*
* @var string
*/
public $refreshUrl;
/**
* The available scopes for the OAuth2 security scheme. A map between the
* scope name and a short description for it. The map MAY be empty.
*
* @var string[]
*/
public $scopes;
/**
* The token URL to be used for this flow. This MUST be in the form of a URL.
* The OAuth2 standard requires the use of TLS.
*
* @var string
*/
public $tokenUrl;
/**
* The authorization URL to be used for this flow. This MUST be in the form of
* a URL. The OAuth2 standard requires the use of TLS
*
* @param string $authorizationUrl
*/
public function setAuthorizationUrl($authorizationUrl)
{
$this->authorizationUrl = $authorizationUrl;
}
/**
* @return string
*/
public function getAuthorizationUrl()
{
return $this->authorizationUrl;
}
/**
* The URL to be used for obtaining refresh tokens. This MUST be in the form
* of a URL. The OAuth2 standard requires the use of TLS.
*
* @param string $refreshUrl
*/
public function setRefreshUrl($refreshUrl)
{
$this->refreshUrl = $refreshUrl;
}
/**
* @return string
*/
public function getRefreshUrl()
{
return $this->refreshUrl;
}
/**
* The available scopes for the OAuth2 security scheme. A map between the
* scope name and a short description for it. The map MAY be empty.
*
* @param string[] $scopes
*/
public function setScopes($scopes)
{
$this->scopes = $scopes;
}
/**
* @return string[]
*/
public function getScopes()
{
return $this->scopes;
}
/**
* The token URL to be used for this flow. This MUST be in the form of a URL.
* The OAuth2 standard requires the use of TLS.
*
* @param string $tokenUrl
*/
public function setTokenUrl($tokenUrl)
{
$this->tokenUrl = $tokenUrl;
}
/**
* @return string
*/
public function getTokenUrl()
{
return $this->tokenUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthorizationCodeOAuthFlow::class, 'Google_Service_WorkspaceEvents_AuthorizationCodeOAuthFlow');
@@ -0,0 +1,50 @@
<?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\WorkspaceEvents;
class CancelTaskRequest extends \Google\Model
{
/**
* Optional tenant, provided as a path parameter. Experimental, might still
* change for 1.0 release.
*
* @var string
*/
public $tenant;
/**
* Optional tenant, provided as a path parameter. Experimental, might still
* change for 1.0 release.
*
* @param string $tenant
*/
public function setTenant($tenant)
{
$this->tenant = $tenant;
}
/**
* @return string
*/
public function getTenant()
{
return $this->tenant;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelTaskRequest::class, 'Google_Service_WorkspaceEvents_CancelTaskRequest');
@@ -0,0 +1,98 @@
<?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\WorkspaceEvents;
class ClientCredentialsOAuthFlow extends \Google\Model
{
/**
* The URL to be used for obtaining refresh tokens. This MUST be in the form
* of a URL. The OAuth2 standard requires the use of TLS.
*
* @var string
*/
public $refreshUrl;
/**
* The available scopes for the OAuth2 security scheme. A map between the
* scope name and a short description for it. The map MAY be empty.
*
* @var string[]
*/
public $scopes;
/**
* The token URL to be used for this flow. This MUST be in the form of a URL.
* The OAuth2 standard requires the use of TLS.
*
* @var string
*/
public $tokenUrl;
/**
* The URL to be used for obtaining refresh tokens. This MUST be in the form
* of a URL. The OAuth2 standard requires the use of TLS.
*
* @param string $refreshUrl
*/
public function setRefreshUrl($refreshUrl)
{
$this->refreshUrl = $refreshUrl;
}
/**
* @return string
*/
public function getRefreshUrl()
{
return $this->refreshUrl;
}
/**
* The available scopes for the OAuth2 security scheme. A map between the
* scope name and a short description for it. The map MAY be empty.
*
* @param string[] $scopes
*/
public function setScopes($scopes)
{
$this->scopes = $scopes;
}
/**
* @return string[]
*/
public function getScopes()
{
return $this->scopes;
}
/**
* The token URL to be used for this flow. This MUST be in the form of a URL.
* The OAuth2 standard requires the use of TLS.
*
* @param string $tokenUrl
*/
public function setTokenUrl($tokenUrl)
{
$this->tokenUrl = $tokenUrl;
}
/**
* @return string
*/
public function getTokenUrl()
{
return $this->tokenUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClientCredentialsOAuthFlow::class, 'Google_Service_WorkspaceEvents_ClientCredentialsOAuthFlow');
@@ -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\WorkspaceEvents;
class DataPart extends \Google\Model
{
/**
* @var array[]
*/
public $data;
/**
* @param array[] $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return array[]
*/
public function getData()
{
return $this->data;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DataPart::class, 'Google_Service_WorkspaceEvents_DataPart');
@@ -0,0 +1,64 @@
<?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\WorkspaceEvents;
class DriveOptions extends \Google\Model
{
/**
* Optional. Immutable. For subscriptions to Google Drive events, whether to
* receive events about Drive files that are children of the target folder or
* shared drive. * If `false`, the subscription only receives events about
* changes to the folder or shared drive that's specified as the
* `targetResource`. * If `true`, the `mimeType` field of the `file` resource
* must be set to `application/vnd.google-apps.folder`. For details, see
* [Google Drive event
* types](https://developers.google.com/workspace/events/guides/events-
* drive#event-types).
*
* @var bool
*/
public $includeDescendants;
/**
* Optional. Immutable. For subscriptions to Google Drive events, whether to
* receive events about Drive files that are children of the target folder or
* shared drive. * If `false`, the subscription only receives events about
* changes to the folder or shared drive that's specified as the
* `targetResource`. * If `true`, the `mimeType` field of the `file` resource
* must be set to `application/vnd.google-apps.folder`. For details, see
* [Google Drive event
* types](https://developers.google.com/workspace/events/guides/events-
* drive#event-types).
*
* @param bool $includeDescendants
*/
public function setIncludeDescendants($includeDescendants)
{
$this->includeDescendants = $includeDescendants;
}
/**
* @return bool
*/
public function getIncludeDescendants()
{
return $this->includeDescendants;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DriveOptions::class, 'Google_Service_WorkspaceEvents_DriveOptions');
@@ -0,0 +1,98 @@
<?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\WorkspaceEvents;
class FilePart extends \Google\Model
{
/**
* @var string
*/
public $fileWithBytes;
/**
* @var string
*/
public $fileWithUri;
/**
* @var string
*/
public $mimeType;
/**
* @var string
*/
public $name;
/**
* @param string $fileWithBytes
*/
public function setFileWithBytes($fileWithBytes)
{
$this->fileWithBytes = $fileWithBytes;
}
/**
* @return string
*/
public function getFileWithBytes()
{
return $this->fileWithBytes;
}
/**
* @param string $fileWithUri
*/
public function setFileWithUri($fileWithUri)
{
$this->fileWithUri = $fileWithUri;
}
/**
* @return string
*/
public function getFileWithUri()
{
return $this->fileWithUri;
}
/**
* @param string $mimeType
*/
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
/**
* @return string
*/
public function getMimeType()
{
return $this->mimeType;
}
/**
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FilePart::class, 'Google_Service_WorkspaceEvents_FilePart');
@@ -0,0 +1,102 @@
<?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\WorkspaceEvents;
class HTTPAuthSecurityScheme extends \Google\Model
{
/**
* A hint to the client to identify how the bearer token is formatted. Bearer
* tokens are usually generated by an authorization server, so this
* information is primarily for documentation purposes.
*
* @var string
*/
public $bearerFormat;
/**
* Description of this security scheme.
*
* @var string
*/
public $description;
/**
* The name of the HTTP Authentication scheme to be used in the Authorization
* header as defined in RFC7235. The values used SHOULD be registered in the
* IANA Authentication Scheme registry. The value is case-insensitive, as
* defined in RFC7235.
*
* @var string
*/
public $scheme;
/**
* A hint to the client to identify how the bearer token is formatted. Bearer
* tokens are usually generated by an authorization server, so this
* information is primarily for documentation purposes.
*
* @param string $bearerFormat
*/
public function setBearerFormat($bearerFormat)
{
$this->bearerFormat = $bearerFormat;
}
/**
* @return string
*/
public function getBearerFormat()
{
return $this->bearerFormat;
}
/**
* Description of this security scheme.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The name of the HTTP Authentication scheme to be used in the Authorization
* header as defined in RFC7235. The values used SHOULD be registered in the
* IANA Authentication Scheme registry. The value is case-insensitive, as
* defined in RFC7235.
*
* @param string $scheme
*/
public function setScheme($scheme)
{
$this->scheme = $scheme;
}
/**
* @return string
*/
public function getScheme()
{
return $this->scheme;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HTTPAuthSecurityScheme::class, 'Google_Service_WorkspaceEvents_HTTPAuthSecurityScheme');
@@ -0,0 +1,98 @@
<?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\WorkspaceEvents;
class ImplicitOAuthFlow extends \Google\Model
{
/**
* The authorization URL to be used for this flow. This MUST be in the form of
* a URL. The OAuth2 standard requires the use of TLS
*
* @var string
*/
public $authorizationUrl;
/**
* The URL to be used for obtaining refresh tokens. This MUST be in the form
* of a URL. The OAuth2 standard requires the use of TLS.
*
* @var string
*/
public $refreshUrl;
/**
* The available scopes for the OAuth2 security scheme. A map between the
* scope name and a short description for it. The map MAY be empty.
*
* @var string[]
*/
public $scopes;
/**
* The authorization URL to be used for this flow. This MUST be in the form of
* a URL. The OAuth2 standard requires the use of TLS
*
* @param string $authorizationUrl
*/
public function setAuthorizationUrl($authorizationUrl)
{
$this->authorizationUrl = $authorizationUrl;
}
/**
* @return string
*/
public function getAuthorizationUrl()
{
return $this->authorizationUrl;
}
/**
* The URL to be used for obtaining refresh tokens. This MUST be in the form
* of a URL. The OAuth2 standard requires the use of TLS.
*
* @param string $refreshUrl
*/
public function setRefreshUrl($refreshUrl)
{
$this->refreshUrl = $refreshUrl;
}
/**
* @return string
*/
public function getRefreshUrl()
{
return $this->refreshUrl;
}
/**
* The available scopes for the OAuth2 security scheme. A map between the
* scope name and a short description for it. The map MAY be empty.
*
* @param string[] $scopes
*/
public function setScopes($scopes)
{
$this->scopes = $scopes;
}
/**
* @return string[]
*/
public function getScopes()
{
return $this->scopes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ImplicitOAuthFlow::class, 'Google_Service_WorkspaceEvents_ImplicitOAuthFlow');
@@ -0,0 +1,69 @@
<?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\WorkspaceEvents;
class ListSubscriptionsResponse extends \Google\Collection
{
protected $collection_key = 'subscriptions';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
protected $subscriptionsType = Subscription::class;
protected $subscriptionsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* List of subscriptions.
*
* @param Subscription[] $subscriptions
*/
public function setSubscriptions($subscriptions)
{
$this->subscriptions = $subscriptions;
}
/**
* @return Subscription[]
*/
public function getSubscriptions()
{
return $this->subscriptions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListSubscriptionsResponse::class, 'Google_Service_WorkspaceEvents_ListSubscriptionsResponse');
@@ -0,0 +1,69 @@
<?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\WorkspaceEvents;
class ListTaskPushNotificationConfigResponse extends \Google\Collection
{
protected $collection_key = 'configs';
protected $configsType = TaskPushNotificationConfig::class;
protected $configsDataType = 'array';
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* The list of push notification configurations.
*
* @param TaskPushNotificationConfig[] $configs
*/
public function setConfigs($configs)
{
$this->configs = $configs;
}
/**
* @return TaskPushNotificationConfig[]
*/
public function getConfigs()
{
return $this->configs;
}
/**
* A token, which can be sent as `page_token` to retrieve the next page. If
* this field is omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
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(ListTaskPushNotificationConfigResponse::class, 'Google_Service_WorkspaceEvents_ListTaskPushNotificationConfigResponse');
@@ -0,0 +1,197 @@
<?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\WorkspaceEvents;
class Message extends \Google\Collection
{
public const ROLE_ROLE_UNSPECIFIED = 'ROLE_UNSPECIFIED';
/**
* USER role refers to communication from the client to the server.
*/
public const ROLE_ROLE_USER = 'ROLE_USER';
/**
* AGENT role refers to communication from the server to the client.
*/
public const ROLE_ROLE_AGENT = 'ROLE_AGENT';
protected $collection_key = 'extensions';
protected $contentType = Part::class;
protected $contentDataType = 'array';
/**
* The context id of the message. This is optional and if set, the message
* will be associated with the given context.
*
* @var string
*/
public $contextId;
/**
* The URIs of extensions that are present or contributed to this Message.
*
* @var string[]
*/
public $extensions;
/**
* The unique identifier (e.g. UUID)of the message. This is required and
* created by the message creator.
*
* @var string
*/
public $messageId;
/**
* protolint:enable REPEATED_FIELD_NAMES_PLURALIZED Any optional metadata to
* provide along with the message.
*
* @var array[]
*/
public $metadata;
/**
* A role for the message.
*
* @var string
*/
public $role;
/**
* The task id of the message. This is optional and if set, the message will
* be associated with the given task.
*
* @var string
*/
public $taskId;
/**
* protolint:disable REPEATED_FIELD_NAMES_PLURALIZED Content is the container
* of the message content.
*
* @param Part[] $content
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return Part[]
*/
public function getContent()
{
return $this->content;
}
/**
* The context id of the message. This is optional and if set, the message
* will be associated with the given context.
*
* @param string $contextId
*/
public function setContextId($contextId)
{
$this->contextId = $contextId;
}
/**
* @return string
*/
public function getContextId()
{
return $this->contextId;
}
/**
* The URIs of extensions that are present or contributed to this Message.
*
* @param string[] $extensions
*/
public function setExtensions($extensions)
{
$this->extensions = $extensions;
}
/**
* @return string[]
*/
public function getExtensions()
{
return $this->extensions;
}
/**
* The unique identifier (e.g. UUID)of the message. This is required and
* created by the message creator.
*
* @param string $messageId
*/
public function setMessageId($messageId)
{
$this->messageId = $messageId;
}
/**
* @return string
*/
public function getMessageId()
{
return $this->messageId;
}
/**
* protolint:enable REPEATED_FIELD_NAMES_PLURALIZED Any optional metadata to
* provide along with the message.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* A role for the message.
*
* Accepted values: ROLE_UNSPECIFIED, ROLE_USER, ROLE_AGENT
*
* @param self::ROLE_* $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return self::ROLE_*
*/
public function getRole()
{
return $this->role;
}
/**
* The task id of the message. This is optional and if set, the message will
* be associated with the given task.
*
* @param string $taskId
*/
public function setTaskId($taskId)
{
$this->taskId = $taskId;
}
/**
* @return string
*/
public function getTaskId()
{
return $this->taskId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Message::class, 'Google_Service_WorkspaceEvents_Message');
@@ -0,0 +1,48 @@
<?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\WorkspaceEvents;
class MutualTlsSecurityScheme extends \Google\Model
{
/**
* Description of this security scheme.
*
* @var string
*/
public $description;
/**
* Description of this security scheme.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MutualTlsSecurityScheme::class, 'Google_Service_WorkspaceEvents_MutualTlsSecurityScheme');
@@ -0,0 +1,72 @@
<?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\WorkspaceEvents;
class NotificationEndpoint extends \Google\Model
{
/**
* Immutable. The Pub/Sub topic that receives events for the subscription.
* Format: `projects/{project}/topics/{topic}` You must create the topic in
* the same Google Cloud project where you create this subscription. Note: The
* Google Workspace Events API uses [ordering
* keys](https://cloud.google.com/pubsub/docs/ordering) for the benefit of
* sequential events. If the Cloud Pub/Sub topic has a [message storage
* policy](https://cloud.google.com/pubsub/docs/resource-location-
* restriction#exceptions) configured to exclude the nearest Google Cloud
* region, publishing events with ordering keys will fail. When the topic
* receives events, the events are encoded as Pub/Sub messages. For details,
* see the [Google Cloud Pub/Sub Protocol Binding for
* CloudEvents](https://github.com/googleapis/google-
* cloudevents/blob/main/docs/spec/pubsub.md).
*
* @var string
*/
public $pubsubTopic;
/**
* Immutable. The Pub/Sub topic that receives events for the subscription.
* Format: `projects/{project}/topics/{topic}` You must create the topic in
* the same Google Cloud project where you create this subscription. Note: The
* Google Workspace Events API uses [ordering
* keys](https://cloud.google.com/pubsub/docs/ordering) for the benefit of
* sequential events. If the Cloud Pub/Sub topic has a [message storage
* policy](https://cloud.google.com/pubsub/docs/resource-location-
* restriction#exceptions) configured to exclude the nearest Google Cloud
* region, publishing events with ordering keys will fail. When the topic
* receives events, the events are encoded as Pub/Sub messages. For details,
* see the [Google Cloud Pub/Sub Protocol Binding for
* CloudEvents](https://github.com/googleapis/google-
* cloudevents/blob/main/docs/spec/pubsub.md).
*
* @param string $pubsubTopic
*/
public function setPubsubTopic($pubsubTopic)
{
$this->pubsubTopic = $pubsubTopic;
}
/**
* @return string
*/
public function getPubsubTopic()
{
return $this->pubsubTopic;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NotificationEndpoint::class, 'Google_Service_WorkspaceEvents_NotificationEndpoint');
@@ -0,0 +1,90 @@
<?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\WorkspaceEvents;
class OAuth2SecurityScheme extends \Google\Model
{
/**
* Description of this security scheme.
*
* @var string
*/
public $description;
protected $flowsType = OAuthFlows::class;
protected $flowsDataType = '';
/**
* URL to the oauth2 authorization server metadata
* [RFC8414](https://datatracker.ietf.org/doc/html/rfc8414). TLS is required.
*
* @var string
*/
public $oauth2MetadataUrl;
/**
* Description of this security scheme.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* An object containing configuration information for the flow types supported
*
* @param OAuthFlows $flows
*/
public function setFlows(OAuthFlows $flows)
{
$this->flows = $flows;
}
/**
* @return OAuthFlows
*/
public function getFlows()
{
return $this->flows;
}
/**
* URL to the oauth2 authorization server metadata
* [RFC8414](https://datatracker.ietf.org/doc/html/rfc8414). TLS is required.
*
* @param string $oauth2MetadataUrl
*/
public function setOauth2MetadataUrl($oauth2MetadataUrl)
{
$this->oauth2MetadataUrl = $oauth2MetadataUrl;
}
/**
* @return string
*/
public function getOauth2MetadataUrl()
{
return $this->oauth2MetadataUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OAuth2SecurityScheme::class, 'Google_Service_WorkspaceEvents_OAuth2SecurityScheme');
@@ -0,0 +1,90 @@
<?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\WorkspaceEvents;
class OAuthFlows extends \Google\Model
{
protected $authorizationCodeType = AuthorizationCodeOAuthFlow::class;
protected $authorizationCodeDataType = '';
protected $clientCredentialsType = ClientCredentialsOAuthFlow::class;
protected $clientCredentialsDataType = '';
protected $implicitType = ImplicitOAuthFlow::class;
protected $implicitDataType = '';
protected $passwordType = PasswordOAuthFlow::class;
protected $passwordDataType = '';
/**
* @param AuthorizationCodeOAuthFlow $authorizationCode
*/
public function setAuthorizationCode(AuthorizationCodeOAuthFlow $authorizationCode)
{
$this->authorizationCode = $authorizationCode;
}
/**
* @return AuthorizationCodeOAuthFlow
*/
public function getAuthorizationCode()
{
return $this->authorizationCode;
}
/**
* @param ClientCredentialsOAuthFlow $clientCredentials
*/
public function setClientCredentials(ClientCredentialsOAuthFlow $clientCredentials)
{
$this->clientCredentials = $clientCredentials;
}
/**
* @return ClientCredentialsOAuthFlow
*/
public function getClientCredentials()
{
return $this->clientCredentials;
}
/**
* @param ImplicitOAuthFlow $implicit
*/
public function setImplicit(ImplicitOAuthFlow $implicit)
{
$this->implicit = $implicit;
}
/**
* @return ImplicitOAuthFlow
*/
public function getImplicit()
{
return $this->implicit;
}
/**
* @param PasswordOAuthFlow $password
*/
public function setPassword(PasswordOAuthFlow $password)
{
$this->password = $password;
}
/**
* @return PasswordOAuthFlow
*/
public function getPassword()
{
return $this->password;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OAuthFlows::class, 'Google_Service_WorkspaceEvents_OAuthFlows');
@@ -0,0 +1,72 @@
<?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\WorkspaceEvents;
class OpenIdConnectSecurityScheme extends \Google\Model
{
/**
* Description of this security scheme.
*
* @var string
*/
public $description;
/**
* Well-known URL to discover the [[OpenID-Connect-Discovery]] provider
* metadata.
*
* @var string
*/
public $openIdConnectUrl;
/**
* Description of this security scheme.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Well-known URL to discover the [[OpenID-Connect-Discovery]] provider
* metadata.
*
* @param string $openIdConnectUrl
*/
public function setOpenIdConnectUrl($openIdConnectUrl)
{
$this->openIdConnectUrl = $openIdConnectUrl;
}
/**
* @return string
*/
public function getOpenIdConnectUrl()
{
return $this->openIdConnectUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OpenIdConnectSecurityScheme::class, 'Google_Service_WorkspaceEvents_OpenIdConnectSecurityScheme');
@@ -0,0 +1,158 @@
<?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\WorkspaceEvents;
class Operation extends \Google\Model
{
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @var array[]
*/
public $metadata;
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @var string
*/
public $name;
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @var array[]
*/
public $response;
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The error result of the operation in case of failure or cancellation.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @param array[] $response
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_WorkspaceEvents_Operation');
@@ -0,0 +1,98 @@
<?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\WorkspaceEvents;
class Part extends \Google\Model
{
protected $dataType = DataPart::class;
protected $dataDataType = '';
protected $fileType = FilePart::class;
protected $fileDataType = '';
/**
* Optional metadata associated with this part.
*
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $text;
/**
* @param DataPart $data
*/
public function setData(DataPart $data)
{
$this->data = $data;
}
/**
* @return DataPart
*/
public function getData()
{
return $this->data;
}
/**
* @param FilePart $file
*/
public function setFile(FilePart $file)
{
$this->file = $file;
}
/**
* @return FilePart
*/
public function getFile()
{
return $this->file;
}
/**
* Optional metadata associated with this part.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string $text
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Part::class, 'Google_Service_WorkspaceEvents_Part');
@@ -0,0 +1,98 @@
<?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\WorkspaceEvents;
class PasswordOAuthFlow extends \Google\Model
{
/**
* The URL to be used for obtaining refresh tokens. This MUST be in the form
* of a URL. The OAuth2 standard requires the use of TLS.
*
* @var string
*/
public $refreshUrl;
/**
* The available scopes for the OAuth2 security scheme. A map between the
* scope name and a short description for it. The map MAY be empty.
*
* @var string[]
*/
public $scopes;
/**
* The token URL to be used for this flow. This MUST be in the form of a URL.
* The OAuth2 standard requires the use of TLS.
*
* @var string
*/
public $tokenUrl;
/**
* The URL to be used for obtaining refresh tokens. This MUST be in the form
* of a URL. The OAuth2 standard requires the use of TLS.
*
* @param string $refreshUrl
*/
public function setRefreshUrl($refreshUrl)
{
$this->refreshUrl = $refreshUrl;
}
/**
* @return string
*/
public function getRefreshUrl()
{
return $this->refreshUrl;
}
/**
* The available scopes for the OAuth2 security scheme. A map between the
* scope name and a short description for it. The map MAY be empty.
*
* @param string[] $scopes
*/
public function setScopes($scopes)
{
$this->scopes = $scopes;
}
/**
* @return string[]
*/
public function getScopes()
{
return $this->scopes;
}
/**
* The token URL to be used for this flow. This MUST be in the form of a URL.
* The OAuth2 standard requires the use of TLS.
*
* @param string $tokenUrl
*/
public function setTokenUrl($tokenUrl)
{
$this->tokenUrl = $tokenUrl;
}
/**
* @return string
*/
public function getTokenUrl()
{
return $this->tokenUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PasswordOAuthFlow::class, 'Google_Service_WorkspaceEvents_PasswordOAuthFlow');
@@ -0,0 +1,88 @@
<?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\WorkspaceEvents;
class PayloadOptions extends \Google\Model
{
/**
* Optional. If `include_resource` is set to `true`, the list of fields to
* include in the event payload. Separate fields with a comma. For example, to
* include a Google Chat message's sender and create time, enter
* `message.sender,message.createTime`. If omitted, the payload includes all
* fields for the resource. If you specify a field that doesn't exist for the
* resource, the system ignores the field.
*
* @var string
*/
public $fieldMask;
/**
* Optional. Whether the event payload includes data about the resource that
* changed. For example, for an event where a Google Chat message was created,
* whether the payload contains data about the [`Message`](https://developers.
* google.com/chat/api/reference/rest/v1/spaces.messages) resource. If false,
* the event payload only includes the name of the changed resource.
*
* @var bool
*/
public $includeResource;
/**
* Optional. If `include_resource` is set to `true`, the list of fields to
* include in the event payload. Separate fields with a comma. For example, to
* include a Google Chat message's sender and create time, enter
* `message.sender,message.createTime`. If omitted, the payload includes all
* fields for the resource. If you specify a field that doesn't exist for the
* resource, the system ignores the field.
*
* @param string $fieldMask
*/
public function setFieldMask($fieldMask)
{
$this->fieldMask = $fieldMask;
}
/**
* @return string
*/
public function getFieldMask()
{
return $this->fieldMask;
}
/**
* Optional. Whether the event payload includes data about the resource that
* changed. For example, for an event where a Google Chat message was created,
* whether the payload contains data about the [`Message`](https://developers.
* google.com/chat/api/reference/rest/v1/spaces.messages) resource. If false,
* the event payload only includes the name of the changed resource.
*
* @param bool $includeResource
*/
public function setIncludeResource($includeResource)
{
$this->includeResource = $includeResource;
}
/**
* @return bool
*/
public function getIncludeResource()
{
return $this->includeResource;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PayloadOptions::class, 'Google_Service_WorkspaceEvents_PayloadOptions');
@@ -0,0 +1,110 @@
<?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\WorkspaceEvents;
class PushNotificationConfig extends \Google\Model
{
protected $authenticationType = AuthenticationInfo::class;
protected $authenticationDataType = '';
/**
* A unique identifier (e.g. UUID) for this push notification.
*
* @var string
*/
public $id;
/**
* Token unique for this task/session
*
* @var string
*/
public $token;
/**
* Url to send the notification too
*
* @var string
*/
public $url;
/**
* Information about the authentication to sent with the notification
*
* @param AuthenticationInfo $authentication
*/
public function setAuthentication(AuthenticationInfo $authentication)
{
$this->authentication = $authentication;
}
/**
* @return AuthenticationInfo
*/
public function getAuthentication()
{
return $this->authentication;
}
/**
* A unique identifier (e.g. UUID) for this push notification.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Token unique for this task/session
*
* @param string $token
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
/**
* Url to send the notification too
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PushNotificationConfig::class, 'Google_Service_WorkspaceEvents_PushNotificationConfig');
@@ -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\WorkspaceEvents;
class ReactivateSubscriptionRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReactivateSubscriptionRequest::class, 'Google_Service_WorkspaceEvents_ReactivateSubscriptionRequest');
@@ -0,0 +1,52 @@
<?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\WorkspaceEvents\Resource;
use Google\Service\WorkspaceEvents\SendMessageRequest;
use Google\Service\WorkspaceEvents\StreamResponse;
/**
* The "message" collection of methods.
* Typical usage is:
* <code>
* $workspaceeventsService = new Google\Service\WorkspaceEvents(...);
* $message = $workspaceeventsService->message;
* </code>
*/
class Message extends \Google\Service\Resource
{
/**
* SendStreamingMessage is a streaming call that will return a stream of task
* update events until the Task is in an interrupted or terminal state.
* (message.stream)
*
* @param SendMessageRequest $postBody
* @param array $optParams Optional parameters.
* @return StreamResponse
* @throws \Google\Service\Exception
*/
public function stream(SendMessageRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('stream', [$params], StreamResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Message::class, 'Google_Service_WorkspaceEvents_Resource_Message');
@@ -0,0 +1,51 @@
<?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\WorkspaceEvents\Resource;
use Google\Service\WorkspaceEvents\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $workspaceeventsService = new Google\Service\WorkspaceEvents(...);
* $operations = $workspaceeventsService->operations;
* </code>
*/
class Operations extends \Google\Service\Resource
{
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operations::class, 'Google_Service_WorkspaceEvents_Resource_Operations');
@@ -0,0 +1,221 @@
<?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\WorkspaceEvents\Resource;
use Google\Service\WorkspaceEvents\ListSubscriptionsResponse;
use Google\Service\WorkspaceEvents\Operation;
use Google\Service\WorkspaceEvents\ReactivateSubscriptionRequest;
use Google\Service\WorkspaceEvents\Subscription;
/**
* The "subscriptions" collection of methods.
* Typical usage is:
* <code>
* $workspaceeventsService = new Google\Service\WorkspaceEvents(...);
* $subscriptions = $workspaceeventsService->subscriptions;
* </code>
*/
class Subscriptions extends \Google\Service\Resource
{
/**
* Creates a Google Workspace subscription. To learn how to use this method, see
* [Create a Google Workspace
* subscription](https://developers.google.com/workspace/events/guides/create-
* subscription). For a subscription on a [Chat target
* resource](https://developers.google.com/workspace/events/guides/events-chat),
* you can create a subscription as: - A Chat app by specifying an authorization
* scope that begins with `chat.app` and getting one-time administrator
* approval. To learn more, see [Authorize as a Chat app with administrator
* approval](https://developers.google.com/workspace/chat/authenticate-
* authorize-chat-app). - A user by specifying an authorization scope that
* doesn't include `app` in its name. To learn more, see [Authorize as a Chat
* user](https://developers.google.com/workspace/chat/authenticate-authorize-
* chat-user). (subscriptions.create)
*
* @param Subscription $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool validateOnly Optional. If set to `true`, validates and
* previews the request, but doesn't create the subscription.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create(Subscription $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a Google Workspace subscription. To learn how to use this method, see
* [Delete a Google Workspace
* subscription](https://developers.google.com/workspace/events/guides/delete-
* subscription). (subscriptions.delete)
*
* @param string $name Required. Resource name of the subscription to delete.
* Format: `subscriptions/{subscription}`
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to `true` and the subscription
* isn't found, the request succeeds but doesn't delete the subscription.
* @opt_param string etag Optional. Etag of the subscription. If present, it
* must match with the server's etag. Otherwise, request fails with the status
* `ABORTED`.
* @opt_param bool validateOnly Optional. If set to `true`, validates and
* previews the request, but doesn't delete the subscription.
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details about a Google Workspace subscription. To learn how to use this
* method, see [Get details about a Google Workspace
* subscription](https://developers.google.com/workspace/events/guides/get-
* subscription). (subscriptions.get)
*
* @param string $name Required. Resource name of the subscription. Format:
* `subscriptions/{subscription}`
* @param array $optParams Optional parameters.
* @return Subscription
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Subscription::class);
}
/**
* Lists Google Workspace subscriptions. To learn how to use this method, see
* [List Google Workspace
* subscriptions](https://developers.google.com/workspace/events/guides/list-
* subscriptions). (subscriptions.listSubscriptions)
*
* @param array $optParams Optional parameters.
*
* @opt_param string filter Required. A query filter. You can filter
* subscriptions by event type (`event_types`) and target resource
* (`target_resource`). You must specify at least one event type in your query.
* To filter for multiple event types, use the `OR` operator. To filter by both
* event type and target resource, use the `AND` operator and specify the full
* resource name, such as `//chat.googleapis.com/spaces/{space}`. For example,
* the following queries are valid: ```
* event_types:"google.workspace.chat.membership.v1.updated" OR
* event_types:"google.workspace.chat.message.v1.created"
* event_types:"google.workspace.chat.message.v1.created" AND
* target_resource="//chat.googleapis.com/spaces/{space}" (
* event_types:"google.workspace.chat.membership.v1.updated" OR
* event_types:"google.workspace.chat.message.v1.created" ) AND
* target_resource="//chat.googleapis.com/spaces/{space}" ``` The server rejects
* invalid queries with an `INVALID_ARGUMENT` error.
* @opt_param int pageSize Optional. The maximum number of subscriptions to
* return. The service might return fewer than this value. If unspecified or set
* to `0`, up to 50 subscriptions are returned. The maximum value is 100. If you
* specify a value more than 100, the system only returns 100 subscriptions.
* @opt_param string pageToken Optional. A page token, received from a previous
* list subscriptions call. Provide this parameter to retrieve the subsequent
* page. When paginating, the filter value should match the call that provided
* the page token. Passing a different value might lead to unexpected results.
* @return ListSubscriptionsResponse
* @throws \Google\Service\Exception
*/
public function listSubscriptions($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSubscriptionsResponse::class);
}
/**
* Updates or renews a Google Workspace subscription. To learn how to use this
* method, see [Update or renew a Google Workspace
* subscription](https://developers.google.com/workspace/events/guides/update-
* subscription). For a subscription on a [Chat target
* resource](https://developers.google.com/workspace/events/guides/events-chat),
* you can update a subscription as: - A Chat app by specifying an authorization
* scope that begins with `chat.app` and getting one-time administrator
* approval. To learn more, see [Authorize as a Chat app with administrator
* approval](https://developers.google.com/workspace/chat/authenticate-
* authorize-chat-app). - A user by specifying an authorization scope that
* doesn't include `app` in its name. To learn more, see [Authorize as a Chat
* user](https://developers.google.com/workspace/chat/authenticate-authorize-
* chat-user). (subscriptions.patch)
*
* @param string $name Identifier. Resource name of the subscription. Format:
* `subscriptions/{subscription}`
* @param Subscription $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. The field to update. If omitted,
* updates any fields included in the request. You can update one of the
* following fields in a subscription: * `expire_time`: The timestamp when the
* subscription expires. * `ttl`: The time-to-live (TTL) or duration of the
* subscription. * `event_types`: The list of event types to receive about the
* target resource. When using the `*` wildcard (equivalent to `PUT`), omitted
* fields are set to empty values and rejected if they're invalid.
* @opt_param bool validateOnly Optional. If set to `true`, validates and
* previews the request, but doesn't update the subscription.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Subscription $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Reactivates a suspended Google Workspace subscription. This method resets
* your subscription's `State` field to `ACTIVE`. Before you use this method,
* you must fix the error that suspended the subscription. This method will
* ignore or reject any subscription that isn't currently in a suspended state.
* To learn how to use this method, see [Reactivate a Google Workspace subscript
* ion](https://developers.google.com/workspace/events/guides/reactivate-
* subscription). For a subscription on a [Chat target
* resource](https://developers.google.com/workspace/events/guides/events-chat),
* you can reactivate a subscription as: - A Chat app by specifying an
* authorization scope that begins with `chat.app` and getting one-time
* administrator approval. To learn more, see [Authorize as a Chat app with
* administrator
* approval](https://developers.google.com/workspace/chat/authenticate-
* authorize-chat-app). - A user by specifying an authorization scope that
* doesn't include `app` in its name. To learn more, see [Authorize as a Chat
* user](https://developers.google.com/workspace/chat/authenticate-authorize-
* chat-user). (subscriptions.reactivate)
*
* @param string $name Required. Resource name of the subscription. Format:
* `subscriptions/{subscription}`
* @param ReactivateSubscriptionRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function reactivate($name, ReactivateSubscriptionRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('reactivate', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Subscriptions::class, 'Google_Service_WorkspaceEvents_Resource_Subscriptions');
@@ -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\WorkspaceEvents\Resource;
use Google\Service\WorkspaceEvents\CancelTaskRequest;
use Google\Service\WorkspaceEvents\StreamResponse;
use Google\Service\WorkspaceEvents\Task;
/**
* The "tasks" collection of methods.
* Typical usage is:
* <code>
* $workspaceeventsService = new Google\Service\WorkspaceEvents(...);
* $tasks = $workspaceeventsService->tasks;
* </code>
*/
class Tasks extends \Google\Service\Resource
{
/**
* Cancel a task from the agent. If supported one should expect no more task
* updates for the task. (tasks.cancel)
*
* @param string $name The resource name of the task to cancel. Format:
* tasks/{task_id}
* @param CancelTaskRequest $postBody
* @param array $optParams Optional parameters.
* @return Task
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelTaskRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], Task::class);
}
/**
* Get the current state of a task from the agent. (tasks.get)
*
* @param string $name Required. The resource name of the task. Format:
* tasks/{task_id}
* @param array $optParams Optional parameters.
*
* @opt_param int historyLength The number of most recent messages from the
* task's history to retrieve.
* @opt_param string tenant Optional tenant, provided as a path parameter.
* Experimental, might still change for 1.0 release.
* @return Task
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Task::class);
}
/**
* TaskSubscription is a streaming call that will return a stream of task update
* events. This attaches the stream to an existing in process task. If the task
* is complete the stream will return the completed task (like GetTask) and
* close the stream. (tasks.subscribe)
*
* @param string $name The resource name of the task to subscribe to. Format:
* tasks/{task_id}
* @param array $optParams Optional parameters.
*
* @opt_param string tenant Optional tenant, provided as a path parameter.
* Experimental, might still change for 1.0 release.
* @return StreamResponse
* @throws \Google\Service\Exception
*/
public function subscribe($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('subscribe', [$params], StreamResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Tasks::class, 'Google_Service_WorkspaceEvents_Resource_Tasks');
@@ -0,0 +1,120 @@
<?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\WorkspaceEvents\Resource;
use Google\Service\WorkspaceEvents\ListTaskPushNotificationConfigResponse;
use Google\Service\WorkspaceEvents\TaskPushNotificationConfig;
use Google\Service\WorkspaceEvents\WorkspaceeventsEmpty;
/**
* The "pushNotificationConfigs" collection of methods.
* Typical usage is:
* <code>
* $workspaceeventsService = new Google\Service\WorkspaceEvents(...);
* $pushNotificationConfigs = $workspaceeventsService->tasks_pushNotificationConfigs;
* </code>
*/
class TasksPushNotificationConfigs extends \Google\Service\Resource
{
/**
* Set a push notification config for a task. (pushNotificationConfigs.create)
*
* @param string $parent Required. The parent task resource for this config.
* Format: tasks/{task_id}
* @param TaskPushNotificationConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string configId Required. The ID for the new config.
* @opt_param string tenant Optional tenant, provided as a path parameter.
* Experimental, might still change for 1.0 release.
* @return TaskPushNotificationConfig
* @throws \Google\Service\Exception
*/
public function create($parent, TaskPushNotificationConfig $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], TaskPushNotificationConfig::class);
}
/**
* Delete a push notification config for a task.
* (pushNotificationConfigs.delete)
*
* @param string $name The resource name of the config to delete. Format:
* tasks/{task_id}/pushNotificationConfigs/{config_id}
* @param array $optParams Optional parameters.
*
* @opt_param string tenant Optional tenant, provided as a path parameter.
* Experimental, might still change for 1.0 release.
* @return WorkspaceeventsEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], WorkspaceeventsEmpty::class);
}
/**
* Get a push notification config for a task. (pushNotificationConfigs.get)
*
* @param string $name The resource name of the config to retrieve. Format:
* tasks/{task_id}/pushNotificationConfigs/{config_id}
* @param array $optParams Optional parameters.
*
* @opt_param string tenant Optional tenant, provided as a path parameter.
* Experimental, might still change for 1.0 release.
* @return TaskPushNotificationConfig
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], TaskPushNotificationConfig::class);
}
/**
* Get a list of push notifications configured for a task.
* (pushNotificationConfigs.listTasksPushNotificationConfigs)
*
* @param string $parent The parent task resource. Format: tasks/{task_id}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize For AIP-158 these fields are present. Usually not
* used/needed. The maximum number of configurations to return. If unspecified,
* all configs will be returned.
* @opt_param string pageToken A page token received from a previous
* ListTaskPushNotificationConfigRequest call. Provide this to retrieve the
* subsequent page. When paginating, all other parameters provided to
* `ListTaskPushNotificationConfigRequest` must match the call that provided the
* page token.
* @opt_param string tenant Optional tenant, provided as a path parameter.
* Experimental, might still change for 1.0 release.
* @return ListTaskPushNotificationConfigResponse
* @throws \Google\Service\Exception
*/
public function listTasksPushNotificationConfigs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTaskPushNotificationConfigResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TasksPushNotificationConfigs::class, 'Google_Service_WorkspaceEvents_Resource_TasksPushNotificationConfigs');
@@ -0,0 +1,48 @@
<?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\WorkspaceEvents\Resource;
use Google\Service\WorkspaceEvents\AgentCard;
/**
* The "v1" collection of methods.
* Typical usage is:
* <code>
* $workspaceeventsService = new Google\Service\WorkspaceEvents(...);
* $v1 = $workspaceeventsService->v1;
* </code>
*/
class V1 extends \Google\Service\Resource
{
/**
* GetAgentCard returns the agent card for the agent. (v1.getCard)
*
* @param array $optParams Optional parameters.
* @return AgentCard
* @throws \Google\Service\Exception
*/
public function getCard($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('getCard', [$params], AgentCard::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(V1::class, 'Google_Service_WorkspaceEvents_Resource_V1');
@@ -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\WorkspaceEvents;
class Security extends \Google\Model
{
protected $schemesType = StringList::class;
protected $schemesDataType = 'map';
/**
* @param StringList[] $schemes
*/
public function setSchemes($schemes)
{
$this->schemes = $schemes;
}
/**
* @return StringList[]
*/
public function getSchemes()
{
return $this->schemes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Security::class, 'Google_Service_WorkspaceEvents_Security');
@@ -0,0 +1,106 @@
<?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\WorkspaceEvents;
class SecurityScheme extends \Google\Model
{
protected $apiKeySecuritySchemeType = APIKeySecurityScheme::class;
protected $apiKeySecuritySchemeDataType = '';
protected $httpAuthSecuritySchemeType = HTTPAuthSecurityScheme::class;
protected $httpAuthSecuritySchemeDataType = '';
protected $mtlsSecuritySchemeType = MutualTlsSecurityScheme::class;
protected $mtlsSecuritySchemeDataType = '';
protected $oauth2SecuritySchemeType = OAuth2SecurityScheme::class;
protected $oauth2SecuritySchemeDataType = '';
protected $openIdConnectSecuritySchemeType = OpenIdConnectSecurityScheme::class;
protected $openIdConnectSecuritySchemeDataType = '';
/**
* @param APIKeySecurityScheme $apiKeySecurityScheme
*/
public function setApiKeySecurityScheme(APIKeySecurityScheme $apiKeySecurityScheme)
{
$this->apiKeySecurityScheme = $apiKeySecurityScheme;
}
/**
* @return APIKeySecurityScheme
*/
public function getApiKeySecurityScheme()
{
return $this->apiKeySecurityScheme;
}
/**
* @param HTTPAuthSecurityScheme $httpAuthSecurityScheme
*/
public function setHttpAuthSecurityScheme(HTTPAuthSecurityScheme $httpAuthSecurityScheme)
{
$this->httpAuthSecurityScheme = $httpAuthSecurityScheme;
}
/**
* @return HTTPAuthSecurityScheme
*/
public function getHttpAuthSecurityScheme()
{
return $this->httpAuthSecurityScheme;
}
/**
* @param MutualTlsSecurityScheme $mtlsSecurityScheme
*/
public function setMtlsSecurityScheme(MutualTlsSecurityScheme $mtlsSecurityScheme)
{
$this->mtlsSecurityScheme = $mtlsSecurityScheme;
}
/**
* @return MutualTlsSecurityScheme
*/
public function getMtlsSecurityScheme()
{
return $this->mtlsSecurityScheme;
}
/**
* @param OAuth2SecurityScheme $oauth2SecurityScheme
*/
public function setOauth2SecurityScheme(OAuth2SecurityScheme $oauth2SecurityScheme)
{
$this->oauth2SecurityScheme = $oauth2SecurityScheme;
}
/**
* @return OAuth2SecurityScheme
*/
public function getOauth2SecurityScheme()
{
return $this->oauth2SecurityScheme;
}
/**
* @param OpenIdConnectSecurityScheme $openIdConnectSecurityScheme
*/
public function setOpenIdConnectSecurityScheme(OpenIdConnectSecurityScheme $openIdConnectSecurityScheme)
{
$this->openIdConnectSecurityScheme = $openIdConnectSecurityScheme;
}
/**
* @return OpenIdConnectSecurityScheme
*/
public function getOpenIdConnectSecurityScheme()
{
return $this->openIdConnectSecurityScheme;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SecurityScheme::class, 'Google_Service_WorkspaceEvents_SecurityScheme');
@@ -0,0 +1,119 @@
<?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\WorkspaceEvents;
class SendMessageConfiguration extends \Google\Collection
{
protected $collection_key = 'acceptedOutputModes';
/**
* The output modes that the agent is expected to respond with.
*
* @var string[]
*/
public $acceptedOutputModes;
/**
* If true, the message will be blocking until the task is completed. If
* false, the message will be non-blocking and the task will be returned
* immediately. It is the caller's responsibility to check for any task
* updates.
*
* @var bool
*/
public $blocking;
/**
* The maximum number of messages to include in the history. if 0, the history
* will be unlimited.
*
* @var int
*/
public $historyLength;
protected $pushNotificationType = PushNotificationConfig::class;
protected $pushNotificationDataType = '';
/**
* The output modes that the agent is expected to respond with.
*
* @param string[] $acceptedOutputModes
*/
public function setAcceptedOutputModes($acceptedOutputModes)
{
$this->acceptedOutputModes = $acceptedOutputModes;
}
/**
* @return string[]
*/
public function getAcceptedOutputModes()
{
return $this->acceptedOutputModes;
}
/**
* If true, the message will be blocking until the task is completed. If
* false, the message will be non-blocking and the task will be returned
* immediately. It is the caller's responsibility to check for any task
* updates.
*
* @param bool $blocking
*/
public function setBlocking($blocking)
{
$this->blocking = $blocking;
}
/**
* @return bool
*/
public function getBlocking()
{
return $this->blocking;
}
/**
* The maximum number of messages to include in the history. if 0, the history
* will be unlimited.
*
* @param int $historyLength
*/
public function setHistoryLength($historyLength)
{
$this->historyLength = $historyLength;
}
/**
* @return int
*/
public function getHistoryLength()
{
return $this->historyLength;
}
/**
* A configuration of a webhook that can be used to receive updates
*
* @param PushNotificationConfig $pushNotification
*/
public function setPushNotification(PushNotificationConfig $pushNotification)
{
$this->pushNotification = $pushNotification;
}
/**
* @return PushNotificationConfig
*/
public function getPushNotification()
{
return $this->pushNotification;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SendMessageConfiguration::class, 'Google_Service_WorkspaceEvents_SendMessageConfiguration');
@@ -0,0 +1,108 @@
<?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\WorkspaceEvents;
class SendMessageRequest extends \Google\Model
{
protected $configurationType = SendMessageConfiguration::class;
protected $configurationDataType = '';
protected $messageType = Message::class;
protected $messageDataType = '';
/**
* Optional metadata for the request.
*
* @var array[]
*/
public $metadata;
/**
* Optional tenant, provided as a path parameter. Experimental, might still
* change for 1.0 release.
*
* @var string
*/
public $tenant;
/**
* Configuration for the send request.
*
* @param SendMessageConfiguration $configuration
*/
public function setConfiguration(SendMessageConfiguration $configuration)
{
$this->configuration = $configuration;
}
/**
* @return SendMessageConfiguration
*/
public function getConfiguration()
{
return $this->configuration;
}
/**
* Required. The message to send to the agent.
*
* @param Message $message
*/
public function setMessage(Message $message)
{
$this->message = $message;
}
/**
* @return Message
*/
public function getMessage()
{
return $this->message;
}
/**
* Optional metadata for the request.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Optional tenant, provided as a path parameter. Experimental, might still
* change for 1.0 release.
*
* @param string $tenant
*/
public function setTenant($tenant)
{
$this->tenant = $tenant;
}
/**
* @return string
*/
public function getTenant()
{
return $this->tenant;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SendMessageRequest::class, 'Google_Service_WorkspaceEvents_SendMessageRequest');
@@ -0,0 +1,99 @@
<?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\WorkspaceEvents;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @var int
*/
public $code;
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @var array[]
*/
public $details;
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @var string
*/
public $message;
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @param int $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @param array[] $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_WorkspaceEvents_Status');
@@ -0,0 +1,90 @@
<?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\WorkspaceEvents;
class StreamResponse extends \Google\Model
{
protected $artifactUpdateType = TaskArtifactUpdateEvent::class;
protected $artifactUpdateDataType = '';
protected $messageType = Message::class;
protected $messageDataType = '';
protected $statusUpdateType = TaskStatusUpdateEvent::class;
protected $statusUpdateDataType = '';
protected $taskType = Task::class;
protected $taskDataType = '';
/**
* @param TaskArtifactUpdateEvent $artifactUpdate
*/
public function setArtifactUpdate(TaskArtifactUpdateEvent $artifactUpdate)
{
$this->artifactUpdate = $artifactUpdate;
}
/**
* @return TaskArtifactUpdateEvent
*/
public function getArtifactUpdate()
{
return $this->artifactUpdate;
}
/**
* @param Message $message
*/
public function setMessage(Message $message)
{
$this->message = $message;
}
/**
* @return Message
*/
public function getMessage()
{
return $this->message;
}
/**
* @param TaskStatusUpdateEvent $statusUpdate
*/
public function setStatusUpdate(TaskStatusUpdateEvent $statusUpdate)
{
$this->statusUpdate = $statusUpdate;
}
/**
* @return TaskStatusUpdateEvent
*/
public function getStatusUpdate()
{
return $this->statusUpdate;
}
/**
* @param Task $task
*/
public function setTask(Task $task)
{
$this->task = $task;
}
/**
* @return Task
*/
public function getTask()
{
return $this->task;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StreamResponse::class, 'Google_Service_WorkspaceEvents_StreamResponse');
@@ -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\WorkspaceEvents;
class StringList extends \Google\Collection
{
protected $collection_key = 'list';
/**
* @var string[]
*/
public $list;
/**
* @param string[] $list
*/
public function setList($list)
{
$this->list = $list;
}
/**
* @return string[]
*/
public function getList()
{
return $this->list;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StringList::class, 'Google_Service_WorkspaceEvents_StringList');
@@ -0,0 +1,574 @@
<?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\WorkspaceEvents;
class Subscription extends \Google\Collection
{
/**
* Default value. This value is unused.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The subscription is active and can receive and deliver events to its
* notification endpoint.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* The subscription is unable to receive events due to an error. To identify
* the error, see the `suspension_reason` field.
*/
public const STATE_SUSPENDED = 'SUSPENDED';
/**
* The subscription is deleted.
*/
public const STATE_DELETED = 'DELETED';
/**
* Default value. This value is unused.
*/
public const SUSPENSION_REASON_ERROR_TYPE_UNSPECIFIED = 'ERROR_TYPE_UNSPECIFIED';
/**
* The authorizing user has revoked the grant of one or more OAuth scopes. To
* learn more about authorization for Google Workspace, see [Configure the
* OAuth consent
* screen](https://developers.google.com/workspace/guides/configure-oauth-
* consent#choose-scopes).
*/
public const SUSPENSION_REASON_USER_SCOPE_REVOKED = 'USER_SCOPE_REVOKED';
/**
* The domain administrator has revoked the grant of one or more OAuth scopes
* for the app.
*/
public const SUSPENSION_REASON_APP_SCOPE_REVOKED = 'APP_SCOPE_REVOKED';
/**
* The target resource for the subscription no longer exists.
*/
public const SUSPENSION_REASON_RESOURCE_DELETED = 'RESOURCE_DELETED';
/**
* The user that authorized the creation of the subscription no longer has
* access to the subscription's target resource.
*/
public const SUSPENSION_REASON_USER_AUTHORIZATION_FAILURE = 'USER_AUTHORIZATION_FAILURE';
/**
* The app that authorized the creation of the subscription no longer has
* access to the subscription's target resource.
*/
public const SUSPENSION_REASON_APP_AUTHORIZATION_FAILURE = 'APP_AUTHORIZATION_FAILURE';
/**
* The Google Workspace application doesn't have access to deliver events to
* your subscription's notification endpoint.
*/
public const SUSPENSION_REASON_ENDPOINT_PERMISSION_DENIED = 'ENDPOINT_PERMISSION_DENIED';
/**
* The subscription's notification endpoint doesn't exist, or the endpoint
* can't be found in the Google Cloud project where you created the
* subscription.
*/
public const SUSPENSION_REASON_ENDPOINT_NOT_FOUND = 'ENDPOINT_NOT_FOUND';
/**
* The subscription's notification endpoint failed to receive events due to
* insufficient quota or reaching rate limiting.
*/
public const SUSPENSION_REASON_ENDPOINT_RESOURCE_EXHAUSTED = 'ENDPOINT_RESOURCE_EXHAUSTED';
/**
* An unidentified error has occurred.
*/
public const SUSPENSION_REASON_OTHER = 'OTHER';
protected $collection_key = 'eventTypes';
/**
* Output only. The user who authorized the creation of the subscription. When
* a user authorizes the subscription, this field and the `user_authority`
* field have the same value and the format is: Format: `users/{user}` For
* Google Workspace users, the `{user}` value is the
* [`user.id`](https://developers.google.com/admin-
* sdk/directory/reference/rest/v1/users#User.FIELDS.ids) field from the
* Directory API. When a Chat app authorizes the subscription, only
* `service_account_authority` field populates and this field is empty.
*
* @var string
*/
public $authority;
/**
* Output only. The time when the subscription is created.
*
* @var string
*/
public $createTime;
protected $driveOptionsType = DriveOptions::class;
protected $driveOptionsDataType = '';
/**
* Optional. This checksum is computed by the server based on the value of
* other fields, and might be sent on update requests to ensure the client has
* an up-to-date value before proceeding.
*
* @var string
*/
public $etag;
/**
* Required. Unordered list. Input for creating a subscription. Otherwise,
* output only. One or more types of events to receive about the target
* resource. Formatted according to the CloudEvents specification. The
* supported event types depend on the target resource of your subscription.
* For details, see [Supported Google Workspace
* events](https://developers.google.com/workspace/events/guides#supported-
* events). By default, you also receive events about the [lifecycle of your
* subscription](https://developers.google.com/workspace/events/guides/events-
* lifecycle). You don't need to specify lifecycle events for this field. If
* you specify an event type that doesn't exist for the target resource, the
* request returns an HTTP `400 Bad Request` status code.
*
* @var string[]
*/
public $eventTypes;
/**
* Non-empty default. The timestamp in UTC when the subscription expires.
* Always displayed on output, regardless of what was used on input.
*
* @var string
*/
public $expireTime;
/**
* Identifier. Resource name of the subscription. Format:
* `subscriptions/{subscription}`
*
* @var string
*/
public $name;
protected $notificationEndpointType = NotificationEndpoint::class;
protected $notificationEndpointDataType = '';
protected $payloadOptionsType = PayloadOptions::class;
protected $payloadOptionsDataType = '';
/**
* Output only. If `true`, the subscription is in the process of being
* updated.
*
* @var bool
*/
public $reconciling;
/**
* Output only. The service account that was used to authorize the creation of
* the subscription. This service account must be owned by the same Google
* Cloud project where you created this subscription. Format:
* `projects/{project_id}/serviceAccounts/{service_account_id}`
*
* @var string
*/
public $serviceAccountAuthority;
/**
* Output only. The state of the subscription. Determines whether the
* subscription can receive events and deliver them to the notification
* endpoint.
*
* @var string
*/
public $state;
/**
* Output only. The error that suspended the subscription. To reactivate the
* subscription, resolve the error and call the `ReactivateSubscription`
* method.
*
* @var string
*/
public $suspensionReason;
/**
* Required. Immutable. The Google Workspace resource that's monitored for
* events, formatted as the [full resource
* name](https://google.aip.dev/122#full-resource-names). To learn about
* target resources and the events that they support, see [Supported Google
* Workspace events](https://developers.google.com/workspace/events#supported-
* events). A user can only authorize your app to create one subscription for
* a given target resource. If your app tries to create another subscription
* with the same user credentials, the request returns an `ALREADY_EXISTS`
* error.
*
* @var string
*/
public $targetResource;
/**
* Input only. The time-to-live (TTL) or duration for the subscription. If
* unspecified or set to `0`, uses the maximum possible duration.
*
* @var string
*/
public $ttl;
/**
* Output only. System-assigned unique identifier for the subscription.
*
* @var string
*/
public $uid;
/**
* Output only. The last time that the subscription is updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. The user who authorized the creation of the subscription. The
* user must be able to view the `target_resource`. For Google Workspace
* users, the `{user}` value is the [`user.id`](https://developers.google.com/
* workspace/admin/directory/reference/rest/v1/users#User.FIELDS.id) field
* from the Directory API. Format: `users/{user}`
*
* @var string
*/
public $userAuthority;
/**
* Output only. The user who authorized the creation of the subscription. When
* a user authorizes the subscription, this field and the `user_authority`
* field have the same value and the format is: Format: `users/{user}` For
* Google Workspace users, the `{user}` value is the
* [`user.id`](https://developers.google.com/admin-
* sdk/directory/reference/rest/v1/users#User.FIELDS.ids) field from the
* Directory API. When a Chat app authorizes the subscription, only
* `service_account_authority` field populates and this field is empty.
*
* @param string $authority
*/
public function setAuthority($authority)
{
$this->authority = $authority;
}
/**
* @return string
*/
public function getAuthority()
{
return $this->authority;
}
/**
* Output only. The time when the subscription is created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. Features that are supported only for subscriptions on Drive
* resources.
*
* @param DriveOptions $driveOptions
*/
public function setDriveOptions(DriveOptions $driveOptions)
{
$this->driveOptions = $driveOptions;
}
/**
* @return DriveOptions
*/
public function getDriveOptions()
{
return $this->driveOptions;
}
/**
* Optional. This checksum is computed by the server based on the value of
* other fields, and might be sent on update requests to ensure the client has
* an up-to-date value before proceeding.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Required. Unordered list. Input for creating a subscription. Otherwise,
* output only. One or more types of events to receive about the target
* resource. Formatted according to the CloudEvents specification. The
* supported event types depend on the target resource of your subscription.
* For details, see [Supported Google Workspace
* events](https://developers.google.com/workspace/events/guides#supported-
* events). By default, you also receive events about the [lifecycle of your
* subscription](https://developers.google.com/workspace/events/guides/events-
* lifecycle). You don't need to specify lifecycle events for this field. If
* you specify an event type that doesn't exist for the target resource, the
* request returns an HTTP `400 Bad Request` status code.
*
* @param string[] $eventTypes
*/
public function setEventTypes($eventTypes)
{
$this->eventTypes = $eventTypes;
}
/**
* @return string[]
*/
public function getEventTypes()
{
return $this->eventTypes;
}
/**
* Non-empty default. The timestamp in UTC when the subscription expires.
* Always displayed on output, regardless of what was used on input.
*
* @param string $expireTime
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* Identifier. Resource name of the subscription. Format:
* `subscriptions/{subscription}`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. Immutable. The endpoint where the subscription delivers events,
* such as a Pub/Sub topic.
*
* @param NotificationEndpoint $notificationEndpoint
*/
public function setNotificationEndpoint(NotificationEndpoint $notificationEndpoint)
{
$this->notificationEndpoint = $notificationEndpoint;
}
/**
* @return NotificationEndpoint
*/
public function getNotificationEndpoint()
{
return $this->notificationEndpoint;
}
/**
* Optional. Options about what data to include in the event payload. Only
* supported for Google Chat and Google Drive events.
*
* @param PayloadOptions $payloadOptions
*/
public function setPayloadOptions(PayloadOptions $payloadOptions)
{
$this->payloadOptions = $payloadOptions;
}
/**
* @return PayloadOptions
*/
public function getPayloadOptions()
{
return $this->payloadOptions;
}
/**
* Output only. If `true`, the subscription is in the process of being
* updated.
*
* @param bool $reconciling
*/
public function setReconciling($reconciling)
{
$this->reconciling = $reconciling;
}
/**
* @return bool
*/
public function getReconciling()
{
return $this->reconciling;
}
/**
* Output only. The service account that was used to authorize the creation of
* the subscription. This service account must be owned by the same Google
* Cloud project where you created this subscription. Format:
* `projects/{project_id}/serviceAccounts/{service_account_id}`
*
* @param string $serviceAccountAuthority
*/
public function setServiceAccountAuthority($serviceAccountAuthority)
{
$this->serviceAccountAuthority = $serviceAccountAuthority;
}
/**
* @return string
*/
public function getServiceAccountAuthority()
{
return $this->serviceAccountAuthority;
}
/**
* Output only. The state of the subscription. Determines whether the
* subscription can receive events and deliver them to the notification
* endpoint.
*
* Accepted values: STATE_UNSPECIFIED, ACTIVE, SUSPENDED, DELETED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. The error that suspended the subscription. To reactivate the
* subscription, resolve the error and call the `ReactivateSubscription`
* method.
*
* Accepted values: ERROR_TYPE_UNSPECIFIED, USER_SCOPE_REVOKED,
* APP_SCOPE_REVOKED, RESOURCE_DELETED, USER_AUTHORIZATION_FAILURE,
* APP_AUTHORIZATION_FAILURE, ENDPOINT_PERMISSION_DENIED, ENDPOINT_NOT_FOUND,
* ENDPOINT_RESOURCE_EXHAUSTED, OTHER
*
* @param self::SUSPENSION_REASON_* $suspensionReason
*/
public function setSuspensionReason($suspensionReason)
{
$this->suspensionReason = $suspensionReason;
}
/**
* @return self::SUSPENSION_REASON_*
*/
public function getSuspensionReason()
{
return $this->suspensionReason;
}
/**
* Required. Immutable. The Google Workspace resource that's monitored for
* events, formatted as the [full resource
* name](https://google.aip.dev/122#full-resource-names). To learn about
* target resources and the events that they support, see [Supported Google
* Workspace events](https://developers.google.com/workspace/events#supported-
* events). A user can only authorize your app to create one subscription for
* a given target resource. If your app tries to create another subscription
* with the same user credentials, the request returns an `ALREADY_EXISTS`
* error.
*
* @param string $targetResource
*/
public function setTargetResource($targetResource)
{
$this->targetResource = $targetResource;
}
/**
* @return string
*/
public function getTargetResource()
{
return $this->targetResource;
}
/**
* Input only. The time-to-live (TTL) or duration for the subscription. If
* unspecified or set to `0`, uses the maximum possible duration.
*
* @param string $ttl
*/
public function setTtl($ttl)
{
$this->ttl = $ttl;
}
/**
* @return string
*/
public function getTtl()
{
return $this->ttl;
}
/**
* Output only. System-assigned unique identifier for the subscription.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. The last time that the subscription is updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Output only. The user who authorized the creation of the subscription. The
* user must be able to view the `target_resource`. For Google Workspace
* users, the `{user}` value is the [`user.id`](https://developers.google.com/
* workspace/admin/directory/reference/rest/v1/users#User.FIELDS.id) field
* from the Directory API. Format: `users/{user}`
*
* @param string $userAuthority
*/
public function setUserAuthority($userAuthority)
{
$this->userAuthority = $userAuthority;
}
/**
* @return string
*/
public function getUserAuthority()
{
return $this->userAuthority;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Subscription::class, 'Google_Service_WorkspaceEvents_Subscription');
@@ -0,0 +1,154 @@
<?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\WorkspaceEvents;
class Task extends \Google\Collection
{
protected $collection_key = 'history';
protected $artifactsType = Artifact::class;
protected $artifactsDataType = 'array';
/**
* Unique identifier (e.g. UUID) for the contextual collection of interactions
* (tasks and messages). Created by the A2A server.
*
* @var string
*/
public $contextId;
protected $historyType = Message::class;
protected $historyDataType = 'array';
/**
* Unique identifier (e.g. UUID) for the task, generated by the server for a
* new task.
*
* @var string
*/
public $id;
/**
* protolint:enable REPEATED_FIELD_NAMES_PLURALIZED A key/value object to
* store custom metadata about a task.
*
* @var array[]
*/
public $metadata;
protected $statusType = TaskStatus::class;
protected $statusDataType = '';
/**
* A set of output artifacts for a Task.
*
* @param Artifact[] $artifacts
*/
public function setArtifacts($artifacts)
{
$this->artifacts = $artifacts;
}
/**
* @return Artifact[]
*/
public function getArtifacts()
{
return $this->artifacts;
}
/**
* Unique identifier (e.g. UUID) for the contextual collection of interactions
* (tasks and messages). Created by the A2A server.
*
* @param string $contextId
*/
public function setContextId($contextId)
{
$this->contextId = $contextId;
}
/**
* @return string
*/
public function getContextId()
{
return $this->contextId;
}
/**
* protolint:disable REPEATED_FIELD_NAMES_PLURALIZED The history of
* interactions from a task.
*
* @param Message[] $history
*/
public function setHistory($history)
{
$this->history = $history;
}
/**
* @return Message[]
*/
public function getHistory()
{
return $this->history;
}
/**
* Unique identifier (e.g. UUID) for the task, generated by the server for a
* new task.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* protolint:enable REPEATED_FIELD_NAMES_PLURALIZED A key/value object to
* store custom metadata about a task.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The current status of a Task, including state and a message.
*
* @param TaskStatus $status
*/
public function setStatus(TaskStatus $status)
{
$this->status = $status;
}
/**
* @return TaskStatus
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Task::class, 'Google_Service_WorkspaceEvents_Task');
@@ -0,0 +1,154 @@
<?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\WorkspaceEvents;
class TaskArtifactUpdateEvent extends \Google\Model
{
/**
* Whether this should be appended to a prior one produced
*
* @var bool
*/
public $append;
protected $artifactType = Artifact::class;
protected $artifactDataType = '';
/**
* The id of the context that this task belongs too
*
* @var string
*/
public $contextId;
/**
* Whether this represents the last part of an artifact
*
* @var bool
*/
public $lastChunk;
/**
* Optional metadata associated with the artifact update.
*
* @var array[]
*/
public $metadata;
/**
* The id of the task for this artifact
*
* @var string
*/
public $taskId;
/**
* Whether this should be appended to a prior one produced
*
* @param bool $append
*/
public function setAppend($append)
{
$this->append = $append;
}
/**
* @return bool
*/
public function getAppend()
{
return $this->append;
}
/**
* The artifact itself
*
* @param Artifact $artifact
*/
public function setArtifact(Artifact $artifact)
{
$this->artifact = $artifact;
}
/**
* @return Artifact
*/
public function getArtifact()
{
return $this->artifact;
}
/**
* The id of the context that this task belongs too
*
* @param string $contextId
*/
public function setContextId($contextId)
{
$this->contextId = $contextId;
}
/**
* @return string
*/
public function getContextId()
{
return $this->contextId;
}
/**
* Whether this represents the last part of an artifact
*
* @param bool $lastChunk
*/
public function setLastChunk($lastChunk)
{
$this->lastChunk = $lastChunk;
}
/**
* @return bool
*/
public function getLastChunk()
{
return $this->lastChunk;
}
/**
* Optional metadata associated with the artifact update.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The id of the task for this artifact
*
* @param string $taskId
*/
public function setTaskId($taskId)
{
$this->taskId = $taskId;
}
/**
* @return string
*/
public function getTaskId()
{
return $this->taskId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TaskArtifactUpdateEvent::class, 'Google_Service_WorkspaceEvents_TaskArtifactUpdateEvent');
@@ -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\WorkspaceEvents;
class TaskPushNotificationConfig extends \Google\Model
{
/**
* The resource name of the config. Format:
* tasks/{task_id}/pushNotificationConfigs/{config_id}
*
* @var string
*/
public $name;
protected $pushNotificationConfigType = PushNotificationConfig::class;
protected $pushNotificationConfigDataType = '';
/**
* The resource name of the config. Format:
* tasks/{task_id}/pushNotificationConfigs/{config_id}
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The push notification configuration details.
*
* @param PushNotificationConfig $pushNotificationConfig
*/
public function setPushNotificationConfig(PushNotificationConfig $pushNotificationConfig)
{
$this->pushNotificationConfig = $pushNotificationConfig;
}
/**
* @return PushNotificationConfig
*/
public function getPushNotificationConfig()
{
return $this->pushNotificationConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TaskPushNotificationConfig::class, 'Google_Service_WorkspaceEvents_TaskPushNotificationConfig');
@@ -0,0 +1,132 @@
<?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\WorkspaceEvents;
class TaskStatus extends \Google\Model
{
public const STATE_TASK_STATE_UNSPECIFIED = 'TASK_STATE_UNSPECIFIED';
/**
* Represents the status that acknowledges a task is created
*/
public const STATE_TASK_STATE_SUBMITTED = 'TASK_STATE_SUBMITTED';
/**
* Represents the status that a task is actively being processed
*/
public const STATE_TASK_STATE_WORKING = 'TASK_STATE_WORKING';
/**
* Represents the status a task is finished. This is a terminal state
*/
public const STATE_TASK_STATE_COMPLETED = 'TASK_STATE_COMPLETED';
/**
* Represents the status a task is done but failed. This is a terminal state
*/
public const STATE_TASK_STATE_FAILED = 'TASK_STATE_FAILED';
/**
* Represents the status a task was cancelled before it finished. This is a
* terminal state.
*/
public const STATE_TASK_STATE_CANCELLED = 'TASK_STATE_CANCELLED';
/**
* Represents the status that the task requires information to complete. This
* is an interrupted state.
*/
public const STATE_TASK_STATE_INPUT_REQUIRED = 'TASK_STATE_INPUT_REQUIRED';
/**
* Represents the status that the agent has decided to not perform the task.
* This may be done during initial task creation or later once an agent has
* determined it can't or won't proceed. This is a terminal state.
*/
public const STATE_TASK_STATE_REJECTED = 'TASK_STATE_REJECTED';
/**
* Represents the state that some authentication is needed from the upstream
* client. Authentication is expected to come out-of-band thus this is not an
* interrupted or terminal state.
*/
public const STATE_TASK_STATE_AUTH_REQUIRED = 'TASK_STATE_AUTH_REQUIRED';
protected $messageType = Message::class;
protected $messageDataType = '';
/**
* The current state of this task
*
* @var string
*/
public $state;
/**
* Timestamp when the status was recorded. Example: "2023-10-27T10:00:00Z"
*
* @var string
*/
public $timestamp;
/**
* A message associated with the status.
*
* @param Message $message
*/
public function setMessage(Message $message)
{
$this->message = $message;
}
/**
* @return Message
*/
public function getMessage()
{
return $this->message;
}
/**
* The current state of this task
*
* Accepted values: TASK_STATE_UNSPECIFIED, TASK_STATE_SUBMITTED,
* TASK_STATE_WORKING, TASK_STATE_COMPLETED, TASK_STATE_FAILED,
* TASK_STATE_CANCELLED, TASK_STATE_INPUT_REQUIRED, TASK_STATE_REJECTED,
* TASK_STATE_AUTH_REQUIRED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Timestamp when the status was recorded. Example: "2023-10-27T10:00:00Z"
*
* @param string $timestamp
*/
public function setTimestamp($timestamp)
{
$this->timestamp = $timestamp;
}
/**
* @return string
*/
public function getTimestamp()
{
return $this->timestamp;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TaskStatus::class, 'Google_Service_WorkspaceEvents_TaskStatus');
@@ -0,0 +1,132 @@
<?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\WorkspaceEvents;
class TaskStatusUpdateEvent extends \Google\Model
{
/**
* The id of the context that the task belongs to
*
* @var string
*/
public $contextId;
/**
* Whether this is the last status update expected for this task.
*
* @var bool
*/
public $final;
/**
* Optional metadata to associate with the task update.
*
* @var array[]
*/
public $metadata;
protected $statusType = TaskStatus::class;
protected $statusDataType = '';
/**
* The id of the task that is changed
*
* @var string
*/
public $taskId;
/**
* The id of the context that the task belongs to
*
* @param string $contextId
*/
public function setContextId($contextId)
{
$this->contextId = $contextId;
}
/**
* @return string
*/
public function getContextId()
{
return $this->contextId;
}
/**
* Whether this is the last status update expected for this task.
*
* @param bool $final
*/
public function setFinal($final)
{
$this->final = $final;
}
/**
* @return bool
*/
public function getFinal()
{
return $this->final;
}
/**
* Optional metadata to associate with the task update.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The new status of the task.
*
* @param TaskStatus $status
*/
public function setStatus(TaskStatus $status)
{
$this->status = $status;
}
/**
* @return TaskStatus
*/
public function getStatus()
{
return $this->status;
}
/**
* The id of the task that is changed
*
* @param string $taskId
*/
public function setTaskId($taskId)
{
$this->taskId = $taskId;
}
/**
* @return string
*/
public function getTaskId()
{
return $this->taskId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TaskStatusUpdateEvent::class, 'Google_Service_WorkspaceEvents_TaskStatusUpdateEvent');
@@ -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\WorkspaceEvents;
class WorkspaceeventsEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WorkspaceeventsEmpty::class, 'Google_Service_WorkspaceEvents_WorkspaceeventsEmpty');