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,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicyAnalyzer;
class GoogleCloudPolicyanalyzerV1Activity extends \Google\Model
{
/**
* @var array[]
*/
public $activity;
/**
* @var string
*/
public $activityType;
/**
* @var string
*/
public $fullResourceName;
protected $observationPeriodType = GoogleCloudPolicyanalyzerV1ObservationPeriod::class;
protected $observationPeriodDataType = '';
/**
* @param array[]
*/
public function setActivity($activity)
{
$this->activity = $activity;
}
/**
* @return array[]
*/
public function getActivity()
{
return $this->activity;
}
/**
* @param string
*/
public function setActivityType($activityType)
{
$this->activityType = $activityType;
}
/**
* @return string
*/
public function getActivityType()
{
return $this->activityType;
}
/**
* @param string
*/
public function setFullResourceName($fullResourceName)
{
$this->fullResourceName = $fullResourceName;
}
/**
* @return string
*/
public function getFullResourceName()
{
return $this->fullResourceName;
}
/**
* @param GoogleCloudPolicyanalyzerV1ObservationPeriod
*/
public function setObservationPeriod(GoogleCloudPolicyanalyzerV1ObservationPeriod $observationPeriod)
{
$this->observationPeriod = $observationPeriod;
}
/**
* @return GoogleCloudPolicyanalyzerV1ObservationPeriod
*/
public function getObservationPeriod()
{
return $this->observationPeriod;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudPolicyanalyzerV1Activity::class, 'Google_Service_PolicyAnalyzer_GoogleCloudPolicyanalyzerV1Activity');

View File

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

View File

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

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

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

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

View File

@@ -0,0 +1,69 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicyAnalyzer\Resource;
use Google\Service\PolicyAnalyzer\GoogleCloudPolicyanalyzerV1QueryActivityResponse;
/**
* The "activities" collection of methods.
* Typical usage is:
* <code>
* $policyanalyzerService = new Google\Service\PolicyAnalyzer(...);
* $activities = $policyanalyzerService->folders_locations_activityTypes_activities;
* </code>
*/
class FoldersLocationsActivityTypesActivities extends \Google\Service\Resource
{
/**
* Queries policy activities on Google Cloud resources. (activities.query)
*
* @param string $parent Required. The container resource on which to execute
* the request. Acceptable formats: `projects/[PROJECT_ID|PROJECT_NUMBER]/locati
* ons/[LOCATION]/activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to Google
* Cloud Locations: https://cloud.google.com/about/locations/
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter expression to restrict the
* activities returned. For serviceAccountLastAuthentication activities,
* supported filters are: - `activities.full_resource_name {=} [STRING]` -
* `activities.fullResourceName {=} [STRING]` where `[STRING]` is the full
* resource name of the service account. For serviceAccountKeyLastAuthentication
* activities, supported filters are: - `activities.full_resource_name {=}
* [STRING]` - `activities.fullResourceName {=} [STRING]` where `[STRING]` is
* the full resource name of the service account key.
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Max limit is 1000. Non-positive values are ignored. The
* presence of `nextPageToken` in the response indicates that more results might
* be available.
* @opt_param string pageToken Optional. If present, then retrieve the next
* batch of results from the preceding call to this method. `pageToken` must be
* the value of `nextPageToken` from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return GoogleCloudPolicyanalyzerV1QueryActivityResponse
* @throws \Google\Service\Exception
*/
public function query($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('query', [$params], GoogleCloudPolicyanalyzerV1QueryActivityResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersLocationsActivityTypesActivities::class, 'Google_Service_PolicyAnalyzer_Resource_FoldersLocationsActivityTypesActivities');

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

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

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

View File

@@ -0,0 +1,69 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicyAnalyzer\Resource;
use Google\Service\PolicyAnalyzer\GoogleCloudPolicyanalyzerV1QueryActivityResponse;
/**
* The "activities" collection of methods.
* Typical usage is:
* <code>
* $policyanalyzerService = new Google\Service\PolicyAnalyzer(...);
* $activities = $policyanalyzerService->organizations_locations_activityTypes_activities;
* </code>
*/
class OrganizationsLocationsActivityTypesActivities extends \Google\Service\Resource
{
/**
* Queries policy activities on Google Cloud resources. (activities.query)
*
* @param string $parent Required. The container resource on which to execute
* the request. Acceptable formats: `projects/[PROJECT_ID|PROJECT_NUMBER]/locati
* ons/[LOCATION]/activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to Google
* Cloud Locations: https://cloud.google.com/about/locations/
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter expression to restrict the
* activities returned. For serviceAccountLastAuthentication activities,
* supported filters are: - `activities.full_resource_name {=} [STRING]` -
* `activities.fullResourceName {=} [STRING]` where `[STRING]` is the full
* resource name of the service account. For serviceAccountKeyLastAuthentication
* activities, supported filters are: - `activities.full_resource_name {=}
* [STRING]` - `activities.fullResourceName {=} [STRING]` where `[STRING]` is
* the full resource name of the service account key.
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Max limit is 1000. Non-positive values are ignored. The
* presence of `nextPageToken` in the response indicates that more results might
* be available.
* @opt_param string pageToken Optional. If present, then retrieve the next
* batch of results from the preceding call to this method. `pageToken` must be
* the value of `nextPageToken` from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return GoogleCloudPolicyanalyzerV1QueryActivityResponse
* @throws \Google\Service\Exception
*/
public function query($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('query', [$params], GoogleCloudPolicyanalyzerV1QueryActivityResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsLocationsActivityTypesActivities::class, 'Google_Service_PolicyAnalyzer_Resource_OrganizationsLocationsActivityTypesActivities');

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\PolicyAnalyzer\Resource;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $policyanalyzerService = new Google\Service\PolicyAnalyzer(...);
* $projects = $policyanalyzerService->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_PolicyAnalyzer_Resource_Projects');

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

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

View File

@@ -0,0 +1,69 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\PolicyAnalyzer\Resource;
use Google\Service\PolicyAnalyzer\GoogleCloudPolicyanalyzerV1QueryActivityResponse;
/**
* The "activities" collection of methods.
* Typical usage is:
* <code>
* $policyanalyzerService = new Google\Service\PolicyAnalyzer(...);
* $activities = $policyanalyzerService->projects_locations_activityTypes_activities;
* </code>
*/
class ProjectsLocationsActivityTypesActivities extends \Google\Service\Resource
{
/**
* Queries policy activities on Google Cloud resources. (activities.query)
*
* @param string $parent Required. The container resource on which to execute
* the request. Acceptable formats: `projects/[PROJECT_ID|PROJECT_NUMBER]/locati
* ons/[LOCATION]/activityTypes/[ACTIVITY_TYPE]` LOCATION here refers to Google
* Cloud Locations: https://cloud.google.com/about/locations/
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter expression to restrict the
* activities returned. For serviceAccountLastAuthentication activities,
* supported filters are: - `activities.full_resource_name {=} [STRING]` -
* `activities.fullResourceName {=} [STRING]` where `[STRING]` is the full
* resource name of the service account. For serviceAccountKeyLastAuthentication
* activities, supported filters are: - `activities.full_resource_name {=}
* [STRING]` - `activities.fullResourceName {=} [STRING]` where `[STRING]` is
* the full resource name of the service account key.
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Max limit is 1000. Non-positive values are ignored. The
* presence of `nextPageToken` in the response indicates that more results might
* be available.
* @opt_param string pageToken Optional. If present, then retrieve the next
* batch of results from the preceding call to this method. `pageToken` must be
* the value of `nextPageToken` from the previous response. The values of other
* method parameters should be identical to those in the previous call.
* @return GoogleCloudPolicyanalyzerV1QueryActivityResponse
* @throws \Google\Service\Exception
*/
public function query($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('query', [$params], GoogleCloudPolicyanalyzerV1QueryActivityResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsActivityTypesActivities::class, 'Google_Service_PolicyAnalyzer_Resource_ProjectsLocationsActivityTypesActivities');