Initial commit

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

View File

@@ -0,0 +1,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\CloudIAP\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $iapService = new Google\Service\CloudIAP(...);
* $projects = $iapService->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_CloudIAP_Resource_Projects');

View File

@@ -0,0 +1,88 @@
<?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\CloudIAP\Resource;
use Google\Service\CloudIAP\Brand;
use Google\Service\CloudIAP\ListBrandsResponse;
/**
* The "brands" collection of methods.
* Typical usage is:
* <code>
* $iapService = new Google\Service\CloudIAP(...);
* $brands = $iapService->projects_brands;
* </code>
*/
class ProjectsBrands extends \Google\Service\Resource
{
/**
* Constructs a new OAuth brand for the project if one does not exist. The
* created brand is "internal only", meaning that OAuth clients created under it
* only accept requests from users who belong to the same Google Workspace
* organization as the project. The brand is created in an un-reviewed status.
* NOTE: The "internal only" status can be manually changed in the Google Cloud
* Console. Requires that a brand does not already exist for the project, and
* that the specified support email is owned by the caller. (brands.create)
*
* @param string $parent Required. GCP Project number/id under which the brand
* is to be created. In the following format: projects/{project_number/id}.
* @param Brand $postBody
* @param array $optParams Optional parameters.
* @return Brand
* @throws \Google\Service\Exception
*/
public function create($parent, Brand $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Brand::class);
}
/**
* Retrieves the OAuth brand of the project. (brands.get)
*
* @param string $name Required. Name of the brand to be fetched. In the
* following format: projects/{project_number/id}/brands/{brand}.
* @param array $optParams Optional parameters.
* @return Brand
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Brand::class);
}
/**
* Lists the existing brands for the project. (brands.listProjectsBrands)
*
* @param string $parent Required. GCP Project number/id. In the following
* format: projects/{project_number/id}.
* @param array $optParams Optional parameters.
* @return ListBrandsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsBrands($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListBrandsResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsBrands::class, 'Google_Service_CloudIAP_Resource_ProjectsBrands');

View File

@@ -0,0 +1,138 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudIAP\Resource;
use Google\Service\CloudIAP\IapEmpty;
use Google\Service\CloudIAP\IdentityAwareProxyClient;
use Google\Service\CloudIAP\ListIdentityAwareProxyClientsResponse;
use Google\Service\CloudIAP\ResetIdentityAwareProxyClientSecretRequest;
/**
* The "identityAwareProxyClients" collection of methods.
* Typical usage is:
* <code>
* $iapService = new Google\Service\CloudIAP(...);
* $identityAwareProxyClients = $iapService->projects_brands_identityAwareProxyClients;
* </code>
*/
class ProjectsBrandsIdentityAwareProxyClients extends \Google\Service\Resource
{
/**
* Creates an Identity Aware Proxy (IAP) OAuth client. The client is owned by
* IAP. Requires that the brand for the project exists and that it is set for
* internal-only use. (identityAwareProxyClients.create)
*
* @param string $parent Required. Path to create the client in. In the
* following format: projects/{project_number/id}/brands/{brand}. The project
* must belong to a G Suite account.
* @param IdentityAwareProxyClient $postBody
* @param array $optParams Optional parameters.
* @return IdentityAwareProxyClient
* @throws \Google\Service\Exception
*/
public function create($parent, IdentityAwareProxyClient $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], IdentityAwareProxyClient::class);
}
/**
* Deletes an Identity Aware Proxy (IAP) OAuth client. Useful for removing
* obsolete clients, managing the number of clients in a given project, and
* cleaning up after tests. Requires that the client is owned by IAP.
* (identityAwareProxyClients.delete)
*
* @param string $name Required. Name of the Identity Aware Proxy client to be
* deleted. In the following format: projects/{project_number/id}/brands/{brand}
* /identityAwareProxyClients/{client_id}.
* @param array $optParams Optional parameters.
* @return IapEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], IapEmpty::class);
}
/**
* Retrieves an Identity Aware Proxy (IAP) OAuth client. Requires that the
* client is owned by IAP. (identityAwareProxyClients.get)
*
* @param string $name Required. Name of the Identity Aware Proxy client to be
* fetched. In the following format: projects/{project_number/id}/brands/{brand}
* /identityAwareProxyClients/{client_id}.
* @param array $optParams Optional parameters.
* @return IdentityAwareProxyClient
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], IdentityAwareProxyClient::class);
}
/**
* Lists the existing clients for the brand.
* (identityAwareProxyClients.listProjectsBrandsIdentityAwareProxyClients)
*
* @param string $parent Required. Full brand path. In the following format:
* projects/{project_number/id}/brands/{brand}.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of clients to return. The service
* may return fewer than this value. If unspecified, at most 100 clients will be
* returned. The maximum value is 1000; values above 1000 will be coerced to
* 1000.
* @opt_param string pageToken A page token, received from a previous
* `ListIdentityAwareProxyClients` call. Provide this to retrieve the subsequent
* page. When paginating, all other parameters provided to
* `ListIdentityAwareProxyClients` must match the call that provided the page
* token.
* @return ListIdentityAwareProxyClientsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsBrandsIdentityAwareProxyClients($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListIdentityAwareProxyClientsResponse::class);
}
/**
* Resets an Identity Aware Proxy (IAP) OAuth client secret. Useful if the
* secret was compromised. Requires that the client is owned by IAP.
* (identityAwareProxyClients.resetSecret)
*
* @param string $name Required. Name of the Identity Aware Proxy client to that
* will have its secret reset. In the following format: projects/{project_number
* /id}/brands/{brand}/identityAwareProxyClients/{client_id}.
* @param ResetIdentityAwareProxyClientSecretRequest $postBody
* @param array $optParams Optional parameters.
* @return IdentityAwareProxyClient
* @throws \Google\Service\Exception
*/
public function resetSecret($name, ResetIdentityAwareProxyClientSecretRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('resetSecret', [$params], IdentityAwareProxyClient::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsBrandsIdentityAwareProxyClients::class, 'Google_Service_CloudIAP_Resource_ProjectsBrandsIdentityAwareProxyClients');

View File

@@ -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\CloudIAP\Resource;
/**
* The "iap_tunnel" collection of methods.
* Typical usage is:
* <code>
* $iapService = new Google\Service\CloudIAP(...);
* $iap_tunnel = $iapService->projects_iap_tunnel;
* </code>
*/
class ProjectsIapTunnel extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsIapTunnel::class, 'Google_Service_CloudIAP_Resource_ProjectsIapTunnel');

