google-analytics-admin-v1alpha 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a29c46700d683b7c9774e9d0c1be690330da908ced68263324a488520c85eaf0
4
- data.tar.gz: af45f22f49b970053d3eb466b2a00894cb2bf532850d7e77edbc46430a829a13
3
+ metadata.gz: 9524ba9d19b125b0f87367c7559589739cdf90d2453d7a5367ac03a1441af79f
4
+ data.tar.gz: d2cfc2374fddfeae773d39bc920b865e72a9a2f70ceae62f1f995ac9d1b3ae21
5
5
  SHA512:
6
- metadata.gz: c6432e3cc093613f33342a1a8d3e05a5cf77af7573bb05f159718712175c17a57bd854fcbf222bd39a88068e9bffb8e54c6edc737d75c4490ddcffb6bf3f8b92
7
- data.tar.gz: 86d8ea0c4287b27276e09ca96475aaf36208657066bfc72b844426815db5ecf48a8a4d25e016f337e59fb5c7fbbcad37937d1f89477cf66448be5f7f5b5866a5
6
+ metadata.gz: 36a824d6c4f1721ba7387ba6a9d7cd5246f39e2a2a51ab44c952cb2d42440cdc2513e5b80713310e9dafb55f53eca6dcfdf1a099087b3874bc76e7d0539a0331
7
+ data.tar.gz: 96c221f94ea9ab98738f92b0cca23311879e8208576e1af271cba02e8eee3b2592a65ce0564832120f98960fdb639cd959aeb429c8cdeaba0df3601097ece4f9
@@ -238,6 +238,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
238
238
  add_message "google.analytics.admin.v1alpha.GetDataSharingSettingsRequest" do
239
239
  optional :name, :string, 1
240
240
  end
241
+ add_message "google.analytics.admin.v1alpha.ListAccountSummariesRequest" do
242
+ optional :page_size, :int32, 1
243
+ optional :page_token, :string, 2
244
+ end
245
+ add_message "google.analytics.admin.v1alpha.ListAccountSummariesResponse" do
246
+ repeated :account_summaries, :message, 1, "google.analytics.admin.v1alpha.AccountSummary"
247
+ optional :next_page_token, :string, 2
248
+ end
241
249
  end
242
250
  end
243
251
 
@@ -305,6 +313,8 @@ module Google
305
313
  ListGoogleAdsLinksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest").msgclass
306
314
  ListGoogleAdsLinksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse").msgclass
307
315
  GetDataSharingSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GetDataSharingSettingsRequest").msgclass
316
+ ListAccountSummariesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAccountSummariesRequest").msgclass
317
+ ListAccountSummariesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.ListAccountSummariesResponse").msgclass
308
318
  end
309
319
  end
310
320
  end
@@ -599,6 +599,75 @@ module Google
599
599
  raise ::Google::Cloud::Error.from_error(e)
600
600
  end
601
601
 
602
+ ##
603
+ # Returns summaries of all accounts accessible by the caller.
604
+ #
605
+ # @overload list_account_summaries(request, options = nil)
606
+ # Pass arguments to `list_account_summaries` via a request object, either of type
607
+ # {::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest} or an equivalent Hash.
608
+ #
609
+ # @param request [::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest, ::Hash]
610
+ # A request object representing the call parameters. Required. To specify no
611
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
612
+ # @param options [::Gapic::CallOptions, ::Hash]
613
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
614
+ #
615
+ # @overload list_account_summaries(page_size: nil, page_token: nil)
616
+ # Pass arguments to `list_account_summaries` via keyword arguments. Note that at
617
+ # least one keyword argument is required. To specify no parameters, or to keep all
618
+ # the default parameter values, pass an empty Hash as a request object (see above).
619
+ #
620
+ # @param page_size [::Integer]
621
+ # The maximum number of AccountSummary resources to return. The service may
622
+ # return fewer than this value, even if there are additional pages.
623
+ # If unspecified, at most 50 resources will be returned.
624
+ # The maximum value is 200; (higher values will be coerced to the maximum)
625
+ # @param page_token [::String]
626
+ # A page token, received from a previous `ListAccountSummaries` call.
627
+ # Provide this to retrieve the subsequent page.
628
+ # When paginating, all other parameters provided to `ListAccountSummaries`
629
+ # must match the call that provided the page token.
630
+ #
631
+ # @yield [response, operation] Access the result along with the RPC operation
632
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccountSummary>]
633
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
634
+ #
635
+ # @return [::Gapic::PagedEnumerable<::Google::Analytics::Admin::V1alpha::AccountSummary>]
636
+ #
637
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
638
+ #
639
+ def list_account_summaries request, options = nil
640
+ raise ::ArgumentError, "request must be provided" if request.nil?
641
+
642
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest
643
+
644
+ # Converts hash and nil to an options object
645
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
646
+
647
+ # Customize the options with defaults
648
+ metadata = @config.rpcs.list_account_summaries.metadata.to_h
649
+
650
+ # Set x-goog-api-client and x-goog-user-project headers
651
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
652
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
653
+ gapic_version: ::Google::Analytics::Admin::V1alpha::VERSION
654
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
655
+
656
+ options.apply_defaults timeout: @config.rpcs.list_account_summaries.timeout,
657
+ metadata: metadata,
658
+ retry_policy: @config.rpcs.list_account_summaries.retry_policy
659
+ options.apply_defaults metadata: @config.metadata,
660
+ retry_policy: @config.retry_policy
661
+
662
+ @analytics_admin_service_stub.call_rpc :list_account_summaries, request, options: options do |response, operation|
663
+ response = ::Gapic::PagedEnumerable.new @analytics_admin_service_stub, :list_account_summaries, request, response, operation, options
664
+ yield response, operation if block_given?
665
+ return response
666
+ end
667
+ rescue ::GRPC::BadStatus => e
668
+ raise ::Google::Cloud::Error.from_error(e)
669
+ end
670
+
602
671
  ##
