/vendor/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesIosAppDataStreamsMeasurementProtocolSecrets.php

https://gitlab.com/Japang-Jawara/jawara-penilaian · PHP · 133 lines · 39 code · 4 blank · 90 comment · 0 complexity · 651313269d2db3a9306ef331ef9f464f MD5 · raw file

  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. namespace Google\Service\GoogleAnalyticsAdmin\Resource;
  18. use Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse;
  19. use Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret;
  20. use Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty;
  21. /**
  22. * The "measurementProtocolSecrets" collection of methods.
  23. * Typical usage is:
  24. * <code>
  25. * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...);
  26. * $measurementProtocolSecrets = $analyticsadminService->measurementProtocolSecrets;
  27. * </code>
  28. */
  29. class PropertiesIosAppDataStreamsMeasurementProtocolSecrets extends \Google\Service\Resource
  30. {
  31. /**
  32. * Creates a measurement protocol secret. (measurementProtocolSecrets.create)
  33. *
  34. * @param string $parent Required. The parent resource where this secret will be
  35. * created. Any type of stream (WebDataStream, IosAppDataStream,
  36. * AndroidAppDataStream) may be a parent. Format:
  37. * properties/{property}/webDataStreams/{webDataStream}
  38. * @param GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret $postBody
  39. * @param array $optParams Optional parameters.
  40. * @return GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
  41. */
  42. public function create($parent, GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret $postBody, $optParams = [])
  43. {
  44. $params = ['parent' => $parent, 'postBody' => $postBody];
  45. $params = array_merge($params, $optParams);
  46. return $this->call('create', [$params], GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::class);
  47. }
  48. /**
  49. * Deletes target MeasurementProtocolSecret. (measurementProtocolSecrets.delete)
  50. *
  51. * @param string $name Required. The name of the MeasurementProtocolSecret to
  52. * delete. Format: properties/{property}/webDataStreams/{webDataStream}/measurem
  53. * entProtocolSecrets/{measurementProtocolSecret} Note: Any type of stream
  54. * (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent.
  55. * @param array $optParams Optional parameters.
  56. * @return GoogleProtobufEmpty
  57. */
  58. public function delete($name, $optParams = [])
  59. {
  60. $params = ['name' => $name];
  61. $params = array_merge($params, $optParams);
  62. return $this->call('delete', [$params], GoogleProtobufEmpty::class);
  63. }
  64. /**
  65. * Lookup for a single "GA4" MeasurementProtocolSecret.
  66. * (measurementProtocolSecrets.get)
  67. *
  68. * @param string $name Required. The name of the measurement protocol secret to
  69. * lookup. Format: properties/{property}/webDataStreams/{webDataStream}/measurem
  70. * entProtocolSecrets/{measurementProtocolSecret} Note: Any type of stream
  71. * (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent.
  72. * @param array $optParams Optional parameters.
  73. * @return GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
  74. */
  75. public function get($name, $optParams = [])
  76. {
  77. $params = ['name' => $name];
  78. $params = array_merge($params, $optParams);
  79. return $this->call('get', [$params], GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::class);
  80. }
  81. /**
  82. * Returns child MeasurementProtocolSecrets under the specified parent Property.
  83. * (measurementProtocolSecrets.listPropertiesIosAppDataStreamsMeasurementProtoco
  84. * lSecrets)
  85. *
  86. * @param string $parent Required. The resource name of the parent stream. Any
  87. * type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be
  88. * a parent. Format: properties/{property}/webDataStreams/{webDataStream}/measur
  89. * ementProtocolSecrets
  90. * @param array $optParams Optional parameters.
  91. *
  92. * @opt_param int pageSize The maximum number of resources to return. If
  93. * unspecified, at most 10 resources will be returned. The maximum value is 10.
  94. * Higher values will be coerced to the maximum.
  95. * @opt_param string pageToken A page token, received from a previous
  96. * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
  97. * subsequent page. When paginating, all other parameters provided to
  98. * `ListMeasurementProtocolSecrets` must match the call that provided the page
  99. * token.
  100. * @return GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse
  101. */
  102. public function listPropertiesIosAppDataStreamsMeasurementProtocolSecrets($parent, $optParams = [])
  103. {
  104. $params = ['parent' => $parent];
  105. $params = array_merge($params, $optParams);
  106. return $this->call('list', [$params], GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse::class);
  107. }
  108. /**
  109. * Updates a measurement protocol secret. (measurementProtocolSecrets.patch)
  110. *
  111. * @param string $name Output only. Resource name of this secret. This secret
  112. * may be a child of any type of stream. Format: properties/{property}/webDataSt
  113. * reams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
  114. * @param GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret $postBody
  115. * @param array $optParams Optional parameters.
  116. *
  117. * @opt_param string updateMask The list of fields to be updated. Omitted fields
  118. * will not be updated.
  119. * @return GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
  120. */
  121. public function patch($name, GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret $postBody, $optParams = [])
  122. {
  123. $params = ['name' => $name, 'postBody' => $postBody];
  124. $params = array_merge($params, $optParams);
  125. return $this->call('patch', [$params], GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::class);
  126. }
  127. }
  128. // Adding a class alias for backwards compatibility with the previous class name.
  129. class_alias(PropertiesIosAppDataStreamsMeasurementProtocolSecrets::class, 'Google_Service_GoogleAnalyticsAdmin_Resource_PropertiesIosAppDataStreamsMeasurementProtocolSecrets');