source: vendor/google/apiclient-services/src/Apigee/Resource/OrganizationsEnvironmentsTraceConfigOverrides.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: 5.8 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\GoogleCloudApigeeV1ListTraceConfigOverridesResponse;
21use Google\Service\Apigee\GoogleCloudApigeeV1TraceConfigOverride;
22use Google\Service\Apigee\GoogleProtobufEmpty;
23
24/**
25 * The "overrides" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $apigeeService = new Google\Service\Apigee(...);
29 * $overrides = $apigeeService->organizations_environments_traceConfig_overrides;
30 * </code>
31 */
32class OrganizationsEnvironmentsTraceConfigOverrides extends \Google\Service\Resource
33{
34 /**
35 * Creates a trace configuration override. The response contains a system-
36 * generated UUID, that can be used to view, update, or delete the configuration
37 * override. Use the List API to view the existing trace configuration
38 * overrides. (overrides.create)
39 *
40 * @param string $parent Required. Parent resource of the trace configuration
41 * override. Use the following structure in your request.
42 * "organizations/environments/traceConfig".
43 * @param GoogleCloudApigeeV1TraceConfigOverride $postBody
44 * @param array $optParams Optional parameters.
45 * @return GoogleCloudApigeeV1TraceConfigOverride
46 * @throws \Google\Service\Exception
47 */
48 public function create($parent, GoogleCloudApigeeV1TraceConfigOverride $postBody, $optParams = [])
49 {
50 $params = ['parent' => $parent, 'postBody' => $postBody];
51 $params = array_merge($params, $optParams);
52 return $this->call('create', [$params], GoogleCloudApigeeV1TraceConfigOverride::class);
53 }
54 /**
55 * Deletes a distributed trace configuration override. (overrides.delete)
56 *
57 * @param string $name Required. Name of the trace configuration override. Use
58 * the following structure in your request:
59 * "organizations/environments/traceConfig/overrides".
60 * @param array $optParams Optional parameters.
61 * @return GoogleProtobufEmpty
62 * @throws \Google\Service\Exception
63 */
64 public function delete($name, $optParams = [])
65 {
66 $params = ['name' => $name];
67 $params = array_merge($params, $optParams);
68 return $this->call('delete', [$params], GoogleProtobufEmpty::class);
69 }
70 /**
71 * Gets a trace configuration override. (overrides.get)
72 *
73 * @param string $name Required. Name of the trace configuration override. Use
74 * the following structure in your request:
75 * "organizations/environments/traceConfig/overrides".
76 * @param array $optParams Optional parameters.
77 * @return GoogleCloudApigeeV1TraceConfigOverride
78 * @throws \Google\Service\Exception
79 */
80 public function get($name, $optParams = [])
81 {
82 $params = ['name' => $name];
83 $params = array_merge($params, $optParams);
84 return $this->call('get', [$params], GoogleCloudApigeeV1TraceConfigOverride::class);
85 }
86 /**
87 * Lists all of the distributed trace configuration overrides in an environment.
88 * (overrides.listOrganizationsEnvironmentsTraceConfigOverrides)
89 *
90 * @param string $parent Required. Parent resource of the trace configuration
91 * override. Use the following structure in your request:
92 * "organizations/environments/traceConfig".
93 * @param array $optParams Optional parameters.
94 *
95 * @opt_param int pageSize Maximum number of trace configuration overrides to
96 * return. If not specified, the maximum number returned is 25. The maximum
97 * number cannot exceed 100.
98 * @opt_param string pageToken A page token, returned from a previous
99 * `ListTraceConfigOverrides` call. Token value that can be used to retrieve the
100 * subsequent page. When paginating, all other parameters provided to
101 * `ListTraceConfigOverrides` must match those specified in the call to obtain
102 * the page token.
103 * @return GoogleCloudApigeeV1ListTraceConfigOverridesResponse
104 * @throws \Google\Service\Exception
105 */
106 public function listOrganizationsEnvironmentsTraceConfigOverrides($parent, $optParams = [])
107 {
108 $params = ['parent' => $parent];
109 $params = array_merge($params, $optParams);
110 return $this->call('list', [$params], GoogleCloudApigeeV1ListTraceConfigOverridesResponse::class);
111 }
112 /**
113 * Updates a distributed trace configuration override. Note that the repeated
114 * fields have replace semantics when included in the field mask and that they
115 * will be overwritten by the value of the fields in the request body.
116 * (overrides.patch)
117 *
118 * @param string $name Required. Name of the trace configuration override. Use
119 * the following structure in your request:
120 * "organizations/environments/traceConfig/overrides".
121 * @param GoogleCloudApigeeV1TraceConfigOverride $postBody
122 * @param array $optParams Optional parameters.
123 *
124 * @opt_param string updateMask List of fields to be updated.
125 * @return GoogleCloudApigeeV1TraceConfigOverride
126 * @throws \Google\Service\Exception
127 */
128 public function patch($name, GoogleCloudApigeeV1TraceConfigOverride $postBody, $optParams = [])
129 {
130 $params = ['name' => $name, 'postBody' => $postBody];
131 $params = array_merge($params, $optParams);
132 return $this->call('patch', [$params], GoogleCloudApigeeV1TraceConfigOverride::class);
133 }
134}
135
136// Adding a class alias for backwards compatibility with the previous class name.
137class_alias(OrganizationsEnvironmentsTraceConfigOverrides::class, 'Google_Service_Apigee_Resource_OrganizationsEnvironmentsTraceConfigOverrides');
Note: See TracBrowser for help on using the repository browser.