603
672
  # Lookup for a single "App+Web" Property.
604
673
  #
@@ -3771,6 +3840,11 @@ module Google
3771
3840
  #
3772
3841
  attr_reader :provision_account_ticket
3773
3842
  ##
3843
+ # RPC-specific configuration for `list_account_summaries`
3844
+ # @return [::Gapic::Config::Method]
3845
+ #
3846
+ attr_reader :list_account_summaries
3847
+ ##
3774
3848
  # RPC-specific configuration for `get_property`
3775
3849
  # @return [::Gapic::Config::Method]
3776
3850
  #
@@ -3993,6 +4067,8 @@ module Google
3993
4067
  @update_account = ::Gapic::Config::Method.new update_account_config
3994
4068
  provision_account_ticket_config = parent_rpcs&.provision_account_ticket if parent_rpcs&.respond_to? :provision_account_ticket
3995
4069
  @provision_account_ticket = ::Gapic::Config::Method.new provision_account_ticket_config
4070
+ list_account_summaries_config = parent_rpcs&.list_account_summaries if parent_rpcs&.respond_to? :list_account_summaries
4071
+ @list_account_summaries = ::Gapic::Config::Method.new list_account_summaries_config
3996
4072
  get_property_config = parent_rpcs&.get_property if parent_rpcs&.respond_to? :get_property
3997
4073
  @get_property = ::Gapic::Config::Method.new get_property_config
3998
4074
  list_properties_config = parent_rpcs&.list_properties if parent_rpcs&.respond_to? :list_properties
@@ -36,13 +36,13 @@ module Google
36
36
  # Lookup for a single Account.
37
37
  # Throws "Target not found" if no such account found, or if caller does not
38
38
  # have permissions to access it.
39
- rpc :GetAccount, Google::Analytics::Admin::V1alpha::GetAccountRequest, Google::Analytics::Admin::V1alpha::Account
39
+ rpc :GetAccount, ::Google::Analytics::Admin::V1alpha::GetAccountRequest, ::Google::Analytics::Admin::V1alpha::Account
40
40
  # Returns all accounts accessible by the caller.
41
41
  #
42
42
  # Note that these accounts might not currently have App+Web properties.
43
43
  # Soft-deleted (ie: "trashed") accounts are excluded by default.
44
44
  # Returns an empty list if no relevant accounts are found.
45
- rpc :ListAccounts, Google::Analytics::Admin::V1alpha::ListAccountsRequest, Google::Analytics::Admin::V1alpha::ListAccountsResponse
45
+ rpc :ListAccounts, ::Google::Analytics::Admin::V1alpha::ListAccountsRequest, ::Google::Analytics::Admin::V1alpha::ListAccountsResponse
46
46
  # Marks target Account as soft-deleted (ie: "trashed") and returns it.
47
47
  #
48
48
  # This API does not have a method to restore soft-deleted accounts.
@@ -54,25 +54,27 @@ module Google
54
54
  # https://support.google.com/analytics/answer/6154772
55
55
  #
56
56
  # Returns an error if the target is not found.
57
- rpc :DeleteAccount, Google::Analytics::Admin::V1alpha::DeleteAccountRequest, Google::Protobuf::Empty
57
+ rpc :DeleteAccount, ::Google::Analytics::Admin::V1alpha::DeleteAccountRequest, ::Google::Protobuf::Empty
58
58
  # Updates an account.
59
- rpc :UpdateAccount, Google::Analytics::Admin::V1alpha::UpdateAccountRequest, Google::Analytics::Admin::V1alpha::Account
59
+ rpc :UpdateAccount, ::Google::Analytics::Admin::V1alpha::UpdateAccountRequest, ::Google::Analytics::Admin::V1alpha::Account
60
60
  # Requests a ticket for creating an account.
