google-api-client 0.45.0 → 0.45.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +56 -0
  3. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +7 -9
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
  6. data/generated/google/apis/analyticsadmin_v1alpha.rb +43 -0
  7. data/generated/google/apis/analyticsadmin_v1alpha/classes.rb +1361 -0
  8. data/generated/google/apis/analyticsadmin_v1alpha/representations.rb +610 -0
  9. data/generated/google/apis/analyticsadmin_v1alpha/service.rb +2135 -0
  10. data/generated/google/apis/apigateway_v1alpha2.rb +34 -0
  11. data/generated/google/apis/apigateway_v1alpha2/classes.rb +633 -0
  12. data/generated/google/apis/apigateway_v1alpha2/representations.rb +250 -0
  13. data/generated/google/apis/apigateway_v1alpha2/service.rb +623 -0
  14. data/generated/google/apis/apigee_v1.rb +1 -1
  15. data/generated/google/apis/apigee_v1/classes.rb +0 -6
  16. data/generated/google/apis/apigee_v1/representations.rb +0 -1
  17. data/generated/google/apis/apigee_v1/service.rb +1 -5
  18. data/generated/google/apis/appsmarket_v2.rb +1 -1
  19. data/generated/google/apis/bigquery_v2.rb +1 -1
  20. data/generated/google/apis/bigquery_v2/classes.rb +22 -0
  21. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  22. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  23. data/generated/google/apis/binaryauthorization_v1/classes.rb +187 -0
  24. data/generated/google/apis/binaryauthorization_v1/representations.rb +74 -0
  25. data/generated/google/apis/binaryauthorization_v1/service.rb +35 -0
  26. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  27. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +187 -0
  28. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +74 -0
  29. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +35 -0
  30. data/generated/google/apis/calendar_v3.rb +1 -1
  31. data/generated/google/apis/calendar_v3/classes.rb +2 -1
  32. data/generated/google/apis/chat_v1.rb +1 -1
  33. data/generated/google/apis/chat_v1/classes.rb +76 -2
  34. data/generated/google/apis/chat_v1/representations.rb +35 -0
  35. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  36. data/generated/google/apis/cloudbuild_v1/classes.rb +0 -34
  37. data/generated/google/apis/cloudbuild_v1/representations.rb +0 -15
  38. data/generated/google/apis/cloudbuild_v1/service.rb +7 -4
  39. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  40. data/generated/google/apis/cloudfunctions_v1/classes.rb +12 -1
  41. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -0
  42. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  43. data/generated/google/apis/cloudidentity_v1/classes.rb +0 -34
  44. data/generated/google/apis/cloudidentity_v1/representations.rb +0 -17
  45. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  46. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +185 -0
  47. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +94 -0
  48. data/generated/google/apis/cloudidentity_v1beta1/service.rb +164 -0
  49. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  50. data/generated/google/apis/cloudresourcemanager_v1/service.rb +2 -2
  51. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +2 -2
  53. data/generated/google/apis/content_v2_1.rb +1 -1
  54. data/generated/google/apis/content_v2_1/service.rb +1 -1
  55. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  56. data/generated/google/apis/datacatalog_v1beta1/classes.rb +1 -1
  57. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  58. data/generated/google/apis/dataflow_v1b3/classes.rb +20 -8
  59. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  60. data/generated/google/apis/dfareporting_v3_3/classes.rb +0 -164
  61. data/generated/google/apis/dfareporting_v3_3/representations.rb +0 -42
  62. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  63. data/generated/google/apis/dfareporting_v3_4/classes.rb +0 -164
  64. data/generated/google/apis/dfareporting_v3_4/representations.rb +0 -42
  65. data/generated/google/apis/dialogflow_v2.rb +1 -1
  66. data/generated/google/apis/dialogflow_v2/classes.rb +73 -0
  67. data/generated/google/apis/dialogflow_v2/representations.rb +51 -0
  68. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  69. data/generated/google/apis/dialogflow_v2beta1/classes.rb +73 -0
  70. data/generated/google/apis/dialogflow_v2beta1/representations.rb +51 -0
  71. data/generated/google/apis/dialogflow_v2beta1/service.rb +6 -6
  72. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  73. data/generated/google/apis/dialogflow_v3beta1/classes.rb +142 -0
  74. data/generated/google/apis/dialogflow_v3beta1/representations.rb +83 -0
  75. data/generated/google/apis/displayvideo_v1.rb +1 -1
  76. data/generated/google/apis/displayvideo_v1/classes.rb +8 -0
  77. data/generated/google/apis/displayvideo_v1/representations.rb +1 -0
  78. data/generated/google/apis/dlp_v2.rb +1 -1
  79. data/generated/google/apis/dlp_v2/classes.rb +26 -0
  80. data/generated/google/apis/dlp_v2/representations.rb +16 -0
  81. data/generated/google/apis/dlp_v2/service.rb +328 -328
  82. data/generated/google/apis/firestore_v1.rb +1 -1
  83. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  84. data/generated/google/apis/gmail_v1.rb +1 -1
  85. data/generated/google/apis/gmail_v1/service.rb +1 -1
  86. data/generated/google/apis/healthcare_v1.rb +1 -1
  87. data/generated/google/apis/healthcare_v1/classes.rb +3 -1
  88. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  89. data/generated/google/apis/healthcare_v1beta1/classes.rb +1014 -16
  90. data/generated/google/apis/healthcare_v1beta1/representations.rb +453 -0
  91. data/generated/google/apis/healthcare_v1beta1/service.rb +1226 -0
  92. data/generated/google/apis/logging_v2.rb +1 -1
  93. data/generated/google/apis/logging_v2/classes.rb +98 -55
  94. data/generated/google/apis/logging_v2/representations.rb +32 -0
  95. data/generated/google/apis/logging_v2/service.rb +1214 -264
  96. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  97. data/generated/google/apis/oslogin_v1alpha/classes.rb +2 -2
  98. data/generated/google/apis/oslogin_v1alpha/service.rb +13 -13
  99. data/generated/google/apis/people_v1.rb +1 -1
  100. data/generated/google/apis/people_v1/service.rb +8 -6
  101. data/generated/google/apis/realtimebidding_v1.rb +1 -1
  102. data/generated/google/apis/realtimebidding_v1/classes.rb +4 -4
  103. data/generated/google/apis/realtimebidding_v1/service.rb +4 -1
  104. data/generated/google/apis/run_v1.rb +1 -1
  105. data/generated/google/apis/run_v1/classes.rb +0 -124
  106. data/generated/google/apis/run_v1/representations.rb +0 -61
  107. data/generated/google/apis/run_v1/service.rb +0 -342
  108. data/generated/google/apis/searchconsole_v1.rb +7 -1
  109. data/generated/google/apis/searchconsole_v1/classes.rb +388 -0
  110. data/generated/google/apis/searchconsole_v1/representations.rb +162 -0
  111. data/generated/google/apis/searchconsole_v1/service.rb +287 -0
  112. data/generated/google/apis/securitycenter_v1.rb +1 -1
  113. data/generated/google/apis/securitycenter_v1/classes.rb +5 -199
  114. data/generated/google/apis/securitycenter_v1/representations.rb +0 -72
  115. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  116. data/generated/google/apis/securitycenter_v1beta1/classes.rb +2 -196
  117. data/generated/google/apis/securitycenter_v1beta1/representations.rb +0 -72
  118. data/generated/google/apis/securitycenter_v1beta2.rb +1 -1
  119. data/generated/google/apis/securitycenter_v1beta2/classes.rb +2 -196
  120. data/generated/google/apis/securitycenter_v1beta2/representations.rb +0 -72
  121. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  122. data/generated/google/apis/servicecontrol_v1/classes.rb +1 -2
  123. data/generated/google/apis/servicecontrol_v2.rb +1 -1
  124. data/generated/google/apis/servicecontrol_v2/classes.rb +1 -2
  125. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  126. data/generated/google/apis/servicemanagement_v1/classes.rb +0 -22
  127. data/generated/google/apis/servicemanagement_v1/representations.rb +0 -13
  128. data/generated/google/apis/servicemanagement_v1/service.rb +0 -36
  129. data/generated/google/apis/smartdevicemanagement_v1.rb +35 -0
  130. data/generated/google/apis/smartdevicemanagement_v1/classes.rb +313 -0
  131. data/generated/google/apis/smartdevicemanagement_v1/representations.rb +174 -0
  132. data/generated/google/apis/smartdevicemanagement_v1/service.rb +312 -0
  133. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  134. data/generated/google/apis/sourcerepo_v1/classes.rb +250 -400
  135. data/generated/google/apis/sourcerepo_v1/service.rb +40 -49
  136. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  137. data/generated/google/apis/sqladmin_v1beta4/classes.rb +83 -52
  138. data/generated/google/apis/sqladmin_v1beta4/representations.rb +33 -17
  139. data/generated/google/apis/storage_v1.rb +1 -1
  140. data/generated/google/apis/sts_v1beta.rb +1 -1
  141. data/generated/google/apis/sts_v1beta/classes.rb +4 -1
  142. data/generated/google/apis/websecurityscanner_v1.rb +1 -1
  143. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  144. data/generated/google/apis/workflowexecutions_v1beta.rb +2 -2
  145. data/generated/google/apis/workflowexecutions_v1beta/service.rb +1 -1
  146. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  147. data/generated/google/apis/youtube_v3.rb +1 -1
  148. data/generated/google/apis/youtube_v3/classes.rb +0 -134
  149. data/generated/google/apis/youtube_v3/representations.rb +0 -55
  150. data/generated/google/apis/youtube_v3/service.rb +2 -2
  151. data/lib/google/apis/version.rb +1 -1
  152. metadata +15 -3
