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,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\CloudShell;
class AddPublicKeyMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddPublicKeyMetadata::class, 'Google_Service_CloudShell_AddPublicKeyMetadata');
@@ -0,0 +1,56 @@
<?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\CloudShell;
class AddPublicKeyRequest extends \Google\Model
{
/**
* Key that should be added to the environment. Supported formats are `ssh-
* dss` (see RFC4253), `ssh-rsa` (see RFC4253), `ecdsa-sha2-nistp256` (see
* RFC5656), `ecdsa-sha2-nistp384` (see RFC5656) and `ecdsa-sha2-nistp521`
* (see RFC5656). It should be structured as , where part is encoded with
* Base64.
*
* @var string
*/
public $key;
/**
* Key that should be added to the environment. Supported formats are `ssh-
* dss` (see RFC4253), `ssh-rsa` (see RFC4253), `ecdsa-sha2-nistp256` (see
* RFC5656), `ecdsa-sha2-nistp384` (see RFC5656) and `ecdsa-sha2-nistp521`
* (see RFC5656). It should be structured as , where part is encoded with
* Base64.
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddPublicKeyRequest::class, 'Google_Service_CloudShell_AddPublicKeyRequest');
@@ -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\CloudShell;
class AddPublicKeyResponse extends \Google\Model
{
/**
* Key that was added to the environment.
*
* @var string
*/
public $key;
/**
* Key that was added to the environment.
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddPublicKeyResponse::class, 'Google_Service_CloudShell_AddPublicKeyResponse');
@@ -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\CloudShell;
class AuthorizeEnvironmentMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthorizeEnvironmentMetadata::class, 'Google_Service_CloudShell_AuthorizeEnvironmentMetadata');
@@ -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\CloudShell;
class AuthorizeEnvironmentRequest extends \Google\Model
{
/**
* The OAuth access token that should be sent to the environment.
*
* @var string
*/
public $accessToken;
/**
* The time when the credentials expire. If not set, defaults to one hour from
* when the server received the request.
*
* @var string
*/
public $expireTime;
/**
* The OAuth ID token that should be sent to the environment.
*
* @var string
*/
public $idToken;
/**
* The OAuth access token that should be sent to the environment.
*
* @param string $accessToken
*/
public function setAccessToken($accessToken)
{
$this->accessToken = $accessToken;
}
/**
* @return string
*/
public function getAccessToken()
{
return $this->accessToken;
}
/**
* The time when the credentials expire. If not set, defaults to one hour from
* when the server received the request.
*
* @param string $expireTime
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* The OAuth ID token that should be sent to the environment.
*
* @param string $idToken
*/
public function setIdToken($idToken)
{
$this->idToken = $idToken;
}
/**
* @return string
*/
public function getIdToken()
{
return $this->idToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthorizeEnvironmentRequest::class, 'Google_Service_CloudShell_AuthorizeEnvironmentRequest');
@@ -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\CloudShell;
class AuthorizeEnvironmentResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuthorizeEnvironmentResponse::class, 'Google_Service_CloudShell_AuthorizeEnvironmentResponse');
@@ -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\CloudShell;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_CloudShell_CancelOperationRequest');
@@ -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\CloudShell;
class CloudshellEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudshellEmpty::class, 'Google_Service_CloudShell_CloudshellEmpty');
@@ -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\CloudShell;
class CreateEnvironmentMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateEnvironmentMetadata::class, 'Google_Service_CloudShell_CreateEnvironmentMetadata');
@@ -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\CloudShell;
class DeleteEnvironmentMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeleteEnvironmentMetadata::class, 'Google_Service_CloudShell_DeleteEnvironmentMetadata');
@@ -0,0 +1,279 @@
<?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\CloudShell;
class Environment extends \Google\Collection
{
/**
* The environment's states is unknown.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The environment is not running and can't be connected to. Starting the
* environment will transition it to the PENDING state.
*/
public const STATE_SUSPENDED = 'SUSPENDED';
/**
* The environment is being started but is not yet ready to accept
* connections.
*/
public const STATE_PENDING = 'PENDING';
/**
* The environment is running and ready to accept connections. It will
* automatically transition back to DISABLED after a period of inactivity or
* if another environment is started.
*/
public const STATE_RUNNING = 'RUNNING';
/**
* The environment is being deleted and can't be connected to.
*/
public const STATE_DELETING = 'DELETING';
protected $collection_key = 'publicKeys';
/**
* Required. Immutable. Full path to the Docker image used to run this
* environment, e.g. "gcr.io/dev-con/cloud-devshell:latest".
*
* @var string
*/
public $dockerImage;
/**
* Output only. The environment's identifier, unique among the user's
* environments.
*
* @var string
*/
public $id;
/**
* Immutable. Full name of this resource, in the format
* `users/{owner_email}/environments/{environment_id}`. `{owner_email}` is the
* email address of the user to whom this environment belongs, and
* `{environment_id}` is the identifier of this environment. For example,
* `users/someone@example.com/environments/default`.
*
* @var string
*/
public $name;
/**
* Output only. Public keys associated with the environment. Clients can
* connect to this environment via SSH only if they possess a private key
* corresponding to at least one of these public keys. Keys can be added to or
* removed from the environment using the AddPublicKey and RemovePublicKey
* methods.
*
* @var string[]
*/
public $publicKeys;
/**
* Output only. Host to which clients can connect to initiate SSH sessions
* with the environment.
*
* @var string
*/
public $sshHost;
/**
* Output only. Port to which clients can connect to initiate SSH sessions
* with the environment.
*
* @var int
*/
public $sshPort;
/**
* Output only. Username that clients should use when initiating SSH sessions
* with the environment.
*
* @var string
*/
public $sshUsername;
/**
* Output only. Current execution state of this environment.
*
* @var string
*/
public $state;
/**
* Output only. Host to which clients can connect to initiate HTTPS or WSS
* connections with the environment.
*
* @var string
*/
public $webHost;
/**
* Required. Immutable. Full path to the Docker image used to run this
* environment, e.g. "gcr.io/dev-con/cloud-devshell:latest".
*
* @param string $dockerImage
*/
public function setDockerImage($dockerImage)
{
$this->dockerImage = $dockerImage;
}
/**
* @return string
*/
public function getDockerImage()
{
return $this->dockerImage;
}
/**
* Output only. The environment's identifier, unique among the user's
* environments.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Immutable. Full name of this resource, in the format
* `users/{owner_email}/environments/{environment_id}`. `{owner_email}` is the
* email address of the user to whom this environment belongs, and
* `{environment_id}` is the identifier of this environment. For example,
* `users/someone@example.com/environments/default`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Public keys associated with the environment. Clients can
* connect to this environment via SSH only if they possess a private key
* corresponding to at least one of these public keys. Keys can be added to or
* removed from the environment using the AddPublicKey and RemovePublicKey
* methods.
*
* @param string[] $publicKeys
*/
public function setPublicKeys($publicKeys)
{
$this->publicKeys = $publicKeys;
}
/**
* @return string[]
*/
public function getPublicKeys()
{
return $this->publicKeys;
}
/**
* Output only. Host to which clients can connect to initiate SSH sessions
* with the environment.
*
* @param string $sshHost
*/
public function setSshHost($sshHost)
{
$this->sshHost = $sshHost;
}
/**
* @return string
*/
public function getSshHost()
{
return $this->sshHost;
}
/**
* Output only. Port to which clients can connect to initiate SSH sessions
* with the environment.
*
* @param int $sshPort
*/
public function setSshPort($sshPort)
{
$this->sshPort = $sshPort;
}
/**
* @return int
*/
public function getSshPort()
{
return $this->sshPort;
}
/**
* Output only. Username that clients should use when initiating SSH sessions
* with the environment.
*
* @param string $sshUsername
*/
public function setSshUsername($sshUsername)
{
$this->sshUsername = $sshUsername;
}
/**
* @return string
*/
public function getSshUsername()
{
return $this->sshUsername;
}
/**
* Output only. Current execution state of this environment.
*
* Accepted values: STATE_UNSPECIFIED, SUSPENDED, PENDING, RUNNING, DELETING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Host to which clients can connect to initiate HTTPS or WSS
* connections with the environment.
*
* @param string $webHost
*/
public function setWebHost($webHost)
{
$this->webHost = $webHost;
}
/**
* @return string
*/
public function getWebHost()
{
return $this->webHost;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Environment::class, 'Google_Service_CloudShell_Environment');
@@ -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\CloudShell;
class GenerateAccessTokenResponse extends \Google\Model
{
/**
* The access token.
*
* @var string
*/
public $accessToken;
/**
* The access token.
*
* @param string $accessToken
*/
public function setAccessToken($accessToken)
{
$this->accessToken = $accessToken;
}
/**
* @return string
*/
public function getAccessToken()
{
return $this->accessToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GenerateAccessTokenResponse::class, 'Google_Service_CloudShell_GenerateAccessTokenResponse');
@@ -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\CloudShell;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @var string[]
*/
public $unreachable;
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of operations that matches the specified filter in the request.
*
* @param Operation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
/**
* Unordered list. Unreachable resources. Populated when the request sets
* `ListOperationsRequest.return_partial_success` and reads across
* collections. For example, when attempting to list all resources across all
* supported locations.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_CloudShell_ListOperationsResponse');
@@ -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\CloudShell;
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_CloudShell_Operation');
@@ -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\CloudShell;
class RemovePublicKeyMetadata extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RemovePublicKeyMetadata::class, 'Google_Service_CloudShell_RemovePublicKeyMetadata');
@@ -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\CloudShell;
class RemovePublicKeyRequest extends \Google\Model
{
/**
* Key that should be removed from the environment.
*
* @var string
*/
public $key;
/**
* Key that should be removed from the environment.
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RemovePublicKeyRequest::class, 'Google_Service_CloudShell_RemovePublicKeyRequest');
@@ -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\CloudShell;
class RemovePublicKeyResponse extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RemovePublicKeyResponse::class, 'Google_Service_CloudShell_RemovePublicKeyResponse');
@@ -0,0 +1,121 @@
<?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\CloudShell\Resource;
use Google\Service\CloudShell\CancelOperationRequest;
use Google\Service\CloudShell\CloudshellEmpty;
use Google\Service\CloudShell\ListOperationsResponse;
use Google\Service\CloudShell\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $cloudshellService = new Google\Service\CloudShell(...);
* $operations = $cloudshellService->operations;
* </code>
*/
class Operations extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param CancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return CloudshellEmpty
* @throws \Google\Service\Exception
*/
public function cancel($name, CancelOperationRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('cancel', [$params], CloudshellEmpty::class);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return CloudshellEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], CloudshellEmpty::class);
}
/**
* 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);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @opt_param bool returnPartialSuccess When set to `true`, operations that are
* reachable are returned as normal, and those that are unreachable are returned
* in the ListOperationsResponse.unreachable field. This can only be `true` when
* reading across collections. For example, when `parent` is set to
* `"projects/example/locations/-"`. This field is not supported by default and
* will result in an `UNIMPLEMENTED` error if set unless explicitly documented
* otherwise in service or product specific documentation.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operations::class, 'Google_Service_CloudShell_Resource_Operations');
@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudShell\Resource;
/**
* The "users" collection of methods.
* Typical usage is:
* <code>
* $cloudshellService = new Google\Service\CloudShell(...);
* $users = $cloudshellService->users;
* </code>
*/
class Users extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Users::class, 'Google_Service_CloudShell_Resource_Users');
@@ -0,0 +1,162 @@
<?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\CloudShell\Resource;
use Google\Service\CloudShell\AddPublicKeyRequest;
use Google\Service\CloudShell\AuthorizeEnvironmentRequest;
use Google\Service\CloudShell\Environment;
use Google\Service\CloudShell\GenerateAccessTokenResponse;
use Google\Service\CloudShell\Operation;
use Google\Service\CloudShell\RemovePublicKeyRequest;
use Google\Service\CloudShell\StartEnvironmentRequest;
/**
* The "environments" collection of methods.
* Typical usage is:
* <code>
* $cloudshellService = new Google\Service\CloudShell(...);
* $environments = $cloudshellService->users_environments;
* </code>
*/
class UsersEnvironments extends \Google\Service\Resource
{
/**
* Adds a public SSH key to an environment, allowing clients with the
* corresponding private key to connect to that environment via SSH. If a key
* with the same content already exists, this will error with ALREADY_EXISTS.
* (environments.addPublicKey)
*
* @param string $environment Environment this key should be added to, e.g.
* `users/me/environments/default`.
* @param AddPublicKeyRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function addPublicKey($environment, AddPublicKeyRequest $postBody, $optParams = [])
{
$params = ['environment' => $environment, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('addPublicKey', [$params], Operation::class);
}
/**
* Sends OAuth credentials to a running environment on behalf of a user. When
* this completes, the environment will be authorized to run various Google
* Cloud command line tools without requiring the user to manually authenticate.
* (environments.authorize)
*
* @param string $name Name of the resource that should receive the credentials,
* for example `users/me/environments/default` or
* `users/someone@example.com/environments/default`.
* @param AuthorizeEnvironmentRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function authorize($name, AuthorizeEnvironmentRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('authorize', [$params], Operation::class);
}
/**
* Generates an access token for the user's environment.
* (environments.generateAccessToken)
*
* @param string $environment Required. The environment to generate the access
* token for.
* @param array $optParams Optional parameters.
*
* @opt_param string expireTime Desired expiration time of the access token.
* This value must be at most 24 hours in the future. If a value is not
* specified, the token's expiration time will be set to a default value of 1
* hour in the future.
* @opt_param string ttl Desired lifetime duration of the access token. This
* value must be at most 24 hours. If a value is not specified, the token's
* lifetime will be set to a default value of 1 hour.
* @return GenerateAccessTokenResponse
* @throws \Google\Service\Exception
*/
public function generateAccessToken($environment, $optParams = [])
{
$params = ['environment' => $environment];
$params = array_merge($params, $optParams);
return $this->call('generateAccessToken', [$params], GenerateAccessTokenResponse::class);
}
/**
* Gets an environment. Returns NOT_FOUND if the environment does not exist.
* (environments.get)
*
* @param string $name Required. Name of the requested resource, for example
* `users/me/environments/default` or
* `users/someone@example.com/environments/default`.
* @param array $optParams Optional parameters.
* @return Environment
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Environment::class);
}
/**
* Removes a public SSH key from an environment. Clients will no longer be able
* to connect to the environment using the corresponding private key. If a key
* with the same content is not present, this will error with NOT_FOUND.
* (environments.removePublicKey)
*
* @param string $environment Environment this key should be removed from, e.g.
* `users/me/environments/default`.
* @param RemovePublicKeyRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function removePublicKey($environment, RemovePublicKeyRequest $postBody, $optParams = [])
{
$params = ['environment' => $environment, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('removePublicKey', [$params], Operation::class);
}
/**
* Starts an existing environment, allowing clients to connect to it. The
* returned operation will contain an instance of StartEnvironmentMetadata in
* its metadata field. Users can wait for the environment to start by polling
* this operation via GetOperation. Once the environment has finished starting
* and is ready to accept connections, the operation will contain a
* StartEnvironmentResponse in its response field. (environments.start)
*
* @param string $name Name of the resource that should be started, for example
* `users/me/environments/default` or
* `users/someone@example.com/environments/default`.
* @param StartEnvironmentRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function start($name, StartEnvironmentRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('start', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UsersEnvironments::class, 'Google_Service_CloudShell_Resource_UsersEnvironments');
@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudShell;
class StartEnvironmentMetadata extends \Google\Model
{
/**
* The environment's start state is unknown.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* The environment is in the process of being started, but no additional
* details are available.
*/
public const STATE_STARTING = 'STARTING';
/**
* Startup is waiting for the user's disk to be unarchived. This can happen
* when the user returns to Cloud Shell after not having used it for a while,
* and suggests that startup will take longer than normal.
*/
public const STATE_UNARCHIVING_DISK = 'UNARCHIVING_DISK';
/**
* Startup is waiting for compute resources to be assigned to the environment.
* This should normally happen very quickly, but an environment might stay in
* this state for an extended period of time if the system is experiencing
* heavy load.
*/
public const STATE_AWAITING_COMPUTE_RESOURCES = 'AWAITING_COMPUTE_RESOURCES';
/**
* Startup has completed. If the start operation was successful, the user
* should be able to establish an SSH connection to their environment.
* Otherwise, the operation will contain details of the failure.
*/
public const STATE_FINISHED = 'FINISHED';
/**
* Current state of the environment being started.
*
* @var string
*/
public $state;
/**
* Current state of the environment being started.
*
* Accepted values: STATE_UNSPECIFIED, STARTING, UNARCHIVING_DISK,
* AWAITING_COMPUTE_RESOURCES, FINISHED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StartEnvironmentMetadata::class, 'Google_Service_CloudShell_StartEnvironmentMetadata');
@@ -0,0 +1,77 @@
<?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\CloudShell;
class StartEnvironmentRequest extends \Google\Collection
{
protected $collection_key = 'publicKeys';
/**
* The initial access token passed to the environment. If this is present and
* valid, the environment will be pre-authenticated with gcloud so that the
* user can run gcloud commands in Cloud Shell without having to log in. This
* code can be updated later by calling AuthorizeEnvironment.
*
* @var string
*/
public $accessToken;
/**
* Public keys that should be added to the environment before it is started.
*
* @var string[]
*/
public $publicKeys;
/**
* The initial access token passed to the environment. If this is present and
* valid, the environment will be pre-authenticated with gcloud so that the
* user can run gcloud commands in Cloud Shell without having to log in. This
* code can be updated later by calling AuthorizeEnvironment.
*
* @param string $accessToken
*/
public function setAccessToken($accessToken)
{
$this->accessToken = $accessToken;
}
/**
* @return string
*/
public function getAccessToken()
{
return $this->accessToken;
}
/**
* Public keys that should be added to the environment before it is started.
*
* @param string[] $publicKeys
*/
public function setPublicKeys($publicKeys)
{
$this->publicKeys = $publicKeys;
}
/**
* @return string[]
*/
public function getPublicKeys()
{
return $this->publicKeys;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StartEnvironmentRequest::class, 'Google_Service_CloudShell_StartEnvironmentRequest');
@@ -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\CloudShell;
class StartEnvironmentResponse extends \Google\Model
{
protected $environmentType = Environment::class;
protected $environmentDataType = '';
/**
* Environment that was started.
*
* @param Environment $environment
*/
public function setEnvironment(Environment $environment)
{
$this->environment = $environment;
}
/**
* @return Environment
*/
public function getEnvironment()
{
return $this->environment;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StartEnvironmentResponse::class, 'Google_Service_CloudShell_StartEnvironmentResponse');
@@ -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\CloudShell;
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_CloudShell_Status');