source: vendor/google/apiclient-services/src/Css/Resource/AccountsCssProductInputs.php

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

Upload project files

  • Property mode set to 100644
File size: 3.3 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\Css\Resource;
19
20use Google\Service\Css\CssEmpty;
21use Google\Service\Css\CssProductInput;
22
23/**
24 * The "cssProductInputs" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $cssService = new Google\Service\Css(...);
28 * $cssProductInputs = $cssService->accounts_cssProductInputs;
29 * </code>
30 */
31class AccountsCssProductInputs extends \Google\Service\Resource
32{
33 /**
34 * Deletes a CSS Product input from your CSS Center account. After a delete it
35 * may take several minutes until the input is no longer available.
36 * (cssProductInputs.delete)
37 *
38 * @param string $name Required. The name of the CSS product input resource to
39 * delete. Format: accounts/{account}/cssProductInputs/{css_product_input}
40 * @param array $optParams Optional parameters.
41 *
42 * @opt_param string supplementalFeedId The Content API Supplemental Feed ID.
43 * The field must not be set if the action applies to a primary feed. If the
44 * field is set, then product action applies to a supplemental feed instead of
45 * primary Content API feed.
46 * @return CssEmpty
47 * @throws \Google\Service\Exception
48 */
49 public function delete($name, $optParams = [])
50 {
51 $params = ['name' => $name];
52 $params = array_merge($params, $optParams);
53 return $this->call('delete', [$params], CssEmpty::class);
54 }
55 /**
56 * Uploads a CssProductInput to your CSS Center account. If an input with the
57 * same contentLanguage, identity, feedLabel and feedId already exists, this
58 * method replaces that entry. After inserting, updating, or deleting a CSS
59 * Product input, it may take several minutes before the processed CSS Product
60 * can be retrieved. (cssProductInputs.insert)
61 *
62 * @param string $parent Required. The account where this CSS Product will be
63 * inserted. Format: accounts/{account}
64 * @param CssProductInput $postBody
65 * @param array $optParams Optional parameters.
66 *
67 * @opt_param string feedId Required. The primary or supplemental feed id. If
68 * CSS Product already exists and feed id provided is different, then the CSS
69 * Product will be moved to a new feed. Note: For now, CSSs do not need to
70 * provide feed ids as we create feeds on the fly. We do not have supplemental
71 * feed support for CSS Products yet.
72 * @return CssProductInput
73 * @throws \Google\Service\Exception
74 */
75 public function insert($parent, CssProductInput $postBody, $optParams = [])
76 {
77 $params = ['parent' => $parent, 'postBody' => $postBody];
78 $params = array_merge($params, $optParams);
79 return $this->call('insert', [$params], CssProductInput::class);
80 }
81}
82
83// Adding a class alias for backwards compatibility with the previous class name.
84class_alias(AccountsCssProductInputs::class, 'Google_Service_Css_Resource_AccountsCssProductInputs');
Note: See TracBrowser for help on using the repository browser.