chore: Initial generation of separate libraries (#2139)

This commit is contained in:
Daniel Azuma authored and GitHub committed 2020-12-31 19:01:13 -08:00
1 parent 146c765e04
commit 388cc7b0a8
4651 files changed
+1653336

No files matched your search

@@ -0,0 +1,2 @@
--color
--format documentation
@@ -0,0 +1,12 @@
--hide-void-return
--no-private
--verbose
--markup-provider=redcarpet
--markup=markdown
--main OVERVIEW.md
lib/google/apis/analyticsadmin_v1alpha/*.rb
lib/google/apis/analyticsadmin_v1alpha.rb
-
OVERVIEW.md
CHANGELOG.md
LICENSE.md
@@ -0,0 +1,7 @@
# Release history for google-apis-analyticsadmin_v1alpha
### v0.1.0 (2021-01-01)
* Regenerated from discovery document revision 20201213
* Regenerated using generator version 0.1.0
@@ -0,0 +1,23 @@
source 'https://rubygems.org'
gemspec
group :development do
gem "bundler", ">= 1.17"
gem "rake", ">= 12.0"
gem "rspec", "~> 3.9"
gem "opencensus", "~> 0.5"
end
platforms :jruby do
group :development do
gem "jruby-openssl"
end
end
platforms :ruby do
group :development do
gem "yard", "~> 0.9", ">= 0.9.25"
gem "redcarpet", "~> 3.5"
end
end
@@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
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.
@@ -0,0 +1,96 @@
# Legacy REST client for version V1alpha of the Google Analytics Admin API
This is a simple client library for version V1alpha of the Google Analytics Admin API. It provides:
* A client object that connects to the HTTP/JSON REST endpoint for the service.
* Ruby objects for data structures related to the service.
* Integration with the googleauth gem for authentication using OAuth, API keys, and service accounts.
* Control of retry, pagination, and timeouts.
Note that although this client library is supported and will continue to be updated to track changes to the service, it is considered legacy. A more modern client may be available for many Google services, especially Cloud Platform services. See the section below titled *Which client should I use?* for more information.
## Getting started
### Before you begin
There are a few setup steps you need to complete before you can use this library:
1. If you don't already have a Google account, [sign up](https://www.google.com/accounts).
2. If you have never created a Google APIs Console project, read about [Managing Projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and create a project in the [Google API Console](https://console.cloud.google.com/).
3. Most APIs need to be enabled for your project. [Enable it](https://console.cloud.google.com/apis/library/analyticsadmin.googleapis.com) in the console.
### Installation
Add this line to your application's Gemfile:
```ruby
gem 'google-apis-analyticsadmin_v1alpha', '~> 0.1'
```
And then execute:
```
$ bundle
```
Or install it yourself as:
```
$ gem install google-apis-analyticsadmin_v1alpha
```
### Creating a client object
Once the gem is installed, you can load the client code and instantiate a client.
```ruby
# Load the client
require "google/apis/analyticsadmin_v1alpha"
# Create a client object
client = Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminService.new
# Authenticate calls
client.authentication = # ... use the googleauth gem to create credentials
```
See the class reference docs for information on the methods you can call from a client.
## Documentation
More detailed descriptions of the Google legacy REST clients are available in two documents.
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
(Note: the above documents are written for the legacy clients in general, and their examples may not reflect the Analyticsadmin service in particular.)
For reference information on specific calls in the Google Analytics Admin API, see the {Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminService class reference docs}.
## Which client should I use?
Google provides two types of Ruby API client libraries: **legacy REST clients** and **modern clients**.
This library, `google-apis-analyticsadmin_v1alpha`, is a legacy REST client. You can identify legacy clients by their gem names, which are always in the form `google-apis-<servicename>_<serviceversion>`. The legacy REST clients connect to HTTP/JSON REST endpoints and are automatically generated from service discovery documents. They support most API functionality, but their class interfaces are sometimes awkward.
Modern clients are produced by a modern code generator, combined with hand-crafted functionality for some services. Most modern clients connect to high-performance gRPC endpoints, although a few are backed by REST services. Modern clients are available for many Google services, especially Cloud Platform services, but do not yet support all the services covered by the legacy clients.
Gem names for modern clients are often of the form `google-cloud-<service_name>`. (For example, [google-cloud-pubsub](https://rubygems.org/gems/google-cloud-pubsub).) Note that most modern clients also have corresponding "versioned" gems with names like `google-cloud-<service_name>-<version>`. (For example, [google-cloud-pubsub-v1](https://rubygems.org/gems/google-cloud-pubsub-v1).) The "versioned" gems can be used directly, but often provide lower-level interfaces. In most cases, the main gem is recommended.
**For most users, we recommend the modern client, if one is available.** Compared with legacy clients, modern clients are generally much easier to use and more Ruby-like, support more advanced features such as streaming and long-running operations, and often provide much better performance. You may consider using a legacy client instead, if a modern client is not yet available for the service you want to use, or if you are not able to use gRPC on your infrastructure.
The [product documentation](http://code.google.com/apis/analytics/docs/mgmt/home.html) may provide guidance regarding the preferred client library to use.
## Supported Ruby versions
This library is supported on Ruby 2.5+.
Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Currently, this means Ruby 2.5 and later. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
## License
This library is licensed under Apache 2.0. Full license text is available in the {file:LICENSE.md LICENSE}.
## Support
Please [report bugs at the project on Github](https://github.com/google/google-api-ruby-client/issues). Don't hesitate to [ask questions](http://stackoverflow.com/questions/tagged/google-api-ruby-client) about the client or APIs on [StackOverflow](http://stackoverflow.com).
@@ -0,0 +1,28 @@
require "bundler/gem_tasks"
task :release_gem do
Rake::Task["build"].invoke
Rake::Task["release:rubygem_push"].invoke
end
require 'rake/clean'
CLOBBER.include('coverage', 'doc')
CLEAN.include('.yardoc')
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
begin
require 'yard'
require 'yard/rake/yardoc_task'
YARD::Rake::YardocTask.new do |t|
t.files = ['lib/**/*.rb', 'generated/**/*.rb']
t.options = ['--verbose', '--markup', 'markdown']
end
rescue LoadError
task :yard
puts "YARD not available"
end
task :ci => [:spec, :yard, :build]
task :default => :ci
@@ -0,0 +1,32 @@
require File.expand_path("lib/google/apis/analyticsadmin_v1alpha/gem_version", __dir__)
Gem::Specification.new do |gem|
gem.name = "google-apis-analyticsadmin_v1alpha"
gem.version = Google::Apis::AnalyticsadminV1alpha::GEM_VERSION
gem.authors = ["Google LLC"]
gem.email = "googleapis-packages@google.com"
gem.summary = "Legacy REST client for Google Analytics Admin API V1alpha"
gem.description =
"This is the legacy REST client for Google Analytics Admin API V1alpha." \
" Legacy REST clients are simple Ruby libraries that provide access to" \
" Google services via their HTTP REST API endpoints. These libraries are" \
" generated and updated automatically based on the discovery documents" \
" published by the service, and they handle most concerns such as" \
" authentication, pagination, retry, timeouts, and logging. You can use" \
" this client to access the Google Analytics Admin API, but note that some" \
" services may provide a separate modern client that is easier to use."
gem.homepage = "https://github.com/google/google-api-ruby-client"
gem.license = "Apache-2.0"
gem.metadata = {
"bug_tracker_uri" => "https://github.com/googleapis/google-api-ruby-client/issues",
"changelog_uri" => "https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-analyticsadmin_v1alpha/CHANGELOG.md",
"documentation_uri" => "https://googleapis.dev/ruby/google-apis-analyticsadmin_v1alpha/v#{Google::Apis::AnalyticsadminV1alpha::GEM_VERSION}",
"source_code_uri" => "https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-analyticsadmin_v1alpha"
}
gem.files = Dir.glob("lib/**/*.rb") + Dir.glob("*.md") + [".yardopts"]
gem.require_paths = ["lib"]
gem.required_ruby_version = '>= 2.4'
gem.add_runtime_dependency "google-apis-core", "~> 0.1"
end
@@ -0,0 +1,15 @@
# 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 "google/apis/analyticsadmin_v1alpha"
@@ -0,0 +1,45 @@
# 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 'google/apis/analyticsadmin_v1alpha/service.rb'
require 'google/apis/analyticsadmin_v1alpha/classes.rb'
require 'google/apis/analyticsadmin_v1alpha/representations.rb'
require 'google/apis/analyticsadmin_v1alpha/gem_version.rb'
module Google
module Apis
# Google Analytics Admin API
#
#
#
# @see http://code.google.com/apis/analytics/docs/mgmt/home.html
module AnalyticsadminV1alpha
# Version of the Google Analytics Admin API this client connects to.
# This is NOT the gem version.
VERSION = 'V1alpha'
# Edit Google Analytics management entities
AUTH_ANALYTICS_EDIT = 'https://www.googleapis.com/auth/analytics.edit'
# Manage Google Analytics Account users by email address
AUTH_ANALYTICS_MANAGE_USERS = 'https://www.googleapis.com/auth/analytics.manage.users'
# View Google Analytics user permissions
AUTH_ANALYTICS_MANAGE_USERS_READONLY = 'https://www.googleapis.com/auth/analytics.manage.users.readonly'
# See and download your Google Analytics data
AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly'
end
end
end
@@ -0,0 +1,28 @@
# 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.
module Google
module Apis
module AnalyticsadminV1alpha
# Version of the google-apis-analyticsadmin_v1alpha gem
GEM_VERSION = "0.1.0"
# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.1.0"
# Revision of the discovery document this client was generated from
REVISION = "20201213"
end
end
end
@@ -0,0 +1,611 @@
# 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
class GoogleAnalyticsAdminV1alphaAccount
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaAccountSummary
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaAndroidAppDataStream
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaAuditUserLink
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaAuditUserLinksRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaAuditUserLinksResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaCreateUserLinkRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaDataSharingSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaFirebaseLink
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaGlobalSiteTag
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaGoogleAdsLink
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaIosAppDataStream
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaListAccountSummariesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaListAccountsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaListPropertiesResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaListUserLinksResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaProperty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaPropertySummary
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaUserLink
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaWebDataStream
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleProtobufEmpty
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class GoogleAnalyticsAdminV1alphaAccount
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :country_code, as: 'countryCode'
property :create_time, as: 'createTime'
property :deleted, as: 'deleted'
property :display_name, as: 'displayName'
property :name, as: 'name'
property :update_time, as: 'updateTime'
end
end
class GoogleAnalyticsAdminV1alphaAccountSummary
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account, as: 'account'
property :display_name, as: 'displayName'
property :name, as: 'name'
collection :property_summaries, as: 'propertySummaries', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaPropertySummary, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaPropertySummary::Representation
end
end
class GoogleAnalyticsAdminV1alphaAndroidAppDataStream
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :display_name, as: 'displayName'
property :firebase_app_id, as: 'firebaseAppId'
property :name, as: 'name'
property :package_name, as: 'packageName'
property :update_time, as: 'updateTime'
end
end
class GoogleAnalyticsAdminV1alphaAuditUserLink
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :direct_roles, as: 'directRoles'
collection :effective_roles, as: 'effectiveRoles'
property :email_address, as: 'emailAddress'
property :name, as: 'name'
end
end
class GoogleAnalyticsAdminV1alphaAuditUserLinksRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :page_size, as: 'pageSize'
property :page_token, as: 'pageToken'
end
end
class GoogleAnalyticsAdminV1alphaAuditUserLinksResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :user_links, as: 'userLinks', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLink, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAuditUserLink::Representation
end
end
class GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :notify_new_users, as: 'notifyNewUsers'
collection :requests, as: 'requests', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCreateUserLinkRequest, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaCreateUserLinkRequest::Representation
end
end
class GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :user_links, as: 'userLinks', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation
end
end
class GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :requests, as: 'requests', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest::Representation
end
end
class GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :user_links, as: 'userLinks', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation
end
end
class GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :requests, as: 'requests', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest::Representation
end
end
class GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :user_links, as: 'userLinks', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation
end
end
class GoogleAnalyticsAdminV1alphaCreateUserLinkRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :notify_new_user, as: 'notifyNewUser'
property :parent, as: 'parent'
property :user_link, as: 'userLink', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation
end
end
class GoogleAnalyticsAdminV1alphaDataSharingSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
property :sharing_with_google_any_sales_enabled, as: 'sharingWithGoogleAnySalesEnabled'
property :sharing_with_google_assigned_sales_enabled, as: 'sharingWithGoogleAssignedSalesEnabled'
property :sharing_with_google_products_enabled, as: 'sharingWithGoogleProductsEnabled'
property :sharing_with_google_support_enabled, as: 'sharingWithGoogleSupportEnabled'
property :sharing_with_others_enabled, as: 'sharingWithOthersEnabled'
end
end
class GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :name, as: 'name'
end
end
class GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :articles_and_blogs_enabled, as: 'articlesAndBlogsEnabled'
property :content_views_enabled, as: 'contentViewsEnabled'
property :data_tagged_element_clicks_enabled, as: 'dataTaggedElementClicksEnabled'
property :excluded_domains, as: 'excludedDomains'
property :file_downloads_enabled, as: 'fileDownloadsEnabled'
property :form_interactions_enabled, as: 'formInteractionsEnabled'
property :name, as: 'name'
property :outbound_clicks_enabled, as: 'outboundClicksEnabled'
property :page_changes_enabled, as: 'pageChangesEnabled'
property :page_loads_enabled, as: 'pageLoadsEnabled'
property :page_views_enabled, as: 'pageViewsEnabled'
property :products_and_ecommerce_enabled, as: 'productsAndEcommerceEnabled'
property :scrolls_enabled, as: 'scrollsEnabled'
property :search_query_parameter, as: 'searchQueryParameter'
property :site_search_enabled, as: 'siteSearchEnabled'
property :stream_enabled, as: 'streamEnabled'
property :url_query_parameter, as: 'urlQueryParameter'
property :video_engagement_enabled, as: 'videoEngagementEnabled'
end
end
class GoogleAnalyticsAdminV1alphaFirebaseLink
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :maximum_user_access, as: 'maximumUserAccess'
property :name, as: 'name'
property :project, as: 'project'
end
end
class GoogleAnalyticsAdminV1alphaGlobalSiteTag
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :snippet, as: 'snippet'
end
end
class GoogleAnalyticsAdminV1alphaGoogleAdsLink
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :ads_personalization_enabled, as: 'adsPersonalizationEnabled'
property :can_manage_clients, as: 'canManageClients'
property :create_time, as: 'createTime'
property :customer_id, as: 'customerId'
property :email_address, as: 'emailAddress'
property :name, as: 'name'
property :parent, as: 'parent'
property :update_time, as: 'updateTime'
end
end
class GoogleAnalyticsAdminV1alphaIosAppDataStream
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :bundle_id, as: 'bundleId'
property :create_time, as: 'createTime'
property :display_name, as: 'displayName'
property :firebase_app_id, as: 'firebaseAppId'
property :name, as: 'name'
property :update_time, as: 'updateTime'
end
end
class GoogleAnalyticsAdminV1alphaListAccountSummariesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :account_summaries, as: 'accountSummaries', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccountSummary, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccountSummary::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleAnalyticsAdminV1alphaListAccountsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :accounts, as: 'accounts', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :android_app_data_streams, as: 'androidAppDataStreams', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAndroidAppDataStream::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :firebase_links, as: 'firebaseLinks', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaFirebaseLink::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :google_ads_links, as: 'googleAdsLinks', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaGoogleAdsLink::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :ios_app_data_streams, as: 'iosAppDataStreams', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaIosAppDataStream::Representation
property :next_page_token, as: 'nextPageToken'
end
end
class GoogleAnalyticsAdminV1alphaListPropertiesResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :properties, as: 'properties', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaProperty::Representation
end
end
class GoogleAnalyticsAdminV1alphaListUserLinksResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :user_links, as: 'userLinks', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation
end
end
class GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :next_page_token, as: 'nextPageToken'
collection :web_data_streams, as: 'webDataStreams', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaWebDataStream::Representation
end
end
class GoogleAnalyticsAdminV1alphaProperty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :currency_code, as: 'currencyCode'
property :deleted, as: 'deleted'
property :display_name, as: 'displayName'
property :industry_category, as: 'industryCategory'
property :name, as: 'name'
property :parent, as: 'parent'
property :time_zone, as: 'timeZone'
property :update_time, as: 'updateTime'
end
end
class GoogleAnalyticsAdminV1alphaPropertySummary
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :display_name, as: 'displayName'
property :property, as: 'property'
end
end
class GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account, as: 'account', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaAccount::Representation
property :redirect_uri, as: 'redirectUri'
end
end
class GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :account_ticket_id, as: 'accountTicketId'
end
end
class GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :user_link, as: 'userLink', class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink, decorator: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaUserLink::Representation
end
end
class GoogleAnalyticsAdminV1alphaUserLink
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :direct_roles, as: 'directRoles'
property :email_address, as: 'emailAddress'
property :name, as: 'name'
end
end
class GoogleAnalyticsAdminV1alphaWebDataStream
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :create_time, as: 'createTime'
property :default_uri, as: 'defaultUri'
property :display_name, as: 'displayName'
property :firebase_app_id, as: 'firebaseAppId'
property :measurement_id, as: 'measurementId'
property :name, as: 'name'
property :update_time, as: 'updateTime'
end
end
class GoogleProtobufEmpty
# @private
class Representation < Google::Apis::Core::JsonRepresentation
end
end
end
end
end
@@ -0,0 +1,27 @@
# 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 "rspec"
RSpec.describe "Google::Apis::AnalyticsadminV1alpha" do
# Minimal test just to ensure no syntax errors in generated code
it "should load" do
expect do
require "google/apis/analyticsadmin_v1alpha"
end.not_to raise_error
expect do
Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminService.new
end.not_to raise_error
end
end