61
- rpc :ProvisionAccountTicket, Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest, Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse
61
+ rpc :ProvisionAccountTicket, ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest, ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse
62
+ # Returns summaries of all accounts accessible by the caller.
63
+ rpc :ListAccountSummaries, ::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest, ::Google::Analytics::Admin::V1alpha::ListAccountSummariesResponse
62
64
  # Lookup for a single "App+Web" Property.
63
65
  #
64
66
  # Throws "Target not found" if no such property found, if property is not
65
67
  # of the type "App+Web", or if caller does not have permissions to access it.
66
- rpc :GetProperty, Google::Analytics::Admin::V1alpha::GetPropertyRequest, Google::Analytics::Admin::V1alpha::Property
68
+ rpc :GetProperty, ::Google::Analytics::Admin::V1alpha::GetPropertyRequest, ::Google::Analytics::Admin::V1alpha::Property
67
69
  # Returns child Properties under the specified parent Account.
68
70
  #
69
71
  # Only "App+Web" properties will be returned.
70
72
  # Properties will be excluded if the caller does not have access.
71
73
  # Soft-deleted (ie: "trashed") properties are excluded by default.
72
74
  # Returns an empty list if no relevant properties are found.
73
- rpc :ListProperties, Google::Analytics::Admin::V1alpha::ListPropertiesRequest, Google::Analytics::Admin::V1alpha::ListPropertiesResponse
75
+ rpc :ListProperties, ::Google::Analytics::Admin::V1alpha::ListPropertiesRequest, ::Google::Analytics::Admin::V1alpha::ListPropertiesResponse
74
76
  # Creates an "App+Web" property with the specified location and attributes.
75
- rpc :CreateProperty, Google::Analytics::Admin::V1alpha::CreatePropertyRequest, Google::Analytics::Admin::V1alpha::Property
77
+ rpc :CreateProperty, ::Google::Analytics::Admin::V1alpha::CreatePropertyRequest, ::Google::Analytics::Admin::V1alpha::Property
76
78
  # Marks target Property as soft-deleted (ie: "trashed") and returns it.
77
79
  #
78
80
  # This API does not have a method to restore soft-deleted properties.
@@ -84,15 +86,15 @@ module Google
84
86
  # https://support.google.com/analytics/answer/6154772
85
87
  #
86
88
  # Returns an error if the target is not found, or is not an App+Web Property.
87
- rpc :DeleteProperty, Google::Analytics::Admin::V1alpha::DeletePropertyRequest, Google::Protobuf::Empty
89
+ rpc :DeleteProperty, ::Google::Analytics::Admin::V1alpha::DeletePropertyRequest, ::Google::Protobuf::Empty
88
90
  # Updates a property.
89
- rpc :UpdateProperty, Google::Analytics::Admin::V1alpha::UpdatePropertyRequest, Google::Analytics::Admin::V1alpha::Property
91
+ rpc :UpdateProperty, ::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest, ::Google::Analytics::Admin::V1alpha::Property
90
92
  # Gets information about a user's link to an account or property.
91
- rpc :GetUserLink, Google::Analytics::Admin::V1alpha::GetUserLinkRequest, Google::Analytics::Admin::V1alpha::UserLink
93
+ rpc :GetUserLink, ::Google::Analytics::Admin::V1alpha::GetUserLinkRequest, ::Google::Analytics::Admin::V1alpha::UserLink
92
94
  # Gets information about multiple users' links to an account or property.
93
- rpc :BatchGetUserLinks, Google::Analytics::Admin::V1alpha::BatchGetUserLinksRequest, Google::Analytics::Admin::V1alpha::BatchGetUserLinksResponse
95
+ rpc :BatchGetUserLinks, ::Google::Analytics::Admin::V1alpha::BatchGetUserLinksRequest, ::Google::Analytics::Admin::V1alpha::BatchGetUserLinksResponse
94
96
  # Lists all user links on an account or property.
95
- rpc :ListUserLinks, Google::Analytics::Admin::V1alpha::ListUserLinksRequest, Google::Analytics::Admin::V1alpha::ListUserLinksResponse
97
+ rpc :ListUserLinks, ::Google::Analytics::Admin::V1alpha::ListUserLinksRequest, ::Google::Analytics::Admin::V1alpha::ListUserLinksResponse
96
98
  # Lists all user links on an account or property, including implicit ones
97
99
  # that come from effective permissions granted by groups or organization
98
100
  # admin roles.
@@ -102,107 +104,107 @@ module Google
102
104
  # command. They have to be removed from the group/etc that gives them
103
105
  # permissions, which is currently only usable/discoverable in the GA or GMP
104
106
  # UIs.
105
- rpc :AuditUserLinks, Google::Analytics::Admin::V1alpha::AuditUserLinksRequest, Google::Analytics::Admin::V1alpha::AuditUserLinksResponse
107
+ rpc :AuditUserLinks, ::Google::Analytics::Admin::V1alpha::AuditUserLinksRequest, ::Google::Analytics::Admin::V1alpha::AuditUserLinksResponse
106
108
  # Creates a user link on an account or property.