View File

@@ -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\CloudIAP\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $iapService = new Google\Service\CloudIAP(...);
* $locations = $iapService->projects_iap_tunnel_locations;
* </code>
*/
class ProjectsIapTunnelLocations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsIapTunnelLocations::class, 'Google_Service_CloudIAP_Resource_ProjectsIapTunnelLocations');

View File

@@ -0,0 +1,140 @@
<?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\CloudIAP\Resource;
use Google\Service\CloudIAP\IapEmpty;
use Google\Service\CloudIAP\ListTunnelDestGroupsResponse;
use Google\Service\CloudIAP\TunnelDestGroup;
/**
* The "destGroups" collection of methods.
* Typical usage is:
* <code>
* $iapService = new Google\Service\CloudIAP(...);
* $destGroups = $iapService->projects_iap_tunnel_locations_destGroups;
* </code>
*/
class ProjectsIapTunnelLocationsDestGroups extends \Google\Service\Resource
{
/**
* Creates a new TunnelDestGroup. (destGroups.create)
*
* @param string $parent Required. Google Cloud Project ID and location. In the
* following format:
* `projects/{project_number/id}/iap_tunnel/locations/{location}`.
* @param TunnelDestGroup $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string tunnelDestGroupId Required. The ID to use for the
* TunnelDestGroup, which becomes the final component of the resource name. This
* value must be 4-63 characters, and valid characters are `[a-z]-`.
* @return TunnelDestGroup
* @throws \Google\Service\Exception
*/
public function create($parent, TunnelDestGroup $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], TunnelDestGroup::class);
}
/**
* Deletes a TunnelDestGroup. (destGroups.delete)
*
* @param string $name Required. Name of the TunnelDestGroup to delete. In the
* following format: `projects/{project_number/id}/iap_tunnel/locations/{locatio
* n}/destGroups/{dest_group}`.
* @param array $optParams Optional parameters.
* @return IapEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], IapEmpty::class);
}
/**
* Retrieves an existing TunnelDestGroup. (destGroups.get)
*
* @param string $name Required. Name of the TunnelDestGroup to be fetched. In
* the following format: `projects/{project_number/id}/iap_tunnel/locations/{loc
* ation}/destGroups/{dest_group}`.
* @param array $optParams Optional parameters.
* @return TunnelDestGroup
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], TunnelDestGroup::class);
}
/**
* Lists the existing TunnelDestGroups. To group across all locations, use a `-`
* as the location ID. For example:
* `/v1/projects/123/iap_tunnel/locations/-/destGroups`
* (destGroups.listProjectsIapTunnelLocationsDestGroups)
*
* @param string $parent Required. Google Cloud Project ID and location. In the
* following format:
* `projects/{project_number/id}/iap_tunnel/locations/{location}`. A `-` can be
* used for the location to group across all locations.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize The maximum number of groups to return. The service
* might return fewer than this value. If unspecified, at most 100 groups are
* returned. The maximum value is 1000; values above 1000 are coerced to 1000.
* @opt_param string pageToken A page token, received from a previous
* `ListTunnelDestGroups` call. Provide this to retrieve the subsequent page.
* When paginating, all other parameters provided to `ListTunnelDestGroups` must
* match the call that provided the page token.
* @return ListTunnelDestGroupsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsIapTunnelLocationsDestGroups($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListTunnelDestGroupsResponse::class);
}
/**
* Updates a TunnelDestGroup. (destGroups.patch)
*
* @param string $name Identifier. Identifier for the TunnelDestGroup. Must be
* unique within the project and contain only lower case letters (a-z) and
* dashes (-).
* @param TunnelDestGroup $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask A field mask that specifies which IAP settings
* to update. If omitted, then all of the settings are updated. See
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#fieldmask
* @return TunnelDestGroup
* @throws \Google\Service\Exception
*/
public function patch($name, TunnelDestGroup $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], TunnelDestGroup::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsIapTunnelLocationsDestGroups::class, 'Google_Service_CloudIAP_Resource_ProjectsIapTunnelLocationsDestGroups');

