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

View File

@@ -0,0 +1,53 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ChromePolicy\Resource;
use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1ResolveRequest;
use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1ResolveResponse;
/**
* The "policies" collection of methods.
* Typical usage is:
* <code>
* $chromepolicyService = new Google\Service\ChromePolicy(...);
* $policies = $chromepolicyService->customers_policies;
* </code>
*/
class CustomersPolicies extends \Google\Service\Resource
{
/**
* Gets the resolved policy values for a list of policies that match a search
* query. (policies.resolve)
*
* @param string $customer ID of the G Suite account or literal "my_customer"
* for the customer associated to the request.
* @param GoogleChromePolicyVersionsV1ResolveRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleChromePolicyVersionsV1ResolveResponse
* @throws \Google\Service\Exception
*/
public function resolve($customer, GoogleChromePolicyVersionsV1ResolveRequest $postBody, $optParams = [])
{
$params = ['customer' => $customer, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('resolve', [$params], GoogleChromePolicyVersionsV1ResolveResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomersPolicies::class, 'Google_Service_ChromePolicy_Resource_CustomersPolicies');

View File

@@ -0,0 +1,120 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ChromePolicy\Resource;
use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1BatchDeleteGroupPoliciesRequest;
use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1BatchModifyGroupPoliciesRequest;
use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1ListGroupPriorityOrderingRequest;
use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1ListGroupPriorityOrderingResponse;
use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1UpdateGroupPriorityOrderingRequest;
use Google\Service\ChromePolicy\GoogleProtobufEmpty;
/**
* The "groups" collection of methods.
* Typical usage is:
* <code>
* $chromepolicyService = new Google\Service\ChromePolicy(...);
* $groups = $chromepolicyService->customers_policies_groups;
* </code>
*/
class CustomersPoliciesGroups extends \Google\Service\Resource
{
/**
* Delete multiple policy values that are applied to a specific group. All
* targets must have the same target format. That is to say that they must point
* to the same target resource and must have the same keys specified in
* `additionalTargetKeyNames`, though the values for those keys may be
* different. On failure the request will return the error details as part of
* the google.rpc.Status. (groups.batchDelete)
*
* @param string $customer ID of the Google Workspace account or literal
* "my_customer" for the customer associated to the request.
* @param GoogleChromePolicyVersionsV1BatchDeleteGroupPoliciesRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function batchDelete($customer, GoogleChromePolicyVersionsV1BatchDeleteGroupPoliciesRequest $postBody, $optParams = [])
{
$params = ['customer' => $customer, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchDelete', [$params], GoogleProtobufEmpty::class);
}
/**
* Modify multiple policy values that are applied to a specific group. All
* targets must have the same target format. That is to say that they must point
* to the same target resource and must have the same keys specified in
* `additionalTargetKeyNames`, though the values for those keys may be
* different. On failure the request will return the error details as part of
* the google.rpc.Status. (groups.batchModify)
*
* @param string $customer ID of the Google Workspace account or literal
* "my_customer" for the customer associated to the request.
* @param GoogleChromePolicyVersionsV1BatchModifyGroupPoliciesRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function batchModify($customer, GoogleChromePolicyVersionsV1BatchModifyGroupPoliciesRequest $postBody, $optParams = [])
{
$params = ['customer' => $customer, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchModify', [$params], GoogleProtobufEmpty::class);
}
/**
* Retrieve a group priority ordering for an app. The target app must be
* supplied in `additionalTargetKeyNames` in the PolicyTargetKey. On failure the
* request will return the error details as part of the google.rpc.Status.
* (groups.listGroupPriorityOrdering)
*
* @param string $customer Required. ID of the Google Workspace account or
* literal "my_customer" for the customer associated to the request.
* @param GoogleChromePolicyVersionsV1ListGroupPriorityOrderingRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleChromePolicyVersionsV1ListGroupPriorityOrderingResponse
* @throws \Google\Service\Exception
*/
public function listGroupPriorityOrdering($customer, GoogleChromePolicyVersionsV1ListGroupPriorityOrderingRequest $postBody, $optParams = [])
{
$params = ['customer' => $customer, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('listGroupPriorityOrdering', [$params], GoogleChromePolicyVersionsV1ListGroupPriorityOrderingResponse::class);
}
/**
* Update a group priority ordering for an app. The target app must be supplied
* in `additionalTargetKeyNames` in the PolicyTargetKey. On failure the request
* will return the error details as part of the google.rpc.Status.
* (groups.updateGroupPriorityOrdering)
*
* @param string $customer Required. ID of the Google Workspace account or
* literal "my_customer" for the customer associated to the request.
* @param GoogleChromePolicyVersionsV1UpdateGroupPriorityOrderingRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function updateGroupPriorityOrdering($customer, GoogleChromePolicyVersionsV1UpdateGroupPriorityOrderingRequest $postBody, $optParams = [])
{
$params = ['customer' => $customer, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateGroupPriorityOrdering', [$params], GoogleProtobufEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomersPoliciesGroups::class, 'Google_Service_ChromePolicy_Resource_CustomersPoliciesGroups');

View File

@@ -0,0 +1,105 @@
<?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\ChromePolicy\Resource;
use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1DefineCertificateRequest;
use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1DefineCertificateResponse;
use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1DefineNetworkRequest;
use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1DefineNetworkResponse;
use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1RemoveCertificateRequest;
use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1RemoveCertificateResponse;
use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1RemoveNetworkRequest;
use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1RemoveNetworkResponse;
/**
* The "networks" collection of methods.
* Typical usage is:
* <code>
* $chromepolicyService = new Google\Service\ChromePolicy(...);
* $networks = $chromepolicyService->customers_policies_networks;
* </code>
*/
class CustomersPoliciesNetworks extends \Google\Service\Resource
{
/**
* Creates a certificate at a specified OU for a customer.
* (networks.defineCertificate)
*
* @param string $customer Required. The customer for which the certificate will
* apply.
* @param GoogleChromePolicyVersionsV1DefineCertificateRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleChromePolicyVersionsV1DefineCertificateResponse
* @throws \Google\Service\Exception
*/
public function defineCertificate($customer, GoogleChromePolicyVersionsV1DefineCertificateRequest $postBody, $optParams = [])
{
$params = ['customer' => $customer, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('defineCertificate', [$params], GoogleChromePolicyVersionsV1DefineCertificateResponse::class);
}
/**
* Define a new network. (networks.defineNetwork)
*
* @param string $customer Required. The customer who will own this new network.
* @param GoogleChromePolicyVersionsV1DefineNetworkRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleChromePolicyVersionsV1DefineNetworkResponse
* @throws \Google\Service\Exception
*/
public function defineNetwork($customer, GoogleChromePolicyVersionsV1DefineNetworkRequest $postBody, $optParams = [])
{
$params = ['customer' => $customer, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('defineNetwork', [$params], GoogleChromePolicyVersionsV1DefineNetworkResponse::class);
}
/**
* Remove an existing certificate by guid. (networks.removeCertificate)
*
* @param string $customer Required. The customer whose certificate will be
* removed.
* @param GoogleChromePolicyVersionsV1RemoveCertificateRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleChromePolicyVersionsV1RemoveCertificateResponse
* @throws \Google\Service\Exception
*/
public function removeCertificate($customer, GoogleChromePolicyVersionsV1RemoveCertificateRequest $postBody, $optParams = [])
{
$params = ['customer' => $customer, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('removeCertificate', [$params], GoogleChromePolicyVersionsV1RemoveCertificateResponse::class);
}
/**
* Remove an existing network by guid. (networks.removeNetwork)
*
* @param string $customer Required. The customer whose network will be removed.
* @param GoogleChromePolicyVersionsV1RemoveNetworkRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleChromePolicyVersionsV1RemoveNetworkResponse
* @throws \Google\Service\Exception
*/
public function removeNetwork($customer, GoogleChromePolicyVersionsV1RemoveNetworkRequest $postBody, $optParams = [])
{
$params = ['customer' => $customer, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('removeNetwork', [$params], GoogleChromePolicyVersionsV1RemoveNetworkResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomersPoliciesNetworks::class, 'Google_Service_ChromePolicy_Resource_CustomersPoliciesNetworks');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ChromePolicy\Resource;
use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1BatchInheritOrgUnitPoliciesRequest;
use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1BatchModifyOrgUnitPoliciesRequest;
use Google\Service\ChromePolicy\GoogleProtobufEmpty;
/**
* The "orgunits" collection of methods.
* Typical usage is:
* <code>
* $chromepolicyService = new Google\Service\ChromePolicy(...);
* $orgunits = $chromepolicyService->customers_policies_orgunits;
* </code>
*/
class CustomersPoliciesOrgunits extends \Google\Service\Resource
{
/**
* Modify multiple policy values that are applied to a specific org unit so that
* they now inherit the value from a parent (if applicable). All targets must
* have the same target format. That is to say that they must point to the same
* target resource and must have the same keys specified in
* `additionalTargetKeyNames`, though the values for those keys may be
* different. On failure the request will return the error details as part of
* the google.rpc.Status. (orgunits.batchInherit)
*
* @param string $customer ID of the G Suite account or literal "my_customer"
* for the customer associated to the request.
* @param GoogleChromePolicyVersionsV1BatchInheritOrgUnitPoliciesRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function batchInherit($customer, GoogleChromePolicyVersionsV1BatchInheritOrgUnitPoliciesRequest $postBody, $optParams = [])
{
$params = ['customer' => $customer, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchInherit', [$params], GoogleProtobufEmpty::class);
}
/**
* Modify multiple policy values that are applied to a specific org unit. All
* targets must have the same target format. That is to say that they must point
* to the same target resource and must have the same keys specified in
* `additionalTargetKeyNames`, though the values for those keys may be
* different. On failure the request will return the error details as part of
* the google.rpc.Status. (orgunits.batchModify)
*
* @param string $customer ID of the G Suite account or literal "my_customer"
* for the customer associated to the request.
* @param GoogleChromePolicyVersionsV1BatchModifyOrgUnitPoliciesRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function batchModify($customer, GoogleChromePolicyVersionsV1BatchModifyOrgUnitPoliciesRequest $postBody, $optParams = [])
{
$params = ['customer' => $customer, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchModify', [$params], GoogleProtobufEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomersPoliciesOrgunits::class, 'Google_Service_ChromePolicy_Resource_CustomersPoliciesOrgunits');

View File

@@ -0,0 +1,75 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ChromePolicy\Resource;
use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1ListPolicySchemasResponse;
use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1PolicySchema;
/**
* The "policySchemas" collection of methods.
* Typical usage is:
* <code>
* $chromepolicyService = new Google\Service\ChromePolicy(...);
* $policySchemas = $chromepolicyService->customers_policySchemas;
* </code>
*/
class CustomersPolicySchemas extends \Google\Service\Resource
{
/**
* Get a specific policy schema for a customer by its resource name.
* (policySchemas.get)
*
* @param string $name Required. The policy schema resource name to query.
* @param array $optParams Optional parameters.
* @return GoogleChromePolicyVersionsV1PolicySchema
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleChromePolicyVersionsV1PolicySchema::class);
}
/**
* Gets a list of policy schemas that match a specified filter value for a given
* customer. (policySchemas.listCustomersPolicySchemas)
*
* @param string $parent Required. The customer for which the listing request
* will apply.
* @param array $optParams Optional parameters.
*
* @opt_param string filter The schema filter used to find a particular schema
* based on fields like its resource name, description and
* `additionalTargetKeyNames`.
* @opt_param int pageSize The maximum number of policy schemas to return,
* defaults to 100 and has a maximum of 1000.
* @opt_param string pageToken The page token used to retrieve a specific page
* of the listing request.
* @return GoogleChromePolicyVersionsV1ListPolicySchemasResponse
* @throws \Google\Service\Exception
*/
public function listCustomersPolicySchemas($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleChromePolicyVersionsV1ListPolicySchemasResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomersPolicySchemas::class, 'Google_Service_ChromePolicy_Resource_CustomersPolicySchemas');

View File

@@ -0,0 +1,53 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ChromePolicy\Resource;
use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1UploadPolicyFileRequest;
use Google\Service\ChromePolicy\GoogleChromePolicyVersionsV1UploadPolicyFileResponse;
/**
* The "media" collection of methods.
* Typical usage is:
* <code>
* $chromepolicyService = new Google\Service\ChromePolicy(...);
* $media = $chromepolicyService->media;
* </code>
*/
class Media extends \Google\Service\Resource
{
/**
* Creates an enterprise file from the content provided by user. Returns a
* public download url for end user. (media.upload)
*
* @param string $customer Required. The customer for which the file upload will
* apply.
* @param GoogleChromePolicyVersionsV1UploadPolicyFileRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleChromePolicyVersionsV1UploadPolicyFileResponse
* @throws \Google\Service\Exception
*/
public function upload($customer, GoogleChromePolicyVersionsV1UploadPolicyFileRequest $postBody, $optParams = [])
{
$params = ['customer' => $customer, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('upload', [$params], GoogleChromePolicyVersionsV1UploadPolicyFileResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Media::class, 'Google_Service_ChromePolicy_Resource_Media');