107
109
  #
108
110
  # If the user with the specified email already has permissions on the
109
111
  # account or property, then the user's existing permissions will be unioned
110
112
  # with the permissions specified in the new UserLink.
111
- rpc :CreateUserLink, Google::Analytics::Admin::V1alpha::CreateUserLinkRequest, Google::Analytics::Admin::V1alpha::UserLink
113
+ rpc :CreateUserLink, ::Google::Analytics::Admin::V1alpha::CreateUserLinkRequest, ::Google::Analytics::Admin::V1alpha::UserLink
112
114
  # Creates information about multiple users' links to an account or property.
113
115
  #
114
116
  # This method is transactional. If any UserLink cannot be created, none of
115
117
  # the UserLinks will be created.
116
- rpc :BatchCreateUserLinks, Google::Analytics::Admin::V1alpha::BatchCreateUserLinksRequest, Google::Analytics::Admin::V1alpha::BatchCreateUserLinksResponse
118
+ rpc :BatchCreateUserLinks, ::Google::Analytics::Admin::V1alpha::BatchCreateUserLinksRequest, ::Google::Analytics::Admin::V1alpha::BatchCreateUserLinksResponse
117
119
  # Updates a user link on an account or property.
118
- rpc :UpdateUserLink, Google::Analytics::Admin::V1alpha::UpdateUserLinkRequest, Google::Analytics::Admin::V1alpha::UserLink
120
+ rpc :UpdateUserLink, ::Google::Analytics::Admin::V1alpha::UpdateUserLinkRequest, ::Google::Analytics::Admin::V1alpha::UserLink
119
121
  # Updates information about multiple users' links to an account or property.
120
- rpc :BatchUpdateUserLinks, Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksRequest, Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksResponse
122
+ rpc :BatchUpdateUserLinks, ::Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksRequest, ::Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksResponse
121
123
  # Deletes a user link on an account or property.
122
- rpc :DeleteUserLink, Google::Analytics::Admin::V1alpha::DeleteUserLinkRequest, Google::Protobuf::Empty
124
+ rpc :DeleteUserLink, ::Google::Analytics::Admin::V1alpha::DeleteUserLinkRequest, ::Google::Protobuf::Empty
123
125
  # Deletes information about multiple users' links to an account or property.
124
- rpc :BatchDeleteUserLinks, Google::Analytics::Admin::V1alpha::BatchDeleteUserLinksRequest, Google::Protobuf::Empty
126
+ rpc :BatchDeleteUserLinks, ::Google::Analytics::Admin::V1alpha::BatchDeleteUserLinksRequest, ::Google::Protobuf::Empty
125
127
  # Lookup for a single WebDataStream
126
128
  #
127
129
  # Throws "Target not found" if no such web data stream found, or if the
128
130
  # caller does not have permissions to access it.
129
- rpc :GetWebDataStream, Google::Analytics::Admin::V1alpha::GetWebDataStreamRequest, Google::Analytics::Admin::V1alpha::WebDataStream
131
+ rpc :GetWebDataStream, ::Google::Analytics::Admin::V1alpha::GetWebDataStreamRequest, ::Google::Analytics::Admin::V1alpha::WebDataStream
130
132
  # Deletes a web stream on a property.
131
- rpc :DeleteWebDataStream, Google::Analytics::Admin::V1alpha::DeleteWebDataStreamRequest, Google::Protobuf::Empty
133
+ rpc :DeleteWebDataStream, ::Google::Analytics::Admin::V1alpha::DeleteWebDataStreamRequest, ::Google::Protobuf::Empty
132
134
  # Updates a web stream on a property.
133
- rpc :UpdateWebDataStream, Google::Analytics::Admin::V1alpha::UpdateWebDataStreamRequest, Google::Analytics::Admin::V1alpha::WebDataStream
135
+ rpc :UpdateWebDataStream, ::Google::Analytics::Admin::V1alpha::UpdateWebDataStreamRequest, ::Google::Analytics::Admin::V1alpha::WebDataStream
134
136
  # Creates a web stream with the specified location and attributes.
135
- rpc :CreateWebDataStream, Google::Analytics::Admin::V1alpha::CreateWebDataStreamRequest, Google::Analytics::Admin::V1alpha::WebDataStream
137
+ rpc :CreateWebDataStream, ::Google::Analytics::Admin::V1alpha::CreateWebDataStreamRequest, ::Google::Analytics::Admin::V1alpha::WebDataStream
136
138
  # Returns child web data streams under the specified parent property.
137
139
  #
138
140
  # Web data streams will be excluded if the caller does not have access.
139
141
  # Returns an empty list if no relevant web data streams are found.
