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
18/**
19 * Service definition for Digitalassetlinks (v1).
20 *
21 * <p>
22 * Discovers relationships between online assets such as websites or mobile
23 * apps.</p>
24 *
25 * <p>
26 * For more information about this service, see the API
27 * <a href="https://developers.google.com/digital-asset-links/" target="_blank">Documentation</a>
28 * </p>
29 *
30 * @author Google, Inc.
31 */
32class Google_Service_Digitalassetlinks extends Google_Service
33{
34
35
36  public $assetlinks;
37  public $statements;
38
39  /**
40   * Constructs the internal representation of the Digitalassetlinks service.
41   *
42   * @param Google_Client $client
43   */
44  public function __construct(Google_Client $client)
45  {
46    parent::__construct($client);
47    $this->rootUrl = 'https://digitalassetlinks.googleapis.com/';
48    $this->servicePath = '';
49    $this->batchPath = 'batch';
50    $this->version = 'v1';
51    $this->serviceName = 'digitalassetlinks';
52
53    $this->assetlinks = new Google_Service_Digitalassetlinks_Resource_Assetlinks(
54        $this,
55        $this->serviceName,
56        'assetlinks',
57        array(
58          'methods' => array(
59            'check' => array(
60              'path' => 'v1/assetlinks:check',
61              'httpMethod' => 'GET',
62              'parameters' => array(
63                'target.androidApp.packageName' => array(
64                  'location' => 'query',
65                  'type' => 'string',
66                ),
67                'source.androidApp.certificate.sha256Fingerprint' => array(
68                  'location' => 'query',
69                  'type' => 'string',
70                ),
71                'relation' => array(
72                  'location' => 'query',
73                  'type' => 'string',
74                ),
75                'target.web.site' => array(
76                  'location' => 'query',
77                  'type' => 'string',
78                ),
79                'target.androidApp.certificate.sha256Fingerprint' => array(
80                  'location' => 'query',
81                  'type' => 'string',
82                ),
83                'source.androidApp.packageName' => array(
84                  'location' => 'query',
85                  'type' => 'string',
86                ),
87                'source.web.site' => array(
88                  'location' => 'query',
89                  'type' => 'string',
90                ),
91              ),
92            ),
93          )
94        )
95    );
96    $this->statements = new Google_Service_Digitalassetlinks_Resource_Statements(
97        $this,
98        $this->serviceName,
99        'statements',
100        array(
101          'methods' => array(
102            'list' => array(
103              'path' => 'v1/statements:list',
104              'httpMethod' => 'GET',
105              'parameters' => array(
106                'source.androidApp.certificate.sha256Fingerprint' => array(
107                  'location' => 'query',
108                  'type' => 'string',
109                ),
110                'relation' => array(
111                  'location' => 'query',
112                  'type' => 'string',
113                ),
114                'source.web.site' => array(
115                  'location' => 'query',
116                  'type' => 'string',
117                ),
118                'source.androidApp.packageName' => array(
119                  'location' => 'query',
120                  'type' => 'string',
121                ),
122              ),
123            ),
124          )
125        )
126    );
127  }
128}
129