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,67 @@
<?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\CloudProfiler;
class CreateProfileRequest extends \Google\Collection
{
protected $collection_key = 'profileType';
protected $deploymentType = Deployment::class;
protected $deploymentDataType = '';
/**
* One or more profile types that the agent is capable of providing.
*
* @var string[]
*/
public $profileType;
/**
* Deployment details.
*
* @param Deployment $deployment
*/
public function setDeployment(Deployment $deployment)
{
$this->deployment = $deployment;
}
/**
* @return Deployment
*/
public function getDeployment()
{
return $this->deployment;
}
/**
* One or more profile types that the agent is capable of providing.
*
* @param string[] $profileType
*/
public function setProfileType($profileType)
{
$this->profileType = $profileType;
}
/**
* @return string[]
*/
public function getProfileType()
{
return $this->profileType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateProfileRequest::class, 'Google_Service_CloudProfiler_CreateProfileRequest');
@@ -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\CloudProfiler;
class Deployment extends \Google\Model
{
/**
* Labels identify the deployment within the user universe and same target.
* Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
* Value for an individual label must be <= 512 bytes, the total size of all
* label names and values must be <= 1024 bytes. Label named "language" can be
* used to record the programming language of the profiled deployment. The
* standard choices for the value include "java", "go", "python", "ruby",
* "nodejs", "php", "dotnet". For deployments running on Google Cloud
* Platform, "zone" or "region" label should be present describing the
* deployment location. An example of a zone is "us-central1-a", an example of
* a region is "us-central1" or "us-central".
*
* @var string[]
*/
public $labels;
/**
* Project ID is the ID of a cloud project. Validation regex:
* `^a-z{4,61}[a-z0-9]$`.
*
* @var string
*/
public $projectId;
/**
* Target is the service name used to group related deployments: * Service
* name for App Engine Flex / Standard. * Cluster and container name for GKE.
* * User-specified string for direct Compute Engine profiling (e.g. Java). *
* Job name for Dataflow. Validation regex:
* `^[a-z0-9]([-a-z0-9_.]{0,253}[a-z0-9])?$`.
*
* @var string
*/
public $target;
/**
* Labels identify the deployment within the user universe and same target.
* Validation regex for label names: `^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$`.
* Value for an individual label must be <= 512 bytes, the total size of all
* label names and values must be <= 1024 bytes. Label named "language" can be
* used to record the programming language of the profiled deployment. The
* standard choices for the value include "java", "go", "python", "ruby",
* "nodejs", "php", "dotnet". For deployments running on Google Cloud
* Platform, "zone" or "region" label should be present describing the
* deployment location. An example of a zone is "us-central1-a", an example of
* a region is "us-central1" or "us-central".
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Project ID is the ID of a cloud project. Validation regex:
* `^a-z{4,61}[a-z0-9]$`.
*
* @param string $projectId
*/
public function setProjectId($projectId)
{
$this->projectId = $projectId;
}
/**
* @return string
*/
public function getProjectId()
{
return $this->projectId;
}
/**
* Target is the service name used to group related deployments: * Service
* name for App Engine Flex / Standard. * Cluster and container name for GKE.
* * User-specified string for direct Compute Engine profiling (e.g. Java). *
* Job name for Dataflow. Validation regex:
* `^[a-z0-9]([-a-z0-9_.]{0,253}[a-z0-9])?$`.
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Deployment::class, 'Google_Service_CloudProfiler_Deployment');
@@ -0,0 +1,97 @@
<?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\CloudProfiler;
class ListProfilesResponse extends \Google\Collection
{
protected $collection_key = 'profiles';
/**
* Token to receive the next page of results. This field maybe empty if there
* are no more profiles to fetch.
*
* @var string
*/
public $nextPageToken;
protected $profilesType = Profile::class;
protected $profilesDataType = 'array';
/**
* Number of profiles that were skipped in the current page since they were
* not able to be fetched successfully. This should typically be zero. A non-
* zero value may indicate a transient failure, in which case if the number is
* too high for your use case, the call may be retried.
*
* @var int
*/
public $skippedProfiles;
/**
* Token to receive the next page of results. This field maybe empty if there
* are no more profiles to fetch.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* List of profiles fetched.
*
* @param Profile[] $profiles
*/
public function setProfiles($profiles)
{
$this->profiles = $profiles;
}
/**
* @return Profile[]
*/
public function getProfiles()
{
return $this->profiles;
}
/**
* Number of profiles that were skipped in the current page since they were
* not able to be fetched successfully. This should typically be zero. A non-
* zero value may indicate a transient failure, in which case if the number is
* too high for your use case, the call may be retried.
*
* @param int $skippedProfiles
*/
public function setSkippedProfiles($skippedProfiles)
{
$this->skippedProfiles = $skippedProfiles;
}
/**
* @return int
*/
public function getSkippedProfiles()
{
return $this->skippedProfiles;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListProfilesResponse::class, 'Google_Service_CloudProfiler_ListProfilesResponse');
@@ -0,0 +1,237 @@
<?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\CloudProfiler;
class Profile extends \Google\Model
{
/**
* Unspecified profile type.
*/
public const PROFILE_TYPE_PROFILE_TYPE_UNSPECIFIED = 'PROFILE_TYPE_UNSPECIFIED';
/**
* Thread CPU time sampling.
*/
public const PROFILE_TYPE_CPU = 'CPU';
/**
* Wallclock time sampling. More expensive as stops all threads.
*/
public const PROFILE_TYPE_WALL = 'WALL';
/**
* In-use heap profile. Represents a snapshot of the allocations that are live
* at the time of the profiling.
*/
public const PROFILE_TYPE_HEAP = 'HEAP';
/**
* Single-shot collection of all thread stacks.
*/
public const PROFILE_TYPE_THREADS = 'THREADS';
/**
* Synchronization contention profile.
*/
public const PROFILE_TYPE_CONTENTION = 'CONTENTION';
/**
* Peak heap profile.
*/
public const PROFILE_TYPE_PEAK_HEAP = 'PEAK_HEAP';
/**
* Heap allocation profile. It represents the aggregation of all allocations
* made over the duration of the profile. All allocations are included,
* including those that might have been freed by the end of the profiling
* interval. The profile is in particular useful for garbage collecting
* languages to understand which parts of the code create most of the garbage
* collection pressure to see if those can be optimized.
*/
public const PROFILE_TYPE_HEAP_ALLOC = 'HEAP_ALLOC';
protected $deploymentType = Deployment::class;
protected $deploymentDataType = '';
/**
* Duration of the profiling session. Input (for the offline mode) or output
* (for the online mode). The field represents requested profiling duration.
* It may slightly differ from the effective profiling duration, which is
* recorded in the profile data, in case the profiling can't be stopped
* immediately (e.g. in case stopping the profiling is handled
* asynchronously).
*
* @var string
*/
public $duration;
/**
* Input only. Labels associated to this specific profile. These labels will
* get merged with the deployment labels for the final data set. See
* documentation on deployment labels for validation rules and limits.
*
* @var string[]
*/
public $labels;
/**
* Output only. Opaque, server-assigned, unique ID for this profile.
*
* @var string
*/
public $name;
/**
* Input only. Profile bytes, as a gzip compressed serialized proto, the
* format is https://github.com/google/pprof/blob/master/proto/profile.proto.
*
* @var string
*/
public $profileBytes;
/**
* Type of profile. For offline mode, this must be specified when creating the
* profile. For online mode it is assigned and returned by the server.
*
* @var string
*/
public $profileType;
/**
* Output only. Start time for the profile. This output is only present in
* response from the ListProfiles method.
*
* @var string
*/
public $startTime;
/**
* Deployment this profile corresponds to.
*
* @param Deployment $deployment
*/
public function setDeployment(Deployment $deployment)
{
$this->deployment = $deployment;
}
/**
* @return Deployment
*/
public function getDeployment()
{
return $this->deployment;
}
/**
* Duration of the profiling session. Input (for the offline mode) or output
* (for the online mode). The field represents requested profiling duration.
* It may slightly differ from the effective profiling duration, which is
* recorded in the profile data, in case the profiling can't be stopped
* immediately (e.g. in case stopping the profiling is handled
* asynchronously).
*
* @param string $duration
*/
public function setDuration($duration)
{
$this->duration = $duration;
}
/**
* @return string
*/
public function getDuration()
{
return $this->duration;
}
/**
* Input only. Labels associated to this specific profile. These labels will
* get merged with the deployment labels for the final data set. See
* documentation on deployment labels for validation rules and limits.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Output only. Opaque, server-assigned, unique ID for this profile.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Input only. Profile bytes, as a gzip compressed serialized proto, the
* format is https://github.com/google/pprof/blob/master/proto/profile.proto.
*
* @param string $profileBytes
*/
public function setProfileBytes($profileBytes)
{
$this->profileBytes = $profileBytes;
}
/**
* @return string
*/
public function getProfileBytes()
{
return $this->profileBytes;
}
/**
* Type of profile. For offline mode, this must be specified when creating the
* profile. For online mode it is assigned and returned by the server.
*
* Accepted values: PROFILE_TYPE_UNSPECIFIED, CPU, WALL, HEAP, THREADS,
* CONTENTION, PEAK_HEAP, HEAP_ALLOC
*
* @param self::PROFILE_TYPE_* $profileType
*/
public function setProfileType($profileType)
{
$this->profileType = $profileType;
}
/**
* @return self::PROFILE_TYPE_*
*/
public function getProfileType()
{
return $this->profileType;
}
/**
* Output only. Start time for the profile. This output is only present in
* response from the ListProfiles method.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Profile::class, 'Google_Service_CloudProfiler_Profile');
@@ -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\CloudProfiler\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $cloudprofilerService = new Google\Service\CloudProfiler(...);
* $projects = $cloudprofilerService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_CloudProfiler_Resource_Projects');
@@ -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\CloudProfiler\Resource;
use Google\Service\CloudProfiler\CreateProfileRequest;
use Google\Service\CloudProfiler\ListProfilesResponse;
use Google\Service\CloudProfiler\Profile;
/**
* The "profiles" collection of methods.
* Typical usage is:
* <code>
* $cloudprofilerService = new Google\Service\CloudProfiler(...);
* $profiles = $cloudprofilerService->projects_profiles;
* </code>
*/
class ProjectsProfiles extends \Google\Service\Resource
{
/**
* CreateProfile creates a new profile resource in the online mode. _Direct use
* of this API is discouraged, please use a [supported profiler
* agent](https://cloud.google.com/profiler/docs/about-profiler#profiling_agent)
* instead for profile collection._ The server ensures that the new profiles are
* created at a constant rate per deployment, so the creation request may hang
* for some time until the next profile session is available. The request may
* fail with ABORTED error if the creation is not available within ~1m, the
* response will indicate the duration of the backoff the client should take
* before attempting creating a profile again. The backoff duration is returned
* in google.rpc.RetryInfo extension on the response status. To a gRPC client,
* the extension will be return as a binary-serialized proto in the trailing
* metadata item named "google.rpc.retryinfo-bin". (profiles.create)
*
* @param string $parent Parent project to create the profile in.
* @param CreateProfileRequest $postBody
* @param array $optParams Optional parameters.
* @return Profile
* @throws \Google\Service\Exception
*/
public function create($parent, CreateProfileRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Profile::class);
}
/**
* CreateOfflineProfile creates a new profile resource in the offline mode. The
* client provides the profile to create along with the profile bytes, the
* server records it. _Direct use of this API is discouraged, please use a
* [supported profiler agent](https://cloud.google.com/profiler/docs/about-
* profiler#profiling_agent) instead for profile collection._
* (profiles.createOffline)
*
* @param string $parent Parent project to create the profile in.
* @param Profile $postBody
* @param array $optParams Optional parameters.
* @return Profile
* @throws \Google\Service\Exception
*/
public function createOffline($parent, Profile $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('createOffline', [$params], Profile::class);
}
/**
* Lists profiles which have been collected so far and for which the caller has
* permission to view. (profiles.listProjectsProfiles)
*
* @param string $parent Required. The parent, which owns this collection of
* profiles. Format: projects/{user_project_id}
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of items to return.
* Default page_size is 1000. Max limit is 1000.
* @opt_param string pageToken Optional. The token to continue pagination and
* get profiles from a particular page. When paginating, all other parameters
* provided to `ListProfiles` must match the call that provided the page token.
* @return ListProfilesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsProfiles($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListProfilesResponse::class);
}
/**
* UpdateProfile updates the profile bytes and labels on the profile resource
* created in the online mode. Updating the bytes for profiles created in the
* offline mode is currently not supported: the profile content must be provided
* at the time of the profile creation. _Direct use of this API is discouraged,
* please use a [supported profiler
* agent](https://cloud.google.com/profiler/docs/about-profiler#profiling_agent)
* instead for profile collection._ (profiles.patch)
*
* @param string $name Output only. Opaque, server-assigned, unique ID for this
* profile.
* @param Profile $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Field mask used to specify the fields to be
* overwritten. Currently only profile_bytes and labels fields are supported by
* UpdateProfile, so only those fields can be specified in the mask. When no
* mask is provided, all fields are overwritten.
* @return Profile
* @throws \Google\Service\Exception
*/
public function patch($name, Profile $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Profile::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsProfiles::class, 'Google_Service_CloudProfiler_Resource_ProjectsProfiles');