Skip to content

Commit c1958ba

Browse files
1 parent 4013fb1 commit c1958ba

28 files changed

Lines changed: 2702 additions & 34 deletions

src/Chromewebstore.php

Lines changed: 40 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use Google\Client;
2121

2222
/**
23-
* Service definition for Chromewebstore (v1.1).
23+
* Service definition for Chromewebstore (v2).
2424
*
2525
* <p>
2626
* The Chrome Web Store API provides access to data about apps and extensions,
@@ -42,7 +42,8 @@ class Chromewebstore extends \Google\Service
4242
const CHROMEWEBSTORE_READONLY =
4343
"https://www.googleapis.com/auth/chromewebstore.readonly";
4444

45-
public $items;
45+
public $media;
46+
public $publishers_items;
4647
public $rootUrlTemplate;
4748

4849
/**
@@ -59,65 +60,70 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
5960
$this->rootUrlTemplate = $rootUrl ?: 'https://chromewebstore.UNIVERSE_DOMAIN/';
6061
$this->servicePath = '';
6162
$this->batchPath = 'batch';
62-
$this->version = 'v1.1';
63+
$this->version = 'v2';
6364
$this->serviceName = 'chromewebstore';
6465

65-
$this->items = new Chromewebstore\Resource\Items(
66+
$this->media = new Chromewebstore\Resource\Media(
6667
$this,
6768
$this->serviceName,
68-
'items',
69+
'media',
6970
[
7071
'methods' => [
71-
'get' => [
72-
'path' => 'chromewebstore/v1.1/items/{itemId}',
73-
'httpMethod' => 'GET',
72+
'upload' => [
73+
'path' => 'v2/{+name}:upload',
74+
'httpMethod' => 'POST',
7475
'parameters' => [
75-
'itemId' => [
76+
'name' => [
7677
'location' => 'path',
7778
'type' => 'string',
7879
'required' => true,
7980
],
80-
'projection' => [
81-
'location' => 'query',
81+
],
82+
],
83+
]
84+
]
85+
);
86+
$this->publishers_items = new Chromewebstore\Resource\PublishersItems(
87+
$this,
88+
$this->serviceName,
89+
'items',
90+
[
91+
'methods' => [
92+
'cancelSubmission' => [
93+
'path' => 'v2/{+name}:cancelSubmission',
94+
'httpMethod' => 'POST',
95+
'parameters' => [
96+
'name' => [
97+
'location' => 'path',
8298
'type' => 'string',
99+
'required' => true,
83100
],
84101
],
85-
],'insert' => [
86-
'path' => 'chromewebstore/v1.1/items',
87-
'httpMethod' => 'POST',
102+
],'fetchStatus' => [
103+
'path' => 'v2/{+name}:fetchStatus',
104+
'httpMethod' => 'GET',
88105
'parameters' => [
89-
'publisherEmail' => [
90-
'location' => 'query',
106+
'name' => [
107+
'location' => 'path',
91108
'type' => 'string',
109+
'required' => true,
92110
],
93111
],
94112
],'publish' => [
95-
'path' => 'chromewebstore/v1.1/items/{itemId}/publish',
113+
'path' => 'v2/{+name}:publish',
96114
'httpMethod' => 'POST',
97115
'parameters' => [
98-
'itemId' => [
116+
'name' => [
99117
'location' => 'path',
100118
'type' => 'string',
101119
'required' => true,
102120
],
103-
'deployPercentage' => [
104-
'location' => 'query',
105-
'type' => 'integer',
106-
],
107-
'publishTarget' => [
108-
'location' => 'query',
109-
'type' => 'string',
110-
],
111-
'reviewExemption' => [
112-
'location' => 'query',
113-
'type' => 'boolean',
114-
],
115121
],
116-
],'update' => [
117-
'path' => 'chromewebstore/v1.1/items/{itemId}',
118-
'httpMethod' => 'PUT',
122+
],'setPublishedDeployPercentage' => [
123+
'path' => 'v2/{+name}:setPublishedDeployPercentage',
124+
'httpMethod' => 'POST',
119125
'parameters' => [
120-
'itemId' => [
126+
'name' => [
121127
'location' => 'path',
122128
'type' => 'string',
123129
'required' => true,
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
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+
namespace Google\Service\Chromewebstore;
19+
20+
class Blobstore2Info extends \Google\Model
21+
{
22+
/**
23+
* @var string
24+
*/
25+
public $blobGeneration;
26+
/**
27+
* @var string
28+
*/
29+
public $blobId;
30+
/**
31+
* @var string
32+
*/
33+
public $downloadReadHandle;
34+
/**
35+
* @var string
36+
*/
37+
public $readToken;
38+
/**
39+
* @var string
40+
*/
41+
public $uploadMetadataContainer;
42+
43+
/**
44+
* @param string
45+
*/
46+
public function setBlobGeneration($blobGeneration)
47+
{
48+
$this->blobGeneration = $blobGeneration;
49+
}
50+
/**
51+
* @return string
52+
*/
53+
public function getBlobGeneration()
54+
{
55+
return $this->blobGeneration;
56+
}
57+
/**
58+
* @param string
59+
*/
60+
public function setBlobId($blobId)
61+
{
62+
$this->blobId = $blobId;
63+
}
64+
/**
65+
* @return string
66+
*/
67+
public function getBlobId()
68+
{
69+
return $this->blobId;
70+
}
71+
/**
72+
* @param string
73+
*/
74+
public function setDownloadReadHandle($downloadReadHandle)
75+
{
76+
$this->downloadReadHandle = $downloadReadHandle;
77+
}
78+
/**
79+
* @return string
80+
*/
81+
public function getDownloadReadHandle()
82+
{
83+
return $this->downloadReadHandle;
84+
}
85+
/**
86+
* @param string
87+
*/
88+
public function setReadToken($readToken)
89+
{
90+
$this->readToken = $readToken;
91+
}
92+
/**
93+
* @return string
94+
*/
95+
public function getReadToken()
96+
{
97+
return $this->readToken;
98+
}
99+
/**
100+
* @param string
101+
*/
102+
public function setUploadMetadataContainer($uploadMetadataContainer)
103+
{
104+
$this->uploadMetadataContainer = $uploadMetadataContainer;
105+
}
106+
/**
107+
* @return string
108+
*/
109+
public function getUploadMetadataContainer()
110+
{
111+
return $this->uploadMetadataContainer;
112+
}
113+
}
114+
115+
// Adding a class alias for backwards compatibility with the previous class name.
116+
class_alias(Blobstore2Info::class, 'Google_Service_Chromewebstore_Blobstore2Info');
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
namespace Google\Service\Chromewebstore;
19+
20+
class CancelSubmissionRequest extends \Google\Model
21+
{
22+
}
23+
24+
// Adding a class alias for backwards compatibility with the previous class name.
25+
class_alias(CancelSubmissionRequest::class, 'Google_Service_Chromewebstore_CancelSubmissionRequest');
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
namespace Google\Service\Chromewebstore;
19+
20+
class CancelSubmissionResponse extends \Google\Model
21+
{
22+
}
23+
24+
// Adding a class alias for backwards compatibility with the previous class name.
25+
class_alias(CancelSubmissionResponse::class, 'Google_Service_Chromewebstore_CancelSubmissionResponse');

0 commit comments

Comments
 (0)