gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,71 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class AuditConfig extends \Google\Collection
{
protected $collection_key = 'auditLogConfigs';
protected $auditLogConfigsType = AuditLogConfig::class;
protected $auditLogConfigsDataType = 'array';
/**
* Specifies a service that will be enabled for audit logging. For example,
* `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
* special value that covers all services.
*
* @var string
*/
public $service;
/**
* The configuration for logging of each type of permission.
*
* @param AuditLogConfig[] $auditLogConfigs
*/
public function setAuditLogConfigs($auditLogConfigs)
{
$this->auditLogConfigs = $auditLogConfigs;
}
/**
* @return AuditLogConfig[]
*/
public function getAuditLogConfigs()
{
return $this->auditLogConfigs;
}
/**
* Specifies a service that will be enabled for audit logging. For example,
* `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a
* special value that covers all services.
*
* @param string $service
*/
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_SecureSourceManager_AuditConfig');
@@ -0,0 +1,91 @@
<?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\SecureSourceManager;
class AuditLogConfig extends \Google\Collection
{
/**
* Default case. Should never be this.
*/
public const LOG_TYPE_LOG_TYPE_UNSPECIFIED = 'LOG_TYPE_UNSPECIFIED';
/**
* Admin reads. Example: CloudIAM getIamPolicy
*/
public const LOG_TYPE_ADMIN_READ = 'ADMIN_READ';
/**
* Data writes. Example: CloudSQL Users create
*/
public const LOG_TYPE_DATA_WRITE = 'DATA_WRITE';
/**
* Data reads. Example: CloudSQL Users list
*/
public const LOG_TYPE_DATA_READ = 'DATA_READ';
protected $collection_key = 'exemptedMembers';
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @var string[]
*/
public $exemptedMembers;
/**
* The log type that this config enables.
*
* @var string
*/
public $logType;
/**
* Specifies the identities that do not cause logging for this type of
* permission. Follows the same format of Binding.members.
*
* @param string[] $exemptedMembers
*/
public function setExemptedMembers($exemptedMembers)
{
$this->exemptedMembers = $exemptedMembers;
}
/**
* @return string[]
*/
public function getExemptedMembers()
{
return $this->exemptedMembers;
}
/**
* The log type that this config enables.
*
* Accepted values: LOG_TYPE_UNSPECIFIED, ADMIN_READ, DATA_WRITE, DATA_READ
*
* @param self::LOG_TYPE_* $logType
*/
public function setLogType($logType)
{
$this->logType = $logType;
}
/**
* @return self::LOG_TYPE_*
*/
public function getLogType()
{
return $this->logType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AuditLogConfig::class, 'Google_Service_SecureSourceManager_AuditLogConfig');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class BatchCreatePullRequestCommentsRequest extends \Google\Collection
{
protected $collection_key = 'requests';
protected $requestsType = CreatePullRequestCommentRequest::class;
protected $requestsDataType = 'array';
/**
* Required. The request message specifying the resources to create. There
* should be exactly one CreatePullRequestCommentRequest with CommentDetail
* being REVIEW in the list, and no more than 100
* CreatePullRequestCommentRequests with CommentDetail being CODE in the list
*
* @param CreatePullRequestCommentRequest[] $requests
*/
public function setRequests($requests)
{
$this->requests = $requests;
}
/**
* @return CreatePullRequestCommentRequest[]
*/
public function getRequests()
{
return $this->requests;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchCreatePullRequestCommentsRequest::class, 'Google_Service_SecureSourceManager_BatchCreatePullRequestCommentsRequest');
@@ -0,0 +1,216 @@
<?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\SecureSourceManager;
class Binding extends \Google\Collection
{
protected $collection_key = 'members';
protected $conditionType = Expr::class;
protected $conditionDataType = '';
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @var string[]
*/
public $members;
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @var string
*/
public $role;
/**
* The condition that is associated with this binding. If the condition
* evaluates to `true`, then this binding applies to the current request. If
* the condition evaluates to `false`, then this binding does not apply to the
* current request. However, a different role binding might grant the same
* role to one or more of the principals in this binding. To learn which
* resources support conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param Expr $condition
*/
public function setCondition(Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Expr
*/
public function getCondition()
{
return $this->condition;
}
/**
* Specifies the principals requesting access for a Google Cloud resource.
* `members` can have the following values: * `allUsers`: A special identifier
* that represents anyone who is on the internet; with or without a Google
* account. * `allAuthenticatedUsers`: A special identifier that represents
* anyone who is authenticated with a Google account or a service account.
* Does not include identities that come from external identity providers
* (IdPs) through identity federation. * `user:{emailid}`: An email address
* that represents a specific Google account. For example, `alice@example.com`
* . * `serviceAccount:{emailid}`: An email address that represents a Google
* service account. For example, `my-other-app@appspot.gserviceaccount.com`. *
* `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: An
* identifier for a [Kubernetes service
* account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-
* service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-
* kubernetes-sa]`. * `group:{emailid}`: An email address that represents a
* Google group. For example, `admins@example.com`. * `domain:{domain}`: The G
* Suite domain (primary) that represents all the users of that domain. For
* example, `google.com` or `example.com`. * `principal://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}`
* : A single identity in a workforce identity pool. * `principalSet://iam.goo
* gleapis.com/locations/global/workforcePools/{pool_id}/group/{group_id}`:
* All workforce identities in a group. * `principalSet://iam.googleapis.com/l
* ocations/global/workforcePools/{pool_id}/attribute.{attribute_name}/{attrib
* ute_value}`: All workforce identities with a specific attribute value. * `p
* rincipalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id}`
* : All identities in a workforce identity pool. * `principal://iam.googleapi
* s.com/projects/{project_number}/locations/global/workloadIdentityPools/{poo
* l_id}/subject/{subject_attribute_value}`: A single identity in a workload
* identity pool. * `principalSet://iam.googleapis.com/projects/{project_numbe
* r}/locations/global/workloadIdentityPools/{pool_id}/group/{group_id}`: A
* workload identity pool group. * `principalSet://iam.googleapis.com/projects
* /{project_number}/locations/global/workloadIdentityPools/{pool_id}/attribut
* e.{attribute_name}/{attribute_value}`: All identities in a workload
* identity pool with a certain attribute. * `principalSet://iam.googleapis.co
* m/projects/{project_number}/locations/global/workloadIdentityPools/{pool_id
* }`: All identities in a workload identity pool. *
* `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a user that has been recently deleted. For
* example, `alice@example.com?uid=123456789012345678901`. If the user is
* recovered, this value reverts to `user:{emailid}` and the recovered user
* retains the role in the binding. *
* `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
* unique identifier) representing a service account that has been recently
* deleted. For example, `my-other-
* app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service
* account is undeleted, this value reverts to `serviceAccount:{emailid}` and
* the undeleted service account retains the role in the binding. *
* `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
* identifier) representing a Google group that has been recently deleted. For
* example, `admins@example.com?uid=123456789012345678901`. If the group is
* recovered, this value reverts to `group:{emailid}` and the recovered group
* retains the role in the binding. * `deleted:principal://iam.googleapis.com/
* locations/global/workforcePools/{pool_id}/subject/{subject_attribute_value}
* `: Deleted single identity in a workforce identity pool. For example,
* `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-
* pool-id/subject/my-subject-attribute-value`.
*
* @param string[] $members
*/
public function setMembers($members)
{
$this->members = $members;
}
/**
* @return string[]
*/
public function getMembers()
{
return $this->members;
}
/**
* Role that is assigned to the list of `members`, or principals. For example,
* `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the
* IAM roles and permissions, see the [IAM
* documentation](https://cloud.google.com/iam/docs/roles-overview). For a
* list of the available pre-defined roles, see
* [here](https://cloud.google.com/iam/docs/understanding-roles).
*
* @param string $role
*/
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_SecureSourceManager_Binding');
@@ -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\SecureSourceManager;
class Branch extends \Google\Model
{
/**
* Required. Name of the branch.
*
* @var string
*/
public $ref;
/**
* Output only. The commit at the tip of the branch.
*
* @var string
*/
public $sha;
/**
* Required. Name of the branch.
*
* @param string $ref
*/
public function setRef($ref)
{
$this->ref = $ref;
}
/**
* @return string
*/
public function getRef()
{
return $this->ref;
}
/**
* Output only. The commit at the tip of the branch.
*
* @param string $sha
*/
public function setSha($sha)
{
$this->sha = $sha;
}
/**
* @return string
*/
public function getSha()
{
return $this->sha;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Branch::class, 'Google_Service_SecureSourceManager_Branch');
@@ -0,0 +1,379 @@
<?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\SecureSourceManager;
class BranchRule extends \Google\Collection
{
protected $collection_key = 'requiredStatusChecks';
/**
* Optional. Determines if allow stale reviews or approvals before merging to
* the branch.
*
* @var bool
*/
public $allowStaleReviews;
/**
* Optional. User annotations. These attributes can only be set and used by
* the user. See https://google.aip.dev/128#annotations for more details such
* as format and size limitations.
*
* @var string[]
*/
public $annotations;
/**
* Output only. Create timestamp.
*
* @var string
*/
public $createTime;
/**
* Optional. Determines if the branch rule is disabled or not.
*
* @var bool
*/
public $disabled;
/**
* Optional. This checksum is computed by the server based on the value of
* other fields, and may be sent on update and delete requests to ensure the
* client has an up-to-date value before proceeding.
*
* @var string
*/
public $etag;
/**
* Optional. The pattern of the branch that can match to this BranchRule.
* Specified as regex. .* for all branches. Examples: main, (main|release.*).
* Current MVP phase only support `.*` for wildcard.
*
* @var string
*/
public $includePattern;
/**
* Optional. The minimum number of approvals required for the branch rule to
* be matched.
*
* @var int
*/
public $minimumApprovalsCount;
/**
* Optional. The minimum number of reviews required for the branch rule to be
* matched.
*
* @var int
*/
public $minimumReviewsCount;
/**
* Optional. A unique identifier for a BranchRule. The name should be of the
* format: `projects/{project}/locations/{location}/repositories/{repository}/
* branchRules/{branch_rule}`
*
* @var string
*/
public $name;
/**
* Optional. Determines if require comments resolved before merging to the
* branch.
*
* @var bool
*/
public $requireCommentsResolved;
/**
* Optional. Determines if require linear history before merging to the
* branch.
*
* @var bool
*/
public $requireLinearHistory;
/**
* Optional. Determines if the branch rule requires a pull request or not.
*
* @var bool
*/
public $requirePullRequest;
protected $requiredStatusChecksType = Check::class;
protected $requiredStatusChecksDataType = 'array';
/**
* Output only. Unique identifier of the repository.
*
* @var string
*/
public $uid;
/**
* Output only. Update timestamp.
*
* @var string
*/
public $updateTime;
/**
* Optional. Determines if allow stale reviews or approvals before merging to
* the branch.
*
* @param bool $allowStaleReviews
*/
public function setAllowStaleReviews($allowStaleReviews)
{
$this->allowStaleReviews = $allowStaleReviews;
}
/**
* @return bool
*/
public function getAllowStaleReviews()
{
return $this->allowStaleReviews;
}
/**
* Optional. User annotations. These attributes can only be set and used by
* the user. See https://google.aip.dev/128#annotations for more details such
* as format and size limitations.
*
* @param string[] $annotations
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* Output only. Create timestamp.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. Determines if the branch rule is disabled or not.
*
* @param bool $disabled
*/
public function setDisabled($disabled)
{
$this->disabled = $disabled;
}
/**
* @return bool
*/
public function getDisabled()
{
return $this->disabled;
}
/**
* Optional. This checksum is computed by the server based on the value of
* other fields, and may be sent on update and delete requests to ensure the
* client has an up-to-date value before proceeding.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Optional. The pattern of the branch that can match to this BranchRule.
* Specified as regex. .* for all branches. Examples: main, (main|release.*).
* Current MVP phase only support `.*` for wildcard.
*
* @param string $includePattern
*/
public function setIncludePattern($includePattern)
{
$this->includePattern = $includePattern;
}
/**
* @return string
*/
public function getIncludePattern()
{
return $this->includePattern;
}
/**
* Optional. The minimum number of approvals required for the branch rule to
* be matched.
*
* @param int $minimumApprovalsCount
*/
public function setMinimumApprovalsCount($minimumApprovalsCount)
{
$this->minimumApprovalsCount = $minimumApprovalsCount;
}
/**
* @return int
*/
public function getMinimumApprovalsCount()
{
return $this->minimumApprovalsCount;
}
/**
* Optional. The minimum number of reviews required for the branch rule to be
* matched.
*
* @param int $minimumReviewsCount
*/
public function setMinimumReviewsCount($minimumReviewsCount)
{
$this->minimumReviewsCount = $minimumReviewsCount;
}
/**
* @return int
*/
public function getMinimumReviewsCount()
{
return $this->minimumReviewsCount;
}
/**
* Optional. A unique identifier for a BranchRule. The name should be of the
* format: `projects/{project}/locations/{location}/repositories/{repository}/
* branchRules/{branch_rule}`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. Determines if require comments resolved before merging to the
* branch.
*
* @param bool $requireCommentsResolved
*/
public function setRequireCommentsResolved($requireCommentsResolved)
{
$this->requireCommentsResolved = $requireCommentsResolved;
}
/**
* @return bool
*/
public function getRequireCommentsResolved()
{
return $this->requireCommentsResolved;
}
/**
* Optional. Determines if require linear history before merging to the
* branch.
*
* @param bool $requireLinearHistory
*/
public function setRequireLinearHistory($requireLinearHistory)
{
$this->requireLinearHistory = $requireLinearHistory;
}
/**
* @return bool
*/
public function getRequireLinearHistory()
{
return $this->requireLinearHistory;
}
/**
* Optional. Determines if the branch rule requires a pull request or not.
*
* @param bool $requirePullRequest
*/
public function setRequirePullRequest($requirePullRequest)
{
$this->requirePullRequest = $requirePullRequest;
}
/**
* @return bool
*/
public function getRequirePullRequest()
{
return $this->requirePullRequest;
}
/**
* Optional. List of required status checks before merging to the branch.
*
* @param Check[] $requiredStatusChecks
*/
public function setRequiredStatusChecks($requiredStatusChecks)
{
$this->requiredStatusChecks = $requiredStatusChecks;
}
/**
* @return Check[]
*/
public function getRequiredStatusChecks()
{
return $this->requiredStatusChecks;
}
/**
* Output only. Unique identifier of the repository.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. Update timestamp.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BranchRule::class, 'Google_Service_SecureSourceManager_BranchRule');
@@ -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\SecureSourceManager;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_SecureSourceManager_CancelOperationRequest');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class Check extends \Google\Model
{
/**
* Required. The context of the check.
*
* @var string
*/
public $context;
/**
* Required. The context of the check.
*
* @param string $context
*/
public function setContext($context)
{
$this->context = $context;
}
/**
* @return string
*/
public function getContext()
{
return $this->context;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Check::class, 'Google_Service_SecureSourceManager_Check');
@@ -0,0 +1,52 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class CloseIssueRequest extends \Google\Model
{
/**
* Optional. The current etag of the issue. If the etag is provided and does
* not match the current etag of the issue, closing will be blocked and an
* ABORTED error will be returned.
*
* @var string
*/
public $etag;
/**
* Optional. The current etag of the issue. If the etag is provided and does
* not match the current etag of the issue, closing will be blocked and an
* ABORTED error will be returned.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloseIssueRequest::class, 'Google_Service_SecureSourceManager_CloseIssueRequest');
@@ -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\SecureSourceManager;
class ClosePullRequestRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClosePullRequestRequest::class, 'Google_Service_SecureSourceManager_ClosePullRequestRequest');
@@ -0,0 +1,158 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class Code extends \Google\Model
{
/**
* Required. The comment body.
*
* @var string
*/
public $body;
/**
* Output only. The effective commit sha this code comment is pointing to.
*
* @var string
*/
public $effectiveCommitSha;
/**
* Output only. The root comment of the conversation, derived from the reply
* field.
*
* @var string
*/
public $effectiveRootComment;
protected $positionType = Position::class;
protected $positionDataType = '';
/**
* Optional. Input only. The PullRequestComment resource name that this
* comment is replying to.
*
* @var string
*/
public $reply;
/**
* Output only. Boolean indicator if the comment is resolved.
*
* @var bool
*/
public $resolved;
/**
* Required. The comment body.
*
* @param string $body
*/
public function setBody($body)
{
$this->body = $body;
}
/**
* @return string
*/
public function getBody()
{
return $this->body;
}
/**
* Output only. The effective commit sha this code comment is pointing to.
*
* @param string $effectiveCommitSha
*/
public function setEffectiveCommitSha($effectiveCommitSha)
{
$this->effectiveCommitSha = $effectiveCommitSha;
}
/**
* @return string
*/
public function getEffectiveCommitSha()
{
return $this->effectiveCommitSha;
}
/**
* Output only. The root comment of the conversation, derived from the reply
* field.
*
* @param string $effectiveRootComment
*/
public function setEffectiveRootComment($effectiveRootComment)
{
$this->effectiveRootComment = $effectiveRootComment;
}
/**
* @return string
*/
public function getEffectiveRootComment()
{
return $this->effectiveRootComment;
}
/**
* Optional. The position of the comment.
*
* @param Position $position
*/
public function setPosition(Position $position)
{
$this->position = $position;
}
/**
* @return Position
*/
public function getPosition()
{
return $this->position;
}
/**
* Optional. Input only. The PullRequestComment resource name that this
* comment is replying to.
*
* @param string $reply
*/
public function setReply($reply)
{
$this->reply = $reply;
}
/**
* @return string
*/
public function getReply()
{
return $this->reply;
}
/**
* Output only. Boolean indicator if the comment is resolved.
*
* @param bool $resolved
*/
public function setResolved($resolved)
{
$this->resolved = $resolved;
}
/**
* @return bool
*/
public function getResolved()
{
return $this->resolved;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Code::class, 'Google_Service_SecureSourceManager_Code');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class Comment extends \Google\Model
{
/**
* Required. The comment body.
*
* @var string
*/
public $body;
/**
* Required. The comment body.
*
* @param string $body
*/
public function setBody($body)
{
$this->body = $body;
}
/**
* @return string
*/
public function getBody()
{
return $this->body;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Comment::class, 'Google_Service_SecureSourceManager_Comment');
@@ -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\SecureSourceManager;
class CreatePullRequestCommentRequest extends \Google\Model
{
/**
* Required. The pull request in which to create the pull request comment.
* Format: `projects/{project_number}/locations/{location_id}/repositories/{re
* pository_id}/pullRequests/{pull_request_id}`
*
* @var string
*/
public $parent;
protected $pullRequestCommentType = PullRequestComment::class;
protected $pullRequestCommentDataType = '';
/**
* Required. The pull request in which to create the pull request comment.
* Format: `projects/{project_number}/locations/{location_id}/repositories/{re
* pository_id}/pullRequests/{pull_request_id}`
*
* @param string $parent
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
/**
* Required. The pull request comment to create.
*
* @param PullRequestComment $pullRequestComment
*/
public function setPullRequestComment(PullRequestComment $pullRequestComment)
{
$this->pullRequestComment = $pullRequestComment;
}
/**
* @return PullRequestComment
*/
public function getPullRequestComment()
{
return $this->pullRequestComment;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreatePullRequestCommentRequest::class, 'Google_Service_SecureSourceManager_CreatePullRequestCommentRequest');
@@ -0,0 +1,122 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class Expr extends \Google\Model
{
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @var string
*/
public $description;
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @var string
*/
public $expression;
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @var string
*/
public $location;
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @var string
*/
public $title;
/**
* Optional. Description of the expression. This is a longer text which
* describes the expression, e.g. when hovered over it in a UI.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Textual representation of an expression in Common Expression Language
* syntax.
*
* @param string $expression
*/
public function setExpression($expression)
{
$this->expression = $expression;
}
/**
* @return string
*/
public function getExpression()
{
return $this->expression;
}
/**
* Optional. String indicating the location of the expression for error
* reporting, e.g. a file name and a position in the file.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Optional. Title for the expression, i.e. a short string describing its
* purpose. This can be used e.g. in UIs which allow to enter the expression.
*
* @param string $title
*/
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_SecureSourceManager_Expr');
@@ -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\SecureSourceManager;
class FetchBlobResponse extends \Google\Model
{
/**
* The content of the blob, encoded as base64.
*
* @var string
*/
public $content;
/**
* The SHA-1 hash of the blob.
*
* @var string
*/
public $sha;
/**
* The content of the blob, encoded as base64.
*
* @param string $content
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* The SHA-1 hash of the blob.
*
* @param string $sha
*/
public function setSha($sha)
{
$this->sha = $sha;
}
/**
* @return string
*/
public function getSha()
{
return $this->sha;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FetchBlobResponse::class, 'Google_Service_SecureSourceManager_FetchBlobResponse');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class FetchTreeResponse extends \Google\Collection
{
protected $collection_key = 'treeEntries';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
protected $treeEntriesType = TreeEntry::class;
protected $treeEntriesDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of TreeEntry objects.
*
* @param TreeEntry[] $treeEntries
*/
public function setTreeEntries($treeEntries)
{
$this->treeEntries = $treeEntries;
}
/**
* @return TreeEntry[]
*/
public function getTreeEntries()
{
return $this->treeEntries;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FetchTreeResponse::class, 'Google_Service_SecureSourceManager_FetchTreeResponse');
@@ -0,0 +1,132 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class FileDiff extends \Google\Model
{
/**
* Unspecified.
*/
public const ACTION_ACTION_UNSPECIFIED = 'ACTION_UNSPECIFIED';
/**
* The file was added.
*/
public const ACTION_ADDED = 'ADDED';
/**
* The file was modified.
*/
public const ACTION_MODIFIED = 'MODIFIED';
/**
* The file was deleted.
*/
public const ACTION_DELETED = 'DELETED';
/**
* Output only. The action taken on the file (eg. added, modified, deleted).
*
* @var string
*/
public $action;
/**
* Output only. The name of the file.
*
* @var string
*/
public $name;
/**
* Output only. The git patch containing the file changes.
*
* @var string
*/
public $patch;
/**
* Output only. The commit pointing to the file changes.
*
* @var string
*/
public $sha;
/**
* Output only. The action taken on the file (eg. added, modified, deleted).
*
* Accepted values: ACTION_UNSPECIFIED, ADDED, MODIFIED, DELETED
*
* @param self::ACTION_* $action
*/
public function setAction($action)
{
$this->action = $action;
}
/**
* @return self::ACTION_*
*/
public function getAction()
{
return $this->action;
}
/**
* Output only. The name of the file.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. The git patch containing the file changes.
*
* @param string $patch
*/
public function setPatch($patch)
{
$this->patch = $patch;
}
/**
* @return string
*/
public function getPatch()
{
return $this->patch;
}
/**
* Output only. The commit pointing to the file changes.
*
* @param string $sha
*/
public function setSha($sha)
{
$this->sha = $sha;
}
/**
* @return string
*/
public function getSha()
{
return $this->sha;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FileDiff::class, 'Google_Service_SecureSourceManager_FileDiff');
@@ -0,0 +1,227 @@
<?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\SecureSourceManager;
class Hook extends \Google\Collection
{
protected $collection_key = 'events';
/**
* Output only. Create timestamp.
*
* @var string
*/
public $createTime;
/**
* Optional. Determines if the hook disabled or not. Set to true to stop
* sending traffic.
*
* @var bool
*/
public $disabled;
/**
* Optional. The events that trigger hook on.
*
* @var string[]
*/
public $events;
/**
* Identifier. A unique identifier for a Hook. The name should be of the
* format: `projects/{project}/locations/{location_id}/repositories/{repositor
* y_id}/hooks/{hook_id}`
*
* @var string
*/
public $name;
protected $pushOptionType = PushOption::class;
protected $pushOptionDataType = '';
/**
* Optional. The sensitive query string to be appended to the target URI.
*
* @var string
*/
public $sensitiveQueryString;
/**
* Required. The target URI to which the payloads will be delivered.
*
* @var string
*/
public $targetUri;
/**
* Output only. Unique identifier of the hook.
*
* @var string
*/
public $uid;
/**
* Output only. Update timestamp.
*
* @var string
*/
public $updateTime;
/**
* Output only. Create timestamp.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. Determines if the hook disabled or not. Set to true to stop
* sending traffic.
*
* @param bool $disabled
*/
public function setDisabled($disabled)
{
$this->disabled = $disabled;
}
/**
* @return bool
*/
public function getDisabled()
{
return $this->disabled;
}
/**
* Optional. The events that trigger hook on.
*
* @param string[] $events
*/
public function setEvents($events)
{
$this->events = $events;
}
/**
* @return string[]
*/
public function getEvents()
{
return $this->events;
}
/**
* Identifier. A unique identifier for a Hook. The name should be of the
* format: `projects/{project}/locations/{location_id}/repositories/{repositor
* y_id}/hooks/{hook_id}`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. The trigger option for push events.
*
* @param PushOption $pushOption
*/
public function setPushOption(PushOption $pushOption)
{
$this->pushOption = $pushOption;
}
/**
* @return PushOption
*/
public function getPushOption()
{
return $this->pushOption;
}
/**
* Optional. The sensitive query string to be appended to the target URI.
*
* @param string $sensitiveQueryString
*/
public function setSensitiveQueryString($sensitiveQueryString)
{
$this->sensitiveQueryString = $sensitiveQueryString;
}
/**
* @return string
*/
public function getSensitiveQueryString()
{
return $this->sensitiveQueryString;
}
/**
* Required. The target URI to which the payloads will be delivered.
*
* @param string $targetUri
*/
public function setTargetUri($targetUri)
{
$this->targetUri = $targetUri;
}
/**
* @return string
*/
public function getTargetUri()
{
return $this->targetUri;
}
/**
* Output only. Unique identifier of the hook.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. Update timestamp.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Hook::class, 'Google_Service_SecureSourceManager_Hook');
@@ -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\SecureSourceManager;
class HostConfig extends \Google\Model
{
/**
* Output only. API hostname.
*
* @var string
*/
public $api;
/**
* Output only. Git HTTP hostname.
*
* @var string
*/
public $gitHttp;
/**
* Output only. Git SSH hostname.
*
* @var string
*/
public $gitSsh;
/**
* Output only. HTML hostname.
*
* @var string
*/
public $html;
/**
* Output only. API hostname.
*
* @param string $api
*/
public function setApi($api)
{
$this->api = $api;
}
/**
* @return string
*/
public function getApi()
{
return $this->api;
}
/**
* Output only. Git HTTP hostname.
*
* @param string $gitHttp
*/
public function setGitHttp($gitHttp)
{
$this->gitHttp = $gitHttp;
}
/**
* @return string
*/
public function getGitHttp()
{
return $this->gitHttp;
}
/**
* Output only. Git SSH hostname.
*
* @param string $gitSsh
*/
public function setGitSsh($gitSsh)
{
$this->gitSsh = $gitSsh;
}
/**
* @return string
*/
public function getGitSsh()
{
return $this->gitSsh;
}
/**
* Output only. HTML hostname.
*
* @param string $html
*/
public function setHtml($html)
{
$this->html = $html;
}
/**
* @return string
*/
public function getHtml()
{
return $this->html;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(HostConfig::class, 'Google_Service_SecureSourceManager_HostConfig');
@@ -0,0 +1,347 @@
<?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\SecureSourceManager;
class InitialConfig extends \Google\Collection
{
protected $collection_key = 'gitignores';
/**
* Default branch name of the repository.
*
* @var string
*/
public $defaultBranch;
/**
* List of gitignore template names user can choose from. Valid values:
* actionscript, ada, agda, android, anjuta, ansible, appcelerator-titanium,
* app-engine, archives, arch-linux-packages, atmel-studio, autotools, backup,
* bazaar, bazel, bitrix, bricx-cc, c, cake-php, calabash, cf-wheels, chef-
* cookbook, clojure, cloud9, c-make, code-igniter, code-kit, code-sniffer,
* common-lisp, composer, concrete5, coq, cordova, cpp, craft-cms, cuda, cvs,
* d, dart, dart-editor, delphi, diff, dm, dreamweaver, dropbox, drupal,
* drupal-7, eagle, eclipse, eiffel-studio, elisp, elixir, elm, emacs, ensime,
* epi-server, erlang, esp-idf, espresso, exercism, expression-engine, ext-js,
* fancy, finale, flex-builder, force-dot-com, fortran, fuel-php, gcov, git-
* book, gnome-shell-extension, go, godot, gpg, gradle, grails, gwt, haskell,
* hugo, iar-ewarm, idris, igor-pro, images, infor-cms, java, jboss, jboss-4,
* jboss-6, jdeveloper, jekyll, jenkins-home, jenv, jet-brains, jigsaw,
* joomla, julia, jupyter-notebooks, kate, kdevelop4, kentico, ki-cad, kohana,
* kotlin, lab-view, laravel, lazarus, leiningen, lemon-stand, libre-office,
* lilypond, linux, lithium, logtalk, lua, lyx, mac-os, magento, magento-1,
* magento-2, matlab, maven, mercurial, mercury, metals, meta-programming-
* system, meteor, microsoft-office, model-sim, momentics, mono-develop,
* nanoc, net-beans, nikola, nim, ninja, node, notepad-pp, nwjs, objective--c,
* ocaml, octave, opa, open-cart, openssl, oracle-forms, otto, packer, patch,
* perl, perl6, phalcon, phoenix, pimcore, play-framework, plone, prestashop,
* processing, psoc-creator, puppet, pure-script, putty, python, qooxdoo, qt,
* r, racket, rails, raku, red, redcar, redis, rhodes-rhomobile, ros, ruby,
* rust, sam, sass, sbt, scala, scheme, scons, scrivener, sdcc, seam-gen,
* sketch-up, slick-edit, smalltalk, snap, splunk, stata, stella, sublime-
* text, sugar-crm, svn, swift, symfony, symphony-cms, synopsys-vcs, tags,
* terraform, tex, text-mate, textpattern, think-php, tortoise-git, turbo-
* gears-2, typo3, umbraco, unity, unreal-engine, vagrant, vim, virtual-env,
* virtuoso, visual-studio, visual-studio-code, vue, vvvv, waf, web-methods,
* windows, word-press, xcode, xilinx, xilinx-ise, xojo, yeoman, yii, zend-
* framework, zephir.
*
* @var string[]
*/
public $gitignores;
/**
* License template name user can choose from. Valid values: license-0bsd,
* license-389-exception, aal, abstyles, adobe-2006, adobe-glyph, adsl,
* afl-1-1, afl-1-2, afl-2-0, afl-2-1, afl-3-0, afmparse, agpl-1-0,
* agpl-1-0-only, agpl-1-0-or-later, agpl-3-0-only, agpl-3-0-or-later,
* aladdin, amdplpa, aml, ampas, antlr-pd, antlr-pd-fallback, apache-1-0,
* apache-1-1, apache-2-0, apafml, apl-1-0, apsl-1-0, apsl-1-1, apsl-1-2,
* apsl-2-0, artistic-1-0, artistic-1-0-cl8, artistic-1-0-perl, artistic-2-0,
* autoconf-exception-2-0, autoconf-exception-3-0, bahyph, barr, beerware,
* bison-exception-2-2, bittorrent-1-0, bittorrent-1-1, blessing,
* blueoak-1-0-0, bootloader-exception, borceux, bsd-1-clause, bsd-2-clause,
* bsd-2-clause-freebsd, bsd-2-clause-netbsd, bsd-2-clause-patent,
* bsd-2-clause-views, bsd-3-clause, bsd-3-clause-attribution, bsd-3-clause-
* clear, bsd-3-clause-lbnl, bsd-3-clause-modification, bsd-3-clause-no-
* nuclear-license, bsd-3-clause-no-nuclear-license-2014, bsd-3-clause-no-
* nuclear-warranty, bsd-3-clause-open-mpi, bsd-4-clause, bsd-4-clause-
* shortened, bsd-4-clause-uc, bsd-protection, bsd-source-code, bsl-1-0,
* busl-1-1, cal-1-0, cal-1-0-combined-work-exception, caldera, catosl-1-1,
* cc0-1-0, cc-by-1-0, cc-by-2-0, cc-by-3-0, cc-by-3-0-at, cc-by-3-0-us, cc-
* by-4-0, cc-by-nc-1-0, cc-by-nc-2-0, cc-by-nc-3-0, cc-by-nc-4-0, cc-by-nc-
* nd-1-0, cc-by-nc-nd-2-0, cc-by-nc-nd-3-0, cc-by-nc-nd-3-0-igo, cc-by-nc-
* nd-4-0, cc-by-nc-sa-1-0, cc-by-nc-sa-2-0, cc-by-nc-sa-3-0, cc-by-nc-sa-4-0,
* cc-by-nd-1-0, cc-by-nd-2-0, cc-by-nd-3-0, cc-by-nd-4-0, cc-by-sa-1-0, cc-
* by-sa-2-0, cc-by-sa-2-0-uk, cc-by-sa-2-1-jp, cc-by-sa-3-0, cc-by-sa-3-0-at,
* cc-by-sa-4-0, cc-pddc, cddl-1-0, cddl-1-1, cdla-permissive-1-0, cdla-
* sharing-1-0, cecill-1-0, cecill-1-1, cecill-2-0, cecill-2-1, cecill-b,
* cecill-c, cern-ohl-1-1, cern-ohl-1-2, cern-ohl-p-2-0, cern-ohl-s-2-0, cern-
* ohl-w-2-0, clartistic, classpath-exception-2-0, clisp-exception-2-0, cnri-
* jython, cnri-python, cnri-python-gpl-compatible, condor-1-1, copyleft-
* next-0-3-0, copyleft-next-0-3-1, cpal-1-0, cpl-1-0, cpol-1-02, crossword,
* crystal-stacker, cua-opl-1-0, cube, c-uda-1-0, curl, d-fsl-1-0, diffmark,
* digirule-foss-exception, doc, dotseqn, drl-1-0, dsdp, dvipdfm, ecl-1-0,
* ecl-2-0, ecos-exception-2-0, efl-1-0, efl-2-0, egenix, entessa, epics,
* epl-1-0, epl-2-0, erlpl-1-1, etalab-2-0, eu-datagrid, eupl-1-0, eupl-1-1,
* eupl-1-2, eurosym, fair, fawkes-runtime-exception, fltk-exception, font-
* exception-2-0, frameworx-1-0, freebsd-doc, freeimage, freertos-
* exception-2-0, fsfap, fsful, fsfullr, ftl, gcc-exception-2-0, gcc-
* exception-3-1, gd, gfdl-1-1-invariants-only, gfdl-1-1-invariants-or-later,
* gfdl-1-1-no-invariants-only, gfdl-1-1-no-invariants-or-later,
* gfdl-1-1-only, gfdl-1-1-or-later, gfdl-1-2-invariants-only,
* gfdl-1-2-invariants-or-later, gfdl-1-2-no-invariants-only, gfdl-1-2-no-
* invariants-or-later, gfdl-1-2-only, gfdl-1-2-or-later, gfdl-1-3-invariants-
* only, gfdl-1-3-invariants-or-later, gfdl-1-3-no-invariants-only,
* gfdl-1-3-no-invariants-or-later, gfdl-1-3-only, gfdl-1-3-or-later,
* giftware, gl2ps, glide, glulxe, glwtpl, gnu-javamail-exception, gnuplot,
* gpl-1-0-only, gpl-1-0-or-later, gpl-2-0-only, gpl-2-0-or-later,
* gpl-3-0-linking-exception, gpl-3-0-linking-source-exception, gpl-3-0-only,
* gpl-3-0-or-later, gpl-cc-1-0, gsoap-1-3b, haskell-report, hippocratic-2-1,
* hpnd, hpnd-sell-variant, htmltidy, i2p-gpl-java-exception, ibm-pibs, icu,
* ijg, image-magick, imatix, imlib2, info-zip, intel, intel-acpi,
* interbase-1-0, ipa, ipl-1-0, isc, jasper-2-0, jpnic, json, lal-1-2,
* lal-1-3, latex2e, leptonica, lgpl-2-0-only, lgpl-2-0-or-later,
* lgpl-2-1-only, lgpl-2-1-or-later, lgpl-3-0-linking-exception,
* lgpl-3-0-only, lgpl-3-0-or-later, lgpllr, libpng, libpng-2-0,
* libselinux-1-0, libtiff, libtool-exception, liliq-p-1-1, liliq-r-1-1,
* liliq-rplus-1-1, linux-openib, linux-syscall-note, llvm-exception, lpl-1-0,
* lpl-1-02, lppl-1-0, lppl-1-1, lppl-1-2, lppl-1-3a, lppl-1-3c, lzma-
* exception, make-index, mif-exception, miros, mit, mit-0, mit-advertising,
* mit-cmu, mit-enna, mit-feh, mit-modern-variant, mitnfa, mit-open-group,
* motosoto, mpich2, mpl-1-0, mpl-1-1, mpl-2-0, mpl-2-0-no-copyleft-exception,
* ms-pl, ms-rl, mtll, mulanpsl-1-0, mulanpsl-2-0, multics, mup, naist-2003,
* nasa-1-3, naumen, nbpl-1-0, ncgl-uk-2-0, ncsa, netcdf, net-snmp, newsletr,
* ngpl, nist-pd, nist-pd-fallback, nlod-1-0, nlpl, nokia, nokia-qt-
* exception-1-1, nosl, noweb, npl-1-0, npl-1-1, nposl-3-0, nrl, ntp, ntp-0,
* ocaml-lgpl-linking-exception, occt-exception-1-0, occt-pl, oclc-2-0,
* odbl-1-0, odc-by-1-0, ofl-1-0, ofl-1-0-no-rfn, ofl-1-0-rfn, ofl-1-1,
* ofl-1-1-no-rfn, ofl-1-1-rfn, ogc-1-0, ogdl-taiwan-1-0, ogl-canada-2-0, ogl-
* uk-1-0, ogl-uk-2-0, ogl-uk-3-0, ogtsl, oldap-1-1, oldap-1-2, oldap-1-3,
* oldap-1-4, oldap-2-0, oldap-2-0-1, oldap-2-1, oldap-2-2, oldap-2-2-1,
* oldap-2-2-2, oldap-2-3, oldap-2-4, oldap-2-7, oml, openjdk-assembly-
* exception-1-0, openssl, openvpn-openssl-exception, opl-1-0, oset-pl-2-1,
* osl-1-0, osl-1-1, osl-2-0, osl-2-1, osl-3-0, o-uda-1-0, parity-6-0-0,
* parity-7-0-0, pddl-1-0, php-3-0, php-3-01, plexus, polyform-
* noncommercial-1-0-0, polyform-small-business-1-0-0, postgresql, psf-2-0,
* psfrag, ps-or-pdf-font-exception-20170817, psutils, python-2-0, qhull,
* qpl-1-0, qt-gpl-exception-1-0, qt-lgpl-exception-1-1, qwt-exception-1-0,
* rdisc, rhecos-1-1, rpl-1-1, rpsl-1-0, rsa-md, rscpl, ruby, saxpath, sax-pd,
* scea, sendmail, sendmail-8-23, sgi-b-1-0, sgi-b-1-1, sgi-b-2-0, shl-0-51,
* shl-2-0, shl-2-1, simpl-2-0, sissl, sissl-1-2, sleepycat, smlnj, smppl,
* snia, spencer-86, spencer-94, spencer-99, spl-1-0, ssh-openssh, ssh-short,
* sspl-1-0, sugarcrm-1-1-3, swift-exception, swl, tapr-ohl-1-0, tcl, tcp-
* wrappers, tmate, torque-1-1, tosl, tu-berlin-1-0, tu-berlin-2-0, u-boot-
* exception-2-0, ucl-1-0, unicode-dfs-2015, unicode-dfs-2016, unicode-tou,
* universal-foss-exception-1-0, unlicense, upl-1-0, vim, vostrom, vsl-1-0,
* w3c, w3c-19980720, w3c-20150513, watcom-1-0, wsuipa, wtfpl, wxwindows-
* exception-3-1, x11, xerox, xfree86-1-1, xinetd, xnet, xpp, xskat, ypl-1-0,
* ypl-1-1, zed, zend-2-0, zimbra-1-3, zimbra-1-4, zlib, zlib-acknowledgement,
* zpl-1-1, zpl-2-0, zpl-2-1.
*
* @var string
*/
public $license;
/**
* README template name. Valid template name(s) are: default.
*
* @var string
*/
public $readme;
/**
* Default branch name of the repository.
*
* @param string $defaultBranch
*/
public function setDefaultBranch($defaultBranch)
{
$this->defaultBranch = $defaultBranch;
}
/**
* @return string
*/
public function getDefaultBranch()
{
return $this->defaultBranch;
}
/**
* List of gitignore template names user can choose from. Valid values:
* actionscript, ada, agda, android, anjuta, ansible, appcelerator-titanium,
* app-engine, archives, arch-linux-packages, atmel-studio, autotools, backup,
* bazaar, bazel, bitrix, bricx-cc, c, cake-php, calabash, cf-wheels, chef-
* cookbook, clojure, cloud9, c-make, code-igniter, code-kit, code-sniffer,
* common-lisp, composer, concrete5, coq, cordova, cpp, craft-cms, cuda, cvs,
* d, dart, dart-editor, delphi, diff, dm, dreamweaver, dropbox, drupal,
* drupal-7, eagle, eclipse, eiffel-studio, elisp, elixir, elm, emacs, ensime,
* epi-server, erlang, esp-idf, espresso, exercism, expression-engine, ext-js,
* fancy, finale, flex-builder, force-dot-com, fortran, fuel-php, gcov, git-
* book, gnome-shell-extension, go, godot, gpg, gradle, grails, gwt, haskell,
* hugo, iar-ewarm, idris, igor-pro, images, infor-cms, java, jboss, jboss-4,
* jboss-6, jdeveloper, jekyll, jenkins-home, jenv, jet-brains, jigsaw,
* joomla, julia, jupyter-notebooks, kate, kdevelop4, kentico, ki-cad, kohana,
* kotlin, lab-view, laravel, lazarus, leiningen, lemon-stand, libre-office,
* lilypond, linux, lithium, logtalk, lua, lyx, mac-os, magento, magento-1,
* magento-2, matlab, maven, mercurial, mercury, metals, meta-programming-
* system, meteor, microsoft-office, model-sim, momentics, mono-develop,
* nanoc, net-beans, nikola, nim, ninja, node, notepad-pp, nwjs, objective--c,
* ocaml, octave, opa, open-cart, openssl, oracle-forms, otto, packer, patch,
* perl, perl6, phalcon, phoenix, pimcore, play-framework, plone, prestashop,
* processing, psoc-creator, puppet, pure-script, putty, python, qooxdoo, qt,
* r, racket, rails, raku, red, redcar, redis, rhodes-rhomobile, ros, ruby,
* rust, sam, sass, sbt, scala, scheme, scons, scrivener, sdcc, seam-gen,
* sketch-up, slick-edit, smalltalk, snap, splunk, stata, stella, sublime-
* text, sugar-crm, svn, swift, symfony, symphony-cms, synopsys-vcs, tags,
* terraform, tex, text-mate, textpattern, think-php, tortoise-git, turbo-
* gears-2, typo3, umbraco, unity, unreal-engine, vagrant, vim, virtual-env,
* virtuoso, visual-studio, visual-studio-code, vue, vvvv, waf, web-methods,
* windows, word-press, xcode, xilinx, xilinx-ise, xojo, yeoman, yii, zend-
* framework, zephir.
*
* @param string[] $gitignores
*/
public function setGitignores($gitignores)
{
$this->gitignores = $gitignores;
}
/**
* @return string[]
*/
public function getGitignores()
{
return $this->gitignores;
}
/**
* License template name user can choose from. Valid values: license-0bsd,
* license-389-exception, aal, abstyles, adobe-2006, adobe-glyph, adsl,
* afl-1-1, afl-1-2, afl-2-0, afl-2-1, afl-3-0, afmparse, agpl-1-0,
* agpl-1-0-only, agpl-1-0-or-later, agpl-3-0-only, agpl-3-0-or-later,
* aladdin, amdplpa, aml, ampas, antlr-pd, antlr-pd-fallback, apache-1-0,
* apache-1-1, apache-2-0, apafml, apl-1-0, apsl-1-0, apsl-1-1, apsl-1-2,
* apsl-2-0, artistic-1-0, artistic-1-0-cl8, artistic-1-0-perl, artistic-2-0,
* autoconf-exception-2-0, autoconf-exception-3-0, bahyph, barr, beerware,
* bison-exception-2-2, bittorrent-1-0, bittorrent-1-1, blessing,
* blueoak-1-0-0, bootloader-exception, borceux, bsd-1-clause, bsd-2-clause,
* bsd-2-clause-freebsd, bsd-2-clause-netbsd, bsd-2-clause-patent,
* bsd-2-clause-views, bsd-3-clause, bsd-3-clause-attribution, bsd-3-clause-
* clear, bsd-3-clause-lbnl, bsd-3-clause-modification, bsd-3-clause-no-
* nuclear-license, bsd-3-clause-no-nuclear-license-2014, bsd-3-clause-no-
* nuclear-warranty, bsd-3-clause-open-mpi, bsd-4-clause, bsd-4-clause-
* shortened, bsd-4-clause-uc, bsd-protection, bsd-source-code, bsl-1-0,
* busl-1-1, cal-1-0, cal-1-0-combined-work-exception, caldera, catosl-1-1,
* cc0-1-0, cc-by-1-0, cc-by-2-0, cc-by-3-0, cc-by-3-0-at, cc-by-3-0-us, cc-
* by-4-0, cc-by-nc-1-0, cc-by-nc-2-0, cc-by-nc-3-0, cc-by-nc-4-0, cc-by-nc-
* nd-1-0, cc-by-nc-nd-2-0, cc-by-nc-nd-3-0, cc-by-nc-nd-3-0-igo, cc-by-nc-
* nd-4-0, cc-by-nc-sa-1-0, cc-by-nc-sa-2-0, cc-by-nc-sa-3-0, cc-by-nc-sa-4-0,
* cc-by-nd-1-0, cc-by-nd-2-0, cc-by-nd-3-0, cc-by-nd-4-0, cc-by-sa-1-0, cc-
* by-sa-2-0, cc-by-sa-2-0-uk, cc-by-sa-2-1-jp, cc-by-sa-3-0, cc-by-sa-3-0-at,
* cc-by-sa-4-0, cc-pddc, cddl-1-0, cddl-1-1, cdla-permissive-1-0, cdla-
* sharing-1-0, cecill-1-0, cecill-1-1, cecill-2-0, cecill-2-1, cecill-b,
* cecill-c, cern-ohl-1-1, cern-ohl-1-2, cern-ohl-p-2-0, cern-ohl-s-2-0, cern-
* ohl-w-2-0, clartistic, classpath-exception-2-0, clisp-exception-2-0, cnri-
* jython, cnri-python, cnri-python-gpl-compatible, condor-1-1, copyleft-
* next-0-3-0, copyleft-next-0-3-1, cpal-1-0, cpl-1-0, cpol-1-02, crossword,
* crystal-stacker, cua-opl-1-0, cube, c-uda-1-0, curl, d-fsl-1-0, diffmark,
* digirule-foss-exception, doc, dotseqn, drl-1-0, dsdp, dvipdfm, ecl-1-0,
* ecl-2-0, ecos-exception-2-0, efl-1-0, efl-2-0, egenix, entessa, epics,
* epl-1-0, epl-2-0, erlpl-1-1, etalab-2-0, eu-datagrid, eupl-1-0, eupl-1-1,
* eupl-1-2, eurosym, fair, fawkes-runtime-exception, fltk-exception, font-
* exception-2-0, frameworx-1-0, freebsd-doc, freeimage, freertos-
* exception-2-0, fsfap, fsful, fsfullr, ftl, gcc-exception-2-0, gcc-
* exception-3-1, gd, gfdl-1-1-invariants-only, gfdl-1-1-invariants-or-later,
* gfdl-1-1-no-invariants-only, gfdl-1-1-no-invariants-or-later,
* gfdl-1-1-only, gfdl-1-1-or-later, gfdl-1-2-invariants-only,
* gfdl-1-2-invariants-or-later, gfdl-1-2-no-invariants-only, gfdl-1-2-no-
* invariants-or-later, gfdl-1-2-only, gfdl-1-2-or-later, gfdl-1-3-invariants-
* only, gfdl-1-3-invariants-or-later, gfdl-1-3-no-invariants-only,
* gfdl-1-3-no-invariants-or-later, gfdl-1-3-only, gfdl-1-3-or-later,
* giftware, gl2ps, glide, glulxe, glwtpl, gnu-javamail-exception, gnuplot,
* gpl-1-0-only, gpl-1-0-or-later, gpl-2-0-only, gpl-2-0-or-later,
* gpl-3-0-linking-exception, gpl-3-0-linking-source-exception, gpl-3-0-only,
* gpl-3-0-or-later, gpl-cc-1-0, gsoap-1-3b, haskell-report, hippocratic-2-1,
* hpnd, hpnd-sell-variant, htmltidy, i2p-gpl-java-exception, ibm-pibs, icu,
* ijg, image-magick, imatix, imlib2, info-zip, intel, intel-acpi,
* interbase-1-0, ipa, ipl-1-0, isc, jasper-2-0, jpnic, json, lal-1-2,
* lal-1-3, latex2e, leptonica, lgpl-2-0-only, lgpl-2-0-or-later,
* lgpl-2-1-only, lgpl-2-1-or-later, lgpl-3-0-linking-exception,
* lgpl-3-0-only, lgpl-3-0-or-later, lgpllr, libpng, libpng-2-0,
* libselinux-1-0, libtiff, libtool-exception, liliq-p-1-1, liliq-r-1-1,
* liliq-rplus-1-1, linux-openib, linux-syscall-note, llvm-exception, lpl-1-0,
* lpl-1-02, lppl-1-0, lppl-1-1, lppl-1-2, lppl-1-3a, lppl-1-3c, lzma-
* exception, make-index, mif-exception, miros, mit, mit-0, mit-advertising,
* mit-cmu, mit-enna, mit-feh, mit-modern-variant, mitnfa, mit-open-group,
* motosoto, mpich2, mpl-1-0, mpl-1-1, mpl-2-0, mpl-2-0-no-copyleft-exception,
* ms-pl, ms-rl, mtll, mulanpsl-1-0, mulanpsl-2-0, multics, mup, naist-2003,
* nasa-1-3, naumen, nbpl-1-0, ncgl-uk-2-0, ncsa, netcdf, net-snmp, newsletr,
* ngpl, nist-pd, nist-pd-fallback, nlod-1-0, nlpl, nokia, nokia-qt-
* exception-1-1, nosl, noweb, npl-1-0, npl-1-1, nposl-3-0, nrl, ntp, ntp-0,
* ocaml-lgpl-linking-exception, occt-exception-1-0, occt-pl, oclc-2-0,
* odbl-1-0, odc-by-1-0, ofl-1-0, ofl-1-0-no-rfn, ofl-1-0-rfn, ofl-1-1,
* ofl-1-1-no-rfn, ofl-1-1-rfn, ogc-1-0, ogdl-taiwan-1-0, ogl-canada-2-0, ogl-
* uk-1-0, ogl-uk-2-0, ogl-uk-3-0, ogtsl, oldap-1-1, oldap-1-2, oldap-1-3,
* oldap-1-4, oldap-2-0, oldap-2-0-1, oldap-2-1, oldap-2-2, oldap-2-2-1,
* oldap-2-2-2, oldap-2-3, oldap-2-4, oldap-2-7, oml, openjdk-assembly-
* exception-1-0, openssl, openvpn-openssl-exception, opl-1-0, oset-pl-2-1,
* osl-1-0, osl-1-1, osl-2-0, osl-2-1, osl-3-0, o-uda-1-0, parity-6-0-0,
* parity-7-0-0, pddl-1-0, php-3-0, php-3-01, plexus, polyform-
* noncommercial-1-0-0, polyform-small-business-1-0-0, postgresql, psf-2-0,
* psfrag, ps-or-pdf-font-exception-20170817, psutils, python-2-0, qhull,
* qpl-1-0, qt-gpl-exception-1-0, qt-lgpl-exception-1-1, qwt-exception-1-0,
* rdisc, rhecos-1-1, rpl-1-1, rpsl-1-0, rsa-md, rscpl, ruby, saxpath, sax-pd,
* scea, sendmail, sendmail-8-23, sgi-b-1-0, sgi-b-1-1, sgi-b-2-0, shl-0-51,
* shl-2-0, shl-2-1, simpl-2-0, sissl, sissl-1-2, sleepycat, smlnj, smppl,
* snia, spencer-86, spencer-94, spencer-99, spl-1-0, ssh-openssh, ssh-short,
* sspl-1-0, sugarcrm-1-1-3, swift-exception, swl, tapr-ohl-1-0, tcl, tcp-
* wrappers, tmate, torque-1-1, tosl, tu-berlin-1-0, tu-berlin-2-0, u-boot-
* exception-2-0, ucl-1-0, unicode-dfs-2015, unicode-dfs-2016, unicode-tou,
* universal-foss-exception-1-0, unlicense, upl-1-0, vim, vostrom, vsl-1-0,
* w3c, w3c-19980720, w3c-20150513, watcom-1-0, wsuipa, wtfpl, wxwindows-
* exception-3-1, x11, xerox, xfree86-1-1, xinetd, xnet, xpp, xskat, ypl-1-0,
* ypl-1-1, zed, zend-2-0, zimbra-1-3, zimbra-1-4, zlib, zlib-acknowledgement,
* zpl-1-1, zpl-2-0, zpl-2-1.
*
* @param string $license
*/
public function setLicense($license)
{
$this->license = $license;
}
/**
* @return string
*/
public function getLicense()
{
return $this->license;
}
/**
* README template name. Valid template name(s) are: default.
*
* @param string $readme
*/
public function setReadme($readme)
{
$this->readme = $readme;
}
/**
* @return string
*/
public function getReadme()
{
return $this->readme;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InitialConfig::class, 'Google_Service_SecureSourceManager_InitialConfig');
@@ -0,0 +1,298 @@
<?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\SecureSourceManager;
class Instance extends \Google\Model
{
/**
* Not set. This should only be the case for incoming requests.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Instance is being created.
*/
public const STATE_CREATING = 'CREATING';
/**
* Instance is ready.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* Instance is being deleted.
*/
public const STATE_DELETING = 'DELETING';
/**
* Instance is paused.
*/
public const STATE_PAUSED = 'PAUSED';
/**
* Instance is unknown, we are not sure if it's functioning.
*/
public const STATE_UNKNOWN = 'UNKNOWN';
/**
* STATE_NOTE_UNSPECIFIED as the first value of State.
*/
public const STATE_NOTE_STATE_NOTE_UNSPECIFIED = 'STATE_NOTE_UNSPECIFIED';
/**
* CMEK access is unavailable.
*/
public const STATE_NOTE_PAUSED_CMEK_UNAVAILABLE = 'PAUSED_CMEK_UNAVAILABLE';
/**
* INSTANCE_RESUMING indicates that the instance was previously paused and is
* under the process of being brought back.
*
* @deprecated
*/
public const STATE_NOTE_INSTANCE_RESUMING = 'INSTANCE_RESUMING';
/**
* Output only. Create timestamp.
*
* @var string
*/
public $createTime;
protected $hostConfigType = HostConfig::class;
protected $hostConfigDataType = '';
/**
* Optional. Immutable. Customer-managed encryption key name, in the format
* projects/locations/keyRings/cryptoKeys.
*
* @var string
*/
public $kmsKey;
/**
* Optional. Labels as key value pairs.
*
* @var string[]
*/
public $labels;
/**
* Optional. A unique identifier for an instance. The name should be of the
* format:
* `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
* `project_number`: Maps to a unique int64 id assigned to each project.
* `location_id`: Refers to the region where the instance will be deployed.
* Since Secure Source Manager is a regional service, it must be one of the
* valid GCP regions. `instance_id`: User provided name for the instance, must
* be unique for a project_number and location_id combination.
*
* @var string
*/
public $name;
protected $privateConfigType = PrivateConfig::class;
protected $privateConfigDataType = '';
/**
* Output only. Current state of the instance.
*
* @var string
*/
public $state;
/**
* Output only. An optional field providing information about the current
* instance state.
*
* @var string
*/
public $stateNote;
/**
* Output only. Update timestamp.
*
* @var string
*/
public $updateTime;
protected $workforceIdentityFederationConfigType = WorkforceIdentityFederationConfig::class;
protected $workforceIdentityFederationConfigDataType = '';
/**
* Output only. Create timestamp.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. A list of hostnames for this instance.
*
* @param HostConfig $hostConfig
*/
public function setHostConfig(HostConfig $hostConfig)
{
$this->hostConfig = $hostConfig;
}
/**
* @return HostConfig
*/
public function getHostConfig()
{
return $this->hostConfig;
}
/**
* Optional. Immutable. Customer-managed encryption key name, in the format
* projects/locations/keyRings/cryptoKeys.
*
* @param string $kmsKey
*/
public function setKmsKey($kmsKey)
{
$this->kmsKey = $kmsKey;
}
/**
* @return string
*/
public function getKmsKey()
{
return $this->kmsKey;
}
/**
* Optional. Labels as key value pairs.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Optional. A unique identifier for an instance. The name should be of the
* format:
* `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
* `project_number`: Maps to a unique int64 id assigned to each project.
* `location_id`: Refers to the region where the instance will be deployed.
* Since Secure Source Manager is a regional service, it must be one of the
* valid GCP regions. `instance_id`: User provided name for the instance, must
* be unique for a project_number and location_id combination.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. Private settings for private instance.
*
* @param PrivateConfig $privateConfig
*/
public function setPrivateConfig(PrivateConfig $privateConfig)
{
$this->privateConfig = $privateConfig;
}
/**
* @return PrivateConfig
*/
public function getPrivateConfig()
{
return $this->privateConfig;
}
/**
* Output only. Current state of the instance.
*
* Accepted values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING, PAUSED,
* UNKNOWN
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. An optional field providing information about the current
* instance state.
*
* Accepted values: STATE_NOTE_UNSPECIFIED, PAUSED_CMEK_UNAVAILABLE,
* INSTANCE_RESUMING
*
* @param self::STATE_NOTE_* $stateNote
*/
public function setStateNote($stateNote)
{
$this->stateNote = $stateNote;
}
/**
* @return self::STATE_NOTE_*
*/
public function getStateNote()
{
return $this->stateNote;
}
/**
* Output only. Update timestamp.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Optional. Configuration for Workforce Identity Federation to support third
* party identity provider. If unset, defaults to the Google OIDC IdP.
*
* @param WorkforceIdentityFederationConfig $workforceIdentityFederationConfig
*/
public function setWorkforceIdentityFederationConfig(WorkforceIdentityFederationConfig $workforceIdentityFederationConfig)
{
$this->workforceIdentityFederationConfig = $workforceIdentityFederationConfig;
}
/**
* @return WorkforceIdentityFederationConfig
*/
public function getWorkforceIdentityFederationConfig()
{
return $this->workforceIdentityFederationConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Instance::class, 'Google_Service_SecureSourceManager_Instance');
@@ -0,0 +1,224 @@
<?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\SecureSourceManager;
class Issue extends \Google\Model
{
/**
* Unspecified.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* An open issue.
*/
public const STATE_OPEN = 'OPEN';
/**
* A closed issue.
*/
public const STATE_CLOSED = 'CLOSED';
/**
* Optional. Issue body. Provides a detailed description of the issue.
*
* @var string
*/
public $body;
/**
* Output only. Close timestamp (if closed). Cleared when is re-opened.
*
* @var string
*/
public $closeTime;
/**
* Output only. Creation timestamp.
*
* @var string
*/
public $createTime;
/**
* Optional. This checksum is computed by the server based on the value of
* other fields, and may be sent on update and delete requests to ensure the
* client has an up-to-date value before proceeding.
*
* @var string
*/
public $etag;
/**
* Identifier. Unique identifier for an issue. The issue id is generated by
* the server. Format: `projects/{project}/locations/{location}/repositories/{
* repository}/issues/{issue_id}`
*
* @var string
*/
public $name;
/**
* Output only. State of the issue.
*
* @var string
*/
public $state;
/**
* Required. Issue title.
*
* @var string
*/
public $title;
/**
* Output only. Last updated timestamp.
*
* @var string
*/
public $updateTime;
/**
* Optional. Issue body. Provides a detailed description of the issue.
*
* @param string $body
*/
public function setBody($body)
{
$this->body = $body;
}
/**
* @return string
*/
public function getBody()
{
return $this->body;
}
/**
* Output only. Close timestamp (if closed). Cleared when is re-opened.
*
* @param string $closeTime
*/
public function setCloseTime($closeTime)
{
$this->closeTime = $closeTime;
}
/**
* @return string
*/
public function getCloseTime()
{
return $this->closeTime;
}
/**
* Output only. Creation timestamp.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. This checksum is computed by the server based on the value of
* other fields, and may be sent on update and delete requests to ensure the
* client has an up-to-date value before proceeding.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Identifier. Unique identifier for an issue. The issue id is generated by
* the server. Format: `projects/{project}/locations/{location}/repositories/{
* repository}/issues/{issue_id}`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. State of the issue.
*
* Accepted values: STATE_UNSPECIFIED, OPEN, CLOSED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Required. Issue title.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Output only. Last updated timestamp.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Issue::class, 'Google_Service_SecureSourceManager_Issue');
@@ -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\SecureSourceManager;
class IssueComment extends \Google\Model
{
/**
* Required. The comment body.
*
* @var string
*/
public $body;
/**
* Output only. Creation timestamp.
*
* @var string
*/
public $createTime;
/**
* Identifier. Unique identifier for an issue comment. The comment id is
* generated by the server. Format: `projects/{project}/locations/{location}/r
* epositories/{repository}/issues/{issue}/issueComments/{comment_id}`
*
* @var string
*/
public $name;
/**
* Output only. Last updated timestamp.
*
* @var string
*/
public $updateTime;
/**
* Required. The comment body.
*
* @param string $body
*/
public function setBody($body)
{
$this->body = $body;
}
/**
* @return string
*/
public function getBody()
{
return $this->body;
}
/**
* Output only. Creation timestamp.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Identifier. Unique identifier for an issue comment. The comment id is
* generated by the server. Format: `projects/{project}/locations/{location}/r
* epositories/{repository}/issues/{issue}/issueComments/{comment_id}`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Last updated timestamp.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IssueComment::class, 'Google_Service_SecureSourceManager_IssueComment');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class ListBranchRulesResponse extends \Google\Collection
{
protected $collection_key = 'branchRules';
protected $branchRulesType = BranchRule::class;
protected $branchRulesDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* The list of branch rules.
*
* @param BranchRule[] $branchRules
*/
public function setBranchRules($branchRules)
{
$this->branchRules = $branchRules;
}
/**
* @return BranchRule[]
*/
public function getBranchRules()
{
return $this->branchRules;
}
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListBranchRulesResponse::class, 'Google_Service_SecureSourceManager_ListBranchRulesResponse');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class ListHooksResponse extends \Google\Collection
{
protected $collection_key = 'hooks';
protected $hooksType = Hook::class;
protected $hooksDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* The list of hooks.
*
* @param Hook[] $hooks
*/
public function setHooks($hooks)
{
$this->hooks = $hooks;
}
/**
* @return Hook[]
*/
public function getHooks()
{
return $this->hooks;
}
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListHooksResponse::class, 'Google_Service_SecureSourceManager_ListHooksResponse');
@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class ListInstancesResponse extends \Google\Collection
{
protected $collection_key = 'unreachable';
protected $instancesType = Instance::class;
protected $instancesDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* Locations that could not be reached.
*
* @var string[]
*/
public $unreachable;
/**
* The list of instances.
*
* @param Instance[] $instances
*/
public function setInstances($instances)
{
$this->instances = $instances;
}
/**
* @return Instance[]
*/
public function getInstances()
{
return $this->instances;
}
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Locations that could not be reached.
*
* @param string[] $unreachable
*/
public function setUnreachable($unreachable)
{
$this->unreachable = $unreachable;
}
/**
* @return string[]
*/
public function getUnreachable()
{
return $this->unreachable;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListInstancesResponse::class, 'Google_Service_SecureSourceManager_ListInstancesResponse');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class ListIssueCommentsResponse extends \Google\Collection
{
protected $collection_key = 'issueComments';
protected $issueCommentsType = IssueComment::class;
protected $issueCommentsDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* The list of issue comments.
*
* @param IssueComment[] $issueComments
*/
public function setIssueComments($issueComments)
{
$this->issueComments = $issueComments;
}
/**
* @return IssueComment[]
*/
public function getIssueComments()
{
return $this->issueComments;
}
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListIssueCommentsResponse::class, 'Google_Service_SecureSourceManager_ListIssueCommentsResponse');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class ListIssuesResponse extends \Google\Collection
{
protected $collection_key = 'issues';
protected $issuesType = Issue::class;
protected $issuesDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* The list of issues.
*
* @param Issue[] $issues
*/
public function setIssues($issues)
{
$this->issues = $issues;
}
/**
* @return Issue[]
*/
public function getIssues()
{
return $this->issues;
}
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListIssuesResponse::class, 'Google_Service_SecureSourceManager_ListIssuesResponse');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
/**
* A list of locations that matches the specified filter in the request.
*
* @param Location[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLocationsResponse::class, 'Google_Service_SecureSourceManager_ListLocationsResponse');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class ListOperationsResponse extends \Google\Collection
{
protected $collection_key = 'operations';
/**
* The standard List next-page token.
*
* @var string
*/
public $nextPageToken;
protected $operationsType = Operation::class;
protected $operationsDataType = 'array';
/**
* The standard List next-page token.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* A list of operations that matches the specified filter in the request.
*
* @param Operation[] $operations
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Operation[]
*/
public function getOperations()
{
return $this->operations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListOperationsResponse::class, 'Google_Service_SecureSourceManager_ListOperationsResponse');
@@ -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\SecureSourceManager;
class ListPullRequestCommentsResponse extends \Google\Collection
{
protected $collection_key = 'pullRequestComments';
/**
* A token to set as page_token to retrieve the next page. If this field is
* omitted, there are no subsequent pages.
*
* @var string
*/
public $nextPageToken;
protected $pullRequestCommentsType = PullRequestComment::class;
protected $pullRequestCommentsDataType = 'array';
/**
* A token to set as page_token to retrieve the next page. If this field is
* omitted, there are no subsequent pages.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of pull request comments.
*
* @param PullRequestComment[] $pullRequestComments
*/
public function setPullRequestComments($pullRequestComments)
{
$this->pullRequestComments = $pullRequestComments;
}
/**
* @return PullRequestComment[]
*/
public function getPullRequestComments()
{
return $this->pullRequestComments;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPullRequestCommentsResponse::class, 'Google_Service_SecureSourceManager_ListPullRequestCommentsResponse');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class ListPullRequestFileDiffsResponse extends \Google\Collection
{
protected $collection_key = 'fileDiffs';
protected $fileDiffsType = FileDiff::class;
protected $fileDiffsDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
/**
* The list of pull request file diffs.
*
* @param FileDiff[] $fileDiffs
*/
public function setFileDiffs($fileDiffs)
{
$this->fileDiffs = $fileDiffs;
}
/**
* @return FileDiff[]
*/
public function getFileDiffs()
{
return $this->fileDiffs;
}
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPullRequestFileDiffsResponse::class, 'Google_Service_SecureSourceManager_ListPullRequestFileDiffsResponse');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class ListPullRequestsResponse extends \Google\Collection
{
protected $collection_key = 'pullRequests';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
protected $pullRequestsType = PullRequest::class;
protected $pullRequestsDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of pull requests.
*
* @param PullRequest[] $pullRequests
*/
public function setPullRequests($pullRequests)
{
$this->pullRequests = $pullRequests;
}
/**
* @return PullRequest[]
*/
public function getPullRequests()
{
return $this->pullRequests;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListPullRequestsResponse::class, 'Google_Service_SecureSourceManager_ListPullRequestsResponse');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class ListRepositoriesResponse extends \Google\Collection
{
protected $collection_key = 'repositories';
/**
* A token identifying a page of results the server should return.
*
* @var string
*/
public $nextPageToken;
protected $repositoriesType = Repository::class;
protected $repositoriesDataType = 'array';
/**
* A token identifying a page of results the server should return.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The list of repositories.
*
* @param Repository[] $repositories
*/
public function setRepositories($repositories)
{
$this->repositories = $repositories;
}
/**
* @return Repository[]
*/
public function getRepositories()
{
return $this->repositories;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListRepositoriesResponse::class, 'Google_Service_SecureSourceManager_ListRepositoriesResponse');
@@ -0,0 +1,144 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class Location extends \Google\Model
{
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @var string
*/
public $displayName;
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @var string[]
*/
public $labels;
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @var string
*/
public $locationId;
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @var array[]
*/
public $metadata;
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @var string
*/
public $name;
/**
* The friendly name for this location, typically a nearby city name. For
* example, "Tokyo".
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Cross-service attributes for the location. For example
* {"cloud.googleapis.com/region": "us-east1"}
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* The canonical id for this location. For example: `"us-east1"`.
*
* @param string $locationId
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* Service-specific metadata. For example the available capacity at the given
* location.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Resource name for the location, which may vary between implementations. For
* example: `"projects/example-project/locations/us-east1"`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Location::class, 'Google_Service_SecureSourceManager_Location');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class MergePullRequestRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MergePullRequestRequest::class, 'Google_Service_SecureSourceManager_MergePullRequestRequest');
@@ -0,0 +1,52 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class OpenIssueRequest extends \Google\Model
{
/**
* Optional. The current etag of the issue. If the etag is provided and does
* not match the current etag of the issue, opening will be blocked and an
* ABORTED error will be returned.
*
* @var string
*/
public $etag;
/**
* Optional. The current etag of the issue. If the etag is provided and does
* not match the current etag of the issue, opening will be blocked and an
* ABORTED error will be returned.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OpenIssueRequest::class, 'Google_Service_SecureSourceManager_OpenIssueRequest');
@@ -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\SecureSourceManager;
class OpenPullRequestRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OpenPullRequestRequest::class, 'Google_Service_SecureSourceManager_OpenPullRequestRequest');
@@ -0,0 +1,158 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class Operation extends \Google\Model
{
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @var bool
*/
public $done;
protected $errorType = Status::class;
protected $errorDataType = '';
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @var array[]
*/
public $metadata;
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @var string
*/
public $name;
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @var array[]
*/
public $response;
/**
* If the value is `false`, it means the operation is still in progress. If
* `true`, the operation is completed, and either `error` or `response` is
* available.
*
* @param bool $done
*/
public function setDone($done)
{
$this->done = $done;
}
/**
* @return bool
*/
public function getDone()
{
return $this->done;
}
/**
* The error result of the operation in case of failure or cancellation.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* Service-specific metadata associated with the operation. It typically
* contains progress information and common metadata such as create time. Some
* services might not provide such metadata. Any method that returns a long-
* running operation should document the metadata type, if any.
*
* @param array[] $metadata
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* The server-assigned name, which is only unique within the same service that
* originally returns it. If you use the default HTTP mapping, the `name`
* should be a resource name ending with `operations/{unique_id}`.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The normal, successful response of the operation. If the original method
* returns no data on success, such as `Delete`, the response is
* `google.protobuf.Empty`. If the original method is standard
* `Get`/`Create`/`Update`, the response should be the resource. For other
* methods, the response should have the type `XxxResponse`, where `Xxx` is
* the original method name. For example, if the original method name is
* `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
*
* @param array[] $response
*/
public function setResponse($response)
{
$this->response = $response;
}
/**
* @return array[]
*/
public function getResponse()
{
return $this->response;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Operation::class, 'Google_Service_SecureSourceManager_Operation');
@@ -0,0 +1,186 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class OperationMetadata extends \Google\Model
{
/**
* Output only. API version used to start the operation.
*
* @var string
*/
public $apiVersion;
/**
* Output only. The time the operation was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The time the operation finished running.
*
* @var string
*/
public $endTime;
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have successfully been cancelled have
* Operation.error value with a google.rpc.Status.code of 1, corresponding to
* `Code.CANCELLED`.
*
* @var bool
*/
public $requestedCancellation;
/**
* Output only. Human-readable status of the operation, if any.
*
* @var string
*/
public $statusMessage;
/**
* Output only. Server-defined resource path for the target of the operation.
*
* @var string
*/
public $target;
/**
* Output only. Name of the verb executed by the operation.
*
* @var string
*/
public $verb;
/**
* Output only. API version used to start the operation.
*
* @param string $apiVersion
*/
public function setApiVersion($apiVersion)
{
$this->apiVersion = $apiVersion;
}
/**
* @return string
*/
public function getApiVersion()
{
return $this->apiVersion;
}
/**
* Output only. The time the operation was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The time the operation finished running.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Output only. Identifies whether the user has requested cancellation of the
* operation. Operations that have successfully been cancelled have
* Operation.error value with a google.rpc.Status.code of 1, corresponding to
* `Code.CANCELLED`.
*
* @param bool $requestedCancellation
*/
public function setRequestedCancellation($requestedCancellation)
{
$this->requestedCancellation = $requestedCancellation;
}
/**
* @return bool
*/
public function getRequestedCancellation()
{
return $this->requestedCancellation;
}
/**
* Output only. Human-readable status of the operation, if any.
*
* @param string $statusMessage
*/
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
/**
* @return string
*/
public function getStatusMessage()
{
return $this->statusMessage;
}
/**
* Output only. Server-defined resource path for the target of the operation.
*
* @param string $target
*/
public function setTarget($target)
{
$this->target = $target;
}
/**
* @return string
*/
public function getTarget()
{
return $this->target;
}
/**
* Output only. Name of the verb executed by the operation.
*
* @param string $verb
*/
public function setVerb($verb)
{
$this->verb = $verb;
}
/**
* @return string
*/
public function getVerb()
{
return $this->verb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OperationMetadata::class, 'Google_Service_SecureSourceManager_OperationMetadata');
@@ -0,0 +1,165 @@
<?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\SecureSourceManager;
class Policy extends \Google\Collection
{
protected $collection_key = 'bindings';
protected $auditConfigsType = AuditConfig::class;
protected $auditConfigsDataType = 'array';
protected $bindingsType = Binding::class;
protected $bindingsDataType = 'array';
/**
* `etag` is used for optimistic concurrency control as a way to help prevent
* simultaneous updates of a policy from overwriting each other. It is
* strongly suggested that systems make use of the `etag` in the read-modify-
* write cycle to perform policy updates in order to avoid race conditions: An
* `etag` is returned in the response to `getIamPolicy`, and systems are
* expected to put that etag in the request to `setIamPolicy` to ensure that
* their change will be applied to the same version of the policy.
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
* the conditions in the version `3` policy are lost.
*
* @var string
*/
public $etag;
/**
* Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
* Requests that specify an invalid value are rejected. Any operation that
* affects conditional role bindings must specify version `3`. This
* requirement applies to the following operations: * Getting a policy that
* includes a conditional role binding * Adding a conditional role binding to
* a policy * Changing a conditional role binding in a policy * Removing any
* role binding, with or without a condition, from a policy that includes
* conditions **Important:** If you use IAM Conditions, you must include the
* `etag` field whenever you call `setIamPolicy`. If you omit this field, then
* IAM allows you to overwrite a version `3` policy with a version `1` policy,
* and all of the conditions in the version `3` policy are lost. If a policy
* does not include any conditions, operations on that policy may specify any
* valid version or leave the field unset. To learn which resources support
* conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @var int
*/
public $version;
/**
* Specifies cloud audit logging configuration for this policy.
*
* @param AuditConfig[] $auditConfigs
*/
public function setAuditConfigs($auditConfigs)
{
$this->auditConfigs = $auditConfigs;
}
/**
* @return AuditConfig[]
*/
public function getAuditConfigs()
{
return $this->auditConfigs;
}
/**
* Associates a list of `members`, or principals, with a `role`. Optionally,
* may specify a `condition` that determines how and when the `bindings` are
* applied. Each of the `bindings` must contain at least one principal. The
* `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of
* these principals can be Google groups. Each occurrence of a principal
* counts towards these limits. For example, if the `bindings` grant 50
* different roles to `user:alice@example.com`, and not to any other
* principal, then you can add another 1,450 principals to the `bindings` in
* the `Policy`.
*
* @param Binding[] $bindings
*/
public function setBindings($bindings)
{
$this->bindings = $bindings;
}
/**
* @return Binding[]
*/
public function getBindings()
{
return $this->bindings;
}
/**
* `etag` is used for optimistic concurrency control as a way to help prevent
* simultaneous updates of a policy from overwriting each other. It is
* strongly suggested that systems make use of the `etag` in the read-modify-
* write cycle to perform policy updates in order to avoid race conditions: An
* `etag` is returned in the response to `getIamPolicy`, and systems are
* expected to put that etag in the request to `setIamPolicy` to ensure that
* their change will be applied to the same version of the policy.
* **Important:** If you use IAM Conditions, you must include the `etag` field
* whenever you call `setIamPolicy`. If you omit this field, then IAM allows
* you to overwrite a version `3` policy with a version `1` policy, and all of
* the conditions in the version `3` policy are lost.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
* Requests that specify an invalid value are rejected. Any operation that
* affects conditional role bindings must specify version `3`. This
* requirement applies to the following operations: * Getting a policy that
* includes a conditional role binding * Adding a conditional role binding to
* a policy * Changing a conditional role binding in a policy * Removing any
* role binding, with or without a condition, from a policy that includes
* conditions **Important:** If you use IAM Conditions, you must include the
* `etag` field whenever you call `setIamPolicy`. If you omit this field, then
* IAM allows you to overwrite a version `3` policy with a version `1` policy,
* and all of the conditions in the version `3` policy are lost. If a policy
* does not include any conditions, operations on that policy may specify any
* valid version or leave the field unset. To learn which resources support
* conditions in their IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
*
* @param int $version
*/
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_SecureSourceManager_Policy');
@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class Position extends \Google\Model
{
/**
* Required. The line number of the comment. Positive value means it's on the
* new side of the diff, negative value means it's on the old side.
*
* @var string
*/
public $line;
/**
* Required. The path of the file.
*
* @var string
*/
public $path;
/**
* Required. The line number of the comment. Positive value means it's on the
* new side of the diff, negative value means it's on the old side.
*
* @param string $line
*/
public function setLine($line)
{
$this->line = $line;
}
/**
* @return string
*/
public function getLine()
{
return $this->line;
}
/**
* Required. The path of the file.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Position::class, 'Google_Service_SecureSourceManager_Position');
@@ -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\SecureSourceManager;
class PrivateConfig extends \Google\Collection
{
protected $collection_key = 'pscAllowedProjects';
/**
* Optional. Immutable. CA pool resource, resource must in the format of
* `projects/{project}/locations/{location}/caPools/{ca_pool}`.
*
* @var string
*/
public $caPool;
/**
* Output only. Service Attachment for HTTP, resource is in the format of `pro
* jects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
*
* @var string
*/
public $httpServiceAttachment;
/**
* Required. Immutable. Indicate if it's private instance.
*
* @var bool
*/
public $isPrivate;
/**
* Optional. Additional allowed projects for setting up PSC connections.
* Instance host project is automatically allowed and does not need to be
* included in this list.
*
* @var string[]
*/
public $pscAllowedProjects;
/**
* Output only. Service Attachment for SSH, resource is in the format of `proj
* ects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
*
* @var string
*/
public $sshServiceAttachment;
/**
* Optional. Immutable. CA pool resource, resource must in the format of
* `projects/{project}/locations/{location}/caPools/{ca_pool}`.
*
* @param string $caPool
*/
public function setCaPool($caPool)
{
$this->caPool = $caPool;
}
/**
* @return string
*/
public function getCaPool()
{
return $this->caPool;
}
/**
* Output only. Service Attachment for HTTP, resource is in the format of `pro
* jects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
*
* @param string $httpServiceAttachment
*/
public function setHttpServiceAttachment($httpServiceAttachment)
{
$this->httpServiceAttachment = $httpServiceAttachment;
}
/**
* @return string
*/
public function getHttpServiceAttachment()
{
return $this->httpServiceAttachment;
}
/**
* Required. Immutable. Indicate if it's private instance.
*
* @param bool $isPrivate
*/
public function setIsPrivate($isPrivate)
{
$this->isPrivate = $isPrivate;
}
/**
* @return bool
*/
public function getIsPrivate()
{
return $this->isPrivate;
}
/**
* Optional. Additional allowed projects for setting up PSC connections.
* Instance host project is automatically allowed and does not need to be
* included in this list.
*
* @param string[] $pscAllowedProjects
*/
public function setPscAllowedProjects($pscAllowedProjects)
{
$this->pscAllowedProjects = $pscAllowedProjects;
}
/**
* @return string[]
*/
public function getPscAllowedProjects()
{
return $this->pscAllowedProjects;
}
/**
* Output only. Service Attachment for SSH, resource is in the format of `proj
* ects/{project}/regions/{region}/serviceAttachments/{service_attachment}`.
*
* @param string $sshServiceAttachment
*/
public function setSshServiceAttachment($sshServiceAttachment)
{
$this->sshServiceAttachment = $sshServiceAttachment;
}
/**
* @return string
*/
public function getSshServiceAttachment()
{
return $this->sshServiceAttachment;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PrivateConfig::class, 'Google_Service_SecureSourceManager_PrivateConfig');
@@ -0,0 +1,242 @@
<?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\SecureSourceManager;
class PullRequest extends \Google\Model
{
/**
* Unspecified.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* An open pull request.
*/
public const STATE_OPEN = 'OPEN';
/**
* A closed pull request.
*/
public const STATE_CLOSED = 'CLOSED';
/**
* A merged pull request.
*/
public const STATE_MERGED = 'MERGED';
protected $baseType = Branch::class;
protected $baseDataType = '';
/**
* Optional. The pull request body. Provides a detailed description of the
* changes.
*
* @var string
*/
public $body;
/**
* Output only. Close timestamp (if closed or merged). Cleared when pull
* request is re-opened.
*
* @var string
*/
public $closeTime;
/**
* Output only. Creation timestamp.
*
* @var string
*/
public $createTime;
protected $headType = Branch::class;
protected $headDataType = '';
/**
* Output only. A unique identifier for a PullRequest. The number appended at
* the end is generated by the server. Format: `projects/{project}/locations/{
* location}/repositories/{repository}/pullRequests/{pull_request_id}`
*
* @var string
*/
public $name;
/**
* Output only. State of the pull request (open, closed or merged).
*
* @var string
*/
public $state;
/**
* Required. The pull request title.
*
* @var string
*/
public $title;
/**
* Output only. Last updated timestamp.
*
* @var string
*/
public $updateTime;
/**
* Required. The branch to merge changes in.
*
* @param Branch $base
*/
public function setBase(Branch $base)
{
$this->base = $base;
}
/**
* @return Branch
*/
public function getBase()
{
return $this->base;
}
/**
* Optional. The pull request body. Provides a detailed description of the
* changes.
*
* @param string $body
*/
public function setBody($body)
{
$this->body = $body;
}
/**
* @return string
*/
public function getBody()
{
return $this->body;
}
/**
* Output only. Close timestamp (if closed or merged). Cleared when pull
* request is re-opened.
*
* @param string $closeTime
*/
public function setCloseTime($closeTime)
{
$this->closeTime = $closeTime;
}
/**
* @return string
*/
public function getCloseTime()
{
return $this->closeTime;
}
/**
* Output only. Creation timestamp.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Immutable. The branch containing the changes to be merged.
*
* @param Branch $head
*/
public function setHead(Branch $head)
{
$this->head = $head;
}
/**
* @return Branch
*/
public function getHead()
{
return $this->head;
}
/**
* Output only. A unique identifier for a PullRequest. The number appended at
* the end is generated by the server. Format: `projects/{project}/locations/{
* location}/repositories/{repository}/pullRequests/{pull_request_id}`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. State of the pull request (open, closed or merged).
*
* Accepted values: STATE_UNSPECIFIED, OPEN, CLOSED, MERGED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Required. The pull request title.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Output only. Last updated timestamp.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PullRequest::class, 'Google_Service_SecureSourceManager_PullRequest');
@@ -0,0 +1,152 @@
<?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\SecureSourceManager;
class PullRequestComment extends \Google\Model
{
protected $codeType = Code::class;
protected $codeDataType = '';
protected $commentType = Comment::class;
protected $commentDataType = '';
/**
* Output only. Creation timestamp.
*
* @var string
*/
public $createTime;
/**
* Identifier. Unique identifier for the pull request comment. The comment id
* is generated by the server. Format: `projects/{project}/locations/{location
* }/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments
* /{comment_id}`
*
* @var string
*/
public $name;
protected $reviewType = Review::class;
protected $reviewDataType = '';
/**
* Output only. Last updated timestamp.
*
* @var string
*/
public $updateTime;
/**
* Optional. The comment on a code line.
*
* @param Code $code
*/
public function setCode(Code $code)
{
$this->code = $code;
}
/**
* @return Code
*/
public function getCode()
{
return $this->code;
}
/**
* Optional. The general pull request comment.
*
* @param Comment $comment
*/
public function setComment(Comment $comment)
{
$this->comment = $comment;
}
/**
* @return Comment
*/
public function getComment()
{
return $this->comment;
}
/**
* Output only. Creation timestamp.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Identifier. Unique identifier for the pull request comment. The comment id
* is generated by the server. Format: `projects/{project}/locations/{location
* }/repositories/{repository}/pullRequests/{pull_request}/pullRequestComments
* /{comment_id}`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Optional. The review summary comment.
*
* @param Review $review
*/
public function setReview(Review $review)
{
$this->review = $review;
}
/**
* @return Review
*/
public function getReview()
{
return $this->review;
}
/**
* Output only. Last updated timestamp.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PullRequestComment::class, 'Google_Service_SecureSourceManager_PullRequestComment');
@@ -0,0 +1,54 @@
<?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\SecureSourceManager;
class PushOption extends \Google\Model
{
/**
* Optional. Trigger hook for matching branches only. Specified as glob
* pattern. If empty or *, events for all branches are reported. Examples:
* main, {main,release*}. See https://pkg.go.dev/github.com/gobwas/glob
* documentation.
*
* @var string
*/
public $branchFilter;
/**
* Optional. Trigger hook for matching branches only. Specified as glob
* pattern. If empty or *, events for all branches are reported. Examples:
* main, {main,release*}. See https://pkg.go.dev/github.com/gobwas/glob
* documentation.
*
* @param string $branchFilter
*/
public function setBranchFilter($branchFilter)
{
$this->branchFilter = $branchFilter;
}
/**
* @return string
*/
public function getBranchFilter()
{
return $this->branchFilter;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PushOption::class, 'Google_Service_SecureSourceManager_PushOption');
@@ -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\SecureSourceManager;
class Repository extends \Google\Model
{
/**
* Output only. Create timestamp.
*
* @var string
*/
public $createTime;
/**
* Optional. Description of the repository, which cannot exceed 500
* characters.
*
* @var string
*/
public $description;
/**
* Optional. This checksum is computed by the server based on the value of
* other fields, and may be sent on update and delete requests to ensure the
* client has an up-to-date value before proceeding.
*
* @var string
*/
public $etag;
protected $initialConfigType = InitialConfig::class;
protected $initialConfigDataType = '';
/**
* Optional. The name of the instance in which the repository is hosted,
* formatted as
* `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
* When creating repository via securesourcemanager.googleapis.com, this field
* is used as input. When creating repository via *.sourcemanager.dev, this
* field is output only.
*
* @var string
*/
public $instance;
/**
* Optional. A unique identifier for a repository. The name should be of the
* format:
* `projects/{project}/locations/{location_id}/repositories/{repository_id}`
*
* @var string
*/
public $name;
/**
* Output only. Unique identifier of the repository.
*
* @var string
*/
public $uid;
/**
* Output only. Update timestamp.
*
* @var string
*/
public $updateTime;
protected $urisType = URIs::class;
protected $urisDataType = '';
/**
* Output only. Create timestamp.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Optional. Description of the repository, which cannot exceed 500
* characters.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Optional. This checksum is computed by the server based on the value of
* other fields, and may be sent on update and delete requests to ensure the
* client has an up-to-date value before proceeding.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Input only. Initial configurations for the repository.
*
* @param InitialConfig $initialConfig
*/
public function setInitialConfig(InitialConfig $initialConfig)
{
$this->initialConfig = $initialConfig;
}
/**
* @return InitialConfig
*/
public function getInitialConfig()
{
return $this->initialConfig;
}
/**
* Optional. The name of the instance in which the repository is hosted,
* formatted as
* `projects/{project_number}/locations/{location_id}/instances/{instance_id}`
* When creating repository via securesourcemanager.googleapis.com, this field
* is used as input. When creating repository via *.sourcemanager.dev, this
* field is output only.
*
* @param string $instance
*/
public function setInstance($instance)
{
$this->instance = $instance;
}
/**
* @return string
*/
public function getInstance()
{
return $this->instance;
}
/**
* Optional. A unique identifier for a repository. The name should be of the
* format:
* `projects/{project}/locations/{location_id}/repositories/{repository_id}`
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Output only. Unique identifier of the repository.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* Output only. Update timestamp.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Output only. URIs for the repository.
*
* @param URIs $uris
*/
public function setUris(URIs $uris)
{
$this->uris = $uris;
}
/**
* @return URIs
*/
public function getUris()
{
return $this->uris;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Repository::class, 'Google_Service_SecureSourceManager_Repository');
@@ -0,0 +1,81 @@
<?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\SecureSourceManager;
class ResolvePullRequestCommentsRequest extends \Google\Collection
{
protected $collection_key = 'names';
/**
* Optional. If set, at least one comment in a thread is required, rest of the
* comments in the same thread will be automatically updated to resolved. If
* unset, all comments in the same thread need be present.
*
* @var bool
*/
public $autoFill;
/**
* Required. The names of the pull request comments to resolve. Format: `proje
* cts/{project_number}/locations/{location_id}/repositories/{repository_id}/p
* ullRequests/{pull_request_id}/pullRequestComments/{comment_id}` Only
* comments from the same threads are allowed in the same request.
*
* @var string[]
*/
public $names;
/**
* Optional. If set, at least one comment in a thread is required, rest of the
* comments in the same thread will be automatically updated to resolved. If
* unset, all comments in the same thread need be present.
*
* @param bool $autoFill
*/
public function setAutoFill($autoFill)
{
$this->autoFill = $autoFill;
}
/**
* @return bool
*/
public function getAutoFill()
{
return $this->autoFill;
}
/**
* Required. The names of the pull request comments to resolve. Format: `proje
* cts/{project_number}/locations/{location_id}/repositories/{repository_id}/p
* ullRequests/{pull_request_id}/pullRequestComments/{comment_id}` Only
* comments from the same threads are allowed in the same request.
*
* @param string[] $names
*/
public function setNames($names)
{
$this->names = $names;
}
/**
* @return string[]
*/
public function getNames()
{
return $this->names;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResolvePullRequestCommentsRequest::class, 'Google_Service_SecureSourceManager_ResolvePullRequestCommentsRequest');
@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $securesourcemanagerService = new Google\Service\SecureSourceManager(...);
* $projects = $securesourcemanagerService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_SecureSourceManager_Resource_Projects');
@@ -0,0 +1,77 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager\Resource;
use Google\Service\SecureSourceManager\ListLocationsResponse;
use Google\Service\SecureSourceManager\Location;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $securesourcemanagerService = new Google\Service\SecureSourceManager(...);
* $locations = $securesourcemanagerService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
/**
* Gets information about a location. (locations.get)
*
* @param string $name Resource name for the location.
* @param array $optParams Optional parameters.
* @return Location
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Location::class);
}
/**
* Lists information about the supported locations for this service.
* (locations.listProjectsLocations)
*
* @param string $name The resource that owns the locations collection, if
* applicable.
* @param array $optParams Optional parameters.
*
* @opt_param string extraLocationTypes Optional. A list of extra location types
* that should be used as conditions for controlling the visibility of the
* locations.
* @opt_param string filter A filter to narrow down results to a preferred
* subset. The filtering language accepts strings like `"displayName=tokyo"`,
* and is documented in more detail in [AIP-160](https://google.aip.dev/160).
* @opt_param int pageSize The maximum number of results to return. If not set,
* the service selects a default.
* @opt_param string pageToken A page token received from the `next_page_token`
* field in the response. Send that page token to receive the subsequent page.
* @return ListLocationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListLocationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_SecureSourceManager_Resource_ProjectsLocations');
@@ -0,0 +1,205 @@
<?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\SecureSourceManager\Resource;
use Google\Service\SecureSourceManager\Instance;
use Google\Service\SecureSourceManager\ListInstancesResponse;
use Google\Service\SecureSourceManager\Operation;
use Google\Service\SecureSourceManager\Policy;
use Google\Service\SecureSourceManager\SetIamPolicyRequest;
use Google\Service\SecureSourceManager\TestIamPermissionsRequest;
use Google\Service\SecureSourceManager\TestIamPermissionsResponse;
/**
* The "instances" collection of methods.
* Typical usage is:
* <code>
* $securesourcemanagerService = new Google\Service\SecureSourceManager(...);
* $instances = $securesourcemanagerService->projects_locations_instances;
* </code>
*/
class ProjectsLocationsInstances extends \Google\Service\Resource
{
/**
* Creates a new instance in a given project and location. (instances.create)
*
* @param string $parent Required. Value for parent.
* @param Instance $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string instanceId Required. ID of the instance to be created.
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes since the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Instance $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a single instance. (instances.delete)
*
* @param string $name Required. Name of the resource.
* @param array $optParams Optional parameters.
*
* @opt_param string requestId Optional. An optional request ID to identify
* requests. Specify a unique request ID so that if you must retry your request,
* the server will know to ignore the request if it has already been completed.
* The server will guarantee that for at least 60 minutes after the first
* request. For example, consider a situation where you make an initial request
* and the request times out. If you make the request again with the same
* request ID, the server can check if original operation with the same request
* ID was received, and if so, will ignore the second request. This prevents
* clients from accidentally creating duplicate commitments. The request ID must
* be a valid UUID with the exception that zero UUID is not supported
* (00000000-0000-0000-0000-000000000000).
* @return Operation
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], Operation::class);
}
/**
* Gets details of a single instance. (instances.get)
*
* @param string $name Required. Name of the resource.
* @param array $optParams Optional parameters.
* @return Instance
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Instance::class);
}
/**
* Gets the access control policy for a resource. Returns an empty policy if the
* resource exists and does not have a policy set. (instances.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 array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists Instances in a given project and location.
* (instances.listProjectsLocationsInstances)
*
* @param string $parent Required. Parent value for ListInstancesRequest.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter for filtering results.
* @opt_param string orderBy Hint for how to order the results.
* @opt_param int pageSize Requested page size. Server may return fewer items
* than requested. If unspecified, server will pick an appropriate default.
* @opt_param string pageToken A token identifying a page of results the server
* should return.
* @return ListInstancesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsInstances($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListInstancesResponse::class);
}
/**
* Sets the access control policy on the specified resource. Replaces any
* existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and
* `PERMISSION_DENIED` errors. (instances.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.
* (instances.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(ProjectsLocationsInstances::class, 'Google_Service_SecureSourceManager_Resource_ProjectsLocationsInstances');
@@ -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\SecureSourceManager\Resource;
use Google\Service\SecureSourceManager\CancelOperationRequest;
use Google\Service\SecureSourceManager\ListOperationsResponse;
use Google\Service\SecureSourceManager\Operation;
use Google\Service\SecureSourceManager\SecuresourcemanagerEmpty;
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $securesourcemanagerService = new Google\Service\SecureSourceManager(...);
* $operations = $securesourcemanagerService->projects_locations_operations;
* </code>
*/
class ProjectsLocationsOperations extends \Google\Service\Resource
{
/**
* Starts asynchronous cancellation on a long-running operation. The server
* makes a best effort to cancel the operation, but success is not guaranteed.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
* other methods to check whether the cancellation succeeded or whether the
* operation completed despite cancellation. On successful cancellation, the
* operation is not deleted; instead, it becomes an operation with an
* Operation.error value with a google.rpc.Status.code of `1`, corresponding to
* `Code.CANCELLED`. (operations.cancel)
*
* @param string $name The name of the operation resource to be cancelled.
* @param CancelOperationRequest $postBody
* @param array $optParams Optional parameters.
* @return SecuresourcemanagerEmpty
* @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], SecuresourcemanagerEmpty::class);
}
/**
* Deletes a long-running operation. This method indicates that the client is no
* longer interested in the operation result. It does not cancel the operation.
* If the server doesn't support this method, it returns
* `google.rpc.Code.UNIMPLEMENTED`. (operations.delete)
*
* @param string $name The name of the operation resource to be deleted.
* @param array $optParams Optional parameters.
* @return SecuresourcemanagerEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], SecuresourcemanagerEmpty::class);
}
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Operation::class);
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
* (operations.listProjectsLocationsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param int pageSize The standard list page size.
* @opt_param string pageToken The standard list page token.
* @return ListOperationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsOperations($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListOperationsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsOperations::class, 'Google_Service_SecureSourceManager_Resource_ProjectsLocationsOperations');
@@ -0,0 +1,270 @@
<?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\SecureSourceManager\Resource;
use Google\Service\SecureSourceManager\FetchBlobResponse;
use Google\Service\SecureSourceManager\FetchTreeResponse;
use Google\Service\SecureSourceManager\ListRepositoriesResponse;
use Google\Service\SecureSourceManager\Operation;
use Google\Service\SecureSourceManager\Policy;
use Google\Service\SecureSourceManager\Repository;
use Google\Service\SecureSourceManager\SetIamPolicyRequest;
use Google\Service\SecureSourceManager\TestIamPermissionsRequest;
use Google\Service\SecureSourceManager\TestIamPermissionsResponse;
/**
* The "repositories" collection of methods.
* Typical usage is:
* <code>
* $securesourcemanagerService = new Google\Service\SecureSourceManager(...);
* $repositories = $securesourcemanagerService->projects_locations_repositories;
* </code>
*/
class ProjectsLocationsRepositories extends \Google\Service\Resource
{
/**
* Creates a new repository in a given project and location. The
* Repository.Instance field is required in the request body for requests using
* the securesourcemanager.googleapis.com endpoint. (repositories.create)
*
* @param string $parent Required. The project in which to create the
* repository. Values are of the form
* `projects/{project_number}/locations/{location_id}`
* @param Repository $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string repositoryId Required. The ID to use for the repository,
* which will become the final component of the repository's resource name. This
* value should be 4-63 characters, and valid characters are /a-z-/.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Repository $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a Repository. (repositories.delete)
*
* @param string $name Required. Name of the repository to delete. The format is
* `projects/{project_number}/locations/{location_id}/repositories/{repository_i
* d}`.
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, and the repository is
* not found, the request will succeed but no action will be taken on the
* server.
* @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);
}
/**
* Fetches a blob from a repository. (repositories.fetchBlob)
*
* @param string $repository Required. The format is `projects/{project_number}/
* locations/{location_id}/repositories/{repository_id}`. Specifies the
* repository containing the blob.
* @param array $optParams Optional parameters.
*
* @opt_param string sha Required. The SHA-1 hash of the blob to retrieve.
* @return FetchBlobResponse
* @throws \Google\Service\Exception
*/
public function fetchBlob($repository, $optParams = [])
{
$params = ['repository' => $repository];
$params = array_merge($params, $optParams);
return $this->call('fetchBlob', [$params], FetchBlobResponse::class);
}
/**
* Fetches a tree from a repository. (repositories.fetchTree)
*
* @param string $repository Required. The format is `projects/{project_number}/
* locations/{location_id}/repositories/{repository_id}`. Specifies the
* repository to fetch the tree from.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, at most 10,000 items will be
* returned.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @opt_param bool recursive Optional. If true, include all subfolders and their
* files in the response. If false, only the immediate children are returned.
* @opt_param string ref Optional. `ref` can be a SHA-1 hash, a branch name, or
* a tag. Specifies which tree to fetch. If not specified, the default branch
* will be used.
* @return FetchTreeResponse
* @throws \Google\Service\Exception
*/
public function fetchTree($repository, $optParams = [])
{
$params = ['repository' => $repository];
$params = array_merge($params, $optParams);
return $this->call('fetchTree', [$params], FetchTreeResponse::class);
}
/**
* Gets metadata of a repository. (repositories.get)
*
* @param string $name Required. Name of the repository to retrieve. The format
* is `projects/{project_number}/locations/{location_id}/repositories/{repositor
* y_id}`.
* @param array $optParams Optional parameters.
* @return Repository
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Repository::class);
}
/**
* Get IAM policy for a repository. (repositories.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 array $optParams Optional parameters.
*
* @opt_param int options.requestedPolicyVersion Optional. The maximum policy
* version that will be used to format the policy. Valid values are 0, 1, and 3.
* Requests specifying an invalid value will be rejected. Requests for policies
* with any conditional role bindings must specify version 3. Policies with no
* conditional role bindings may specify any valid value or leave the field
* unset. The policy in the response might use the policy version that you
* specified, or it might use a lower policy version. For example, if you
* specify version 3, but the policy has no conditional role bindings, the
* response uses version 1. To learn which resources support conditions in their
* IAM policies, see the [IAM
* documentation](https://cloud.google.com/iam/help/conditions/resource-
* policies).
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, $optParams = [])
{
$params = ['resource' => $resource];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists Repositories in a given project and location. The instance field is
* required in the query parameter for requests using the
* securesourcemanager.googleapis.com endpoint.
* (repositories.listProjectsLocationsRepositories)
*
* @param string $parent Required. Parent value for ListRepositoriesRequest.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter results.
* @opt_param string instance Optional. The name of the instance in which the
* repository is hosted, formatted as
* `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
* When listing repositories via securesourcemanager.googleapis.com, this field
* is required. When listing repositories via *.sourcemanager.dev, this field is
* ignored.
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken A token identifying a page of results the server
* should return.
* @return ListRepositoriesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRepositories($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListRepositoriesResponse::class);
}
/**
* Updates the metadata of a repository. (repositories.patch)
*
* @param string $name Optional. A unique identifier for a repository. The name
* should be of the format:
* `projects/{project}/locations/{location_id}/repositories/{repository_id}`
* @param Repository $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the repository resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. If the user does
* not provide a mask then all fields will be overwritten.
* @opt_param bool validateOnly Optional. False by default. If set to true, the
* request is validated and the user is provided with an expected result, but no
* actual change is made.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Repository $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Set IAM policy on a repository. (repositories.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);
}
/**
* Test IAM permissions on a repository. IAM permission checks are not required
* on this method. (repositories.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(ProjectsLocationsRepositories::class, 'Google_Service_SecureSourceManager_Resource_ProjectsLocationsRepositories');
@@ -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\SecureSourceManager\Resource;
use Google\Service\SecureSourceManager\BranchRule;
use Google\Service\SecureSourceManager\ListBranchRulesResponse;
use Google\Service\SecureSourceManager\Operation;
/**
* The "branchRules" collection of methods.
* Typical usage is:
* <code>
* $securesourcemanagerService = new Google\Service\SecureSourceManager(...);
* $branchRules = $securesourcemanagerService->projects_locations_repositories_branchRules;
* </code>
*/
class ProjectsLocationsRepositoriesBranchRules extends \Google\Service\Resource
{
/**
* CreateBranchRule creates a branch rule in a given repository.
* (branchRules.create)
*
* @param string $parent
* @param BranchRule $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string branchRuleId
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, BranchRule $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* DeleteBranchRule deletes a branch rule. (branchRules.delete)
*
* @param string $name
* @param array $optParams Optional parameters.
*
* @opt_param bool allowMissing Optional. If set to true, and the branch rule is
* not found, the request will succeed but no action will be taken on the
* server.
* @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);
}
/**
* GetBranchRule gets a branch rule. (branchRules.get)
*
* @param string $name Required. Name of the repository to retrieve. The format
* is `projects/{project}/locations/{location}/repositories/{repository}/branchR
* ules/{branch_rule}`.
* @param array $optParams Optional parameters.
* @return BranchRule
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], BranchRule::class);
}
/**
* ListBranchRules lists branch rules in a given repository.
* (branchRules.listProjectsLocationsRepositoriesBranchRules)
*
* @param string $parent
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize
* @opt_param string pageToken
* @return ListBranchRulesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRepositoriesBranchRules($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBranchRulesResponse::class);
}
/**
* UpdateBranchRule updates a branch rule. (branchRules.patch)
*
* @param string $name Optional. A unique identifier for a BranchRule. The name
* should be of the format: `projects/{project}/locations/{location}/repositorie
* s/{repository}/branchRules/{branch_rule}`
* @param BranchRule $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Field mask is used to specify the
* fields to be overwritten in the branchRule resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. The special value
* "*" means full replacement.
* @opt_param bool validateOnly Optional. If set, validate the request and
* preview the review, but do not actually post it. (https://google.aip.dev/163,
* for declarative friendly)
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, BranchRule $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRepositoriesBranchRules::class, 'Google_Service_SecureSourceManager_Resource_ProjectsLocationsRepositoriesBranchRules');
@@ -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\SecureSourceManager\Resource;
use Google\Service\SecureSourceManager\Hook;
use Google\Service\SecureSourceManager\ListHooksResponse;
use Google\Service\SecureSourceManager\Operation;
/**
* The "hooks" collection of methods.
* Typical usage is:
* <code>
* $securesourcemanagerService = new Google\Service\SecureSourceManager(...);
* $hooks = $securesourcemanagerService->projects_locations_repositories_hooks;
* </code>
*/
class ProjectsLocationsRepositoriesHooks extends \Google\Service\Resource
{
/**
* Creates a new hook in a given repository. (hooks.create)
*
* @param string $parent Required. The repository in which to create the hook.
* Values are of the form `projects/{project_number}/locations/{location_id}/rep
* ositories/{repository_id}`
* @param Hook $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string hookId Required. The ID to use for the hook, which will
* become the final component of the hook's resource name. This value restricts
* to lower-case letters, numbers, and hyphen, with the first character a
* letter, the last a letter or a number, and a 63 character maximum.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Hook $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a Hook. (hooks.delete)
*
* @param string $name Required. Name of the hook to delete. The format is `proj
* ects/{project_number}/locations/{location_id}/repositories/{repository_id}/ho
* oks/{hook_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 metadata of a hook. (hooks.get)
*
* @param string $name Required. Name of the hook to retrieve. The format is `pr
* ojects/{project_number}/locations/{location_id}/repositories/{repository_id}/
* hooks/{hook_id}`.
* @param array $optParams Optional parameters.
* @return Hook
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Hook::class);
}
/**
* Lists hooks in a given repository.
* (hooks.listProjectsLocationsRepositoriesHooks)
*
* @param string $parent Required. Parent value for ListHooksRequest.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListHooksResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRepositoriesHooks($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListHooksResponse::class);
}
/**
* Updates the metadata of a hook. (hooks.patch)
*
* @param string $name Identifier. A unique identifier for a Hook. The name
* should be of the format: `projects/{project}/locations/{location_id}/reposito
* ries/{repository_id}/hooks/{hook_id}`
* @param Hook $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. Field mask is used to specify the
* fields to be overwritten in the hook resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. The special value
* "*" means full replacement.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Hook $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRepositoriesHooks::class, 'Google_Service_SecureSourceManager_Resource_ProjectsLocationsRepositoriesHooks');
@@ -0,0 +1,173 @@
<?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\SecureSourceManager\Resource;
use Google\Service\SecureSourceManager\CloseIssueRequest;
use Google\Service\SecureSourceManager\Issue;
use Google\Service\SecureSourceManager\ListIssuesResponse;
use Google\Service\SecureSourceManager\OpenIssueRequest;
use Google\Service\SecureSourceManager\Operation;
/**
* The "issues" collection of methods.
* Typical usage is:
* <code>
* $securesourcemanagerService = new Google\Service\SecureSourceManager(...);
* $issues = $securesourcemanagerService->projects_locations_repositories_issues;
* </code>
*/
class ProjectsLocationsRepositoriesIssues extends \Google\Service\Resource
{
/**
* Closes an issue. (issues.close)
*
* @param string $name Required. Name of the issue to close. The format is `proj
* ects/{project_number}/locations/{location_id}/repositories/{repository_id}/is
* sues/{issue_id}`.
* @param CloseIssueRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function close($name, CloseIssueRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('close', [$params], Operation::class);
}
/**
* Creates an issue. (issues.create)
*
* @param string $parent Required. The repository in which to create the issue.
* Format: `projects/{project_number}/locations/{location_id}/repositories/{repo
* sitory_id}`
* @param Issue $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, Issue $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes an issue. (issues.delete)
*
* @param string $name Required. Name of the issue to delete. The format is `pro
* jects/{project_number}/locations/{location_id}/repositories/{repository_id}/i
* ssues/{issue_id}`.
* @param array $optParams Optional parameters.
*
* @opt_param string etag Optional. The current etag of the issue. If the etag
* is provided and does not match the current etag of the issue, deletion will
* be blocked and an ABORTED error will be returned.
* @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 an issue. (issues.get)
*
* @param string $name Required. Name of the issue to retrieve. The format is `p
* rojects/{project}/locations/{location}/repositories/{repository}/issues/{issu
* e_id}`.
* @param array $optParams Optional parameters.
* @return Issue
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Issue::class);
}
/**
* Lists issues in a repository.
* (issues.listProjectsLocationsRepositoriesIssues)
*
* @param string $parent Required. The repository in which to list issues.
* Format: `projects/{project_number}/locations/{location_id}/repositories/{repo
* sitory_id}`
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Used to filter the resulting issues list.
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListIssuesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRepositoriesIssues($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListIssuesResponse::class);
}
/**
* Opens an issue. (issues.open)
*
* @param string $name Required. Name of the issue to open. The format is `proje
* cts/{project_number}/locations/{location_id}/repositories/{repository_id}/iss
* ues/{issue_id}`.
* @param OpenIssueRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function open($name, OpenIssueRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('open', [$params], Operation::class);
}
/**
* Updates a issue. (issues.patch)
*
* @param string $name Identifier. Unique identifier for an issue. The issue id
* is generated by the server. Format: `projects/{project}/locations/{location}/
* repositories/{repository}/issues/{issue_id}`
* @param Issue $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the issue resource by the update. The fields
* specified in the update_mask are relative to the resource, not the full
* request. A field will be overwritten if it is in the mask. The special value
* "*" means full replacement.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, Issue $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRepositoriesIssues::class, 'Google_Service_SecureSourceManager_Resource_ProjectsLocationsRepositoriesIssues');
@@ -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\SecureSourceManager\Resource;
use Google\Service\SecureSourceManager\IssueComment;
use Google\Service\SecureSourceManager\ListIssueCommentsResponse;
use Google\Service\SecureSourceManager\Operation;
/**
* The "issueComments" collection of methods.
* Typical usage is:
* <code>
* $securesourcemanagerService = new Google\Service\SecureSourceManager(...);
* $issueComments = $securesourcemanagerService->projects_locations_repositories_issues_issueComments;
* </code>
*/
class ProjectsLocationsRepositoriesIssuesIssueComments extends \Google\Service\Resource
{
/**
* Creates an issue comment. (issueComments.create)
*
* @param string $parent Required. The issue in which to create the issue
* comment. Format: `projects/{project_number}/locations/{location_id}/repositor
* ies/{repository_id}/issues/{issue_id}`
* @param IssueComment $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, IssueComment $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes an issue comment. (issueComments.delete)
*
* @param string $name Required. Name of the issue comment to delete. The format
* is `projects/{project_number}/locations/{location_id}/repositories/{repositor
* y_id}/issues/{issue_id}/issueComments/{comment_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 an issue comment. (issueComments.get)
*
* @param string $name Required. Name of the issue comment to retrieve. The
* format is `projects/{project}/locations/{location}/repositories/{repository}/
* issues/{issue_id}/issueComments/{comment_id}`.
* @param array $optParams Optional parameters.
* @return IssueComment
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], IssueComment::class);
}
/**
* Lists comments in an issue.
* (issueComments.listProjectsLocationsRepositoriesIssuesIssueComments)
*
* @param string $parent Required. The issue in which to list the comments.
* Format: `projects/{project_number}/locations/{location_id}/repositories/{repo
* sitory_id}/issues/{issue_id}`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListIssueCommentsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRepositoriesIssuesIssueComments($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListIssueCommentsResponse::class);
}
/**
* Updates an issue comment. (issueComments.patch)
*
* @param string $name Identifier. Unique identifier for an issue comment. The
* comment id is generated by the server. Format: `projects/{project}/locations/
* {location}/repositories/{repository}/issues/{issue}/issueComments/{comment_id
* }`
* @param IssueComment $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the issue comment resource by the update. The
* fields specified in the update_mask are relative to the resource, not the
* full request. A field will be overwritten if it is in the mask. The special
* value "*" means full replacement.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, IssueComment $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRepositoriesIssuesIssueComments::class, 'Google_Service_SecureSourceManager_Resource_ProjectsLocationsRepositoriesIssuesIssueComments');
@@ -0,0 +1,194 @@
<?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\SecureSourceManager\Resource;
use Google\Service\SecureSourceManager\ClosePullRequestRequest;
use Google\Service\SecureSourceManager\ListPullRequestFileDiffsResponse;
use Google\Service\SecureSourceManager\ListPullRequestsResponse;
use Google\Service\SecureSourceManager\MergePullRequestRequest;
use Google\Service\SecureSourceManager\OpenPullRequestRequest;
use Google\Service\SecureSourceManager\Operation;
use Google\Service\SecureSourceManager\PullRequest;
/**
* The "pullRequests" collection of methods.
* Typical usage is:
* <code>
* $securesourcemanagerService = new Google\Service\SecureSourceManager(...);
* $pullRequests = $securesourcemanagerService->projects_locations_repositories_pullRequests;
* </code>
*/
class ProjectsLocationsRepositoriesPullRequests extends \Google\Service\Resource
{
/**
* Closes a pull request without merging. (pullRequests.close)
*
* @param string $name Required. The pull request to close. Format: `projects/{p
* roject_number}/locations/{location_id}/repositories/{repository_id}/pullReque
* sts/{pull_request_id}`
* @param ClosePullRequestRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function close($name, ClosePullRequestRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('close', [$params], Operation::class);
}
/**
* Creates a pull request. (pullRequests.create)
*
* @param string $parent Required. The repository that the pull request is
* created from. Format: `projects/{project_number}/locations/{location_id}/repo
* sitories/{repository_id}`
* @param PullRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, PullRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Gets a pull request. (pullRequests.get)
*
* @param string $name Required. Name of the pull request to retrieve. The
* format is `projects/{project}/locations/{location}/repositories/{repository}/
* pullRequests/{pull_request}`.
* @param array $optParams Optional parameters.
* @return PullRequest
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], PullRequest::class);
}
/**
* Lists pull requests in a repository.
* (pullRequests.listProjectsLocationsRepositoriesPullRequests)
*
* @param string $parent Required. The repository in which to list pull
* requests. Format: `projects/{project_number}/locations/{location_id}/reposito
* ries/{repository_id}`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListPullRequestsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRepositoriesPullRequests($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPullRequestsResponse::class);
}
/**
* Lists a pull request's file diffs. (pullRequests.listFileDiffs)
*
* @param string $name Required. The pull request to list file diffs for.
* Format: `projects/{project_number}/locations/{location_id}/repositories/{repo
* sitory_id}/pullRequests/{pull_request_id}`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Requested page size. Server may return
* fewer items than requested. If unspecified, server will pick an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListPullRequestFileDiffsResponse
* @throws \Google\Service\Exception
*/
public function listFileDiffs($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('listFileDiffs', [$params], ListPullRequestFileDiffsResponse::class);
}
/**
* Merges a pull request. (pullRequests.merge)
*
* @param string $name Required. The pull request to merge. Format: `projects/{p
* roject_number}/locations/{location_id}/repositories/{repository_id}/pullReque
* sts/{pull_request_id}`
* @param MergePullRequestRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function merge($name, MergePullRequestRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('merge', [$params], Operation::class);
}
/**
* Opens a pull request. (pullRequests.open)
*
* @param string $name Required. The pull request to open. Format: `projects/{pr
* oject_number}/locations/{location_id}/repositories/{repository_id}/pullReques
* ts/{pull_request_id}`
* @param OpenPullRequestRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function open($name, OpenPullRequestRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('open', [$params], Operation::class);
}
/**
* Updates a pull request. (pullRequests.patch)
*
* @param string $name Output only. A unique identifier for a PullRequest. The
* number appended at the end is generated by the server. Format: `projects/{pro
* ject}/locations/{location}/repositories/{repository}/pullRequests/{pull_reque
* st_id}`
* @param PullRequest $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the pull request resource by the update. The
* fields specified in the update_mask are relative to the resource, not the
* full request. A field will be overwritten if it is in the mask. The special
* value "*" means full replacement.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, PullRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRepositoriesPullRequests::class, 'Google_Service_SecureSourceManager_Resource_ProjectsLocationsRepositoriesPullRequests');
@@ -0,0 +1,187 @@
<?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\SecureSourceManager\Resource;
use Google\Service\SecureSourceManager\BatchCreatePullRequestCommentsRequest;
use Google\Service\SecureSourceManager\ListPullRequestCommentsResponse;
use Google\Service\SecureSourceManager\Operation;
use Google\Service\SecureSourceManager\PullRequestComment;
use Google\Service\SecureSourceManager\ResolvePullRequestCommentsRequest;
use Google\Service\SecureSourceManager\UnresolvePullRequestCommentsRequest;
/**
* The "pullRequestComments" collection of methods.
* Typical usage is:
* <code>
* $securesourcemanagerService = new Google\Service\SecureSourceManager(...);
* $pullRequestComments = $securesourcemanagerService->projects_locations_repositories_pullRequests_pullRequestComments;
* </code>
*/
class ProjectsLocationsRepositoriesPullRequestsPullRequestComments extends \Google\Service\Resource
{
/**
* Batch creates pull request comments. (pullRequestComments.batchCreate)
*
* @param string $parent Required. The pull request in which to create the pull
* request comments. Format: `projects/{project_number}/locations/{location_id}/
* repositories/{repository_id}/pullRequests/{pull_request_id}`
* @param BatchCreatePullRequestCommentsRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function batchCreate($parent, BatchCreatePullRequestCommentsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchCreate', [$params], Operation::class);
}
/**
* Creates a pull request comment. (pullRequestComments.create)
*
* @param string $parent Required. The pull request in which to create the pull
* request comment. Format: `projects/{project_number}/locations/{location_id}/r
* epositories/{repository_id}/pullRequests/{pull_request_id}`
* @param PullRequestComment $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function create($parent, PullRequestComment $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Operation::class);
}
/**
* Deletes a pull request comment. (pullRequestComments.delete)
*
* @param string $name Required. Name of the pull request comment to delete. The
* format is `projects/{project_number}/locations/{location_id}/repositories/{re
* pository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_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 pull request comment. (pullRequestComments.get)
*
* @param string $name Required. Name of the pull request comment to retrieve.
* The format is `projects/{project_number}/locations/{location_id}/repositories
* /{repository_id}/pullRequests/{pull_request_id}/pullRequestComments/{comment_
* id}`.
* @param array $optParams Optional parameters.
* @return PullRequestComment
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], PullRequestComment::class);
}
/**
* Lists pull request comments. (pullRequestComments.listProjectsLocationsReposi
* toriesPullRequestsPullRequestComments)
*
* @param string $parent Required. The pull request in which to list pull
* request comments. Format: `projects/{project_number}/locations/{location_id}/
* repositories/{repository_id}/pullRequests/{pull_request_id}`
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Optional. Requested page size. If unspecified, at
* most 100 pull request comments will be returned. The maximum value is 100;
* values above 100 will be coerced to 100.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return.
* @return ListPullRequestCommentsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRepositoriesPullRequestsPullRequestComments($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListPullRequestCommentsResponse::class);
}
/**
* Updates a pull request comment. (pullRequestComments.patch)
*
* @param string $name Identifier. Unique identifier for the pull request
* comment. The comment id is generated by the server. Format: `projects/{projec
* t}/locations/{location}/repositories/{repository}/pullRequests/{pull_request}
* /pullRequestComments/{comment_id}`
* @param PullRequestComment $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Optional. Field mask is used to specify the
* fields to be overwritten in the pull request comment resource by the update.
* Updatable fields are `body`.
* @return Operation
* @throws \Google\Service\Exception
*/
public function patch($name, PullRequestComment $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Operation::class);
}
/**
* Resolves pull request comments. (pullRequestComments.resolve)
*
* @param string $parent Required. The pull request in which to resolve the pull
* request comments. Format: `projects/{project_number}/locations/{location_id}/
* repositories/{repository_id}/pullRequests/{pull_request_id}`
* @param ResolvePullRequestCommentsRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function resolve($parent, ResolvePullRequestCommentsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('resolve', [$params], Operation::class);
}
/**
* Unresolves pull request comment. (pullRequestComments.unresolve)
*
* @param string $parent Required. The pull request in which to resolve the pull
* request comments. Format: `projects/{project_number}/locations/{location_id}/
* repositories/{repository_id}/pullRequests/{pull_request_id}`
* @param UnresolvePullRequestCommentsRequest $postBody
* @param array $optParams Optional parameters.
* @return Operation
* @throws \Google\Service\Exception
*/
public function unresolve($parent, UnresolvePullRequestCommentsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('unresolve', [$params], Operation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRepositoriesPullRequestsPullRequestComments::class, 'Google_Service_SecureSourceManager_Resource_ProjectsLocationsRepositoriesPullRequestsPullRequestComments');
@@ -0,0 +1,111 @@
<?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\SecureSourceManager;
class Review extends \Google\Model
{
/**
* Unspecified.
*/
public const ACTION_TYPE_ACTION_TYPE_UNSPECIFIED = 'ACTION_TYPE_UNSPECIFIED';
/**
* A general review comment.
*/
public const ACTION_TYPE_COMMENT = 'COMMENT';
/**
* Change required from this review.
*/
public const ACTION_TYPE_CHANGE_REQUESTED = 'CHANGE_REQUESTED';
/**
* Change approved from this review.
*/
public const ACTION_TYPE_APPROVED = 'APPROVED';
/**
* Required. The review action type.
*
* @var string
*/
public $actionType;
/**
* Optional. The comment body.
*
* @var string
*/
public $body;
/**
* Output only. The effective commit sha this review is pointing to.
*
* @var string
*/
public $effectiveCommitSha;
/**
* Required. The review action type.
*
* Accepted values: ACTION_TYPE_UNSPECIFIED, COMMENT, CHANGE_REQUESTED,
* APPROVED
*
* @param self::ACTION_TYPE_* $actionType
*/
public function setActionType($actionType)
{
$this->actionType = $actionType;
}
/**
* @return self::ACTION_TYPE_*
*/
public function getActionType()
{
return $this->actionType;
}
/**
* Optional. The comment body.
*
* @param string $body
*/
public function setBody($body)
{
$this->body = $body;
}
/**
* @return string
*/
public function getBody()
{
return $this->body;
}
/**
* Output only. The effective commit sha this review is pointing to.
*
* @param string $effectiveCommitSha
*/
public function setEffectiveCommitSha($effectiveCommitSha)
{
$this->effectiveCommitSha = $effectiveCommitSha;
}
/**
* @return string
*/
public function getEffectiveCommitSha()
{
return $this->effectiveCommitSha;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Review::class, 'Google_Service_SecureSourceManager_Review');
@@ -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\SecureSourceManager;
class SecuresourcemanagerEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SecuresourcemanagerEmpty::class, 'Google_Service_SecureSourceManager_SecuresourcemanagerEmpty');
@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class SetIamPolicyRequest extends \Google\Model
{
protected $policyType = Policy::class;
protected $policyDataType = '';
/**
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used: `paths: "bindings, etag"`
*
* @var string
*/
public $updateMask;
/**
* REQUIRED: The complete policy to be applied to the `resource`. The size of
* the policy is limited to a few 10s of KB. An empty policy is a valid policy
* but certain Google Cloud services (such as Projects) might reject them.
*
* @param Policy $policy
*/
public function setPolicy(Policy $policy)
{
$this->policy = $policy;
}
/**
* @return Policy
*/
public function getPolicy()
{
return $this->policy;
}
/**
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
* the fields in the mask will be modified. If no mask is provided, the
* following default mask is used: `paths: "bindings, etag"`
*
* @param string $updateMask
*/
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
/**
* @return string
*/
public function getUpdateMask()
{
return $this->updateMask;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SetIamPolicyRequest::class, 'Google_Service_SecureSourceManager_SetIamPolicyRequest');
@@ -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\SecureSourceManager;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @var int
*/
public $code;
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @var array[]
*/
public $details;
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @var string
*/
public $message;
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @param int $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @param array[] $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_SecureSourceManager_Status');
@@ -0,0 +1,55 @@
<?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\SecureSourceManager;
class TestIamPermissionsRequest extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* The set of permissions to check for the `resource`. Permissions with
* wildcards (such as `*` or `storage.*`) are not allowed. For more
* information see [IAM
* Overview](https://cloud.google.com/iam/docs/overview#permissions).
*
* @var string[]
*/
public $permissions;
/**
* The set of permissions to check for the `resource`. Permissions with
* wildcards (such as `*` or `storage.*`) are not allowed. For more
* information see [IAM
* Overview](https://cloud.google.com/iam/docs/overview#permissions).
*
* @param string[] $permissions
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return string[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestIamPermissionsRequest::class, 'Google_Service_SecureSourceManager_TestIamPermissionsRequest');
@@ -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\SecureSourceManager;
class TestIamPermissionsResponse extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* A subset of `TestPermissionsRequest.permissions` that the caller is
* allowed.
*
* @var string[]
*/
public $permissions;
/**
* A subset of `TestPermissionsRequest.permissions` that the caller is
* allowed.
*
* @param string[] $permissions
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return string[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TestIamPermissionsResponse::class, 'Google_Service_SecureSourceManager_TestIamPermissionsResponse');
@@ -0,0 +1,158 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class TreeEntry extends \Google\Model
{
/**
* Default value, indicating the object type is unspecified.
*/
public const TYPE_OBJECT_TYPE_UNSPECIFIED = 'OBJECT_TYPE_UNSPECIFIED';
/**
* Represents a directory (folder).
*/
public const TYPE_TREE = 'TREE';
/**
* Represents a file (contains file data).
*/
public const TYPE_BLOB = 'BLOB';
/**
* Represents a pointer to another repository (submodule).
*/
public const TYPE_COMMIT = 'COMMIT';
/**
* Output only. The file mode as a string (e.g., "100644"). Indicates file
* type. Output-only.
*
* @var string
*/
public $mode;
/**
* Output only. The path of the file or directory within the tree (e.g.,
* "src/main/java/MyClass.java"). Output-only.
*
* @var string
*/
public $path;
/**
* Output only. The SHA-1 hash of the object (unique identifier). Output-only.
*
* @var string
*/
public $sha;
/**
* Output only. The size of the object in bytes (only for blobs). Output-only.
*
* @var string
*/
public $size;
/**
* Output only. The type of the object (TREE, BLOB, COMMIT). Output-only.
*
* @var string
*/
public $type;
/**
* Output only. The file mode as a string (e.g., "100644"). Indicates file
* type. Output-only.
*
* @param string $mode
*/
public function setMode($mode)
{
$this->mode = $mode;
}
/**
* @return string
*/
public function getMode()
{
return $this->mode;
}
/**
* Output only. The path of the file or directory within the tree (e.g.,
* "src/main/java/MyClass.java"). Output-only.
*
* @param string $path
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* Output only. The SHA-1 hash of the object (unique identifier). Output-only.
*
* @param string $sha
*/
public function setSha($sha)
{
$this->sha = $sha;
}
/**
* @return string
*/
public function getSha()
{
return $this->sha;
}
/**
* Output only. The size of the object in bytes (only for blobs). Output-only.
*
* @param string $size
*/
public function setSize($size)
{
$this->size = $size;
}
/**
* @return string
*/
public function getSize()
{
return $this->size;
}
/**
* Output only. The type of the object (TREE, BLOB, COMMIT). Output-only.
*
* Accepted values: OBJECT_TYPE_UNSPECIFIED, TREE, BLOB, COMMIT
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TreeEntry::class, 'Google_Service_SecureSourceManager_TreeEntry');
@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class URIs extends \Google\Model
{
/**
* Output only. API is the URI for API access.
*
* @var string
*/
public $api;
/**
* Output only. git_https is the git HTTPS URI for git operations.
*
* @var string
*/
public $gitHttps;
/**
* Output only. HTML is the URI for user to view the repository in a browser.
*
* @var string
*/
public $html;
/**
* Output only. API is the URI for API access.
*
* @param string $api
*/
public function setApi($api)
{
$this->api = $api;
}
/**
* @return string
*/
public function getApi()
{
return $this->api;
}
/**
* Output only. git_https is the git HTTPS URI for git operations.
*
* @param string $gitHttps
*/
public function setGitHttps($gitHttps)
{
$this->gitHttps = $gitHttps;
}
/**
* @return string
*/
public function getGitHttps()
{
return $this->gitHttps;
}
/**
* Output only. HTML is the URI for user to view the repository in a browser.
*
* @param string $html
*/
public function setHtml($html)
{
$this->html = $html;
}
/**
* @return string
*/
public function getHtml()
{
return $this->html;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(URIs::class, 'Google_Service_SecureSourceManager_URIs');
@@ -0,0 +1,81 @@
<?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\SecureSourceManager;
class UnresolvePullRequestCommentsRequest extends \Google\Collection
{
protected $collection_key = 'names';
/**
* Optional. If set, at least one comment in a thread is required, rest of the
* comments in the same thread will be automatically updated to unresolved. If
* unset, all comments in the same thread need be present.
*
* @var bool
*/
public $autoFill;
/**
* Required. The names of the pull request comments to unresolve. Format: `pro
* jects/{project_number}/locations/{location_id}/repositories/{repository_id}
* /pullRequests/{pull_request_id}/pullRequestComments/{comment_id}` Only
* comments from the same threads are allowed in the same request.
*
* @var string[]
*/
public $names;
/**
* Optional. If set, at least one comment in a thread is required, rest of the
* comments in the same thread will be automatically updated to unresolved. If
* unset, all comments in the same thread need be present.
*
* @param bool $autoFill
*/
public function setAutoFill($autoFill)
{
$this->autoFill = $autoFill;
}
/**
* @return bool
*/
public function getAutoFill()
{
return $this->autoFill;
}
/**
* Required. The names of the pull request comments to unresolve. Format: `pro
* jects/{project_number}/locations/{location_id}/repositories/{repository_id}
* /pullRequests/{pull_request_id}/pullRequestComments/{comment_id}` Only
* comments from the same threads are allowed in the same request.
*
* @param string[] $names
*/
public function setNames($names)
{
$this->names = $names;
}
/**
* @return string[]
*/
public function getNames()
{
return $this->names;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UnresolvePullRequestCommentsRequest::class, 'Google_Service_SecureSourceManager_UnresolvePullRequestCommentsRequest');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\SecureSourceManager;
class WorkforceIdentityFederationConfig extends \Google\Model
{
/**
* Optional. Immutable. Whether Workforce Identity Federation is enabled.
*
* @var bool
*/
public $enabled;
/**
* Optional. Immutable. Whether Workforce Identity Federation is enabled.
*
* @param bool $enabled
*/
public function setEnabled($enabled)
{
$this->enabled = $enabled;
}
/**
* @return bool
*/
public function getEnabled()
{
return $this->enabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(WorkforceIdentityFederationConfig::class, 'Google_Service_SecureSourceManager_WorkforceIdentityFederationConfig');