source: vendor/google/apiclient-services/src/Apigee/Resource/OrganizationsSharedflowsRevisions.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 9 days ago

Upload project files

  • Property mode set to 100644
File size: 4.4 KB
Line 
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\Apigee\Resource;
19
20use Google\Service\Apigee\GoogleApiHttpBody;
21use Google\Service\Apigee\GoogleCloudApigeeV1SharedFlowRevision;
22
23/**
24 * The "revisions" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $apigeeService = new Google\Service\Apigee(...);
28 * $revisions = $apigeeService->organizations_sharedflows_revisions;
29 * </code>
30 */
31class OrganizationsSharedflowsRevisions extends \Google\Service\Resource
32{
33 /**
34 * Deletes a shared flow and all associated policies, resources, and revisions.
35 * You must undeploy the shared flow before deleting it. (revisions.delete)
36 *
37 * @param string $name Required. The name of the shared flow revision to delete.
38 * Must be of the form: `organizations/{organization_id}/sharedflows/{shared_flo
39 * w_id}/revisions/{revision_id}`
40 * @param array $optParams Optional parameters.
41 * @return GoogleCloudApigeeV1SharedFlowRevision
42 * @throws \Google\Service\Exception
43 */
44 public function delete($name, $optParams = [])
45 {
46 $params = ['name' => $name];
47 $params = array_merge($params, $optParams);
48 return $this->call('delete', [$params], GoogleCloudApigeeV1SharedFlowRevision::class);
49 }
50 /**
51 * Gets a revision of a shared flow. To download the shared flow configuration
52 * bundle for the specified revision as a zip file, set the `format` query
53 * parameter to `bundle`. If you are using curl, specify `-o filename.zip` to
54 * save the output to a file; otherwise, it displays to `stdout`. Then, develop
55 * the shared flow configuration locally and upload the updated sharedFlow
56 * configuration revision, as described in
57 * [updateSharedFlowRevision](updateSharedFlowRevision). (revisions.get)
58 *
59 * @param string $name Required. The name of the shared flow revision to get.
60 * Must be of the form: `organizations/{organization_id}/sharedflows/{shared_flo
61 * w_id}/revisions/{revision_id}`
62 * @param array $optParams Optional parameters.
63 *
64 * @opt_param string format Specify `bundle` to export the contents of the
65 * shared flow bundle. Otherwise, the bundle metadata is returned.
66 * @return GoogleApiHttpBody
67 * @throws \Google\Service\Exception
68 */
69 public function get($name, $optParams = [])
70 {
71 $params = ['name' => $name];
72 $params = array_merge($params, $optParams);
73 return $this->call('get', [$params], GoogleApiHttpBody::class);
74 }
75 /**
76 * Updates a shared flow revision. This operation is only allowed on revisions
77 * which have never been deployed. After deployment a revision becomes
78 * immutable, even if it becomes undeployed. The payload is a ZIP-formatted
79 * shared flow. Content type must be either multipart/form-data or
80 * application/octet-stream. (revisions.updateSharedFlowRevision)
81 *
82 * @param string $name Required. The name of the shared flow revision to update.
83 * Must be of the form: `organizations/{organization_id}/sharedflows/{shared_flo
84 * w_id}/revisions/{revision_id}`
85 * @param GoogleApiHttpBody $postBody
86 * @param array $optParams Optional parameters.
87 *
88 * @opt_param bool validate Ignored. All uploads are validated regardless of the
89 * value of this field. It is kept for compatibility with existing APIs. Must be
90 * `true` or `false` if provided.
91 * @return GoogleCloudApigeeV1SharedFlowRevision
92 * @throws \Google\Service\Exception
93 */
94 public function updateSharedFlowRevision($name, GoogleApiHttpBody $postBody, $optParams = [])
95 {
96 $params = ['name' => $name, 'postBody' => $postBody];
97 $params = array_merge($params, $optParams);
98 return $this->call('updateSharedFlowRevision', [$params], GoogleCloudApigeeV1SharedFlowRevision::class);
99 }
100}
101
102// Adding a class alias for backwards compatibility with the previous class name.
103class_alias(OrganizationsSharedflowsRevisions::class, 'Google_Service_Apigee_Resource_OrganizationsSharedflowsRevisions');
Note: See TracBrowser for help on using the repository browser.