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,200 @@
<?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\CloudObservability;
class Bucket extends \Google\Model
{
protected $cmekSettingsType = CmekSettings::class;
protected $cmekSettingsDataType = '';
/**
* Output only. Create timestamp.
*
* @var string
*/
public $createTime;
/**
* Output only. Delete timestamp.
*
* @var string
*/
public $deleteTime;
/**
* Optional. Description of the bucket.
*
* @var string
*/
public $description;
/**
* Optional. User friendly display name.
*
* @var string
*/
public $displayName;
/**
* Identifier. Name of the bucket. The format is:
* projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]
*
* @var string
*/
public $name;
/**
* Output only. Timestamp when the bucket in soft-deleted state is purged.
*
* @var string
*/
public $purgeTime;
/**
* Output only. Update timestamp.
*
* @var string
*/
public $updateTime;
/**
* Optional. Settings for configuring CMEK on a bucket.
*
* @param CmekSettings $cmekSettings
*/
public function setCmekSettings(CmekSettings $cmekSettings)
{
$this->cmekSettings = $cmekSettings;
}
/**
* @return CmekSettings
*/
public function getCmekSettings()
{
return $this->cmekSettings;
}
/**
* Output only. Create timestamp.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. Delete timestamp.
*
* @param string $deleteTime
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* Optional. Description of the bucket.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. User friendly display name.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Identifier. Name of the bucket. The format is:
* projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Timestamp when the bucket in soft-deleted state is purged.
*
* @param string $purgeTime
*/
public function setPurgeTime($purgeTime)
{
$this->purgeTime = $purgeTime;
}
/**
* @return string
*/
public function getPurgeTime()
{
return $this->purgeTime;
}
/**
* Output only. Update timestamp.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Bucket::class, 'Google_Service_CloudObservability_Bucket');
@@ -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\CloudObservability;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_CloudObservability_CancelOperationRequest');
@@ -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\CloudObservability;
class CmekSettings extends \Google\Model
{
/**
* Optional. The resource name for the configured Cloud KMS key. The format
* is: projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKey
* s/[KEY] For example: projects/my-project/locations/us-central1/keyRings/my-
* ring/cryptoKeys/my-key
*
* @var string
*/
public $kmsKey;
/**
* Output only. The CryptoKeyVersion resource name for the configured Cloud
* KMS key. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/keyRings
* /[KEYRING]/cryptoKeys/[KEY]/cryptoKeyVersions/[VERSION] For example:
* projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-
* key/cryptoKeyVersions/1 This read-only field is used to convey the specific
* configured CryptoKeyVersion of the `kms_key` that has been configured. It
* is populated when the CMEK settings are bound to a single key version.
*
* @var string
*/
public $kmsKeyVersion;
/**
* Output only. The service account used to access the key.
*
* @var string
*/
public $serviceAccountId;
/**
* Optional. The resource name for the configured Cloud KMS key. The format
* is: projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryptoKey
* s/[KEY] For example: projects/my-project/locations/us-central1/keyRings/my-
* ring/cryptoKeys/my-key
*
* @param string $kmsKey
*/
public function setKmsKey($kmsKey)
{
$this->kmsKey = $kmsKey;
}
/**
* @return string
*/
public function getKmsKey()
{
return $this->kmsKey;
}
/**
* Output only. The CryptoKeyVersion resource name for the configured Cloud
* KMS key. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/keyRings
* /[KEYRING]/cryptoKeys/[KEY]/cryptoKeyVersions/[VERSION] For example:
* projects/my-project/locations/us-central1/keyRings/my-ring/cryptoKeys/my-
* key/cryptoKeyVersions/1 This read-only field is used to convey the specific
* configured CryptoKeyVersion of the `kms_key` that has been configured. It
* is populated when the CMEK settings are bound to a single key version.
*
* @param string $kmsKeyVersion
*/
public function setKmsKeyVersion($kmsKeyVersion)
{
$this->kmsKeyVersion = $kmsKeyVersion;
}
/**
* @return string
*/
public function getKmsKeyVersion()
{
return $this->kmsKeyVersion;
}
/**
* Output only. The service account used to access the key.
*
* @param string $serviceAccountId
*/
public function setServiceAccountId($serviceAccountId)
{
$this->serviceAccountId = $serviceAccountId;
}
/**
* @return string
*/
public function getServiceAccountId()
{
return $this->serviceAccountId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CmekSettings::class, 'Google_Service_CloudObservability_CmekSettings');
@@ -0,0 +1,160 @@
<?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\CloudObservability;
class Dataset extends \Google\Model
{
/**
* Output only. Create timestamp.
*
* @var string
*/
public $createTime;
/**
* Output only. Delete timestamp.
*
* @var string
*/
public $deleteTime;
/**
* Optional. Description of the dataset.
*
* @var string
*/
public $description;
/**
* Optional. User friendly display name.
*
* @var string
*/
public $displayName;
/**
* Identifier. Name of the dataset. The format is: projects/[PROJECT_ID]/locat
* ions/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]
*
* @var string
*/
public $name;
/**
* Output only. Timestamp when the dataset in soft-deleted state is purged.
*
* @var string
*/
public $purgeTime;
/**
* Output only. Create timestamp.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. Delete timestamp.
*
* @param string $deleteTime
*/
public function setDeleteTime($deleteTime)
{
$this->deleteTime = $deleteTime;
}
/**
* @return string
*/
public function getDeleteTime()
{
return $this->deleteTime;
}
/**
* Optional. Description of the dataset.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. User friendly display name.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Identifier. Name of the dataset. The format is: projects/[PROJECT_ID]/locat
* ions/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Timestamp when the dataset in soft-deleted state is purged.
*
* @param string $purgeTime
*/
public function setPurgeTime($purgeTime)
{
$this->purgeTime = $purgeTime;
}
/**
* @return string
*/
public function getPurgeTime()
{
return $this->purgeTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Dataset::class, 'Google_Service_CloudObservability_Dataset');
@@ -0,0 +1,116 @@
<?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\CloudObservability;
class Link extends \Google\Model
{
/**
* Output only. Create timestamp.
*
* @var string
*/
public $createTime;
/**
* Optional. Description of the link.
*
* @var string
*/
public $description;
/**
* Optional. A user friendly display name.
*
* @var string
*/
public $displayName;
/**
* Identifier. Name of the link. The format is: projects/[PROJECT_ID]/location
* s/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/links/[LINK_ID]
*
* @var string
*/
public $name;
/**
* Output only. Create timestamp.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. Description of the link.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. A user friendly display name.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Identifier. Name of the link. The format is: projects/[PROJECT_ID]/location
* s/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/links/[LINK_ID]
*
* @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(Link::class, 'Google_Service_CloudObservability_Link');
@@ -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\CloudObservability;
class ListBucketsResponse extends \Google\Collection
{
protected $collection_key = 'buckets';
protected $bucketsType = Bucket::class;
protected $bucketsDataType = 'array';
/**
* Optional. A token that can be sent as `page_token` to retrieve the next
* page. When this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* Optional. The list of buckets.
*
* @param Bucket[] $buckets
*/
public function setBuckets($buckets)
{
$this->buckets = $buckets;
}
/**
* @return Bucket[]
*/
public function getBuckets()
{
return $this->buckets;
}
/**
* Optional. A token that can be sent as `page_token` to retrieve the next
* page. When 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(ListBucketsResponse::class, 'Google_Service_CloudObservability_ListBucketsResponse');
@@ -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\CloudObservability;
class ListDatasetsResponse extends \Google\Collection
{
protected $collection_key = 'datasets';
protected $datasetsType = Dataset::class;
protected $datasetsDataType = 'array';
/**
* A token that can be sent as `page_token` to retrieve the next page. When
* this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* The list of datasets.
*
* @param Dataset[] $datasets
*/
public function setDatasets($datasets)
{
$this->datasets = $datasets;
}
/**
* @return Dataset[]
*/
public function getDatasets()
{
return $this->datasets;
}
/**
* A token that can be sent as `page_token` to retrieve the next page. When
* 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(ListDatasetsResponse::class, 'Google_Service_CloudObservability_ListDatasetsResponse');
@@ -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\CloudObservability;
class ListLinksResponse extends \Google\Collection
{
protected $collection_key = 'links';
protected $linksType = Link::class;
protected $linksDataType = 'array';
/**
* Optional. A token that can be sent as `page_token` to retrieve the next
* page. When this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
/**
* The list of links.
*
* @param Link[] $links
*/
public function setLinks($links)
{
$this->links = $links;
}
/**
* @return Link[]
*/
public function getLinks()
{
return $this->links;
}
/**
* Optional. A token that can be sent as `page_token` to retrieve the next
* page. When 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(ListLinksResponse::class, 'Google_Service_CloudObservability_ListLinksResponse');
@@ -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\CloudObservability;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
/**
* A list of locations that matches the specified filter in the request.
*
* @param Location[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* The standard List next-page token.
*
* @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(ListLocationsResponse::class, 'Google_Service_CloudObservability_ListLocationsResponse');
@@ -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\CloudObservability;
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_CloudObservability_ListOperationsResponse');
@@ -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\CloudObservability;
class ListTraceScopesResponse extends \Google\Collection
{
protected $collection_key = 'traceScopes';
/**
* Optional. If there might be more results than appear in this response, then
* `next_page_token` is included. To get the next set of results, call the
* same method again using the value of `next_page_token` as `page_token`.
*
* @var string
*/
public $nextPageToken;
protected $traceScopesType = TraceScope::class;
protected $traceScopesDataType = 'array';
/**
* Optional. If there might be more results than appear in this response, then
* `next_page_token` is included. To get the next set of results, call the
* same method again using the value of `next_page_token` as `page_token`.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Optional. A list of trace scopes.
*
* @param TraceScope[] $traceScopes
*/
public function setTraceScopes($traceScopes)
{
$this->traceScopes = $traceScopes;
}
/**
* @return TraceScope[]
*/
public function getTraceScopes()
{
return $this->traceScopes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListTraceScopesResponse::class, 'Google_Service_CloudObservability_ListTraceScopesResponse');
@@ -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\CloudObservability;
class ListViewsResponse extends \Google\Collection
{
protected $collection_key = 'views';
/**
* Optional. A token that can be sent as `page_token` to retrieve the next
* page. When this field is omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
protected $viewsType = View::class;
protected $viewsDataType = 'array';
/**
* Optional. A token that can be sent as `page_token` to retrieve the next
* page. When 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;
}
/**
* The list of views.
*
* @param View[] $views
*/
public function setViews($views)
{
$this->views = $views;
}
/**
* @return View[]
*/
public function getViews()
{
return $this->views;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListViewsResponse::class, 'Google_Service_CloudObservability_ListViewsResponse');
@@ -0,0 +1,144 @@
<?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\CloudObservability;
class Location extends \Google\Model
{
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @var string
*/
public $displayName;
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @var string[]
*/
public $labels;
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @var string
*/
public $locationId;
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @var array[]
*/
public $metadata;
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @var string
*/
public $name;
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @param string $locationId
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @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(Location::class, 'Google_Service_CloudObservability_Location');
@@ -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\CloudObservability;
class ObservabilityEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ObservabilityEmpty::class, 'Google_Service_CloudObservability_ObservabilityEmpty');
@@ -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\CloudObservability;
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_CloudObservability_Operation');
@@ -0,0 +1,186 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudObservability;
class OperationMetadata extends \Google\Model
{
/**
* Output only. API version used to start the operation.
*
* @var string
*/
public $apiVersion;
/**
* Output only. The time the operation was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The time the operation finished running.
*
* @var string
*/
public $endTime;
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have been cancelled successfully have
* Operation.error value with a google.rpc.Status.code of 1, corresponding to
* `Code.CANCELLED`.
*
* @var bool
*/
public $requestedCancellation;
/**
* Output only. Human-readable status of the operation, if any.
*
* @var string
*/
public $statusMessage;
/**
* Output only. Server-defined resource path for the target of the operation.
*
* @var string
*/
public $target;
/**
* Output only. Name of the verb executed by the operation.
*
* @var string
*/
public $verb;
/**
* Output only. API version used to start the operation.
*
* @param string $apiVersion
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* Output only. The time the operation was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The time the operation finished running.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have been cancelled successfully have
* Operation.error value with a google.rpc.Status.code of 1, corresponding to
* `Code.CANCELLED`.
*
* @param bool $requestedCancellation
*/
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
/**
* @return bool
*/
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
/**
* Output only. Human-readable status of the operation, if any.
*
* @param string $statusMessage
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* Output only. Server-defined resource path for the target of the operation.
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* Output only. Name of the verb executed by the operation.
*
* @param string $verb
*/
public function setVerb($verb)
{
$this->verb = $verb;
}
/**
* @return string
*/
public function getVerb()
{
return $this->verb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadata::class, 'Google_Service_CloudObservability_OperationMetadata');
@@ -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\CloudObservability\Resource;
/**
* The "folders" collection of methods.
* Typical usage is:
* <code>
* $observabilityService = new Google\Service\CloudObservability(...);
* $folders = $observabilityService->folders;
* </code>
*/
class Folders extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Folders::class, 'Google_Service_CloudObservability_Resource_Folders');
@@ -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\CloudObservability\Resource;
use Google\Service\CloudObservability\ListLocationsResponse;
use Google\Service\CloudObservability\Location;
use Google\Service\CloudObservability\Operation;
use Google\Service\CloudObservability\Settings;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $observabilityService = new Google\Service\CloudObservability(...);
* $locations = $observabilityService->folders_locations;
* </code>
*/
class FoldersLocations extends \Google\Service\Resource
{
/**
* Gets information about a location. (locations.get)
*
* @param string $name Resource name for the location.
* @param array $optParams Optional parameters.
* @return Location
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Location::class);
}
/**
* Get Settings (locations.getSettings)
*
* @param string $name Required. Name of the settings to retrieve. Name format:
* "projects/[PROJECT_ID]/locations/[LOCATION]/settings"
* "folders/[FOLDER_ID]/locations/[LOCATION]/settings"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings"
* @param array $optParams Optional parameters.
* @return Settings
* @throws \Google\Service\Exception
*/
public function getSettings($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getSettings', [$params], Settings::class);
}
/**
* Lists information about the supported locations for this service. This method
* lists locations based on the resource scope provided in the
* ListLocationsRequest.name field: * **Global locations**: If `name` is empty,
* the method lists the public locations available to all projects. * **Project-
* specific locations**: If `name` follows the format `projects/{project}`, the
* method lists locations visible to that specific project. This includes
* public, private, or other project-specific locations enabled for the project.
* For gRPC and client library implementations, the resource name is passed as
* the `name` field. For direct service calls, the resource name is incorporated
* into the request path based on the specific service implementation and
* version. (locations.listFoldersLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string extraLocationTypes Optional. Do not use this field unless
* explicitly documented otherwise. This is primarily for internal usage.
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the `next_page_token`
* field in the response. Send that page token to receive the subsequent page.
* @return ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listFoldersLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
/**
* Update Settings (locations.updateSettings)
*
* @param string $name Identifier. The resource name of the settings.
* @param Settings $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. The field mask specifying which fields
* of the settings are to be updated.
* @return Operation
* @throws \Google\Service\Exception
*/
public function updateSettings($name, Settings $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateSettings', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersLocations::class, 'Google_Service_CloudObservability_Resource_FoldersLocations');
@@ -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\CloudObservability\Resource;
use Google\Service\CloudObservability\CancelOperationRequest;
use Google\Service\CloudObservability\ListOperationsResponse;
use Google\Service\CloudObservability\ObservabilityEmpty;
use Google\Service\CloudObservability\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $observabilityService = new Google\Service\CloudObservability(...);
* $operations = $observabilityService->folders_locations_operations;
* </code>
*/
class FoldersLocationsOperations 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 ObservabilityEmpty
* @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], ObservabilityEmpty::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 ObservabilityEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ObservabilityEmpty::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.listFoldersLocationsOperations)
*
* @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 listFoldersLocationsOperations($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(FoldersLocationsOperations::class, 'Google_Service_CloudObservability_Resource_FoldersLocationsOperations');
@@ -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\CloudObservability\Resource;
/**
* The "organizations" collection of methods.
* Typical usage is:
* <code>
* $observabilityService = new Google\Service\CloudObservability(...);
* $organizations = $observabilityService->organizations;
* </code>
*/
class Organizations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Organizations::class, 'Google_Service_CloudObservability_Resource_Organizations');
@@ -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\CloudObservability\Resource;
use Google\Service\CloudObservability\ListLocationsResponse;
use Google\Service\CloudObservability\Location;
use Google\Service\CloudObservability\Operation;
use Google\Service\CloudObservability\Settings;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $observabilityService = new Google\Service\CloudObservability(...);
* $locations = $observabilityService->organizations_locations;
* </code>
*/
class OrganizationsLocations extends \Google\Service\Resource
{
/**
* Gets information about a location. (locations.get)
*
* @param string $name Resource name for the location.
* @param array $optParams Optional parameters.
* @return Location
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Location::class);
}
/**
* Get Settings (locations.getSettings)
*
* @param string $name Required. Name of the settings to retrieve. Name format:
* "projects/[PROJECT_ID]/locations/[LOCATION]/settings"
* "folders/[FOLDER_ID]/locations/[LOCATION]/settings"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings"
* @param array $optParams Optional parameters.
* @return Settings
* @throws \Google\Service\Exception
*/
public function getSettings($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getSettings', [$params], Settings::class);
}
/**
* Lists information about the supported locations for this service. This method
* lists locations based on the resource scope provided in the
* ListLocationsRequest.name field: * **Global locations**: If `name` is empty,
* the method lists the public locations available to all projects. * **Project-
* specific locations**: If `name` follows the format `projects/{project}`, the
* method lists locations visible to that specific project. This includes
* public, private, or other project-specific locations enabled for the project.
* For gRPC and client library implementations, the resource name is passed as
* the `name` field. For direct service calls, the resource name is incorporated
* into the request path based on the specific service implementation and
* version. (locations.listOrganizationsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string extraLocationTypes Optional. Do not use this field unless
* explicitly documented otherwise. This is primarily for internal usage.
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the `next_page_token`
* field in the response. Send that page token to receive the subsequent page.
* @return ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listOrganizationsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
/**
* Update Settings (locations.updateSettings)
*
* @param string $name Identifier. The resource name of the settings.
* @param Settings $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. The field mask specifying which fields
* of the settings are to be updated.
* @return Operation
* @throws \Google\Service\Exception
*/
public function updateSettings($name, Settings $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateSettings', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsLocations::class, 'Google_Service_CloudObservability_Resource_OrganizationsLocations');
@@ -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\CloudObservability\Resource;
use Google\Service\CloudObservability\CancelOperationRequest;
use Google\Service\CloudObservability\ListOperationsResponse;
use Google\Service\CloudObservability\ObservabilityEmpty;
use Google\Service\CloudObservability\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $observabilityService = new Google\Service\CloudObservability(...);
* $operations = $observabilityService->organizations_locations_operations;
* </code>
*/
class OrganizationsLocationsOperations 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 ObservabilityEmpty
* @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], ObservabilityEmpty::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 ObservabilityEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ObservabilityEmpty::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.listOrganizationsLocationsOperations)
*
* @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 listOrganizationsLocationsOperations($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(OrganizationsLocationsOperations::class, 'Google_Service_CloudObservability_Resource_OrganizationsLocationsOperations');
@@ -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\CloudObservability\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $observabilityService = new Google\Service\CloudObservability(...);
* $projects = $observabilityService->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_CloudObservability_Resource_Projects');
@@ -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\CloudObservability\Resource;
use Google\Service\CloudObservability\ListLocationsResponse;
use Google\Service\CloudObservability\Location;
use Google\Service\CloudObservability\Operation;
use Google\Service\CloudObservability\Settings;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $observabilityService = new Google\Service\CloudObservability(...);
* $locations = $observabilityService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Gets information about a location. (locations.get)
*
* @param string $name Resource name for the location.
* @param array $optParams Optional parameters.
* @return Location
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Location::class);
}
/**
* Get Settings (locations.getSettings)
*
* @param string $name Required. Name of the settings to retrieve. Name format:
* "projects/[PROJECT_ID]/locations/[LOCATION]/settings"
* "folders/[FOLDER_ID]/locations/[LOCATION]/settings"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION]/settings"
* @param array $optParams Optional parameters.
* @return Settings
* @throws \Google\Service\Exception
*/
public function getSettings($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getSettings', [$params], Settings::class);
}
/**
* Lists information about the supported locations for this service. This method
* lists locations based on the resource scope provided in the
* ListLocationsRequest.name field: * **Global locations**: If `name` is empty,
* the method lists the public locations available to all projects. * **Project-
* specific locations**: If `name` follows the format `projects/{project}`, the
* method lists locations visible to that specific project. This includes
* public, private, or other project-specific locations enabled for the project.
* For gRPC and client library implementations, the resource name is passed as
* the `name` field. For direct service calls, the resource name is incorporated
* into the request path based on the specific service implementation and
* version. (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string extraLocationTypes Optional. Do not use this field unless
* explicitly documented otherwise. This is primarily for internal usage.
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the `next_page_token`
* field in the response. Send that page token to receive the subsequent page.
* @return ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
/**
* Update Settings (locations.updateSettings)
*
* @param string $name Identifier. The resource name of the settings.
* @param Settings $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. The field mask specifying which fields
* of the settings are to be updated.
* @return Operation
* @throws \Google\Service\Exception
*/
public function updateSettings($name, Settings $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateSettings', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_CloudObservability_Resource_ProjectsLocations');
@@ -0,0 +1,75 @@
<?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\CloudObservability\Resource;
use Google\Service\CloudObservability\Bucket;
use Google\Service\CloudObservability\ListBucketsResponse;
/**
* The "buckets" collection of methods.
* Typical usage is:
* <code>
* $observabilityService = new Google\Service\CloudObservability(...);
* $buckets = $observabilityService->projects_locations_buckets;
* </code>
*/
class ProjectsLocationsBuckets extends \Google\Service\Resource
{
/**
* Get bucket resource. (buckets.get)
*
* @param string $name Required. Name of the bucket to retrieve. The format is:
* projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]
* @param array $optParams Optional parameters.
* @return Bucket
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Bucket::class);
}
/**
* List buckets of a project in a particular location.
* (buckets.listProjectsLocationsBuckets)
*
* @param string $parent Required. The parent, which owns this collection of
* buckets. The format is: projects/[PROJECT_ID]/locations/[LOCATION]
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of buckets to return. If
* unspecified, then at most 100 buckets are returned. The maximum value is
* 1000; values above 1000 are coerced to 1000.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListBuckets` call. Provide this to retrieve the subsequent page.
* @opt_param bool showDeleted Optional. If true, then the response will include
* deleted buckets.
* @return ListBucketsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsBuckets($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBucketsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsBuckets::class, 'Google_Service_CloudObservability_Resource_ProjectsLocationsBuckets');
@@ -0,0 +1,76 @@
<?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\CloudObservability\Resource;
use Google\Service\CloudObservability\Dataset;
use Google\Service\CloudObservability\ListDatasetsResponse;
/**
* The "datasets" collection of methods.
* Typical usage is:
* <code>
* $observabilityService = new Google\Service\CloudObservability(...);
* $datasets = $observabilityService->projects_locations_buckets_datasets;
* </code>
*/
class ProjectsLocationsBucketsDatasets extends \Google\Service\Resource
{
/**
* Get a dataset. (datasets.get)
*
* @param string $name Required. Name of the dataset to retrieve. The format is:
* projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATA
* SET_ID]
* @param array $optParams Optional parameters.
* @return Dataset
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Dataset::class);
}
/**
* List datasets of a bucket. (datasets.listProjectsLocationsBucketsDatasets)
*
* @param string $parent Required. The parent bucket that owns this collection
* of datasets. The format is:
* projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of datasets to return.
* If unspecified, then at most 100 datasets are returned. The maximum value is
* 1000; values above 1000 are coerced to 1000.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListDatasets` call. Provide this to retrieve the subsequent page.
* @opt_param bool showDeleted Optional. If true, then the response will include
* deleted datasets.
* @return ListDatasetsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsBucketsDatasets($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListDatasetsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsBucketsDatasets::class, 'Google_Service_CloudObservability_Resource_ProjectsLocationsBucketsDatasets');
@@ -0,0 +1,129 @@
<?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\CloudObservability\Resource;
use Google\Service\CloudObservability\Link;
use Google\Service\CloudObservability\ListLinksResponse;
use Google\Service\CloudObservability\Operation;
/**
* The "links" collection of methods.
* Typical usage is:
* <code>
* $observabilityService = new Google\Service\CloudObservability(...);
* $links = $observabilityService->projects_locations_buckets_datasets_links;
* </code>
*/
class ProjectsLocationsBucketsDatasetsLinks extends \Google\Service\Resource
{
/**
* Create a new link. (links.create)
*
* @param string $parent Required. Name of the containing dataset for this link.
* The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]
* /datasets/[DATASET_ID]
* @param Link $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string linkId Required. Id of the link to create.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Link $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Delete a link. (links.delete)
*
* @param string $name Required. Name of the link to delete. The format is: proj
* ects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_
* ID]/links/[LINK_ID]
* @param array $optParams Optional parameters.
* @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);
}
/**
* Get a link. (links.get)
*
* @param string $name Required. Name of the link to retrieve. The format is: pr
* ojects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASE
* T_ID]/links/[LINK_ID]
* @param array $optParams Optional parameters.
* @return Link
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Link::class);
}
/**
* List links of a dataset. (links.listProjectsLocationsBucketsDatasetsLinks)
*
* @param string $parent Required. The parent dataset that owns this collection
* of links. The format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[
* BUCKET_ID]/datasets/[DATASET_ID]
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of links to return. If
* unspecified, then at most 100 links are returned. The maximum value is 1000;
* values above 1000 are coerced to 1000.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListLinks` call. Provide this to retrieve the subsequent page.
* @return ListLinksResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsBucketsDatasetsLinks($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLinksResponse::class);
}
/**
* Update a link. (links.patch)
*
* @param string $name Identifier. Name of the link. The format is: projects/[PR
* OJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/link
* s/[LINK_ID]
* @param Link $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. The list of fields to update.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Link $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsBucketsDatasetsLinks::class, 'Google_Service_CloudObservability_Resource_ProjectsLocationsBucketsDatasetsLinks');
@@ -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\CloudObservability\Resource;
use Google\Service\CloudObservability\ListViewsResponse;
use Google\Service\CloudObservability\View;
/**
* The "views" collection of methods.
* Typical usage is:
* <code>
* $observabilityService = new Google\Service\CloudObservability(...);
* $views = $observabilityService->projects_locations_buckets_datasets_views;
* </code>
*/
class ProjectsLocationsBucketsDatasetsViews extends \Google\Service\Resource
{
/**
* Get a view. (views.get)
*
* @param string $name Required. Name of the view to retrieve. The format is: pr
* ojects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASE
* T_ID]/views/[VIEW_ID]
* @param array $optParams Optional parameters.
* @return View
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], View::class);
}
/**
* List views of a dataset. (views.listProjectsLocationsBucketsDatasetsViews)
*
* @param string $parent Required. Dataset whose views are to be listed. The
* format is: projects/[PROJECT_ID]/locations/[LOCATION]/buckets/[BUCKET_ID]/dat
* asets/[DATASET_ID]
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of views to return. If
* unspecified, then at most 100 views are returned. The maximum value is 1000;
* values above 1000 are coerced to 1000.
* @opt_param string pageToken Optional. A page token, received from a previous
* `ListViews` call. Provide this to retrieve the subsequent page.
* @return ListViewsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsBucketsDatasetsViews($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListViewsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsBucketsDatasetsViews::class, 'Google_Service_CloudObservability_Resource_ProjectsLocationsBucketsDatasetsViews');
@@ -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\CloudObservability\Resource;
use Google\Service\CloudObservability\CancelOperationRequest;
use Google\Service\CloudObservability\ListOperationsResponse;
use Google\Service\CloudObservability\ObservabilityEmpty;
use Google\Service\CloudObservability\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $observabilityService = new Google\Service\CloudObservability(...);
* $operations = $observabilityService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations 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 ObservabilityEmpty
* @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], ObservabilityEmpty::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 ObservabilityEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ObservabilityEmpty::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.listProjectsLocationsOperations)
*
* @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 listProjectsLocationsOperations($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(ProjectsLocationsOperations::class, 'Google_Service_CloudObservability_Resource_ProjectsLocationsOperations');
@@ -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\CloudObservability\Resource;
use Google\Service\CloudObservability\Scope;
/**
* The "scopes" collection of methods.
* Typical usage is:
* <code>
* $observabilityService = new Google\Service\CloudObservability(...);
* $scopes = $observabilityService->projects_locations_scopes;
* </code>
*/
class ProjectsLocationsScopes extends \Google\Service\Resource
{
/**
* Gets details of a single Scope. (scopes.get)
*
* @param string $name Required. Name of the resource. The format is:
* projects/{project}/locations/{location}/scopes/{scope} The `{location}` field
* must be set to `global`. The `{scope}` field must be set to `_Default`.
* @param array $optParams Optional parameters.
* @return Scope
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Scope::class);
}
/**
* Updates the parameters of a single Scope. (scopes.patch)
*
* @param string $name Identifier. Name of the resource. The format is:
* projects/{project}/locations/{location}/scopes/{scope} The `{location}` field
* must be set to `global`. The `{scope}` field must be set to `_Default`.
* @param Scope $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the Scope resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field is overwritten when it is in the mask. If the user does not
* provide a mask, then all fields present in the request are overwritten.
* @return Scope
* @throws \Google\Service\Exception
*/
public function patch($name, Scope $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Scope::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsScopes::class, 'Google_Service_CloudObservability_Resource_ProjectsLocationsScopes');
@@ -0,0 +1,135 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudObservability\Resource;
use Google\Service\CloudObservability\ListTraceScopesResponse;
use Google\Service\CloudObservability\ObservabilityEmpty;
use Google\Service\CloudObservability\TraceScope;
/**
* The "traceScopes" collection of methods.
* Typical usage is:
* <code>
* $observabilityService = new Google\Service\CloudObservability(...);
* $traceScopes = $observabilityService->projects_locations_traceScopes;
* </code>
*/
class ProjectsLocationsTraceScopes extends \Google\Service\Resource
{
/**
* Create a new TraceScope. (traceScopes.create)
*
* @param string $parent Required. The full resource name of the location where
* the trace scope should be created
* projects/[PROJECT_ID]/locations/[LOCATION_ID] For example: projects/my-
* project/locations/global
* @param TraceScope $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string traceScopeId Required. A client-assigned identifier for the
* trace scope.
* @return TraceScope
* @throws \Google\Service\Exception
*/
public function create($parent, TraceScope $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], TraceScope::class);
}
/**
* Delete a TraceScope. (traceScopes.delete)
*
* @param string $name Required. The full resource name of the trace scope to
* delete:
* projects/[PROJECT_ID]/locations/[LOCATION_ID]/traceScopes/[TRACE_SCOPE_ID]
* For example: projects/my-project/locations/global/traceScopes/my-trace-scope
* @param array $optParams Optional parameters.
* @return ObservabilityEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ObservabilityEmpty::class);
}
/**
* Get TraceScope resource. (traceScopes.get)
*
* @param string $name Required. The resource name of the trace scope:
* projects/[PROJECT_ID]/locations/[LOCATION_ID]/traceScopes/[TRACE_SCOPE_ID]
* For example: projects/my-project/locations/global/traceScopes/my-trace-scope
* @param array $optParams Optional parameters.
* @return TraceScope
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], TraceScope::class);
}
/**
* List TraceScopes of a project in a particular location.
* (traceScopes.listProjectsLocationsTraceScopes)
*
* @param string $parent Required. The full resource name of the location to
* look for trace scopes: projects/[PROJECT_ID]/locations/[LOCATION_ID] For
* example: projects/my-project/locations/global
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* `next_page_token` in the response indicates that more results might be
* available.
* @opt_param string pageToken Optional. If present, then retrieve the next
* batch of results from the preceding call to this method. `page_token` must be
* the value of `next_page_token` from the previous response. The values of
* other method parameters should be identical to those in the previous call.
* @return ListTraceScopesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsTraceScopes($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTraceScopesResponse::class);
}
/**
* Update a TraceScope. (traceScopes.patch)
*
* @param string $name Identifier. The resource name of the trace scope. For
* example: projects/my-project/locations/global/traceScopes/my-trace-scope
* @param TraceScope $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. The list of fields to update.
* @return TraceScope
* @throws \Google\Service\Exception
*/
public function patch($name, TraceScope $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], TraceScope::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsTraceScopes::class, 'Google_Service_CloudObservability_Resource_ProjectsLocationsTraceScopes');
@@ -0,0 +1,128 @@
<?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\CloudObservability;
class Scope extends \Google\Model
{
/**
* Required. The full resource name of the `LogScope`. For example:
* //logging.googleapis.com/projects/myproject/locations/global/logScopes/my-
* log-scope
*
* @var string
*/
public $logScope;
/**
* Identifier. Name of the resource. The format is:
* projects/{project}/locations/{location}/scopes/{scope} The `{location}`
* field must be set to `global`. The `{scope}` field must be set to
* `_Default`.
*
* @var string
*/
public $name;
/**
* Required. The resource name of the `TraceScope`. For example:
* projects/myproject/locations/global/traceScopes/my-trace-scope
*
* @var string
*/
public $traceScope;
/**
* Output only. Update timestamp. Note: The Update timestamp for the default
* scope is initially unset.
*
* @var string
*/
public $updateTime;
/**
* Required. The full resource name of the `LogScope`. For example:
* //logging.googleapis.com/projects/myproject/locations/global/logScopes/my-
* log-scope
*
* @param string $logScope
*/
public function setLogScope($logScope)
{
$this->logScope = $logScope;
}
/**
* @return string
*/
public function getLogScope()
{
return $this->logScope;
}
/**
* Identifier. Name of the resource. The format is:
* projects/{project}/locations/{location}/scopes/{scope} The `{location}`
* field must be set to `global`. The `{scope}` field must be set to
* `_Default`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. The resource name of the `TraceScope`. For example:
* projects/myproject/locations/global/traceScopes/my-trace-scope
*
* @param string $traceScope
*/
public function setTraceScope($traceScope)
{
$this->traceScope = $traceScope;
}
/**
* @return string
*/
public function getTraceScope()
{
return $this->traceScope;
}
/**
* Output only. Update timestamp. Note: The Update timestamp for the default
* scope is initially unset.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Scope::class, 'Google_Service_CloudObservability_Scope');
@@ -0,0 +1,130 @@
<?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\CloudObservability;
class Settings extends \Google\Model
{
/**
* Optional. The location which should be used when any regional resources are
* provisioned by Google Cloud.
*
* @var string
*/
public $defaultStorageLocation;
/**
* Optional. The resource name for the configured Cloud KMS key. KMS key name
* format: "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryp
* toKeys/[KEY]" For example: `"projects/my-project/locations/us-
* central1/keyRings/my-ring/cryptoKeys/my-key"`
*
* @var string
*/
public $kmsKeyName;
/**
* Identifier. The resource name of the settings.
*
* @var string
*/
public $name;
/**
* Output only. The service account for the given resource container, such as
* project or folder. This will be used by Cloud Observability to perform
* actions in the container's project like access KMS keys or create Links.
* Always the same service account per resource container regardless of
* region.
*
* @var string
*/
public $serviceAccountId;
/**
* Optional. The location which should be used when any regional resources are
* provisioned by Google Cloud.
*
* @param string $defaultStorageLocation
*/
public function setDefaultStorageLocation($defaultStorageLocation)
{
$this->defaultStorageLocation = $defaultStorageLocation;
}
/**
* @return string
*/
public function getDefaultStorageLocation()
{
return $this->defaultStorageLocation;
}
/**
* Optional. The resource name for the configured Cloud KMS key. KMS key name
* format: "projects/[PROJECT_ID]/locations/[LOCATION]/keyRings/[KEYRING]/cryp
* toKeys/[KEY]" For example: `"projects/my-project/locations/us-
* central1/keyRings/my-ring/cryptoKeys/my-key"`
*
* @param string $kmsKeyName
*/
public function setKmsKeyName($kmsKeyName)
{
$this->kmsKeyName = $kmsKeyName;
}
/**
* @return string
*/
public function getKmsKeyName()
{
return $this->kmsKeyName;
}
/**
* Identifier. The resource name of the settings.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The service account for the given resource container, such as
* project or folder. This will be used by Cloud Observability to perform
* actions in the container's project like access KMS keys or create Links.
* Always the same service account per resource container regardless of
* region.
*
* @param string $serviceAccountId
*/
public function setServiceAccountId($serviceAccountId)
{
$this->serviceAccountId = $serviceAccountId;
}
/**
* @return string
*/
public function getServiceAccountId()
{
return $this->serviceAccountId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Settings::class, 'Google_Service_CloudObservability_Settings');
@@ -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\CloudObservability;
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_CloudObservability_Status');
@@ -0,0 +1,143 @@
<?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\CloudObservability;
class TraceScope extends \Google\Collection
{
protected $collection_key = 'resourceNames';
/**
* Output only. The creation timestamp of the trace scope.
*
* @var string
*/
public $createTime;
/**
* Optional. Describes this trace scope. The maximum length of the description
* is 8000 characters.
*
* @var string
*/
public $description;
/**
* Identifier. The resource name of the trace scope. For example: projects/my-
* project/locations/global/traceScopes/my-trace-scope
*
* @var string
*/
public $name;
/**
* Required. Names of the projects that are included in this trace scope. *
* `projects/[PROJECT_ID]` A trace scope can include a maximum of 20 projects.
*
* @var string[]
*/
public $resourceNames;
/**
* Output only. The last update timestamp of the trace scope.
*
* @var string
*/
public $updateTime;
/**
* Output only. The creation timestamp of the trace scope.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. Describes this trace scope. The maximum length of the description
* is 8000 characters.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Identifier. The resource name of the trace scope. For example: projects/my-
* project/locations/global/traceScopes/my-trace-scope
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. Names of the projects that are included in this trace scope. *
* `projects/[PROJECT_ID]` A trace scope can include a maximum of 20 projects.
*
* @param string[] $resourceNames
*/
public function setResourceNames($resourceNames)
{
$this->resourceNames = $resourceNames;
}
/**
* @return string[]
*/
public function getResourceNames()
{
return $this->resourceNames;
}
/**
* Output only. The last update timestamp of the trace scope.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TraceScope::class, 'Google_Service_CloudObservability_TraceScope');
@@ -0,0 +1,138 @@
<?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\CloudObservability;
class View extends \Google\Model
{
/**
* Output only. Create timestamp.
*
* @var string
*/
public $createTime;
/**
* Optional. Description of the view.
*
* @var string
*/
public $description;
/**
* Optional. User friendly display name.
*
* @var string
*/
public $displayName;
/**
* Identifier. Name of the view. The format is: projects/[PROJECT_ID]/location
* s/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/views/[VIEW_ID]
*
* @var string
*/
public $name;
/**
* Output only. Update timestamp.
*
* @var string
*/
public $updateTime;
/**
* Output only. Create timestamp.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. Description of the view.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. User friendly display name.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Identifier. Name of the view. The format is: projects/[PROJECT_ID]/location
* s/[LOCATION]/buckets/[BUCKET_ID]/datasets/[DATASET_ID]/views/[VIEW_ID]
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Update timestamp.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(View::class, 'Google_Service_CloudObservability_View');