* $servicemanagementService = new Google\Service\ServiceManagement(...); * $configs = $servicemanagementService->configs; * */ class ServicesConfigs extends \Google\Service\Resource { /** * Creates a new service configuration (version) for a managed service. This * method only stores the service configuration. To roll out the service * configuration to backend systems please call CreateServiceRollout. Only the * 100 most recent service configurations and ones referenced by existing * rollouts are kept for each service. The rest will be deleted eventually. * (configs.create) * * @param string $serviceName Required. The name of the service. See the * [overview](https://cloud.google.com/service-management/overview) for naming * requirements. For example: `example.googleapis.com`. * @param Service $postBody * @param array $optParams Optional parameters. * @return Service */ public function create($serviceName, Service $postBody, $optParams = []) { $params = ['serviceName' => $serviceName, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('create', [$params], Service::class); } /** * Gets a service configuration (version) for a managed service. (configs.get) * * @param string $serviceName Required. The name of the service. See the * [overview](https://cloud.google.com/service-management/overview) for naming * requirements. For example: `example.googleapis.com`. * @param string $configId Required. The id of the service configuration * resource. This field must be specified for the server to return all fields, * including `SourceInfo`. * @param array $optParams Optional parameters. * * @opt_param string view Specifies which parts of the Service Config should be * returned in the response. * @return Service */ public function get($serviceName, $configId, $optParams = []) { $params = ['serviceName' => $serviceName, 'configId' => $configId]; $params = array_merge($params, $optParams); return $this->call('get', [$params], Service::class); } /** * Lists the history of the service configuration for a managed service, from * the newest to the oldest. (configs.listServicesConfigs) * * @param string $serviceName Required. The name of the service. See the * [overview](https://cloud.google.com/service-management/overview) for naming * requirements. For example: `example.googleapis.com`. * @param array $optParams Optional parameters. * * @opt_param int pageSize The max number of items to include in the response * list. Page size is 50 if not specified. Maximum value is 100. * @opt_param string pageToken The token of the page to retrieve. * @return ListServiceConfigsResponse */ public function listServicesConfigs($serviceName, $optParams = []) { $params = ['serviceName' => $serviceName]; $params = array_merge($params, $optParams); return $this->call('list', [$params], ListServiceConfigsResponse::class); } /** * Creates a new service configuration (version) for a managed service based on * user-supplied configuration source files (for example: OpenAPI * Specification). This method stores the source configurations as well as the * generated service configuration. To rollout the service configuration to * other services, please call CreateServiceRollout. Only the 100 most recent * configuration sources and ones referenced by existing service configurtions * are kept for each service. The rest will be deleted eventually. Operation * (configs.submit) * * @param string $serviceName Required. The name of the service. See the * [overview](https://cloud.google.com/service-management/overview) for naming * requirements. For example: `example.googleapis.com`. * @param SubmitConfigSourceRequest $postBody * @param array $optParams Optional parameters. * @return Operation */ public function submit($serviceName, SubmitConfigSourceRequest $postBody, $optParams = []) { $params = ['serviceName' => $serviceName, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('submit', [$params], Operation::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ServicesConfigs::class, 'Google_Service_ServiceManagement_Resource_ServicesConfigs');