Skip to content

Commit

Permalink
feat: Automated regeneration of analyticsdata v1beta client (#19055)
Browse files Browse the repository at this point in the history
Auto-created at 2024-05-19 09:35:26 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot committed May 21, 2024
1 parent 649ef22 commit 5a81d22
Show file tree
Hide file tree
Showing 6 changed files with 150 additions and 4 deletions.
14 changes: 14 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24147,6 +24147,14 @@
"/analyticsdata:v1beta/CohortsRange/endOffset": end_offset
"/analyticsdata:v1beta/CohortsRange/granularity": granularity
"/analyticsdata:v1beta/CohortsRange/startOffset": start_offset
"/analyticsdata:v1beta/Comparison": comparison
"/analyticsdata:v1beta/Comparison/comparison": comparison
"/analyticsdata:v1beta/Comparison/dimensionFilter": dimension_filter
"/analyticsdata:v1beta/Comparison/name": name
"/analyticsdata:v1beta/ComparisonMetadata": comparison_metadata
"/analyticsdata:v1beta/ComparisonMetadata/apiName": api_name
"/analyticsdata:v1beta/ComparisonMetadata/description": description
"/analyticsdata:v1beta/ComparisonMetadata/uiName": ui_name
"/analyticsdata:v1beta/ConcatenateExpression": concatenate_expression
"/analyticsdata:v1beta/ConcatenateExpression/delimiter": delimiter
"/analyticsdata:v1beta/ConcatenateExpression/dimensionNames": dimension_names
Expand Down Expand Up @@ -24203,6 +24211,8 @@
"/analyticsdata:v1beta/ListAudienceExportsResponse/audienceExports/audience_export": audience_export
"/analyticsdata:v1beta/ListAudienceExportsResponse/nextPageToken": next_page_token
"/analyticsdata:v1beta/Metadata": metadata
"/analyticsdata:v1beta/Metadata/comparisons": comparisons
"/analyticsdata:v1beta/Metadata/comparisons/comparison": comparison
"/analyticsdata:v1beta/Metadata/dimensions": dimensions
"/analyticsdata:v1beta/Metadata/dimensions/dimension": dimension
"/analyticsdata:v1beta/Metadata/metrics": metrics
Expand Down Expand Up @@ -24315,6 +24325,8 @@
"/analyticsdata:v1beta/Row/metricValues/metric_value": metric_value
"/analyticsdata:v1beta/RunPivotReportRequest": run_pivot_report_request
"/analyticsdata:v1beta/RunPivotReportRequest/cohortSpec": cohort_spec
"/analyticsdata:v1beta/RunPivotReportRequest/comparisons": comparisons
"/analyticsdata:v1beta/RunPivotReportRequest/comparisons/comparison": comparison
"/analyticsdata:v1beta/RunPivotReportRequest/currencyCode": currency_code
"/analyticsdata:v1beta/RunPivotReportRequest/dateRanges": date_ranges
"/analyticsdata:v1beta/RunPivotReportRequest/dateRanges/date_range": date_range
Expand Down Expand Up @@ -24376,6 +24388,8 @@
"/analyticsdata:v1beta/RunRealtimeReportResponse/totals/total": total
"/analyticsdata:v1beta/RunReportRequest": run_report_request
"/analyticsdata:v1beta/RunReportRequest/cohortSpec": cohort_spec
"/analyticsdata:v1beta/RunReportRequest/comparisons": comparisons
"/analyticsdata:v1beta/RunReportRequest/comparisons/comparison": comparison
"/analyticsdata:v1beta/RunReportRequest/currencyCode": currency_code
"/analyticsdata:v1beta/RunReportRequest/dateRanges": date_ranges
"/analyticsdata:v1beta/RunReportRequest/dateRanges/date_range": date_range
Expand Down
5 changes: 5 additions & 0 deletions generated/google-apis-analyticsdata_v1beta/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release history for google-apis-analyticsdata_v1beta

### v0.36.0 (2024-05-19)

* Regenerated from discovery document revision 20240512
* Regenerated using generator version 0.15.0

### v0.35.0 (2024-02-24)

* Regenerated using generator version 0.14.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ Gem::Specification.new do |gem|
gem.require_paths = ["lib"]

gem.required_ruby_version = '>= 2.7'
gem.add_runtime_dependency "google-apis-core", ">= 0.14.0", "< 2.a"
gem.add_runtime_dependency "google-apis-core", ">= 0.15.0", "< 2.a"
end
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,74 @@ def update!(**args)
end
end

# Defines an individual comparison. Most requests will include multiple
# comparisons so that the report compares between the comparisons.
class Comparison
include Google::Apis::Core::Hashable

# A saved comparison identified by the comparison's resource name. For example, '
# comparisons/1234'.
# Corresponds to the JSON property `comparison`
# @return [String]
attr_accessor :comparison

# To express dimension or metric filters. The fields in the same
# FilterExpression need to be either all dimensions or all metrics.
# Corresponds to the JSON property `dimensionFilter`
# @return [Google::Apis::AnalyticsdataV1beta::FilterExpression]
attr_accessor :dimension_filter

# Each comparison produces separate rows in the response. In the response, this
# comparison is identified by this name. If name is unspecified, we will use the
# saved comparisons display name.
# 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)
@comparison = args[:comparison] if args.key?(:comparison)
@dimension_filter = args[:dimension_filter] if args.key?(:dimension_filter)
@name = args[:name] if args.key?(:name)
end
end

# The metadata for a single comparison.
class ComparisonMetadata
include Google::Apis::Core::Hashable

# This comparison's resource name. Useable in [Comparison](#Comparison)'s `
# comparison` field. For example, 'comparisons/1234'.
# Corresponds to the JSON property `apiName`
# @return [String]
attr_accessor :api_name

# This comparison's description.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description

# This comparison's name within the Google Analytics user interface.
# Corresponds to the JSON property `uiName`
# @return [String]
attr_accessor :ui_name

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@api_name = args[:api_name] if args.key?(:api_name)
@description = args[:description] if args.key?(:description)
@ui_name = args[:ui_name] if args.key?(:ui_name)
end
end

# Used to combine dimension values to a single dimension.
class ConcatenateExpression
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -975,6 +1043,11 @@ def update!(**args)
class Metadata
include Google::Apis::Core::Hashable

# The comparison descriptions.
# Corresponds to the JSON property `comparisons`
# @return [Array<Google::Apis::AnalyticsdataV1beta::ComparisonMetadata>]
attr_accessor :comparisons

# The dimension descriptions.
# Corresponds to the JSON property `dimensions`
# @return [Array<Google::Apis::AnalyticsdataV1beta::DimensionMetadata>]
Expand All @@ -996,6 +1069,7 @@ def initialize(**args)

# Update properties of this object
def update!(**args)
@comparisons = args[:comparisons] if args.key?(:comparisons)
@dimensions = args[:dimensions] if args.key?(:dimensions)
@metrics = args[:metrics] if args.key?(:metrics)
@name = args[:name] if args.key?(:name)
Expand Down Expand Up @@ -1879,6 +1953,13 @@ class RunPivotReportRequest
# @return [Google::Apis::AnalyticsdataV1beta::CohortSpec]
attr_accessor :cohort_spec

# Optional. The configuration of comparisons requested and displayed. The
# request requires both a comparisons field and a comparisons dimension to
# receive a comparison column in the response.
# Corresponds to the JSON property `comparisons`
# @return [Array<Google::Apis::AnalyticsdataV1beta::Comparison>]
attr_accessor :comparisons

# A currency code in ISO4217 format, such as "AED", "USD", "JPY". If the field
# is empty, the report uses the property's default currency.
# Corresponds to the JSON property `currencyCode`
Expand Down Expand Up @@ -1963,6 +2044,7 @@ def initialize(**args)
# Update properties of this object
def update!(**args)
@cohort_spec = args[:cohort_spec] if args.key?(:cohort_spec)
@comparisons = args[:comparisons] if args.key?(:comparisons)
@currency_code = args[:currency_code] if args.key?(:currency_code)
@date_ranges = args[:date_ranges] if args.key?(:date_ranges)
@dimension_filter = args[:dimension_filter] if args.key?(:dimension_filter)
Expand Down Expand Up @@ -2231,6 +2313,13 @@ class RunReportRequest
# @return [Google::Apis::AnalyticsdataV1beta::CohortSpec]
attr_accessor :cohort_spec

# Optional. The configuration of comparisons requested and displayed. The
# request only requires a comparisons field in order to receive a comparison
# column in the response.
# Corresponds to the JSON property `comparisons`
# @return [Array<Google::Apis::AnalyticsdataV1beta::Comparison>]
attr_accessor :comparisons

# A currency code in ISO4217 format, such as "AED", "USD", "JPY". If the field
# is empty, the report uses the property's default currency.
# Corresponds to the JSON property `currencyCode`
Expand Down Expand Up @@ -2339,6 +2428,7 @@ def initialize(**args)
# Update properties of this object
def update!(**args)
@cohort_spec = args[:cohort_spec] if args.key?(:cohort_spec)
@comparisons = args[:comparisons] if args.key?(:comparisons)
@currency_code = args[:currency_code] if args.key?(:currency_code)
@date_ranges = args[:date_ranges] if args.key?(:date_ranges)
@dimension_filter = args[:dimension_filter] if args.key?(:dimension_filter)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module AnalyticsdataV1beta
# Version of the google-apis-analyticsdata_v1beta gem
GEM_VERSION = "0.35.0"
GEM_VERSION = "0.36.0"

# Version of the code generator used to generate this client
GENERATOR_VERSION = "0.14.0"
GENERATOR_VERSION = "0.15.0"

# Revision of the discovery document this client was generated from
REVISION = "20240128"
REVISION = "20240512"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class Comparison
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class ComparisonMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class ConcatenateExpression
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -557,6 +569,25 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class Comparison
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :comparison, as: 'comparison'
property :dimension_filter, as: 'dimensionFilter', class: Google::Apis::AnalyticsdataV1beta::FilterExpression, decorator: Google::Apis::AnalyticsdataV1beta::FilterExpression::Representation

property :name, as: 'name'
end
end

class ComparisonMetadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :api_name, as: 'apiName'
property :description, as: 'description'
property :ui_name, as: 'uiName'
end
end

class ConcatenateExpression
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -695,6 +726,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
class Metadata
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :comparisons, as: 'comparisons', class: Google::Apis::AnalyticsdataV1beta::ComparisonMetadata, decorator: Google::Apis::AnalyticsdataV1beta::ComparisonMetadata::Representation

collection :dimensions, as: 'dimensions', class: Google::Apis::AnalyticsdataV1beta::DimensionMetadata, decorator: Google::Apis::AnalyticsdataV1beta::DimensionMetadata::Representation

collection :metrics, as: 'metrics', class: Google::Apis::AnalyticsdataV1beta::MetricMetadata, decorator: Google::Apis::AnalyticsdataV1beta::MetricMetadata::Representation
Expand Down Expand Up @@ -930,6 +963,8 @@ class RunPivotReportRequest
class Representation < Google::Apis::Core::JsonRepresentation
property :cohort_spec, as: 'cohortSpec', class: Google::Apis::AnalyticsdataV1beta::CohortSpec, decorator: Google::Apis::AnalyticsdataV1beta::CohortSpec::Representation

collection :comparisons, as: 'comparisons', class: Google::Apis::AnalyticsdataV1beta::Comparison, decorator: Google::Apis::AnalyticsdataV1beta::Comparison::Representation

property :currency_code, as: 'currencyCode'
collection :date_ranges, as: 'dateRanges', class: Google::Apis::AnalyticsdataV1beta::DateRange, decorator: Google::Apis::AnalyticsdataV1beta::DateRange::Representation

Expand Down Expand Up @@ -1018,6 +1053,8 @@ class RunReportRequest
class Representation < Google::Apis::Core::JsonRepresentation
property :cohort_spec, as: 'cohortSpec', class: Google::Apis::AnalyticsdataV1beta::CohortSpec, decorator: Google::Apis::AnalyticsdataV1beta::CohortSpec::Representation

collection :comparisons, as: 'comparisons', class: Google::Apis::AnalyticsdataV1beta::Comparison, decorator: Google::Apis::AnalyticsdataV1beta::Comparison::Representation

property :currency_code, as: 'currencyCode'
collection :date_ranges, as: 'dateRanges', class: Google::Apis::AnalyticsdataV1beta::DateRange, decorator: Google::Apis::AnalyticsdataV1beta::DateRange::Representation

Expand Down

0 comments on commit 5a81d22

Please sign in to comment.