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

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

Upload project files

  • Property mode set to 100644
File size: 7.5 KB
RevLine 
[e3d4e0a]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\GoogleCloudApigeeV1ListEnvironmentResourcesResponse;
22use Google\Service\Apigee\GoogleCloudApigeeV1ResourceFile;
23
24/**
25 * The "resourcefiles" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $apigeeService = new Google\Service\Apigee(...);
29 * $resourcefiles = $apigeeService->organizations_environments_resourcefiles;
30 * </code>
31 */
32class OrganizationsEnvironmentsResourcefiles extends \Google\Service\Resource
33{
34 /**
35 * Creates a resource file. Specify the `Content-Type` as `application/octet-
36 * stream` or `multipart/form-data`. For more information about resource files,
37 * see [Resource files](https://cloud.google.com/apigee/docs/api-
38 * platform/develop/resource-files). (resourcefiles.create)
39 *
40 * @param string $parent Required. Name of the environment in which to create
41 * the resource file in the following format:
42 * `organizations/{org}/environments/{env}`.
43 * @param GoogleApiHttpBody $postBody
44 * @param array $optParams Optional parameters.
45 *
46 * @opt_param string name Required. Name of the resource file. Must match the
47 * regular expression: [a-zA-Z0-9:/\\!@#$%^&{}\[\]()+\-=,.~'` ]{1,255}
48 * @opt_param string type Required. Resource file type. {{ resource_file_type }}
49 * @return GoogleCloudApigeeV1ResourceFile
50 * @throws \Google\Service\Exception
51 */
52 public function create($parent, GoogleApiHttpBody $postBody, $optParams = [])
53 {
54 $params = ['parent' => $parent, 'postBody' => $postBody];
55 $params = array_merge($params, $optParams);
56 return $this->call('create', [$params], GoogleCloudApigeeV1ResourceFile::class);
57 }
58 /**
59 * Deletes a resource file. For more information about resource files, see
60 * [Resource files](https://cloud.google.com/apigee/docs/api-
61 * platform/develop/resource-files). (resourcefiles.delete)
62 *
63 * @param string $parent Required. Name of the environment in the following
64 * format: `organizations/{org}/environments/{env}`.
65 * @param string $type Required. Resource file type. {{ resource_file_type }}
66 * @param string $name Required. ID of the resource file to delete. Must match
67 * the regular expression: [a-zA-Z0-9:/\\!@#$%^&{}\[\]()+\-=,.~'` ]{1,255}
68 * @param array $optParams Optional parameters.
69 * @return GoogleCloudApigeeV1ResourceFile
70 * @throws \Google\Service\Exception
71 */
72 public function delete($parent, $type, $name, $optParams = [])
73 {
74 $params = ['parent' => $parent, 'type' => $type, 'name' => $name];
75 $params = array_merge($params, $optParams);
76 return $this->call('delete', [$params], GoogleCloudApigeeV1ResourceFile::class);
77 }
78 /**
79 * Gets the contents of a resource file. For more information about resource
80 * files, see [Resource files](https://cloud.google.com/apigee/docs/api-
81 * platform/develop/resource-files). (resourcefiles.get)
82 *
83 * @param string $parent Required. Name of the environment in the following
84 * format: `organizations/{org}/environments/{env}`.
85 * @param string $type Required. Resource file type. {{ resource_file_type }}
86 * @param string $name Required. ID of the resource file. Must match the regular
87 * expression: [a-zA-Z0-9:/\\!@#$%^&{}\[\]()+\-=,.~'` ]{1,255}
88 * @param array $optParams Optional parameters.
89 * @return GoogleApiHttpBody
90 * @throws \Google\Service\Exception
91 */
92 public function get($parent, $type, $name, $optParams = [])
93 {
94 $params = ['parent' => $parent, 'type' => $type, 'name' => $name];
95 $params = array_merge($params, $optParams);
96 return $this->call('get', [$params], GoogleApiHttpBody::class);
97 }
98 /**
99 * Lists all resource files, optionally filtering by type. For more information
100 * about resource files, see [Resource
101 * files](https://cloud.google.com/apigee/docs/api-platform/develop/resource-
102 * files). (resourcefiles.listOrganizationsEnvironmentsResourcefiles)
103 *
104 * @param string $parent Required. Name of the environment in which to list
105 * resource files in the following format:
106 * `organizations/{org}/environments/{env}`.
107 * @param array $optParams Optional parameters.
108 *
109 * @opt_param string type Optional. Type of resource files to list. {{
110 * resource_file_type }}
111 * @return GoogleCloudApigeeV1ListEnvironmentResourcesResponse
112 * @throws \Google\Service\Exception
113 */
114 public function listOrganizationsEnvironmentsResourcefiles($parent, $optParams = [])
115 {
116 $params = ['parent' => $parent];
117 $params = array_merge($params, $optParams);
118 return $this->call('list', [$params], GoogleCloudApigeeV1ListEnvironmentResourcesResponse::class);
119 }
120 /**
121 * Lists all resource files, optionally filtering by type. For more information
122 * about resource files, see [Resource
123 * files](https://cloud.google.com/apigee/docs/api-platform/develop/resource-
124 * files). (resourcefiles.listEnvironmentResources)
125 *
126 * @param string $parent Required. Name of the environment in which to list
127 * resource files in the following format:
128 * `organizations/{org}/environments/{env}`.
129 * @param string $type Optional. Type of resource files to list. {{
130 * resource_file_type }}
131 * @param array $optParams Optional parameters.
132 * @return GoogleCloudApigeeV1ListEnvironmentResourcesResponse
133 * @throws \Google\Service\Exception
134 */
135 public function listEnvironmentResources($parent, $type, $optParams = [])
136 {
137 $params = ['parent' => $parent, 'type' => $type];
138 $params = array_merge($params, $optParams);
139 return $this->call('listEnvironmentResources', [$params], GoogleCloudApigeeV1ListEnvironmentResourcesResponse::class);
140 }
141 /**
142 * Updates a resource file. Specify the `Content-Type` as `application/octet-
143 * stream` or `multipart/form-data`. For more information about resource files,
144 * see [Resource files](https://cloud.google.com/apigee/docs/api-
145 * platform/develop/resource-files). (resourcefiles.update)
146 *
147 * @param string $parent Required. Name of the environment in the following
148 * format: `organizations/{org}/environments/{env}`.
149 * @param string $type Required. Resource file type. {{ resource_file_type }}
150 * @param string $name Required. ID of the resource file to update. Must match
151 * the regular expression: [a-zA-Z0-9:/\\!@#$%^&{}\[\]()+\-=,.~'` ]{1,255}
152 * @param GoogleApiHttpBody $postBody
153 * @param array $optParams Optional parameters.
154 * @return GoogleCloudApigeeV1ResourceFile
155 * @throws \Google\Service\Exception
156 */
157 public function update($parent, $type, $name, GoogleApiHttpBody $postBody, $optParams = [])
158 {
159 $params = ['parent' => $parent, 'type' => $type, 'name' => $name, 'postBody' => $postBody];
160 $params = array_merge($params, $optParams);
161 return $this->call('update', [$params], GoogleCloudApigeeV1ResourceFile::class);
162 }
163}
164
165// Adding a class alias for backwards compatibility with the previous class name.
166class_alias(OrganizationsEnvironmentsResourcefiles::class, 'Google_Service_Apigee_Resource_OrganizationsEnvironmentsResourcefiles');
Note: See TracBrowser for help on using the repository browser.