Skip to content

Commit f001b1d

Browse files
feat: Automated regeneration of AnalyticsAdmin client (#13278)
Auto-created at 2025-04-02 13:15:26 +0000 using the toys pull request generator.
1 parent 8b002c3 commit f001b1d

7 files changed

+649
-1
lines changed

clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/api/properties.ex

Lines changed: 392 additions & 0 deletions
Large diffs are not rendered by default.

clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/metadata.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ defmodule GoogleApi.AnalyticsAdmin.V1alpha do
2020
API client metadata for GoogleApi.AnalyticsAdmin.V1alpha.
2121
"""
2222

23-
@discovery_revision "20250307"
23+
@discovery_revision "20250329"
2424

2525
def discovery_revision(), do: @discovery_revision
2626
end

clients/analytics_admin/lib/google_api/analytics_admin/v1alpha/model/google_analytics_admin_v1alpha_change_history_change_change_history_resource.ex

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ defmodule GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaChan
4545
* `keyEvent` (*type:* `GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaKeyEvent.t`, *default:* `nil`) - A snapshot of a KeyEvent resource in change history.
4646
* `measurementProtocolSecret` (*type:* `GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret.t`, *default:* `nil`) - A snapshot of a MeasurementProtocolSecret resource in change history.
4747
* `property` (*type:* `GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaProperty.t`, *default:* `nil`) - A snapshot of a Property resource in change history.
48+
* `reportingDataAnnotation` (*type:* `GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaReportingDataAnnotation.t`, *default:* `nil`) - A snapshot of a ReportingDataAnnotation resource in change history.
4849
* `searchAds360Link` (*type:* `GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaSearchAds360Link.t`, *default:* `nil`) - A snapshot of a SearchAds360Link resource in change history.
4950
* `skadnetworkConversionValueSchema` (*type:* `GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaSKAdNetworkConversionValueSchema.t`, *default:* `nil`) - A snapshot of SKAdNetworkConversionValueSchema resource in change history.
5051
"""
@@ -119,6 +120,9 @@ defmodule GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaChan
119120
| nil,
120121
:property =>
121122
GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaProperty.t() | nil,
123+
:reportingDataAnnotation =>
124+
GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaReportingDataAnnotation.t()
125+
| nil,
122126
:searchAds360Link =>
123127
GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaSearchAds360Link.t()
124128
| nil,
@@ -219,6 +223,10 @@ defmodule GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaChan
219223

220224
field(:property, as: GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaProperty)
221225

226+
field(:reportingDataAnnotation,
227+
as: GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaReportingDataAnnotation
228+
)
229+
222230
field(:searchAds360Link,
223231
as: GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaSearchAds360Link
224232
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaListReportingDataAnnotationsResponse do
19+
@moduledoc """
20+
Response message for ListReportingDataAnnotation RPC.
21+
22+
## Attributes
23+
24+
* `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
25+
* `reportingDataAnnotations` (*type:* `list(GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaReportingDataAnnotation.t)`, *default:* `nil`) - List of Reporting Data Annotations.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:nextPageToken => String.t() | nil,
32+
:reportingDataAnnotations =>
33+
list(
34+
GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaReportingDataAnnotation.t()
35+
)
36+
| nil
37+
}
38+
39+
field(:nextPageToken)
40+
41+
field(:reportingDataAnnotations,
42+
as: GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaReportingDataAnnotation,
43+
type: :list
44+
)
45+
end
46+
47+
defimpl Poison.Decoder,
48+
for:
49+
GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaListReportingDataAnnotationsResponse do
50+
def decode(value, options) do
51+
GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaListReportingDataAnnotationsResponse.decode(
52+
value,
53+
options
54+
)
55+
end
56+
end
57+
58+
defimpl Poison.Encoder,
59+
for:
60+
GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaListReportingDataAnnotationsResponse do
61+
def encode(value, options) do
62+
GoogleApi.Gax.ModelBase.encode(value, options)
63+
end
64+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaReportingDataAnnotation do
19+
@moduledoc """
20+
A Reporting Data Annotation is a comment connected to certain dates for reporting data.
21+
22+
## Attributes
23+
24+
* `annotationDate` (*type:* `GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleTypeDate.t`, *default:* `nil`) - If set, the Reporting Data Annotation is for a specific date represented by this field. The date must be a valid date with year, month and day set. The date may be in the past, present, or future.
25+
* `annotationDateRange` (*type:* `GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaReportingDataAnnotationDateRange.t`, *default:* `nil`) - If set, the Reporting Data Annotation is for a range of dates represented by this field.
26+
* `color` (*type:* `String.t`, *default:* `nil`) - Required. The color used for display of this Reporting Data Annotation.
27+
* `description` (*type:* `String.t`, *default:* `nil`) - Optional. Description for this Reporting Data Annotation.
28+
* `name` (*type:* `String.t`, *default:* `nil`) - Required. Identifier. Resource name of this Reporting Data Annotation. Format: 'properties/{property_id}/reportingDataAnnotations/{reporting_data_annotation}' Format: 'properties/123/reportingDataAnnotations/456'
29+
* `systemGenerated` (*type:* `boolean()`, *default:* `nil`) - Output only. If true, this annotation was generated by the Google Analytics system. System-generated annotations cannot be updated or deleted.
30+
* `title` (*type:* `String.t`, *default:* `nil`) - Required. Human-readable title for this Reporting Data Annotation.
31+
"""
32+
33+
use GoogleApi.Gax.ModelBase
34+
35+
@type t :: %__MODULE__{
36+
:annotationDate => GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleTypeDate.t() | nil,
37+
:annotationDateRange =>
38+
GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaReportingDataAnnotationDateRange.t()
39+
| nil,
40+
:color => String.t() | nil,
41+
:description => String.t() | nil,
42+
:name => String.t() | nil,
43+
:systemGenerated => boolean() | nil,
44+
:title => String.t() | nil
45+
}
46+
47+
field(:annotationDate, as: GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleTypeDate)
48+
49+
field(:annotationDateRange,
50+
as:
51+
GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaReportingDataAnnotationDateRange
52+
)
53+
54+
field(:color)
55+
field(:description)
56+
field(:name)
57+
field(:systemGenerated)
58+
field(:title)
59+
end
60+
61+
defimpl Poison.Decoder,
62+
for: GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaReportingDataAnnotation do
63+
def decode(value, options) do
64+
GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaReportingDataAnnotation.decode(
65+
value,
66+
options
67+
)
68+
end
69+
end
70+
71+
defimpl Poison.Encoder,
72+
for: GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaReportingDataAnnotation do
73+
def encode(value, options) do
74+
GoogleApi.Gax.ModelBase.encode(value, options)
75+
end
76+
end
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaReportingDataAnnotationDateRange do
19+
@moduledoc """
20+
Represents a Reporting Data Annotation's date range, both start and end dates are inclusive. Time zones are based on the parent property.
21+
22+
## Attributes
23+
24+
* `endDate` (*type:* `GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleTypeDate.t`, *default:* `nil`) - Required. The end date for this range. Must be a valid date with year, month, and day set. This date must be greater than or equal to the start date.
25+
* `startDate` (*type:* `GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleTypeDate.t`, *default:* `nil`) - Required. The start date for this range. Must be a valid date with year, month, and day set. The date may be in the past, present, or future.
26+
"""
27+
28+
use GoogleApi.Gax.ModelBase
29+
30+
@type t :: %__MODULE__{
31+
:endDate => GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleTypeDate.t() | nil,
32+
:startDate => GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleTypeDate.t() | nil
33+
}
34+
35+
field(:endDate, as: GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleTypeDate)
36+
field(:startDate, as: GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleTypeDate)
37+
end
38+
39+
defimpl Poison.Decoder,
40+
for:
41+
GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaReportingDataAnnotationDateRange do
42+
def decode(value, options) do
43+
GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaReportingDataAnnotationDateRange.decode(
44+
value,
45+
options
46+
)
47+
end
48+
end
49+
50+
defimpl Poison.Encoder,
51+
for:
52+
GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleAnalyticsAdminV1alphaReportingDataAnnotationDateRange do
53+
def encode(value, options) do
54+
GoogleApi.Gax.ModelBase.encode(value, options)
55+
end
56+
end
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Copyright 2019 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# NOTE: This file is auto generated by the elixir code generator program.
16+
# Do not edit this file manually.
17+
18+
defmodule GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleTypeDate do
19+
@moduledoc """
20+
Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
21+
22+
## Attributes
23+
24+
* `day` (*type:* `integer()`, *default:* `nil`) - Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.
25+
* `month` (*type:* `integer()`, *default:* `nil`) - Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
26+
* `year` (*type:* `integer()`, *default:* `nil`) - Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
27+
"""
28+
29+
use GoogleApi.Gax.ModelBase
30+
31+
@type t :: %__MODULE__{
32+
:day => integer() | nil,
33+
:month => integer() | nil,
34+
:year => integer() | nil
35+
}
36+
37+
field(:day)
38+
field(:month)
39+
field(:year)
40+
end
41+
42+
defimpl Poison.Decoder, for: GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleTypeDate do
43+
def decode(value, options) do
44+
GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleTypeDate.decode(value, options)
45+
end
46+
end
47+
48+
defimpl Poison.Encoder, for: GoogleApi.AnalyticsAdmin.V1alpha.Model.GoogleTypeDate do
49+
def encode(value, options) do
50+
GoogleApi.Gax.ModelBase.encode(value, options)
51+
end
52+
end

0 commit comments

Comments
 (0)