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

View File

@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceDirectory;
class Endpoint extends \Google\Model
{
/**
* @var string
*/
public $address;
/**
* @var string[]
*/
public $annotations;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $network;
/**
* @var int
*/
public $port;
/**
* @var string
*/
public $uid;
/**
* @param string
*/
public function setAddress($address)
{
$this->address = $address;
}
/**
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* @param string[]
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setNetwork($network)
{
$this->network = $network;
}
/**
* @return string
*/
public function getNetwork()
{
return $this->network;
}
/**
* @param int
*/
public function setPort($port)
{
$this->port = $port;
}
/**
* @return int
*/
public function getPort()
{
return $this->port;
}
/**
* @param string
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Endpoint::class, 'Google_Service_ServiceDirectory_Endpoint');

View File

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

View File

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

View File

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

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\ServiceDirectory;
class ListEndpointsResponse extends \Google\Collection
{
protected $collection_key = 'endpoints';
protected $endpointsType = Endpoint::class;
protected $endpointsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Endpoint[]
*/
public function setEndpoints($endpoints)
{
$this->endpoints = $endpoints;
}
/**
* @return Endpoint[]
*/
public function getEndpoints()
{
return $this->endpoints;
}
/**
* @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(ListEndpointsResponse::class, 'Google_Service_ServiceDirectory_ListEndpointsResponse');

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\ServiceDirectory;
class ListLocationsResponse extends \Google\Collection
{
protected $collection_key = 'locations';
protected $locationsType = Location::class;
protected $locationsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param Location[]
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return Location[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListLocationsResponse::class, 'Google_Service_ServiceDirectory_ListLocationsResponse');

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\ServiceDirectory;
class ListNamespacesResponse extends \Google\Collection
{
protected $collection_key = 'namespaces';
protected $namespacesType = ServicedirectoryNamespace::class;
protected $namespacesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param ServicedirectoryNamespace[]
*/
public function setNamespaces($namespaces)
{
$this->namespaces = $namespaces;
}
/**
* @return ServicedirectoryNamespace[]
*/
public function getNamespaces()
{
return $this->namespaces;
}
/**
* @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(ListNamespacesResponse::class, 'Google_Service_ServiceDirectory_ListNamespacesResponse');

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\ServiceDirectory;
class ListServicesResponse extends \Google\Collection
{
protected $collection_key = 'services';
/**
* @var string
*/
public $nextPageToken;
protected $servicesType = Service::class;
protected $servicesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Service[]
*/
public function setServices($services)
{
$this->services = $services;
}
/**
* @return Service[]
*/
public function getServices()
{
return $this->services;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListServicesResponse::class, 'Google_Service_ServiceDirectory_ListServicesResponse');

View File

@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\ServiceDirectory;
class Location extends \Google\Model
{
/**
* @var string
*/
public $displayName;
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $locationId;
/**
* @var array[]
*/
public $metadata;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* @param array[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return array[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Location::class, 'Google_Service_ServiceDirectory_Location');

View File

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

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\ServiceDirectory;
class ResolveServiceRequest extends \Google\Model
{
/**
* @var string
*/
public $endpointFilter;
/**
* @var int
*/
public $maxEndpoints;
/**
* @param string
*/
public function setEndpointFilter($endpointFilter)
{
$this->endpointFilter = $endpointFilter;
}
/**
* @return string
*/
public function getEndpointFilter()
{
return $this->endpointFilter;
}
/**
* @param int
*/
public function setMaxEndpoints($maxEndpoints)
{
$this->maxEndpoints = $maxEndpoints;
}
/**
* @return int
*/
public function getMaxEndpoints()
{
return $this->maxEndpoints;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResolveServiceRequest::class, 'Google_Service_ServiceDirectory_ResolveServiceRequest');

View File

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

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

View File

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

View File

@@ -0,0 +1,210 @@
<?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\ServiceDirectory\Resource;
use Google\Service\ServiceDirectory\GetIamPolicyRequest;
use Google\Service\ServiceDirectory\ListNamespacesResponse;
use Google\Service\ServiceDirectory\Policy;
use Google\Service\ServiceDirectory\ServicedirectoryEmpty;
use Google\Service\ServiceDirectory\ServicedirectoryNamespace;
use Google\Service\ServiceDirectory\SetIamPolicyRequest;
use Google\Service\ServiceDirectory\TestIamPermissionsRequest;
use Google\Service\ServiceDirectory\TestIamPermissionsResponse;
/**
* The "namespaces" collection of methods.
* Typical usage is:
* <code>
* $servicedirectoryService = new Google\Service\ServiceDirectory(...);
* $namespaces = $servicedirectoryService->projects_locations_namespaces;
* </code>
*/
class ProjectsLocationsNamespaces extends \Google\Service\Resource
{
/**
* Creates a namespace, and returns the new namespace. (namespaces.create)
*
* @param string $parent Required. The resource name of the project and location
* the namespace will be created in.
* @param ServicedirectoryNamespace $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string namespaceId Required. The Resource ID must be 1-63
* characters long, and comply with RFC1035. Specifically, the name must be 1-63
* characters long and match the regular expression
* `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first character must be a
* lowercase letter, and all following characters must be a dash, lowercase
* letter, or digit, except the last character, which cannot be a dash.
* @return ServicedirectoryNamespace
* @throws \Google\Service\Exception
*/
public function create($parent, ServicedirectoryNamespace $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], ServicedirectoryNamespace::class);
}
/**
* Deletes a namespace. This also deletes all services and endpoints in the
* namespace. (namespaces.delete)
*
* @param string $name Required. The name of the namespace to delete.
* @param array $optParams Optional parameters.
* @return ServicedirectoryEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ServicedirectoryEmpty::class);
}
/**
* Gets a namespace. (namespaces.get)
*
* @param string $name Required. The name of the namespace to retrieve.
* @param array $optParams Optional parameters.
* @return ServicedirectoryNamespace
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ServicedirectoryNamespace::class);
}
/**
* Gets the IAM Policy for a resource (namespace or service only).
* (namespaces.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param GetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, GetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists all namespaces. (namespaces.listProjectsLocationsNamespaces)
*
* @param string $parent Required. The resource name of the project and location
* whose namespaces you'd like to list.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. The filter to list results by. General
* `filter` string syntax: ` ()` * `` can be `name` or `labels.` for map field *
* `` can be `<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:` means `HAS`, and
* is roughly the same as `=` * `` must be the same data type as field * `` can
* be `AND`, `OR`, `NOT` Examples of valid filters: * `labels.owner` returns
* namespaces that have a label with the key `owner`, this is the same as
* `labels:owner` * `labels.owner=sd` returns namespaces that have key/value
* `owner=sd` * `name>projects/my-project/locations/us-
* east1/namespaces/namespace-c` returns namespaces that have name that is
* alphabetically later than the string, so "namespace-e" is returned but
* "namespace-a" is not * `labels.owner!=sd AND labels.foo=bar` returns
* namespaces that have `owner` in label key but value is not `sd` AND have
* key/value `foo=bar` * `doesnotexist.foo=bar` returns an empty list. Note that
* namespace doesn't have a field called "doesnotexist". Since the filter does
* not match any namespaces, it returns no results For more information about
* filtering, see [API Filtering](https://aip.dev/160).
* @opt_param string orderBy Optional. The order to list results by. General
* `order_by` string syntax: ` () (,)` * `` allows value: `name` * `` ascending
* or descending order by ``. If this is left blank, `asc` is used Note that an
* empty `order_by` string results in default order, which is order by `name` in
* ascending order.
* @opt_param int pageSize Optional. The maximum number of items to return.
* @opt_param string pageToken Optional. The next_page_token value returned from
* a previous List request, if any.
* @return ListNamespacesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsNamespaces($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListNamespacesResponse::class);
}
/**
* Updates a namespace. (namespaces.patch)
*
* @param string $name Immutable. The resource name for the namespace in the
* format `projects/locations/namespaces`.
* @param ServicedirectoryNamespace $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. List of fields to be updated in this
* request.
* @return ServicedirectoryNamespace
* @throws \Google\Service\Exception
*/
public function patch($name, ServicedirectoryNamespace $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], ServicedirectoryNamespace::class);
}
/**
* Sets the IAM Policy for a resource (namespace or service only).
* (namespaces.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);
}
/**
* Tests IAM permissions for a resource (namespace or service only).
* (namespaces.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(ProjectsLocationsNamespaces::class, 'Google_Service_ServiceDirectory_Resource_ProjectsLocationsNamespaces');

View File

@@ -0,0 +1,230 @@
<?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\ServiceDirectory\Resource;
use Google\Service\ServiceDirectory\GetIamPolicyRequest;
use Google\Service\ServiceDirectory\ListServicesResponse;
use Google\Service\ServiceDirectory\Policy;
use Google\Service\ServiceDirectory\ResolveServiceRequest;
use Google\Service\ServiceDirectory\ResolveServiceResponse;
use Google\Service\ServiceDirectory\Service;
use Google\Service\ServiceDirectory\ServicedirectoryEmpty;
use Google\Service\ServiceDirectory\SetIamPolicyRequest;
use Google\Service\ServiceDirectory\TestIamPermissionsRequest;
use Google\Service\ServiceDirectory\TestIamPermissionsResponse;
/**
* The "services" collection of methods.
* Typical usage is:
* <code>
* $servicedirectoryService = new Google\Service\ServiceDirectory(...);
* $services = $servicedirectoryService->projects_locations_namespaces_services;
* </code>
*/
class ProjectsLocationsNamespacesServices extends \Google\Service\Resource
{
/**
* Creates a service, and returns the new service. (services.create)
*
* @param string $parent Required. The resource name of the namespace this
* service will belong to.
* @param Service $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string serviceId Required. The Resource ID must be 1-63 characters
* long, and comply with RFC1035. Specifically, the name must be 1-63 characters
* long and match the regular expression `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?`
* which means the first character must be a lowercase letter, and all following
* characters must be a dash, lowercase letter, or digit, except the last
* character, which cannot be a dash.
* @return Service
* @throws \Google\Service\Exception
*/
public function create($parent, Service $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Service::class);
}
/**
* Deletes a service. This also deletes all endpoints associated with the
* service. (services.delete)
*
* @param string $name Required. The name of the service to delete.
* @param array $optParams Optional parameters.
* @return ServicedirectoryEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ServicedirectoryEmpty::class);
}
/**
* Gets a service. (services.get)
*
* @param string $name Required. The name of the service to get.
* @param array $optParams Optional parameters.
* @return Service
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Service::class);
}
/**
* Gets the IAM Policy for a resource (namespace or service only).
* (services.getIamPolicy)
*
* @param string $resource REQUIRED: The resource for which the policy is being
* requested. See [Resource
* names](https://cloud.google.com/apis/design/resource_names) for the
* appropriate value for this field.
* @param GetIamPolicyRequest $postBody
* @param array $optParams Optional parameters.
* @return Policy
* @throws \Google\Service\Exception
*/
public function getIamPolicy($resource, GetIamPolicyRequest $postBody, $optParams = [])
{
$params = ['resource' => $resource, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('getIamPolicy', [$params], Policy::class);
}
/**
* Lists all services belonging to a namespace.
* (services.listProjectsLocationsNamespacesServices)
*
* @param string $parent Required. The resource name of the namespace whose
* services you'd like to list.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. The filter to list results by. General
* `filter` string syntax: ` ()` * `` can be `name` or `annotations.` for map
* field * `` can be `<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:` means
* `HAS`, and is roughly the same as `=` * `` must be the same data type as
* field * `` can be `AND`, `OR`, `NOT` Examples of valid filters: *
* `annotations.owner` returns services that have a annotation with the key
* `owner`, this is the same as `annotations:owner` *
* `annotations.protocol=gRPC` returns services that have key/value
* `protocol=gRPC` * `name>projects/my-project/locations/us-east1/namespaces/my-
* namespace/services/service-c` returns services that have name that is
* alphabetically later than the string, so "service-e" is returned but
* "service-a" is not * `annotations.owner!=sd AND annotations.foo=bar` returns
* services that have `owner` in annotation key but value is not `sd` AND have
* key/value `foo=bar` * `doesnotexist.foo=bar` returns an empty list. Note that
* service doesn't have a field called "doesnotexist". Since the filter does not
* match any services, it returns no results For more information about
* filtering, see [API Filtering](https://aip.dev/160).
* @opt_param string orderBy Optional. The order to list results by. General
* `order_by` string syntax: ` () (,)` * `` allows value: `name` * `` ascending
* or descending order by ``. If this is left blank, `asc` is used Note that an
* empty `order_by` string results in default order, which is order by `name` in
* ascending order.
* @opt_param int pageSize Optional. The maximum number of items to return.
* @opt_param string pageToken Optional. The next_page_token value returned from
* a previous List request, if any.
* @return ListServicesResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsNamespacesServices($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListServicesResponse::class);
}
/**
* Updates a service. (services.patch)
*
* @param string $name Immutable. The resource name for the service in the
* format `projects/locations/namespaces/services`.
* @param Service $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. List of fields to be updated in this
* request.
* @return Service
* @throws \Google\Service\Exception
*/
public function patch($name, Service $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Service::class);
}
/**
* Returns a service and its associated endpoints. Resolving a service is not
* considered an active developer method. (services.resolve)
*
* @param string $name Required. The name of the service to resolve.
* @param ResolveServiceRequest $postBody
* @param array $optParams Optional parameters.
* @return ResolveServiceResponse
* @throws \Google\Service\Exception
*/
public function resolve($name, ResolveServiceRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('resolve', [$params], ResolveServiceResponse::class);
}
/**
* Sets the IAM Policy for a resource (namespace or service only).
* (services.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);
}
/**
* Tests IAM permissions for a resource (namespace or service only).
* (services.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(ProjectsLocationsNamespacesServices::class, 'Google_Service_ServiceDirectory_Resource_ProjectsLocationsNamespacesServices');

View File

@@ -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\ServiceDirectory\Resource;
use Google\Service\ServiceDirectory\Endpoint;
use Google\Service\ServiceDirectory\ListEndpointsResponse;
use Google\Service\ServiceDirectory\ServicedirectoryEmpty;
/**
* The "endpoints" collection of methods.
* Typical usage is:
* <code>
* $servicedirectoryService = new Google\Service\ServiceDirectory(...);
* $endpoints = $servicedirectoryService->projects_locations_namespaces_services_endpoints;
* </code>
*/
class ProjectsLocationsNamespacesServicesEndpoints extends \Google\Service\Resource
{
/**
* Creates an endpoint, and returns the new endpoint. (endpoints.create)
*
* @param string $parent Required. The resource name of the service that this
* endpoint provides.
* @param Endpoint $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string endpointId Required. The Resource ID must be 1-63
* characters long, and comply with RFC1035. Specifically, the name must be 1-63
* characters long and match the regular expression
* `[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?` which means the first character must be a
* lowercase letter, and all following characters must be a dash, lowercase
* letter, or digit, except the last character, which cannot be a dash.
* @return Endpoint
* @throws \Google\Service\Exception
*/
public function create($parent, Endpoint $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Endpoint::class);
}
/**
* Deletes an endpoint. (endpoints.delete)
*
* @param string $name Required. The name of the endpoint to delete.
* @param array $optParams Optional parameters.
* @return ServicedirectoryEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], ServicedirectoryEmpty::class);
}
/**
* Gets an endpoint. (endpoints.get)
*
* @param string $name Required. The name of the endpoint to get.
* @param array $optParams Optional parameters.
* @return Endpoint
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Endpoint::class);
}
/**
* Lists all endpoints.
* (endpoints.listProjectsLocationsNamespacesServicesEndpoints)
*
* @param string $parent Required. The resource name of the service whose
* endpoints you'd like to list.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. The filter to list results by. General
* `filter` string syntax: ` ()` * `` can be `name`, `address`, `port`, or
* `annotations.` for map field * `` can be `<`, `>`, `<=`, `>=`, `!=`, `=`,
* `:`. Of which `:` means `HAS`, and is roughly the same as `=` * `` must be
* the same data type as field * `` can be `AND`, `OR`, `NOT` Examples of valid
* filters: * `annotations.owner` returns endpoints that have a annotation with
* the key `owner`, this is the same as `annotations:owner` *
* `annotations.protocol=gRPC` returns endpoints that have key/value
* `protocol=gRPC` * `address=192.108.1.105` returns endpoints that have this
* address * `port>8080` returns endpoints that have port number larger than
* 8080 * `name>projects/my-project/locations/us-east1/namespaces/my-
* namespace/services/my-service/endpoints/endpoint-c` returns endpoints that
* have name that is alphabetically later than the string, so "endpoint-e" is
* returned but "endpoint-a" is not * `annotations.owner!=sd AND
* annotations.foo=bar` returns endpoints that have `owner` in annotation key
* but value is not `sd` AND have key/value `foo=bar` * `doesnotexist.foo=bar`
* returns an empty list. Note that endpoint doesn't have a field called
* "doesnotexist". Since the filter does not match any endpoints, it returns no
* results For more information about filtering, see [API
* Filtering](https://aip.dev/160).
* @opt_param string orderBy Optional. The order to list results by. General
* `order_by` string syntax: ` () (,)` * `` allows values: `name`, `address`,
* `port` * `` ascending or descending order by ``. If this is left blank, `asc`
* is used Note that an empty `order_by` string results in default order, which
* is order by `name` in ascending order.
* @opt_param int pageSize Optional. The maximum number of items to return.
* @opt_param string pageToken Optional. The next_page_token value returned from
* a previous List request, if any.
* @return ListEndpointsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsNamespacesServicesEndpoints($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListEndpointsResponse::class);
}
/**
* Updates an endpoint. (endpoints.patch)
*
* @param string $name Immutable. The resource name for the endpoint in the
* format `projects/locations/namespaces/services/endpoints`.
* @param Endpoint $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. List of fields to be updated in this
* request.
* @return Endpoint
* @throws \Google\Service\Exception
*/
public function patch($name, Endpoint $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Endpoint::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsNamespacesServicesEndpoints::class, 'Google_Service_ServiceDirectory_Resource_ProjectsLocationsNamespacesServicesEndpoints');

View File

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

View File

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

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\ServiceDirectory;
class ServicedirectoryNamespace extends \Google\Model
{
/**
* @var string[]
*/
public $labels;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $uid;
/**
* @param string[]
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ServicedirectoryNamespace::class, 'Google_Service_ServiceDirectory_ServicedirectoryNamespace');

View File

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

View File

@@ -0,0 +1,45 @@
<?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\ServiceDirectory;
class TestIamPermissionsRequest extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* @var string[]
*/
public $permissions;
/**
* @param string[]
*/
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_ServiceDirectory_TestIamPermissionsRequest');

View File

@@ -0,0 +1,45 @@
<?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\ServiceDirectory;
class TestIamPermissionsResponse extends \Google\Collection
{
protected $collection_key = 'permissions';
/**
* @var string[]
*/
public $permissions;
/**
* @param string[]
*/
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_ServiceDirectory_TestIamPermissionsResponse');