140
- rpc :ListWebDataStreams, Google::Analytics::Admin::V1alpha::ListWebDataStreamsRequest, Google::Analytics::Admin::V1alpha::ListWebDataStreamsResponse
142
+ rpc :ListWebDataStreams, ::Google::Analytics::Admin::V1alpha::ListWebDataStreamsRequest, ::Google::Analytics::Admin::V1alpha::ListWebDataStreamsResponse
141
143
  # Lookup for a single IosAppDataStream
142
144
  #
143
145
  # Throws "Target not found" if no such iOS app data stream found, or if the
144
146
  # caller does not have permissions to access it.
145
- rpc :GetIosAppDataStream, Google::Analytics::Admin::V1alpha::GetIosAppDataStreamRequest, Google::Analytics::Admin::V1alpha::IosAppDataStream
147
+ rpc :GetIosAppDataStream, ::Google::Analytics::Admin::V1alpha::GetIosAppDataStreamRequest, ::Google::Analytics::Admin::V1alpha::IosAppDataStream
146
148
  # Deletes an iOS app stream on a property.
147
- rpc :DeleteIosAppDataStream, Google::Analytics::Admin::V1alpha::DeleteIosAppDataStreamRequest, Google::Protobuf::Empty
149
+ rpc :DeleteIosAppDataStream, ::Google::Analytics::Admin::V1alpha::DeleteIosAppDataStreamRequest, ::Google::Protobuf::Empty
148
150
  # Updates an iOS app stream on a property.
149
- rpc :UpdateIosAppDataStream, Google::Analytics::Admin::V1alpha::UpdateIosAppDataStreamRequest, Google::Analytics::Admin::V1alpha::IosAppDataStream
151
+ rpc :UpdateIosAppDataStream, ::Google::Analytics::Admin::V1alpha::UpdateIosAppDataStreamRequest, ::Google::Analytics::Admin::V1alpha::IosAppDataStream
150
152
  # Creates an iOS app data stream with the specified location and attributes.
151
- rpc :CreateIosAppDataStream, Google::Analytics::Admin::V1alpha::CreateIosAppDataStreamRequest, Google::Analytics::Admin::V1alpha::IosAppDataStream
153
+ rpc :CreateIosAppDataStream, ::Google::Analytics::Admin::V1alpha::CreateIosAppDataStreamRequest, ::Google::Analytics::Admin::V1alpha::IosAppDataStream
152
154
  # Returns child iOS app data streams under the specified parent property.
153
155
  #
154
156
  # iOS app data streams will be excluded if the caller does not have access.
155
157
  # Returns an empty list if no relevant iOS app data streams are found.
156
- rpc :ListIosAppDataStreams, Google::Analytics::Admin::V1alpha::ListIosAppDataStreamsRequest, Google::Analytics::Admin::V1alpha::ListIosAppDataStreamsResponse
158
+ rpc :ListIosAppDataStreams, ::Google::Analytics::Admin::V1alpha::ListIosAppDataStreamsRequest, ::Google::Analytics::Admin::V1alpha::ListIosAppDataStreamsResponse
157
159
  # Lookup for a single AndroidAppDataStream
158
160
  #
159
161
  # Throws "Target not found" if no such android app data stream found, or if
160
162
  # the caller does not have permissions to access it.
161
- rpc :GetAndroidAppDataStream, Google::Analytics::Admin::V1alpha::GetAndroidAppDataStreamRequest, Google::Analytics::Admin::V1alpha::AndroidAppDataStream
163
+ rpc :GetAndroidAppDataStream, ::Google::Analytics::Admin::V1alpha::GetAndroidAppDataStreamRequest, ::Google::Analytics::Admin::V1alpha::AndroidAppDataStream
162
164
  # Deletes an android app stream on a property.
163
- rpc :DeleteAndroidAppDataStream, Google::Analytics::Admin::V1alpha::DeleteAndroidAppDataStreamRequest, Google::Protobuf::Empty
165
+ rpc :DeleteAndroidAppDataStream, ::Google::Analytics::Admin::V1alpha::DeleteAndroidAppDataStreamRequest, ::Google::Protobuf::Empty
164
166
  # Updates an android app stream on a property.
165
- rpc :UpdateAndroidAppDataStream, Google::Analytics::Admin::V1alpha::UpdateAndroidAppDataStreamRequest, Google::Analytics::Admin::V1alpha::AndroidAppDataStream
167
+ rpc :UpdateAndroidAppDataStream, ::Google::Analytics::Admin::V1alpha::UpdateAndroidAppDataStreamRequest, ::Google::Analytics::Admin::V1alpha::AndroidAppDataStream
166
168
  # Creates an android app stream with the specified location and attributes.
167
- rpc :CreateAndroidAppDataStream, Google::Analytics::Admin::V1alpha::CreateAndroidAppDataStreamRequest, Google::Analytics::Admin::V1alpha::AndroidAppDataStream
169
+ rpc :CreateAndroidAppDataStream, ::Google::Analytics::Admin::V1alpha::CreateAndroidAppDataStreamRequest, ::Google::Analytics::Admin::V1alpha::AndroidAppDataStream
168
170
  # Returns child android app streams under the specified parent property.