View File

@@ -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\CloudIAP\Resource;
use Google\Service\CloudIAP\GetIamPolicyRequest;
use Google\Service\CloudIAP\IapSettings;
use Google\Service\CloudIAP\Policy;
use Google\Service\CloudIAP\SetIamPolicyRequest;
use Google\Service\CloudIAP\TestIamPermissionsRequest;
use Google\Service\CloudIAP\TestIamPermissionsResponse;
use Google\Service\CloudIAP\ValidateIapAttributeExpressionResponse;
/**
* The "v1" collection of methods.
* Typical usage is:
* <code>
* $iapService = new Google\Service\CloudIAP(...);
* $v1 = $iapService->v1;
* </code>
*/
class V1 extends \Google\Service\Resource
{
/**
* Gets the access control policy for an Identity-Aware Proxy protected
* resource. More information about managing access via IAP can be found at:
* https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
* (v1.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param GetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, GetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Gets the IAP settings on a particular IAP protected resource.
* (v1.getIapSettings)
*
* @param string $name Required. The resource name for which to retrieve the
* settings. Authorization: Requires the `getSettings` permission for the
* associated resource.
* @param array $optParams Optional parameters.
* @return IapSettings
* @throws \Google\Service\Exception
*/
public function getIapSettings($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getIapSettings', [$params], IapSettings::class);
}
/**
* Sets the access control policy for an Identity-Aware Proxy protected
* resource. Replaces any existing policy. More information about managing
* access via IAP can be found at: https://cloud.google.com/iap/docs/managing-
* access#managing_access_via_the_api (v1.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 Identity-Aware Proxy protected
* resource. More information about managing access via IAP can be found at:
* https://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api
* (v1.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);
}
/**
* Updates the IAP settings on a particular IAP protected resource. It replaces
* all fields unless the `update_mask` is set. (v1.updateIapSettings)
*
* @param string $name Required. The resource name of the IAP protected
* resource.
* @param IapSettings $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The field mask specifying which IAP settings
* should be updated. If omitted, then all of the settings are updated. See
* https://developers.google.com/protocol-
* buffers/docs/reference/google.protobuf#fieldmask. Note: All IAP reauth
* settings must always be set together, using the field mask:
* `iapSettings.accessSettings.reauthSettings`.
* @return IapSettings
* @throws \Google\Service\Exception
*/
public function updateIapSettings($name, IapSettings $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateIapSettings', [$params], IapSettings::class);
}
/**
* Validates that a given CEL expression conforms to IAP restrictions.
* (v1.validateAttributeExpression)
*
* @param string $name Required. The resource name of the IAP protected
* resource.
* @param array $optParams Optional parameters.
*
* @opt_param string expression Required. User input string expression. Should
* be of the form `attributes.saml_attributes.filter(attribute, attribute.name
* in ['{attribute_name}', '{attribute_name}'])`
* @return ValidateIapAttributeExpressionResponse
* @throws \Google\Service\Exception
*/
public function validateAttributeExpression($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('validateAttributeExpression', [$params], ValidateIapAttributeExpressionResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(V1::class, 'Google_Service_CloudIAP_Resource_V1');