Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class AuditConfig extends \Google\Collection
{
protected $collection_key = 'auditLogConfigs';
protected $auditLogConfigsType = AuditLogConfig::class;
protected $auditLogConfigsDataType = 'array';
/**
* @var string
*/
public $service;
/**
* @param AuditLogConfig[]
*/
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
/**
* @return AuditLogConfig[]
*/
public function getAuditLogConfigs()
{
return $this->auditLogConfigs;
}
/**
* @param string
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditConfig::class, 'Google_Service_Logging_AuditConfig');

View File

@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class AuditLogConfig extends \Google\Collection
{
protected $collection_key = 'exemptedMembers';
/**
* @var string[]
*/
public $exemptedMembers;
/**
* @var string
*/
public $logType;
/**
* @param string[]
*/
public function setExemptedMembers($exemptedMembers)
{
$this->exemptedMembers = $exemptedMembers;
}
/**
* @return string[]
*/
public function getExemptedMembers()
{
return $this->exemptedMembers;
}
/**
* @param string
*/
public function setLogType($logType)
{
$this->logType = $logType;
}
/**
* @return string
*/
public function getLogType()
{
return $this->logType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditLogConfig::class, 'Google_Service_Logging_AuditLogConfig');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class BigQueryDataset extends \Google\Model
{
/**
* @var string
*/
public $datasetId;
/**
* @param string
*/
public function setDatasetId($datasetId)
{
$this->datasetId = $datasetId;
}
/**
* @return string
*/
public function getDatasetId()
{
return $this->datasetId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BigQueryDataset::class, 'Google_Service_Logging_BigQueryDataset');

View File

@@ -0,0 +1,62 @@
<?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\Logging;
class BigQueryOptions extends \Google\Model
{
/**
* @var bool
*/
public $usePartitionedTables;
/**
* @var bool
*/
public $usesTimestampColumnPartitioning;
/**
* @param bool
*/
public function setUsePartitionedTables($usePartitionedTables)
{
$this->usePartitionedTables = $usePartitionedTables;
}
/**
* @return bool
*/
public function getUsePartitionedTables()
{
return $this->usePartitionedTables;
}
/**
* @param bool
*/
public function setUsesTimestampColumnPartitioning($usesTimestampColumnPartitioning)
{
$this->usesTimestampColumnPartitioning = $usesTimestampColumnPartitioning;
}
/**
* @return bool
*/
public function getUsesTimestampColumnPartitioning()
{
return $this->usesTimestampColumnPartitioning;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BigQueryOptions::class, 'Google_Service_Logging_BigQueryOptions');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* @var string[]
*/
public $members;
/**
* @var string
*/
public $role;
/**
* @param Expr
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* @param string[]
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* @param string
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Binding::class, 'Google_Service_Logging_Binding');

View File

@@ -0,0 +1,112 @@
<?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\Logging;
class BucketMetadata extends \Google\Model
{
protected $createBucketRequestType = CreateBucketRequest::class;
protected $createBucketRequestDataType = '';
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $startTime;
/**
* @var string
*/
public $state;
protected $updateBucketRequestType = UpdateBucketRequest::class;
protected $updateBucketRequestDataType = '';
/**
* @param CreateBucketRequest
*/
public function setCreateBucketRequest(CreateBucketRequest $createBucketRequest)
{
$this->createBucketRequest = $createBucketRequest;
}
/**
* @return CreateBucketRequest
*/
public function getCreateBucketRequest()
{
return $this->createBucketRequest;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param UpdateBucketRequest
*/
public function setUpdateBucketRequest(UpdateBucketRequest $updateBucketRequest)
{
$this->updateBucketRequest = $updateBucketRequest;
}
/**
* @return UpdateBucketRequest
*/
public function getUpdateBucketRequest()
{
return $this->updateBucketRequest;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketMetadata::class, 'Google_Service_Logging_BucketMetadata');

View File

@@ -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\Logging;
class BucketOptions extends \Google\Model
{
protected $explicitBucketsType = Explicit::class;
protected $explicitBucketsDataType = '';
protected $exponentialBucketsType = Exponential::class;
protected $exponentialBucketsDataType = '';
protected $linearBucketsType = Linear::class;
protected $linearBucketsDataType = '';
/**
* @param Explicit
*/
public function setExplicitBuckets(Explicit $explicitBuckets)
{
$this->explicitBuckets = $explicitBuckets;
}
/**
* @return Explicit
*/
public function getExplicitBuckets()
{
return $this->explicitBuckets;
}
/**
* @param Exponential
*/
public function setExponentialBuckets(Exponential $exponentialBuckets)
{
$this->exponentialBuckets = $exponentialBuckets;
}
/**
* @return Exponential
*/
public function getExponentialBuckets()
{
return $this->exponentialBuckets;
}
/**
* @param Linear
*/
public function setLinearBuckets(Linear $linearBuckets)
{
$this->linearBuckets = $linearBuckets;
}
/**
* @return Linear
*/
public function getLinearBuckets()
{
return $this->linearBuckets;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BucketOptions::class, 'Google_Service_Logging_BucketOptions');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_Logging_CancelOperationRequest');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class CmekSettings extends \Google\Model
{
/**
* @var string
*/
public $kmsKeyName;
/**
* @var string
*/
public $kmsKeyVersionName;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $serviceAccountId;
/**
* @param string
*/
public function setKmsKeyName($kmsKeyName)
{
$this->kmsKeyName = $kmsKeyName;
}
/**
* @return string
*/
public function getKmsKeyName()
{
return $this->kmsKeyName;
}
/**
* @param string
*/
public function setKmsKeyVersionName($kmsKeyVersionName)
{
$this->kmsKeyVersionName = $kmsKeyVersionName;
}
/**
* @return string
*/
public function getKmsKeyVersionName()
{
return $this->kmsKeyVersionName;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
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_Logging_CmekSettings');

View File

@@ -0,0 +1,204 @@
<?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\Logging;
class CopyLogEntriesMetadata extends \Google\Model
{
/**
* @var bool
*/
public $cancellationRequested;
/**
* @var string
*/
public $destination;
/**
* @var string
*/
public $endTime;
/**
* @var int
*/
public $progress;
protected $requestType = CopyLogEntriesRequest::class;
protected $requestDataType = '';
/**
* @var string
*/
public $source;
/**
* @var string
*/
public $startTime;
/**
* @var string
*/
public $state;
/**
* @var string
*/
public $verb;
/**
* @var string
*/
public $writerIdentity;
/**
* @param bool
*/
public function setCancellationRequested($cancellationRequested)
{
$this->cancellationRequested = $cancellationRequested;
}
/**
* @return bool
*/
public function getCancellationRequested()
{
return $this->cancellationRequested;
}
/**
* @param string
*/
public function setDestination($destination)
{
$this->destination = $destination;
}
/**
* @return string
*/
public function getDestination()
{
return $this->destination;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param int
*/
public function setProgress($progress)
{
$this->progress = $progress;
}
/**
* @return int
*/
public function getProgress()
{
return $this->progress;
}
/**
* @param CopyLogEntriesRequest
*/
public function setRequest(CopyLogEntriesRequest $request)
{
$this->request = $request;
}
/**
* @return CopyLogEntriesRequest
*/
public function getRequest()
{
return $this->request;
}
/**
* @param string
*/
public function setSource($source)
{
$this->source = $source;
}
/**
* @return string
*/
public function getSource()
{
return $this->source;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string
*/
public function setVerb($verb)
{
$this->verb = $verb;
}
/**
* @return string
*/
public function getVerb()
{
return $this->verb;
}
/**
* @param string
*/
public function setWriterIdentity($writerIdentity)
{
$this->writerIdentity = $writerIdentity;
}
/**
* @return string
*/
public function getWriterIdentity()
{
return $this->writerIdentity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CopyLogEntriesMetadata::class, 'Google_Service_Logging_CopyLogEntriesMetadata');

View File

@@ -0,0 +1,80 @@
<?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\Logging;
class CopyLogEntriesRequest extends \Google\Model
{
/**
* @var string
*/
public $destination;
/**
* @var string
*/
public $filter;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setDestination($destination)
{
$this->destination = $destination;
}
/**
* @return string
*/
public function getDestination()
{
return $this->destination;
}
/**
* @param string
*/
public function setFilter($filter)
{
$this->filter = $filter;
}
/**
* @return string
*/
public function getFilter()
{
return $this->filter;
}
/**
* @param string
*/
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(CopyLogEntriesRequest::class, 'Google_Service_Logging_CopyLogEntriesRequest');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class CopyLogEntriesResponse extends \Google\Model
{
/**
* @var string
*/
public $logEntriesCopiedCount;
/**
* @param string
*/
public function setLogEntriesCopiedCount($logEntriesCopiedCount)
{
$this->logEntriesCopiedCount = $logEntriesCopiedCount;
}
/**
* @return string
*/
public function getLogEntriesCopiedCount()
{
return $this->logEntriesCopiedCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CopyLogEntriesResponse::class, 'Google_Service_Logging_CopyLogEntriesResponse');

View File

@@ -0,0 +1,78 @@
<?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\Logging;
class CreateBucketRequest extends \Google\Model
{
protected $bucketType = LogBucket::class;
protected $bucketDataType = '';
/**
* @var string
*/
public $bucketId;
/**
* @var string
*/
public $parent;
/**
* @param LogBucket
*/
public function setBucket(LogBucket $bucket)
{
$this->bucket = $bucket;
}
/**
* @return LogBucket
*/
public function getBucket()
{
return $this->bucket;
}
/**
* @param string
*/
public function setBucketId($bucketId)
{
$this->bucketId = $bucketId;
}
/**
* @return string
*/
public function getBucketId()
{
return $this->bucketId;
}
/**
* @param string
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateBucketRequest::class, 'Google_Service_Logging_CreateBucketRequest');

View File

@@ -0,0 +1,78 @@
<?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\Logging;
class CreateLinkRequest extends \Google\Model
{
protected $linkType = Link::class;
protected $linkDataType = '';
/**
* @var string
*/
public $linkId;
/**
* @var string
*/
public $parent;
/**
* @param Link
*/
public function setLink(Link $link)
{
$this->link = $link;
}
/**
* @return Link
*/
public function getLink()
{
return $this->link;
}
/**
* @param string
*/
public function setLinkId($linkId)
{
$this->linkId = $linkId;
}
/**
* @return string
*/
public function getLinkId()
{
return $this->linkId;
}
/**
* @param string
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateLinkRequest::class, 'Google_Service_Logging_CreateLinkRequest');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class DefaultSinkConfig extends \Google\Collection
{
protected $collection_key = 'exclusions';
protected $exclusionsType = LogExclusion::class;
protected $exclusionsDataType = 'array';
/**
* @var string
*/
public $filter;
/**
* @var string
*/
public $mode;
/**
* @param LogExclusion[]
*/
public function setExclusions($exclusions)
{
$this->exclusions = $exclusions;
}
/**
* @return LogExclusion[]
*/
public function getExclusions()
{
return $this->exclusions;
}
/**
* @param string
*/
public function setFilter($filter)
{
$this->filter = $filter;
}
/**
* @return string
*/
public function getFilter()
{
return $this->filter;
}
/**
* @param string
*/
public function setMode($mode)
{
$this->mode = $mode;
}
/**
* @return string
*/
public function getMode()
{
return $this->mode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DefaultSinkConfig::class, 'Google_Service_Logging_DefaultSinkConfig');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class DeleteLinkRequest extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @param string
*/
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(DeleteLinkRequest::class, 'Google_Service_Logging_DeleteLinkRequest');

View File

@@ -0,0 +1,36 @@
<?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\Logging;
class Explicit extends \Google\Collection
{
protected $collection_key = 'bounds';
public $bounds;
public function setBounds($bounds)
{
$this->bounds = $bounds;
}
public function getBounds()
{
return $this->bounds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Explicit::class, 'Google_Service_Logging_Explicit');

View File

@@ -0,0 +1,62 @@
<?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\Logging;
class Exponential extends \Google\Model
{
public $growthFactor;
/**
* @var int
*/
public $numFiniteBuckets;
public $scale;
public function setGrowthFactor($growthFactor)
{
$this->growthFactor = $growthFactor;
}
public function getGrowthFactor()
{
return $this->growthFactor;
}
/**
* @param int
*/
public function setNumFiniteBuckets($numFiniteBuckets)
{
$this->numFiniteBuckets = $numFiniteBuckets;
}
/**
* @return int
*/
public function getNumFiniteBuckets()
{
return $this->numFiniteBuckets;
}
public function setScale($scale)
{
$this->scale = $scale;
}
public function getScale()
{
return $this->scale;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Exponential::class, 'Google_Service_Logging_Exponential');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class Expr extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $expression;
/**
* @var string
*/
public $location;
/**
* @var string
*/
public $title;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* @param string
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Expr::class, 'Google_Service_Logging_Expr');

View File

@@ -0,0 +1,42 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class GetIamPolicyRequest extends \Google\Model
{
protected $optionsType = GetPolicyOptions::class;
protected $optionsDataType = '';
/**
* @param GetPolicyOptions
*/
public function setOptions(GetPolicyOptions $options)
{
$this->options = $options;
}
/**
* @return GetPolicyOptions
*/
public function getOptions()
{
return $this->options;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetIamPolicyRequest::class, 'Google_Service_Logging_GetIamPolicyRequest');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class GetPolicyOptions extends \Google\Model
{
/**
* @var int
*/
public $requestedPolicyVersion;
/**
* @param int
*/
public function setRequestedPolicyVersion($requestedPolicyVersion)
{
$this->requestedPolicyVersion = $requestedPolicyVersion;
}
/**
* @return int
*/
public function getRequestedPolicyVersion()
{
return $this->requestedPolicyVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GetPolicyOptions::class, 'Google_Service_Logging_GetPolicyOptions');

View File

@@ -0,0 +1,296 @@
<?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\Logging;
class HttpRequest extends \Google\Model
{
/**
* @var string
*/
public $cacheFillBytes;
/**
* @var bool
*/
public $cacheHit;
/**
* @var bool
*/
public $cacheLookup;
/**
* @var bool
*/
public $cacheValidatedWithOriginServer;
/**
* @var string
*/
public $latency;
/**
* @var string
*/
public $protocol;
/**
* @var string
*/
public $referer;
/**
* @var string
*/
public $remoteIp;
/**
* @var string
*/
public $requestMethod;
/**
* @var string
*/
public $requestSize;
/**
* @var string
*/
public $requestUrl;
/**
* @var string
*/
public $responseSize;
/**
* @var string
*/
public $serverIp;
/**
* @var int
*/
public $status;
/**
* @var string
*/
public $userAgent;
/**
* @param string
*/
public function setCacheFillBytes($cacheFillBytes)
{
$this->cacheFillBytes = $cacheFillBytes;
}
/**
* @return string
*/
public function getCacheFillBytes()
{
return $this->cacheFillBytes;
}
/**
* @param bool
*/
public function setCacheHit($cacheHit)
{
$this->cacheHit = $cacheHit;
}
/**
* @return bool
*/
public function getCacheHit()
{
return $this->cacheHit;
}
/**
* @param bool
*/
public function setCacheLookup($cacheLookup)
{
$this->cacheLookup = $cacheLookup;
}
/**
* @return bool
*/
public function getCacheLookup()
{
return $this->cacheLookup;
}
/**
* @param bool
*/
public function setCacheValidatedWithOriginServer($cacheValidatedWithOriginServer)
{
$this->cacheValidatedWithOriginServer = $cacheValidatedWithOriginServer;
}
/**
* @return bool
*/
public function getCacheValidatedWithOriginServer()
{
return $this->cacheValidatedWithOriginServer;
}
/**
* @param string
*/
public function setLatency($latency)
{
$this->latency = $latency;
}
/**
* @return string
*/
public function getLatency()
{
return $this->latency;
}
/**
* @param string
*/
public function setProtocol($protocol)
{
$this->protocol = $protocol;
}
/**
* @return string
*/
public function getProtocol()
{
return $this->protocol;
}
/**
* @param string
*/
public function setReferer($referer)
{
$this->referer = $referer;
}
/**
* @return string
*/
public function getReferer()
{
return $this->referer;
}
/**
* @param string
*/
public function setRemoteIp($remoteIp)
{
$this->remoteIp = $remoteIp;
}
/**
* @return string
*/
public function getRemoteIp()
{
return $this->remoteIp;
}
/**
* @param string
*/
public function setRequestMethod($requestMethod)
{
$this->requestMethod = $requestMethod;
}
/**
* @return string
*/
public function getRequestMethod()
{
return $this->requestMethod;
}
/**
* @param string
*/
public function setRequestSize($requestSize)
{
$this->requestSize = $requestSize;
}
/**
* @return string
*/
public function getRequestSize()
{
return $this->requestSize;
}
/**
* @param string
*/
public function setRequestUrl($requestUrl)
{
$this->requestUrl = $requestUrl;
}
/**
* @return string
*/
public function getRequestUrl()
{
return $this->requestUrl;
}
/**
* @param string
*/
public function setResponseSize($responseSize)
{
$this->responseSize = $responseSize;
}
/**
* @return string
*/
public function getResponseSize()
{
return $this->responseSize;
}
/**
* @param string
*/
public function setServerIp($serverIp)
{
$this->serverIp = $serverIp;
}
/**
* @return string
*/
public function getServerIp()
{
return $this->serverIp;
}
/**
* @param int
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return int
*/
public function getStatus()
{
return $this->status;
}
/**
* @param string
*/
public function setUserAgent($userAgent)
{
$this->userAgent = $userAgent;
}
/**
* @return string
*/
public function getUserAgent()
{
return $this->userAgent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HttpRequest::class, 'Google_Service_Logging_HttpRequest');

View File

@@ -0,0 +1,80 @@
<?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\Logging;
class IndexConfig extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $fieldPath;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setFieldPath($fieldPath)
{
$this->fieldPath = $fieldPath;
}
/**
* @return string
*/
public function getFieldPath()
{
return $this->fieldPath;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IndexConfig::class, 'Google_Service_Logging_IndexConfig');

View File

@@ -0,0 +1,80 @@
<?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\Logging;
class LabelDescriptor extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $key;
/**
* @var string
*/
public $valueType;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* @param string
*/
public function setValueType($valueType)
{
$this->valueType = $valueType;
}
/**
* @return string
*/
public function getValueType()
{
return $this->valueType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LabelDescriptor::class, 'Google_Service_Logging_LabelDescriptor');

View File

@@ -0,0 +1,62 @@
<?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\Logging;
class Linear extends \Google\Model
{
/**
* @var int
*/
public $numFiniteBuckets;
public $offset;
public $width;
/**
* @param int
*/
public function setNumFiniteBuckets($numFiniteBuckets)
{
$this->numFiniteBuckets = $numFiniteBuckets;
}
/**
* @return int
*/
public function getNumFiniteBuckets()
{
return $this->numFiniteBuckets;
}
public function setOffset($offset)
{
$this->offset = $offset;
}
public function getOffset()
{
return $this->offset;
}
public function setWidth($width)
{
$this->width = $width;
}
public function getWidth()
{
return $this->width;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Linear::class, 'Google_Service_Logging_Linear');

View File

@@ -0,0 +1,114 @@
<?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\Logging;
class Link extends \Google\Model
{
protected $bigqueryDatasetType = BigQueryDataset::class;
protected $bigqueryDatasetDataType = '';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $lifecycleState;
/**
* @var string
*/
public $name;
/**
* @param BigQueryDataset
*/
public function setBigqueryDataset(BigQueryDataset $bigqueryDataset)
{
$this->bigqueryDataset = $bigqueryDataset;
}
/**
* @return BigQueryDataset
*/
public function getBigqueryDataset()
{
return $this->bigqueryDataset;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setLifecycleState($lifecycleState)
{
$this->lifecycleState = $lifecycleState;
}
/**
* @return string
*/
public function getLifecycleState()
{
return $this->lifecycleState;
}
/**
* @param string
*/
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_Logging_Link');

View File

@@ -0,0 +1,112 @@
<?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\Logging;
class LinkMetadata extends \Google\Model
{
protected $createLinkRequestType = CreateLinkRequest::class;
protected $createLinkRequestDataType = '';
protected $deleteLinkRequestType = DeleteLinkRequest::class;
protected $deleteLinkRequestDataType = '';
/**
* @var string
*/
public $endTime;
/**
* @var string
*/
public $startTime;
/**
* @var string
*/
public $state;
/**
* @param CreateLinkRequest
*/
public function setCreateLinkRequest(CreateLinkRequest $createLinkRequest)
{
$this->createLinkRequest = $createLinkRequest;
}
/**
* @return CreateLinkRequest
*/
public function getCreateLinkRequest()
{
return $this->createLinkRequest;
}
/**
* @param DeleteLinkRequest
*/
public function setDeleteLinkRequest(DeleteLinkRequest $deleteLinkRequest)
{
$this->deleteLinkRequest = $deleteLinkRequest;
}
/**
* @return DeleteLinkRequest
*/
public function getDeleteLinkRequest()
{
return $this->deleteLinkRequest;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LinkMetadata::class, 'Google_Service_Logging_LinkMetadata');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class ListBucketsResponse extends \Google\Collection
{
protected $collection_key = 'buckets';
protected $bucketsType = LogBucket::class;
protected $bucketsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param LogBucket[]
*/
public function setBuckets($buckets)
{
$this->buckets = $buckets;
}
/**
* @return LogBucket[]
*/
public function getBuckets()
{
return $this->buckets;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListBucketsResponse::class, 'Google_Service_Logging_ListBucketsResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class ListExclusionsResponse extends \Google\Collection
{
protected $collection_key = 'exclusions';
protected $exclusionsType = LogExclusion::class;
protected $exclusionsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param LogExclusion[]
*/
public function setExclusions($exclusions)
{
$this->exclusions = $exclusions;
}
/**
* @return LogExclusion[]
*/
public function getExclusions()
{
return $this->exclusions;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListExclusionsResponse::class, 'Google_Service_Logging_ListExclusionsResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class ListLinksResponse extends \Google\Collection
{
protected $collection_key = 'links';
protected $linksType = Link::class;
protected $linksDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Link[]
*/
public function setLinks($links)
{
$this->links = $links;
}
/**
* @return Link[]
*/
public function getLinks()
{
return $this->links;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLinksResponse::class, 'Google_Service_Logging_ListLinksResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Location[]
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLocationsResponse::class, 'Google_Service_Logging_ListLocationsResponse');

View File

@@ -0,0 +1,135 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class ListLogEntriesRequest extends \Google\Collection
{
protected $collection_key = 'resourceNames';
/**
* @var string
*/
public $filter;
/**
* @var string
*/
public $orderBy;
/**
* @var int
*/
public $pageSize;
/**
* @var string
*/
public $pageToken;
/**
* @var string[]
*/
public $projectIds;
/**
* @var string[]
*/
public $resourceNames;
/**
* @param string
*/
public function setFilter($filter)
{
$this->filter = $filter;
}
/**
* @return string
*/
public function getFilter()
{
return $this->filter;
}
/**
* @param string
*/
public function setOrderBy($orderBy)
{
$this->orderBy = $orderBy;
}
/**
* @return string
*/
public function getOrderBy()
{
return $this->orderBy;
}
/**
* @param int
*/
public function setPageSize($pageSize)
{
$this->pageSize = $pageSize;
}
/**
* @return int
*/
public function getPageSize()
{
return $this->pageSize;
}
/**
* @param string
*/
public function setPageToken($pageToken)
{
$this->pageToken = $pageToken;
}
/**
* @return string
*/
public function getPageToken()
{
return $this->pageToken;
}
/**
* @param string[]
*/
public function setProjectIds($projectIds)
{
$this->projectIds = $projectIds;
}
/**
* @return string[]
*/
public function getProjectIds()
{
return $this->projectIds;
}
/**
* @param string[]
*/
public function setResourceNames($resourceNames)
{
$this->resourceNames = $resourceNames;
}
/**
* @return string[]
*/
public function getResourceNames()
{
return $this->resourceNames;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLogEntriesRequest::class, 'Google_Service_Logging_ListLogEntriesRequest');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class ListLogEntriesResponse extends \Google\Collection
{
protected $collection_key = 'entries';
protected $entriesType = LogEntry::class;
protected $entriesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param LogEntry[]
*/
public function setEntries($entries)
{
$this->entries = $entries;
}
/**
* @return LogEntry[]
*/
public function getEntries()
{
return $this->entries;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLogEntriesResponse::class, 'Google_Service_Logging_ListLogEntriesResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class ListLogMetricsResponse extends \Google\Collection
{
protected $collection_key = 'metrics';
protected $metricsType = LogMetric::class;
protected $metricsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param LogMetric[]
*/
public function setMetrics($metrics)
{
$this->metrics = $metrics;
}
/**
* @return LogMetric[]
*/
public function getMetrics()
{
return $this->metrics;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLogMetricsResponse::class, 'Google_Service_Logging_ListLogMetricsResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class ListLogScopesResponse extends \Google\Collection
{
protected $collection_key = 'logScopes';
protected $logScopesType = LogScope::class;
protected $logScopesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param LogScope[]
*/
public function setLogScopes($logScopes)
{
$this->logScopes = $logScopes;
}
/**
* @return LogScope[]
*/
public function getLogScopes()
{
return $this->logScopes;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLogScopesResponse::class, 'Google_Service_Logging_ListLogScopesResponse');

View File

@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class ListLogsResponse extends \Google\Collection
{
protected $collection_key = 'logNames';
/**
* @var string[]
*/
public $logNames;
/**
* @var string
*/
public $nextPageToken;
/**
* @param string[]
*/
public function setLogNames($logNames)
{
$this->logNames = $logNames;
}
/**
* @return string[]
*/
public function getLogNames()
{
return $this->logNames;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLogsResponse::class, 'Google_Service_Logging_ListLogsResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class ListMonitoredResourceDescriptorsResponse extends \Google\Collection
{
protected $collection_key = 'resourceDescriptors';
/**
* @var string
*/
public $nextPageToken;
protected $resourceDescriptorsType = MonitoredResourceDescriptor::class;
protected $resourceDescriptorsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param MonitoredResourceDescriptor[]
*/
public function setResourceDescriptors($resourceDescriptors)
{
$this->resourceDescriptors = $resourceDescriptors;
}
/**
* @return MonitoredResourceDescriptor[]
*/
public function getResourceDescriptors()
{
return $this->resourceDescriptors;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListMonitoredResourceDescriptorsResponse::class, 'Google_Service_Logging_ListMonitoredResourceDescriptorsResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'operations';
/**
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Operation[]
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_Logging_ListOperationsResponse');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class ListRecentQueriesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $recentQueriesType = RecentQuery::class;
protected $recentQueriesDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param RecentQuery[]
*/
public function setRecentQueries($recentQueries)
{
$this->recentQueries = $recentQueries;
}
/**
* @return RecentQuery[]
*/
public function getRecentQueries()
{
return $this->recentQueries;
}
/**
* @param string[]
*/
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(ListRecentQueriesResponse::class, 'Google_Service_Logging_ListRecentQueriesResponse');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class ListSavedQueriesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
/**
* @var string
*/
public $nextPageToken;
protected $savedQueriesType = SavedQuery::class;
protected $savedQueriesDataType = 'array';
/**
* @var string[]
*/
public $unreachable;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param SavedQuery[]
*/
public function setSavedQueries($savedQueries)
{
$this->savedQueries = $savedQueries;
}
/**
* @return SavedQuery[]
*/
public function getSavedQueries()
{
return $this->savedQueries;
}
/**
* @param string[]
*/
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(ListSavedQueriesResponse::class, 'Google_Service_Logging_ListSavedQueriesResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class ListSinksResponse extends \Google\Collection
{
protected $collection_key = 'sinks';
/**
* @var string
*/
public $nextPageToken;
protected $sinksType = LogSink::class;
protected $sinksDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param LogSink[]
*/
public function setSinks($sinks)
{
$this->sinks = $sinks;
}
/**
* @return LogSink[]
*/
public function getSinks()
{
return $this->sinks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListSinksResponse::class, 'Google_Service_Logging_ListSinksResponse');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class ListViewsResponse extends \Google\Collection
{
protected $collection_key = 'views';
/**
* @var string
*/
public $nextPageToken;
protected $viewsType = LogView::class;
protected $viewsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param LogView[]
*/
public function setViews($views)
{
$this->views = $views;
}
/**
* @return LogView[]
*/
public function getViews()
{
return $this->views;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListViewsResponse::class, 'Google_Service_Logging_ListViewsResponse');

View File

@@ -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\Logging;
class Location extends \Google\Model
{
/**
* @var string
*/
public $displayName;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $locationId;
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
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_Logging_Location');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class LocationMetadata extends \Google\Model
{
/**
* @var bool
*/
public $logAnalyticsEnabled;
/**
* @param bool
*/
public function setLogAnalyticsEnabled($logAnalyticsEnabled)
{
$this->logAnalyticsEnabled = $logAnalyticsEnabled;
}
/**
* @return bool
*/
public function getLogAnalyticsEnabled()
{
return $this->logAnalyticsEnabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationMetadata::class, 'Google_Service_Logging_LocationMetadata');

View File

@@ -0,0 +1,221 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class LogBucket extends \Google\Collection
{
protected $collection_key = 'restrictedFields';
/**
* @var bool
*/
public $analyticsEnabled;
protected $cmekSettingsType = CmekSettings::class;
protected $cmekSettingsDataType = '';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
protected $indexConfigsType = IndexConfig::class;
protected $indexConfigsDataType = 'array';
/**
* @var string
*/
public $lifecycleState;
/**
* @var bool
*/
public $locked;
/**
* @var string
*/
public $name;
/**
* @var string[]
*/
public $restrictedFields;
/**
* @var int
*/
public $retentionDays;
/**
* @var string
*/
public $updateTime;
/**
* @param bool
*/
public function setAnalyticsEnabled($analyticsEnabled)
{
$this->analyticsEnabled = $analyticsEnabled;
}
/**
* @return bool
*/
public function getAnalyticsEnabled()
{
return $this->analyticsEnabled;
}
/**
* @param CmekSettings
*/
public function setCmekSettings(CmekSettings $cmekSettings)
{
$this->cmekSettings = $cmekSettings;
}
/**
* @return CmekSettings
*/
public function getCmekSettings()
{
return $this->cmekSettings;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param IndexConfig[]
*/
public function setIndexConfigs($indexConfigs)
{
$this->indexConfigs = $indexConfigs;
}
/**
* @return IndexConfig[]
*/
public function getIndexConfigs()
{
return $this->indexConfigs;
}
/**
* @param string
*/
public function setLifecycleState($lifecycleState)
{
$this->lifecycleState = $lifecycleState;
}
/**
* @return string
*/
public function getLifecycleState()
{
return $this->lifecycleState;
}
/**
* @param bool
*/
public function setLocked($locked)
{
$this->locked = $locked;
}
/**
* @return bool
*/
public function getLocked()
{
return $this->locked;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string[]
*/
public function setRestrictedFields($restrictedFields)
{
$this->restrictedFields = $restrictedFields;
}
/**
* @return string[]
*/
public function getRestrictedFields()
{
return $this->restrictedFields;
}
/**
* @param int
*/
public function setRetentionDays($retentionDays)
{
$this->retentionDays = $retentionDays;
}
/**
* @return int
*/
public function getRetentionDays()
{
return $this->retentionDays;
}
/**
* @param string
*/
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(LogBucket::class, 'Google_Service_Logging_LogBucket');

View File

@@ -0,0 +1,355 @@
<?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\Logging;
class LogEntry extends \Google\Collection
{
protected $collection_key = 'errorGroups';
protected $errorGroupsType = LogErrorGroup::class;
protected $errorGroupsDataType = 'array';
protected $httpRequestType = HttpRequest::class;
protected $httpRequestDataType = '';
/**
* @var string
*/
public $insertId;
/**
* @var array[]
*/
public $jsonPayload;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $logName;
protected $metadataType = MonitoredResourceMetadata::class;
protected $metadataDataType = '';
protected $operationType = LogEntryOperation::class;
protected $operationDataType = '';
/**
* @var array[]
*/
public $protoPayload;
/**
* @var string
*/
public $receiveTimestamp;
protected $resourceType = MonitoredResource::class;
protected $resourceDataType = '';
/**
* @var string
*/
public $severity;
protected $sourceLocationType = LogEntrySourceLocation::class;
protected $sourceLocationDataType = '';
/**
* @var string
*/
public $spanId;
protected $splitType = LogSplit::class;
protected $splitDataType = '';
/**
* @var string
*/
public $textPayload;
/**
* @var string
*/
public $timestamp;
/**
* @var string
*/
public $trace;
/**
* @var bool
*/
public $traceSampled;
/**
* @param LogErrorGroup[]
*/
public function setErrorGroups($errorGroups)
{
$this->errorGroups = $errorGroups;
}
/**
* @return LogErrorGroup[]
*/
public function getErrorGroups()
{
return $this->errorGroups;
}
/**
* @param HttpRequest
*/
public function setHttpRequest(HttpRequest $httpRequest)
{
$this->httpRequest = $httpRequest;
}
/**
* @return HttpRequest
*/
public function getHttpRequest()
{
return $this->httpRequest;
}
/**
* @param string
*/
public function setInsertId($insertId)
{
$this->insertId = $insertId;
}
/**
* @return string
*/
public function getInsertId()
{
return $this->insertId;
}
/**
* @param array[]
*/
public function setJsonPayload($jsonPayload)
{
$this->jsonPayload = $jsonPayload;
}
/**
* @return array[]
*/
public function getJsonPayload()
{
return $this->jsonPayload;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setLogName($logName)
{
$this->logName = $logName;
}
/**
* @return string
*/
public function getLogName()
{
return $this->logName;
}
/**
* @param MonitoredResourceMetadata
*/
public function setMetadata(MonitoredResourceMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return MonitoredResourceMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param LogEntryOperation
*/
public function setOperation(LogEntryOperation $operation)
{
$this->operation = $operation;
}
/**
* @return LogEntryOperation
*/
public function getOperation()
{
return $this->operation;
}
/**
* @param array[]
*/
public function setProtoPayload($protoPayload)
{
$this->protoPayload = $protoPayload;
}
/**
* @return array[]
*/
public function getProtoPayload()
{
return $this->protoPayload;
}
/**
* @param string
*/
public function setReceiveTimestamp($receiveTimestamp)
{
$this->receiveTimestamp = $receiveTimestamp;
}
/**
* @return string
*/
public function getReceiveTimestamp()
{
return $this->receiveTimestamp;
}
/**
* @param MonitoredResource
*/
public function setResource(MonitoredResource $resource)
{
$this->resource = $resource;
}
/**
* @return MonitoredResource
*/
public function getResource()
{
return $this->resource;
}
/**
* @param string
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return string
*/
public function getSeverity()
{
return $this->severity;
}
/**
* @param LogEntrySourceLocation
*/
public function setSourceLocation(LogEntrySourceLocation $sourceLocation)
{
$this->sourceLocation = $sourceLocation;
}
/**
* @return LogEntrySourceLocation
*/
public function getSourceLocation()
{
return $this->sourceLocation;
}
/**
* @param string
*/
public function setSpanId($spanId)
{
$this->spanId = $spanId;
}
/**
* @return string
*/
public function getSpanId()
{
return $this->spanId;
}
/**
* @param LogSplit
*/
public function setSplit(LogSplit $split)
{
$this->split = $split;
}
/**
* @return LogSplit
*/
public function getSplit()
{
return $this->split;
}
/**
* @param string
*/
public function setTextPayload($textPayload)
{
$this->textPayload = $textPayload;
}
/**
* @return string
*/
public function getTextPayload()
{
return $this->textPayload;
}
/**
* @param string
*/
public function setTimestamp($timestamp)
{
$this->timestamp = $timestamp;
}
/**
* @return string
*/
public function getTimestamp()
{
return $this->timestamp;
}
/**
* @param string
*/
public function setTrace($trace)
{
$this->trace = $trace;
}
/**
* @return string
*/
public function getTrace()
{
return $this->trace;
}
/**
* @param bool
*/
public function setTraceSampled($traceSampled)
{
$this->traceSampled = $traceSampled;
}
/**
* @return bool
*/
public function getTraceSampled()
{
return $this->traceSampled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LogEntry::class, 'Google_Service_Logging_LogEntry');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class LogEntryOperation extends \Google\Model
{
/**
* @var bool
*/
public $first;
/**
* @var string
*/
public $id;
/**
* @var bool
*/
public $last;
/**
* @var string
*/
public $producer;
/**
* @param bool
*/
public function setFirst($first)
{
$this->first = $first;
}
/**
* @return bool
*/
public function getFirst()
{
return $this->first;
}
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param bool
*/
public function setLast($last)
{
$this->last = $last;
}
/**
* @return bool
*/
public function getLast()
{
return $this->last;
}
/**
* @param string
*/
public function setProducer($producer)
{
$this->producer = $producer;
}
/**
* @return string
*/
public function getProducer()
{
return $this->producer;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LogEntryOperation::class, 'Google_Service_Logging_LogEntryOperation');

View File

@@ -0,0 +1,80 @@
<?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\Logging;
class LogEntrySourceLocation extends \Google\Model
{
/**
* @var string
*/
public $file;
/**
* @var string
*/
public $function;
/**
* @var string
*/
public $line;
/**
* @param string
*/
public function setFile($file)
{
$this->file = $file;
}
/**
* @return string
*/
public function getFile()
{
return $this->file;
}
/**
* @param string
*/
public function setFunction($function)
{
$this->function = $function;
}
/**
* @return string
*/
public function getFunction()
{
return $this->function;
}
/**
* @param string
*/
public function setLine($line)
{
$this->line = $line;
}
/**
* @return string
*/
public function getLine()
{
return $this->line;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LogEntrySourceLocation::class, 'Google_Service_Logging_LogEntrySourceLocation');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class LogErrorGroup extends \Google\Model
{
/**
* @var string
*/
public $id;
/**
* @param string
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LogErrorGroup::class, 'Google_Service_Logging_LogErrorGroup');

View File

@@ -0,0 +1,134 @@
<?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\Logging;
class LogExclusion extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var bool
*/
public $disabled;
/**
* @var string
*/
public $filter;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param bool
*/
public function setDisabled($disabled)
{
$this->disabled = $disabled;
}
/**
* @return bool
*/
public function getDisabled()
{
return $this->disabled;
}
/**
* @param string
*/
public function setFilter($filter)
{
$this->filter = $filter;
}
/**
* @return string
*/
public function getFilter()
{
return $this->filter;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
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(LogExclusion::class, 'Google_Service_Logging_LogExclusion');

View File

@@ -0,0 +1,96 @@
<?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\Logging;
class LogLine extends \Google\Model
{
/**
* @var string
*/
public $logMessage;
/**
* @var string
*/
public $severity;
protected $sourceLocationType = SourceLocation::class;
protected $sourceLocationDataType = '';
/**
* @var string
*/
public $time;
/**
* @param string
*/
public function setLogMessage($logMessage)
{
$this->logMessage = $logMessage;
}
/**
* @return string
*/
public function getLogMessage()
{
return $this->logMessage;
}
/**
* @param string
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return string
*/
public function getSeverity()
{
return $this->severity;
}
/**
* @param SourceLocation
*/
public function setSourceLocation(SourceLocation $sourceLocation)
{
$this->sourceLocation = $sourceLocation;
}
/**
* @return SourceLocation
*/
public function getSourceLocation()
{
return $this->sourceLocation;
}
/**
* @param string
*/
public function setTime($time)
{
$this->time = $time;
}
/**
* @return string
*/
public function getTime()
{
return $this->time;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LogLine::class, 'Google_Service_Logging_LogLine');

View File

@@ -0,0 +1,256 @@
<?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\Logging;
class LogMetric extends \Google\Model
{
/**
* @var string
*/
public $bucketName;
protected $bucketOptionsType = BucketOptions::class;
protected $bucketOptionsDataType = '';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var bool
*/
public $disabled;
/**
* @var string
*/
public $filter;
/**
* @var string[]
*/
public $labelExtractors;
protected $metricDescriptorType = MetricDescriptor::class;
protected $metricDescriptorDataType = '';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $resourceName;
/**
* @var string
*/
public $updateTime;
/**
* @var string
*/
public $valueExtractor;
/**
* @var string
*/
public $version;
/**
* @param string
*/
public function setBucketName($bucketName)
{
$this->bucketName = $bucketName;
}
/**
* @return string
*/
public function getBucketName()
{
return $this->bucketName;
}
/**
* @param BucketOptions
*/
public function setBucketOptions(BucketOptions $bucketOptions)
{
$this->bucketOptions = $bucketOptions;
}
/**
* @return BucketOptions
*/
public function getBucketOptions()
{
return $this->bucketOptions;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param bool
*/
public function setDisabled($disabled)
{
$this->disabled = $disabled;
}
/**
* @return bool
*/
public function getDisabled()
{
return $this->disabled;
}
/**
* @param string
*/
public function setFilter($filter)
{
$this->filter = $filter;
}
/**
* @return string
*/
public function getFilter()
{
return $this->filter;
}
/**
* @param string[]
*/
public function setLabelExtractors($labelExtractors)
{
$this->labelExtractors = $labelExtractors;
}
/**
* @return string[]
*/
public function getLabelExtractors()
{
return $this->labelExtractors;
}
/**
* @param MetricDescriptor
*/
public function setMetricDescriptor(MetricDescriptor $metricDescriptor)
{
$this->metricDescriptor = $metricDescriptor;
}
/**
* @return MetricDescriptor
*/
public function getMetricDescriptor()
{
return $this->metricDescriptor;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setResourceName($resourceName)
{
$this->resourceName = $resourceName;
}
/**
* @return string
*/
public function getResourceName()
{
return $this->resourceName;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param string
*/
public function setValueExtractor($valueExtractor)
{
$this->valueExtractor = $valueExtractor;
}
/**
* @return string
*/
public function getValueExtractor()
{
return $this->valueExtractor;
}
/**
* @param string
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LogMetric::class, 'Google_Service_Logging_LogMetric');

View File

@@ -0,0 +1,117 @@
<?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\Logging;
class LogScope extends \Google\Collection
{
protected $collection_key = 'resourceNames';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $name;
/**
* @var string[]
*/
public $resourceNames;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string[]
*/
public function setResourceNames($resourceNames)
{
$this->resourceNames = $resourceNames;
}
/**
* @return string[]
*/
public function getResourceNames()
{
return $this->resourceNames;
}
/**
* @param string
*/
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(LogScope::class, 'Google_Service_Logging_LogScope');

View File

@@ -0,0 +1,275 @@
<?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\Logging;
class LogSink extends \Google\Collection
{
protected $collection_key = 'exclusions';
protected $bigqueryOptionsType = BigQueryOptions::class;
protected $bigqueryOptionsDataType = '';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $destination;
/**
* @var bool
*/
public $disabled;
protected $exclusionsType = LogExclusion::class;
protected $exclusionsDataType = 'array';
/**
* @var string
*/
public $filter;
/**
* @var bool
*/
public $includeChildren;
/**
* @var bool
*/
public $interceptChildren;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $outputVersionFormat;
/**
* @var string
*/
public $resourceName;
/**
* @var string
*/
public $updateTime;
/**
* @var string
*/
public $writerIdentity;
/**
* @param BigQueryOptions
*/
public function setBigqueryOptions(BigQueryOptions $bigqueryOptions)
{
$this->bigqueryOptions = $bigqueryOptions;
}
/**
* @return BigQueryOptions
*/
public function getBigqueryOptions()
{
return $this->bigqueryOptions;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setDestination($destination)
{
$this->destination = $destination;
}
/**
* @return string
*/
public function getDestination()
{
return $this->destination;
}
/**
* @param bool
*/
public function setDisabled($disabled)
{
$this->disabled = $disabled;
}
/**
* @return bool
*/
public function getDisabled()
{
return $this->disabled;
}
/**
* @param LogExclusion[]
*/
public function setExclusions($exclusions)
{
$this->exclusions = $exclusions;
}
/**
* @return LogExclusion[]
*/
public function getExclusions()
{
return $this->exclusions;
}
/**
* @param string
*/
public function setFilter($filter)
{
$this->filter = $filter;
}
/**
* @return string
*/
public function getFilter()
{
return $this->filter;
}
/**
* @param bool
*/
public function setIncludeChildren($includeChildren)
{
$this->includeChildren = $includeChildren;
}
/**
* @return bool
*/
public function getIncludeChildren()
{
return $this->includeChildren;
}
/**
* @param bool
*/
public function setInterceptChildren($interceptChildren)
{
$this->interceptChildren = $interceptChildren;
}
/**
* @return bool
*/
public function getInterceptChildren()
{
return $this->interceptChildren;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setOutputVersionFormat($outputVersionFormat)
{
$this->outputVersionFormat = $outputVersionFormat;
}
/**
* @return string
*/
public function getOutputVersionFormat()
{
return $this->outputVersionFormat;
}
/**
* @param string
*/
public function setResourceName($resourceName)
{
$this->resourceName = $resourceName;
}
/**
* @return string
*/
public function getResourceName()
{
return $this->resourceName;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param string
*/
public function setWriterIdentity($writerIdentity)
{
$this->writerIdentity = $writerIdentity;
}
/**
* @return string
*/
public function getWriterIdentity()
{
return $this->writerIdentity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LogSink::class, 'Google_Service_Logging_LogSink');

View File

@@ -0,0 +1,80 @@
<?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\Logging;
class LogSplit extends \Google\Model
{
/**
* @var int
*/
public $index;
/**
* @var int
*/
public $totalSplits;
/**
* @var string
*/
public $uid;
/**
* @param int
*/
public function setIndex($index)
{
$this->index = $index;
}
/**
* @return int
*/
public function getIndex()
{
return $this->index;
}
/**
* @param int
*/
public function setTotalSplits($totalSplits)
{
$this->totalSplits = $totalSplits;
}
/**
* @return int
*/
public function getTotalSplits()
{
return $this->totalSplits;
}
/**
* @param string
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LogSplit::class, 'Google_Service_Logging_LogSplit');

View File

@@ -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\Logging;
class LogView extends \Google\Model
{
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $filter;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $updateTime;
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setFilter($filter)
{
$this->filter = $filter;
}
/**
* @return string
*/
public function getFilter()
{
return $this->filter;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
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(LogView::class, 'Google_Service_Logging_LogView');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class LoggingEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LoggingEmpty::class, 'Google_Service_Logging_LoggingEmpty');

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class LoggingQuery extends \Google\Collection
{
protected $collection_key = 'summaryFields';
/**
* @var string
*/
public $filter;
/**
* @var int
*/
public $summaryFieldEnd;
/**
* @var int
*/
public $summaryFieldStart;
protected $summaryFieldsType = SummaryField::class;
protected $summaryFieldsDataType = 'array';
/**
* @param string
*/
public function setFilter($filter)
{
$this->filter = $filter;
}
/**
* @return string
*/
public function getFilter()
{
return $this->filter;
}
/**
* @param int
*/
public function setSummaryFieldEnd($summaryFieldEnd)
{
$this->summaryFieldEnd = $summaryFieldEnd;
}
/**
* @return int
*/
public function getSummaryFieldEnd()
{
return $this->summaryFieldEnd;
}
/**
* @param int
*/
public function setSummaryFieldStart($summaryFieldStart)
{
$this->summaryFieldStart = $summaryFieldStart;
}
/**
* @return int
*/
public function getSummaryFieldStart()
{
return $this->summaryFieldStart;
}
/**
* @param SummaryField[]
*/
public function setSummaryFields($summaryFields)
{
$this->summaryFields = $summaryFields;
}
/**
* @return SummaryField[]
*/
public function getSummaryFields()
{
return $this->summaryFields;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LoggingQuery::class, 'Google_Service_Logging_LoggingQuery');

View File

@@ -0,0 +1,221 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class MetricDescriptor extends \Google\Collection
{
protected $collection_key = 'monitoredResourceTypes';
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $displayName;
protected $labelsType = LabelDescriptor::class;
protected $labelsDataType = 'array';
/**
* @var string
*/
public $launchStage;
protected $metadataType = MetricDescriptorMetadata::class;
protected $metadataDataType = '';
/**
* @var string
*/
public $metricKind;
/**
* @var string[]
*/
public $monitoredResourceTypes;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $unit;
/**
* @var string
*/
public $valueType;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param LabelDescriptor[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return LabelDescriptor[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setLaunchStage($launchStage)
{
$this->launchStage = $launchStage;
}
/**
* @return string
*/
public function getLaunchStage()
{
return $this->launchStage;
}
/**
* @param MetricDescriptorMetadata
*/
public function setMetadata(MetricDescriptorMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return MetricDescriptorMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setMetricKind($metricKind)
{
$this->metricKind = $metricKind;
}
/**
* @return string
*/
public function getMetricKind()
{
return $this->metricKind;
}
/**
* @param string[]
*/
public function setMonitoredResourceTypes($monitoredResourceTypes)
{
$this->monitoredResourceTypes = $monitoredResourceTypes;
}
/**
* @return string[]
*/
public function getMonitoredResourceTypes()
{
return $this->monitoredResourceTypes;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string
*/
public function setUnit($unit)
{
$this->unit = $unit;
}
/**
* @return string
*/
public function getUnit()
{
return $this->unit;
}
/**
* @param string
*/
public function setValueType($valueType)
{
$this->valueType = $valueType;
}
/**
* @return string
*/
public function getValueType()
{
return $this->valueType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MetricDescriptor::class, 'Google_Service_Logging_MetricDescriptor');

View File

@@ -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\Logging;
class MetricDescriptorMetadata extends \Google\Collection
{
protected $collection_key = 'timeSeriesResourceHierarchyLevel';
/**
* @var string
*/
public $ingestDelay;
/**
* @var string
*/
public $launchStage;
/**
* @var string
*/
public $samplePeriod;
/**
* @var string[]
*/
public $timeSeriesResourceHierarchyLevel;
/**
* @param string
*/
public function setIngestDelay($ingestDelay)
{
$this->ingestDelay = $ingestDelay;
}
/**
* @return string
*/
public function getIngestDelay()
{
return $this->ingestDelay;
}
/**
* @param string
*/
public function setLaunchStage($launchStage)
{
$this->launchStage = $launchStage;
}
/**
* @return string
*/
public function getLaunchStage()
{
return $this->launchStage;
}
/**
* @param string
*/
public function setSamplePeriod($samplePeriod)
{
$this->samplePeriod = $samplePeriod;
}
/**
* @return string
*/
public function getSamplePeriod()
{
return $this->samplePeriod;
}
/**
* @param string[]
*/
public function setTimeSeriesResourceHierarchyLevel($timeSeriesResourceHierarchyLevel)
{
$this->timeSeriesResourceHierarchyLevel = $timeSeriesResourceHierarchyLevel;
}
/**
* @return string[]
*/
public function getTimeSeriesResourceHierarchyLevel()
{
return $this->timeSeriesResourceHierarchyLevel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MetricDescriptorMetadata::class, 'Google_Service_Logging_MetricDescriptorMetadata');

View File

@@ -0,0 +1,62 @@
<?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\Logging;
class MonitoredResource extends \Google\Model
{
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $type;
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MonitoredResource::class, 'Google_Service_Logging_MonitoredResource');

View File

@@ -0,0 +1,133 @@
<?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\Logging;
class MonitoredResourceDescriptor extends \Google\Collection
{
protected $collection_key = 'labels';
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $displayName;
protected $labelsType = LabelDescriptor::class;
protected $labelsDataType = 'array';
/**
* @var string
*/
public $launchStage;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param LabelDescriptor[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return LabelDescriptor[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setLaunchStage($launchStage)
{
$this->launchStage = $launchStage;
}
/**
* @return string
*/
public function getLaunchStage()
{
return $this->launchStage;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MonitoredResourceDescriptor::class, 'Google_Service_Logging_MonitoredResourceDescriptor');

View File

@@ -0,0 +1,62 @@
<?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\Logging;
class MonitoredResourceMetadata extends \Google\Model
{
/**
* @var array[]
*/
public $systemLabels;
/**
* @var string[]
*/
public $userLabels;
/**
* @param array[]
*/
public function setSystemLabels($systemLabels)
{
$this->systemLabels = $systemLabels;
}
/**
* @return array[]
*/
public function getSystemLabels()
{
return $this->systemLabels;
}
/**
* @param string[]
*/
public function setUserLabels($userLabels)
{
$this->userLabels = $userLabels;
}
/**
* @return string[]
*/
public function getUserLabels()
{
return $this->userLabels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MonitoredResourceMetadata::class, 'Google_Service_Logging_MonitoredResourceMetadata');

View File

@@ -0,0 +1,114 @@
<?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\Logging;
class Operation extends \Google\Model
{
/**
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @var array[]
*/
public $response;
/**
* @param bool
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* @param Status
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param array[]
*/
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_Logging_Operation');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class OpsAnalyticsQuery extends \Google\Model
{
/**
* @var string
*/
public $sqlQueryText;
/**
* @param string
*/
public function setSqlQueryText($sqlQueryText)
{
$this->sqlQueryText = $sqlQueryText;
}
/**
* @return string
*/
public function getSqlQueryText()
{
return $this->sqlQueryText;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OpsAnalyticsQuery::class, 'Google_Service_Logging_OpsAnalyticsQuery');

View File

@@ -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\Logging;
class Policy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $auditConfigsType = AuditConfig::class;
protected $auditConfigsDataType = 'array';
protected $bindingsType = Binding::class;
protected $bindingsDataType = 'array';
/**
* @var string
*/
public $etag;
/**
* @var int
*/
public $version;
/**
* @param AuditConfig[]
*/
public function setAuditConfigs($auditConfigs)
{
$this->auditConfigs = $auditConfigs;
}
/**
* @return AuditConfig[]
*/
public function getAuditConfigs()
{
return $this->auditConfigs;
}
/**
* @param Binding[]
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return Binding[]
*/
public function getBindings()
{
return $this->bindings;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param int
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return int
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Policy::class, 'Google_Service_Logging_Policy');

View File

@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging;
class RecentQuery extends \Google\Model
{
/**
* @var string
*/
public $lastRunTime;
protected $loggingQueryType = LoggingQuery::class;
protected $loggingQueryDataType = '';
/**
* @var string
*/
public $name;
protected $opsAnalyticsQueryType = OpsAnalyticsQuery::class;
protected $opsAnalyticsQueryDataType = '';
/**
* @param string
*/
public function setLastRunTime($lastRunTime)
{
$this->lastRunTime = $lastRunTime;
}
/**
* @return string
*/
public function getLastRunTime()
{
return $this->lastRunTime;
}
/**
* @param LoggingQuery
*/
public function setLoggingQuery(LoggingQuery $loggingQuery)
{
$this->loggingQuery = $loggingQuery;
}
/**
* @return LoggingQuery
*/
public function getLoggingQuery()
{
return $this->loggingQuery;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param OpsAnalyticsQuery
*/
public function setOpsAnalyticsQuery(OpsAnalyticsQuery $opsAnalyticsQuery)
{
$this->opsAnalyticsQuery = $opsAnalyticsQuery;
}
/**
* @return OpsAnalyticsQuery
*/
public function getOpsAnalyticsQuery()
{
return $this->opsAnalyticsQuery;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RecentQuery::class, 'Google_Service_Logging_RecentQuery');

View File

@@ -0,0 +1,626 @@
<?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\Logging;
class RequestLog extends \Google\Collection
{
protected $collection_key = 'sourceReference';
/**
* @var string
*/
public $appEngineRelease;
/**
* @var string
*/
public $appId;
public $cost;
/**
* @var string
*/
public $endTime;
/**
* @var bool
*/
public $finished;
/**
* @var bool
*/
public $first;
/**
* @var string
*/
public $host;
/**
* @var string
*/
public $httpVersion;
/**
* @var string
*/
public $instanceId;
/**
* @var int
*/
public $instanceIndex;
/**
* @var string
*/
public $ip;
/**
* @var string
*/
public $latency;
protected $lineType = LogLine::class;
protected $lineDataType = 'array';
/**
* @var string
*/
public $megaCycles;
/**
* @var string
*/
public $method;
/**
* @var string
*/
public $moduleId;
/**
* @var string
*/
public $nickname;
/**
* @var string
*/
public $pendingTime;
/**
* @var string
*/
public $referrer;
/**
* @var string
*/
public $requestId;
/**
* @var string
*/
public $resource;
/**
* @var string
*/
public $responseSize;
protected $sourceReferenceType = SourceReference::class;
protected $sourceReferenceDataType = 'array';
/**
* @var string
*/
public $spanId;
/**
* @var string
*/
public $startTime;
/**
* @var int
*/
public $status;
/**
* @var string
*/
public $taskName;
/**
* @var string
*/
public $taskQueueName;
/**
* @var string
*/
public $traceId;
/**
* @var bool
*/
public $traceSampled;
/**
* @var string
*/
public $urlMapEntry;
/**
* @var string
*/
public $userAgent;
/**
* @var string
*/
public $versionId;
/**
* @var bool
*/
public $wasLoadingRequest;
/**
* @param string
*/
public function setAppEngineRelease($appEngineRelease)
{
$this->appEngineRelease = $appEngineRelease;
}
/**
* @return string
*/
public function getAppEngineRelease()
{
return $this->appEngineRelease;
}
/**
* @param string
*/
public function setAppId($appId)
{
$this->appId = $appId;
}
/**
* @return string
*/
public function getAppId()
{
return $this->appId;
}
public function setCost($cost)
{
$this->cost = $cost;
}
public function getCost()
{
return $this->cost;
}
/**
* @param string
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* @param bool
*/
public function setFinished($finished)
{
$this->finished = $finished;
}
/**
* @return bool
*/
public function getFinished()
{
return $this->finished;
}
/**
* @param bool
*/
public function setFirst($first)
{
$this->first = $first;
}
/**
* @return bool
*/
public function getFirst()
{
return $this->first;
}
/**
* @param string
*/
public function setHost($host)
{
$this->host = $host;
}
/**
* @return string
*/
public function getHost()
{
return $this->host;
}
/**
* @param string
*/
public function setHttpVersion($httpVersion)
{
$this->httpVersion = $httpVersion;
}
/**
* @return string
*/
public function getHttpVersion()
{
return $this->httpVersion;
}
/**
* @param string
*/
public function setInstanceId($instanceId)
{
$this->instanceId = $instanceId;
}
/**
* @return string
*/
public function getInstanceId()
{
return $this->instanceId;
}
/**
* @param int
*/
public function setInstanceIndex($instanceIndex)
{
$this->instanceIndex = $instanceIndex;
}
/**
* @return int
*/
public function getInstanceIndex()
{
return $this->instanceIndex;
}
/**
* @param string
*/
public function setIp($ip)
{
$this->ip = $ip;
}
/**
* @return string
*/
public function getIp()
{
return $this->ip;
}
/**
* @param string
*/
public function setLatency($latency)
{
$this->latency = $latency;
}
/**
* @return string
*/
public function getLatency()
{
return $this->latency;
}
/**
* @param LogLine[]
*/
public function setLine($line)
{
$this->line = $line;
}
/**
* @return LogLine[]
*/
public function getLine()
{
return $this->line;
}
/**
* @param string
*/
public function setMegaCycles($megaCycles)
{
$this->megaCycles = $megaCycles;
}
/**
* @return string
*/
public function getMegaCycles()
{
return $this->megaCycles;
}
/**
* @param string
*/
public function setMethod($method)
{
$this->method = $method;
}
/**
* @return string
*/
public function getMethod()
{
return $this->method;
}
/**
* @param string
*/
public function setModuleId($moduleId)
{
$this->moduleId = $moduleId;
}
/**
* @return string
*/
public function getModuleId()
{
return $this->moduleId;
}
/**
* @param string
*/
public function setNickname($nickname)
{
$this->nickname = $nickname;
}
/**
* @return string
*/
public function getNickname()
{
return $this->nickname;
}
/**
* @param string
*/
public function setPendingTime($pendingTime)
{
$this->pendingTime = $pendingTime;
}
/**
* @return string
*/
public function getPendingTime()
{
return $this->pendingTime;
}
/**
* @param string
*/
public function setReferrer($referrer)
{
$this->referrer = $referrer;
}
/**
* @return string
*/
public function getReferrer()
{
return $this->referrer;
}
/**
* @param string
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* @param string
*/
public function setResource($resource)
{
$this->resource = $resource;
}
/**
* @return string
*/
public function getResource()
{
return $this->resource;
}
/**
* @param string
*/
public function setResponseSize($responseSize)
{
$this->responseSize = $responseSize;
}
/**
* @return string
*/
public function getResponseSize()
{
return $this->responseSize;
}
/**
* @param SourceReference[]
*/
public function setSourceReference($sourceReference)
{
$this->sourceReference = $sourceReference;
}
/**
* @return SourceReference[]
*/
public function getSourceReference()
{
return $this->sourceReference;
}
/**
* @param string
*/
public function setSpanId($spanId)
{
$this->spanId = $spanId;
}
/**
* @return string
*/
public function getSpanId()
{
return $this->spanId;
}
/**
* @param string
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* @param int
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return int
*/
public function getStatus()
{
return $this->status;
}
/**
* @param string
*/
public function setTaskName($taskName)
{
$this->taskName = $taskName;
}
/**
* @return string
*/
public function getTaskName()
{
return $this->taskName;
}
/**
* @param string
*/
public function setTaskQueueName($taskQueueName)
{
$this->taskQueueName = $taskQueueName;
}
/**
* @return string
*/
public function getTaskQueueName()
{
return $this->taskQueueName;
}
/**
* @param string
*/
public function setTraceId($traceId)
{
$this->traceId = $traceId;
}
/**
* @return string
*/
public function getTraceId()
{
return $this->traceId;
}
/**
* @param bool
*/
public function setTraceSampled($traceSampled)
{
$this->traceSampled = $traceSampled;
}
/**
* @return bool
*/
public function getTraceSampled()
{
return $this->traceSampled;
}
/**
* @param string
*/
public function setUrlMapEntry($urlMapEntry)
{
$this->urlMapEntry = $urlMapEntry;
}
/**
* @return string
*/
public function getUrlMapEntry()
{
return $this->urlMapEntry;
}
/**
* @param string
*/
public function setUserAgent($userAgent)
{
$this->userAgent = $userAgent;
}
/**
* @return string
*/
public function getUserAgent()
{
return $this->userAgent;
}
/**
* @param string
*/
public function setVersionId($versionId)
{
$this->versionId = $versionId;
}
/**
* @return string
*/
public function getVersionId()
{
return $this->versionId;
}
/**
* @param bool
*/
public function setWasLoadingRequest($wasLoadingRequest)
{
$this->wasLoadingRequest = $wasLoadingRequest;
}
/**
* @return bool
*/
public function getWasLoadingRequest()
{
return $this->wasLoadingRequest;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RequestLog::class, 'Google_Service_Logging_RequestLog');

View File

@@ -0,0 +1,86 @@
<?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\Logging\Resource;
use Google\Service\Logging\CmekSettings;
use Google\Service\Logging\Settings;
/**
* The "billingAccounts" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $billingAccounts = $loggingService->billingAccounts;
* </code>
*/
class BillingAccounts extends \Google\Service\Resource
{
/**
* Gets the Logging CMEK settings for the given resource.Note: CMEK for the Log
* Router can be configured for Google Cloud projects, folders, organizations,
* and billing accounts. Once configured for an organization, it applies to all
* projects and folders in the Google Cloud organization.See Enabling CMEK for
* Log Router (https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information. (billingAccounts.getCmekSettings)
*
* @param string $name Required. The resource for which to retrieve CMEK
* settings. "projects/[PROJECT_ID]/cmekSettings"
* "organizations/[ORGANIZATION_ID]/cmekSettings"
* "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
* "folders/[FOLDER_ID]/cmekSettings" For
* example:"organizations/12345/cmekSettings"Note: CMEK for the Log Router can
* be configured for Google Cloud projects, folders, organizations, and billing
* accounts. Once configured for an organization, it applies to all projects and
* folders in the Google Cloud organization.
* @param array $optParams Optional parameters.
* @return CmekSettings
* @throws \Google\Service\Exception
*/
public function getCmekSettings($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getCmekSettings', [$params], CmekSettings::class);
}
/**
* Gets the settings for the given resource.Note: Settings can be retrieved for
* Google Cloud projects, folders, organizations, and billing accounts.See View
* default resource settings for Logging
* (https://cloud.google.com/logging/docs/default-settings#view-org-settings)
* for more information. (billingAccounts.getSettings)
*
* @param string $name Required. The resource for which to retrieve settings.
* "projects/[PROJECT_ID]/settings" "organizations/[ORGANIZATION_ID]/settings"
* "billingAccounts/[BILLING_ACCOUNT_ID]/settings"
* "folders/[FOLDER_ID]/settings" For
* example:"organizations/12345/settings"Note: Settings can be retrieved for
* Google Cloud projects, folders, organizations, and billing accounts.
* @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);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingAccounts::class, 'Google_Service_Logging_Resource_BillingAccounts');

View File

@@ -0,0 +1,53 @@
<?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\Logging\Resource;
use Google\Service\Logging\LogBucket;
/**
* The "buckets" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $buckets = $loggingService->buckets;
* </code>
*/
class BillingAccountsBuckets extends \Google\Service\Resource
{
/**
* Gets a log bucket. (buckets.get)
*
* @param string $name Required. The resource name of the bucket:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For
* example:"projects/my-project/locations/global/buckets/my-bucket"
* @param array $optParams Optional parameters.
* @return LogBucket
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], LogBucket::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingAccountsBuckets::class, 'Google_Service_Logging_Resource_BillingAccountsBuckets');

View File

@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging\Resource;
use Google\Service\Logging\LogView;
/**
* The "views" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $views = $loggingService->views;
* </code>
*/
class BillingAccountsBucketsViews extends \Google\Service\Resource
{
/**
* Gets a view on a log bucket.. (views.get)
*
* @param string $name Required. The resource name of the policy: "projects/[PRO
* JECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For
* example:"projects/my-project/locations/global/buckets/my-bucket/views/my-
* view"
* @param array $optParams Optional parameters.
* @return LogView
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], LogView::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingAccountsBucketsViews::class, 'Google_Service_Logging_Resource_BillingAccountsBucketsViews');

View File

@@ -0,0 +1,148 @@
<?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\Logging\Resource;
use Google\Service\Logging\ListExclusionsResponse;
use Google\Service\Logging\LogExclusion;
use Google\Service\Logging\LoggingEmpty;
/**
* The "exclusions" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $exclusions = $loggingService->billingAccounts_exclusions;
* </code>
*/
class BillingAccountsExclusions extends \Google\Service\Resource
{
/**
* Creates a new exclusion in the _Default sink in a specified parent resource.
* Only log entries belonging to that resource can be excluded. You can have up
* to 10 exclusions in a resource. (exclusions.create)
*
* @param string $parent Required. The parent resource in which to create the
* exclusion: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" For
* examples:"projects/my-logging-project" "organizations/123456789"
* @param LogExclusion $postBody
* @param array $optParams Optional parameters.
* @return LogExclusion
* @throws \Google\Service\Exception
*/
public function create($parent, LogExclusion $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], LogExclusion::class);
}
/**
* Deletes an exclusion in the _Default sink. (exclusions.delete)
*
* @param string $name Required. The resource name of an existing exclusion to
* delete: "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" For example:"projects/my-
* project/exclusions/my-exclusion"
* @param array $optParams Optional parameters.
* @return LoggingEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], LoggingEmpty::class);
}
/**
* Gets the description of an exclusion in the _Default sink. (exclusions.get)
*
* @param string $name Required. The resource name of an existing exclusion:
* "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" For example:"projects/my-
* project/exclusions/my-exclusion"
* @param array $optParams Optional parameters.
* @return LogExclusion
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], LogExclusion::class);
}
/**
* Lists all the exclusions on the _Default sink in a parent resource.
* (exclusions.listBillingAccountsExclusions)
*
* @param string $parent Required. The parent resource whose exclusions are to
* be listed. "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* nextPageToken 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. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return ListExclusionsResponse
* @throws \Google\Service\Exception
*/
public function listBillingAccountsExclusions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListExclusionsResponse::class);
}
/**
* Changes one or more properties of an existing exclusion in the _Default sink.
* (exclusions.patch)
*
* @param string $name Required. The resource name of the exclusion to update:
* "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" For example:"projects/my-
* project/exclusions/my-exclusion"
* @param LogExclusion $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. A non-empty list of fields to change
* in the existing exclusion. New values for the fields are taken from the
* corresponding fields in the LogExclusion included in this request. Fields not
* mentioned in update_mask are not changed and are ignored in the request.For
* example, to change the filter and description of an exclusion, specify an
* update_mask of "filter,description".
* @return LogExclusion
* @throws \Google\Service\Exception
*/
public function patch($name, LogExclusion $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], LogExclusion::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingAccountsExclusions::class, 'Google_Service_Logging_Resource_BillingAccountsExclusions');

View File

@@ -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\Logging\Resource;
use Google\Service\Logging\ListLocationsResponse;
use Google\Service\Logging\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $locations = $loggingService->billingAccounts_locations;
* </code>
*/
class BillingAccountsLocations 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);
}
/**
* Lists information about the supported locations for this service.
* (locations.listBillingAccountsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @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 listBillingAccountsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingAccountsLocations::class, 'Google_Service_Logging_Resource_BillingAccountsLocations');

View File

@@ -0,0 +1,236 @@
<?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\Logging\Resource;
use Google\Service\Logging\ListBucketsResponse;
use Google\Service\Logging\LogBucket;
use Google\Service\Logging\LoggingEmpty;
use Google\Service\Logging\Operation;
use Google\Service\Logging\UndeleteBucketRequest;
/**
* The "buckets" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $buckets = $loggingService->billingAccounts_locations_buckets;
* </code>
*/
class BillingAccountsLocationsBuckets extends \Google\Service\Resource
{
/**
* Creates a log bucket that can be used to store log entries. After a bucket
* has been created, the bucket's location cannot be changed. (buckets.create)
*
* @param string $parent Required. The resource in which to create the log
* bucket: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For
* example:"projects/my-project/locations/global"
* @param LogBucket $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string bucketId Required. A client-assigned identifier such as
* "my-bucket". Identifiers are limited to 100 characters and can include only
* letters, digits, underscores, hyphens, and periods. Bucket identifiers must
* start with an alphanumeric character.
* @return LogBucket
* @throws \Google\Service\Exception
*/
public function create($parent, LogBucket $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], LogBucket::class);
}
/**
* Creates a log bucket asynchronously that can be used to store log
* entries.After a bucket has been created, the bucket's location cannot be
* changed. (buckets.createAsync)
*
* @param string $parent Required. The resource in which to create the log
* bucket: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For
* example:"projects/my-project/locations/global"
* @param LogBucket $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string bucketId Required. A client-assigned identifier such as
* "my-bucket". Identifiers are limited to 100 characters and can include only
* letters, digits, underscores, hyphens, and periods. Bucket identifiers must
* start with an alphanumeric character.
* @return Operation
* @throws \Google\Service\Exception
*/
public function createAsync($parent, LogBucket $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('createAsync', [$params], Operation::class);
}
/**
* Deletes a log bucket.Changes the bucket's lifecycle_state to the
* DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log
* entries in the bucket will be permanently deleted. (buckets.delete)
*
* @param string $name Required. The full resource name of the bucket to delete.
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For
* example:"projects/my-project/locations/global/buckets/my-bucket"
* @param array $optParams Optional parameters.
* @return LoggingEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], LoggingEmpty::class);
}
/**
* Gets a log bucket. (buckets.get)
*
* @param string $name Required. The resource name of the bucket:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For
* example:"projects/my-project/locations/global/buckets/my-bucket"
* @param array $optParams Optional parameters.
* @return LogBucket
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], LogBucket::class);
}
/**
* Lists log buckets. (buckets.listBillingAccountsLocationsBuckets)
*
* @param string $parent Required. The parent resource whose buckets are to be
* listed: "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]" Note: The locations portion of
* the resource must be specified, but supplying the character - in place of
* LOCATION_ID will return all buckets.
* @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
* nextPageToken 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. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return ListBucketsResponse
* @throws \Google\Service\Exception
*/
public function listBillingAccountsLocationsBuckets($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBucketsResponse::class);
}
/**
* Updates a log bucket.If the bucket has a lifecycle_state of DELETE_REQUESTED,
* then FAILED_PRECONDITION will be returned.After a bucket has been created,
* the bucket's location cannot be changed. (buckets.patch)
*
* @param string $name Required. The full resource name of the bucket to update.
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For
* example:"projects/my-project/locations/global/buckets/my-bucket"
* @param LogBucket $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Field mask that specifies the fields
* in bucket that need an update. A bucket field will be overwritten if, and
* only if, it is in the update mask. name and output only fields cannot be
* updated.For a detailed FieldMask definition, see:
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example:
* updateMask=retention_days
* @return LogBucket
* @throws \Google\Service\Exception
*/
public function patch($name, LogBucket $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], LogBucket::class);
}
/**
* Undeletes a log bucket. A bucket that has been deleted can be undeleted
* within the grace period of 7 days. (buckets.undelete)
*
* @param string $name Required. The full resource name of the bucket to
* undelete. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For
* example:"projects/my-project/locations/global/buckets/my-bucket"
* @param UndeleteBucketRequest $postBody
* @param array $optParams Optional parameters.
* @return LoggingEmpty
* @throws \Google\Service\Exception
*/
public function undelete($name, UndeleteBucketRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('undelete', [$params], LoggingEmpty::class);
}
/**
* Updates a log bucket asynchronously.If the bucket has a lifecycle_state of
* DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket
* has been created, the bucket's location cannot be changed.
* (buckets.updateAsync)
*
* @param string $name Required. The full resource name of the bucket to update.
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For
* example:"projects/my-project/locations/global/buckets/my-bucket"
* @param LogBucket $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Field mask that specifies the fields
* in bucket that need an update. A bucket field will be overwritten if, and
* only if, it is in the update mask. name and output only fields cannot be
* updated.For a detailed FieldMask definition, see:
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example:
* updateMask=retention_days
* @return Operation
* @throws \Google\Service\Exception
*/
public function updateAsync($name, LogBucket $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateAsync', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingAccountsLocationsBuckets::class, 'Google_Service_Logging_Resource_BillingAccountsLocationsBuckets');

View File

@@ -0,0 +1,126 @@
<?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\Logging\Resource;
use Google\Service\Logging\Link;
use Google\Service\Logging\ListLinksResponse;
use Google\Service\Logging\Operation;
/**
* The "links" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $links = $loggingService->billingAccounts_locations_buckets_links;
* </code>
*/
class BillingAccountsLocationsBucketsLinks extends \Google\Service\Resource
{
/**
* Asynchronously creates a linked dataset in BigQuery which makes it possible
* to use BigQuery to read the logs stored in the log bucket. A log bucket may
* currently only contain one link. (links.create)
*
* @param string $parent Required. The full resource name of the bucket to
* create a link for.
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* @param Link $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string linkId Required. The ID to use for the link. The link_id
* can have up to 100 characters. A valid link_id must only have alphanumeric
* characters and underscores within it.
* @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);
}
/**
* Deletes a link. This will also delete the corresponding BigQuery linked
* dataset. (links.delete)
*
* @param string $name Required. The full resource name of the link to delete. "
* projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK
* _ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKE
* T_ID]/links/[LINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCAT
* ION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[
* LOCATION_ID]/buckets/[BUCKET_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);
}
/**
* Gets a link. (links.get)
*
* @param string $name Required. The resource name of the link: "projects/[PROJE
* CT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organiza
* tions/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LI
* NK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets
* /[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/bu
* ckets/[BUCKET_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);
}
/**
* Lists links. (links.listBillingAccountsLocationsBucketsLinks)
*
* @param string $parent Required. The parent resource whose links are to be
* listed: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request.
* @opt_param string pageToken Optional. If present, then retrieve the next
* batch of results from the preceding call to this method. pageToken must be
* the value of nextPageToken from the previous response.
* @return ListLinksResponse
* @throws \Google\Service\Exception
*/
public function listBillingAccountsLocationsBucketsLinks($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLinksResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingAccountsLocationsBucketsLinks::class, 'Google_Service_Logging_Resource_BillingAccountsLocationsBucketsLinks');

View File

@@ -0,0 +1,147 @@
<?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\Logging\Resource;
use Google\Service\Logging\ListViewsResponse;
use Google\Service\Logging\LogView;
use Google\Service\Logging\LoggingEmpty;
/**
* The "views" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $views = $loggingService->billingAccounts_locations_buckets_views;
* </code>
*/
class BillingAccountsLocationsBucketsViews extends \Google\Service\Resource
{
/**
* Creates a view over log entries in a log bucket. A bucket may contain a
* maximum of 30 views. (views.create)
*
* @param string $parent Required. The bucket in which to create the view
* `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"` For
* example:"projects/my-project/locations/global/buckets/my-bucket"
* @param LogView $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string viewId Required. A client-assigned identifier such as "my-
* view". Identifiers are limited to 100 characters and can include only
* letters, digits, underscores, hyphens, and periods.
* @return LogView
* @throws \Google\Service\Exception
*/
public function create($parent, LogView $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], LogView::class);
}
/**
* Deletes a view on a log bucket. If an UNAVAILABLE error is returned, this
* indicates that system is not in a state where it can delete the view. If this
* occurs, please try again in a few minutes. (views.delete)
*
* @param string $name Required. The full resource name of the view to delete: "
* projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW
* _ID]" For example:"projects/my-project/locations/global/buckets/my-
* bucket/views/my-view"
* @param array $optParams Optional parameters.
* @return LoggingEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], LoggingEmpty::class);
}
/**
* Gets a view on a log bucket. (views.get)
*
* @param string $name Required. The resource name of the policy: "projects/[PRO
* JECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For
* example:"projects/my-project/locations/global/buckets/my-bucket/views/my-
* view"
* @param array $optParams Optional parameters.
* @return LogView
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], LogView::class);
}
/**
* Lists views on a log bucket. (views.listBillingAccountsLocationsBucketsViews)
*
* @param string $parent Required. The bucket whose views are to be listed:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request.Non-positive values are ignored. The presence of
* nextPageToken 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. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return ListViewsResponse
* @throws \Google\Service\Exception
*/
public function listBillingAccountsLocationsBucketsViews($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListViewsResponse::class);
}
/**
* Updates a view on a log bucket. This method replaces the value of the filter
* field from the existing view with the corresponding value from the new view.
* If an UNAVAILABLE error is returned, this indicates that system is not in a
* state where it can update the view. If this occurs, please try again in a few
* minutes. (views.patch)
*
* @param string $name Required. The full resource name of the view to update "p
* rojects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_
* ID]" For example:"projects/my-project/locations/global/buckets/my-
* bucket/views/my-view"
* @param LogView $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask that specifies the fields
* in view that need an update. A field will be overwritten if, and only if, it
* is in the update mask. name and output only fields cannot be updated.For a
* detailed FieldMask definition, see https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example:
* updateMask=filter
* @return LogView
* @throws \Google\Service\Exception
*/
public function patch($name, LogView $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], LogView::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingAccountsLocationsBucketsViews::class, 'Google_Service_Logging_Resource_BillingAccountsLocationsBucketsViews');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging\Resource;
use Google\Service\Logging\ListLogsResponse;
/**
* The "logs" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $logs = $loggingService->billingAccounts_locations_buckets_views_logs;
* </code>
*/
class BillingAccountsLocationsBucketsViewsLogs extends \Google\Service\Resource
{
/**
* Lists the logs in projects, organizations, folders, or billing accounts. Only
* logs that have entries are listed.
* (logs.listBillingAccountsLocationsBucketsViewsLogs)
*
* @param string $parent Required. The resource name to list logs for:
* projects/[PROJECT_ID] organizations/[ORGANIZATION_ID]
* billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* nextPageToken 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. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @opt_param string resourceNames Optional. List of resource names to list logs
* for: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/
* [VIEW_ID] organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BU
* CKET_ID]/views/[VIEW_ID] billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCA
* TION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] folders/[FOLDER_ID]/locations/[L
* OCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]To support legacy queries, it
* could also be: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID]
* billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]The resource name in
* the parent field is added to this list.
* @return ListLogsResponse
* @throws \Google\Service\Exception
*/
public function listBillingAccountsLocationsBucketsViewsLogs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLogsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingAccountsLocationsBucketsViewsLogs::class, 'Google_Service_Logging_Resource_BillingAccountsLocationsBucketsViewsLogs');

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging\Resource;
use Google\Service\Logging\CancelOperationRequest;
use Google\Service\Logging\ListOperationsResponse;
use Google\Service\Logging\LoggingEmpty;
use Google\Service\Logging\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $operations = $loggingService->billingAccounts_locations_operations;
* </code>
*/
class BillingAccountsLocationsOperations 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 LoggingEmpty
* @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], LoggingEmpty::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.listBillingAccountsLocationsOperations)
*
* @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.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listBillingAccountsLocationsOperations($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(BillingAccountsLocationsOperations::class, 'Google_Service_Logging_Resource_BillingAccountsLocationsOperations');

View File

@@ -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\Logging\Resource;
use Google\Service\Logging\ListRecentQueriesResponse;
/**
* The "recentQueries" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $recentQueries = $loggingService->billingAccounts_locations_recentQueries;
* </code>
*/
class BillingAccountsLocationsRecentQueries extends \Google\Service\Resource
{
/**
* Lists the RecentQueries that were created by the user making the request.
* (recentQueries.listBillingAccountsLocationsRecentQueries)
*
* @param string $parent Required. The resource to which the listed queries
* belong. "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example:projects/my-
* project/locations/us-central1Note: The location portion of the resource must
* be specified, but supplying the character - in place of LOCATION_ID will
* return all recent queries.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Specifies the type ("Logging" or
* "OpsAnalytics") of the recent queries to list. The only valid value for this
* field is one of the two allowable type function calls, which are the
* following: type("Logging") type("OpsAnalytics")
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* nextPageToken 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. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return ListRecentQueriesResponse
* @throws \Google\Service\Exception
*/
public function listBillingAccountsLocationsRecentQueries($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRecentQueriesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingAccountsLocationsRecentQueries::class, 'Google_Service_Logging_Resource_BillingAccountsLocationsRecentQueries');

View File

@@ -0,0 +1,177 @@
<?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\Logging\Resource;
use Google\Service\Logging\ListSavedQueriesResponse;
use Google\Service\Logging\LoggingEmpty;
use Google\Service\Logging\SavedQuery;
/**
* The "savedQueries" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $savedQueries = $loggingService->billingAccounts_locations_savedQueries;
* </code>
*/
class BillingAccountsLocationsSavedQueries extends \Google\Service\Resource
{
/**
* Creates a new SavedQuery for the user making the request.
* (savedQueries.create)
*
* @param string $parent Required. The parent resource in which to create the
* saved query: "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-
* project/locations/global" "organizations/123456789/locations/us-central1"
* @param SavedQuery $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string savedQueryId Optional. The ID to use for the saved query,
* which will become the final component of the saved query's resource name.If
* the saved_query_id is not provided, the system will generate an alphanumeric
* ID.The saved_query_id is limited to 100 characters and can include only the
* following characters: upper and lower-case alphanumeric characters,
* underscores, hyphens, periods.First character has to be alphanumeric.
* @return SavedQuery
* @throws \Google\Service\Exception
*/
public function create($parent, SavedQuery $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], SavedQuery::class);
}
/**
* Deletes an existing SavedQuery that was created by the user making the
* request. (savedQueries.delete)
*
* @param string $name Required. The full resource name of the saved query to
* delete.
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "orga
* nizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[Q
* UERY_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For
* example: "projects/my-project/locations/global/savedQueries/my-saved-query"
* @param array $optParams Optional parameters.
* @return LoggingEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], LoggingEmpty::class);
}
/**
* Returns all data associated with the requested query. (savedQueries.get)
*
* @param string $name Required. The resource name of the saved query.
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "orga
* nizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[Q
* UERY_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For
* example: "projects/my-project/locations/global/savedQueries/my-saved-query"
* @param array $optParams Optional parameters.
* @return SavedQuery
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], SavedQuery::class);
}
/**
* Lists the SavedQueries that were created by the user making the request.
* (savedQueries.listBillingAccountsLocationsSavedQueries)
*
* @param string $parent Required. The resource to which the listed queries
* belong. "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-
* project/locations/us-central1" Note: The locations portion of the resource
* must be specified. To get a list of all saved queries, a wildcard character -
* can be used for LOCATION_ID, for example: "projects/my-project/locations/-"
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Specifies the type ("Logging" or
* "OpsAnalytics") and the visibility (PRIVATE or SHARED) of the saved queries
* to list. If provided, the filter must contain either the type function or a
* visibility token, or both. If both are chosen, they can be placed in any
* order, but they must be joined by the AND operator or the empty character.The
* two supported type function calls are: type("Logging")
* type("OpsAnalytics")The two supported visibility tokens are: visibility =
* PRIVATE visibility = SHAREDFor example:type("Logging") AND visibility =
* PRIVATE visibility=SHARED type("OpsAnalytics") type("OpsAnalytics)"
* visibility = PRIVATE visibility = SHARED
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request.Non-positive values are ignored. The presence of
* nextPageToken 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. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return ListSavedQueriesResponse
* @throws \Google\Service\Exception
*/
public function listBillingAccountsLocationsSavedQueries($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSavedQueriesResponse::class);
}
/**
* Updates an existing SavedQuery. (savedQueries.patch)
*
* @param string $name Output only. Resource name of the saved query.In the
* format:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For a
* list of supported locations, see Supported Regions
* (https://cloud.google.com/logging/docs/region-support#bucket-regions)After
* the saved query is created, the location cannot be changed.If the user
* doesn't provide a QUERY_ID, the system will generate an alphanumeric ID.
* @param SavedQuery $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. A non-empty list of fields to change
* in the existing saved query. Fields are relative to the saved_query and new
* values for the fields are taken from the corresponding fields in the
* SavedQuery included in this request. Fields not mentioned in update_mask are
* not changed and are ignored in the request.To update all mutable fields,
* specify an update_mask of *.For example, to change the description and query
* filter text of a saved query, specify an update_mask of "description,
* query.filter".
* @return SavedQuery
* @throws \Google\Service\Exception
*/
public function patch($name, SavedQuery $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], SavedQuery::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingAccountsLocationsSavedQueries::class, 'Google_Service_Logging_Resource_BillingAccountsLocationsSavedQueries');

View File

@@ -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\Logging\Resource;
use Google\Service\Logging\ListLogsResponse;
use Google\Service\Logging\LoggingEmpty;
/**
* The "logs" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $logs = $loggingService->billingAccounts_logs;
* </code>
*/
class BillingAccountsLogs extends \Google\Service\Resource
{
/**
* Deletes all the log entries in a log for the _Default Log Bucket. The log
* reappears if it receives new entries. Log entries written shortly before the
* delete operation might not be deleted. Entries received after the delete
* operation with a timestamp before the operation will be deleted.
* (logs.delete)
*
* @param string $logName Required. The resource name of the log to delete:
* projects/[PROJECT_ID]/logs/[LOG_ID]
* organizations/[ORGANIZATION_ID]/logs/[LOG_ID]
* billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]
* folders/[FOLDER_ID]/logs/[LOG_ID][LOG_ID] must be URL-encoded. For example,
* "projects/my-project-id/logs/syslog",
* "organizations/123/logs/cloudaudit.googleapis.com%2Factivity".For more
* information about log names, see LogEntry.
* @param array $optParams Optional parameters.
* @return LoggingEmpty
* @throws \Google\Service\Exception
*/
public function delete($logName, $optParams = [])
{
$params = ['logName' => $logName];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], LoggingEmpty::class);
}
/**
* Lists the logs in projects, organizations, folders, or billing accounts. Only
* logs that have entries are listed. (logs.listBillingAccountsLogs)
*
* @param string $parent Required. The resource name to list logs for:
* projects/[PROJECT_ID] organizations/[ORGANIZATION_ID]
* billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* nextPageToken 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. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @opt_param string resourceNames Optional. List of resource names to list logs
* for: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/
* [VIEW_ID] organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BU
* CKET_ID]/views/[VIEW_ID] billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCA
* TION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] folders/[FOLDER_ID]/locations/[L
* OCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]To support legacy queries, it
* could also be: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID]
* billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]The resource name in
* the parent field is added to this list.
* @return ListLogsResponse
* @throws \Google\Service\Exception
*/
public function listBillingAccountsLogs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLogsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingAccountsLogs::class, 'Google_Service_Logging_Resource_BillingAccountsLogs');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging\Resource;
use Google\Service\Logging\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $operations = $loggingService->operations;
* </code>
*/
class BillingAccountsOperations extends \Google\Service\Resource
{
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingAccountsOperations::class, 'Google_Service_Logging_Resource_BillingAccountsOperations');

View File

@@ -0,0 +1,249 @@
<?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\Logging\Resource;
use Google\Service\Logging\ListSinksResponse;
use Google\Service\Logging\LogSink;
use Google\Service\Logging\LoggingEmpty;
/**
* The "sinks" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $sinks = $loggingService->billingAccounts_sinks;
* </code>
*/
class BillingAccountsSinks extends \Google\Service\Resource
{
/**
* Creates a sink that exports specified log entries to a destination. The
* export begins upon ingress, unless the sink's writer_identity is not
* permitted to write to the destination. A sink can export log entries only
* from the resource owning the sink. (sinks.create)
*
* @param string $parent Required. The resource in which to create the sink:
* "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" For
* examples:"projects/my-project" "organizations/123456789"
* @param LogSink $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string customWriterIdentity Optional. The service account provided
* by the caller that will be used to write the log entries. The format must be
* serviceAccount:some@email. This field can only be specified when you are
* routing logs to a log bucket that is in a different project than the sink.
* When not specified, a Logging service account will automatically be
* generated.
* @opt_param bool uniqueWriterIdentity Optional. Determines the kind of IAM
* identity returned as writer_identity in the new sink. If this value is
* omitted or set to false, and if the sink's parent is a project, then the
* value returned as writer_identity is the same group or service account used
* by Cloud Logging before the addition of writer identities to this API. The
* sink's destination must be in the same project as the sink itself.If this
* field is set to true, or if the sink is owned by a non-project resource such
* as an organization, then the value of writer_identity will be a service agent
* (https://cloud.google.com/iam/docs/service-account-types#service-agents) used
* by the sinks with the same parent. For more information, see writer_identity
* in LogSink.
* @return LogSink
* @throws \Google\Service\Exception
*/
public function create($parent, LogSink $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], LogSink::class);
}
/**
* Deletes a sink. If the sink has a unique writer_identity, then that service
* account is also deleted. (sinks.delete)
*
* @param string $sinkName Required. The full resource name of the sink to
* delete, including the parent resource and the sink identifier:
* "projects/[PROJECT_ID]/sinks/[SINK_ID]"
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]" For example:"projects/my-
* project/sinks/my-sink"
* @param array $optParams Optional parameters.
* @return LoggingEmpty
* @throws \Google\Service\Exception
*/
public function delete($sinkName, $optParams = [])
{
$params = ['sinkName' => $sinkName];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], LoggingEmpty::class);
}
/**
* Gets a sink. (sinks.get)
*
* @param string $sinkName Required. The resource name of the sink:
* "projects/[PROJECT_ID]/sinks/[SINK_ID]"
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]" For example:"projects/my-
* project/sinks/my-sink"
* @param array $optParams Optional parameters.
* @return LogSink
* @throws \Google\Service\Exception
*/
public function get($sinkName, $optParams = [])
{
$params = ['sinkName' => $sinkName];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], LogSink::class);
}
/**
* Lists sinks. (sinks.listBillingAccountsSinks)
*
* @param string $parent Required. The parent resource whose sinks are to be
* listed: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. A filter expression to constrain the sinks
* returned. Today, this only supports the following strings: ''
* 'in_scope("ALL")', 'in_scope("ANCESTOR")', 'in_scope("DEFAULT")'.Description
* of scopes below. ALL: Includes all of the sinks which can be returned in any
* other scope. ANCESTOR: Includes intercepting sinks owned by ancestor
* resources. DEFAULT: Includes sinks owned by parent.When the empty string is
* provided, then the filter 'in_scope("DEFAULT")' is applied.
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* nextPageToken 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. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return ListSinksResponse
* @throws \Google\Service\Exception
*/
public function listBillingAccountsSinks($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSinksResponse::class);
}
/**
* Updates a sink. This method replaces the values of the destination and filter
* fields of the existing sink with the corresponding values from the new
* sink.The updated sink might also have a new writer_identity; see the
* unique_writer_identity field. (sinks.patch)
*
* @param string $sinkName Required. The full resource name of the sink to
* update, including the parent resource and the sink identifier:
* "projects/[PROJECT_ID]/sinks/[SINK_ID]"
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]" For example:"projects/my-
* project/sinks/my-sink"
* @param LogSink $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string customWriterIdentity Optional. The service account provided
* by the caller that will be used to write the log entries. The format must be
* serviceAccount:some@email. This field can only be specified when you are
* routing logs to a log bucket that is in a different project than the sink.
* When not specified, a Logging service account will automatically be
* generated.
* @opt_param bool uniqueWriterIdentity Optional. See sinks.create for a
* description of this field. When updating a sink, the effect of this field on
* the value of writer_identity in the updated sink depends on both the old and
* new values of this field: If the old and new values of this field are both
* false or both true, then there is no change to the sink's writer_identity. If
* the old value is false and the new value is true, then writer_identity is
* changed to a service agent (https://cloud.google.com/iam/docs/service-
* account-types#service-agents) owned by Cloud Logging. It is an error if the
* old value is true and the new value is set to false or defaulted to false.
* @opt_param string updateMask Optional. Field mask that specifies the fields
* in sink that need an update. A sink field will be overwritten if, and only
* if, it is in the update mask. name and output only fields cannot be
* updated.An empty updateMask is temporarily treated as using the following
* mask for backwards compatibility
* purposes:destination,filter,includeChildrenAt some point in the future,
* behavior will be removed and specifying an empty updateMask will be an
* error.For a detailed FieldMask definition, see
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example:
* updateMask=filter
* @return LogSink
* @throws \Google\Service\Exception
*/
public function patch($sinkName, LogSink $postBody, $optParams = [])
{
$params = ['sinkName' => $sinkName, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], LogSink::class);
}
/**
* Updates a sink. This method replaces the values of the destination and filter
* fields of the existing sink with the corresponding values from the new
* sink.The updated sink might also have a new writer_identity; see the
* unique_writer_identity field. (sinks.update)
*
* @param string $sinkName Required. The full resource name of the sink to
* update, including the parent resource and the sink identifier:
* "projects/[PROJECT_ID]/sinks/[SINK_ID]"
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]" For example:"projects/my-
* project/sinks/my-sink"
* @param LogSink $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string customWriterIdentity Optional. The service account provided
* by the caller that will be used to write the log entries. The format must be
* serviceAccount:some@email. This field can only be specified when you are
* routing logs to a log bucket that is in a different project than the sink.
* When not specified, a Logging service account will automatically be
* generated.
* @opt_param bool uniqueWriterIdentity Optional. See sinks.create for a
* description of this field. When updating a sink, the effect of this field on
* the value of writer_identity in the updated sink depends on both the old and
* new values of this field: If the old and new values of this field are both
* false or both true, then there is no change to the sink's writer_identity. If
* the old value is false and the new value is true, then writer_identity is
* changed to a service agent (https://cloud.google.com/iam/docs/service-
* account-types#service-agents) owned by Cloud Logging. It is an error if the
* old value is true and the new value is set to false or defaulted to false.
* @opt_param string updateMask Optional. Field mask that specifies the fields
* in sink that need an update. A sink field will be overwritten if, and only
* if, it is in the update mask. name and output only fields cannot be
* updated.An empty updateMask is temporarily treated as using the following
* mask for backwards compatibility
* purposes:destination,filter,includeChildrenAt some point in the future,
* behavior will be removed and specifying an empty updateMask will be an
* error.For a detailed FieldMask definition, see
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example:
* updateMask=filter
* @return LogSink
* @throws \Google\Service\Exception
*/
public function update($sinkName, LogSink $postBody, $optParams = [])
{
$params = ['sinkName' => $sinkName, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], LogSink::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingAccountsSinks::class, 'Google_Service_Logging_Resource_BillingAccountsSinks');

View File

@@ -0,0 +1,109 @@
<?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\Logging\Resource;
use Google\Service\Logging\CopyLogEntriesRequest;
use Google\Service\Logging\ListLogEntriesRequest;
use Google\Service\Logging\ListLogEntriesResponse;
use Google\Service\Logging\Operation;
use Google\Service\Logging\TailLogEntriesRequest;
use Google\Service\Logging\TailLogEntriesResponse;
use Google\Service\Logging\WriteLogEntriesRequest;
use Google\Service\Logging\WriteLogEntriesResponse;
/**
* The "entries" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $entries = $loggingService->entries;
* </code>
*/
class Entries extends \Google\Service\Resource
{
/**
* Copies a set of log entries from a log bucket to a Cloud Storage bucket.
* (entries.copy)
*
* @param CopyLogEntriesRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function copy(CopyLogEntriesRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('copy', [$params], Operation::class);
}
/**
* Lists log entries. Use this method to retrieve log entries that originated
* from a project/folder/organization/billing account. For ways to export log
* entries, see Exporting Logs (https://cloud.google.com/logging/docs/export).
* (entries.listEntries)
*
* @param ListLogEntriesRequest $postBody
* @param array $optParams Optional parameters.
* @return ListLogEntriesResponse
* @throws \Google\Service\Exception
*/
public function listEntries(ListLogEntriesRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLogEntriesResponse::class);
}
/**
* Streaming read of log entries as they are received. Until the stream is
* terminated, it will continue reading logs. (entries.tail)
*
* @param TailLogEntriesRequest $postBody
* @param array $optParams Optional parameters.
* @return TailLogEntriesResponse
* @throws \Google\Service\Exception
*/
public function tail(TailLogEntriesRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('tail', [$params], TailLogEntriesResponse::class);
}
/**
* Writes log entries to Logging. This API method is the only way to send log
* entries to Logging. This method is used, directly or indirectly, by the
* Logging agent (fluentd) and all logging libraries configured to use Logging.
* A single request may contain log entries for a maximum of 1000 different
* resource names (projects, organizations, billing accounts or folders), where
* the resource name for a log entry is determined from its logName field.
* (entries.write)
*
* @param WriteLogEntriesRequest $postBody
* @param array $optParams Optional parameters.
* @return WriteLogEntriesResponse
* @throws \Google\Service\Exception
*/
public function write(WriteLogEntriesRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('write', [$params], WriteLogEntriesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Entries::class, 'Google_Service_Logging_Resource_Entries');

View File

@@ -0,0 +1,148 @@
<?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\Logging\Resource;
use Google\Service\Logging\ListExclusionsResponse;
use Google\Service\Logging\LogExclusion;
use Google\Service\Logging\LoggingEmpty;
/**
* The "exclusions" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $exclusions = $loggingService->exclusions;
* </code>
*/
class Exclusions extends \Google\Service\Resource
{
/**
* Creates a new exclusion in the _Default sink in a specified parent resource.
* Only log entries belonging to that resource can be excluded. You can have up
* to 10 exclusions in a resource. (exclusions.create)
*
* @param string $parent Required. The parent resource in which to create the
* exclusion: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" For
* examples:"projects/my-logging-project" "organizations/123456789"
* @param LogExclusion $postBody
* @param array $optParams Optional parameters.
* @return LogExclusion
* @throws \Google\Service\Exception
*/
public function create($parent, LogExclusion $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], LogExclusion::class);
}
/**
* Deletes an exclusion in the _Default sink. (exclusions.delete)
*
* @param string $name Required. The resource name of an existing exclusion to
* delete: "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" For example:"projects/my-
* project/exclusions/my-exclusion"
* @param array $optParams Optional parameters.
* @return LoggingEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], LoggingEmpty::class);
}
/**
* Gets the description of an exclusion in the _Default sink. (exclusions.get)
*
* @param string $name Required. The resource name of an existing exclusion:
* "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" For example:"projects/my-
* project/exclusions/my-exclusion"
* @param array $optParams Optional parameters.
* @return LogExclusion
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], LogExclusion::class);
}
/**
* Lists all the exclusions on the _Default sink in a parent resource.
* (exclusions.listExclusions)
*
* @param string $parent Required. The parent resource whose exclusions are to
* be listed. "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* nextPageToken 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. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return ListExclusionsResponse
* @throws \Google\Service\Exception
*/
public function listExclusions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListExclusionsResponse::class);
}
/**
* Changes one or more properties of an existing exclusion in the _Default sink.
* (exclusions.patch)
*
* @param string $name Required. The resource name of the exclusion to update:
* "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" For example:"projects/my-
* project/exclusions/my-exclusion"
* @param LogExclusion $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. A non-empty list of fields to change
* in the existing exclusion. New values for the fields are taken from the
* corresponding fields in the LogExclusion included in this request. Fields not
* mentioned in update_mask are not changed and are ignored in the request.For
* example, to change the filter and description of an exclusion, specify an
* update_mask of "filter,description".
* @return LogExclusion
* @throws \Google\Service\Exception
*/
public function patch($name, LogExclusion $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], LogExclusion::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Exclusions::class, 'Google_Service_Logging_Resource_Exclusions');

View File

@@ -0,0 +1,118 @@
<?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\Logging\Resource;
use Google\Service\Logging\CmekSettings;
use Google\Service\Logging\Settings;
/**
* The "folders" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $folders = $loggingService->folders;
* </code>
*/
class Folders extends \Google\Service\Resource
{
/**
* Gets the Logging CMEK settings for the given resource.Note: CMEK for the Log
* Router can be configured for Google Cloud projects, folders, organizations,
* and billing accounts. Once configured for an organization, it applies to all
* projects and folders in the Google Cloud organization.See Enabling CMEK for
* Log Router (https://cloud.google.com/logging/docs/routing/managed-encryption)
* for more information. (folders.getCmekSettings)
*
* @param string $name Required. The resource for which to retrieve CMEK
* settings. "projects/[PROJECT_ID]/cmekSettings"
* "organizations/[ORGANIZATION_ID]/cmekSettings"
* "billingAccounts/[BILLING_ACCOUNT_ID]/cmekSettings"
* "folders/[FOLDER_ID]/cmekSettings" For
* example:"organizations/12345/cmekSettings"Note: CMEK for the Log Router can
* be configured for Google Cloud projects, folders, organizations, and billing
* accounts. Once configured for an organization, it applies to all projects and
* folders in the Google Cloud organization.
* @param array $optParams Optional parameters.
* @return CmekSettings
* @throws \Google\Service\Exception
*/
public function getCmekSettings($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getCmekSettings', [$params], CmekSettings::class);
}
/**
* Gets the settings for the given resource.Note: Settings can be retrieved for
* Google Cloud projects, folders, organizations, and billing accounts.See View
* default resource settings for Logging
* (https://cloud.google.com/logging/docs/default-settings#view-org-settings)
* for more information. (folders.getSettings)
*
* @param string $name Required. The resource for which to retrieve settings.
* "projects/[PROJECT_ID]/settings" "organizations/[ORGANIZATION_ID]/settings"
* "billingAccounts/[BILLING_ACCOUNT_ID]/settings"
* "folders/[FOLDER_ID]/settings" For
* example:"organizations/12345/settings"Note: Settings can be retrieved for
* Google Cloud projects, folders, organizations, and billing accounts.
* @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);
}
/**
* Updates the settings for the given resource. This method applies to all
* feature configurations for organization and folders.UpdateSettings fails when
* any of the following are true: The value of storage_location either isn't
* supported by Logging or violates the location OrgPolicy. The
* default_sink_config field is set, but it has an unspecified filter write
* mode. The value of kms_key_name is invalid. The associated service account
* doesn't have the required roles/cloudkms.cryptoKeyEncrypterDecrypter role
* assigned for the key. Access to the key is disabled.See Configure default
* settings for organizations and folders
* (https://cloud.google.com/logging/docs/default-settings) for more
* information. (folders.updateSettings)
*
* @param string $name Required. The resource name for the settings to update.
* "organizations/[ORGANIZATION_ID]/settings" "folders/[FOLDER_ID]/settings" For
* example:"organizations/12345/settings"
* @param Settings $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask identifying which fields
* from settings should be updated. A field will be overwritten if and only if
* it is in the update mask. Output only fields cannot be updated.See FieldMask
* for more information.For example: "updateMask=kmsKeyName"
* @return Settings
* @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], Settings::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Folders::class, 'Google_Service_Logging_Resource_Folders');

View File

@@ -0,0 +1,148 @@
<?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\Logging\Resource;
use Google\Service\Logging\ListExclusionsResponse;
use Google\Service\Logging\LogExclusion;
use Google\Service\Logging\LoggingEmpty;
/**
* The "exclusions" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $exclusions = $loggingService->folders_exclusions;
* </code>
*/
class FoldersExclusions extends \Google\Service\Resource
{
/**
* Creates a new exclusion in the _Default sink in a specified parent resource.
* Only log entries belonging to that resource can be excluded. You can have up
* to 10 exclusions in a resource. (exclusions.create)
*
* @param string $parent Required. The parent resource in which to create the
* exclusion: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" For
* examples:"projects/my-logging-project" "organizations/123456789"
* @param LogExclusion $postBody
* @param array $optParams Optional parameters.
* @return LogExclusion
* @throws \Google\Service\Exception
*/
public function create($parent, LogExclusion $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], LogExclusion::class);
}
/**
* Deletes an exclusion in the _Default sink. (exclusions.delete)
*
* @param string $name Required. The resource name of an existing exclusion to
* delete: "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" For example:"projects/my-
* project/exclusions/my-exclusion"
* @param array $optParams Optional parameters.
* @return LoggingEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], LoggingEmpty::class);
}
/**
* Gets the description of an exclusion in the _Default sink. (exclusions.get)
*
* @param string $name Required. The resource name of an existing exclusion:
* "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" For example:"projects/my-
* project/exclusions/my-exclusion"
* @param array $optParams Optional parameters.
* @return LogExclusion
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], LogExclusion::class);
}
/**
* Lists all the exclusions on the _Default sink in a parent resource.
* (exclusions.listFoldersExclusions)
*
* @param string $parent Required. The parent resource whose exclusions are to
* be listed. "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* nextPageToken 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. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return ListExclusionsResponse
* @throws \Google\Service\Exception
*/
public function listFoldersExclusions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListExclusionsResponse::class);
}
/**
* Changes one or more properties of an existing exclusion in the _Default sink.
* (exclusions.patch)
*
* @param string $name Required. The resource name of the exclusion to update:
* "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
* "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
* "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]" For example:"projects/my-
* project/exclusions/my-exclusion"
* @param LogExclusion $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. A non-empty list of fields to change
* in the existing exclusion. New values for the fields are taken from the
* corresponding fields in the LogExclusion included in this request. Fields not
* mentioned in update_mask are not changed and are ignored in the request.For
* example, to change the filter and description of an exclusion, specify an
* update_mask of "filter,description".
* @return LogExclusion
* @throws \Google\Service\Exception
*/
public function patch($name, LogExclusion $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], LogExclusion::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersExclusions::class, 'Google_Service_Logging_Resource_FoldersExclusions');

View File

@@ -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\Logging\Resource;
use Google\Service\Logging\ListLocationsResponse;
use Google\Service\Logging\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $locations = $loggingService->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);
}
/**
* Lists information about the supported locations for this service.
* (locations.listFoldersLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @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);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersLocations::class, 'Google_Service_Logging_Resource_FoldersLocations');

View File

@@ -0,0 +1,236 @@
<?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\Logging\Resource;
use Google\Service\Logging\ListBucketsResponse;
use Google\Service\Logging\LogBucket;
use Google\Service\Logging\LoggingEmpty;
use Google\Service\Logging\Operation;
use Google\Service\Logging\UndeleteBucketRequest;
/**
* The "buckets" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $buckets = $loggingService->folders_locations_buckets;
* </code>
*/
class FoldersLocationsBuckets extends \Google\Service\Resource
{
/**
* Creates a log bucket that can be used to store log entries. After a bucket
* has been created, the bucket's location cannot be changed. (buckets.create)
*
* @param string $parent Required. The resource in which to create the log
* bucket: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For
* example:"projects/my-project/locations/global"
* @param LogBucket $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string bucketId Required. A client-assigned identifier such as
* "my-bucket". Identifiers are limited to 100 characters and can include only
* letters, digits, underscores, hyphens, and periods. Bucket identifiers must
* start with an alphanumeric character.
* @return LogBucket
* @throws \Google\Service\Exception
*/
public function create($parent, LogBucket $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], LogBucket::class);
}
/**
* Creates a log bucket asynchronously that can be used to store log
* entries.After a bucket has been created, the bucket's location cannot be
* changed. (buckets.createAsync)
*
* @param string $parent Required. The resource in which to create the log
* bucket: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For
* example:"projects/my-project/locations/global"
* @param LogBucket $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string bucketId Required. A client-assigned identifier such as
* "my-bucket". Identifiers are limited to 100 characters and can include only
* letters, digits, underscores, hyphens, and periods. Bucket identifiers must
* start with an alphanumeric character.
* @return Operation
* @throws \Google\Service\Exception
*/
public function createAsync($parent, LogBucket $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('createAsync', [$params], Operation::class);
}
/**
* Deletes a log bucket.Changes the bucket's lifecycle_state to the
* DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log
* entries in the bucket will be permanently deleted. (buckets.delete)
*
* @param string $name Required. The full resource name of the bucket to delete.
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For
* example:"projects/my-project/locations/global/buckets/my-bucket"
* @param array $optParams Optional parameters.
* @return LoggingEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], LoggingEmpty::class);
}
/**
* Gets a log bucket. (buckets.get)
*
* @param string $name Required. The resource name of the bucket:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For
* example:"projects/my-project/locations/global/buckets/my-bucket"
* @param array $optParams Optional parameters.
* @return LogBucket
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], LogBucket::class);
}
/**
* Lists log buckets. (buckets.listFoldersLocationsBuckets)
*
* @param string $parent Required. The parent resource whose buckets are to be
* listed: "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]" Note: The locations portion of
* the resource must be specified, but supplying the character - in place of
* LOCATION_ID will return all buckets.
* @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
* nextPageToken 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. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return ListBucketsResponse
* @throws \Google\Service\Exception
*/
public function listFoldersLocationsBuckets($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBucketsResponse::class);
}
/**
* Updates a log bucket.If the bucket has a lifecycle_state of DELETE_REQUESTED,
* then FAILED_PRECONDITION will be returned.After a bucket has been created,
* the bucket's location cannot be changed. (buckets.patch)
*
* @param string $name Required. The full resource name of the bucket to update.
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For
* example:"projects/my-project/locations/global/buckets/my-bucket"
* @param LogBucket $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Field mask that specifies the fields
* in bucket that need an update. A bucket field will be overwritten if, and
* only if, it is in the update mask. name and output only fields cannot be
* updated.For a detailed FieldMask definition, see:
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example:
* updateMask=retention_days
* @return LogBucket
* @throws \Google\Service\Exception
*/
public function patch($name, LogBucket $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], LogBucket::class);
}
/**
* Undeletes a log bucket. A bucket that has been deleted can be undeleted
* within the grace period of 7 days. (buckets.undelete)
*
* @param string $name Required. The full resource name of the bucket to
* undelete. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For
* example:"projects/my-project/locations/global/buckets/my-bucket"
* @param UndeleteBucketRequest $postBody
* @param array $optParams Optional parameters.
* @return LoggingEmpty
* @throws \Google\Service\Exception
*/
public function undelete($name, UndeleteBucketRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('undelete', [$params], LoggingEmpty::class);
}
/**
* Updates a log bucket asynchronously.If the bucket has a lifecycle_state of
* DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket
* has been created, the bucket's location cannot be changed.
* (buckets.updateAsync)
*
* @param string $name Required. The full resource name of the bucket to update.
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For
* example:"projects/my-project/locations/global/buckets/my-bucket"
* @param LogBucket $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Field mask that specifies the fields
* in bucket that need an update. A bucket field will be overwritten if, and
* only if, it is in the update mask. name and output only fields cannot be
* updated.For a detailed FieldMask definition, see:
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example:
* updateMask=retention_days
* @return Operation
* @throws \Google\Service\Exception
*/
public function updateAsync($name, LogBucket $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateAsync', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersLocationsBuckets::class, 'Google_Service_Logging_Resource_FoldersLocationsBuckets');

View File

@@ -0,0 +1,126 @@
<?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\Logging\Resource;
use Google\Service\Logging\Link;
use Google\Service\Logging\ListLinksResponse;
use Google\Service\Logging\Operation;
/**
* The "links" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $links = $loggingService->folders_locations_buckets_links;
* </code>
*/
class FoldersLocationsBucketsLinks extends \Google\Service\Resource
{
/**
* Asynchronously creates a linked dataset in BigQuery which makes it possible
* to use BigQuery to read the logs stored in the log bucket. A log bucket may
* currently only contain one link. (links.create)
*
* @param string $parent Required. The full resource name of the bucket to
* create a link for.
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* @param Link $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string linkId Required. The ID to use for the link. The link_id
* can have up to 100 characters. A valid link_id must only have alphanumeric
* characters and underscores within it.
* @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);
}
/**
* Deletes a link. This will also delete the corresponding BigQuery linked
* dataset. (links.delete)
*
* @param string $name Required. The full resource name of the link to delete. "
* projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK
* _ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKE
* T_ID]/links/[LINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCAT
* ION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[
* LOCATION_ID]/buckets/[BUCKET_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);
}
/**
* Gets a link. (links.get)
*
* @param string $name Required. The resource name of the link: "projects/[PROJE
* CT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organiza
* tions/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LI
* NK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets
* /[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/bu
* ckets/[BUCKET_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);
}
/**
* Lists links. (links.listFoldersLocationsBucketsLinks)
*
* @param string $parent Required. The parent resource whose links are to be
* listed: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request.
* @opt_param string pageToken Optional. If present, then retrieve the next
* batch of results from the preceding call to this method. pageToken must be
* the value of nextPageToken from the previous response.
* @return ListLinksResponse
* @throws \Google\Service\Exception
*/
public function listFoldersLocationsBucketsLinks($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLinksResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersLocationsBucketsLinks::class, 'Google_Service_Logging_Resource_FoldersLocationsBucketsLinks');

View File

@@ -0,0 +1,213 @@
<?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\Logging\Resource;
use Google\Service\Logging\GetIamPolicyRequest;
use Google\Service\Logging\ListViewsResponse;
use Google\Service\Logging\LogView;
use Google\Service\Logging\LoggingEmpty;
use Google\Service\Logging\Policy;
use Google\Service\Logging\SetIamPolicyRequest;
use Google\Service\Logging\TestIamPermissionsRequest;
use Google\Service\Logging\TestIamPermissionsResponse;
/**
* The "views" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $views = $loggingService->folders_locations_buckets_views;
* </code>
*/
class FoldersLocationsBucketsViews extends \Google\Service\Resource
{
/**
* Creates a view over log entries in a log bucket. A bucket may contain a
* maximum of 30 views. (views.create)
*
* @param string $parent Required. The bucket in which to create the view
* `"projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"` For
* example:"projects/my-project/locations/global/buckets/my-bucket"
* @param LogView $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string viewId Required. A client-assigned identifier such as "my-
* view". Identifiers are limited to 100 characters and can include only
* letters, digits, underscores, hyphens, and periods.
* @return LogView
* @throws \Google\Service\Exception
*/
public function create($parent, LogView $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], LogView::class);
}
/**
* Deletes a view on a log bucket. If an UNAVAILABLE error is returned, this
* indicates that system is not in a state where it can delete the view. If this
* occurs, please try again in a few minutes. (views.delete)
*
* @param string $name Required. The full resource name of the view to delete: "
* projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW
* _ID]" For example:"projects/my-project/locations/global/buckets/my-
* bucket/views/my-view"
* @param array $optParams Optional parameters.
* @return LoggingEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], LoggingEmpty::class);
}
/**
* Gets a view on a log bucket. (views.get)
*
* @param string $name Required. The resource name of the policy: "projects/[PRO
* JECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]" For
* example:"projects/my-project/locations/global/buckets/my-bucket/views/my-
* view"
* @param array $optParams Optional parameters.
* @return LogView
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], LogView::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (views.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See Resource names
* (https://cloud.google.com/apis/design/resource_names) for the appropriate
* value for this field.
* @param GetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, GetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists views on a log bucket. (views.listFoldersLocationsBucketsViews)
*
* @param string $parent Required. The bucket whose views are to be listed:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request.Non-positive values are ignored. The presence of
* nextPageToken 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. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return ListViewsResponse
* @throws \Google\Service\Exception
*/
public function listFoldersLocationsBucketsViews($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListViewsResponse::class);
}
/**
* Updates a view on a log bucket. This method replaces the value of the filter
* field from the existing view with the corresponding value from the new view.
* If an UNAVAILABLE error is returned, this indicates that system is not in a
* state where it can update the view. If this occurs, please try again in a few
* minutes. (views.patch)
*
* @param string $name Required. The full resource name of the view to update "p
* rojects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_
* ID]" For example:"projects/my-project/locations/global/buckets/my-
* bucket/views/my-view"
* @param LogView $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask that specifies the fields
* in view that need an update. A field will be overwritten if, and only if, it
* is in the update mask. name and output only fields cannot be updated.For a
* detailed FieldMask definition, see https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example:
* updateMask=filter
* @return LogView
* @throws \Google\Service\Exception
*/
public function patch($name, LogView $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], LogView::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy.Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED
* errors. (views.setIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* specified. See Resource names
* (https://cloud.google.com/apis/design/resource_names) for the appropriate
* value for this field.
* @param SetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function setIamPolicy($resource, SetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('setIamPolicy', [$params], Policy::class);
}
/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of permissions, not a
* NOT_FOUND error.Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization checking.
* This operation may "fail open" without warning. (views.testIamPermissions)
*
* @param string $resource REQUIRED: The resource for which the policy detail is
* being requested. See Resource names
* (https://cloud.google.com/apis/design/resource_names) for the appropriate
* value for this field.
* @param TestIamPermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return TestIamPermissionsResponse
* @throws \Google\Service\Exception
*/
public function testIamPermissions($resource, TestIamPermissionsRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('testIamPermissions', [$params], TestIamPermissionsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersLocationsBucketsViews::class, 'Google_Service_Logging_Resource_FoldersLocationsBucketsViews');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging\Resource;
use Google\Service\Logging\ListLogsResponse;
/**
* The "logs" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $logs = $loggingService->folders_locations_buckets_views_logs;
* </code>
*/
class FoldersLocationsBucketsViewsLogs extends \Google\Service\Resource
{
/**
* Lists the logs in projects, organizations, folders, or billing accounts. Only
* logs that have entries are listed.
* (logs.listFoldersLocationsBucketsViewsLogs)
*
* @param string $parent Required. The resource name to list logs for:
* projects/[PROJECT_ID] organizations/[ORGANIZATION_ID]
* billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* nextPageToken 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. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @opt_param string resourceNames Optional. List of resource names to list logs
* for: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/
* [VIEW_ID] organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BU
* CKET_ID]/views/[VIEW_ID] billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCA
* TION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] folders/[FOLDER_ID]/locations/[L
* OCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]To support legacy queries, it
* could also be: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID]
* billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]The resource name in
* the parent field is added to this list.
* @return ListLogsResponse
* @throws \Google\Service\Exception
*/
public function listFoldersLocationsBucketsViewsLogs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLogsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersLocationsBucketsViewsLogs::class, 'Google_Service_Logging_Resource_FoldersLocationsBucketsViewsLogs');

View File

@@ -0,0 +1,139 @@
<?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\Logging\Resource;
use Google\Service\Logging\ListLogScopesResponse;
use Google\Service\Logging\LogScope;
use Google\Service\Logging\LoggingEmpty;
/**
* The "logScopes" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $logScopes = $loggingService->folders_locations_logScopes;
* </code>
*/
class FoldersLocationsLogScopes extends \Google\Service\Resource
{
/**
* Creates a log scope. (logScopes.create)
*
* @param string $parent Required. The parent project in which to create the log
* scope "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For
* example:"projects/my-project/locations/global"
* @param LogScope $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string logScopeId Required. A client-assigned identifier such as
* "log-scope". Identifiers are limited to 100 characters and can include only
* letters, digits, underscores, hyphens, and periods. First character has to be
* alphanumeric.
* @return LogScope
* @throws \Google\Service\Exception
*/
public function create($parent, LogScope $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], LogScope::class);
}
/**
* Deletes a log scope. (logScopes.delete)
*
* @param string $name Required. The resource name of the log scope to delete:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/logScopes/[LOG_SCOPE_ID]" For
* example:"projects/my-project/locations/global/logScopes/my-log-scope"
* @param array $optParams Optional parameters.
* @return LoggingEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], LoggingEmpty::class);
}
/**
* Gets a log scope. (logScopes.get)
*
* @param string $name Required. The resource name of the log scope:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/logScopes/[LOG_SCOPE_ID]" For
* example:"projects/my-project/locations/global/logScopes/my-log-scope"
* @param array $optParams Optional parameters.
* @return LogScope
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], LogScope::class);
}
/**
* Lists log scopes. (logScopes.listFoldersLocationsLogScopes)
*
* @param string $parent Required. The parent resource whose log scopes are to
* be listed: "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request.Non-positive values are ignored. The presence of
* nextPageToken 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. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return ListLogScopesResponse
* @throws \Google\Service\Exception
*/
public function listFoldersLocationsLogScopes($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLogScopesResponse::class);
}
/**
* Updates a log scope. (logScopes.patch)
*
* @param string $name Output only. The resource name of the log scope.Log
* scopes are only available in the global location. For example:projects/my-
* project/locations/global/logScopes/my-log-scope
* @param LogScope $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask that specifies the fields
* in log_scope that need an update. A field will be overwritten if, and only
* if, it is in the update mask. name and output only fields cannot be
* updated.For a detailed FieldMask definition, see
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example:
* updateMask=description
* @return LogScope
* @throws \Google\Service\Exception
*/
public function patch($name, LogScope $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], LogScope::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersLocationsLogScopes::class, 'Google_Service_Logging_Resource_FoldersLocationsLogScopes');

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Logging\Resource;
use Google\Service\Logging\CancelOperationRequest;
use Google\Service\Logging\ListOperationsResponse;
use Google\Service\Logging\LoggingEmpty;
use Google\Service\Logging\Operation;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $operations = $loggingService->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 LoggingEmpty
* @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], LoggingEmpty::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.
* @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_Logging_Resource_FoldersLocationsOperations');

View File

@@ -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\Logging\Resource;
use Google\Service\Logging\ListRecentQueriesResponse;
/**
* The "recentQueries" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $recentQueries = $loggingService->folders_locations_recentQueries;
* </code>
*/
class FoldersLocationsRecentQueries extends \Google\Service\Resource
{
/**
* Lists the RecentQueries that were created by the user making the request.
* (recentQueries.listFoldersLocationsRecentQueries)
*
* @param string $parent Required. The resource to which the listed queries
* belong. "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example:projects/my-
* project/locations/us-central1Note: The location portion of the resource must
* be specified, but supplying the character - in place of LOCATION_ID will
* return all recent queries.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Specifies the type ("Logging" or
* "OpsAnalytics") of the recent queries to list. The only valid value for this
* field is one of the two allowable type function calls, which are the
* following: type("Logging") type("OpsAnalytics")
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* nextPageToken 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. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return ListRecentQueriesResponse
* @throws \Google\Service\Exception
*/
public function listFoldersLocationsRecentQueries($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRecentQueriesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersLocationsRecentQueries::class, 'Google_Service_Logging_Resource_FoldersLocationsRecentQueries');

View File

@@ -0,0 +1,177 @@
<?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\Logging\Resource;
use Google\Service\Logging\ListSavedQueriesResponse;
use Google\Service\Logging\LoggingEmpty;
use Google\Service\Logging\SavedQuery;
/**
* The "savedQueries" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $savedQueries = $loggingService->folders_locations_savedQueries;
* </code>
*/
class FoldersLocationsSavedQueries extends \Google\Service\Resource
{
/**
* Creates a new SavedQuery for the user making the request.
* (savedQueries.create)
*
* @param string $parent Required. The parent resource in which to create the
* saved query: "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-
* project/locations/global" "organizations/123456789/locations/us-central1"
* @param SavedQuery $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string savedQueryId Optional. The ID to use for the saved query,
* which will become the final component of the saved query's resource name.If
* the saved_query_id is not provided, the system will generate an alphanumeric
* ID.The saved_query_id is limited to 100 characters and can include only the
* following characters: upper and lower-case alphanumeric characters,
* underscores, hyphens, periods.First character has to be alphanumeric.
* @return SavedQuery
* @throws \Google\Service\Exception
*/
public function create($parent, SavedQuery $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], SavedQuery::class);
}
/**
* Deletes an existing SavedQuery that was created by the user making the
* request. (savedQueries.delete)
*
* @param string $name Required. The full resource name of the saved query to
* delete.
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "orga
* nizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[Q
* UERY_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For
* example: "projects/my-project/locations/global/savedQueries/my-saved-query"
* @param array $optParams Optional parameters.
* @return LoggingEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], LoggingEmpty::class);
}
/**
* Returns all data associated with the requested query. (savedQueries.get)
*
* @param string $name Required. The resource name of the saved query.
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" "orga
* nizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/savedQueries/[Q
* UERY_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For
* example: "projects/my-project/locations/global/savedQueries/my-saved-query"
* @param array $optParams Optional parameters.
* @return SavedQuery
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], SavedQuery::class);
}
/**
* Lists the SavedQueries that were created by the user making the request.
* (savedQueries.listFoldersLocationsSavedQueries)
*
* @param string $parent Required. The resource to which the listed queries
* belong. "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]" For example: "projects/my-
* project/locations/us-central1" Note: The locations portion of the resource
* must be specified. To get a list of all saved queries, a wildcard character -
* can be used for LOCATION_ID, for example: "projects/my-project/locations/-"
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Specifies the type ("Logging" or
* "OpsAnalytics") and the visibility (PRIVATE or SHARED) of the saved queries
* to list. If provided, the filter must contain either the type function or a
* visibility token, or both. If both are chosen, they can be placed in any
* order, but they must be joined by the AND operator or the empty character.The
* two supported type function calls are: type("Logging")
* type("OpsAnalytics")The two supported visibility tokens are: visibility =
* PRIVATE visibility = SHAREDFor example:type("Logging") AND visibility =
* PRIVATE visibility=SHARED type("OpsAnalytics") type("OpsAnalytics)"
* visibility = PRIVATE visibility = SHARED
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request.Non-positive values are ignored. The presence of
* nextPageToken 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. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return ListSavedQueriesResponse
* @throws \Google\Service\Exception
*/
public function listFoldersLocationsSavedQueries($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSavedQueriesResponse::class);
}
/**
* Updates an existing SavedQuery. (savedQueries.patch)
*
* @param string $name Output only. Resource name of the saved query.In the
* format:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For a
* list of supported locations, see Supported Regions
* (https://cloud.google.com/logging/docs/region-support#bucket-regions)After
* the saved query is created, the location cannot be changed.If the user
* doesn't provide a QUERY_ID, the system will generate an alphanumeric ID.
* @param SavedQuery $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. A non-empty list of fields to change
* in the existing saved query. Fields are relative to the saved_query and new
* values for the fields are taken from the corresponding fields in the
* SavedQuery included in this request. Fields not mentioned in update_mask are
* not changed and are ignored in the request.To update all mutable fields,
* specify an update_mask of *.For example, to change the description and query
* filter text of a saved query, specify an update_mask of "description,
* query.filter".
* @return SavedQuery
* @throws \Google\Service\Exception
*/
public function patch($name, SavedQuery $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], SavedQuery::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersLocationsSavedQueries::class, 'Google_Service_Logging_Resource_FoldersLocationsSavedQueries');

View File

@@ -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\Logging\Resource;
use Google\Service\Logging\ListLogsResponse;
use Google\Service\Logging\LoggingEmpty;
/**
* The "logs" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $logs = $loggingService->folders_logs;
* </code>
*/
class FoldersLogs extends \Google\Service\Resource
{
/**
* Deletes all the log entries in a log for the _Default Log Bucket. The log
* reappears if it receives new entries. Log entries written shortly before the
* delete operation might not be deleted. Entries received after the delete
* operation with a timestamp before the operation will be deleted.
* (logs.delete)
*
* @param string $logName Required. The resource name of the log to delete:
* projects/[PROJECT_ID]/logs/[LOG_ID]
* organizations/[ORGANIZATION_ID]/logs/[LOG_ID]
* billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]
* folders/[FOLDER_ID]/logs/[LOG_ID][LOG_ID] must be URL-encoded. For example,
* "projects/my-project-id/logs/syslog",
* "organizations/123/logs/cloudaudit.googleapis.com%2Factivity".For more
* information about log names, see LogEntry.
* @param array $optParams Optional parameters.
* @return LoggingEmpty
* @throws \Google\Service\Exception
*/
public function delete($logName, $optParams = [])
{
$params = ['logName' => $logName];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], LoggingEmpty::class);
}
/**
* Lists the logs in projects, organizations, folders, or billing accounts. Only
* logs that have entries are listed. (logs.listFoldersLogs)
*
* @param string $parent Required. The resource name to list logs for:
* projects/[PROJECT_ID] organizations/[ORGANIZATION_ID]
* billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* nextPageToken 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. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @opt_param string resourceNames Optional. List of resource names to list logs
* for: projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/
* [VIEW_ID] organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BU
* CKET_ID]/views/[VIEW_ID] billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCA
* TION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID] folders/[FOLDER_ID]/locations/[L
* OCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]To support legacy queries, it
* could also be: projects/[PROJECT_ID] organizations/[ORGANIZATION_ID]
* billingAccounts/[BILLING_ACCOUNT_ID] folders/[FOLDER_ID]The resource name in
* the parent field is added to this list.
* @return ListLogsResponse
* @throws \Google\Service\Exception
*/
public function listFoldersLogs($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLogsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersLogs::class, 'Google_Service_Logging_Resource_FoldersLogs');

View File

@@ -0,0 +1,249 @@
<?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\Logging\Resource;
use Google\Service\Logging\ListSinksResponse;
use Google\Service\Logging\LogSink;
use Google\Service\Logging\LoggingEmpty;
/**
* The "sinks" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $sinks = $loggingService->folders_sinks;
* </code>
*/
class FoldersSinks extends \Google\Service\Resource
{
/**
* Creates a sink that exports specified log entries to a destination. The
* export begins upon ingress, unless the sink's writer_identity is not
* permitted to write to the destination. A sink can export log entries only
* from the resource owning the sink. (sinks.create)
*
* @param string $parent Required. The resource in which to create the sink:
* "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" For
* examples:"projects/my-project" "organizations/123456789"
* @param LogSink $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string customWriterIdentity Optional. The service account provided
* by the caller that will be used to write the log entries. The format must be
* serviceAccount:some@email. This field can only be specified when you are
* routing logs to a log bucket that is in a different project than the sink.
* When not specified, a Logging service account will automatically be
* generated.
* @opt_param bool uniqueWriterIdentity Optional. Determines the kind of IAM
* identity returned as writer_identity in the new sink. If this value is
* omitted or set to false, and if the sink's parent is a project, then the
* value returned as writer_identity is the same group or service account used
* by Cloud Logging before the addition of writer identities to this API. The
* sink's destination must be in the same project as the sink itself.If this
* field is set to true, or if the sink is owned by a non-project resource such
* as an organization, then the value of writer_identity will be a service agent
* (https://cloud.google.com/iam/docs/service-account-types#service-agents) used
* by the sinks with the same parent. For more information, see writer_identity
* in LogSink.
* @return LogSink
* @throws \Google\Service\Exception
*/
public function create($parent, LogSink $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], LogSink::class);
}
/**
* Deletes a sink. If the sink has a unique writer_identity, then that service
* account is also deleted. (sinks.delete)
*
* @param string $sinkName Required. The full resource name of the sink to
* delete, including the parent resource and the sink identifier:
* "projects/[PROJECT_ID]/sinks/[SINK_ID]"
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]" For example:"projects/my-
* project/sinks/my-sink"
* @param array $optParams Optional parameters.
* @return LoggingEmpty
* @throws \Google\Service\Exception
*/
public function delete($sinkName, $optParams = [])
{
$params = ['sinkName' => $sinkName];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], LoggingEmpty::class);
}
/**
* Gets a sink. (sinks.get)
*
* @param string $sinkName Required. The resource name of the sink:
* "projects/[PROJECT_ID]/sinks/[SINK_ID]"
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]" For example:"projects/my-
* project/sinks/my-sink"
* @param array $optParams Optional parameters.
* @return LogSink
* @throws \Google\Service\Exception
*/
public function get($sinkName, $optParams = [])
{
$params = ['sinkName' => $sinkName];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], LogSink::class);
}
/**
* Lists sinks. (sinks.listFoldersSinks)
*
* @param string $parent Required. The parent resource whose sinks are to be
* listed: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]"
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. A filter expression to constrain the sinks
* returned. Today, this only supports the following strings: ''
* 'in_scope("ALL")', 'in_scope("ANCESTOR")', 'in_scope("DEFAULT")'.Description
* of scopes below. ALL: Includes all of the sinks which can be returned in any
* other scope. ANCESTOR: Includes intercepting sinks owned by ancestor
* resources. DEFAULT: Includes sinks owned by parent.When the empty string is
* provided, then the filter 'in_scope("DEFAULT")' is applied.
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. The presence of
* nextPageToken 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. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return ListSinksResponse
* @throws \Google\Service\Exception
*/
public function listFoldersSinks($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListSinksResponse::class);
}
/**
* Updates a sink. This method replaces the values of the destination and filter
* fields of the existing sink with the corresponding values from the new
* sink.The updated sink might also have a new writer_identity; see the
* unique_writer_identity field. (sinks.patch)
*
* @param string $sinkName Required. The full resource name of the sink to
* update, including the parent resource and the sink identifier:
* "projects/[PROJECT_ID]/sinks/[SINK_ID]"
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]" For example:"projects/my-
* project/sinks/my-sink"
* @param LogSink $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string customWriterIdentity Optional. The service account provided
* by the caller that will be used to write the log entries. The format must be
* serviceAccount:some@email. This field can only be specified when you are
* routing logs to a log bucket that is in a different project than the sink.
* When not specified, a Logging service account will automatically be
* generated.
* @opt_param bool uniqueWriterIdentity Optional. See sinks.create for a
* description of this field. When updating a sink, the effect of this field on
* the value of writer_identity in the updated sink depends on both the old and
* new values of this field: If the old and new values of this field are both
* false or both true, then there is no change to the sink's writer_identity. If
* the old value is false and the new value is true, then writer_identity is
* changed to a service agent (https://cloud.google.com/iam/docs/service-
* account-types#service-agents) owned by Cloud Logging. It is an error if the
* old value is true and the new value is set to false or defaulted to false.
* @opt_param string updateMask Optional. Field mask that specifies the fields
* in sink that need an update. A sink field will be overwritten if, and only
* if, it is in the update mask. name and output only fields cannot be
* updated.An empty updateMask is temporarily treated as using the following
* mask for backwards compatibility
* purposes:destination,filter,includeChildrenAt some point in the future,
* behavior will be removed and specifying an empty updateMask will be an
* error.For a detailed FieldMask definition, see
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example:
* updateMask=filter
* @return LogSink
* @throws \Google\Service\Exception
*/
public function patch($sinkName, LogSink $postBody, $optParams = [])
{
$params = ['sinkName' => $sinkName, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], LogSink::class);
}
/**
* Updates a sink. This method replaces the values of the destination and filter
* fields of the existing sink with the corresponding values from the new
* sink.The updated sink might also have a new writer_identity; see the
* unique_writer_identity field. (sinks.update)
*
* @param string $sinkName Required. The full resource name of the sink to
* update, including the parent resource and the sink identifier:
* "projects/[PROJECT_ID]/sinks/[SINK_ID]"
* "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
* "folders/[FOLDER_ID]/sinks/[SINK_ID]" For example:"projects/my-
* project/sinks/my-sink"
* @param LogSink $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string customWriterIdentity Optional. The service account provided
* by the caller that will be used to write the log entries. The format must be
* serviceAccount:some@email. This field can only be specified when you are
* routing logs to a log bucket that is in a different project than the sink.
* When not specified, a Logging service account will automatically be
* generated.
* @opt_param bool uniqueWriterIdentity Optional. See sinks.create for a
* description of this field. When updating a sink, the effect of this field on
* the value of writer_identity in the updated sink depends on both the old and
* new values of this field: If the old and new values of this field are both
* false or both true, then there is no change to the sink's writer_identity. If
* the old value is false and the new value is true, then writer_identity is
* changed to a service agent (https://cloud.google.com/iam/docs/service-
* account-types#service-agents) owned by Cloud Logging. It is an error if the
* old value is true and the new value is set to false or defaulted to false.
* @opt_param string updateMask Optional. Field mask that specifies the fields
* in sink that need an update. A sink field will be overwritten if, and only
* if, it is in the update mask. name and output only fields cannot be
* updated.An empty updateMask is temporarily treated as using the following
* mask for backwards compatibility
* purposes:destination,filter,includeChildrenAt some point in the future,
* behavior will be removed and specifying an empty updateMask will be an
* error.For a detailed FieldMask definition, see
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example:
* updateMask=filter
* @return LogSink
* @throws \Google\Service\Exception
*/
public function update($sinkName, LogSink $postBody, $optParams = [])
{
$params = ['sinkName' => $sinkName, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], LogSink::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersSinks::class, 'Google_Service_Logging_Resource_FoldersSinks');

View File

@@ -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\Logging\Resource;
use Google\Service\Logging\ListLocationsResponse;
use Google\Service\Logging\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $locations = $loggingService->locations;
* </code>
*/
class Locations 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);
}
/**
* Lists information about the supported locations for this service.
* (locations.listLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @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 listLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Locations::class, 'Google_Service_Logging_Resource_Locations');

View File

@@ -0,0 +1,236 @@
<?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\Logging\Resource;
use Google\Service\Logging\ListBucketsResponse;
use Google\Service\Logging\LogBucket;
use Google\Service\Logging\LoggingEmpty;
use Google\Service\Logging\Operation;
use Google\Service\Logging\UndeleteBucketRequest;
/**
* The "buckets" collection of methods.
* Typical usage is:
* <code>
* $loggingService = new Google\Service\Logging(...);
* $buckets = $loggingService->locations_buckets;
* </code>
*/
class LocationsBuckets extends \Google\Service\Resource
{
/**
* Creates a log bucket that can be used to store log entries. After a bucket
* has been created, the bucket's location cannot be changed. (buckets.create)
*
* @param string $parent Required. The resource in which to create the log
* bucket: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For
* example:"projects/my-project/locations/global"
* @param LogBucket $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string bucketId Required. A client-assigned identifier such as
* "my-bucket". Identifiers are limited to 100 characters and can include only
* letters, digits, underscores, hyphens, and periods. Bucket identifiers must
* start with an alphanumeric character.
* @return LogBucket
* @throws \Google\Service\Exception
*/
public function create($parent, LogBucket $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], LogBucket::class);
}
/**
* Creates a log bucket asynchronously that can be used to store log
* entries.After a bucket has been created, the bucket's location cannot be
* changed. (buckets.createAsync)
*
* @param string $parent Required. The resource in which to create the log
* bucket: "projects/[PROJECT_ID]/locations/[LOCATION_ID]" For
* example:"projects/my-project/locations/global"
* @param LogBucket $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string bucketId Required. A client-assigned identifier such as
* "my-bucket". Identifiers are limited to 100 characters and can include only
* letters, digits, underscores, hyphens, and periods. Bucket identifiers must
* start with an alphanumeric character.
* @return Operation
* @throws \Google\Service\Exception
*/
public function createAsync($parent, LogBucket $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('createAsync', [$params], Operation::class);
}
/**
* Deletes a log bucket.Changes the bucket's lifecycle_state to the
* DELETE_REQUESTED state. After 7 days, the bucket will be purged and all log
* entries in the bucket will be permanently deleted. (buckets.delete)
*
* @param string $name Required. The full resource name of the bucket to delete.
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For
* example:"projects/my-project/locations/global/buckets/my-bucket"
* @param array $optParams Optional parameters.
* @return LoggingEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], LoggingEmpty::class);
}
/**
* Gets a log bucket. (buckets.get)
*
* @param string $name Required. The resource name of the bucket:
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For
* example:"projects/my-project/locations/global/buckets/my-bucket"
* @param array $optParams Optional parameters.
* @return LogBucket
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], LogBucket::class);
}
/**
* Lists log buckets. (buckets.listLocationsBuckets)
*
* @param string $parent Required. The parent resource whose buckets are to be
* listed: "projects/[PROJECT_ID]/locations/[LOCATION_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]"
* "folders/[FOLDER_ID]/locations/[LOCATION_ID]" Note: The locations portion of
* the resource must be specified, but supplying the character - in place of
* LOCATION_ID will return all buckets.
* @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
* nextPageToken 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. pageToken must be
* the value of nextPageToken from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return ListBucketsResponse
* @throws \Google\Service\Exception
*/
public function listLocationsBuckets($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBucketsResponse::class);
}
/**
* Updates a log bucket.If the bucket has a lifecycle_state of DELETE_REQUESTED,
* then FAILED_PRECONDITION will be returned.After a bucket has been created,
* the bucket's location cannot be changed. (buckets.patch)
*
* @param string $name Required. The full resource name of the bucket to update.
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For
* example:"projects/my-project/locations/global/buckets/my-bucket"
* @param LogBucket $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Field mask that specifies the fields
* in bucket that need an update. A bucket field will be overwritten if, and
* only if, it is in the update mask. name and output only fields cannot be
* updated.For a detailed FieldMask definition, see:
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example:
* updateMask=retention_days
* @return LogBucket
* @throws \Google\Service\Exception
*/
public function patch($name, LogBucket $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], LogBucket::class);
}
/**
* Undeletes a log bucket. A bucket that has been deleted can be undeleted
* within the grace period of 7 days. (buckets.undelete)
*
* @param string $name Required. The full resource name of the bucket to
* undelete. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For
* example:"projects/my-project/locations/global/buckets/my-bucket"
* @param UndeleteBucketRequest $postBody
* @param array $optParams Optional parameters.
* @return LoggingEmpty
* @throws \Google\Service\Exception
*/
public function undelete($name, UndeleteBucketRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('undelete', [$params], LoggingEmpty::class);
}
/**
* Updates a log bucket asynchronously.If the bucket has a lifecycle_state of
* DELETE_REQUESTED, then FAILED_PRECONDITION will be returned.After a bucket
* has been created, the bucket's location cannot be changed.
* (buckets.updateAsync)
*
* @param string $name Required. The full resource name of the bucket to update.
* "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]"
* "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET
* _ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]" For
* example:"projects/my-project/locations/global/buckets/my-bucket"
* @param LogBucket $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Field mask that specifies the fields
* in bucket that need an update. A bucket field will be overwritten if, and
* only if, it is in the update mask. name and output only fields cannot be
* updated.For a detailed FieldMask definition, see:
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskFor example:
* updateMask=retention_days
* @return Operation
* @throws \Google\Service\Exception
*/
public function updateAsync($name, LogBucket $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateAsync', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationsBuckets::class, 'Google_Service_Logging_Resource_LocationsBuckets');

Some files were not shown because too many files have changed in this diff Show More