@@ -0,0 +1,2135 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module AnalyticsadminV1alpha
23
+ # Google Analytics Admin API
24
+ #
25
+ #
26
+ #
27
+ # @example
28
+ # require 'google/apis/analyticsadmin_v1alpha'
29
+ #
30
+ # Analyticsadmin = Google::Apis::AnalyticsadminV1alpha # Alias the module
31
+ # service = Analyticsadmin::GoogleAnalyticsAdminService.new
32
+ #
33
+ # @see http://code.google.com/apis/analytics/docs/mgmt/home.html
34
+ class GoogleAnalyticsAdminService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://analyticsadmin.googleapis.com/', '')
47
+ @batch_path = 'batch'
48
+ end
49
+
50
+ # Returns summaries of all accounts accessible by the caller.
51
+ # @param [Fixnum] page_size
52
+ # The maximum number of AccountSummary resources to return. The service may
53
+ # return fewer than this value, even if there are additional pages. If
54
+ # unspecified, at most 50 resources will be returned. The maximum value is 200; (
55
+ # higher values will be coerced to the maximum)
56
+ # @param [String] page_token
57
+ # A page token, received from a previous `ListAccountSummaries` call. Provide
58
+ # this to retrieve the subsequent page. When paginating, all other parameters
59
+ # provided to `ListAccountSummaries` must match the call that provided the page
60
+ # token.
61
+ # @param [String] fields
62
+ # Selector specifying which fields to include in a partial response.
63
+ # @param [String] quota_user
64
+ # Available to use for quota purposes for server-side applications. Can be any
65
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
66
+ # @param [Google::Apis::RequestOptions] options
67
+ # Request-specific options
68
+ #
69
+ # @yield [result, err] Result & error if block supplied
70
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAccountSummariesResponse] parsed result object
71
+ # @yieldparam err [StandardError] error object if request failed
72
+ #
73
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAccountSummariesResponse]
74
+ #
75
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
76
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
77
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
78
+ def list_account_summaries(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
79
+ command = make_simple_command(:get, 'v1alpha/accountSummaries', options)
80
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAccountSummariesResponse::Representation
81
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAccountSummariesResponse
82
+ command.query['pageSize'] = page_size unless page_size.nil?
83
+ command.query['pageToken'] = page_token unless page_token.nil?
84
+ command.query['fields'] = fields unless fields.nil?
85
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
86
+ execute_or_queue_command(command, &block)
87
+ end
88
+
89
+ # Marks target Account as soft-deleted (ie: "trashed") and returns it. This API
90
+ # does not have a method to restore soft-deleted accounts. However, they can be
91
+ # restored using the Trash Can UI. If the accounts are not restored before the
92
+ # expiration time, the account and all child resources (eg: Properties,
93
+ # GoogleAdsLinks, Streams, UserLinks) will be permanently purged. https://
94
+ # support.google.com/analytics/answer/6154772 Returns an error if the target is
95
+ # not found.
96
+ # @param [String] name
97
+ # Required. The name of the Account to soft-delete. Format: accounts/`account`
98
+ # Example: "accounts/100"
99
+ # @param [String] fields
100
+ # Selector specifying which fields to include in a partial response.
101
+ # @param [String] quota_user
102
+ # Available to use for quota purposes for server-side applications. Can be any
103
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
104
+ # @param [Google::Apis::RequestOptions] options
105
+ # Request-specific options
106
+ #
107
+ # @yield [result, err] Result & error if block supplied
108
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
109
+ # @yieldparam err [StandardError] error object if request failed
110
+ #
111
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
112
+ #
113
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
114
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
115
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
116
+ def delete_account(name, fields: nil, quota_user: nil, options: nil, &block)
117
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
118
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
119
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
120
+ command.params['name'] = name unless name.nil?
121
+ command.query['fields'] = fields unless fields.nil?
122
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
123
+ execute_or_queue_command(command, &block)
124
+ end
125
+
126
+ # Lookup for a single Account. Throws "Target not found" if no such account
127
+ # found, or if caller does not have permissions to access it.
128
+ # @param [String] name
129
+ # Required. The name of the account to lookup. Format: accounts/`account`
130
+ # Example: "accounts/100"
131
+ # @param [String] fields
132
+ # Selector specifying which fields to include in a partial response.
133
+ # @param [String] quota_user
134
+ # Available to use for quota purposes for server-side applications. Can be any
135
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
136
+ # @param [Google::Apis::RequestOptions] options
137
+ # Request-specific options
138
+ #
139
+ # @yield [result, err] Result & error if block supplied
140
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount] parsed result object
141
+ # @yieldparam err [StandardError] error object if request failed
142
+ #
143
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount]
144
+ #
145
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
146
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
147
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
148
+ def get_account(name, fields: nil, quota_user: nil, options: nil, &block)
149
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
150
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount::Representation
151
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount
152
+ command.params['name'] = name unless name.nil?
153
+ command.query['fields'] = fields unless fields.nil?
154
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
155
+ execute_or_queue_command(command, &block)
156
+ end
157
+
158
+ # Get data sharing settings on an account. Data sharing settings are singletons.
159
+ # @param [String] name
160
+ # Required. The name of the settings to lookup. Format: accounts/`account`/
161
+ # dataSharingSettings Example: "accounts/1000/dataSharingSettings"
162
+ # @param [String] fields
163
+ # Selector specifying which fields to include in a partial response.
164
+ # @param [String] quota_user
165
+ # Available to use for quota purposes for server-side applications. Can be any
166
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
167
+ # @param [Google::Apis::RequestOptions] options
168
+ # Request-specific options
169
+ #
170
+ # @yield [result, err] Result & error if block supplied
171
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataSharingSettings] parsed result object
172
+ # @yieldparam err [StandardError] error object if request failed
173
+ #
174
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataSharingSettings]
175
+ #
176
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
177
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
178
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
179
+ def get_account_data_sharing_settings(name, fields: nil, quota_user: nil, options: nil, &block)
180
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
181
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataSharingSettings::Representation
182
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataSharingSettings
183
+ command.params['name'] = name unless name.nil?
184
+ command.query['fields'] = fields unless fields.nil?
185
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
186
+ execute_or_queue_command(command, &block)
187
+ end
188
+
189
+ # Returns all accounts accessible by the caller. Note that these accounts might
190
+ # not currently have App+Web properties. Soft-deleted (ie: "trashed") accounts
191
+ # are excluded by default. Returns an empty list if no relevant accounts are
192
+ # found.
193
+ # @param [Fixnum] page_size
194
+ # The maximum number of resources to return. The service may return fewer than
195
+ # this value, even if there are additional pages. If unspecified, at most 50
196
+ # resources will be returned. The maximum value is 200; (higher values will be
197
+ # coerced to the maximum)
198
+ # @param [String] page_token
199
+ # A page token, received from a previous `ListAccounts` call. Provide this to
200
+ # retrieve the subsequent page. When paginating, all other parameters provided
201
+ # to `ListAccounts` must match the call that provided the page token.
202
+ # @param [Boolean] show_deleted
203
+ # Whether to include soft-deleted (ie: "trashed") Accounts in the results.
204
+ # Accounts can be inspected to determine whether they are deleted or not.
205
+ # @param [String] fields
206
+ # Selector specifying which fields to include in a partial response.
207
+ # @param [String] quota_user
208
+ # Available to use for quota purposes for server-side applications. Can be any
209
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
210
+ # @param [Google::Apis::RequestOptions] options
211
+ # Request-specific options
212
+ #
213
+ # @yield [result, err] Result & error if block supplied
214
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAccountsResponse] parsed result object
215
+ # @yieldparam err [StandardError] error object if request failed
216
+ #
217
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAccountsResponse]
218
+ #
219
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
220
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
221
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
222
+ def list_accounts(page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
223
+ command = make_simple_command(:get, 'v1alpha/accounts', options)
224
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAccountsResponse::Representation
225
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAccountsResponse
226
+ command.query['pageSize'] = page_size unless page_size.nil?
227
+ command.query['pageToken'] = page_token unless page_token.nil?
228
+ command.query['showDeleted'] = show_deleted unless show_deleted.nil?
229
+ command.query['fields'] = fields unless fields.nil?
230
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
231
+ execute_or_queue_command(command, &block)
232
+ end
233
+
234
+ # Updates an account.
235
+ # @param [String] name
236
+ # Output only. Resource name of this account. Format: accounts/`account` Example:
237
+ # "accounts/100"
238
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount] google_analytics_admin_v1alpha_account_object
239
+ # @param [String] update_mask
240
+ # The list of fields to be updated. Omitted fields will not be updated.
241
+ # @param [String] fields
242
+ # Selector specifying which fields to include in a partial response.
243
+ # @param [String] quota_user
244
+ # Available to use for quota purposes for server-side applications. Can be any
245
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
246
+ # @param [Google::Apis::RequestOptions] options
247
+ # Request-specific options
248
+ #
249
+ # @yield [result, err] Result & error if block supplied
250
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount] parsed result object
251
+ # @yieldparam err [StandardError] error object if request failed
252
+ #
253
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount]
254
+ #
255
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
256
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
257
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
258
+ def patch_account(name, google_analytics_admin_v1alpha_account_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
259
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
260
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount::Representation
261
+ command.request_object = google_analytics_admin_v1alpha_account_object
262
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount::Representation
263
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount
264
+ command.params['name'] = name unless name.nil?
265
+ command.query['updateMask'] = update_mask unless update_mask.nil?
266
+ command.query['fields'] = fields unless fields.nil?
267
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
268
+ execute_or_queue_command(command, &block)
269
+ end
270
+
271
+ # Requests a ticket for creating an account.
272
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest] google_analytics_admin_v1alpha_provision_account_ticket_request_object
273
+ # @param [String] fields
274
+ # Selector specifying which fields to include in a partial response.
275
+ # @param [String] quota_user
276
+ # Available to use for quota purposes for server-side applications. Can be any
277
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
278
+ # @param [Google::Apis::RequestOptions] options
279
+ # Request-specific options
280
+ #
281
+ # @yield [result, err] Result & error if block supplied
282
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse] parsed result object
283
+ # @yieldparam err [StandardError] error object if request failed
284
+ #
285
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse]
286
+ #
287
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
288
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
289
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
290
+ def provision_account_account_ticket(google_analytics_admin_v1alpha_provision_account_ticket_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
291
+ command = make_simple_command(:post, 'v1alpha/accounts:provisionAccountTicket', options)
292
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest::Representation
293
+ command.request_object = google_analytics_admin_v1alpha_provision_account_ticket_request_object
294
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse::Representation
295
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse
296
+ command.query['fields'] = fields unless fields.nil?
297
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
298
+ execute_or_queue_command(command, &block)
299
+ end
300
+
301
+ # Lists all user links on an account or property, including implicit ones that
302
+ # come from effective permissions granted by groups or organization admin roles.
303
+ # If a returned user link does not have direct permissions, they cannot be
304
+ # removed from the account or property directly with the DeleteUserLink command.
305
+ # They have to be removed from the group/etc that gives them permissions, which
306
+ # is currently only usable/discoverable in the GA or GMP UIs.
307
+ # @param [String] parent
308
+ # Required. Example format: accounts/1234
309
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLinksRequest] google_analytics_admin_v1alpha_audit_user_links_request_object
310
+ # @param [String] fields
311
+ # Selector specifying which fields to include in a partial response.
312
+ # @param [String] quota_user
313
+ # Available to use for quota purposes for server-side applications. Can be any
314
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
315
+ # @param [Google::Apis::RequestOptions] options
316
+ # Request-specific options
317
+ #
318
+ # @yield [result, err] Result & error if block supplied
319
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLinksResponse] parsed result object
320
+ # @yieldparam err [StandardError] error object if request failed
321
+ #
322
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLinksResponse]
323
+ #
324
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
325
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
326
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
327
+ def audit_account_user_link(parent, google_analytics_admin_v1alpha_audit_user_links_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
328
+ command = make_simple_command(:post, 'v1alpha/{+parent}/userLinks:audit', options)
329
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLinksRequest::Representation
330
+ command.request_object = google_analytics_admin_v1alpha_audit_user_links_request_object
331
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLinksResponse::Representation
332
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLinksResponse
333
+ command.params['parent'] = parent unless parent.nil?
334
+ command.query['fields'] = fields unless fields.nil?
335
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
336
+ execute_or_queue_command(command, &block)
337
+ end
338
+
339
+ # Creates information about multiple users' links to an account or property.
340
+ # This method is transactional. If any UserLink cannot be created, none of the
341
+ # UserLinks will be created.
342
+ # @param [String] parent
343
+ # Required. The account or property that all user links in the request are for.
344
+ # This field is required. The parent field in the CreateUserLinkRequest messages
345
+ # must either be empty or match this field. Example format: accounts/1234
346
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest] google_analytics_admin_v1alpha_batch_create_user_links_request_object
347
+ # @param [String] fields
348
+ # Selector specifying which fields to include in a partial response.
349
+ # @param [String] quota_user
350
+ # Available to use for quota purposes for server-side applications. Can be any
351
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
352
+ # @param [Google::Apis::RequestOptions] options
353
+ # Request-specific options
354
+ #
355
+ # @yield [result, err] Result & error if block supplied
356
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse] parsed result object
357
+ # @yieldparam err [StandardError] error object if request failed
358
+ #
359
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse]
360
+ #
361
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
362
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
363
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
364
+ def batch_account_user_link_create(parent, google_analytics_admin_v1alpha_batch_create_user_links_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
365
+ command = make_simple_command(:post, 'v1alpha/{+parent}/userLinks:batchCreate', options)
366
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest::Representation
367
+ command.request_object = google_analytics_admin_v1alpha_batch_create_user_links_request_object
368
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse::Representation
369
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse
370
+ command.params['parent'] = parent unless parent.nil?
371
+ command.query['fields'] = fields unless fields.nil?
372
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
373
+ execute_or_queue_command(command, &block)
374
+ end
375
+
376
+ # Deletes information about multiple users' links to an account or property.
377
+ # @param [String] parent
378
+ # Required. The account or property that all user links in the request are for.
379
+ # The parent of all values for user link names to delete must match this field.
380
+ # Example format: accounts/1234
381
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest] google_analytics_admin_v1alpha_batch_delete_user_links_request_object
382
+ # @param [String] fields
383
+ # Selector specifying which fields to include in a partial response.
384
+ # @param [String] quota_user
385
+ # Available to use for quota purposes for server-side applications. Can be any
386
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
387
+ # @param [Google::Apis::RequestOptions] options
388
+ # Request-specific options
389
+ #
390
+ # @yield [result, err] Result & error if block supplied
391
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
392
+ # @yieldparam err [StandardError] error object if request failed
393
+ #
394
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
395
+ #
396
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
397
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
398
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
399
+ def batch_account_user_link_delete(parent, google_analytics_admin_v1alpha_batch_delete_user_links_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
400
+ command = make_simple_command(:post, 'v1alpha/{+parent}/userLinks:batchDelete', options)
401
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest::Representation
402
+ command.request_object = google_analytics_admin_v1alpha_batch_delete_user_links_request_object
403
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
404
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
405
+ command.params['parent'] = parent unless parent.nil?
406
+ command.query['fields'] = fields unless fields.nil?
407
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
408
+ execute_or_queue_command(command, &block)
409
+ end
410
+
411
+ # Gets information about multiple users' links to an account or property.
412
+ # @param [String] parent
413
+ # Required. The account or property that all user links in the request are for.
414
+ # The parent of all provided values for the 'names' field must match this field.
415
+ # Example format: accounts/1234
416
+ # @param [Array<String>, String] names
417
+ # Required. The names of the user links to retrieve. A maximum of 1000 user
418
+ # links can be retrieved in a batch. Format: accounts/`accountId`/userLinks/`
419
+ # userLinkId`
420
+ # @param [String] fields
421
+ # Selector specifying which fields to include in a partial response.
422
+ # @param [String] quota_user
423
+ # Available to use for quota purposes for server-side applications. Can be any
424
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
425
+ # @param [Google::Apis::RequestOptions] options
426
+ # Request-specific options
427
+ #
428
+ # @yield [result, err] Result & error if block supplied
429
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse] parsed result object
430
+ # @yieldparam err [StandardError] error object if request failed
431
+ #
432
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse]
433
+ #
434
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
435
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
436
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
437
+ def batch_account_user_link_get(parent, names: nil, fields: nil, quota_user: nil, options: nil, &block)
438
+ command = make_simple_command(:get, 'v1alpha/{+parent}/userLinks:batchGet', options)
439
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse::Representation
440
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse
441
+ command.params['parent'] = parent unless parent.nil?
442
+ command.query['names'] = names unless names.nil?
443
+ command.query['fields'] = fields unless fields.nil?
444
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
445
+ execute_or_queue_command(command, &block)
446
+ end
447
+
448
+ # Updates information about multiple users' links to an account or property.
449
+ # @param [String] parent
450
+ # Required. The account or property that all user links in the request are for.
451
+ # The parent field in the UpdateUserLinkRequest messages must either be empty or
452
+ # match this field. Example format: accounts/1234
453
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest] google_analytics_admin_v1alpha_batch_update_user_links_request_object
454
+ # @param [String] fields
455
+ # Selector specifying which fields to include in a partial response.
456
+ # @param [String] quota_user
457
+ # Available to use for quota purposes for server-side applications. Can be any
458
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
459
+ # @param [Google::Apis::RequestOptions] options
460
+ # Request-specific options
461
+ #
462
+ # @yield [result, err] Result & error if block supplied
463
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse] parsed result object
464
+ # @yieldparam err [StandardError] error object if request failed
465
+ #
466
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse]
467
+ #
468
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
469
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
470
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
471
+ def batch_account_user_link_update(parent, google_analytics_admin_v1alpha_batch_update_user_links_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
472
+ command = make_simple_command(:post, 'v1alpha/{+parent}/userLinks:batchUpdate', options)
473
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest::Representation
474
+ command.request_object = google_analytics_admin_v1alpha_batch_update_user_links_request_object
475
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse::Representation
476
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse
477
+ command.params['parent'] = parent unless parent.nil?
478
+ command.query['fields'] = fields unless fields.nil?
479
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
480
+ execute_or_queue_command(command, &block)
481
+ end
482
+
483
+ # Creates a user link on an account or property. If the user with the specified
484
+ # email already has permissions on the account or property, then the user's
485
+ # existing permissions will be unioned with the permissions specified in the new
486
+ # UserLink.
487
+ # @param [String] parent
488
+ # Required. Example format: accounts/1234
489
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] google_analytics_admin_v1alpha_user_link_object
490
+ # @param [Boolean] notify_new_user
491
+ # Optional. If notify_new_user is set, then email new user that they've been
492
+ # given permissions on the resource.
493
+ # @param [String] fields
494
+ # Selector specifying which fields to include in a partial response.
495
+ # @param [String] quota_user
496
+ # Available to use for quota purposes for server-side applications. Can be any
497
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
498
+ # @param [Google::Apis::RequestOptions] options
499
+ # Request-specific options
500
+ #
501
+ # @yield [result, err] Result & error if block supplied
502
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] parsed result object
503
+ # @yieldparam err [StandardError] error object if request failed
504
+ #
505
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink]
506
+ #
507
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
508
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
509
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
510
+ def create_account_user_link(parent, google_analytics_admin_v1alpha_user_link_object = nil, notify_new_user: nil, fields: nil, quota_user: nil, options: nil, &block)
511
+ command = make_simple_command(:post, 'v1alpha/{+parent}/userLinks', options)
512
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation
513
+ command.request_object = google_analytics_admin_v1alpha_user_link_object
514
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation
515
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink
516
+ command.params['parent'] = parent unless parent.nil?
517
+ command.query['notifyNewUser'] = notify_new_user unless notify_new_user.nil?
518
+ command.query['fields'] = fields unless fields.nil?
519
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
520
+ execute_or_queue_command(command, &block)
521
+ end
522
+
523
+ # Deletes a user link on an account or property.
524
+ # @param [String] name
525
+ # Required. Example format: accounts/1234/userLinks/5678
526
+ # @param [String] fields
527
+ # Selector specifying which fields to include in a partial response.
528
+ # @param [String] quota_user
529
+ # Available to use for quota purposes for server-side applications. Can be any
530
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
531
+ # @param [Google::Apis::RequestOptions] options
532
+ # Request-specific options
533
+ #
534
+ # @yield [result, err] Result & error if block supplied
535
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
536
+ # @yieldparam err [StandardError] error object if request failed
537
+ #
538
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
539
+ #
540
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
541
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
542
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
543
+ def delete_account_user_link(name, fields: nil, quota_user: nil, options: nil, &block)
544
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
545
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
546
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
547
+ command.params['name'] = name unless name.nil?
548
+ command.query['fields'] = fields unless fields.nil?
549
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
550
+ execute_or_queue_command(command, &block)
551
+ end
552
+
553
+ # Gets information about a user's link to an account or property.
554
+ # @param [String] name
555
+ # Required. Example format: accounts/1234/userLinks/5678
556
+ # @param [String] fields
557
+ # Selector specifying which fields to include in a partial response.
558
+ # @param [String] quota_user
559
+ # Available to use for quota purposes for server-side applications. Can be any
560
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
561
+ # @param [Google::Apis::RequestOptions] options
562
+ # Request-specific options
563
+ #
564
+ # @yield [result, err] Result & error if block supplied
565
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] parsed result object
566
+ # @yieldparam err [StandardError] error object if request failed
567
+ #
568
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink]
569
+ #
570
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
571
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
572
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
573
+ def get_account_user_link(name, fields: nil, quota_user: nil, options: nil, &block)
574
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
575
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation
576
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink
577
+ command.params['name'] = name unless name.nil?
578
+ command.query['fields'] = fields unless fields.nil?
579
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
580
+ execute_or_queue_command(command, &block)
581
+ end
582
+
583
+ # Lists all user links on an account or property.
584
+ # @param [String] parent
585
+ # Required. Example format: accounts/1234
586
+ # @param [Fixnum] page_size
587
+ # The maximum number of user links to return. The service may return fewer than
588
+ # this value. If unspecified, at most 200 user links will be returned. The
589
+ # maximum value is 500; values above 500 will be coerced to 500.
590
+ # @param [String] page_token
591
+ # A page token, received from a previous `ListUserLinks` call. Provide this to
592
+ # retrieve the subsequent page. When paginating, all other parameters provided
593
+ # to `ListUserLinks` must match the call that provided the page token.
594
+ # @param [String] fields
595
+ # Selector specifying which fields to include in a partial response.
596
+ # @param [String] quota_user
597
+ # Available to use for quota purposes for server-side applications. Can be any
598
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
599
+ # @param [Google::Apis::RequestOptions] options
600
+ # Request-specific options
601
+ #
602
+ # @yield [result, err] Result & error if block supplied
603
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListUserLinksResponse] parsed result object
604
+ # @yieldparam err [StandardError] error object if request failed
605
+ #
606
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListUserLinksResponse]
607
+ #
608
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
609
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
610
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
611
+ def list_account_user_links(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
612
+ command = make_simple_command(:get, 'v1alpha/{+parent}/userLinks', options)
613
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListUserLinksResponse::Representation
614
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListUserLinksResponse
615
+ command.params['parent'] = parent unless parent.nil?
616
+ command.query['pageSize'] = page_size unless page_size.nil?
617
+ command.query['pageToken'] = page_token unless page_token.nil?
618
+ command.query['fields'] = fields unless fields.nil?
619
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
620
+ execute_or_queue_command(command, &block)
621
+ end
622
+
623
+ # Updates a user link on an account or property.
624
+ # @param [String] name
625
+ # Example format: properties/1234/userLinks/5678
626
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] google_analytics_admin_v1alpha_user_link_object
627
+ # @param [String] fields
628
+ # Selector specifying which fields to include in a partial response.
629
+ # @param [String] quota_user
630
+ # Available to use for quota purposes for server-side applications. Can be any
631
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
632
+ # @param [Google::Apis::RequestOptions] options
633
+ # Request-specific options
634
+ #
635
+ # @yield [result, err] Result & error if block supplied
636
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] parsed result object
637
+ # @yieldparam err [StandardError] error object if request failed
638
+ #
639
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink]
640
+ #
641
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
642
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
643
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
644
+ def patch_account_user_link(name, google_analytics_admin_v1alpha_user_link_object = nil, fields: nil, quota_user: nil, options: nil, &block)
645
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
646
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation
647
+ command.request_object = google_analytics_admin_v1alpha_user_link_object
648
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation
649
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink
650
+ command.params['name'] = name unless name.nil?
651
+ command.query['fields'] = fields unless fields.nil?
652
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
653
+ execute_or_queue_command(command, &block)
654
+ end
655
+
656
+ # Creates an "App+Web" property with the specified location and attributes.
657
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty] google_analytics_admin_v1alpha_property_object
658
+ # @param [String] fields
659
+ # Selector specifying which fields to include in a partial response.
660
+ # @param [String] quota_user
661
+ # Available to use for quota purposes for server-side applications. Can be any
662
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
663
+ # @param [Google::Apis::RequestOptions] options
664
+ # Request-specific options
665
+ #
666
+ # @yield [result, err] Result & error if block supplied
667
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty] parsed result object
668
+ # @yieldparam err [StandardError] error object if request failed
669
+ #
670
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty]
671
+ #
672
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
673
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
674
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
675
+ def create_property(google_analytics_admin_v1alpha_property_object = nil, fields: nil, quota_user: nil, options: nil, &block)
676
+ command = make_simple_command(:post, 'v1alpha/properties', options)
677
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty::Representation
678
+ command.request_object = google_analytics_admin_v1alpha_property_object
679
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty::Representation
680
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty
681
+ command.query['fields'] = fields unless fields.nil?
682
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
683
+ execute_or_queue_command(command, &block)
684
+ end
685
+
686
+ # Marks target Property as soft-deleted (ie: "trashed") and returns it. This API
687
+ # does not have a method to restore soft-deleted properties. However, they can
688
+ # be restored using the Trash Can UI. If the properties are not restored before
689
+ # the expiration time, the Property and all child resources (eg: GoogleAdsLinks,
690
+ # Streams, UserLinks) will be permanently purged. https://support.google.com/
691
+ # analytics/answer/6154772 Returns an error if the target is not found, or is
692
+ # not an App+Web Property.
693
+ # @param [String] name
694
+ # Required. The name of the Property to soft-delete. Format: properties/`
695
+ # property_id` Example: "properties/1000"
696
+ # @param [String] fields
697
+ # Selector specifying which fields to include in a partial response.
698
+ # @param [String] quota_user
699
+ # Available to use for quota purposes for server-side applications. Can be any
700
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
701
+ # @param [Google::Apis::RequestOptions] options
702
+ # Request-specific options
703
+ #
704
+ # @yield [result, err] Result & error if block supplied
705
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
706
+ # @yieldparam err [StandardError] error object if request failed
707
+ #
708
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
709
+ #
710
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
711
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
712
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
713
+ def delete_property(name, fields: nil, quota_user: nil, options: nil, &block)
714
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
715
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
716
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
717
+ command.params['name'] = name unless name.nil?
718
+ command.query['fields'] = fields unless fields.nil?
719
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
720
+ execute_or_queue_command(command, &block)
721
+ end
722
+
723
+ # Lookup for a single "App+Web" Property. Throws "Target not found" if no such
724
+ # property found, if property is not of the type "App+Web", or if caller does
725
+ # not have permissions to access it.
726
+ # @param [String] name
727
+ # Required. The name of the property to lookup. Format: properties/`property_id`
728
+ # Example: "properties/1000"
729
+ # @param [String] fields
730
+ # Selector specifying which fields to include in a partial response.
731
+ # @param [String] quota_user
732
+ # Available to use for quota purposes for server-side applications. Can be any
733
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
734
+ # @param [Google::Apis::RequestOptions] options
735
+ # Request-specific options
736
+ #
737
+ # @yield [result, err] Result & error if block supplied
738
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty] parsed result object
739
+ # @yieldparam err [StandardError] error object if request failed
740
+ #
741
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty]
742
+ #
743
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
744
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
745
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
746
+ def get_property(name, fields: nil, quota_user: nil, options: nil, &block)
747
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
748
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty::Representation
749
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty
750
+ command.params['name'] = name unless name.nil?
751
+ command.query['fields'] = fields unless fields.nil?
752
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
753
+ execute_or_queue_command(command, &block)
754
+ end
755
+
756
+ # Returns child Properties under the specified parent Account. Only "App+Web"
757
+ # properties will be returned. Properties will be excluded if the caller does
758
+ # not have access. Soft-deleted (ie: "trashed") properties are excluded by
759
+ # default. Returns an empty list if no relevant properties are found.
760
+ # @param [String] filter
761
+ # Required. An expression for filtering the results of the request. Fields
762
+ # eligible for filtering are: `parent:`(The resource name of the parent account)
763
+ # or `firebase_project:`(The id or number of the linked firebase project). Some
764
+ # examples of filters: | Filter | Description | |-----------------------------|--
765
+ # -----------------------------------------| | parent:accounts/123 | The account
766
+ # with account id: 123. | | firebase_project:project-id | The firebase project
767
+ # with id: project-id. | | firebase_project:123 | The firebase project with
768
+ # number: 123. |
769
+ # @param [Fixnum] page_size
770
+ # The maximum number of resources to return. The service may return fewer than
771
+ # this value, even if there are additional pages. If unspecified, at most 50
772
+ # resources will be returned. The maximum value is 200; (higher values will be
773
+ # coerced to the maximum)
774
+ # @param [String] page_token
775
+ # A page token, received from a previous `ListProperties` call. Provide this to
776
+ # retrieve the subsequent page. When paginating, all other parameters provided
777
+ # to `ListProperties` must match the call that provided the page token.
778
+ # @param [Boolean] show_deleted
779
+ # Whether to include soft-deleted (ie: "trashed") Properties in the results.
780
+ # Properties can be inspected to determine whether they are deleted or not.
781
+ # @param [String] fields
782
+ # Selector specifying which fields to include in a partial response.
783
+ # @param [String] quota_user
784
+ # Available to use for quota purposes for server-side applications. Can be any
785
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
786
+ # @param [Google::Apis::RequestOptions] options
787
+ # Request-specific options
788
+ #
789
+ # @yield [result, err] Result & error if block supplied
790
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListPropertiesResponse] parsed result object
791
+ # @yieldparam err [StandardError] error object if request failed
792
+ #
793
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListPropertiesResponse]
794
+ #
795
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
796
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
797
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
798
+ def list_properties(filter: nil, page_size: nil, page_token: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block)
799
+ command = make_simple_command(:get, 'v1alpha/properties', options)
800
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListPropertiesResponse::Representation
801
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListPropertiesResponse
802
+ command.query['filter'] = filter unless filter.nil?
803
+ command.query['pageSize'] = page_size unless page_size.nil?
804
+ command.query['pageToken'] = page_token unless page_token.nil?
805
+ command.query['showDeleted'] = show_deleted unless show_deleted.nil?
806
+ command.query['fields'] = fields unless fields.nil?
807
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
808
+ execute_or_queue_command(command, &block)
809
+ end
810
+
811
+ # Updates a property.
812
+ # @param [String] name
813
+ # Output only. Resource name of this property. Format: properties/`property_id`
814
+ # Example: "properties/1000"
815
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty] google_analytics_admin_v1alpha_property_object
816
+ # @param [String] update_mask
817
+ # The list of fields to be updated. Omitted fields will not be updated.
818
+ # @param [String] fields
819
+ # Selector specifying which fields to include in a partial response.
820
+ # @param [String] quota_user
821
+ # Available to use for quota purposes for server-side applications. Can be any
822
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
823
+ # @param [Google::Apis::RequestOptions] options
824
+ # Request-specific options
825
+ #
826
+ # @yield [result, err] Result & error if block supplied
827
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty] parsed result object
828
+ # @yieldparam err [StandardError] error object if request failed
829
+ #
830
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty]
831
+ #
832
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
833
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
834
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
835
+ def patch_property(name, google_analytics_admin_v1alpha_property_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
836
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
837
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty::Representation
838
+ command.request_object = google_analytics_admin_v1alpha_property_object
839
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty::Representation
840
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty
841
+ command.params['name'] = name unless name.nil?
842
+ command.query['updateMask'] = update_mask unless update_mask.nil?
843
+ command.query['fields'] = fields unless fields.nil?
844
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
845
+ execute_or_queue_command(command, &block)
846
+ end
847
+
848
+ # Creates an android app stream with the specified location and attributes.
849
+ # @param [String] parent
850
+ # Required. The parent resource where this android app data stream will be
851
+ # created. Format: properties/123
852
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream] google_analytics_admin_v1alpha_android_app_data_stream_object
853
+ # @param [String] fields
854
+ # Selector specifying which fields to include in a partial response.
855
+ # @param [String] quota_user
856
+ # Available to use for quota purposes for server-side applications. Can be any
857
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
858
+ # @param [Google::Apis::RequestOptions] options
859
+ # Request-specific options
860
+ #
861
+ # @yield [result, err] Result & error if block supplied
862
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream] parsed result object
863
+ # @yieldparam err [StandardError] error object if request failed
864
+ #
865
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream]
866
+ #
867
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
868
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
869
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
870
+ def create_property_android_app_data_stream(parent, google_analytics_admin_v1alpha_android_app_data_stream_object = nil, fields: nil, quota_user: nil, options: nil, &block)
871
+ command = make_simple_command(:post, 'v1alpha/{+parent}/androidAppDataStreams', options)
872
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream::Representation
873
+ command.request_object = google_analytics_admin_v1alpha_android_app_data_stream_object
874
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream::Representation
875
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream
876
+ command.params['parent'] = parent unless parent.nil?
877
+ command.query['fields'] = fields unless fields.nil?
878
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
879
+ execute_or_queue_command(command, &block)
880
+ end
881
+
882
+ # Deletes an android app stream on a property.
883
+ # @param [String] name
884
+ # Required. The name of the android app data stream to delete. Format:
885
+ # properties/`property_id`/androidAppDataStreams/`stream_id` Example: "
886
+ # properties/123/androidAppDataStreams/456"
887
+ # @param [String] fields
888
+ # Selector specifying which fields to include in a partial response.
889
+ # @param [String] quota_user
890
+ # Available to use for quota purposes for server-side applications. Can be any
891
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
892
+ # @param [Google::Apis::RequestOptions] options
893
+ # Request-specific options
894
+ #
895
+ # @yield [result, err] Result & error if block supplied
896
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
897
+ # @yieldparam err [StandardError] error object if request failed
898
+ #
899
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
900
+ #
901
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
902
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
903
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
904
+ def delete_property_android_app_data_stream(name, fields: nil, quota_user: nil, options: nil, &block)
905
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
906
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
907
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
908
+ command.params['name'] = name unless name.nil?
909
+ command.query['fields'] = fields unless fields.nil?
910
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
911
+ execute_or_queue_command(command, &block)
912
+ end
913
+
914
+ # Lookup for a single AndroidAppDataStream Throws "Target not found" if no such
915
+ # android app data stream found, or if the caller does not have permissions to
916
+ # access it.
917
+ # @param [String] name
918
+ # Required. The name of the android app data stream to lookup. Format:
919
+ # properties/`property_id`/androidAppDataStreams/`stream_id` Example: "
920
+ # properties/123/androidAppDataStreams/456"
921
+ # @param [String] fields
922
+ # Selector specifying which fields to include in a partial response.
923
+ # @param [String] quota_user
924
+ # Available to use for quota purposes for server-side applications. Can be any
925
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
926
+ # @param [Google::Apis::RequestOptions] options
927
+ # Request-specific options
928
+ #
929
+ # @yield [result, err] Result & error if block supplied
930
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream] parsed result object
931
+ # @yieldparam err [StandardError] error object if request failed
932
+ #
933
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream]
934
+ #
935
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
936
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
937
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
938
+ def get_property_android_app_data_stream(name, fields: nil, quota_user: nil, options: nil, &block)
939
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
940
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream::Representation
941
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream
942
+ command.params['name'] = name unless name.nil?
943
+ command.query['fields'] = fields unless fields.nil?
944
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
945
+ execute_or_queue_command(command, &block)
946
+ end
947
+
948
+ # Returns child android app streams under the specified parent property. Android
949
+ # app streams will be excluded if the caller does not have access. Returns an
950
+ # empty list if no relevant android app streams are found.
951
+ # @param [String] parent
952
+ # Required. The name of the parent property. For example, to limit results to
953
+ # app streams under the property with Id 123: "properties/123"
954
+ # @param [Fixnum] page_size
955
+ # The maximum number of resources to return. If unspecified, at most 50
956
+ # resources will be returned. The maximum value is 200; (higher values will be
957
+ # coerced to the maximum)
958
+ # @param [String] page_token
959
+ # A page token, received from a previous call. Provide this to retrieve the
960
+ # subsequent page. When paginating, all other parameters provided to `
961
+ # ListAndroidAppDataStreams` must match the call that provided the page token.
962
+ # @param [String] fields
963
+ # Selector specifying which fields to include in a partial response.
964
+ # @param [String] quota_user
965
+ # Available to use for quota purposes for server-side applications. Can be any
966
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
967
+ # @param [Google::Apis::RequestOptions] options
968
+ # Request-specific options
969
+ #
970
+ # @yield [result, err] Result & error if block supplied
971
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse] parsed result object
972
+ # @yieldparam err [StandardError] error object if request failed
973
+ #
974
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse]
975
+ #
976
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
977
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
978
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
979
+ def list_property_android_app_data_streams(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
980
+ command = make_simple_command(:get, 'v1alpha/{+parent}/androidAppDataStreams', options)
981
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse::Representation
982
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse
983
+ command.params['parent'] = parent unless parent.nil?
984
+ command.query['pageSize'] = page_size unless page_size.nil?
985
+ command.query['pageToken'] = page_token unless page_token.nil?
986
+ command.query['fields'] = fields unless fields.nil?
987
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
988
+ execute_or_queue_command(command, &block)
989
+ end
990
+
991
+ # Updates an android app stream on a property.
992
+ # @param [String] name
993
+ # Output only. Resource name of this Data Stream. Format: properties/`
994
+ # property_id`/androidAppDataStreams/`stream_id` Example: "properties/1000/
995
+ # androidAppDataStreams/2000"
996
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream] google_analytics_admin_v1alpha_android_app_data_stream_object
997
+ # @param [String] update_mask
998
+ # The list of fields to be updated. Omitted fields will not be updated.
999
+ # @param [String] fields
1000
+ # Selector specifying which fields to include in a partial response.
1001
+ # @param [String] quota_user
1002
+ # Available to use for quota purposes for server-side applications. Can be any
1003
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1004
+ # @param [Google::Apis::RequestOptions] options
1005
+ # Request-specific options
1006
+ #
1007
+ # @yield [result, err] Result & error if block supplied
1008
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream] parsed result object
1009
+ # @yieldparam err [StandardError] error object if request failed
1010
+ #
1011
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream]
1012
+ #
1013
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1014
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1015
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1016
+ def patch_property_android_app_data_stream(name, google_analytics_admin_v1alpha_android_app_data_stream_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1017
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
1018
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream::Representation
1019
+ command.request_object = google_analytics_admin_v1alpha_android_app_data_stream_object
1020
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream::Representation
1021
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream
1022
+ command.params['name'] = name unless name.nil?
1023
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1024
+ command.query['fields'] = fields unless fields.nil?
1025
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1026
+ execute_or_queue_command(command, &block)
1027
+ end
1028
+
1029
+ # Creates a FirebaseLink. Properties can have at most one FirebaseLink.
1030
+ # @param [String] parent
1031
+ # Required. Format: properties/`property_id` Example: properties/1234
1032
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink] google_analytics_admin_v1alpha_firebase_link_object
1033
+ # @param [String] fields
1034
+ # Selector specifying which fields to include in a partial response.
1035
+ # @param [String] quota_user
1036
+ # Available to use for quota purposes for server-side applications. Can be any
1037
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1038
+ # @param [Google::Apis::RequestOptions] options
1039
+ # Request-specific options
1040
+ #
1041
+ # @yield [result, err] Result & error if block supplied
1042
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink] parsed result object
1043
+ # @yieldparam err [StandardError] error object if request failed
1044
+ #
1045
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink]
1046
+ #
1047
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1048
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1049
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1050
+ def create_property_firebase_link(parent, google_analytics_admin_v1alpha_firebase_link_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1051
+ command = make_simple_command(:post, 'v1alpha/{+parent}/firebaseLinks', options)
1052
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink::Representation
1053
+ command.request_object = google_analytics_admin_v1alpha_firebase_link_object
1054
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink::Representation
1055
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink
1056
+ command.params['parent'] = parent unless parent.nil?
1057
+ command.query['fields'] = fields unless fields.nil?
1058
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1059
+ execute_or_queue_command(command, &block)
1060
+ end
1061
+
1062
+ # Deletes a FirebaseLink on a property
1063
+ # @param [String] name
1064
+ # Required. Format: properties/`property_id`/firebaseLinks/`firebase_link_id`
1065
+ # Example: properties/1234/firebaseLinks/5678
1066
+ # @param [String] fields
1067
+ # Selector specifying which fields to include in a partial response.
1068
+ # @param [String] quota_user
1069
+ # Available to use for quota purposes for server-side applications. Can be any
1070
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1071
+ # @param [Google::Apis::RequestOptions] options
1072
+ # Request-specific options
1073
+ #
1074
+ # @yield [result, err] Result & error if block supplied
1075
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
1076
+ # @yieldparam err [StandardError] error object if request failed
1077
+ #
1078
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
1079
+ #
1080
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1081
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1082
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1083
+ def delete_property_firebase_link(name, fields: nil, quota_user: nil, options: nil, &block)
1084
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
1085
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
1086
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
1087
+ command.params['name'] = name unless name.nil?
1088
+ command.query['fields'] = fields unless fields.nil?
1089
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1090
+ execute_or_queue_command(command, &block)
1091
+ end
1092
+
1093
+ # Lists FirebaseLinks on a property. Properties can have at most one
1094
+ # FirebaseLink.
1095
+ # @param [String] parent
1096
+ # Required. Format: properties/`property_id` Example: properties/1234
1097
+ # @param [String] fields
1098
+ # Selector specifying which fields to include in a partial response.
1099
+ # @param [String] quota_user
1100
+ # Available to use for quota purposes for server-side applications. Can be any
1101
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1102
+ # @param [Google::Apis::RequestOptions] options
1103
+ # Request-specific options
1104
+ #
1105
+ # @yield [result, err] Result & error if block supplied
1106
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse] parsed result object
1107
+ # @yieldparam err [StandardError] error object if request failed
1108
+ #
1109
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse]
1110
+ #
1111
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1112
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1113
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1114
+ def list_property_firebase_links(parent, fields: nil, quota_user: nil, options: nil, &block)
1115
+ command = make_simple_command(:get, 'v1alpha/{+parent}/firebaseLinks', options)
1116
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse::Representation
1117
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse
1118
+ command.params['parent'] = parent unless parent.nil?
1119
+ command.query['fields'] = fields unless fields.nil?
1120
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1121
+ execute_or_queue_command(command, &block)
1122
+ end
1123
+
1124
+ # Updates a FirebaseLink on a property
1125
+ # @param [String] name
1126
+ # Output only. Example format: properties/1234/firebaseLinks/5678
1127
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink] google_analytics_admin_v1alpha_firebase_link_object
1128
+ # @param [String] update_mask
1129
+ # The list of fields to be updated. Omitted fields will not be updated.
1130
+ # @param [String] fields
1131
+ # Selector specifying which fields to include in a partial response.
1132
+ # @param [String] quota_user
1133
+ # Available to use for quota purposes for server-side applications. Can be any
1134
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1135
+ # @param [Google::Apis::RequestOptions] options
1136
+ # Request-specific options
1137
+ #
1138
+ # @yield [result, err] Result & error if block supplied
1139
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink] parsed result object
1140
+ # @yieldparam err [StandardError] error object if request failed
1141
+ #
1142
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink]
1143
+ #
1144
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1145
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1146
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1147
+ def patch_property_firebase_link(name, google_analytics_admin_v1alpha_firebase_link_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1148
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
1149
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink::Representation
1150
+ command.request_object = google_analytics_admin_v1alpha_firebase_link_object
1151
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink::Representation
1152
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink
1153
+ command.params['name'] = name unless name.nil?
1154
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1155
+ command.query['fields'] = fields unless fields.nil?
1156
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1157
+ execute_or_queue_command(command, &block)
1158
+ end
1159
+
1160
+ # Creates a GoogleAdsLink.
1161
+ # @param [String] parent
1162
+ # Required. Example format: properties/1234
1163
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink] google_analytics_admin_v1alpha_google_ads_link_object
1164
+ # @param [String] fields
1165
+ # Selector specifying which fields to include in a partial response.
1166
+ # @param [String] quota_user
1167
+ # Available to use for quota purposes for server-side applications. Can be any
1168
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1169
+ # @param [Google::Apis::RequestOptions] options
1170
+ # Request-specific options
1171
+ #
1172
+ # @yield [result, err] Result & error if block supplied
1173
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink] parsed result object
1174
+ # @yieldparam err [StandardError] error object if request failed
1175
+ #
1176
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink]
1177
+ #
1178
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1179
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1180
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1181
+ def create_property_google_ads_link(parent, google_analytics_admin_v1alpha_google_ads_link_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1182
+ command = make_simple_command(:post, 'v1alpha/{+parent}/googleAdsLinks', options)
1183
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink::Representation
1184
+ command.request_object = google_analytics_admin_v1alpha_google_ads_link_object
1185
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink::Representation
1186
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink
1187
+ command.params['parent'] = parent unless parent.nil?
1188
+ command.query['fields'] = fields unless fields.nil?
1189
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1190
+ execute_or_queue_command(command, &block)
1191
+ end
1192
+
1193
+ # Deletes a GoogleAdsLink on a property
1194
+ # @param [String] name
1195
+ # Required. Example format: properties/1234/googleAdsLinks/5678
1196
+ # @param [String] fields
1197
+ # Selector specifying which fields to include in a partial response.
1198
+ # @param [String] quota_user
1199
+ # Available to use for quota purposes for server-side applications. Can be any
1200
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1201
+ # @param [Google::Apis::RequestOptions] options
1202
+ # Request-specific options
1203
+ #
1204
+ # @yield [result, err] Result & error if block supplied
1205
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
1206
+ # @yieldparam err [StandardError] error object if request failed
1207
+ #
1208
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
1209
+ #
1210
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1211
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1212
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1213
+ def delete_property_google_ads_link(name, fields: nil, quota_user: nil, options: nil, &block)
1214
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
1215
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
1216
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
1217
+ command.params['name'] = name unless name.nil?
1218
+ command.query['fields'] = fields unless fields.nil?
1219
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1220
+ execute_or_queue_command(command, &block)
1221
+ end
1222
+
1223
+ # Lists GoogleAdsLinks on a property.
1224
+ # @param [String] parent
1225
+ # Required. Example format: properties/1234
1226
+ # @param [Fixnum] page_size
1227
+ # The maximum number of resources to return. If unspecified, at most 50
1228
+ # resources will be returned. The maximum value is 200 (higher values will be
1229
+ # coerced to the maximum).
1230
+ # @param [String] page_token
1231
+ # A page token, received from a previous `ListGoogleAdsLinks` call. Provide this
1232
+ # to retrieve the subsequent page. When paginating, all other parameters
1233
+ # provided to `ListGoogleAdsLinks` must match the call that provided the page
1234
+ # token.
1235
+ # @param [String] fields
1236
+ # Selector specifying which fields to include in a partial response.
1237
+ # @param [String] quota_user
1238
+ # Available to use for quota purposes for server-side applications. Can be any
1239
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1240
+ # @param [Google::Apis::RequestOptions] options
1241
+ # Request-specific options
1242
+ #
1243
+ # @yield [result, err] Result & error if block supplied
1244
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse] parsed result object
1245
+ # @yieldparam err [StandardError] error object if request failed
1246
+ #
1247
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse]
1248
+ #
1249
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1250
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1251
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1252
+ def list_property_google_ads_links(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1253
+ command = make_simple_command(:get, 'v1alpha/{+parent}/googleAdsLinks', options)
1254
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse::Representation
1255
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse
1256
+ command.params['parent'] = parent unless parent.nil?
1257
+ command.query['pageSize'] = page_size unless page_size.nil?
1258
+ command.query['pageToken'] = page_token unless page_token.nil?
1259
+ command.query['fields'] = fields unless fields.nil?
1260
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1261
+ execute_or_queue_command(command, &block)
1262
+ end
1263
+
1264
+ # Updates a GoogleAdsLink on a property
1265
+ # @param [String] name
1266
+ # Output only. Format: properties/`propertyId`/googleAdsLinks/`googleAdsLinkId`
1267
+ # Note: googleAdsLinkId is not the Google Ads customer ID.
1268
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink] google_analytics_admin_v1alpha_google_ads_link_object
1269
+ # @param [String] update_mask
1270
+ # The list of fields to be updated. Omitted fields will not be updated.
1271
+ # @param [String] fields
1272
+ # Selector specifying which fields to include in a partial response.
1273
+ # @param [String] quota_user
1274
+ # Available to use for quota purposes for server-side applications. Can be any
1275
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1276
+ # @param [Google::Apis::RequestOptions] options
1277
+ # Request-specific options
1278
+ #
1279
+ # @yield [result, err] Result & error if block supplied
1280
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink] parsed result object
1281
+ # @yieldparam err [StandardError] error object if request failed
1282
+ #
1283
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink]
1284
+ #
1285
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1286
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1287
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1288
+ def patch_property_google_ads_link(name, google_analytics_admin_v1alpha_google_ads_link_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1289
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
1290
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink::Representation
1291
+ command.request_object = google_analytics_admin_v1alpha_google_ads_link_object
1292
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink::Representation
1293
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink
1294
+ command.params['name'] = name unless name.nil?
1295
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1296
+ command.query['fields'] = fields unless fields.nil?
1297
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1298
+ execute_or_queue_command(command, &block)
1299
+ end
1300
+
1301
+ # Creates an iOS app data stream with the specified location and attributes.
1302
+ # @param [String] parent
1303
+ # Required. The parent resource where this ios app data stream will be created.
1304
+ # Format: properties/123
1305
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream] google_analytics_admin_v1alpha_ios_app_data_stream_object
1306
+ # @param [String] fields
1307
+ # Selector specifying which fields to include in a partial response.
1308
+ # @param [String] quota_user
1309
+ # Available to use for quota purposes for server-side applications. Can be any
1310
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1311
+ # @param [Google::Apis::RequestOptions] options
1312
+ # Request-specific options
1313
+ #
1314
+ # @yield [result, err] Result & error if block supplied
1315
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream] parsed result object
1316
+ # @yieldparam err [StandardError] error object if request failed
1317
+ #
1318
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream]
1319
+ #
1320
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1321
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1322
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1323
+ def create_property_ios_app_data_stream(parent, google_analytics_admin_v1alpha_ios_app_data_stream_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1324
+ command = make_simple_command(:post, 'v1alpha/{+parent}/iosAppDataStreams', options)
1325
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream::Representation
1326
+ command.request_object = google_analytics_admin_v1alpha_ios_app_data_stream_object
1327
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream::Representation
1328
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream
1329
+ command.params['parent'] = parent unless parent.nil?
1330
+ command.query['fields'] = fields unless fields.nil?
1331
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1332
+ execute_or_queue_command(command, &block)
1333
+ end
1334
+
1335
+ # Deletes an iOS app stream on a property.
1336
+ # @param [String] name
1337
+ # Required. The name of the iOS app data stream to delete. Format: properties/`
1338
+ # property_id`/iosAppDataStreams/`stream_id` Example: "properties/123/
1339
+ # iosAppDataStreams/456"
1340
+ # @param [String] fields
1341
+ # Selector specifying which fields to include in a partial response.
1342
+ # @param [String] quota_user
1343
+ # Available to use for quota purposes for server-side applications. Can be any
1344
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1345
+ # @param [Google::Apis::RequestOptions] options
1346
+ # Request-specific options
1347
+ #
1348
+ # @yield [result, err] Result & error if block supplied
1349
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
1350
+ # @yieldparam err [StandardError] error object if request failed
1351
+ #
1352
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
1353
+ #
1354
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1355
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1356
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1357
+ def delete_property_ios_app_data_stream(name, fields: nil, quota_user: nil, options: nil, &block)
1358
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
1359
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
1360
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
1361
+ command.params['name'] = name unless name.nil?
1362
+ command.query['fields'] = fields unless fields.nil?
1363
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1364
+ execute_or_queue_command(command, &block)
1365
+ end
1366
+
1367
+ # Lookup for a single IosAppDataStream Throws "Target not found" if no such iOS
1368
+ # app data stream found, or if the caller does not have permissions to access it.
1369
+ # @param [String] name
1370
+ # Required. The name of the iOS app data stream to lookup. Format: properties/`
1371
+ # property_id`/iosAppDataStreams/`stream_id` Example: "properties/123/
1372
+ # iosAppDataStreams/456"
1373
+ # @param [String] fields
1374
+ # Selector specifying which fields to include in a partial response.
1375
+ # @param [String] quota_user
1376
+ # Available to use for quota purposes for server-side applications. Can be any
1377
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1378
+ # @param [Google::Apis::RequestOptions] options
1379
+ # Request-specific options
1380
+ #
1381
+ # @yield [result, err] Result & error if block supplied
1382
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream] parsed result object
1383
+ # @yieldparam err [StandardError] error object if request failed
1384
+ #
1385
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream]
1386
+ #
1387
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1388
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1389
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1390
+ def get_property_ios_app_data_stream(name, fields: nil, quota_user: nil, options: nil, &block)
1391
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
1392
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream::Representation
1393
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream
1394
+ command.params['name'] = name unless name.nil?
1395
+ command.query['fields'] = fields unless fields.nil?
1396
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1397
+ execute_or_queue_command(command, &block)
1398
+ end
1399
+
1400
+ # Returns child iOS app data streams under the specified parent property. iOS
1401
+ # app data streams will be excluded if the caller does not have access. Returns
1402
+ # an empty list if no relevant iOS app data streams are found.
1403
+ # @param [String] parent
1404
+ # Required. The name of the parent property. For example, to list results of app
1405
+ # streams under the property with Id 123: "properties/123"
1406
+ # @param [Fixnum] page_size
1407
+ # The maximum number of resources to return. If unspecified, at most 50
1408
+ # resources will be returned. The maximum value is 200; (higher values will be
1409
+ # coerced to the maximum)
1410
+ # @param [String] page_token
1411
+ # A page token, received from a previous `ListIosAppDataStreams` call. Provide
1412
+ # this to retrieve the subsequent page. When paginating, all other parameters
1413
+ # provided to `ListIosAppDataStreams` must match the call that provided the page
1414
+ # token.
1415
+ # @param [String] fields
1416
+ # Selector specifying which fields to include in a partial response.
1417
+ # @param [String] quota_user
1418
+ # Available to use for quota purposes for server-side applications. Can be any
1419
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1420
+ # @param [Google::Apis::RequestOptions] options
1421
+ # Request-specific options
1422
+ #
1423
+ # @yield [result, err] Result & error if block supplied
1424
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse] parsed result object
1425
+ # @yieldparam err [StandardError] error object if request failed
1426
+ #
1427
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse]
1428
+ #
1429
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1430
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1431
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1432
+ def list_property_ios_app_data_streams(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1433
+ command = make_simple_command(:get, 'v1alpha/{+parent}/iosAppDataStreams', options)
1434
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse::Representation
1435
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse
1436
+ command.params['parent'] = parent unless parent.nil?
1437
+ command.query['pageSize'] = page_size unless page_size.nil?
1438
+ command.query['pageToken'] = page_token unless page_token.nil?
1439
+ command.query['fields'] = fields unless fields.nil?
1440
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1441
+ execute_or_queue_command(command, &block)
1442
+ end
1443
+
1444
+ # Updates an iOS app stream on a property.
1445
+ # @param [String] name
1446
+ # Output only. Resource name of this Data Stream. Format: properties/`
1447
+ # property_id`/iosAppDataStreams/`stream_id` Example: "properties/1000/
1448
+ # iosAppDataStreams/2000"
1449
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream] google_analytics_admin_v1alpha_ios_app_data_stream_object
1450
+ # @param [String] update_mask
1451
+ # The list of fields to be updated. Omitted fields will not be updated.
1452
+ # @param [String] fields
1453
+ # Selector specifying which fields to include in a partial response.
1454
+ # @param [String] quota_user
1455
+ # Available to use for quota purposes for server-side applications. Can be any
1456
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1457
+ # @param [Google::Apis::RequestOptions] options
1458
+ # Request-specific options
1459
+ #
1460
+ # @yield [result, err] Result & error if block supplied
1461
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream] parsed result object
1462
+ # @yieldparam err [StandardError] error object if request failed
1463
+ #
1464
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream]
1465
+ #
1466
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1467
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1468
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1469
+ def patch_property_ios_app_data_stream(name, google_analytics_admin_v1alpha_ios_app_data_stream_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1470
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
1471
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream::Representation
1472
+ command.request_object = google_analytics_admin_v1alpha_ios_app_data_stream_object
1473
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream::Representation
1474
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream
1475
+ command.params['name'] = name unless name.nil?
1476
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1477
+ command.query['fields'] = fields unless fields.nil?
1478
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1479
+ execute_or_queue_command(command, &block)
1480
+ end
1481
+
1482
+ # Lists all user links on an account or property, including implicit ones that
1483
+ # come from effective permissions granted by groups or organization admin roles.
1484
+ # If a returned user link does not have direct permissions, they cannot be
1485
+ # removed from the account or property directly with the DeleteUserLink command.
1486
+ # They have to be removed from the group/etc that gives them permissions, which
1487
+ # is currently only usable/discoverable in the GA or GMP UIs.
1488
+ # @param [String] parent
1489
+ # Required. Example format: accounts/1234
1490
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLinksRequest] google_analytics_admin_v1alpha_audit_user_links_request_object
1491
+ # @param [String] fields
1492
+ # Selector specifying which fields to include in a partial response.
1493
+ # @param [String] quota_user
1494
+ # Available to use for quota purposes for server-side applications. Can be any
1495
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1496
+ # @param [Google::Apis::RequestOptions] options
1497
+ # Request-specific options
1498
+ #
1499
+ # @yield [result, err] Result & error if block supplied
1500
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLinksResponse] parsed result object
1501
+ # @yieldparam err [StandardError] error object if request failed
1502
+ #
1503
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLinksResponse]
1504
+ #
1505
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1506
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1507
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1508
+ def audit_property_user_link(parent, google_analytics_admin_v1alpha_audit_user_links_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1509
+ command = make_simple_command(:post, 'v1alpha/{+parent}/userLinks:audit', options)
1510
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLinksRequest::Representation
1511
+ command.request_object = google_analytics_admin_v1alpha_audit_user_links_request_object
1512
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLinksResponse::Representation
1513
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLinksResponse
1514
+ command.params['parent'] = parent unless parent.nil?
1515
+ command.query['fields'] = fields unless fields.nil?
1516
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1517
+ execute_or_queue_command(command, &block)
1518
+ end
1519
+
1520
+ # Creates information about multiple users' links to an account or property.
1521
+ # This method is transactional. If any UserLink cannot be created, none of the
1522
+ # UserLinks will be created.
1523
+ # @param [String] parent
1524
+ # Required. The account or property that all user links in the request are for.
1525
+ # This field is required. The parent field in the CreateUserLinkRequest messages
1526
+ # must either be empty or match this field. Example format: accounts/1234
1527
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest] google_analytics_admin_v1alpha_batch_create_user_links_request_object
1528
+ # @param [String] fields
1529
+ # Selector specifying which fields to include in a partial response.
1530
+ # @param [String] quota_user
1531
+ # Available to use for quota purposes for server-side applications. Can be any
1532
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1533
+ # @param [Google::Apis::RequestOptions] options
1534
+ # Request-specific options
1535
+ #
1536
+ # @yield [result, err] Result & error if block supplied
1537
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse] parsed result object
1538
+ # @yieldparam err [StandardError] error object if request failed
1539
+ #
1540
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse]
1541
+ #
1542
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1543
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1544
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1545
+ def batch_property_user_link_create(parent, google_analytics_admin_v1alpha_batch_create_user_links_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1546
+ command = make_simple_command(:post, 'v1alpha/{+parent}/userLinks:batchCreate', options)
1547
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest::Representation
1548
+ command.request_object = google_analytics_admin_v1alpha_batch_create_user_links_request_object
1549
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse::Representation
1550
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse
1551
+ command.params['parent'] = parent unless parent.nil?
1552
+ command.query['fields'] = fields unless fields.nil?
1553
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1554
+ execute_or_queue_command(command, &block)
1555
+ end
1556
+
1557
+ # Deletes information about multiple users' links to an account or property.
1558
+ # @param [String] parent
1559
+ # Required. The account or property that all user links in the request are for.
1560
+ # The parent of all values for user link names to delete must match this field.
1561
+ # Example format: accounts/1234
1562
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest] google_analytics_admin_v1alpha_batch_delete_user_links_request_object
1563
+ # @param [String] fields
1564
+ # Selector specifying which fields to include in a partial response.
1565
+ # @param [String] quota_user
1566
+ # Available to use for quota purposes for server-side applications. Can be any
1567
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1568
+ # @param [Google::Apis::RequestOptions] options
1569
+ # Request-specific options
1570
+ #
1571
+ # @yield [result, err] Result & error if block supplied
1572
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
1573
+ # @yieldparam err [StandardError] error object if request failed
1574
+ #
1575
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
1576
+ #
1577
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1578
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1579
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1580
+ def batch_property_user_link_delete(parent, google_analytics_admin_v1alpha_batch_delete_user_links_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1581
+ command = make_simple_command(:post, 'v1alpha/{+parent}/userLinks:batchDelete', options)
1582
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest::Representation
1583
+ command.request_object = google_analytics_admin_v1alpha_batch_delete_user_links_request_object
1584
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
1585
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
1586
+ command.params['parent'] = parent unless parent.nil?
1587
+ command.query['fields'] = fields unless fields.nil?
1588
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1589
+ execute_or_queue_command(command, &block)
1590
+ end
1591
+
1592
+ # Gets information about multiple users' links to an account or property.
1593
+ # @param [String] parent
1594
+ # Required. The account or property that all user links in the request are for.
1595
+ # The parent of all provided values for the 'names' field must match this field.
1596
+ # Example format: accounts/1234
1597
+ # @param [Array<String>, String] names
1598
+ # Required. The names of the user links to retrieve. A maximum of 1000 user
1599
+ # links can be retrieved in a batch. Format: accounts/`accountId`/userLinks/`
1600
+ # userLinkId`
1601
+ # @param [String] fields
1602
+ # Selector specifying which fields to include in a partial response.
1603
+ # @param [String] quota_user
1604
+ # Available to use for quota purposes for server-side applications. Can be any
1605
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1606
+ # @param [Google::Apis::RequestOptions] options
1607
+ # Request-specific options
1608
+ #
1609
+ # @yield [result, err] Result & error if block supplied
1610
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse] parsed result object
1611
+ # @yieldparam err [StandardError] error object if request failed
1612
+ #
1613
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse]
1614
+ #
1615
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1616
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1617
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1618
+ def batch_property_user_link_get(parent, names: nil, fields: nil, quota_user: nil, options: nil, &block)
1619
+ command = make_simple_command(:get, 'v1alpha/{+parent}/userLinks:batchGet', options)
1620
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse::Representation
1621
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse
1622
+ command.params['parent'] = parent unless parent.nil?
1623
+ command.query['names'] = names unless names.nil?
1624
+ command.query['fields'] = fields unless fields.nil?
1625
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1626
+ execute_or_queue_command(command, &block)
1627
+ end
1628
+
1629
+ # Updates information about multiple users' links to an account or property.
1630
+ # @param [String] parent
1631
+ # Required. The account or property that all user links in the request are for.
1632
+ # The parent field in the UpdateUserLinkRequest messages must either be empty or
1633
+ # match this field. Example format: accounts/1234
1634
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest] google_analytics_admin_v1alpha_batch_update_user_links_request_object
1635
+ # @param [String] fields
1636
+ # Selector specifying which fields to include in a partial response.
1637
+ # @param [String] quota_user
1638
+ # Available to use for quota purposes for server-side applications. Can be any
1639
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1640
+ # @param [Google::Apis::RequestOptions] options
1641
+ # Request-specific options
1642
+ #
1643
+ # @yield [result, err] Result & error if block supplied
1644
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse] parsed result object
1645
+ # @yieldparam err [StandardError] error object if request failed
1646
+ #
1647
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse]
1648
+ #
1649
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1650
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1651
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1652
+ def batch_property_user_link_update(parent, google_analytics_admin_v1alpha_batch_update_user_links_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1653
+ command = make_simple_command(:post, 'v1alpha/{+parent}/userLinks:batchUpdate', options)
1654
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest::Representation
1655
+ command.request_object = google_analytics_admin_v1alpha_batch_update_user_links_request_object
1656
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse::Representation
1657
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse
1658
+ command.params['parent'] = parent unless parent.nil?
1659
+ command.query['fields'] = fields unless fields.nil?
1660
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1661
+ execute_or_queue_command(command, &block)
1662
+ end
1663
+
1664
+ # Creates a user link on an account or property. If the user with the specified
1665
+ # email already has permissions on the account or property, then the user's
1666
+ # existing permissions will be unioned with the permissions specified in the new
1667
+ # UserLink.
1668
+ # @param [String] parent
1669
+ # Required. Example format: accounts/1234
1670
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] google_analytics_admin_v1alpha_user_link_object
1671
+ # @param [Boolean] notify_new_user
1672
+ # Optional. If notify_new_user is set, then email new user that they've been
1673
+ # given permissions on the resource.
1674
+ # @param [String] fields
1675
+ # Selector specifying which fields to include in a partial response.
1676
+ # @param [String] quota_user
1677
+ # Available to use for quota purposes for server-side applications. Can be any
1678
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1679
+ # @param [Google::Apis::RequestOptions] options
1680
+ # Request-specific options
1681
+ #
1682
+ # @yield [result, err] Result & error if block supplied
1683
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] parsed result object
1684
+ # @yieldparam err [StandardError] error object if request failed
1685
+ #
1686
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink]
1687
+ #
1688
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1689
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1690
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1691
+ def create_property_user_link(parent, google_analytics_admin_v1alpha_user_link_object = nil, notify_new_user: nil, fields: nil, quota_user: nil, options: nil, &block)
1692
+ command = make_simple_command(:post, 'v1alpha/{+parent}/userLinks', options)
1693
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation
1694
+ command.request_object = google_analytics_admin_v1alpha_user_link_object
1695
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation
1696
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink
1697
+ command.params['parent'] = parent unless parent.nil?
1698
+ command.query['notifyNewUser'] = notify_new_user unless notify_new_user.nil?
1699
+ command.query['fields'] = fields unless fields.nil?
1700
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1701
+ execute_or_queue_command(command, &block)
1702
+ end
1703
+
1704
+ # Deletes a user link on an account or property.
1705
+ # @param [String] name
1706
+ # Required. Example format: accounts/1234/userLinks/5678
1707
+ # @param [String] fields
1708
+ # Selector specifying which fields to include in a partial response.
1709
+ # @param [String] quota_user
1710
+ # Available to use for quota purposes for server-side applications. Can be any
1711
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1712
+ # @param [Google::Apis::RequestOptions] options
1713
+ # Request-specific options
1714
+ #
1715
+ # @yield [result, err] Result & error if block supplied
1716
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
1717
+ # @yieldparam err [StandardError] error object if request failed
1718
+ #
1719
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
1720
+ #
1721
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1722
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1723
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1724
+ def delete_property_user_link(name, fields: nil, quota_user: nil, options: nil, &block)
1725
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
1726
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
1727
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
1728
+ command.params['name'] = name unless name.nil?
1729
+ command.query['fields'] = fields unless fields.nil?
1730
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1731
+ execute_or_queue_command(command, &block)
1732
+ end
1733
+
1734
+ # Gets information about a user's link to an account or property.
1735
+ # @param [String] name
1736
+ # Required. Example format: accounts/1234/userLinks/5678
1737
+ # @param [String] fields
1738
+ # Selector specifying which fields to include in a partial response.
1739
+ # @param [String] quota_user
1740
+ # Available to use for quota purposes for server-side applications. Can be any
1741
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1742
+ # @param [Google::Apis::RequestOptions] options
1743
+ # Request-specific options
1744
+ #
1745
+ # @yield [result, err] Result & error if block supplied
1746
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] parsed result object
1747
+ # @yieldparam err [StandardError] error object if request failed
1748
+ #
1749
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink]
1750
+ #
1751
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1752
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1753
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1754
+ def get_property_user_link(name, fields: nil, quota_user: nil, options: nil, &block)
1755
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
1756
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation
1757
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink
1758
+ command.params['name'] = name unless name.nil?
1759
+ command.query['fields'] = fields unless fields.nil?
1760
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1761
+ execute_or_queue_command(command, &block)
1762
+ end
1763
+
1764
+ # Lists all user links on an account or property.
1765
+ # @param [String] parent
1766
+ # Required. Example format: accounts/1234
1767
+ # @param [Fixnum] page_size
1768
+ # The maximum number of user links to return. The service may return fewer than
1769
+ # this value. If unspecified, at most 200 user links will be returned. The
1770
+ # maximum value is 500; values above 500 will be coerced to 500.
1771
+ # @param [String] page_token
1772
+ # A page token, received from a previous `ListUserLinks` call. Provide this to
1773
+ # retrieve the subsequent page. When paginating, all other parameters provided
1774
+ # to `ListUserLinks` must match the call that provided the page token.
1775
+ # @param [String] fields
1776
+ # Selector specifying which fields to include in a partial response.
1777
+ # @param [String] quota_user
1778
+ # Available to use for quota purposes for server-side applications. Can be any
1779
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1780
+ # @param [Google::Apis::RequestOptions] options
1781
+ # Request-specific options
1782
+ #
1783
+ # @yield [result, err] Result & error if block supplied
1784
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListUserLinksResponse] parsed result object
1785
+ # @yieldparam err [StandardError] error object if request failed
1786
+ #
1787
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListUserLinksResponse]
1788
+ #
1789
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1790
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1791
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1792
+ def list_property_user_links(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1793
+ command = make_simple_command(:get, 'v1alpha/{+parent}/userLinks', options)
1794
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListUserLinksResponse::Representation
1795
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListUserLinksResponse
1796
+ command.params['parent'] = parent unless parent.nil?
1797
+ command.query['pageSize'] = page_size unless page_size.nil?
1798
+ command.query['pageToken'] = page_token unless page_token.nil?
1799
+ command.query['fields'] = fields unless fields.nil?
1800
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1801
+ execute_or_queue_command(command, &block)
1802
+ end
1803
+
1804
+ # Updates a user link on an account or property.
1805
+ # @param [String] name
1806
+ # Example format: properties/1234/userLinks/5678
1807
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] google_analytics_admin_v1alpha_user_link_object
1808
+ # @param [String] fields
1809
+ # Selector specifying which fields to include in a partial response.
1810
+ # @param [String] quota_user
1811
+ # Available to use for quota purposes for server-side applications. Can be any
1812
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1813
+ # @param [Google::Apis::RequestOptions] options
1814
+ # Request-specific options
1815
+ #
1816
+ # @yield [result, err] Result & error if block supplied
1817
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink] parsed result object
1818
+ # @yieldparam err [StandardError] error object if request failed
1819
+ #
1820
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink]
1821
+ #
1822
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1823
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1824
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1825
+ def patch_property_user_link(name, google_analytics_admin_v1alpha_user_link_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1826
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
1827
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation
1828
+ command.request_object = google_analytics_admin_v1alpha_user_link_object
1829
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation
1830
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink
1831
+ command.params['name'] = name unless name.nil?
1832
+ command.query['fields'] = fields unless fields.nil?
1833
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1834
+ execute_or_queue_command(command, &block)
1835
+ end
1836
+
1837
+ # Creates a web stream with the specified location and attributes.
1838
+ # @param [String] parent
1839
+ # Required. The parent resource where this web data stream will be created.
1840
+ # Format: properties/123
1841
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream] google_analytics_admin_v1alpha_web_data_stream_object
1842
+ # @param [String] fields
1843
+ # Selector specifying which fields to include in a partial response.
1844
+ # @param [String] quota_user
1845
+ # Available to use for quota purposes for server-side applications. Can be any
1846
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1847
+ # @param [Google::Apis::RequestOptions] options
1848
+ # Request-specific options
1849
+ #
1850
+ # @yield [result, err] Result & error if block supplied
1851
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream] parsed result object
1852
+ # @yieldparam err [StandardError] error object if request failed
1853
+ #
1854
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream]
1855
+ #
1856
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1857
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1858
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1859
+ def create_property_web_data_stream(parent, google_analytics_admin_v1alpha_web_data_stream_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1860
+ command = make_simple_command(:post, 'v1alpha/{+parent}/webDataStreams', options)
1861
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream::Representation
1862
+ command.request_object = google_analytics_admin_v1alpha_web_data_stream_object
1863
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream::Representation
1864
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream
1865
+ command.params['parent'] = parent unless parent.nil?
1866
+ command.query['fields'] = fields unless fields.nil?
1867
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1868
+ execute_or_queue_command(command, &block)
1869
+ end
1870
+
1871
+ # Deletes a web stream on a property.
1872
+ # @param [String] name
1873
+ # Required. The name of the web data stream to delete. Format: properties/`
1874
+ # property_id`/webDataStreams/`stream_id` Example: "properties/123/
1875
+ # webDataStreams/456"
1876
+ # @param [String] fields
1877
+ # Selector specifying which fields to include in a partial response.
1878
+ # @param [String] quota_user
1879
+ # Available to use for quota purposes for server-side applications. Can be any
1880
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1881
+ # @param [Google::Apis::RequestOptions] options
1882
+ # Request-specific options
1883
+ #
1884
+ # @yield [result, err] Result & error if block supplied
1885
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty] parsed result object
1886
+ # @yieldparam err [StandardError] error object if request failed
1887
+ #
1888
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty]
1889
+ #
1890
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1891
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1892
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1893
+ def delete_property_web_data_stream(name, fields: nil, quota_user: nil, options: nil, &block)
1894
+ command = make_simple_command(:delete, 'v1alpha/{+name}', options)
1895
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty::Representation
1896
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleProtobufEmpty
1897
+ command.params['name'] = name unless name.nil?
1898
+ command.query['fields'] = fields unless fields.nil?
1899
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1900
+ execute_or_queue_command(command, &block)
1901
+ end
1902
+
1903
+ # Lookup for a single WebDataStream Throws "Target not found" if no such web
1904
+ # data stream found, or if the caller does not have permissions to access it.
1905
+ # @param [String] name
1906
+ # Required. The name of the web data stream to lookup. Format: properties/`
1907
+ # property_id`/webDataStreams/`stream_id` Example: "properties/123/
1908
+ # webDataStreams/456"
1909
+ # @param [String] fields
1910
+ # Selector specifying which fields to include in a partial response.
1911
+ # @param [String] quota_user
1912
+ # Available to use for quota purposes for server-side applications. Can be any
1913
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1914
+ # @param [Google::Apis::RequestOptions] options
1915
+ # Request-specific options
1916
+ #
1917
+ # @yield [result, err] Result & error if block supplied
1918
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream] parsed result object
1919
+ # @yieldparam err [StandardError] error object if request failed
1920
+ #
1921
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream]
1922
+ #
1923
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1924
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1925
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1926
+ def get_property_web_data_stream(name, fields: nil, quota_user: nil, options: nil, &block)
1927
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
1928
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream::Representation
1929
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream
1930
+ command.params['name'] = name unless name.nil?
1931
+ command.query['fields'] = fields unless fields.nil?
1932
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1933
+ execute_or_queue_command(command, &block)
1934
+ end
1935
+
1936
+ # Returns the singleton enhanced measurement settings for this web stream. Note
1937
+ # that the stream must enable enhanced measurement for these settings to take
1938
+ # effect.
1939
+ # @param [String] name
1940
+ # Required. The name of the settings to lookup. Format: properties/`property_id`/
1941
+ # webDataStreams/`stream_id`/enhancedMeasurementSettings Example: "properties/
1942
+ # 1000/webDataStreams/2000/enhancedMeasurementSettings"
1943
+ # @param [String] fields
1944
+ # Selector specifying which fields to include in a partial response.
1945
+ # @param [String] quota_user
1946
+ # Available to use for quota purposes for server-side applications. Can be any
1947
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1948
+ # @param [Google::Apis::RequestOptions] options
1949
+ # Request-specific options
1950
+ #
1951
+ # @yield [result, err] Result & error if block supplied
1952
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings] parsed result object
1953
+ # @yieldparam err [StandardError] error object if request failed
1954
+ #
1955
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings]
1956
+ #
1957
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1958
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1959
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1960
+ def get_property_web_data_stream_enhanced_measurement_settings(name, fields: nil, quota_user: nil, options: nil, &block)
1961
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
1962
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings::Representation
1963
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings
1964
+ command.params['name'] = name unless name.nil?
1965
+ command.query['fields'] = fields unless fields.nil?
1966
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1967
+ execute_or_queue_command(command, &block)
1968
+ end
1969
+
1970
+ # Returns the Site Tag for the specified web stream. Site Tags are immutable
1971
+ # singletons.
1972
+ # @param [String] name
1973
+ # Required. The name of the site tag to lookup. Note that site tags are
1974
+ # singletons and do not have unique IDs. Format: properties/`property_id`/
1975
+ # webDataStreams/`stream_id`/globalSiteTag Example: "properties/123/
1976
+ # webDataStreams/456/globalSiteTag"
1977
+ # @param [String] fields
1978
+ # Selector specifying which fields to include in a partial response.
1979
+ # @param [String] quota_user
1980
+ # Available to use for quota purposes for server-side applications. Can be any
1981
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1982
+ # @param [Google::Apis::RequestOptions] options
1983
+ # Request-specific options
1984
+ #
1985
+ # @yield [result, err] Result & error if block supplied
1986
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGlobalSiteTag] parsed result object
1987
+ # @yieldparam err [StandardError] error object if request failed
1988
+ #
1989
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGlobalSiteTag]
1990
+ #
1991
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1992
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1993
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1994
+ def get_property_web_data_stream_global_site_tag(name, fields: nil, quota_user: nil, options: nil, &block)
1995
+ command = make_simple_command(:get, 'v1alpha/{+name}', options)
1996
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGlobalSiteTag::Representation
1997
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGlobalSiteTag
1998
+ command.params['name'] = name unless name.nil?
1999
+ command.query['fields'] = fields unless fields.nil?
2000
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2001
+ execute_or_queue_command(command, &block)
2002
+ end
2003
+
2004
+ # Returns child web data streams under the specified parent property. Web data
2005
+ # streams will be excluded if the caller does not have access. Returns an empty
2006
+ # list if no relevant web data streams are found.
2007
+ # @param [String] parent
2008
+ # Required. The name of the parent property. For example, to list results of web
2009
+ # streams under the property with Id 123: "properties/123"
2010
+ # @param [Fixnum] page_size
2011
+ # The maximum number of resources to return. If unspecified, at most 50
2012
+ # resources will be returned. The maximum value is 200; (higher values will be
2013
+ # coerced to the maximum)
2014
+ # @param [String] page_token
2015
+ # A page token, received from a previous `ListWebDataStreams` call. Provide this
2016
+ # to retrieve the subsequent page. When paginating, all other parameters
2017
+ # provided to `ListWebDataStreams` must match the call that provided the page
2018
+ # token.
2019
+ # @param [String] fields
2020
+ # Selector specifying which fields to include in a partial response.
2021
+ # @param [String] quota_user
2022
+ # Available to use for quota purposes for server-side applications. Can be any
2023
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2024
+ # @param [Google::Apis::RequestOptions] options
2025
+ # Request-specific options
2026
+ #
2027
+ # @yield [result, err] Result & error if block supplied
2028
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse] parsed result object
2029
+ # @yieldparam err [StandardError] error object if request failed
2030
+ #
2031
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse]
2032
+ #
2033
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2034
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2035
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2036
+ def list_property_web_data_streams(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
2037
+ command = make_simple_command(:get, 'v1alpha/{+parent}/webDataStreams', options)
2038
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse::Representation
2039
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse
2040
+ command.params['parent'] = parent unless parent.nil?
2041
+ command.query['pageSize'] = page_size unless page_size.nil?
2042
+ command.query['pageToken'] = page_token unless page_token.nil?
2043
+ command.query['fields'] = fields unless fields.nil?
2044
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2045
+ execute_or_queue_command(command, &block)
2046
+ end
2047
+
2048
+ # Updates a web stream on a property.
2049
+ # @param [String] name
2050
+ # Output only. Resource name of this Data Stream. Format: properties/`
2051
+ # property_id`/webDataStreams/`stream_id` Example: "properties/1000/
2052
+ # webDataStreams/2000"
2053
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream] google_analytics_admin_v1alpha_web_data_stream_object
2054
+ # @param [String] update_mask
2055
+ # The list of fields to be updated. Omitted fields will not be updated.
2056
+ # @param [String] fields
2057
+ # Selector specifying which fields to include in a partial response.
2058
+ # @param [String] quota_user
2059
+ # Available to use for quota purposes for server-side applications. Can be any
2060
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2061
+ # @param [Google::Apis::RequestOptions] options
2062
+ # Request-specific options
2063
+ #
2064
+ # @yield [result, err] Result & error if block supplied
2065
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream] parsed result object
2066
+ # @yieldparam err [StandardError] error object if request failed
2067
+ #
2068
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream]
2069
+ #
2070
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2071
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2072
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2073
+ def patch_property_web_data_stream(name, google_analytics_admin_v1alpha_web_data_stream_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2074
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
2075
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream::Representation
2076
+ command.request_object = google_analytics_admin_v1alpha_web_data_stream_object
2077
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream::Representation
2078
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream
2079
+ command.params['name'] = name unless name.nil?
2080
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2081
+ command.query['fields'] = fields unless fields.nil?
2082
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2083
+ execute_or_queue_command(command, &block)
2084
+ end
2085
+
2086
+ # Updates the singleton enhanced measurement settings for this web stream. Note
2087
+ # that the stream must enable enhanced measurement for these settings to take
2088
+ # effect.
2089
+ # @param [String] name
2090
+ # Output only. Resource name of this Data Stream. Format: properties/`
2091
+ # property_id`/webDataStreams/`stream_id`/enhancedMeasurementSettings Example: "
2092
+ # properties/1000/webDataStreams/2000/enhancedMeasurementSettings"
2093
+ # @param [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings] google_analytics_admin_v1alpha_enhanced_measurement_settings_object
2094
+ # @param [String] update_mask
2095
+ # The list of fields to be updated. Omitted fields will not be updated.
2096
+ # @param [String] fields
2097
+ # Selector specifying which fields to include in a partial response.
2098
+ # @param [String] quota_user
2099
+ # Available to use for quota purposes for server-side applications. Can be any
2100
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2101
+ # @param [Google::Apis::RequestOptions] options
2102
+ # Request-specific options
2103
+ #
2104
+ # @yield [result, err] Result & error if block supplied
2105
+ # @yieldparam result [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings] parsed result object
2106
+ # @yieldparam err [StandardError] error object if request failed
2107
+ #
2108
+ # @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings]
2109
+ #
2110
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2111
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2112
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2113
+ def update_property_web_data_stream_enhanced_measurement_settings(name, google_analytics_admin_v1alpha_enhanced_measurement_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2114
+ command = make_simple_command(:patch, 'v1alpha/{+name}', options)
2115
+ command.request_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings::Representation
2116
+ command.request_object = google_analytics_admin_v1alpha_enhanced_measurement_settings_object
2117
+ command.response_representation = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings::Representation
2118
+ command.response_class = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings
2119
+ command.params['name'] = name unless name.nil?
2120
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2121
+ command.query['fields'] = fields unless fields.nil?
2122
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2123
+ execute_or_queue_command(command, &block)
2124
+ end
2125
+
2126
+ protected
2127
+
2128
+ def apply_command_defaults(command)
2129
+ command.query['key'] = key unless key.nil?
2130
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2131
+ end
2132
+ end
2133
+ end
2134
+ end
2135
+ end