# frozen_string_literal: true # Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Auto-generated by gapic-generator-ruby. DO NOT EDIT! require "google/analytics/admin/v1alpha/analytics_admin_pb" module Google module Analytics module Admin module V1alpha module AnalyticsAdminService module Rest ## # REST service stub for the AnalyticsAdminService service. # Service stub contains baseline method implementations # including transcoding, making the REST call, and deserialing the response. # class ServiceStub def initialize endpoint:, credentials: # These require statements are intentionally placed here to initialize # the REST modules only when it's required. require "gapic/rest" @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint, credentials: credentials, numeric_enums: true, raise_faraday_errors: false end ## # Baseline implementation for the get_account REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAccountRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::Account] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::Account] # A result object deserialized from the server's reply def get_account request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_account_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::Account.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the list_accounts REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAccountsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListAccountsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ListAccountsResponse] # A result object deserialized from the server's reply def list_accounts request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_accounts_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ListAccountsResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the delete_account REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteAccountRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply def delete_account request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_delete_account_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the update_account REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateAccountRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::Account] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::Account] # A result object deserialized from the server's reply def update_account request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_account_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::Account.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the provision_account_ticket REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse] # A result object deserialized from the server's reply def provision_account_ticket request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_provision_account_ticket_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the list_account_summaries REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListAccountSummariesResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ListAccountSummariesResponse] # A result object deserialized from the server's reply def list_account_summaries request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_account_summaries_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ListAccountSummariesResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the get_property REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetPropertyRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::Property] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::Property] # A result object deserialized from the server's reply def get_property request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_property_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::Property.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the list_properties REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListPropertiesRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListPropertiesResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ListPropertiesResponse] # A result object deserialized from the server's reply def list_properties request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_properties_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ListPropertiesResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the create_property REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreatePropertyRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::Property] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::Property] # A result object deserialized from the server's reply def create_property request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_property_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::Property.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the delete_property REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeletePropertyRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::Property] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::Property] # A result object deserialized from the server's reply def delete_property request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_delete_property_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::Property.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the update_property REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::Property] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::Property] # A result object deserialized from the server's reply def update_property request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_property_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::Property.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the get_user_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetUserLinkRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::UserLink] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::UserLink] # A result object deserialized from the server's reply def get_user_link request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_user_link_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::UserLink.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the batch_get_user_links REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchGetUserLinksRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::BatchGetUserLinksResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::BatchGetUserLinksResponse] # A result object deserialized from the server's reply def batch_get_user_links request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_batch_get_user_links_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::BatchGetUserLinksResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the list_user_links REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListUserLinksRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListUserLinksResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ListUserLinksResponse] # A result object deserialized from the server's reply def list_user_links request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_user_links_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ListUserLinksResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the audit_user_links REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::AuditUserLinksRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::AuditUserLinksResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::AuditUserLinksResponse] # A result object deserialized from the server's reply def audit_user_links request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_audit_user_links_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::AuditUserLinksResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the create_user_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateUserLinkRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::UserLink] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::UserLink] # A result object deserialized from the server's reply def create_user_link request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_user_link_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::UserLink.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the batch_create_user_links REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchCreateUserLinksRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::BatchCreateUserLinksResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::BatchCreateUserLinksResponse] # A result object deserialized from the server's reply def batch_create_user_links request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_batch_create_user_links_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::BatchCreateUserLinksResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the update_user_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateUserLinkRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::UserLink] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::UserLink] # A result object deserialized from the server's reply def update_user_link request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_user_link_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::UserLink.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the batch_update_user_links REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksResponse] # A result object deserialized from the server's reply def batch_update_user_links request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_batch_update_user_links_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the delete_user_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteUserLinkRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply def delete_user_link request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_delete_user_link_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the batch_delete_user_links REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchDeleteUserLinksRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply def batch_delete_user_links request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_batch_delete_user_links_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the create_firebase_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::FirebaseLink] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::FirebaseLink] # A result object deserialized from the server's reply def create_firebase_link request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_firebase_link_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::FirebaseLink.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the delete_firebase_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply def delete_firebase_link request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_delete_firebase_link_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the list_firebase_links REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListFirebaseLinksResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ListFirebaseLinksResponse] # A result object deserialized from the server's reply def list_firebase_links request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_firebase_links_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ListFirebaseLinksResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the get_global_site_tag REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::GlobalSiteTag] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::GlobalSiteTag] # A result object deserialized from the server's reply def get_global_site_tag request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_global_site_tag_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::GlobalSiteTag.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the create_google_ads_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] # A result object deserialized from the server's reply def create_google_ads_link request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_google_ads_link_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::GoogleAdsLink.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the update_google_ads_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::GoogleAdsLink] # A result object deserialized from the server's reply def update_google_ads_link request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_google_ads_link_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::GoogleAdsLink.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the delete_google_ads_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply def delete_google_ads_link request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_delete_google_ads_link_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the list_google_ads_links REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksResponse] # A result object deserialized from the server's reply def list_google_ads_links request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_google_ads_links_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the get_data_sharing_settings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataSharingSettings] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::DataSharingSettings] # A result object deserialized from the server's reply def get_data_sharing_settings request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_data_sharing_settings_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::DataSharingSettings.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the get_measurement_protocol_secret REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] # A result object deserialized from the server's reply def get_measurement_protocol_secret request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_measurement_protocol_secret_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the list_measurement_protocol_secrets REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsResponse] # A result object deserialized from the server's reply def list_measurement_protocol_secrets request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_measurement_protocol_secrets_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the create_measurement_protocol_secret REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] # A result object deserialized from the server's reply def create_measurement_protocol_secret request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_measurement_protocol_secret_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the delete_measurement_protocol_secret REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply def delete_measurement_protocol_secret request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_delete_measurement_protocol_secret_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the update_measurement_protocol_secret REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret] # A result object deserialized from the server's reply def update_measurement_protocol_secret request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_measurement_protocol_secret_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::MeasurementProtocolSecret.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the acknowledge_user_data_collection REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse] # A result object deserialized from the server's reply def acknowledge_user_data_collection request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_acknowledge_user_data_collection_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the search_change_history_events REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsResponse] # A result object deserialized from the server's reply def search_change_history_events request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_search_change_history_events_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the get_google_signals_settings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] # A result object deserialized from the server's reply def get_google_signals_settings request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_google_signals_settings_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the update_google_signals_settings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings] # A result object deserialized from the server's reply def update_google_signals_settings request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_google_signals_settings_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::GoogleSignalsSettings.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the create_conversion_event REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ConversionEvent] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] # A result object deserialized from the server's reply def create_conversion_event request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_conversion_event_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ConversionEvent.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the get_conversion_event REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetConversionEventRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ConversionEvent] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ConversionEvent] # A result object deserialized from the server's reply def get_conversion_event request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_conversion_event_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ConversionEvent.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the delete_conversion_event REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply def delete_conversion_event request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_delete_conversion_event_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the list_conversion_events REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListConversionEventsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ListConversionEventsResponse] # A result object deserialized from the server's reply def list_conversion_events request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_conversion_events_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ListConversionEventsResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the get_display_video360_advertiser_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] # A result object deserialized from the server's reply def get_display_video360_advertiser_link request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_display_video360_advertiser_link_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the list_display_video360_advertiser_links REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksResponse] # A result object deserialized from the server's reply def list_display_video360_advertiser_links request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_display_video360_advertiser_links_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the create_display_video360_advertiser_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] # A result object deserialized from the server's reply def create_display_video360_advertiser_link request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_display_video360_advertiser_link_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the delete_display_video360_advertiser_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply def delete_display_video360_advertiser_link request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_delete_display_video360_advertiser_link_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the update_display_video360_advertiser_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink] # A result object deserialized from the server's reply def update_display_video360_advertiser_link request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_display_video360_advertiser_link_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLink.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the get_display_video360_advertiser_link_proposal REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] # A result object deserialized from the server's reply def get_display_video360_advertiser_link_proposal request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_display_video360_advertiser_link_proposal_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the list_display_video360_advertiser_link_proposals REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsResponse] # A result object deserialized from the server's reply def list_display_video360_advertiser_link_proposals request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_display_video360_advertiser_link_proposals_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the create_display_video360_advertiser_link_proposal REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] # A result object deserialized from the server's reply def create_display_video360_advertiser_link_proposal request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_display_video360_advertiser_link_proposal_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the delete_display_video360_advertiser_link_proposal REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply def delete_display_video360_advertiser_link_proposal request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_delete_display_video360_advertiser_link_proposal_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the approve_display_video360_advertiser_link_proposal REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse] # A result object deserialized from the server's reply def approve_display_video360_advertiser_link_proposal request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_approve_display_video360_advertiser_link_proposal_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the cancel_display_video360_advertiser_link_proposal REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal] # A result object deserialized from the server's reply def cancel_display_video360_advertiser_link_proposal request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_cancel_display_video360_advertiser_link_proposal_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::DisplayVideo360AdvertiserLinkProposal.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the create_custom_dimension REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomDimension] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] # A result object deserialized from the server's reply def create_custom_dimension request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_custom_dimension_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::CustomDimension.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the update_custom_dimension REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomDimension] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] # A result object deserialized from the server's reply def update_custom_dimension request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_custom_dimension_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::CustomDimension.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the list_custom_dimensions REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListCustomDimensionsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ListCustomDimensionsResponse] # A result object deserialized from the server's reply def list_custom_dimensions request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_custom_dimensions_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ListCustomDimensionsResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the archive_custom_dimension REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply def archive_custom_dimension request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_archive_custom_dimension_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the get_custom_dimension REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomDimension] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::CustomDimension] # A result object deserialized from the server's reply def get_custom_dimension request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_custom_dimension_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::CustomDimension.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the create_custom_metric REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomMetric] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] # A result object deserialized from the server's reply def create_custom_metric request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_custom_metric_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::CustomMetric.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the update_custom_metric REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomMetric] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] # A result object deserialized from the server's reply def update_custom_metric request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_custom_metric_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::CustomMetric.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the list_custom_metrics REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListCustomMetricsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ListCustomMetricsResponse] # A result object deserialized from the server's reply def list_custom_metrics request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_custom_metrics_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ListCustomMetricsResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the archive_custom_metric REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply def archive_custom_metric request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_archive_custom_metric_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the get_custom_metric REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::CustomMetric] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::CustomMetric] # A result object deserialized from the server's reply def get_custom_metric request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_custom_metric_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::CustomMetric.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the get_data_retention_settings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] # A result object deserialized from the server's reply def get_data_retention_settings request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_data_retention_settings_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::DataRetentionSettings.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the update_data_retention_settings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::DataRetentionSettings] # A result object deserialized from the server's reply def update_data_retention_settings request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_data_retention_settings_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::DataRetentionSettings.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the create_data_stream REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataStream] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::DataStream] # A result object deserialized from the server's reply def create_data_stream request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_data_stream_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::DataStream.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the delete_data_stream REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply def delete_data_stream request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_delete_data_stream_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the update_data_stream REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataStream] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::DataStream] # A result object deserialized from the server's reply def update_data_stream request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_data_stream_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::DataStream.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the list_data_streams REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListDataStreamsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ListDataStreamsResponse] # A result object deserialized from the server's reply def list_data_streams request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_data_streams_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ListDataStreamsResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the get_data_stream REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDataStreamRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::DataStream] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::DataStream] # A result object deserialized from the server's reply def get_data_stream request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_data_stream_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::DataStream.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the get_audience REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAudienceRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::Audience] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::Audience] # A result object deserialized from the server's reply def get_audience request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_audience_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::Audience.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the list_audiences REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAudiencesRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListAudiencesResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ListAudiencesResponse] # A result object deserialized from the server's reply def list_audiences request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_audiences_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ListAudiencesResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the create_audience REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateAudienceRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::Audience] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::Audience] # A result object deserialized from the server's reply def create_audience request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_audience_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::Audience.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the update_audience REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::Audience] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::Audience] # A result object deserialized from the server's reply def update_audience request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_audience_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::Audience.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the archive_audience REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply def archive_audience request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_archive_audience_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the get_search_ads360_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::SearchAds360Link] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] # A result object deserialized from the server's reply def get_search_ads360_link request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_search_ads360_link_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::SearchAds360Link.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the list_search_ads360_links REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksResponse] # A result object deserialized from the server's reply def list_search_ads360_links request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_search_ads360_links_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the create_search_ads360_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::SearchAds360Link] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] # A result object deserialized from the server's reply def create_search_ads360_link request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_search_ads360_link_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::SearchAds360Link.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the delete_search_ads360_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply def delete_search_ads360_link request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_delete_search_ads360_link_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the update_search_ads360_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::SearchAds360Link] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::SearchAds360Link] # A result object deserialized from the server's reply def update_search_ads360_link request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_search_ads360_link_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::SearchAds360Link.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the get_attribution_settings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::AttributionSettings] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings] # A result object deserialized from the server's reply def get_attribution_settings request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_attribution_settings_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::AttributionSettings.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the update_attribution_settings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::AttributionSettings] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::AttributionSettings] # A result object deserialized from the server's reply def update_attribution_settings request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_attribution_settings_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::AttributionSettings.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the run_access_report REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::RunAccessReportRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::RunAccessReportResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::RunAccessReportResponse] # A result object deserialized from the server's reply def run_access_report request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_run_access_report_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::RunAccessReportResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the create_access_binding REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::AccessBinding] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] # A result object deserialized from the server's reply def create_access_binding request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_access_binding_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::AccessBinding.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the get_access_binding REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::AccessBinding] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] # A result object deserialized from the server's reply def get_access_binding request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_access_binding_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::AccessBinding.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the update_access_binding REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::AccessBinding] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::AccessBinding] # A result object deserialized from the server's reply def update_access_binding request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_access_binding_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::AccessBinding.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the delete_access_binding REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply def delete_access_binding request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_delete_access_binding_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the list_access_bindings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListAccessBindingsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ListAccessBindingsResponse] # A result object deserialized from the server's reply def list_access_bindings request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_access_bindings_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ListAccessBindingsResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the batch_create_access_bindings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse] # A result object deserialized from the server's reply def batch_create_access_bindings request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_batch_create_access_bindings_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the batch_get_access_bindings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse] # A result object deserialized from the server's reply def batch_get_access_bindings request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_batch_get_access_bindings_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the batch_update_access_bindings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse] # A result object deserialized from the server's reply def batch_update_access_bindings request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_batch_update_access_bindings_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the batch_delete_access_bindings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply def batch_delete_access_bindings request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_batch_delete_access_bindings_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the get_expanded_data_set REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] # A result object deserialized from the server's reply def get_expanded_data_set request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_expanded_data_set_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ExpandedDataSet.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the list_expanded_data_sets REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsResponse] # A result object deserialized from the server's reply def list_expanded_data_sets request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_expanded_data_sets_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the create_expanded_data_set REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] # A result object deserialized from the server's reply def create_expanded_data_set request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_expanded_data_set_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ExpandedDataSet.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the update_expanded_data_set REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ExpandedDataSet] # A result object deserialized from the server's reply def update_expanded_data_set request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_expanded_data_set_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ExpandedDataSet.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the delete_expanded_data_set REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply def delete_expanded_data_set request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_delete_expanded_data_set_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the get_channel_group REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ChannelGroup] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] # A result object deserialized from the server's reply def get_channel_group request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_channel_group_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ChannelGroup.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the list_channel_groups REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListChannelGroupsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ListChannelGroupsResponse] # A result object deserialized from the server's reply def list_channel_groups request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_channel_groups_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ListChannelGroupsResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the create_channel_group REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ChannelGroup] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] # A result object deserialized from the server's reply def create_channel_group request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_channel_group_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ChannelGroup.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the update_channel_group REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ChannelGroup] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ChannelGroup] # A result object deserialized from the server's reply def update_channel_group request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_channel_group_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ChannelGroup.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the delete_channel_group REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply def delete_channel_group request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_delete_channel_group_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the set_automated_ga4_configuration_opt_out REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutResponse] # A result object deserialized from the server's reply def set_automated_ga4_configuration_opt_out request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_set_automated_ga4_configuration_opt_out_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the fetch_automated_ga4_configuration_opt_out REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutResponse] # A result object deserialized from the server's reply def fetch_automated_ga4_configuration_opt_out request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_fetch_automated_ga4_configuration_opt_out_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the get_big_query_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::BigQueryLink] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::BigQueryLink] # A result object deserialized from the server's reply def get_big_query_link request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_big_query_link_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::BigQueryLink.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the list_big_query_links REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListBigQueryLinksResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ListBigQueryLinksResponse] # A result object deserialized from the server's reply def list_big_query_links request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_big_query_links_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ListBigQueryLinksResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the get_enhanced_measurement_settings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] # A result object deserialized from the server's reply def get_enhanced_measurement_settings request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_get_enhanced_measurement_settings_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the update_enhanced_measurement_settings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings] # A result object deserialized from the server's reply def update_enhanced_measurement_settings request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_update_enhanced_measurement_settings_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::EnhancedMeasurementSettings.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the create_connected_site_tag REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagResponse] # A result object deserialized from the server's reply def create_connected_site_tag request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_create_connected_site_tag_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the delete_connected_site_tag REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteConnectedSiteTagRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Protobuf::Empty] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Protobuf::Empty] # A result object deserialized from the server's reply def delete_connected_site_tag request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_delete_connected_site_tag_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the list_connected_site_tags REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsResponse] # A result object deserialized from the server's reply def list_connected_site_tags request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_list_connected_site_tags_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # Baseline implementation for the fetch_connected_ga4_property REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyRequest] # A request object representing the call parameters. Required. # @param options [::Gapic::CallOptions] # Overrides the default settings for this call, e.g, timeout, retries etc. Optional. # # @yield [result, operation] Access the result along with the TransportOperation object # @yieldparam result [::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyResponse] # @yieldparam operation [::Gapic::Rest::TransportOperation] # # @return [::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyResponse] # A result object deserialized from the server's reply def fetch_connected_ga4_property request_pb, options = nil raise ::ArgumentError, "request must be provided" if request_pb.nil? verb, uri, query_string_params, body = ServiceStub.transcode_fetch_connected_ga4_property_request request_pb query_string_params = if query_string_params.any? query_string_params.to_h { |p| p.split("=", 2) } else {} end response = @client_stub.make_http_request( verb, uri: uri, body: body || "", params: query_string_params, options: options ) operation = ::Gapic::Rest::TransportOperation.new response result = ::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyResponse.decode_json response.body, ignore_unknown_fields: true yield result, operation if block_given? result end ## # @private # # GRPC transcoding helper method for the get_account REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAccountRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_get_account_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^accounts/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the list_accounts REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAccountsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_list_accounts_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/accounts", matches: [] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the delete_account REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteAccountRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_delete_account_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :delete, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^accounts/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the update_account REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateAccountRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_update_account_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :patch, uri_template: "/v1alpha/{account.name}", body: "account", matches: [ ["account.name", %r{^accounts/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the provision_account_ticket REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ProvisionAccountTicketRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_provision_account_ticket_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/accounts:provisionAccountTicket", body: "*", matches: [] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the list_account_summaries REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAccountSummariesRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_list_account_summaries_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/accountSummaries", matches: [] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the get_property REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetPropertyRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_get_property_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the list_properties REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListPropertiesRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_list_properties_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/properties", matches: [] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the create_property REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreatePropertyRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_create_property_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/properties", body: "property", matches: [] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the delete_property REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeletePropertyRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_delete_property_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :delete, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the update_property REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdatePropertyRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_update_property_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :patch, uri_template: "/v1alpha/{property.name}", body: "property", matches: [ ["property.name", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the get_user_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetUserLinkRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_get_user_link_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^accounts/[^/]+/userLinks/[^/]+/?$}, false] ] ) .with_bindings( uri_method: :get, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/userLinks/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the batch_get_user_links REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchGetUserLinksRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_batch_get_user_links_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{parent}/userLinks:batchGet", matches: [ ["parent", %r{^accounts/[^/]+/?$}, false] ] ) .with_bindings( uri_method: :get, uri_template: "/v1alpha/{parent}/userLinks:batchGet", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the list_user_links REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListUserLinksRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_list_user_links_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{parent}/userLinks", matches: [ ["parent", %r{^accounts/[^/]+/?$}, false] ] ) .with_bindings( uri_method: :get, uri_template: "/v1alpha/{parent}/userLinks", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the audit_user_links REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::AuditUserLinksRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_audit_user_links_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/userLinks:audit", body: "*", matches: [ ["parent", %r{^accounts/[^/]+/?$}, false] ] ) .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/userLinks:audit", body: "*", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the create_user_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateUserLinkRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_create_user_link_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/userLinks", body: "user_link", matches: [ ["parent", %r{^accounts/[^/]+/?$}, false] ] ) .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/userLinks", body: "user_link", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the batch_create_user_links REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchCreateUserLinksRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_batch_create_user_links_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/userLinks:batchCreate", body: "*", matches: [ ["parent", %r{^accounts/[^/]+/?$}, false] ] ) .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/userLinks:batchCreate", body: "*", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the update_user_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateUserLinkRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_update_user_link_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :patch, uri_template: "/v1alpha/{user_link.name}", body: "user_link", matches: [ ["user_link.name", %r{^accounts/[^/]+/userLinks/[^/]+/?$}, false] ] ) .with_bindings( uri_method: :patch, uri_template: "/v1alpha/{user_link.name}", body: "user_link", matches: [ ["user_link.name", %r{^properties/[^/]+/userLinks/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the batch_update_user_links REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchUpdateUserLinksRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_batch_update_user_links_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/userLinks:batchUpdate", body: "*", matches: [ ["parent", %r{^accounts/[^/]+/?$}, false] ] ) .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/userLinks:batchUpdate", body: "*", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the delete_user_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteUserLinkRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_delete_user_link_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :delete, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^accounts/[^/]+/userLinks/[^/]+/?$}, false] ] ) .with_bindings( uri_method: :delete, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/userLinks/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the batch_delete_user_links REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchDeleteUserLinksRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_batch_delete_user_links_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/userLinks:batchDelete", body: "*", matches: [ ["parent", %r{^accounts/[^/]+/?$}, false] ] ) .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/userLinks:batchDelete", body: "*", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the create_firebase_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateFirebaseLinkRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_create_firebase_link_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/firebaseLinks", body: "firebase_link", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the delete_firebase_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteFirebaseLinkRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_delete_firebase_link_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :delete, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/firebaseLinks/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the list_firebase_links REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListFirebaseLinksRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_list_firebase_links_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{parent}/firebaseLinks", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the get_global_site_tag REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetGlobalSiteTagRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_get_global_site_tag_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/dataStreams/[^/]+/globalSiteTag/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the create_google_ads_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateGoogleAdsLinkRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_create_google_ads_link_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/googleAdsLinks", body: "google_ads_link", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the update_google_ads_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateGoogleAdsLinkRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_update_google_ads_link_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :patch, uri_template: "/v1alpha/{google_ads_link.name}", body: "google_ads_link", matches: [ ["google_ads_link.name", %r{^properties/[^/]+/googleAdsLinks/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the delete_google_ads_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteGoogleAdsLinkRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_delete_google_ads_link_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :delete, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/googleAdsLinks/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the list_google_ads_links REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListGoogleAdsLinksRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_list_google_ads_links_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{parent}/googleAdsLinks", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the get_data_sharing_settings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDataSharingSettingsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_get_data_sharing_settings_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^accounts/[^/]+/dataSharingSettings/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the get_measurement_protocol_secret REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetMeasurementProtocolSecretRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_get_measurement_protocol_secret_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/dataStreams/[^/]+/measurementProtocolSecrets/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the list_measurement_protocol_secrets REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListMeasurementProtocolSecretsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_list_measurement_protocol_secrets_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{parent}/measurementProtocolSecrets", matches: [ ["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the create_measurement_protocol_secret REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateMeasurementProtocolSecretRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_create_measurement_protocol_secret_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/measurementProtocolSecrets", body: "measurement_protocol_secret", matches: [ ["parent", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the delete_measurement_protocol_secret REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteMeasurementProtocolSecretRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_delete_measurement_protocol_secret_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :delete, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/dataStreams/[^/]+/measurementProtocolSecrets/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the update_measurement_protocol_secret REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateMeasurementProtocolSecretRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_update_measurement_protocol_secret_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :patch, uri_template: "/v1alpha/{measurement_protocol_secret.name}", body: "measurement_protocol_secret", matches: [ ["measurement_protocol_secret.name", %r{^properties/[^/]+/dataStreams/[^/]+/measurementProtocolSecrets/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the acknowledge_user_data_collection REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::AcknowledgeUserDataCollectionRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_acknowledge_user_data_collection_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{property}:acknowledgeUserDataCollection", body: "*", matches: [ ["property", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the search_change_history_events REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::SearchChangeHistoryEventsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_search_change_history_events_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{account}:searchChangeHistoryEvents", body: "*", matches: [ ["account", %r{^accounts/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the get_google_signals_settings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetGoogleSignalsSettingsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_get_google_signals_settings_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/googleSignalsSettings/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the update_google_signals_settings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateGoogleSignalsSettingsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_update_google_signals_settings_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :patch, uri_template: "/v1alpha/{google_signals_settings.name}", body: "google_signals_settings", matches: [ ["google_signals_settings.name", %r{^properties/[^/]+/googleSignalsSettings/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the create_conversion_event REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateConversionEventRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_create_conversion_event_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/conversionEvents", body: "conversion_event", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the get_conversion_event REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetConversionEventRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_get_conversion_event_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/conversionEvents/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the delete_conversion_event REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteConversionEventRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_delete_conversion_event_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :delete, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/conversionEvents/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the list_conversion_events REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListConversionEventsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_list_conversion_events_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{parent}/conversionEvents", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the get_display_video360_advertiser_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_get_display_video360_advertiser_link_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/displayVideo360AdvertiserLinks/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the list_display_video360_advertiser_links REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinksRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_list_display_video360_advertiser_links_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{parent}/displayVideo360AdvertiserLinks", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the create_display_video360_advertiser_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_create_display_video360_advertiser_link_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/displayVideo360AdvertiserLinks", body: "display_video_360_advertiser_link", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the delete_display_video360_advertiser_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_delete_display_video360_advertiser_link_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :delete, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/displayVideo360AdvertiserLinks/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the update_display_video360_advertiser_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateDisplayVideo360AdvertiserLinkRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_update_display_video360_advertiser_link_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :patch, uri_template: "/v1alpha/{display_video_360_advertiser_link.name}", body: "display_video_360_advertiser_link", matches: [ ["display_video_360_advertiser_link.name", %r{^properties/[^/]+/displayVideo360AdvertiserLinks/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the get_display_video360_advertiser_link_proposal REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDisplayVideo360AdvertiserLinkProposalRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_get_display_video360_advertiser_link_proposal_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/displayVideo360AdvertiserLinkProposals/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the list_display_video360_advertiser_link_proposals REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListDisplayVideo360AdvertiserLinkProposalsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_list_display_video360_advertiser_link_proposals_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{parent}/displayVideo360AdvertiserLinkProposals", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the create_display_video360_advertiser_link_proposal REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateDisplayVideo360AdvertiserLinkProposalRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_create_display_video360_advertiser_link_proposal_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/displayVideo360AdvertiserLinkProposals", body: "display_video_360_advertiser_link_proposal", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the delete_display_video360_advertiser_link_proposal REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteDisplayVideo360AdvertiserLinkProposalRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_delete_display_video360_advertiser_link_proposal_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :delete, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/displayVideo360AdvertiserLinkProposals/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the approve_display_video360_advertiser_link_proposal REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ApproveDisplayVideo360AdvertiserLinkProposalRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_approve_display_video360_advertiser_link_proposal_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{name}:approve", body: "*", matches: [ ["name", %r{^properties/[^/]+/displayVideo360AdvertiserLinkProposals/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the cancel_display_video360_advertiser_link_proposal REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CancelDisplayVideo360AdvertiserLinkProposalRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_cancel_display_video360_advertiser_link_proposal_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{name}:cancel", body: "*", matches: [ ["name", %r{^properties/[^/]+/displayVideo360AdvertiserLinkProposals/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the create_custom_dimension REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateCustomDimensionRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_create_custom_dimension_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/customDimensions", body: "custom_dimension", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the update_custom_dimension REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateCustomDimensionRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_update_custom_dimension_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :patch, uri_template: "/v1alpha/{custom_dimension.name}", body: "custom_dimension", matches: [ ["custom_dimension.name", %r{^properties/[^/]+/customDimensions/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the list_custom_dimensions REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListCustomDimensionsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_list_custom_dimensions_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{parent}/customDimensions", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the archive_custom_dimension REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ArchiveCustomDimensionRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_archive_custom_dimension_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{name}:archive", body: "*", matches: [ ["name", %r{^properties/[^/]+/customDimensions/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the get_custom_dimension REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetCustomDimensionRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_get_custom_dimension_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/customDimensions/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the create_custom_metric REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateCustomMetricRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_create_custom_metric_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/customMetrics", body: "custom_metric", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the update_custom_metric REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateCustomMetricRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_update_custom_metric_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :patch, uri_template: "/v1alpha/{custom_metric.name}", body: "custom_metric", matches: [ ["custom_metric.name", %r{^properties/[^/]+/customMetrics/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the list_custom_metrics REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListCustomMetricsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_list_custom_metrics_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{parent}/customMetrics", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the archive_custom_metric REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ArchiveCustomMetricRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_archive_custom_metric_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{name}:archive", body: "*", matches: [ ["name", %r{^properties/[^/]+/customMetrics/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the get_custom_metric REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetCustomMetricRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_get_custom_metric_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/customMetrics/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the get_data_retention_settings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDataRetentionSettingsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_get_data_retention_settings_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/dataRetentionSettings/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the update_data_retention_settings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateDataRetentionSettingsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_update_data_retention_settings_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :patch, uri_template: "/v1alpha/{data_retention_settings.name}", body: "data_retention_settings", matches: [ ["data_retention_settings.name", %r{^properties/[^/]+/dataRetentionSettings/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the create_data_stream REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateDataStreamRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_create_data_stream_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/dataStreams", body: "data_stream", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the delete_data_stream REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteDataStreamRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_delete_data_stream_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :delete, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the update_data_stream REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateDataStreamRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_update_data_stream_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :patch, uri_template: "/v1alpha/{data_stream.name}", body: "data_stream", matches: [ ["data_stream.name", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the list_data_streams REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListDataStreamsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_list_data_streams_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{parent}/dataStreams", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the get_data_stream REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetDataStreamRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_get_data_stream_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/dataStreams/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the get_audience REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAudienceRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_get_audience_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/audiences/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the list_audiences REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAudiencesRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_list_audiences_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{parent}/audiences", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the create_audience REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateAudienceRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_create_audience_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/audiences", body: "audience", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the update_audience REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateAudienceRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_update_audience_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :patch, uri_template: "/v1alpha/{audience.name}", body: "audience", matches: [ ["audience.name", %r{^properties/[^/]+/audiences/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the archive_audience REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ArchiveAudienceRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_archive_audience_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{name}:archive", body: "*", matches: [ ["name", %r{^properties/[^/]+/audiences/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the get_search_ads360_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetSearchAds360LinkRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_get_search_ads360_link_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/searchAds360Links/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the list_search_ads360_links REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListSearchAds360LinksRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_list_search_ads360_links_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{parent}/searchAds360Links", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the create_search_ads360_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateSearchAds360LinkRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_create_search_ads360_link_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/searchAds360Links", body: "search_ads_360_link", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the delete_search_ads360_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteSearchAds360LinkRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_delete_search_ads360_link_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :delete, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/searchAds360Links/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the update_search_ads360_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateSearchAds360LinkRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_update_search_ads360_link_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :patch, uri_template: "/v1alpha/{search_ads_360_link.name}", body: "search_ads_360_link", matches: [ ["search_ads_360_link.name", %r{^properties/[^/]+/searchAds360Links/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the get_attribution_settings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAttributionSettingsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_get_attribution_settings_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/attributionSettings/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the update_attribution_settings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateAttributionSettingsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_update_attribution_settings_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :patch, uri_template: "/v1alpha/{attribution_settings.name}", body: "attribution_settings", matches: [ ["attribution_settings.name", %r{^properties/[^/]+/attributionSettings/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the run_access_report REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::RunAccessReportRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_run_access_report_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{entity}:runAccessReport", body: "*", matches: [ ["entity", %r{^properties/[^/]+/?$}, false] ] ) .with_bindings( uri_method: :post, uri_template: "/v1alpha/{entity}:runAccessReport", body: "*", matches: [ ["entity", %r{^accounts/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the create_access_binding REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateAccessBindingRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_create_access_binding_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/accessBindings", body: "access_binding", matches: [ ["parent", %r{^accounts/[^/]+/?$}, false] ] ) .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/accessBindings", body: "access_binding", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the get_access_binding REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetAccessBindingRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_get_access_binding_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^accounts/[^/]+/accessBindings/[^/]+/?$}, false] ] ) .with_bindings( uri_method: :get, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/accessBindings/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the update_access_binding REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateAccessBindingRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_update_access_binding_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :patch, uri_template: "/v1alpha/{access_binding.name}", body: "access_binding", matches: [ ["access_binding.name", %r{^accounts/[^/]+/accessBindings/[^/]+/?$}, false] ] ) .with_bindings( uri_method: :patch, uri_template: "/v1alpha/{access_binding.name}", body: "access_binding", matches: [ ["access_binding.name", %r{^properties/[^/]+/accessBindings/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the delete_access_binding REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteAccessBindingRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_delete_access_binding_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :delete, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^accounts/[^/]+/accessBindings/[^/]+/?$}, false] ] ) .with_bindings( uri_method: :delete, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/accessBindings/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the list_access_bindings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListAccessBindingsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_list_access_bindings_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{parent}/accessBindings", matches: [ ["parent", %r{^accounts/[^/]+/?$}, false] ] ) .with_bindings( uri_method: :get, uri_template: "/v1alpha/{parent}/accessBindings", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the batch_create_access_bindings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchCreateAccessBindingsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_batch_create_access_bindings_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/accessBindings:batchCreate", body: "*", matches: [ ["parent", %r{^accounts/[^/]+/?$}, false] ] ) .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/accessBindings:batchCreate", body: "*", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the batch_get_access_bindings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchGetAccessBindingsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_batch_get_access_bindings_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{parent}/accessBindings:batchGet", matches: [ ["parent", %r{^accounts/[^/]+/?$}, false] ] ) .with_bindings( uri_method: :get, uri_template: "/v1alpha/{parent}/accessBindings:batchGet", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the batch_update_access_bindings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchUpdateAccessBindingsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_batch_update_access_bindings_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/accessBindings:batchUpdate", body: "*", matches: [ ["parent", %r{^accounts/[^/]+/?$}, false] ] ) .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/accessBindings:batchUpdate", body: "*", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the batch_delete_access_bindings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::BatchDeleteAccessBindingsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_batch_delete_access_bindings_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/accessBindings:batchDelete", body: "*", matches: [ ["parent", %r{^accounts/[^/]+/?$}, false] ] ) .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/accessBindings:batchDelete", body: "*", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the get_expanded_data_set REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetExpandedDataSetRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_get_expanded_data_set_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/expandedDataSets/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the list_expanded_data_sets REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListExpandedDataSetsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_list_expanded_data_sets_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{parent}/expandedDataSets", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the create_expanded_data_set REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateExpandedDataSetRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_create_expanded_data_set_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/expandedDataSets", body: "expanded_data_set", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the update_expanded_data_set REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateExpandedDataSetRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_update_expanded_data_set_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :patch, uri_template: "/v1alpha/{expanded_data_set.name}", body: "expanded_data_set", matches: [ ["expanded_data_set.name", %r{^properties/[^/]+/expandedDataSets/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the delete_expanded_data_set REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteExpandedDataSetRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_delete_expanded_data_set_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :delete, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/expandedDataSets/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the get_channel_group REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetChannelGroupRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_get_channel_group_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/channelGroups/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the list_channel_groups REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListChannelGroupsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_list_channel_groups_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{parent}/channelGroups", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the create_channel_group REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateChannelGroupRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_create_channel_group_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/{parent}/channelGroups", body: "channel_group", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the update_channel_group REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateChannelGroupRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_update_channel_group_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :patch, uri_template: "/v1alpha/{channel_group.name}", body: "channel_group", matches: [ ["channel_group.name", %r{^properties/[^/]+/channelGroups/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the delete_channel_group REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteChannelGroupRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_delete_channel_group_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :delete, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/channelGroups/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the set_automated_ga4_configuration_opt_out REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::SetAutomatedGa4ConfigurationOptOutRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_set_automated_ga4_configuration_opt_out_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/properties:setAutomatedGa4ConfigurationOptOut", body: "*", matches: [] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the fetch_automated_ga4_configuration_opt_out REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::FetchAutomatedGa4ConfigurationOptOutRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_fetch_automated_ga4_configuration_opt_out_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/properties:fetchAutomatedGa4ConfigurationOptOut", body: "*", matches: [] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the get_big_query_link REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetBigQueryLinkRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_get_big_query_link_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/bigQueryLinks/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the list_big_query_links REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListBigQueryLinksRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_list_big_query_links_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{parent}/bigQueryLinks", matches: [ ["parent", %r{^properties/[^/]+/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the get_enhanced_measurement_settings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::GetEnhancedMeasurementSettingsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_get_enhanced_measurement_settings_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/{name}", matches: [ ["name", %r{^properties/[^/]+/dataStreams/[^/]+/enhancedMeasurementSettings/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the update_enhanced_measurement_settings REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::UpdateEnhancedMeasurementSettingsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_update_enhanced_measurement_settings_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :patch, uri_template: "/v1alpha/{enhanced_measurement_settings.name}", body: "enhanced_measurement_settings", matches: [ ["enhanced_measurement_settings.name", %r{^properties/[^/]+/dataStreams/[^/]+/enhancedMeasurementSettings/?$}, false] ] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the create_connected_site_tag REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::CreateConnectedSiteTagRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_create_connected_site_tag_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/properties:createConnectedSiteTag", body: "*", matches: [] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the delete_connected_site_tag REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::DeleteConnectedSiteTagRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_delete_connected_site_tag_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/properties:deleteConnectedSiteTag", body: "*", matches: [] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the list_connected_site_tags REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::ListConnectedSiteTagsRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_list_connected_site_tags_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :post, uri_template: "/v1alpha/properties:listConnectedSiteTags", body: "*", matches: [] ) transcoder.transcode request_pb end ## # @private # # GRPC transcoding helper method for the fetch_connected_ga4_property REST call # # @param request_pb [::Google::Analytics::Admin::V1alpha::FetchConnectedGa4PropertyRequest] # A request object representing the call parameters. Required. # @return [Array(String, [String, nil], Hash{String => String})] # Uri, Body, Query string parameters def self.transcode_fetch_connected_ga4_property_request request_pb transcoder = Gapic::Rest::GrpcTranscoder.new .with_bindings( uri_method: :get, uri_template: "/v1alpha/properties:fetchConnectedGa4Property", matches: [] ) transcoder.transcode request_pb end end end end end end end end