source: vendor/google/apiclient-services/src/CloudDataplex/Resource/ProjectsLocationsEntryGroupsEntries.php

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

Upload project files

  • Property mode set to 100644
File size: 8.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\CloudDataplex\Resource;
19
20use Google\Service\CloudDataplex\GoogleCloudDataplexV1Entry;
21use Google\Service\CloudDataplex\GoogleCloudDataplexV1ListEntriesResponse;
22
23/**
24 * The "entries" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $dataplexService = new Google\Service\CloudDataplex(...);
28 * $entries = $dataplexService->projects_locations_entryGroups_entries;
29 * </code>
30 */
31class ProjectsLocationsEntryGroupsEntries extends \Google\Service\Resource
32{
33 /**
34 * Creates an Entry. (entries.create)
35 *
36 * @param string $parent Required. The resource name of the parent Entry Group:
37 * projects/{project}/locations/{location}/entryGroups/{entry_group}.
38 * @param GoogleCloudDataplexV1Entry $postBody
39 * @param array $optParams Optional parameters.
40 *
41 * @opt_param string entryId Required. Entry identifier. It has to be unique
42 * within an Entry Group.Entries corresponding to Google Cloud resources use an
43 * Entry ID format based on full resource names
44 * (https://cloud.google.com/apis/design/resource_names#full_resource_name). The
45 * format is a full resource name of the resource without the prefix double
46 * slashes in the API service name part of the full resource name. This allows
47 * retrieval of entries using their associated resource name.For example, if the
48 * full resource name of a resource is
49 * //library.googleapis.com/shelves/shelf1/books/book2, then the suggested
50 * entry_id is library.googleapis.com/shelves/shelf1/books/book2.It is also
51 * suggested to follow the same convention for entries corresponding to
52 * resources from providers or systems other than Google Cloud.The maximum size
53 * of the field is 4000 characters.
54 * @return GoogleCloudDataplexV1Entry
55 * @throws \Google\Service\Exception
56 */
57 public function create($parent, GoogleCloudDataplexV1Entry $postBody, $optParams = [])
58 {
59 $params = ['parent' => $parent, 'postBody' => $postBody];
60 $params = array_merge($params, $optParams);
61 return $this->call('create', [$params], GoogleCloudDataplexV1Entry::class);
62 }
63 /**
64 * Deletes an Entry. (entries.delete)
65 *
66 * @param string $name Required. The resource name of the Entry: projects/{proje
67 * ct}/locations/{location}/entryGroups/{entry_group}/entries/{entry}.
68 * @param array $optParams Optional parameters.
69 * @return GoogleCloudDataplexV1Entry
70 * @throws \Google\Service\Exception
71 */
72 public function delete($name, $optParams = [])
73 {
74 $params = ['name' => $name];
75 $params = array_merge($params, $optParams);
76 return $this->call('delete', [$params], GoogleCloudDataplexV1Entry::class);
77 }
78 /**
79 * Gets an Entry.Caution: The BigQuery metadata that is stored in Dataplex
80 * Catalog is changing. For more information, see Changes to BigQuery metadata
81 * stored in Dataplex Catalog (https://cloud.google.com/dataplex/docs/biqquery-
82 * metadata-changes). (entries.get)
83 *
84 * @param string $name Required. The resource name of the Entry: projects/{proje
85 * ct}/locations/{location}/entryGroups/{entry_group}/entries/{entry}.
86 * @param array $optParams Optional parameters.
87 *
88 * @opt_param string aspectTypes Optional. Limits the aspects returned to the
89 * provided aspect types. It only works for CUSTOM view.
90 * @opt_param string paths Optional. Limits the aspects returned to those
91 * associated with the provided paths within the Entry. It only works for CUSTOM
92 * view.
93 * @opt_param string view Optional. View to control which parts of an entry the
94 * service should return.
95 * @return GoogleCloudDataplexV1Entry
96 * @throws \Google\Service\Exception
97 */
98 public function get($name, $optParams = [])
99 {
100 $params = ['name' => $name];
101 $params = array_merge($params, $optParams);
102 return $this->call('get', [$params], GoogleCloudDataplexV1Entry::class);
103 }
104 /**
105 * Lists Entries within an EntryGroup.
106 * (entries.listProjectsLocationsEntryGroupsEntries)
107 *
108 * @param string $parent Required. The resource name of the parent Entry Group:
109 * projects/{project}/locations/{location}/entryGroups/{entry_group}.
110 * @param array $optParams Optional parameters.
111 *
112 * @opt_param string filter Optional. A filter on the entries to return. Filters
113 * are case-sensitive. You can filter the request by the following fields:
114 * entry_type entry_source.display_nameThe comparison operators are =, !=, <, >,
115 * <=, >=. The service compares strings according to lexical order.You can use
116 * the logical operators AND, OR, NOT in the filter.You can use Wildcard "*",
117 * but for entry_type you need to provide the full project id or number.Example
118 * filter expressions: "entry_source.display_name=AnExampleDisplayName"
119 * "entry_type=projects/example-project/locations/global/entryTypes/example-
120 * entry_type" "entry_type=projects/example-project/locations/us/entryTypes/a*
121 * OR entry_type=projects/another-project/locations" "NOT
122 * entry_source.display_name=AnotherExampleDisplayName"
123 * @opt_param int pageSize Optional. Number of items to return per page. If
124 * there are remaining results, the service returns a next_page_token. If
125 * unspecified, the service returns at most 10 Entries. The maximum value is
126 * 100; values above 100 will be coerced to 100.
127 * @opt_param string pageToken Optional. Page token received from a previous
128 * ListEntries call. Provide this to retrieve the subsequent page.
129 * @return GoogleCloudDataplexV1ListEntriesResponse
130 * @throws \Google\Service\Exception
131 */
132 public function listProjectsLocationsEntryGroupsEntries($parent, $optParams = [])
133 {
134 $params = ['parent' => $parent];
135 $params = array_merge($params, $optParams);
136 return $this->call('list', [$params], GoogleCloudDataplexV1ListEntriesResponse::class);
137 }
138 /**
139 * Updates an Entry. (entries.patch)
140 *
141 * @param string $name Identifier. The relative resource name of the entry, in
142 * the format projects/{project_id_or_number}/locations/{location_id}/entryGroup
143 * s/{entry_group_id}/entries/{entry_id}.
144 * @param GoogleCloudDataplexV1Entry $postBody
145 * @param array $optParams Optional parameters.
146 *
147 * @opt_param bool allowMissing Optional. If set to true and the entry doesn't
148 * exist, the service will create it.
149 * @opt_param string aspectKeys Optional. The map keys of the Aspects which the
150 * service should modify. It supports the following syntaxes: - matches an
151 * aspect of the given type and empty path. @path - matches an aspect of the
152 * given type and specified path. For example, to attach an aspect to a field
153 * that is specified by the schema aspect, the path should have the format
154 * Schema.. * - matches aspects of the given type for all paths. *@path -
155 * matches aspects of all types on the given path.The service will not remove
156 * existing aspects matching the syntax unless delete_missing_aspects is set to
157 * true.If this field is left empty, the service treats it as specifying exactly
158 * those Aspects present in the request.
159 * @opt_param bool deleteMissingAspects Optional. If set to true and the
160 * aspect_keys specify aspect ranges, the service deletes any existing aspects
161 * from that range that weren't provided in the request.
162 * @opt_param string updateMask Optional. Mask of fields to update. To update
163 * Aspects, the update_mask must contain the value "aspects".If the update_mask
164 * is empty, the service will update all modifiable fields present in the
165 * request.
166 * @return GoogleCloudDataplexV1Entry
167 * @throws \Google\Service\Exception
168 */
169 public function patch($name, GoogleCloudDataplexV1Entry $postBody, $optParams = [])
170 {
171 $params = ['name' => $name, 'postBody' => $postBody];
172 $params = array_merge($params, $optParams);
173 return $this->call('patch', [$params], GoogleCloudDataplexV1Entry::class);
174 }
175}
176
177// Adding a class alias for backwards compatibility with the previous class name.
178class_alias(ProjectsLocationsEntryGroupsEntries::class, 'Google_Service_CloudDataplex_Resource_ProjectsLocationsEntryGroupsEntries');
Note: See TracBrowser for help on using the repository browser.