Mise à jour des librairies

This commit is contained in:
lars
2019-03-10 23:30:23 +01:00
parent 2040b7be39
commit 7df3d72953
3603 changed files with 233169 additions and 107764 deletions

View File

@@ -18,9 +18,25 @@
class Google_Service_Pubsub_Binding extends Google_Collection
{
protected $collection_key = 'members';
protected $conditionType = 'Google_Service_Pubsub_Expr';
protected $conditionDataType = '';
public $members;
public $role;
/**
* @param Google_Service_Pubsub_Expr
*/
public function setCondition(Google_Service_Pubsub_Expr $condition)
{
$this->condition = $condition;
}
/**
* @return Google_Service_Pubsub_Expr
*/
public function getCondition()
{
return $this->condition;
}
public function setMembers($members)
{
$this->members = $members;

View File

@@ -17,8 +17,17 @@
class Google_Service_Pubsub_CreateSnapshotRequest extends Google_Model
{
public $labels;
public $subscription;
public function setLabels($labels)
{
$this->labels = $labels;
}
public function getLabels()
{
return $this->labels;
}
public function setSubscription($subscription)
{
$this->subscription = $subscription;

View File

@@ -0,0 +1,30 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Pubsub_ExpirationPolicy extends Google_Model
{
public $ttl;
public function setTtl($ttl)
{
$this->ttl = $ttl;
}
public function getTtl()
{
return $this->ttl;
}
}

View File

@@ -0,0 +1,57 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Pubsub_Expr extends Google_Model
{
public $description;
public $expression;
public $location;
public $title;
public function setDescription($description)
{
$this->description = $description;
}
public function getDescription()
{
return $this->description;
}
public function setExpression($expression)
{
$this->expression = $expression;
}
public function getExpression()
{
return $this->expression;
}
public function setLocation($location)
{
$this->location = $location;
}
public function getLocation()
{
return $this->location;
}
public function setTitle($title)
{
$this->title = $title;
}
public function getTitle()
{
return $this->title;
}
}

View File

@@ -26,25 +26,31 @@
class Google_Service_Pubsub_Resource_ProjectsSnapshots extends Google_Service_Resource
{
/**
* [ALPHA] This method is a part of a closed Alpha API. Creates a snapshot from
* the requested subscription. If the snapshot already exists, returns
* `ALREADY_EXISTS`. If the requested subscription doesn't exist, returns
* `NOT_FOUND`. If the backlog in the subscription is too old -- and the
* Creates a snapshot from the requested subscription. Snapshots are used in
* Seek operations, which allow you to manage message acknowledgments in bulk.
* That is, you can set the acknowledgment state of messages in an existing
* subscription to the state captured by a snapshot.
*
* BETA: This feature is part of a beta release. This API might be changed in
* backward-incompatible ways and is not recommended for production use. It is
* not subject to any SLA or deprecation policy. If the snapshot already exists,
* returns `ALREADY_EXISTS`. If the requested subscription doesn't exist,
* returns `NOT_FOUND`. If the backlog in the subscription is too old -- and the
* resulting snapshot would expire in less than 1 hour -- then
* `FAILED_PRECONDITION` is returned. See also the `Snapshot.expire_time` field.
*
* If the name is not provided in the request, the server will assign a random
* name for this snapshot on the same project as the subscription, conforming to
* the [resource name
* format](https://cloud.google.com/pubsub/docs/overview#names). The generated
* name is populated in the returned Snapshot object. Note that for REST API
* requests, you must specify a name in the request. (snapshots.create)
* format](https://cloud.google.com/pubsub/docs/admin#resource_names). The
* generated name is populated in the returned Snapshot object. Note that for
* REST API requests, you must specify a name in the request. (snapshots.create)
*
* @param string $name Optional user-provided name for this snapshot. If the
* name is not provided in the request, the server will assign a random name for
* this snapshot on the same project as the subscription. Note that for REST API
* requests, you must specify a name. Format is
* `projects/{project}/snapshots/{snap}`.
* requests, you must specify a name. See the
*
* resource name rules. Format is `projects/{project}/snapshots/{snap}`.
* @param Google_Service_Pubsub_CreateSnapshotRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Pubsub_Snapshot
@@ -56,11 +62,16 @@ class Google_Service_Pubsub_Resource_ProjectsSnapshots extends Google_Service_Re
return $this->call('create', array($params), "Google_Service_Pubsub_Snapshot");
}
/**
* Removes an existing snapshot. All messages retained in the snapshot are
* immediately dropped. After a snapshot is deleted, a new one may be created
* with the same name, but the new one has no association with the old snapshot
* or its subscription, unless the same subscription is specified. [ALPHA] This
* method is a part of a closed Alpha API. (snapshots.delete)
* Removes an existing snapshot. Snapshots are used in Seek operations, which
* allow you to manage message acknowledgments in bulk. That is, you can set the
* acknowledgment state of messages in an existing subscription to the state
* captured by a snapshot. BETA: This feature is part of a beta release. This
* API might be changed in backward-incompatible ways and is not recommended for
* production use. It is not subject to any SLA or deprecation policy. When the
* snapshot is deleted, all messages retained in the snapshot are immediately
* dropped. After a snapshot is deleted, a new one may be created with the same
* name, but the new one has no association with the old snapshot or its
* subscription, unless the same subscription is specified. (snapshots.delete)
*
* @param string $snapshot The name of the snapshot to delete. Format is
* `projects/{project}/snapshots/{snap}`.
@@ -74,8 +85,13 @@ class Google_Service_Pubsub_Resource_ProjectsSnapshots extends Google_Service_Re
return $this->call('delete', array($params), "Google_Service_Pubsub_PubsubEmpty");
}
/**
* Gets the configuration details of a snapshot. [ALPHA] This method is a part
* of a closed Alpha API. (snapshots.get)
* Gets the configuration details of a snapshot. Snapshots are used in Seek
* operations, which allow you to manage message acknowledgments in bulk. That
* is, you can set the acknowledgment state of messages in an existing
* subscription to the state captured by a snapshot. BETA: This feature is part
* of a beta release. This API might be changed in backward-incompatible ways
* and is not recommended for production use. It is not subject to any SLA or
* deprecation policy. (snapshots.get)
*
* @param string $snapshot The name of the snapshot to get. Format is
* `projects/{project}/snapshots/{snap}`.
@@ -105,11 +121,16 @@ class Google_Service_Pubsub_Resource_ProjectsSnapshots extends Google_Service_Re
return $this->call('getIamPolicy', array($params), "Google_Service_Pubsub_Policy");
}
/**
* Lists the existing snapshots. [ALPHA] This method is a part of a closed Alpha
* API. (snapshots.listProjectsSnapshots)
* Lists the existing snapshots. Snapshots are used in Seek operations, which
* allow you to manage message acknowledgments in bulk. That is, you can set the
* acknowledgment state of messages in an existing subscription to the state
* captured by a snapshot. BETA: This feature is part of a beta release. This
* API might be changed in backward-incompatible ways and is not recommended for
* production use. It is not subject to any SLA or deprecation policy.
* (snapshots.listProjectsSnapshots)
*
* @param string $project The name of the cloud project that snapshots belong
* to. Format is `projects/{project}`.
* @param string $project The name of the project in which to list snapshots.
* Format is `projects/{project-id}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of snapshots to return.
@@ -126,9 +147,13 @@ class Google_Service_Pubsub_Resource_ProjectsSnapshots extends Google_Service_Re
return $this->call('list', array($params), "Google_Service_Pubsub_ListSnapshotsResponse");
}
/**
* Updates an existing snapshot. Note that certain properties of a snapshot are
* not modifiable. [ALPHA] This method is a part of a closed Alpha API.
* (snapshots.patch)
* Updates an existing snapshot. Snapshots are used in Seek operations, which
* allow you to manage message acknowledgments in bulk. That is, you can set the
* acknowledgment state of messages in an existing subscription to the state
* captured by a snapshot. BETA: This feature is part of a beta release. This
* API might be changed in backward-incompatible ways and is not recommended for
* production use. It is not subject to any SLA or deprecation policy. Note that
* certain properties of a snapshot are not modifiable. (snapshots.patch)
*
* @param string $name The name of the snapshot.
* @param Google_Service_Pubsub_UpdateSnapshotRequest $postBody

View File

@@ -47,16 +47,19 @@ class Google_Service_Pubsub_Resource_ProjectsSubscriptions extends Google_Servic
return $this->call('acknowledge', array($params), "Google_Service_Pubsub_PubsubEmpty");
}
/**
* Creates a subscription to a given topic. If the subscription already exists,
* returns `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns
* Creates a subscription to a given topic. See the
*
* resource name rules. If the subscription already exists, returns
* `ALREADY_EXISTS`. If the corresponding topic doesn't exist, returns
* `NOT_FOUND`.
*
* If the name is not provided in the request, the server will assign a random
* name for this subscription on the same project as the topic, conforming to
* the [resource name
* format](https://cloud.google.com/pubsub/docs/overview#names). The generated
* name is populated in the returned Subscription object. Note that for REST API
* requests, you must specify a name in the request. (subscriptions.create)
* format](https://cloud.google.com/pubsub/docs/admin#resource_names). The
* generated name is populated in the returned Subscription object. Note that
* for REST API requests, you must specify a name in the request.
* (subscriptions.create)
*
* @param string $name The name of the subscription. It must have the format
* `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must
@@ -125,8 +128,8 @@ class Google_Service_Pubsub_Resource_ProjectsSubscriptions extends Google_Servic
/**
* Lists matching subscriptions. (subscriptions.listProjectsSubscriptions)
*
* @param string $project The name of the cloud project that subscriptions
* belong to. Format is `projects/{project}`.
* @param string $project The name of the project in which to list
* subscriptions. Format is `projects/{project-id}`.
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken The value returned by the last
@@ -204,10 +207,9 @@ class Google_Service_Pubsub_Resource_ProjectsSubscriptions extends Google_Servic
return $this->call('patch', array($params), "Google_Service_Pubsub_Subscription");
}
/**
* Pulls messages from the server. Returns an empty list if there are no
* messages available in the backlog. The server may return `UNAVAILABLE` if
* there are too many concurrent pull requests pending for the given
* subscription. (subscriptions.pull)
* Pulls messages from the server. The server may return `UNAVAILABLE` if there
* are too many concurrent pull requests pending for the given subscription.
* (subscriptions.pull)
*
* @param string $subscription The subscription from which messages should be
* pulled. Format is `projects/{project}/subscriptions/{sub}`.
@@ -223,8 +225,14 @@ class Google_Service_Pubsub_Resource_ProjectsSubscriptions extends Google_Servic
}
/**
* Seeks an existing subscription to a point in time or to a given snapshot,
* whichever is provided in the request. [ALPHA] This method is a part of a
* closed Alpha API. (subscriptions.seek)
* whichever is provided in the request. Snapshots are used in Seek operations,
* which allow you to manage message acknowledgments in bulk. That is, you can
* set the acknowledgment state of messages in an existing subscription to the
* state captured by a snapshot. Note that both the subscription and the
* snapshot must be on the same topic. BETA: This feature is part of a beta
* release. This API might be changed in backward-incompatible ways and is not
* recommended for production use. It is not subject to any SLA or deprecation
* policy. (subscriptions.seek)
*
* @param string $subscription The subscription to affect.
* @param Google_Service_Pubsub_SeekRequest $postBody

View File

@@ -26,7 +26,9 @@
class Google_Service_Pubsub_Resource_ProjectsTopics extends Google_Service_Resource
{
/**
* Creates the given topic with the given name. (topics.create)
* Creates the given topic with the given name. See the
*
* resource name rules. (topics.create)
*
* @param string $name The name of the topic. It must have the format
* `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
@@ -95,8 +97,8 @@ class Google_Service_Pubsub_Resource_ProjectsTopics extends Google_Service_Resou
/**
* Lists matching topics. (topics.listProjectsTopics)
*
* @param string $project The name of the cloud project that topics belong to.
* Format is `projects/{project}`.
* @param string $project The name of the project in which to list topics.
* Format is `projects/{project-id}`.
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken The value returned by the last
@@ -111,10 +113,29 @@ class Google_Service_Pubsub_Resource_ProjectsTopics extends Google_Service_Resou
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Pubsub_ListTopicsResponse");
}
/**
* Updates an existing topic. Note that certain properties of a topic are not
* modifiable. (topics.patch)
*
* @param string $name The name of the topic. It must have the format
* `"projects/{project}/topics/{topic}"`. `{topic}` must start with a letter,
* and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
* underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs
* (`%`). It must be between 3 and 255 characters in length, and it must not
* start with `"goog"`.
* @param Google_Service_Pubsub_UpdateTopicRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Pubsub_Topic
*/
public function patch($name, Google_Service_Pubsub_UpdateTopicRequest $postBody, $optParams = array())
{
$params = array('name' => $name, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('patch', array($params), "Google_Service_Pubsub_Topic");
}
/**
* Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does
* not exist. The message payload must not be empty; it must contain either a
* non-empty data field, or at least one attribute. (topics.publish)
* not exist. (topics.publish)
*
* @param string $topic The messages in the request will be published on this
* topic. Format is `projects/{project}/topics/{topic}`.

View File

@@ -26,8 +26,13 @@
class Google_Service_Pubsub_Resource_ProjectsTopicsSnapshots extends Google_Service_Resource
{
/**
* Lists the names of the snapshots on this topic. [ALPHA] This method is a part
* of a closed Alpha API. (snapshots.listProjectsTopicsSnapshots)
* Lists the names of the snapshots on this topic. Snapshots are used in Seek
* operations, which allow you to manage message acknowledgments in bulk. That
* is, you can set the acknowledgment state of messages in an existing
* subscription to the state captured by a snapshot. BETA: This feature is part
* of a beta release. This API might be changed in backward-incompatible ways
* and is not recommended for production use. It is not subject to any SLA or
* deprecation policy. (snapshots.listProjectsTopicsSnapshots)
*
* @param string $topic The name of the topic that snapshots are attached to.
* Format is `projects/{project}/topics/{topic}`.

View File

@@ -33,11 +33,11 @@ class Google_Service_Pubsub_Resource_ProjectsTopicsSubscriptions extends Google_
* to. Format is `projects/{project}/topics/{topic}`.
* @param array $optParams Optional parameters.
*
* @opt_param int pageSize Maximum number of subscription names to return.
* @opt_param string pageToken The value returned by the last
* `ListTopicSubscriptionsResponse`; indicates that this is a continuation of a
* prior `ListTopicSubscriptions` call, and that the system should return the
* next page of data.
* @opt_param int pageSize Maximum number of subscription names to return.
* @return Google_Service_Pubsub_ListTopicSubscriptionsResponse
*/
public function listProjectsTopicsSubscriptions($topic, $optParams = array())

View File

@@ -18,6 +18,7 @@
class Google_Service_Pubsub_Snapshot extends Google_Model
{
public $expireTime;
public $labels;
public $name;
public $topic;
@@ -29,6 +30,14 @@ class Google_Service_Pubsub_Snapshot extends Google_Model
{
return $this->expireTime;
}
public function setLabels($labels)
{
$this->labels = $labels;
}
public function getLabels()
{
return $this->labels;
}
public function setName($name)
{
$this->name = $name;

View File

@@ -18,6 +18,9 @@
class Google_Service_Pubsub_Subscription extends Google_Model
{
public $ackDeadlineSeconds;
protected $expirationPolicyType = 'Google_Service_Pubsub_ExpirationPolicy';
protected $expirationPolicyDataType = '';
public $labels;
public $messageRetentionDuration;
public $name;
protected $pushConfigType = 'Google_Service_Pubsub_PushConfig';
@@ -33,6 +36,28 @@ class Google_Service_Pubsub_Subscription extends Google_Model
{
return $this->ackDeadlineSeconds;
}
/**
* @param Google_Service_Pubsub_ExpirationPolicy
*/
public function setExpirationPolicy(Google_Service_Pubsub_ExpirationPolicy $expirationPolicy)
{
$this->expirationPolicy = $expirationPolicy;
}
/**
* @return Google_Service_Pubsub_ExpirationPolicy
*/
public function getExpirationPolicy()
{
return $this->expirationPolicy;
}
public function setLabels($labels)
{
$this->labels = $labels;
}
public function getLabels()
{
return $this->labels;
}
public function setMessageRetentionDuration($messageRetentionDuration)
{
$this->messageRetentionDuration = $messageRetentionDuration;

View File

@@ -17,8 +17,17 @@
class Google_Service_Pubsub_Topic extends Google_Model
{
public $labels;
public $name;
public function setLabels($labels)
{
$this->labels = $labels;
}
public function getLabels()
{
return $this->labels;
}
public function setName($name)
{
$this->name = $name;

View File

@@ -0,0 +1,46 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
class Google_Service_Pubsub_UpdateTopicRequest extends Google_Model
{
protected $topicType = 'Google_Service_Pubsub_Topic';
protected $topicDataType = '';
public $updateMask;
/**
* @param Google_Service_Pubsub_Topic
*/
public function setTopic(Google_Service_Pubsub_Topic $topic)
{
$this->topic = $topic;
}
/**
* @return Google_Service_Pubsub_Topic
*/
public function getTopic()
{
return $this->topic;
}
public function setUpdateMask($updateMask)
{
$this->updateMask = $updateMask;
}
public function getUpdateMask()
{
return $this->updateMask;
}
}