169
171
  #
170
172
  # Android app streams will be excluded if the caller does not have access.
171
173
  # Returns an empty list if no relevant android app streams are found.
172
- rpc :ListAndroidAppDataStreams, Google::Analytics::Admin::V1alpha::ListAndroidAppDataStreamsRequest, Google::Analytics::Admin::V1alpha::ListAndroidAppDataStreamsResponse
174
+ rpc :ListAndroidAppDataStreams, ::Google::Analytics::Admin::V1alpha::ListAndroidAppDataStreamsRequest, ::Google::Analytics::Admin::V1alpha::ListAndroidAppDataStreamsResponse
173
175
  # Returns the singleton enhanced measurement settings for this web stream.
174
176
  # Note that the stream must enable enhanced measurement for these settings to
175
177
  # take effect.
176
- rpc :GetEnhancedMeasurementSettings, Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest, Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings
178
+ rpc :GetEnhancedMeasurementSettings, ::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest, ::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings
177
179
  # Updates the singleton enhanced measurement settings for this web stream.
178
180
  # Note that the stream must enable enhanced measurement for these settings to
179
181
  # take effect.
180
- rpc :UpdateEnhancedMeasurementSettings, Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest, Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings
182
+ rpc :UpdateEnhancedMeasurementSettings, ::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest, ::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings
181
183
  # Creates a FirebaseLink.
182
184
  #
183
185
  # Properties can have at most one FirebaseLink.
184
- rpc :CreateFirebaseLink, Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest, Google::Analytics::Admin::V1alpha::FirebaseLink
186
+ rpc :CreateFirebaseLink, ::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest, ::Google::Analytics::Admin::V1alpha::FirebaseLink
185
187
  # Updates a FirebaseLink on a property
186
- rpc :UpdateFirebaseLink, Google::Analytics::Admin::V1alpha::UpdateFirebaseLinkRequest, Google::Analytics::Admin::V1alpha::FirebaseLink
188
+ rpc :UpdateFirebaseLink, ::Google::Analytics::Admin::V1alpha::UpdateFirebaseLinkRequest, ::Google::Analytics::Admin::V1alpha::FirebaseLink
187
189
  # Deletes a FirebaseLink on a property
188
- rpc :DeleteFirebaseLink, Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest, Google::Protobuf::Empty
190
+ rpc :DeleteFirebaseLink, ::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest, ::Google::Protobuf::Empty
189
191
  # Lists FirebaseLinks on a property.
190
192
  # Properties can have at most one FirebaseLink.
191
- rpc :ListFirebaseLinks, Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest, Google::Analytics::Admin::V1alpha::ListFirebaseLinksResponse
193
+ rpc :ListFirebaseLinks, ::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest, ::Google::Analytics::Admin::V1alpha::ListFirebaseLinksResponse
192
194
  # Returns the Site Tag for the specified web stream.
193
195
  # Site Tags are immutable singletons.
194
- rpc :GetGlobalSiteTag, Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest, Google::Analytics::Admin::V1alpha::GlobalSiteTag
196
+ rpc :GetGlobalSiteTag, ::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest, ::Google::Analytics::Admin::V1alpha::GlobalSiteTag
195
197
  # Creates a GoogleAdsLink.
196
- rpc :CreateGoogleAdsLink, Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest, Google::Analytics::Admin::V1alpha::GoogleAdsLink
198
+ rpc :CreateGoogleAdsLink, ::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest, ::Google::Analytics::Admin::V1alpha::GoogleAdsLink
197
199
  # Updates a GoogleAdsLink on a property
198
- rpc :UpdateGoogleAdsLink, Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest, Google::Analytics::Admin::V1alpha::GoogleAdsLink
200
+ rpc :UpdateGoogleAdsLink, ::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest, ::Google::Analytics::Admin::V1alpha::GoogleAdsLink
199
201
  # Deletes a GoogleAdsLink on a property
200
- rpc :DeleteGoogleAdsLink, Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest, Google::Protobuf::Empty
202
+ rpc :DeleteGoogleAdsLink, ::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest, ::Google::Protobuf::Empty
201
203
  # Lists GoogleAdsLinks on a property.
202
- rpc :ListGoogleAdsLinks, Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest, Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksResponse
204
+ rpc :ListGoogleAdsLinks, ::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest, ::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksResponse
203
205
  # Get data sharing settings on an account.
204
206
  # Data sharing settings are singletons.
205
- rpc :GetDataSharingSettings, Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest, Google::Analytics::Admin::V1alpha::DataSharingSettings
207
+ rpc :GetDataSharingSettings, ::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest, ::Google::Analytics::Admin::V1alpha::DataSharingSettings
206
208
  end
207
209
 
208
210
  Stub = Service.rpc_stub_class
@@ -111,6 +111,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
111
111
  optional :sharing_with_google_products_enabled, :bool, 5
112
112
  optional :sharing_with_others_enabled, :bool, 6
