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 FirebaseDynamicLinks (v1). 20 * 21 * <p> 22 * Programmatically creates and manages Firebase Dynamic Links.</p> 23 * 24 * <p> 25 * For more information about this service, see the API 26 * <a href="https://firebase.google.com/docs/dynamic-links/" target="_blank">Documentation</a> 27 * </p> 28 * 29 * @author Google, Inc. 30 */ 31class Google_Service_FirebaseDynamicLinks extends Google_Service 32{ 33 /** View and administer all your Firebase data and settings. */ 34 const FIREBASE = 35 "https://www.googleapis.com/auth/firebase"; 36 37 public $managedShortLinks; 38 public $shortLinks; 39 public $v1; 40 41 /** 42 * Constructs the internal representation of the FirebaseDynamicLinks service. 43 * 44 * @param Google_Client $client 45 */ 46 public function __construct(Google_Client $client) 47 { 48 parent::__construct($client); 49 $this->rootUrl = 'https://firebasedynamiclinks.googleapis.com/'; 50 $this->servicePath = ''; 51 $this->batchPath = 'batch'; 52 $this->version = 'v1'; 53 $this->serviceName = 'firebasedynamiclinks'; 54 55 $this->managedShortLinks = new Google_Service_FirebaseDynamicLinks_Resource_ManagedShortLinks( 56 $this, 57 $this->serviceName, 58 'managedShortLinks', 59 array( 60 'methods' => array( 61 'create' => array( 62 'path' => 'v1/managedShortLinks:create', 63 'httpMethod' => 'POST', 64 'parameters' => array(), 65 ), 66 ) 67 ) 68 ); 69 $this->shortLinks = new Google_Service_FirebaseDynamicLinks_Resource_ShortLinks( 70 $this, 71 $this->serviceName, 72 'shortLinks', 73 array( 74 'methods' => array( 75 'create' => array( 76 'path' => 'v1/shortLinks', 77 'httpMethod' => 'POST', 78 'parameters' => array(), 79 ), 80 ) 81 ) 82 ); 83 $this->v1 = new Google_Service_FirebaseDynamicLinks_Resource_V1( 84 $this, 85 $this->serviceName, 86 'v1', 87 array( 88 'methods' => array( 89 'getLinkStats' => array( 90 'path' => 'v1/{dynamicLink}/linkStats', 91 'httpMethod' => 'GET', 92 'parameters' => array( 93 'dynamicLink' => array( 94 'location' => 'path', 95 'type' => 'string', 96 'required' => true, 97 ), 98 'durationDays' => array( 99 'location' => 'query', 100 'type' => 'string', 101 ), 102 'sdkVersion' => array( 103 'location' => 'query', 104 'type' => 'string', 105 ), 106 ), 107 ),'installAttribution' => array( 108 'path' => 'v1/installAttribution', 109 'httpMethod' => 'POST', 110 'parameters' => array(), 111 ),'reopenAttribution' => array( 112 'path' => 'v1/reopenAttribution', 113 'httpMethod' => 'POST', 114 'parameters' => array(), 115 ), 116 ) 117 ) 118 ); 119 } 120} 121