google-api-ruby-client/generated/google-apis-analyticsadmin_.../lib/google/apis/analyticsadmin_v1alpha/classes.rb

2188 lines
93 KiB
Ruby
Raw Permalink Normal View History

# Copyright 2020 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
#
# http://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.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module AnalyticsadminV1alpha
# A resource message representing a Google Analytics account.
class GoogleAnalyticsAdminV1alphaAccount
include Google::Apis::Core::Hashable
# Output only. Time when this account was originally created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Output only. Indicates whether this Account is soft-deleted or not. Deleted
# accounts are excluded from List results unless specifically requested.
# Corresponds to the JSON property `deleted`
# @return [Boolean]
attr_accessor :deleted
alias_method :deleted?, :deleted
# Required. Human-readable display name for this account.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Output only. Resource name of this account. Format: accounts/`account` Example:
# "accounts/100"
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
feat: Automated regeneration of analyticsadmin v1alpha client (#2368) This PR was generated using Autosynth. :rainbow: <details><summary>Log from Synthtool</summary> ``` 2021-01-13 01:34:25,715 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py. On branch autosynth-analyticsadmin-v1alpha nothing to commit, working tree clean 2021-01-13 01:34:25,783 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth analyticsadmin v1alpha DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth analyticsadmin v1alpha git clean -df bundle install Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`. Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Fetching rake 11.3.0 Installing rake 11.3.0 Fetching concurrent-ruby 1.1.7 Installing concurrent-ruby 1.1.7 Fetching i18n 1.8.7 Installing i18n 1.8.7 Fetching minitest 5.14.3 Installing minitest 5.14.3 Fetching tzinfo 2.0.4 Installing tzinfo 2.0.4 Fetching zeitwerk 2.4.2 Installing zeitwerk 2.4.2 Fetching activesupport 6.1.1 Installing activesupport 6.1.1 Fetching public_suffix 4.0.6 Installing public_suffix 4.0.6 Fetching addressable 2.7.0 Installing addressable 2.7.0 Fetching ast 2.4.1 Installing ast 2.4.1 Using bundler 2.1.4 Fetching byebug 11.1.3 Installing byebug 11.1.3 with native extensions Fetching coderay 1.1.3 Installing coderay 1.1.3 Fetching json 2.5.1 Installing json 2.5.1 with native extensions Fetching docile 1.3.4 Installing docile 1.3.4 Fetching simplecov-html 0.10.2 Installing simplecov-html 0.10.2 Fetching simplecov 0.16.1 Installing simplecov 0.16.1 Using sync 0.5.0 Fetching tins 1.28.0 Installing tins 1.28.0 Fetching term-ansicolor 1.7.1 Installing term-ansicolor 1.7.1 Fetching thor 0.20.3 Installing thor 0.20.3 Fetching coveralls 0.8.23 Installing coveralls 0.8.23 Fetching rexml 3.2.4 Installing rexml 3.2.4 Fetching crack 0.4.5 Installing crack 0.4.5 Fetching declarative 0.0.20 Installing declarative 0.0.20 Fetching declarative-option 0.1.0 Installing declarative-option 0.1.0 Fetching diff-lcs 1.4.4 Installing diff-lcs 1.4.4 Fetching dotenv 2.7.6 Installing dotenv 2.7.6 Fetching fakefs 0.20.1 Installing fakefs 0.20.1 Fetching faraday-net_http 1.0.1 Installing faraday-net_http 1.0.1 Fetching multipart-post 2.1.1 Installing multipart-post 2.1.1 Fetching ruby2_keywords 0.0.2 Installing ruby2_keywords 0.0.2 Fetching faraday 1.3.0 Installing faraday 1.3.0 Fetching gems 1.2.0 Installing gems 1.2.0 Fetching github-markup 1.7.0 Installing github-markup 1.7.0 Fetching jwt 2.2.2 Installing jwt 2.2.2 Fetching memoist 0.16.2 Installing memoist 0.16.2 Fetching multi_json 1.15.0 Installing multi_json 1.15.0 Fetching os 0.9.6 Installing os 0.9.6 Fetching signet 0.14.0 Installing signet 0.14.0 Fetching googleauth 0.14.0 Installing googleauth 0.14.0 Fetching httpclient 2.8.3 Installing httpclient 2.8.3 Fetching mini_mime 1.0.2 Installing mini_mime 1.0.2 Fetching uber 0.1.0 Installing uber 0.1.0 Fetching representable 3.0.4 Installing representable 3.0.4 Fetching retriable 3.1.2 Installing retriable 3.1.2 Fetching google-apis-core 0.2.0 Installing google-apis-core 0.2.0 Fetching google-apis-discovery_v1 0.1.0 Installing google-apis-discovery_v1 0.1.0 Using google-apis-generator 0.1.1 from source at `.` Fetching google-id-token 1.4.2 Installing google-id-token 1.4.2 Fetching hashdiff 1.0.1 Installing hashdiff 1.0.1 Fetching mime-types-data 3.2020.1104 Installing mime-types-data 3.2020.1104 Fetching mime-types 3.3.1 Installing mime-types 3.3.1 Fetching multi_xml 0.6.0 Installing multi_xml 0.6.0 Fetching httparty 0.18.1 Installing httparty 0.18.1 Fetching rspec-support 3.10.1 Installing rspec-support 3.10.1 Fetching rspec-core 3.10.1 Installing rspec-core 3.10.1 Fetching rspec-expectations 3.10.1 Installing rspec-expectations 3.10.1 Fetching rspec-mocks 3.10.1 Installing rspec-mocks 3.10.1 Fetching rspec 3.10.0 Installing rspec 3.10.0 Fetching json_spec 1.1.5 Installing json_spec 1.1.5 Fetching launchy 2.5.0 Installing launchy 2.5.0 Fetching little-plugger 1.1.4 Installing little-plugger 1.1.4 Fetching logging 2.3.0 Installing logging 2.3.0 Fetching method_source 1.0.0 Installing method_source 1.0.0 Fetching opencensus 0.5.0 Installing opencensus 0.5.0 Fetching parallel 1.20.1 Installing parallel 1.20.1 Fetching parser 2.7.2.0 Installing parser 2.7.2.0 Fetching powerpack 0.1.3 Installing powerpack 0.1.3 Fetching pry 0.13.1 Installing pry 0.13.1 Fetching pry-byebug 3.9.0 Installing pry-byebug 3.9.0 Fetching yard 0.9.26 Installing yard 0.9.26 Fetching pry-doc 0.13.5 Installing pry-doc 0.13.5 Fetching rainbow 2.2.2 Installing rainbow 2.2.2 with native extensions Fetching redcarpet 3.5.1 Installing redcarpet 3.5.1 with native extensions Fetching redis 3.3.5 Installing redis 3.3.5 Fetching rmail 1.1.4 Installing rmail 1.1.4 Fetching ruby-progressbar 1.11.0 Installing ruby-progressbar 1.11.0 Fetching unicode-display_width 1.7.0 Installing unicode-display_width 1.7.0 Fetching rubocop 0.49.1 Installing rubocop 0.49.1 Fetching webmock 2.3.2 Installing webmock 2.3.2 Bundle complete! 25 Gemfile dependencies, 81 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. Post-install message from i18n: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale. But that may break your application. If you are upgrading your Rails application from an older version of Rails: Please check your Rails app for 'config.i18n.fallbacks = true'. If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be 'config.i18n.fallbacks = [I18n.default_locale]'. If not, fallbacks will be broken in your app by I18n 1.1.x. If you are starting a NEW Rails application, you can ignore this notice. For more info see: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0 Post-install message from httparty: When you HTTParty, you must party hard! echo a | bundle exec bin/generate-api gen /workspace/generated --api=analyticsadmin.v1alpha --names=/workspace/api_names.yaml --names-out=/workspace/api_names_out.yaml --spot-check Loading analyticsadmin, version v1alpha from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/analyticsadmin.v1alpha.json conflict google-apis-analyticsadmin_v1alpha/lib/google/apis/analyticsadmin_v1alpha/classes.rb <v1alpha/classes.rb? (enter "h" for help) [Ynaqdhm] a force google-apis-analyticsadmin_v1alpha/lib/google/apis/analyticsadmin_v1alpha/classes.rb conflict google-apis-analyticsadmin_v1alpha/lib/google/apis/analyticsadmin_v1alpha/representations.rb force google-apis-analyticsadmin_v1alpha/lib/google/apis/analyticsadmin_v1alpha/representations.rb conflict google-apis-analyticsadmin_v1alpha/lib/google/apis/analyticsadmin_v1alpha/gem_version.rb force google-apis-analyticsadmin_v1alpha/lib/google/apis/analyticsadmin_v1alpha/gem_version.rb conflict google-apis-analyticsadmin_v1alpha/CHANGELOG.md force google-apis-analyticsadmin_v1alpha/CHANGELOG.md Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`. Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Fetching rake 13.0.3 Installing rake 13.0.3 Using public_suffix 4.0.6 Using addressable 2.7.0 Using bundler 2.1.4 Using declarative 0.0.20 Using declarative-option 0.1.0 Using diff-lcs 1.4.4 Using faraday-net_http 1.0.1 Using multipart-post 2.1.1 Using ruby2_keywords 0.0.2 Using faraday 1.3.0 Using jwt 2.2.2 Using memoist 0.16.2 Using multi_json 1.15.0 Fetching os 1.1.1 Installing os 1.1.1 Using signet 0.14.0 Using googleauth 0.14.0 Using httpclient 2.8.3 Using mini_mime 1.0.2 Using uber 0.1.0 Using representable 3.0.4 Using retriable 3.1.2 Using rexml 3.2.4 Using google-apis-core 0.2.0 Using google-apis-analyticsadmin_v1alpha 0.2.0 from source at `.` Using opencensus 0.5.0 Using redcarpet 3.5.1 Using rspec-support 3.10.1 Using rspec-core 3.10.1 Using rspec-expectations 3.10.1 Using rspec-mocks 3.10.1 Using rspec 3.10.0 Using yard 0.9.26 Bundle complete! 8 Gemfile dependencies, 33 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. /root/.rbenv/versions/2.6.6/bin/ruby -I/root/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rspec-core-3.10.1/lib:/root/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rspec-support-3.10.1/lib /root/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rspec-core-3.10.1/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb Google::Apis::AnalyticsadminV1alpha should load Finished in 0.3003 seconds (files took 0.10477 seconds to load) 1 example, 0 failures Files: 4 Modules: 3 ( 1 undocumented) Classes: 38 ( 0 undocumented) Constants: 8 ( 0 undocumented) Attributes: 63 ( 0 undocumented) Methods: 133 ( 0 undocumented) 99.59% documented google-apis-analyticsadmin_v1alpha 0.2.0 built to pkg/google-apis-analyticsadmin_v1alpha-0.2.0.gem. conflict /workspace/api_names_out.yaml force /workspace/api_names_out.yaml 2021-01-13 01:34:59,089 synthtool [DEBUG] > Wrote metadata to generated/google-apis-analyticsadmin_v1alpha/synth.metadata. DEBUG:synthtool:Wrote metadata to generated/google-apis-analyticsadmin_v1alpha/synth.metadata. ``` </details> Full log will be available here: https://source.cloud.google.com/results/invocations/2c9a7f94-8490-460d-bb8a-c9c25cb6fec9/targets - [ ] To automatically regenerate this PR, check this box.
2021-01-13 09:50:03 +00:00
# Country of business. Must be a Unicode CLDR region code.
# Corresponds to the JSON property `regionCode`
# @return [String]
attr_accessor :region_code
# Output only. Time when account payload fields were last updated.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@deleted = args[:deleted] if args.key?(:deleted)
@display_name = args[:display_name] if args.key?(:display_name)
@name = args[:name] if args.key?(:name)
feat: Automated regeneration of analyticsadmin v1alpha client (#2368) This PR was generated using Autosynth. :rainbow: <details><summary>Log from Synthtool</summary> ``` 2021-01-13 01:34:25,715 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py. On branch autosynth-analyticsadmin-v1alpha nothing to commit, working tree clean 2021-01-13 01:34:25,783 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth analyticsadmin v1alpha DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth analyticsadmin v1alpha git clean -df bundle install Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`. Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Fetching rake 11.3.0 Installing rake 11.3.0 Fetching concurrent-ruby 1.1.7 Installing concurrent-ruby 1.1.7 Fetching i18n 1.8.7 Installing i18n 1.8.7 Fetching minitest 5.14.3 Installing minitest 5.14.3 Fetching tzinfo 2.0.4 Installing tzinfo 2.0.4 Fetching zeitwerk 2.4.2 Installing zeitwerk 2.4.2 Fetching activesupport 6.1.1 Installing activesupport 6.1.1 Fetching public_suffix 4.0.6 Installing public_suffix 4.0.6 Fetching addressable 2.7.0 Installing addressable 2.7.0 Fetching ast 2.4.1 Installing ast 2.4.1 Using bundler 2.1.4 Fetching byebug 11.1.3 Installing byebug 11.1.3 with native extensions Fetching coderay 1.1.3 Installing coderay 1.1.3 Fetching json 2.5.1 Installing json 2.5.1 with native extensions Fetching docile 1.3.4 Installing docile 1.3.4 Fetching simplecov-html 0.10.2 Installing simplecov-html 0.10.2 Fetching simplecov 0.16.1 Installing simplecov 0.16.1 Using sync 0.5.0 Fetching tins 1.28.0 Installing tins 1.28.0 Fetching term-ansicolor 1.7.1 Installing term-ansicolor 1.7.1 Fetching thor 0.20.3 Installing thor 0.20.3 Fetching coveralls 0.8.23 Installing coveralls 0.8.23 Fetching rexml 3.2.4 Installing rexml 3.2.4 Fetching crack 0.4.5 Installing crack 0.4.5 Fetching declarative 0.0.20 Installing declarative 0.0.20 Fetching declarative-option 0.1.0 Installing declarative-option 0.1.0 Fetching diff-lcs 1.4.4 Installing diff-lcs 1.4.4 Fetching dotenv 2.7.6 Installing dotenv 2.7.6 Fetching fakefs 0.20.1 Installing fakefs 0.20.1 Fetching faraday-net_http 1.0.1 Installing faraday-net_http 1.0.1 Fetching multipart-post 2.1.1 Installing multipart-post 2.1.1 Fetching ruby2_keywords 0.0.2 Installing ruby2_keywords 0.0.2 Fetching faraday 1.3.0 Installing faraday 1.3.0 Fetching gems 1.2.0 Installing gems 1.2.0 Fetching github-markup 1.7.0 Installing github-markup 1.7.0 Fetching jwt 2.2.2 Installing jwt 2.2.2 Fetching memoist 0.16.2 Installing memoist 0.16.2 Fetching multi_json 1.15.0 Installing multi_json 1.15.0 Fetching os 0.9.6 Installing os 0.9.6 Fetching signet 0.14.0 Installing signet 0.14.0 Fetching googleauth 0.14.0 Installing googleauth 0.14.0 Fetching httpclient 2.8.3 Installing httpclient 2.8.3 Fetching mini_mime 1.0.2 Installing mini_mime 1.0.2 Fetching uber 0.1.0 Installing uber 0.1.0 Fetching representable 3.0.4 Installing representable 3.0.4 Fetching retriable 3.1.2 Installing retriable 3.1.2 Fetching google-apis-core 0.2.0 Installing google-apis-core 0.2.0 Fetching google-apis-discovery_v1 0.1.0 Installing google-apis-discovery_v1 0.1.0 Using google-apis-generator 0.1.1 from source at `.` Fetching google-id-token 1.4.2 Installing google-id-token 1.4.2 Fetching hashdiff 1.0.1 Installing hashdiff 1.0.1 Fetching mime-types-data 3.2020.1104 Installing mime-types-data 3.2020.1104 Fetching mime-types 3.3.1 Installing mime-types 3.3.1 Fetching multi_xml 0.6.0 Installing multi_xml 0.6.0 Fetching httparty 0.18.1 Installing httparty 0.18.1 Fetching rspec-support 3.10.1 Installing rspec-support 3.10.1 Fetching rspec-core 3.10.1 Installing rspec-core 3.10.1 Fetching rspec-expectations 3.10.1 Installing rspec-expectations 3.10.1 Fetching rspec-mocks 3.10.1 Installing rspec-mocks 3.10.1 Fetching rspec 3.10.0 Installing rspec 3.10.0 Fetching json_spec 1.1.5 Installing json_spec 1.1.5 Fetching launchy 2.5.0 Installing launchy 2.5.0 Fetching little-plugger 1.1.4 Installing little-plugger 1.1.4 Fetching logging 2.3.0 Installing logging 2.3.0 Fetching method_source 1.0.0 Installing method_source 1.0.0 Fetching opencensus 0.5.0 Installing opencensus 0.5.0 Fetching parallel 1.20.1 Installing parallel 1.20.1 Fetching parser 2.7.2.0 Installing parser 2.7.2.0 Fetching powerpack 0.1.3 Installing powerpack 0.1.3 Fetching pry 0.13.1 Installing pry 0.13.1 Fetching pry-byebug 3.9.0 Installing pry-byebug 3.9.0 Fetching yard 0.9.26 Installing yard 0.9.26 Fetching pry-doc 0.13.5 Installing pry-doc 0.13.5 Fetching rainbow 2.2.2 Installing rainbow 2.2.2 with native extensions Fetching redcarpet 3.5.1 Installing redcarpet 3.5.1 with native extensions Fetching redis 3.3.5 Installing redis 3.3.5 Fetching rmail 1.1.4 Installing rmail 1.1.4 Fetching ruby-progressbar 1.11.0 Installing ruby-progressbar 1.11.0 Fetching unicode-display_width 1.7.0 Installing unicode-display_width 1.7.0 Fetching rubocop 0.49.1 Installing rubocop 0.49.1 Fetching webmock 2.3.2 Installing webmock 2.3.2 Bundle complete! 25 Gemfile dependencies, 81 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. Post-install message from i18n: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale. But that may break your application. If you are upgrading your Rails application from an older version of Rails: Please check your Rails app for 'config.i18n.fallbacks = true'. If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be 'config.i18n.fallbacks = [I18n.default_locale]'. If not, fallbacks will be broken in your app by I18n 1.1.x. If you are starting a NEW Rails application, you can ignore this notice. For more info see: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0 Post-install message from httparty: When you HTTParty, you must party hard! echo a | bundle exec bin/generate-api gen /workspace/generated --api=analyticsadmin.v1alpha --names=/workspace/api_names.yaml --names-out=/workspace/api_names_out.yaml --spot-check Loading analyticsadmin, version v1alpha from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/analyticsadmin.v1alpha.json conflict google-apis-analyticsadmin_v1alpha/lib/google/apis/analyticsadmin_v1alpha/classes.rb <v1alpha/classes.rb? (enter "h" for help) [Ynaqdhm] a force google-apis-analyticsadmin_v1alpha/lib/google/apis/analyticsadmin_v1alpha/classes.rb conflict google-apis-analyticsadmin_v1alpha/lib/google/apis/analyticsadmin_v1alpha/representations.rb force google-apis-analyticsadmin_v1alpha/lib/google/apis/analyticsadmin_v1alpha/representations.rb conflict google-apis-analyticsadmin_v1alpha/lib/google/apis/analyticsadmin_v1alpha/gem_version.rb force google-apis-analyticsadmin_v1alpha/lib/google/apis/analyticsadmin_v1alpha/gem_version.rb conflict google-apis-analyticsadmin_v1alpha/CHANGELOG.md force google-apis-analyticsadmin_v1alpha/CHANGELOG.md Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`. Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Fetching rake 13.0.3 Installing rake 13.0.3 Using public_suffix 4.0.6 Using addressable 2.7.0 Using bundler 2.1.4 Using declarative 0.0.20 Using declarative-option 0.1.0 Using diff-lcs 1.4.4 Using faraday-net_http 1.0.1 Using multipart-post 2.1.1 Using ruby2_keywords 0.0.2 Using faraday 1.3.0 Using jwt 2.2.2 Using memoist 0.16.2 Using multi_json 1.15.0 Fetching os 1.1.1 Installing os 1.1.1 Using signet 0.14.0 Using googleauth 0.14.0 Using httpclient 2.8.3 Using mini_mime 1.0.2 Using uber 0.1.0 Using representable 3.0.4 Using retriable 3.1.2 Using rexml 3.2.4 Using google-apis-core 0.2.0 Using google-apis-analyticsadmin_v1alpha 0.2.0 from source at `.` Using opencensus 0.5.0 Using redcarpet 3.5.1 Using rspec-support 3.10.1 Using rspec-core 3.10.1 Using rspec-expectations 3.10.1 Using rspec-mocks 3.10.1 Using rspec 3.10.0 Using yard 0.9.26 Bundle complete! 8 Gemfile dependencies, 33 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. /root/.rbenv/versions/2.6.6/bin/ruby -I/root/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rspec-core-3.10.1/lib:/root/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rspec-support-3.10.1/lib /root/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rspec-core-3.10.1/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb Google::Apis::AnalyticsadminV1alpha should load Finished in 0.3003 seconds (files took 0.10477 seconds to load) 1 example, 0 failures Files: 4 Modules: 3 ( 1 undocumented) Classes: 38 ( 0 undocumented) Constants: 8 ( 0 undocumented) Attributes: 63 ( 0 undocumented) Methods: 133 ( 0 undocumented) 99.59% documented google-apis-analyticsadmin_v1alpha 0.2.0 built to pkg/google-apis-analyticsadmin_v1alpha-0.2.0.gem. conflict /workspace/api_names_out.yaml force /workspace/api_names_out.yaml 2021-01-13 01:34:59,089 synthtool [DEBUG] > Wrote metadata to generated/google-apis-analyticsadmin_v1alpha/synth.metadata. DEBUG:synthtool:Wrote metadata to generated/google-apis-analyticsadmin_v1alpha/synth.metadata. ``` </details> Full log will be available here: https://source.cloud.google.com/results/invocations/2c9a7f94-8490-460d-bb8a-c9c25cb6fec9/targets - [ ] To automatically regenerate this PR, check this box.
2021-01-13 09:50:03 +00:00
@region_code = args[:region_code] if args.key?(:region_code)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# A virtual resource representing an overview of an account and all its child
# GA4 properties.
class GoogleAnalyticsAdminV1alphaAccountSummary
include Google::Apis::Core::Hashable
# Resource name of account referred to by this account summary Format: accounts/`
# account_id` Example: "accounts/1000"
# Corresponds to the JSON property `account`
# @return [String]
attr_accessor :account
# Display name for the account referred to in this account summary.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Resource name for this account summary. Format: accountSummaries/`account_id`
# Example: "accountSummaries/1000"
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# List of summaries for child accounts of this account.
# Corresponds to the JSON property `propertySummaries`
# @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaPropertySummary>]
attr_accessor :property_summaries
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@account = args[:account] if args.key?(:account)
@display_name = args[:display_name] if args.key?(:display_name)
@name = args[:name] if args.key?(:name)
@property_summaries = args[:property_summaries] if args.key?(:property_summaries)
end
end
# Request message for AcknowledgeUserDataCollection RPC.
class GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest
include Google::Apis::Core::Hashable
# Required. An acknowledgement that the caller of this method understands the
# terms of user data collection. This field must contain the exact value: "I
# acknowledge that I have the necessary privacy disclosures and rights from my
# end users for the collection and processing of their data, including the
# association of such data with the visitation information Google Analytics
# collects from my site and/or app property."
# Corresponds to the JSON property `acknowledgement`
# @return [String]
attr_accessor :acknowledgement
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@acknowledgement = args[:acknowledgement] if args.key?(:acknowledgement)
end
end
# Response message for AcknowledgeUserDataCollection RPC.
class GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Request message for ApproveDisplayVideo360AdvertiserLinkProposal RPC.
class GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Response message for ApproveDisplayVideo360AdvertiserLinkProposal RPC.
class GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse
include Google::Apis::Core::Hashable
# A link between a GA4 property and a Display & Video 360 advertiser.
# Corresponds to the JSON property `displayVideo360AdvertiserLink`
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink]
attr_accessor :display_video360_advertiser_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@display_video360_advertiser_link = args[:display_video360_advertiser_link] if args.key?(:display_video360_advertiser_link)
end
end
# Request message for ArchiveCustomDimension RPC.
class GoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Request message for ArchiveCustomMetric RPC.
class GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Read-only resource used to summarize a principal's effective roles.
class GoogleAnalyticsAdminV1alphaAuditUserLink
include Google::Apis::Core::Hashable
# Roles directly assigned to this user for this entity. Format: predefinedRoles/
# viewer Excludes roles that are inherited from an account (if this is for a
# property), group, or organization admin role.
# Corresponds to the JSON property `directRoles`
# @return [Array<String>]
attr_accessor :direct_roles
# Union of all permissions a user has at this account or property (includes
# direct permissions, group-inherited permissions, etc.). Format:
# predefinedRoles/viewer
# Corresponds to the JSON property `effectiveRoles`
# @return [Array<String>]
attr_accessor :effective_roles
# Email address of the linked user
# Corresponds to the JSON property `emailAddress`
# @return [String]
attr_accessor :email_address
# Example format: properties/1234/userLinks/5678
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@direct_roles = args[:direct_roles] if args.key?(:direct_roles)
@effective_roles = args[:effective_roles] if args.key?(:effective_roles)
@email_address = args[:email_address] if args.key?(:email_address)
@name = args[:name] if args.key?(:name)
end
end
# Request message for AuditUserLinks RPC.
class GoogleAnalyticsAdminV1alphaAuditUserLinksRequest
include Google::Apis::Core::Hashable
# The maximum number of user links to return. The service may return fewer than
# this value. If unspecified, at most 1000 user links will be returned. The
# maximum value is 5000; values above 5000 will be coerced to 5000.
# Corresponds to the JSON property `pageSize`
# @return [Fixnum]
attr_accessor :page_size
# A page token, received from a previous `AuditUserLinks` call. Provide this to
# retrieve the subsequent page. When paginating, all other parameters provided
# to `AuditUserLinks` must match the call that provided the page token.
# Corresponds to the JSON property `pageToken`
# @return [String]
attr_accessor :page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@page_size = args[:page_size] if args.key?(:page_size)
@page_token = args[:page_token] if args.key?(:page_token)
end
end
# Response message for AuditUserLinks RPC.
class GoogleAnalyticsAdminV1alphaAuditUserLinksResponse
include Google::Apis::Core::Hashable
# A token, which can be sent as `page_token` to retrieve the next page. If this
# field is omitted, there are no subsequent pages.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# List of AuditUserLinks. These will be ordered stably, but in an arbitrary
# order.
# Corresponds to the JSON property `userLinks`
# @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLink>]
attr_accessor :user_links
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@user_links = args[:user_links] if args.key?(:user_links)
end
end
# Request message for BatchCreateUserLinks RPC.
class GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest
include Google::Apis::Core::Hashable
# Optional. If set, then email the new users notifying them that they've been
# granted permissions to the resource. Regardless of whether this is set or not,
# notify_new_user field inside each individual request is ignored.
# Corresponds to the JSON property `notifyNewUsers`
# @return [Boolean]
attr_accessor :notify_new_users
alias_method :notify_new_users?, :notify_new_users
# Required. The requests specifying the user links to create. A maximum of 1000
# user links can be created in a batch.
# Corresponds to the JSON property `requests`
# @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCreateUserLinkRequest>]
attr_accessor :requests
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@notify_new_users = args[:notify_new_users] if args.key?(:notify_new_users)
@requests = args[:requests] if args.key?(:requests)
end
end
# Response message for BatchCreateUserLinks RPC.
class GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse
include Google::Apis::Core::Hashable
# The user links created.
# Corresponds to the JSON property `userLinks`
# @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink>]
attr_accessor :user_links
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@user_links = args[:user_links] if args.key?(:user_links)
end
end
# Request message for BatchDeleteUserLinks RPC.
class GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest
include Google::Apis::Core::Hashable
# Required. The requests specifying the user links to update. A maximum of 1000
# user links can be updated in a batch.
# Corresponds to the JSON property `requests`
# @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest>]
attr_accessor :requests
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@requests = args[:requests] if args.key?(:requests)
end
end
# Response message for BatchGetUserLinks RPC.
class GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse
include Google::Apis::Core::Hashable
# The requested user links.
# Corresponds to the JSON property `userLinks`
# @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink>]
attr_accessor :user_links
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@user_links = args[:user_links] if args.key?(:user_links)
end
end
# Request message for BatchUpdateUserLinks RPC.
class GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest
include Google::Apis::Core::Hashable
# Required. The requests specifying the user links to update. A maximum of 1000
# user links can be updated in a batch.
# Corresponds to the JSON property `requests`
# @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest>]
attr_accessor :requests
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@requests = args[:requests] if args.key?(:requests)
end
end
# Response message for BatchUpdateUserLinks RPC.
class GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse
include Google::Apis::Core::Hashable
# The user links updated.
# Corresponds to the JSON property `userLinks`
# @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink>]
attr_accessor :user_links
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@user_links = args[:user_links] if args.key?(:user_links)
end
end
# Request message for CancelDisplayVideo360AdvertiserLinkProposal RPC.
class GoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# A description of a change to a single Google Analytics resource.
class GoogleAnalyticsAdminV1alphaChangeHistoryChange
include Google::Apis::Core::Hashable
# The type of action that changed this resource.
# Corresponds to the JSON property `action`
# @return [String]
attr_accessor :action
# Resource name of the resource whose changes are described by this entry.
# Corresponds to the JSON property `resource`
# @return [String]
attr_accessor :resource
# A snapshot of a resource as before or after the result of a change in change
# history.
# Corresponds to the JSON property `resourceAfterChange`
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource]
attr_accessor :resource_after_change
# A snapshot of a resource as before or after the result of a change in change
# history.
# Corresponds to the JSON property `resourceBeforeChange`
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource]
attr_accessor :resource_before_change
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@action = args[:action] if args.key?(:action)
@resource = args[:resource] if args.key?(:resource)
@resource_after_change = args[:resource_after_change] if args.key?(:resource_after_change)
@resource_before_change = args[:resource_before_change] if args.key?(:resource_before_change)
end
end
# A snapshot of a resource as before or after the result of a change in change
# history.
class GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource
include Google::Apis::Core::Hashable
# A resource message representing a Google Analytics account.
# Corresponds to the JSON property `account`
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount]
attr_accessor :account
# A conversion event in a Google Analytics property.
# Corresponds to the JSON property `conversionEvent`
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEvent]
attr_accessor :conversion_event
# A definition for a CustomDimension.
# Corresponds to the JSON property `customDimension`
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomDimension]
attr_accessor :custom_dimension
# A definition for a custom metric.
# Corresponds to the JSON property `customMetric`
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric]
attr_accessor :custom_metric
# Settings values for data retention. This is a singleton resource.
# Corresponds to the JSON property `dataRetentionSettings`
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataRetentionSettings]
attr_accessor :data_retention_settings
# A resource message representing a data stream.
# Corresponds to the JSON property `dataStream`
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataStream]
attr_accessor :data_stream
# A link between a GA4 property and a Display & Video 360 advertiser.
# Corresponds to the JSON property `displayVideo360AdvertiserLink`
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink]
attr_accessor :display_video360_advertiser_link
# A proposal for a link between a GA4 property and a Display & Video 360
# advertiser. A proposal is converted to a DisplayVideo360AdvertiserLink once
# approved. Google Analytics admins approve inbound proposals while Display &
# Video 360 admins approve outbound proposals.
# Corresponds to the JSON property `displayVideo360AdvertiserLinkProposal`
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal]
attr_accessor :display_video360_advertiser_link_proposal
# A link between a GA4 property and a Firebase project.
# Corresponds to the JSON property `firebaseLink`
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink]
attr_accessor :firebase_link
# A link between a GA4 property and a Google Ads account.
# Corresponds to the JSON property `googleAdsLink`
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink]
attr_accessor :google_ads_link
# Settings values for Google Signals. This is a singleton resource.
# Corresponds to the JSON property `googleSignalsSettings`
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleSignalsSettings]
attr_accessor :google_signals_settings
# A secret value used for sending hits to Measurement Protocol.
# Corresponds to the JSON property `measurementProtocolSecret`
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret]
attr_accessor :measurement_protocol_secret
# A resource message representing a Google Analytics GA4 property.
# Corresponds to the JSON property `property`
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty]
attr_accessor :property
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@account = args[:account] if args.key?(:account)
@conversion_event = args[:conversion_event] if args.key?(:conversion_event)
@custom_dimension = args[:custom_dimension] if args.key?(:custom_dimension)
@custom_metric = args[:custom_metric] if args.key?(:custom_metric)
@data_retention_settings = args[:data_retention_settings] if args.key?(:data_retention_settings)
@data_stream = args[:data_stream] if args.key?(:data_stream)
@display_video360_advertiser_link = args[:display_video360_advertiser_link] if args.key?(:display_video360_advertiser_link)
@display_video360_advertiser_link_proposal = args[:display_video360_advertiser_link_proposal] if args.key?(:display_video360_advertiser_link_proposal)
@firebase_link = args[:firebase_link] if args.key?(:firebase_link)
@google_ads_link = args[:google_ads_link] if args.key?(:google_ads_link)
@google_signals_settings = args[:google_signals_settings] if args.key?(:google_signals_settings)
@measurement_protocol_secret = args[:measurement_protocol_secret] if args.key?(:measurement_protocol_secret)
@property = args[:property] if args.key?(:property)
end
end
# A set of changes within a Google Analytics account or its child properties
# that resulted from the same cause. Common causes would be updates made in the
# Google Analytics UI, changes from customer support, or automatic Google
# Analytics system changes.
class GoogleAnalyticsAdminV1alphaChangeHistoryEvent
include Google::Apis::Core::Hashable
# The type of actor that made this change.
# Corresponds to the JSON property `actorType`
# @return [String]
attr_accessor :actor_type
# Time when change was made.
# Corresponds to the JSON property `changeTime`
# @return [String]
attr_accessor :change_time
# A list of changes made in this change history event that fit the filters
# specified in SearchChangeHistoryEventsRequest.
# Corresponds to the JSON property `changes`
# @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaChangeHistoryChange>]
attr_accessor :changes
# If true, then the list of changes returned was filtered, and does not
# represent all changes that occurred in this event.
# Corresponds to the JSON property `changesFiltered`
# @return [Boolean]
attr_accessor :changes_filtered
alias_method :changes_filtered?, :changes_filtered
# ID of this change history event. This ID is unique across Google Analytics.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# Email address of the Google account that made the change. This will be a valid
# email address if the actor field is set to USER, and empty otherwise. Google
# accounts that have been deleted will cause an error.
# Corresponds to the JSON property `userActorEmail`
# @return [String]
attr_accessor :user_actor_email
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@actor_type = args[:actor_type] if args.key?(:actor_type)
@change_time = args[:change_time] if args.key?(:change_time)
@changes = args[:changes] if args.key?(:changes)
@changes_filtered = args[:changes_filtered] if args.key?(:changes_filtered)
@id = args[:id] if args.key?(:id)
@user_actor_email = args[:user_actor_email] if args.key?(:user_actor_email)
end
end
# A conversion event in a Google Analytics property.
class GoogleAnalyticsAdminV1alphaConversionEvent
include Google::Apis::Core::Hashable
# Output only. Time when this conversion event was created in the property.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Output only. If set to true, this conversion event refers to a custom event.
# If set to false, this conversion event refers to a default event in GA.
# Default events typically have special meaning in GA. Default events are
# usually created for you by the GA system, but in some cases can be created by
# property admins. Custom events count towards the maximum number of custom
# conversion events that may be created per property.
# Corresponds to the JSON property `custom`
# @return [Boolean]
attr_accessor :custom
alias_method :custom?, :custom
# Output only. If set, this event can currently be deleted via
# DeleteConversionEvent.
# Corresponds to the JSON property `deletable`
# @return [Boolean]
attr_accessor :deletable
alias_method :deletable?, :deletable
# Immutable. The event name for this conversion event. Examples: 'click', '
# purchase'
# Corresponds to the JSON property `eventName`
# @return [String]
attr_accessor :event_name
# Output only. Resource name of this conversion event. Format: properties/`
# property`/conversionEvents/`conversion_event`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@custom = args[:custom] if args.key?(:custom)
@deletable = args[:deletable] if args.key?(:deletable)
@event_name = args[:event_name] if args.key?(:event_name)
@name = args[:name] if args.key?(:name)
end
end
# Request message for CreateUserLink RPC. Users can have multiple email
# addresses associated with their Google account, and one of these email
# addresses is the "primary" email address. Any of the email addresses
# associated with a Google account may be used for a new UserLink, but the
# returned UserLink will always contain the "primary" email address. As a result,
# the input and output email address for this request may differ.
class GoogleAnalyticsAdminV1alphaCreateUserLinkRequest
include Google::Apis::Core::Hashable
# Optional. If set, then email the new user notifying them that they've been
# granted permissions to the resource.
# Corresponds to the JSON property `notifyNewUser`
# @return [Boolean]
attr_accessor :notify_new_user
alias_method :notify_new_user?, :notify_new_user
feat: Automated regeneration of analyticsadmin v1alpha client (#2385) This PR was generated using Autosynth. :rainbow: <details><summary>Log from Synthtool</summary> ``` 2021-01-14 01:34:47,344 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py. On branch autosynth-analyticsadmin-v1alpha nothing to commit, working tree clean 2021-01-14 01:34:47,421 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth analyticsadmin v1alpha DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth analyticsadmin v1alpha git clean -df bundle install Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`. Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Fetching rake 11.3.0 Installing rake 11.3.0 Fetching concurrent-ruby 1.1.7 Installing concurrent-ruby 1.1.7 Fetching i18n 1.8.7 Installing i18n 1.8.7 Fetching minitest 5.14.3 Installing minitest 5.14.3 Fetching tzinfo 2.0.4 Installing tzinfo 2.0.4 Fetching zeitwerk 2.4.2 Installing zeitwerk 2.4.2 Fetching activesupport 6.1.1 Installing activesupport 6.1.1 Fetching public_suffix 4.0.6 Installing public_suffix 4.0.6 Fetching addressable 2.7.0 Installing addressable 2.7.0 Fetching ast 2.4.1 Installing ast 2.4.1 Using bundler 2.1.4 Fetching byebug 11.1.3 Installing byebug 11.1.3 with native extensions Fetching coderay 1.1.3 Installing coderay 1.1.3 Fetching json 2.5.1 Installing json 2.5.1 with native extensions Fetching docile 1.3.5 Installing docile 1.3.5 Fetching simplecov-html 0.10.2 Installing simplecov-html 0.10.2 Fetching simplecov 0.16.1 Installing simplecov 0.16.1 Using sync 0.5.0 Fetching tins 1.28.0 Installing tins 1.28.0 Fetching term-ansicolor 1.7.1 Installing term-ansicolor 1.7.1 Fetching thor 0.20.3 Installing thor 0.20.3 Fetching coveralls 0.8.23 Installing coveralls 0.8.23 Fetching rexml 3.2.4 Installing rexml 3.2.4 Fetching crack 0.4.5 Installing crack 0.4.5 Fetching declarative 0.0.20 Installing declarative 0.0.20 Fetching declarative-option 0.1.0 Installing declarative-option 0.1.0 Fetching diff-lcs 1.4.4 Installing diff-lcs 1.4.4 Fetching dotenv 2.7.6 Installing dotenv 2.7.6 Fetching fakefs 0.20.1 Installing fakefs 0.20.1 Fetching faraday-net_http 1.0.1 Installing faraday-net_http 1.0.1 Fetching multipart-post 2.1.1 Installing multipart-post 2.1.1 Fetching ruby2_keywords 0.0.2 Installing ruby2_keywords 0.0.2 Fetching faraday 1.3.0 Installing faraday 1.3.0 Fetching gems 1.2.0 Installing gems 1.2.0 Fetching github-markup 1.7.0 Installing github-markup 1.7.0 Fetching jwt 2.2.2 Installing jwt 2.2.2 Fetching memoist 0.16.2 Installing memoist 0.16.2 Fetching multi_json 1.15.0 Installing multi_json 1.15.0 Fetching os 0.9.6 Installing os 0.9.6 Fetching signet 0.14.0 Installing signet 0.14.0 Fetching googleauth 0.14.0 Installing googleauth 0.14.0 Fetching httpclient 2.8.3 Installing httpclient 2.8.3 Fetching mini_mime 1.0.2 Installing mini_mime 1.0.2 Fetching uber 0.1.0 Installing uber 0.1.0 Fetching representable 3.0.4 Installing representable 3.0.4 Fetching retriable 3.1.2 Installing retriable 3.1.2 Fetching google-apis-core 0.2.0 Installing google-apis-core 0.2.0 Fetching google-apis-discovery_v1 0.1.0 Installing google-apis-discovery_v1 0.1.0 Using google-apis-generator 0.1.1 from source at `.` Fetching google-id-token 1.4.2 Installing google-id-token 1.4.2 Fetching hashdiff 1.0.1 Installing hashdiff 1.0.1 Fetching mime-types-data 3.2020.1104 Installing mime-types-data 3.2020.1104 Fetching mime-types 3.3.1 Installing mime-types 3.3.1 Fetching multi_xml 0.6.0 Installing multi_xml 0.6.0 Fetching httparty 0.18.1 Installing httparty 0.18.1 Fetching rspec-support 3.10.1 Installing rspec-support 3.10.1 Fetching rspec-core 3.10.1 Installing rspec-core 3.10.1 Fetching rspec-expectations 3.10.1 Installing rspec-expectations 3.10.1 Fetching rspec-mocks 3.10.1 Installing rspec-mocks 3.10.1 Fetching rspec 3.10.0 Installing rspec 3.10.0 Fetching json_spec 1.1.5 Installing json_spec 1.1.5 Fetching launchy 2.5.0 Installing launchy 2.5.0 Fetching little-plugger 1.1.4 Installing little-plugger 1.1.4 Fetching logging 2.3.0 Installing logging 2.3.0 Fetching method_source 1.0.0 Installing method_source 1.0.0 Fetching opencensus 0.5.0 Installing opencensus 0.5.0 Fetching parallel 1.20.1 Installing parallel 1.20.1 Fetching parser 2.7.2.0 Installing parser 2.7.2.0 Fetching powerpack 0.1.3 Installing powerpack 0.1.3 Fetching pry 0.13.1 Installing pry 0.13.1 Fetching pry-byebug 3.9.0 Installing pry-byebug 3.9.0 Fetching yard 0.9.26 Installing yard 0.9.26 Fetching pry-doc 0.13.5 Installing pry-doc 0.13.5 Fetching rainbow 2.2.2 Installing rainbow 2.2.2 with native extensions Fetching redcarpet 3.5.1 Installing redcarpet 3.5.1 with native extensions Fetching redis 3.3.5 Installing redis 3.3.5 Fetching rmail 1.1.4 Installing rmail 1.1.4 Fetching ruby-progressbar 1.11.0 Installing ruby-progressbar 1.11.0 Fetching unicode-display_width 1.7.0 Installing unicode-display_width 1.7.0 Fetching rubocop 0.49.1 Installing rubocop 0.49.1 Fetching webmock 2.3.2 Installing webmock 2.3.2 Bundle complete! 25 Gemfile dependencies, 81 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. Post-install message from i18n: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale. But that may break your application. If you are upgrading your Rails application from an older version of Rails: Please check your Rails app for 'config.i18n.fallbacks = true'. If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be 'config.i18n.fallbacks = [I18n.default_locale]'. If not, fallbacks will be broken in your app by I18n 1.1.x. If you are starting a NEW Rails application, you can ignore this notice. For more info see: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0 Post-install message from httparty: When you HTTParty, you must party hard! echo a | bundle exec bin/generate-api gen /workspace/generated --api=analyticsadmin.v1alpha --names=/workspace/api_names.yaml --names-out=/workspace/api_names_out.yaml --spot-check Loading analyticsadmin, version v1alpha from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/analyticsadmin.v1alpha.json conflict google-apis-analyticsadmin_v1alpha/lib/google/apis/analyticsadmin_v1alpha/classes.rb <v1alpha/classes.rb? (enter "h" for help) [Ynaqdhm] a force google-apis-analyticsadmin_v1alpha/lib/google/apis/analyticsadmin_v1alpha/classes.rb conflict google-apis-analyticsadmin_v1alpha/lib/google/apis/analyticsadmin_v1alpha/representations.rb force google-apis-analyticsadmin_v1alpha/lib/google/apis/analyticsadmin_v1alpha/representations.rb conflict google-apis-analyticsadmin_v1alpha/lib/google/apis/analyticsadmin_v1alpha/gem_version.rb force google-apis-analyticsadmin_v1alpha/lib/google/apis/analyticsadmin_v1alpha/gem_version.rb conflict google-apis-analyticsadmin_v1alpha/CHANGELOG.md force google-apis-analyticsadmin_v1alpha/CHANGELOG.md Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`. Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Fetching rake 13.0.3 Installing rake 13.0.3 Using public_suffix 4.0.6 Using addressable 2.7.0 Using bundler 2.1.4 Using declarative 0.0.20 Using declarative-option 0.1.0 Using diff-lcs 1.4.4 Using faraday-net_http 1.0.1 Using multipart-post 2.1.1 Using ruby2_keywords 0.0.2 Using faraday 1.3.0 Using jwt 2.2.2 Using memoist 0.16.2 Using multi_json 1.15.0 Fetching os 1.1.1 Installing os 1.1.1 Using signet 0.14.0 Using googleauth 0.14.0 Using httpclient 2.8.3 Using mini_mime 1.0.2 Using uber 0.1.0 Using representable 3.0.4 Using retriable 3.1.2 Using rexml 3.2.4 Using google-apis-core 0.2.0 Using google-apis-analyticsadmin_v1alpha 0.2.0 from source at `.` Using opencensus 0.5.0 Using redcarpet 3.5.1 Using rspec-support 3.10.1 Using rspec-core 3.10.1 Using rspec-expectations 3.10.1 Using rspec-mocks 3.10.1 Using rspec 3.10.0 Using yard 0.9.26 Bundle complete! 8 Gemfile dependencies, 33 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. /root/.rbenv/versions/2.6.6/bin/ruby -I/root/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rspec-core-3.10.1/lib:/root/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rspec-support-3.10.1/lib /root/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rspec-core-3.10.1/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb Google::Apis::AnalyticsadminV1alpha should load Finished in 0.31888 seconds (files took 0.10883 seconds to load) 1 example, 0 failures Files: 4 Modules: 3 ( 1 undocumented) Classes: 38 ( 0 undocumented) Constants: 8 ( 0 undocumented) Attributes: 63 ( 0 undocumented) Methods: 133 ( 0 undocumented) 99.59% documented google-apis-analyticsadmin_v1alpha 0.2.0 built to pkg/google-apis-analyticsadmin_v1alpha-0.2.0.gem. conflict /workspace/api_names_out.yaml force /workspace/api_names_out.yaml 2021-01-14 01:35:22,873 synthtool [DEBUG] > Wrote metadata to generated/google-apis-analyticsadmin_v1alpha/synth.metadata. DEBUG:synthtool:Wrote metadata to generated/google-apis-analyticsadmin_v1alpha/synth.metadata. ``` </details> Full log will be available here: https://source.cloud.google.com/results/invocations/957dffe6-e74a-4600-8ce6-6f1542963007/targets - [ ] To automatically regenerate this PR, check this box.
2021-01-14 09:48:02 +00:00
# Required. Example format: accounts/1234
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
# A resource message representing a user's permissions on an Account or Property
# resource.
# Corresponds to the JSON property `userLink`
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink]
attr_accessor :user_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@notify_new_user = args[:notify_new_user] if args.key?(:notify_new_user)
@parent = args[:parent] if args.key?(:parent)
@user_link = args[:user_link] if args.key?(:user_link)
end
end
# A definition for a CustomDimension.
class GoogleAnalyticsAdminV1alphaCustomDimension
include Google::Apis::Core::Hashable
# Optional. Description for this custom dimension. Max length of 150 characters.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Optional. If set to true, sets this dimension as NPA and excludes it from ads
# personalization. This is currently only supported by user-scoped custom
# dimensions.
# Corresponds to the JSON property `disallowAdsPersonalization`
# @return [Boolean]
attr_accessor :disallow_ads_personalization
alias_method :disallow_ads_personalization?, :disallow_ads_personalization
# Required. Display name for this custom dimension as shown in the Analytics UI.
# Max length of 82 characters, alphanumeric plus space and underscore starting
# with a letter. Legacy system-generated display names may contain square
# brackets, but updates to this field will never permit square brackets.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Output only. Resource name for this CustomDimension resource. Format:
# properties/`property`/customDimensions/`customDimension`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Required. Immutable. Tagging parameter name for this custom dimension. If this
# is a user-scoped dimension, then this is the user property name. If this is an
# event-scoped dimension, then this is the event parameter name. May only
# contain alphanumeric and underscore characters, starting with a letter. Max
# length of 24 characters for user-scoped dimensions, 40 characters for event-
# scoped dimensions.
# Corresponds to the JSON property `parameterName`
# @return [String]
attr_accessor :parameter_name
# Required. Immutable. The scope of this dimension.
# Corresponds to the JSON property `scope`
# @return [String]
attr_accessor :scope
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@disallow_ads_personalization = args[:disallow_ads_personalization] if args.key?(:disallow_ads_personalization)
@display_name = args[:display_name] if args.key?(:display_name)
@name = args[:name] if args.key?(:name)
@parameter_name = args[:parameter_name] if args.key?(:parameter_name)
@scope = args[:scope] if args.key?(:scope)
end
end
# A definition for a custom metric.
class GoogleAnalyticsAdminV1alphaCustomMetric
include Google::Apis::Core::Hashable
# Optional. Description for this custom dimension. Max length of 150 characters.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Required. Display name for this custom metric as shown in the Analytics UI.
# Max length of 82 characters, alphanumeric plus space and underscore starting
# with a letter. Legacy system-generated display names may contain square
# brackets, but updates to this field will never permit square brackets.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Required. The type for the custom metric's value.
# Corresponds to the JSON property `measurementUnit`
# @return [String]
attr_accessor :measurement_unit
# Output only. Resource name for this CustomMetric resource. Format: properties/`
# property`/customMetrics/`customMetric`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Required. Immutable. Tagging name for this custom metric. If this is an event-
# scoped metric, then this is the event parameter name. May only contain
# alphanumeric and underscore charactes, starting with a letter. Max length of
# 40 characters for event-scoped metrics.
# Corresponds to the JSON property `parameterName`
# @return [String]
attr_accessor :parameter_name
# Optional. Types of restricted data that this metric may contain. Required for
# metrics with CURRENCY measurement unit. Must be empty for metrics with a non-
# CURRENCY measurement unit.
# Corresponds to the JSON property `restrictedMetricType`
# @return [Array<String>]
attr_accessor :restricted_metric_type
# Required. Immutable. The scope of this custom metric.
# Corresponds to the JSON property `scope`
# @return [String]
attr_accessor :scope
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@description = args[:description] if args.key?(:description)
@display_name = args[:display_name] if args.key?(:display_name)
@measurement_unit = args[:measurement_unit] if args.key?(:measurement_unit)
@name = args[:name] if args.key?(:name)
@parameter_name = args[:parameter_name] if args.key?(:parameter_name)
@restricted_metric_type = args[:restricted_metric_type] if args.key?(:restricted_metric_type)
@scope = args[:scope] if args.key?(:scope)
end
end
# Settings values for data retention. This is a singleton resource.
class GoogleAnalyticsAdminV1alphaDataRetentionSettings
include Google::Apis::Core::Hashable
# The length of time that event-level data is retained.
# Corresponds to the JSON property `eventDataRetention`
# @return [String]
attr_accessor :event_data_retention
# Output only. Resource name for this DataRetentionSetting resource. Format:
# properties/`property`/dataRetentionSettings
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# If true, reset the retention period for the user identifier with every event
# from that user.
# Corresponds to the JSON property `resetUserDataOnNewActivity`
# @return [Boolean]
attr_accessor :reset_user_data_on_new_activity
alias_method :reset_user_data_on_new_activity?, :reset_user_data_on_new_activity
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@event_data_retention = args[:event_data_retention] if args.key?(:event_data_retention)
@name = args[:name] if args.key?(:name)
@reset_user_data_on_new_activity = args[:reset_user_data_on_new_activity] if args.key?(:reset_user_data_on_new_activity)
end
end
# A resource message representing data sharing settings of a Google Analytics
# account.
class GoogleAnalyticsAdminV1alphaDataSharingSettings
include Google::Apis::Core::Hashable
# Output only. Resource name. Format: accounts/`account`/dataSharingSettings
# Example: "accounts/1000/dataSharingSettings"
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Allows any of Google sales to access the data in order to suggest
# configuration changes to improve results.
# Corresponds to the JSON property `sharingWithGoogleAnySalesEnabled`
# @return [Boolean]
attr_accessor :sharing_with_google_any_sales_enabled
alias_method :sharing_with_google_any_sales_enabled?, :sharing_with_google_any_sales_enabled
# Allows Google sales teams that are assigned to the customer to access the data
# in order to suggest configuration changes to improve results. Sales team
# restrictions still apply when enabled.
# Corresponds to the JSON property `sharingWithGoogleAssignedSalesEnabled`
# @return [Boolean]
attr_accessor :sharing_with_google_assigned_sales_enabled
alias_method :sharing_with_google_assigned_sales_enabled?, :sharing_with_google_assigned_sales_enabled
# Allows Google to use the data to improve other Google products or services.
# Corresponds to the JSON property `sharingWithGoogleProductsEnabled`
# @return [Boolean]
attr_accessor :sharing_with_google_products_enabled
alias_method :sharing_with_google_products_enabled?, :sharing_with_google_products_enabled
# Allows Google support to access the data in order to help troubleshoot issues.
# Corresponds to the JSON property `sharingWithGoogleSupportEnabled`
# @return [Boolean]
attr_accessor :sharing_with_google_support_enabled
alias_method :sharing_with_google_support_enabled?, :sharing_with_google_support_enabled
# Allows Google to share the data anonymously in aggregate form with others.
# Corresponds to the JSON property `sharingWithOthersEnabled`
# @return [Boolean]
attr_accessor :sharing_with_others_enabled
alias_method :sharing_with_others_enabled?, :sharing_with_others_enabled
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@sharing_with_google_any_sales_enabled = args[:sharing_with_google_any_sales_enabled] if args.key?(:sharing_with_google_any_sales_enabled)
@sharing_with_google_assigned_sales_enabled = args[:sharing_with_google_assigned_sales_enabled] if args.key?(:sharing_with_google_assigned_sales_enabled)
@sharing_with_google_products_enabled = args[:sharing_with_google_products_enabled] if args.key?(:sharing_with_google_products_enabled)
@sharing_with_google_support_enabled = args[:sharing_with_google_support_enabled] if args.key?(:sharing_with_google_support_enabled)
@sharing_with_others_enabled = args[:sharing_with_others_enabled] if args.key?(:sharing_with_others_enabled)
end
end
# A resource message representing a data stream.
class GoogleAnalyticsAdminV1alphaDataStream
include Google::Apis::Core::Hashable
# Data specific to Android app streams.
# Corresponds to the JSON property `androidAppStreamData`
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData]
attr_accessor :android_app_stream_data
# Output only. Time when this stream was originally created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Human-readable display name for the Data Stream. Required for web data streams.
# The max allowed display name length is 255 UTF-16 code units.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Data specific to iOS app streams.
# Corresponds to the JSON property `iosAppStreamData`
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData]
attr_accessor :ios_app_stream_data
# Output only. Resource name of this Data Stream. Format: properties/`
# property_id`/dataStreams/`stream_id` Example: "properties/1000/dataStreams/
# 2000"
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Required. Immutable. The type of this DataStream resource.
# Corresponds to the JSON property `type`
# @return [String]
attr_accessor :type
# Output only. Time when stream payload fields were last updated.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
# Data specific to web streams.
# Corresponds to the JSON property `webStreamData`
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataStreamWebStreamData]
attr_accessor :web_stream_data
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@android_app_stream_data = args[:android_app_stream_data] if args.key?(:android_app_stream_data)
@create_time = args[:create_time] if args.key?(:create_time)
@display_name = args[:display_name] if args.key?(:display_name)
@ios_app_stream_data = args[:ios_app_stream_data] if args.key?(:ios_app_stream_data)
@name = args[:name] if args.key?(:name)
@type = args[:type] if args.key?(:type)
@update_time = args[:update_time] if args.key?(:update_time)
@web_stream_data = args[:web_stream_data] if args.key?(:web_stream_data)
end
end
# Data specific to Android app streams.
class GoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData
include Google::Apis::Core::Hashable
# Output only. ID of the corresponding Android app in Firebase, if any. This ID
# can change if the Android app is deleted and recreated.
# Corresponds to the JSON property `firebaseAppId`
# @return [String]
attr_accessor :firebase_app_id
# Immutable. The package name for the app being measured. Example: "com.example.
# myandroidapp"
# Corresponds to the JSON property `packageName`
# @return [String]
attr_accessor :package_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@firebase_app_id = args[:firebase_app_id] if args.key?(:firebase_app_id)
@package_name = args[:package_name] if args.key?(:package_name)
end
end
# Data specific to iOS app streams.
class GoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData
include Google::Apis::Core::Hashable
# Required. Immutable. The Apple App Store Bundle ID for the app Example: "com.
# example.myiosapp"
# Corresponds to the JSON property `bundleId`
# @return [String]
attr_accessor :bundle_id
# Output only. ID of the corresponding iOS app in Firebase, if any. This ID can
# change if the iOS app is deleted and recreated.
# Corresponds to the JSON property `firebaseAppId`
# @return [String]
attr_accessor :firebase_app_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bundle_id = args[:bundle_id] if args.key?(:bundle_id)
@firebase_app_id = args[:firebase_app_id] if args.key?(:firebase_app_id)
end
end
# Data specific to web streams.
class GoogleAnalyticsAdminV1alphaDataStreamWebStreamData
include Google::Apis::Core::Hashable
# Immutable. Domain name of the web app being measured, or empty. Example: "http:
# //www.google.com", "https://www.google.com"
# Corresponds to the JSON property `defaultUri`
# @return [String]
attr_accessor :default_uri
# Output only. ID of the corresponding web app in Firebase, if any. This ID can
# change if the web app is deleted and recreated.
# Corresponds to the JSON property `firebaseAppId`
# @return [String]
attr_accessor :firebase_app_id
# Output only. Analytics "Measurement ID", without the "G-" prefix. Example: "G-
# 1A2BCD345E" would just be "1A2BCD345E"
# Corresponds to the JSON property `measurementId`
# @return [String]
attr_accessor :measurement_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@default_uri = args[:default_uri] if args.key?(:default_uri)
@firebase_app_id = args[:firebase_app_id] if args.key?(:firebase_app_id)
@measurement_id = args[:measurement_id] if args.key?(:measurement_id)
end
end
# Request message for DeleteUserLink RPC.
class GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest
include Google::Apis::Core::Hashable
# Required. Example format: accounts/1234/userLinks/5678
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
end
end
# A link between a GA4 property and a Display & Video 360 advertiser.
class GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink
include Google::Apis::Core::Hashable
# Enables personalized advertising features with this integration. If this field
# is not set on create/update, it will be defaulted to true.
# Corresponds to the JSON property `adsPersonalizationEnabled`
# @return [Boolean]
attr_accessor :ads_personalization_enabled
alias_method :ads_personalization_enabled?, :ads_personalization_enabled
# Output only. The display name of the Display & Video 360 Advertiser.
# Corresponds to the JSON property `advertiserDisplayName`
# @return [String]
attr_accessor :advertiser_display_name
# Immutable. The Display & Video 360 Advertiser's advertiser ID.
# Corresponds to the JSON property `advertiserId`
# @return [String]
attr_accessor :advertiser_id
# Immutable. Enables the import of campaign data from Display & Video 360 into
# the GA4 property. After link creation, this can only be updated from the
# Display & Video 360 product. If this field is not set on create, it will be
# defaulted to true.
# Corresponds to the JSON property `campaignDataSharingEnabled`
# @return [Boolean]
attr_accessor :campaign_data_sharing_enabled
alias_method :campaign_data_sharing_enabled?, :campaign_data_sharing_enabled
# Immutable. Enables the import of cost data from Display & Video 360 into the
# GA4 property. This can only be enabled if campaign_data_sharing_enabled is
# enabled. After link creation, this can only be updated from the Display &
# Video 360 product. If this field is not set on create, it will be defaulted to
# true.
# Corresponds to the JSON property `costDataSharingEnabled`
# @return [Boolean]
attr_accessor :cost_data_sharing_enabled
alias_method :cost_data_sharing_enabled?, :cost_data_sharing_enabled
# Output only. The resource name for this DisplayVideo360AdvertiserLink resource.
# Format: properties/`propertyId`/displayVideo360AdvertiserLinks/`linkId` Note:
# linkId is not the Display & Video 360 Advertiser ID
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ads_personalization_enabled = args[:ads_personalization_enabled] if args.key?(:ads_personalization_enabled)
@advertiser_display_name = args[:advertiser_display_name] if args.key?(:advertiser_display_name)
@advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
@campaign_data_sharing_enabled = args[:campaign_data_sharing_enabled] if args.key?(:campaign_data_sharing_enabled)
@cost_data_sharing_enabled = args[:cost_data_sharing_enabled] if args.key?(:cost_data_sharing_enabled)
@name = args[:name] if args.key?(:name)
end
end
# A proposal for a link between a GA4 property and a Display & Video 360
# advertiser. A proposal is converted to a DisplayVideo360AdvertiserLink once
# approved. Google Analytics admins approve inbound proposals while Display &
# Video 360 admins approve outbound proposals.
class GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal
include Google::Apis::Core::Hashable
# Immutable. Enables personalized advertising features with this integration. If
# this field is not set on create, it will be defaulted to true.
# Corresponds to the JSON property `adsPersonalizationEnabled`
# @return [Boolean]
attr_accessor :ads_personalization_enabled
alias_method :ads_personalization_enabled?, :ads_personalization_enabled
# Output only. The display name of the Display & Video Advertiser. Only
# populated for proposals that originated from Display & Video 360.
# Corresponds to the JSON property `advertiserDisplayName`
# @return [String]
attr_accessor :advertiser_display_name
# Immutable. The Display & Video 360 Advertiser's advertiser ID.
# Corresponds to the JSON property `advertiserId`
# @return [String]
attr_accessor :advertiser_id
# Immutable. Enables the import of campaign data from Display & Video 360. If
# this field is not set on create, it will be defaulted to true.
# Corresponds to the JSON property `campaignDataSharingEnabled`
# @return [Boolean]
attr_accessor :campaign_data_sharing_enabled
alias_method :campaign_data_sharing_enabled?, :campaign_data_sharing_enabled
# Immutable. Enables the import of cost data from Display & Video 360. This can
# only be enabled if campaign_data_sharing_enabled is enabled. If this field is
# not set on create, it will be defaulted to true.
# Corresponds to the JSON property `costDataSharingEnabled`
# @return [Boolean]
attr_accessor :cost_data_sharing_enabled
alias_method :cost_data_sharing_enabled?, :cost_data_sharing_enabled
# Status information for a link proposal.
# Corresponds to the JSON property `linkProposalStatusDetails`
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails]
attr_accessor :link_proposal_status_details
# Output only. The resource name for this DisplayVideo360AdvertiserLinkProposal
# resource. Format: properties/`propertyId`/
# displayVideo360AdvertiserLinkProposals/`proposalId` Note: proposalId is not
# the Display & Video 360 Advertiser ID
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Input only. On a proposal being sent to Display & Video 360, this field must
# be set to the email address of an admin on the target advertiser. This is used
# to verify that the Google Analytics admin is aware of at least one admin on
# the Display & Video 360 Advertiser. This does not restrict approval of the
# proposal to a single user. Any admin on the Display & Video 360 Advertiser may
# approve the proposal.
# Corresponds to the JSON property `validationEmail`
# @return [String]
attr_accessor :validation_email
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ads_personalization_enabled = args[:ads_personalization_enabled] if args.key?(:ads_personalization_enabled)
@advertiser_display_name = args[:advertiser_display_name] if args.key?(:advertiser_display_name)
@advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id)
@campaign_data_sharing_enabled = args[:campaign_data_sharing_enabled] if args.key?(:campaign_data_sharing_enabled)
@cost_data_sharing_enabled = args[:cost_data_sharing_enabled] if args.key?(:cost_data_sharing_enabled)
@link_proposal_status_details = args[:link_proposal_status_details] if args.key?(:link_proposal_status_details)
@name = args[:name] if args.key?(:name)
@validation_email = args[:validation_email] if args.key?(:validation_email)
end
end
# A link between a GA4 property and a Firebase project.
class GoogleAnalyticsAdminV1alphaFirebaseLink
include Google::Apis::Core::Hashable
# Output only. Time when this FirebaseLink was originally created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Output only. Example format: properties/1234/firebaseLinks/5678
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Immutable. Firebase project resource name. When creating a FirebaseLink, you
# may provide this resource name using either a project number or project ID.
# Once this resource has been created, returned FirebaseLinks will always have a
# project_name that contains a project number. Format: 'projects/`project number`
# ' Example: 'projects/1234'
# Corresponds to the JSON property `project`
# @return [String]
attr_accessor :project
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@create_time = args[:create_time] if args.key?(:create_time)
@name = args[:name] if args.key?(:name)
@project = args[:project] if args.key?(:project)
end
end
# Read-only resource with the tag for sending data from a website to a
# DataStream. Only present for web DataStream resources.
class GoogleAnalyticsAdminV1alphaGlobalSiteTag
include Google::Apis::Core::Hashable
# Output only. Resource name for this GlobalSiteTag resource. Format: properties/
# `property_id`/dataStreams/`stream_id`/globalSiteTag Example: "properties/123/
# dataStreams/456/globalSiteTag"
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Immutable. JavaScript code snippet to be pasted as the first item into the
# head tag of every webpage to measure.
# Corresponds to the JSON property `snippet`
# @return [String]
attr_accessor :snippet
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
@snippet = args[:snippet] if args.key?(:snippet)
end
end
# A link between a GA4 property and a Google Ads account.
class GoogleAnalyticsAdminV1alphaGoogleAdsLink
include Google::Apis::Core::Hashable
# Enable personalized advertising features with this integration. Automatically
# publish my Google Analytics audience lists and Google Analytics remarketing
# events/parameters to the linked Google Ads account. If this field is not set
# on create/update, it will be defaulted to true.
# Corresponds to the JSON property `adsPersonalizationEnabled`
# @return [Boolean]
attr_accessor :ads_personalization_enabled
alias_method :ads_personalization_enabled?, :ads_personalization_enabled
# Output only. If true, this link is for a Google Ads manager account.
# Corresponds to the JSON property `canManageClients`
# @return [Boolean]
attr_accessor :can_manage_clients
alias_method :can_manage_clients?, :can_manage_clients
# Output only. Time when this link was originally created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# Output only. Email address of the user that created the link. An empty string
# will be returned if the email address can't be retrieved.
# Corresponds to the JSON property `creatorEmailAddress`
# @return [String]
attr_accessor :creator_email_address
# Immutable. Google Ads customer ID.
# Corresponds to the JSON property `customerId`
# @return [String]
attr_accessor :customer_id
# Output only. Format: properties/`propertyId`/googleAdsLinks/`googleAdsLinkId`
# Note: googleAdsLinkId is not the Google Ads customer ID.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. Time when this link was last updated.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@ads_personalization_enabled = args[:ads_personalization_enabled] if args.key?(:ads_personalization_enabled)
@can_manage_clients = args[:can_manage_clients] if args.key?(:can_manage_clients)
@create_time = args[:create_time] if args.key?(:create_time)
@creator_email_address = args[:creator_email_address] if args.key?(:creator_email_address)
@customer_id = args[:customer_id] if args.key?(:customer_id)
@name = args[:name] if args.key?(:name)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# Settings values for Google Signals. This is a singleton resource.
class GoogleAnalyticsAdminV1alphaGoogleSignalsSettings
include Google::Apis::Core::Hashable
# Output only. Terms of Service acceptance.
# Corresponds to the JSON property `consent`
# @return [String]
attr_accessor :consent
# Output only. Resource name of this setting. Format: properties/`property_id`/
# googleSignalsSettings Example: "properties/1000/googleSignalsSettings"
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Status of this setting.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@consent = args[:consent] if args.key?(:consent)
@name = args[:name] if args.key?(:name)
@state = args[:state] if args.key?(:state)
end
end
# Status information for a link proposal.
class GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails
include Google::Apis::Core::Hashable
# Output only. The source of this proposal.
# Corresponds to the JSON property `linkProposalInitiatingProduct`
# @return [String]
attr_accessor :link_proposal_initiating_product
# Output only. The state of this proposal.
# Corresponds to the JSON property `linkProposalState`
# @return [String]
attr_accessor :link_proposal_state
# Output only. The email address of the user that proposed this linkage.
# Corresponds to the JSON property `requestorEmail`
# @return [String]
attr_accessor :requestor_email
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@link_proposal_initiating_product = args[:link_proposal_initiating_product] if args.key?(:link_proposal_initiating_product)
@link_proposal_state = args[:link_proposal_state] if args.key?(:link_proposal_state)
@requestor_email = args[:requestor_email] if args.key?(:requestor_email)
end
end
# Response message for ListAccountSummaries RPC.
class GoogleAnalyticsAdminV1alphaListAccountSummariesResponse
include Google::Apis::Core::Hashable
# Account summaries of all accounts the caller has access to.
# Corresponds to the JSON property `accountSummaries`
# @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccountSummary>]
attr_accessor :account_summaries
# A token, which can be sent as `page_token` to retrieve the next page. If this
# field is omitted, there are no subsequent pages.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@account_summaries = args[:account_summaries] if args.key?(:account_summaries)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Request message for ListAccounts RPC.
class GoogleAnalyticsAdminV1alphaListAccountsResponse
include Google::Apis::Core::Hashable
# Results that were accessible to the caller.
# Corresponds to the JSON property `accounts`
# @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount>]
attr_accessor :accounts
# A token, which can be sent as `page_token` to retrieve the next page. If this
# field is omitted, there are no subsequent pages.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@accounts = args[:accounts] if args.key?(:accounts)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response message for ListConversionEvents RPC.
class GoogleAnalyticsAdminV1alphaListConversionEventsResponse
include Google::Apis::Core::Hashable
# The requested conversion events
# Corresponds to the JSON property `conversionEvents`
# @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaConversionEvent>]
attr_accessor :conversion_events
# A token, which can be sent as `page_token` to retrieve the next page. If this
# field is omitted, there are no subsequent pages.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@conversion_events = args[:conversion_events] if args.key?(:conversion_events)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response message for ListCustomDimensions RPC.
class GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse
include Google::Apis::Core::Hashable
# List of CustomDimensions.
# Corresponds to the JSON property `customDimensions`
# @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomDimension>]
attr_accessor :custom_dimensions
# A token, which can be sent as `page_token` to retrieve the next page. If this
# field is omitted, there are no subsequent pages.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@custom_dimensions = args[:custom_dimensions] if args.key?(:custom_dimensions)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response message for ListCustomMetrics RPC.
class GoogleAnalyticsAdminV1alphaListCustomMetricsResponse
include Google::Apis::Core::Hashable
# List of CustomMetrics.
# Corresponds to the JSON property `customMetrics`
# @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCustomMetric>]
attr_accessor :custom_metrics
# A token, which can be sent as `page_token` to retrieve the next page. If this
# field is omitted, there are no subsequent pages.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@custom_metrics = args[:custom_metrics] if args.key?(:custom_metrics)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response message for ListDataStreams RPC.
class GoogleAnalyticsAdminV1alphaListDataStreamsResponse
include Google::Apis::Core::Hashable
# List of DataStreams.
# Corresponds to the JSON property `dataStreams`
# @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataStream>]
attr_accessor :data_streams
# A token, which can be sent as `page_token` to retrieve the next page. If this
# field is omitted, there are no subsequent pages.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@data_streams = args[:data_streams] if args.key?(:data_streams)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response message for ListDisplayVideo360AdvertiserLinkProposals RPC.
class GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse
include Google::Apis::Core::Hashable
# List of DisplayVideo360AdvertiserLinkProposals.
# Corresponds to the JSON property `displayVideo360AdvertiserLinkProposals`
# @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal>]
attr_accessor :display_video360_advertiser_link_proposals
# A token, which can be sent as `page_token` to retrieve the next page. If this
# field is omitted, there are no subsequent pages.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@display_video360_advertiser_link_proposals = args[:display_video360_advertiser_link_proposals] if args.key?(:display_video360_advertiser_link_proposals)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response message for ListDisplayVideo360AdvertiserLinks RPC.
class GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse
include Google::Apis::Core::Hashable
# List of DisplayVideo360AdvertiserLinks.
# Corresponds to the JSON property `displayVideo360AdvertiserLinks`
# @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink>]
attr_accessor :display_video360_advertiser_links
# A token, which can be sent as `page_token` to retrieve the next page. If this
# field is omitted, there are no subsequent pages.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@display_video360_advertiser_links = args[:display_video360_advertiser_links] if args.key?(:display_video360_advertiser_links)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response message for ListFirebaseLinks RPC
class GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse
include Google::Apis::Core::Hashable
# List of FirebaseLinks. This will have at most one value.
# Corresponds to the JSON property `firebaseLinks`
# @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink>]
attr_accessor :firebase_links
# A token, which can be sent as `page_token` to retrieve the next page. If this
# field is omitted, there are no subsequent pages. Currently, Google Analytics
# supports only one FirebaseLink per property, so this will never be populated.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@firebase_links = args[:firebase_links] if args.key?(:firebase_links)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response message for ListGoogleAdsLinks RPC.
class GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse
include Google::Apis::Core::Hashable
# List of GoogleAdsLinks.
# Corresponds to the JSON property `googleAdsLinks`
# @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink>]
attr_accessor :google_ads_links
# A token, which can be sent as `page_token` to retrieve the next page. If this
# field is omitted, there are no subsequent pages.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@google_ads_links = args[:google_ads_links] if args.key?(:google_ads_links)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response message for ListMeasurementProtocolSecret RPC
class GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse
include Google::Apis::Core::Hashable
# A list of secrets for the parent stream specified in the request.
# Corresponds to the JSON property `measurementProtocolSecrets`
# @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret>]
attr_accessor :measurement_protocol_secrets
# A token, which can be sent as `page_token` to retrieve the next page. If this
# field is omitted, there are no subsequent pages.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@measurement_protocol_secrets = args[:measurement_protocol_secrets] if args.key?(:measurement_protocol_secrets)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response message for ListProperties RPC.
class GoogleAnalyticsAdminV1alphaListPropertiesResponse
include Google::Apis::Core::Hashable
# A token, which can be sent as `page_token` to retrieve the next page. If this
# field is omitted, there are no subsequent pages.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# Results that matched the filter criteria and were accessible to the caller.
# Corresponds to the JSON property `properties`
# @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty>]
attr_accessor :properties
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@properties = args[:properties] if args.key?(:properties)
end
end
# Response message for ListUserLinks RPC.
class GoogleAnalyticsAdminV1alphaListUserLinksResponse
include Google::Apis::Core::Hashable
# A token, which can be sent as `page_token` to retrieve the next page. If this
# field is omitted, there are no subsequent pages.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# List of UserLinks. These will be ordered stably, but in an arbitrary order.
# Corresponds to the JSON property `userLinks`
# @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink>]
attr_accessor :user_links
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@user_links = args[:user_links] if args.key?(:user_links)
end
end
# A secret value used for sending hits to Measurement Protocol.
class GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret
include Google::Apis::Core::Hashable
# Required. Human-readable display name for this secret.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Output only. Resource name of this secret. This secret may be a child of any
# type of stream. Format: properties/`property`/dataStreams/`dataStream`/
# measurementProtocolSecrets/`measurementProtocolSecret`
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. The measurement protocol secret value. Pass this value to the
# api_secret field of the Measurement Protocol API when sending hits to this
# secret's parent property.
# Corresponds to the JSON property `secretValue`
# @return [String]
attr_accessor :secret_value
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] if args.key?(:display_name)
@name = args[:name] if args.key?(:name)
@secret_value = args[:secret_value] if args.key?(:secret_value)
end
end
# A resource message representing a Google Analytics GA4 property.
class GoogleAnalyticsAdminV1alphaProperty
include Google::Apis::Core::Hashable
# Immutable. The resource name of the parent account Format: accounts/`
# account_id` Example: "accounts/123"
# Corresponds to the JSON property `account`
# @return [String]
attr_accessor :account
# Output only. Time when the entity was originally created.
# Corresponds to the JSON property `createTime`
# @return [String]
attr_accessor :create_time
# The currency type used in reports involving monetary values. Format: https://
# en.wikipedia.org/wiki/ISO_4217 Examples: "USD", "EUR", "JPY"
# Corresponds to the JSON property `currencyCode`
# @return [String]
attr_accessor :currency_code
# Output only. If set, the time at which this property was trashed. If not set,
# then this property is not currently in the trash can.
# Corresponds to the JSON property `deleteTime`
# @return [String]
attr_accessor :delete_time
# Required. Human-readable display name for this property. The max allowed
# display name length is 100 UTF-16 code units.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Output only. If set, the time at which this trashed property will be
# permanently deleted. If not set, then this property is not currently in the
# trash can and is not slated to be deleted.
# Corresponds to the JSON property `expireTime`
# @return [String]
attr_accessor :expire_time
# Industry associated with this property Example: AUTOMOTIVE, FOOD_AND_DRINK
# Corresponds to the JSON property `industryCategory`
# @return [String]
attr_accessor :industry_category
# Output only. Resource name of this property. Format: properties/`property_id`
# Example: "properties/1000"
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Immutable. Resource name of this property's logical parent. Note: The Property-
# Moving UI can be used to change the parent. Format: accounts/`account`,
# properties/`property` Example: "accounts/100", "properties/101"
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
# Immutable. The property type for this Property resource. When creating a
# property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then "ORDINARY_PROPERTY"
# will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY" types cannot yet be
# created via Google Analytics Admin API.
# Corresponds to the JSON property `propertyType`
# @return [String]
attr_accessor :property_type
# Output only. The Google Analytics service level that applies to this property.
# Corresponds to the JSON property `serviceLevel`
# @return [String]
attr_accessor :service_level
# Required. Reporting Time Zone, used as the day boundary for reports,
# regardless of where the data originates. If the time zone honors DST,
# Analytics will automatically adjust for the changes. NOTE: Changing the time
# zone only affects data going forward, and is not applied retroactively. Format:
# https://www.iana.org/time-zones Example: "America/Los_Angeles"
# Corresponds to the JSON property `timeZone`
# @return [String]
attr_accessor :time_zone
# Output only. Time when entity payload fields were last updated.
# Corresponds to the JSON property `updateTime`
# @return [String]
attr_accessor :update_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@account = args[:account] if args.key?(:account)
@create_time = args[:create_time] if args.key?(:create_time)
@currency_code = args[:currency_code] if args.key?(:currency_code)
@delete_time = args[:delete_time] if args.key?(:delete_time)
@display_name = args[:display_name] if args.key?(:display_name)
@expire_time = args[:expire_time] if args.key?(:expire_time)
@industry_category = args[:industry_category] if args.key?(:industry_category)
@name = args[:name] if args.key?(:name)
@parent = args[:parent] if args.key?(:parent)
@property_type = args[:property_type] if args.key?(:property_type)
@service_level = args[:service_level] if args.key?(:service_level)
@time_zone = args[:time_zone] if args.key?(:time_zone)
@update_time = args[:update_time] if args.key?(:update_time)
end
end
# A virtual resource representing metadata for a GA4 property.
class GoogleAnalyticsAdminV1alphaPropertySummary
include Google::Apis::Core::Hashable
# Display name for the property referred to in this property summary.
# Corresponds to the JSON property `displayName`
# @return [String]
attr_accessor :display_name
# Resource name of this property's logical parent. Note: The Property-Moving UI
# can be used to change the parent. Format: accounts/`account`, properties/`
# property` Example: "accounts/100", "properties/200"
# Corresponds to the JSON property `parent`
# @return [String]
attr_accessor :parent
# Resource name of property referred to by this property summary Format:
# properties/`property_id` Example: "properties/1000"
# Corresponds to the JSON property `property`
# @return [String]
attr_accessor :property
# The property's property type.
# Corresponds to the JSON property `propertyType`
# @return [String]
attr_accessor :property_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@display_name = args[:display_name] if args.key?(:display_name)
@parent = args[:parent] if args.key?(:parent)
@property = args[:property] if args.key?(:property)
@property_type = args[:property_type] if args.key?(:property_type)
end
end
# Request message for ProvisionAccountTicket RPC.
class GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest
include Google::Apis::Core::Hashable
# A resource message representing a Google Analytics account.
# Corresponds to the JSON property `account`
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount]
attr_accessor :account
# Redirect URI where the user will be sent after accepting Terms of Service.
# Must be configured in Developers Console as a Redirect URI
# Corresponds to the JSON property `redirectUri`
# @return [String]
attr_accessor :redirect_uri
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@account = args[:account] if args.key?(:account)
@redirect_uri = args[:redirect_uri] if args.key?(:redirect_uri)
end
end
# Response message for ProvisionAccountTicket RPC.
class GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse
include Google::Apis::Core::Hashable
# The param to be passed in the ToS link.
# Corresponds to the JSON property `accountTicketId`
# @return [String]
attr_accessor :account_ticket_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@account_ticket_id = args[:account_ticket_id] if args.key?(:account_ticket_id)
end
end
# Request message for SearchChangeHistoryEvents RPC.
class GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest
include Google::Apis::Core::Hashable
# Optional. If set, only return changes that match one or more of these types of
# actions.
# Corresponds to the JSON property `action`
# @return [Array<String>]
attr_accessor :action
# Optional. If set, only return changes if they are made by a user in this list.
# Corresponds to the JSON property `actorEmail`
# @return [Array<String>]
attr_accessor :actor_email
# Optional. If set, only return changes made after this time (inclusive).
# Corresponds to the JSON property `earliestChangeTime`
# @return [String]
attr_accessor :earliest_change_time
# Optional. If set, only return changes made before this time (inclusive).
# Corresponds to the JSON property `latestChangeTime`
# @return [String]
attr_accessor :latest_change_time
# Optional. The maximum number of ChangeHistoryEvent items to return. The
# service may return fewer than this value, even if there are additional pages.
# If unspecified, at most 50 items will be returned. The maximum value is 200 (
# higher values will be coerced to the maximum).
# Corresponds to the JSON property `pageSize`
# @return [Fixnum]
attr_accessor :page_size
# Optional. A page token, received from a previous `SearchChangeHistoryEvents`
# call. Provide this to retrieve the subsequent page. When paginating, all other
# parameters provided to `SearchChangeHistoryEvents` must match the call that
# provided the page token.
# Corresponds to the JSON property `pageToken`
# @return [String]
attr_accessor :page_token
# Optional. Resource name for a child property. If set, only return changes made
# to this property or its child resources.
# Corresponds to the JSON property `property`
# @return [String]
attr_accessor :property
# Optional. If set, only return changes if they are for a resource that matches
# at least one of these types.
# Corresponds to the JSON property `resourceType`
# @return [Array<String>]
attr_accessor :resource_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@action = args[:action] if args.key?(:action)
@actor_email = args[:actor_email] if args.key?(:actor_email)
@earliest_change_time = args[:earliest_change_time] if args.key?(:earliest_change_time)
@latest_change_time = args[:latest_change_time] if args.key?(:latest_change_time)
@page_size = args[:page_size] if args.key?(:page_size)
@page_token = args[:page_token] if args.key?(:page_token)
@property = args[:property] if args.key?(:property)
@resource_type = args[:resource_type] if args.key?(:resource_type)
end
end
# Response message for SearchAccounts RPC.
class GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse
include Google::Apis::Core::Hashable
# Results that were accessible to the caller.
# Corresponds to the JSON property `changeHistoryEvents`
# @return [Array<Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaChangeHistoryEvent>]
attr_accessor :change_history_events
# A token, which can be sent as `page_token` to retrieve the next page. If this
# field is omitted, there are no subsequent pages.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@change_history_events = args[:change_history_events] if args.key?(:change_history_events)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Request message for UpdateUserLink RPC.
class GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest
include Google::Apis::Core::Hashable
# A resource message representing a user's permissions on an Account or Property
# resource.
# Corresponds to the JSON property `userLink`
# @return [Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink]
attr_accessor :user_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@user_link = args[:user_link] if args.key?(:user_link)
end
end
# A resource message representing a user's permissions on an Account or Property
# resource.
class GoogleAnalyticsAdminV1alphaUserLink
include Google::Apis::Core::Hashable
# Roles directly assigned to this user for this account or property. Valid
# values: predefinedRoles/viewer predefinedRoles/analyst predefinedRoles/editor
# predefinedRoles/admin predefinedRoles/no-cost-data predefinedRoles/no-revenue-
# data Excludes roles that are inherited from a higher-level entity, group, or
# organization admin role. A UserLink that is updated to have an empty list of
# direct_roles will be deleted.
# Corresponds to the JSON property `directRoles`
# @return [Array<String>]
attr_accessor :direct_roles
# Immutable. Email address of the user to link
# Corresponds to the JSON property `emailAddress`
# @return [String]
attr_accessor :email_address
# Output only. Example format: properties/1234/userLinks/5678
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@direct_roles = args[:direct_roles] if args.key?(:direct_roles)
@email_address = args[:email_address] if args.key?(:email_address)
@name = args[:name] if args.key?(:name)
end
end
# A generic empty message that you can re-use to avoid defining duplicated empty
# messages in your APIs. A typical example is to use it as the request or the
# response type of an API method. For instance: service Foo ` rpc Bar(google.
# protobuf.Empty) returns (google.protobuf.Empty); `
class GoogleProtobufEmpty
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
end
end
end