113
113
  end
114
+ add_message "google.analytics.admin.v1alpha.AccountSummary" do
115
+ optional :name, :string, 1
116
+ optional :account, :string, 2
117
+ optional :display_name, :string, 3
118
+ repeated :property_summaries, :message, 4, "google.analytics.admin.v1alpha.PropertySummary"
119
+ end
120
+ add_message "google.analytics.admin.v1alpha.PropertySummary" do
121
+ optional :property, :string, 1
122
+ optional :display_name, :string, 2
123
+ end
114
124
  add_enum "google.analytics.admin.v1alpha.IndustryCategory" do
115
125
  value :INDUSTRY_CATEGORY_UNSPECIFIED, 0
116
126
  value :AUTOMOTIVE, 1
@@ -166,6 +176,8 @@ module Google
166
176
  GlobalSiteTag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GlobalSiteTag").msgclass
167
177
  GoogleAdsLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.GoogleAdsLink").msgclass
168
178
  DataSharingSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.DataSharingSettings").msgclass
179
+ AccountSummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.AccountSummary").msgclass
180
+ PropertySummary = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.PropertySummary").msgclass
169
181
  IndustryCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.IndustryCategory").enummodule
170
182
  MaximumUserAccess = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.analytics.admin.v1alpha.MaximumUserAccess").enummodule
171
183
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Analytics
22
22
  module Admin
23
23
  module V1alpha
24
- VERSION = "0.1.1"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
@@ -843,6 +843,37 @@ module Google
843
843
  include ::Google::Protobuf::MessageExts
844
844
  extend ::Google::Protobuf::MessageExts::ClassMethods
845
845
  end
846
+
847
+ # Request message for ListAccountSummaries RPC.
848
+ # @!attribute [rw] page_size
849
+ # @return [::Integer]
850
+ # The maximum number of AccountSummary resources to return. The service may
851
+ # return fewer than this value, even if there are additional pages.
852
+ # If unspecified, at most 50 resources will be returned.
853
+ # The maximum value is 200; (higher values will be coerced to the maximum)
854
+ # @!attribute [rw] page_token
855
+ # @return [::String]
856
+ # A page token, received from a previous `ListAccountSummaries` call.
857
+ # Provide this to retrieve the subsequent page.
858
+ # When paginating, all other parameters provided to `ListAccountSummaries`
859
+ # must match the call that provided the page token.
860
+ class ListAccountSummariesRequest
861
+ include ::Google::Protobuf::MessageExts
862
+ extend ::Google::Protobuf::MessageExts::ClassMethods
863
+ end
864
+
865
+ # Response message for ListAccountSummaries RPC.
866
+ # @!attribute [rw] account_summaries
867
+ # @return [::Array<::Google::Analytics::Admin::V1alpha::AccountSummary>]
868
+ # Account summaries of all accounts the caller has access to.
869
+ # @!attribute [rw] next_page_token
870
+ # @return [::String]
871
+ # A token, which can be sent as `page_token` to retrieve the next page.
872
+ # If this field is omitted, there are no subsequent pages.
873
+ class ListAccountSummariesResponse
874
+ include ::Google::Protobuf::MessageExts
875
+ extend ::Google::Protobuf::MessageExts::ClassMethods
876
+ end
846
877
  end
847
878
  end
848
879
  end
@@ -437,6 +437,43 @@ module Google
437
437
  extend ::Google::Protobuf::MessageExts::ClassMethods
438
438
  end
439
439
 
440
+ # A virtual resource representing an overview of an account and
441
+ # all its child App+Web properties.
442
+ # @!attribute [rw] name
443
+ # @return [::String]
444
+ # Resource name for this account summary.
445
+ # Format: accountSummaries/\\{account_id}
446
+ # Example: "accountSummaries/1000"
447
+ # @!attribute [rw] account
448
+ # @return [::String]
449
+ # Resource name of account referred to by this account summary
450
+ # Format: accounts/\\{account_id}
451
+ # Example: "accounts/1000"
452
+ # @!attribute [rw] display_name
453
+ # @return [::String]
454
+ # Display name for the account referred to in this account summary.
455
+ # @!attribute [rw] property_summaries
456
+ # @return [::Array<::Google::Analytics::Admin::V1alpha::PropertySummary>]
457
+ # List of summaries for child accounts of this account.
458
+ class AccountSummary
459
+ include ::Google::Protobuf::MessageExts
460
+ extend ::Google::Protobuf::MessageExts::ClassMethods
461
+ end
462
+
463
+ # A virtual resource representing metadata for an App+Web property.
464
+ # @!attribute [rw] property
465
+ # @return [::String]
466
+ # Resource name of property referred to by this property summary
467
+ # Format: properties/\\{property_id}
468
+ # Example: "properties/1000"
469
+ # @!attribute [rw] display_name
470
+ # @return [::String]
471
+ # Display name for the property referred to in this account summary.
472
+ class PropertySummary
473
+ include ::Google::Protobuf::MessageExts
474
+ extend ::Google::Protobuf::MessageExts::ClassMethods
475
+ end
476
+
440
477
  # The category selected for this property, used for industry benchmarking.
