1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\Resource;
19
20use Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\ListSqlIntegrationsResponse;
21use Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI\SqlIntegration;
22
23/**
24 * The "sqlIntegrations" collection of methods.
25 * Typical usage is:
26 *  <code>
27 *   $managedidentitiesService = new Google\Service\ManagedServiceforMicrosoftActiveDirectoryConsumerAPI(...);
28 *   $sqlIntegrations = $managedidentitiesService->sqlIntegrations;
29 *  </code>
30 */
31class ProjectsLocationsManagedidentitiesGlobalDomainsSqlIntegrations extends \Google\Service\Resource
32{
33  /**
34   * Gets details of a single sqlIntegration. (sqlIntegrations.get)
35   *
36   * @param string $name Required. SQLIntegration resource name using the form: `p
37   * rojects/{project_id}/locations/global/domains/{domain}/sqlIntegrations/{name}
38   * `
39   * @param array $optParams Optional parameters.
40   * @return SqlIntegration
41   */
42  public function get($name, $optParams = [])
43  {
44    $params = ['name' => $name];
45    $params = array_merge($params, $optParams);
46    return $this->call('get', [$params], SqlIntegration::class);
47  }
48  /**
49   * Lists SqlIntegrations in a given domain. (sqlIntegrations.listProjectsLocatio
50   * nsManagedidentitiesGlobalDomainsSqlIntegrations)
51   *
52   * @param string $parent Required. The resource name of the SqlIntegrations
53   * using the form: `projects/{project_id}/locations/global/domains`
54   * @param array $optParams Optional parameters.
55   *
56   * @opt_param string filter Optional. Filter specifying constraints of a list
57   * operation. For example, `SqlIntegration.name="sql"`.
58   * @opt_param string orderBy Optional. Specifies the ordering of results
59   * following syntax at
60   * https://cloud.google.com/apis/design/design_patterns#sorting_order.
61   * @opt_param int pageSize Optional. The maximum number of items to return. If
62   * not specified, a default value of 1000 will be used by the service.
63   * Regardless of the page_size value, the response may include a partial list
64   * and a caller should only rely on response'ANIZATIONs next_page_token to
65   * determine if there are more instances left to be queried.
66   * @opt_param string pageToken Optional. The next_page_token value returned from
67   * a previous List request, if any.
68   * @return ListSqlIntegrationsResponse
69   */
70  public function listProjectsLocationsManagedidentitiesGlobalDomainsSqlIntegrations($parent, $optParams = [])
71  {
72    $params = ['parent' => $parent];
73    $params = array_merge($params, $optParams);
74    return $this->call('list', [$params], ListSqlIntegrationsResponse::class);
75  }
76}
77
78// Adding a class alias for backwards compatibility with the previous class name.
79class_alias(ProjectsLocationsManagedidentitiesGlobalDomainsSqlIntegrations::class, 'Google_Service_ManagedServiceforMicrosoftActiveDirectoryConsumerAPI_Resource_ProjectsLocationsManagedidentitiesGlobalDomainsSqlIntegrations');
80