441
478
  module IndustryCategory
442
479
  # Industry category unspecified
@@ -43,12 +43,12 @@ module Google
43
43
  #
44
44
  # The ResourceDescriptor Yaml config will look like:
45
45
  #
46
- # resources:
47
- # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/\\{project}/topics/\\{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/\\{project}"
46
+ # resources:
47
+ # - type: "pubsub.googleapis.com/Topic"
48
+ # name_descriptor:
49
+ # - pattern: "projects/{project}/topics/{topic}"
50
+ # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
+ # parent_name_extractor: "projects/{project}"
52
52
  #
53
53
  # Sometimes, resources have multiple patterns, typically because they can
54
54
  # live under multiple parents.
@@ -183,15 +183,24 @@ module Google
183
183
  # }
184
184
  # @!attribute [rw] plural
185
185
  # @return [::String]
186
- # The plural name used in the resource name, such as 'projects' for
187
- # the name of 'projects/\\{project}'. It is the same concept of the `plural`
188
- # field in k8s CRD spec
186
+ # The plural name used in the resource name and permission names, such as
187
+ # 'projects' for the resource name of 'projects/\\{project}' and the permission
188
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
189
+ # concept of the `plural` field in k8s CRD spec
189
190
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
191
+ #
192
+ # Note: The plural form is required even for singleton resources. See
193
+ # https://aip.dev/156
190
194
  # @!attribute [rw] singular
191
195
  # @return [::String]
192
196
  # The same concept of the `singular` field in k8s CRD spec
193
197
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
194
198
  # Such as "project" for the `resourcemanager.googleapis.com/Project` type.
199
+ # @!attribute [rw] style
200
+ # @return [::Array<::Google::Api::ResourceDescriptor::Style>]
201
+ # Style flag(s) for this resource.
202
+ # These indicate that a resource is expected to conform to a given
203
+ # style. See the specific style flags for additional information.
195
204
  class ResourceDescriptor
196
205
  include ::Google::Protobuf::MessageExts
197
206
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -211,6 +220,22 @@ module Google
211
220
  # that from being necessary once there are multiple patterns.)
212
221
  FUTURE_MULTI_PATTERN = 2
213
222
  end
223
+
224
+ # A flag representing a specific style that a resource claims to conform to.
225
+ module Style
226
+ # The unspecified value. Do not use.
227
+ STYLE_UNSPECIFIED = 0
228
+
229
+ # This resource is intended to be "declarative-friendly".
230
+ #
231
+ # Declarative-friendly resources must be more strictly consistent, and
232
+ # setting this to true communicates to tools that this resource should
233
+ # adhere to declarative-friendly expectations.
234
+ #
235
+ # Note: This is used by the API linter (linter.aip.dev) to enable
236
+ # additional checks.
237
+ DECLARATIVE_FRIENDLY = 1
238
+ end
214
239
  end
215
240
 
216
241
  # Defines a proto annotation that describes a string field that refers to
@@ -226,6 +251,17 @@ module Google
226
251
  # type: "pubsub.googleapis.com/Topic"
227
252
  # }];
228
253
  # }
254
+ #
255
+ # Occasionally, a field may reference an arbitrary resource. In this case,
256
+ # APIs use the special value * in their resource reference.
257
+ #
258
+ # Example:
259
+ #
260
+ # message GetIamPolicyRequest {
261
+ # string resource = 2 [(google.api.resource_reference) = {
262
+ # type: "*"
263
+ # }];
264
+ # }
229
265
  # @!attribute [rw] child_type
230
266
  # @return [::String]
231
267
  # The resource type of a child collection that the annotated field
@@ -234,11 +270,11 @@ module Google
234
270
  #
235
271
  # Example:
236
272
  #
237
- # message ListLogEntriesRequest {
238
- # string parent = 1 [(google.api.resource_reference) = {
239
- # child_type: "logging.googleapis.com/LogEntry"
240
- # };
241
- # }
273
+ # message ListLogEntriesRequest {
274
+ # string parent = 1 [(google.api.resource_reference) = {
275
+ # child_type: "logging.googleapis.com/LogEntry"
276
+ # };
277
+ # }
242
278
  class ResourceReference
243
279
  include ::Google::Protobuf::MessageExts
244
280
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-analytics-admin-v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-10 00:00:00.000000000 Z
11
+ date: 2020-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -200,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
200
  - !ruby/object:Gem::Version
201
201
  version: '0'
202
202
  requirements: []
203
- rubygems_version: 3.1.3
203
+ rubygems_version: 3.1.4
204
204
  signing_key:
205
205
  specification_version: 4
206
206
  summary: API Client library for the Google Analytics Admin V1alpha API