Skip to content

Commit 1055726

Browse files
feat: Automated regeneration of admin reports_v1 client (googleapis#23682)
Auto-created at 2025-07-13 10:07:24 +0000 using the toys pull request generator.
1 parent a0b2aa9 commit 1055726

File tree

6 files changed

+76
-8
lines changed

6 files changed

+76
-8
lines changed

api_names_out.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4935,9 +4935,15 @@
49354935
"/admin:reports_v1/Activity/id/uniqueQualifier": unique_qualifier
49364936
"/admin:reports_v1/Activity/ipAddress": ip_address
49374937
"/admin:reports_v1/Activity/kind": kind
4938+
"/admin:reports_v1/Activity/networkInfo": network_info
49384939
"/admin:reports_v1/Activity/ownerDomain": owner_domain
49394940
"/admin:reports_v1/Activity/resourceDetails": resource_details
49404941
"/admin:reports_v1/Activity/resourceDetails/resource_detail": resource_detail
4942+
"/admin:reports_v1/ActivityNetworkInfo": activity_network_info
4943+
"/admin:reports_v1/ActivityNetworkInfo/ipAsn": ip_asn
4944+
"/admin:reports_v1/ActivityNetworkInfo/ipAsn/ip_asn": ip_asn
4945+
"/admin:reports_v1/ActivityNetworkInfo/regionCode": region_code
4946+
"/admin:reports_v1/ActivityNetworkInfo/subdivisionCode": subdivision_code
49414947
"/admin:reports_v1/AppliedLabel": applied_label
49424948
"/admin:reports_v1/AppliedLabel/fieldValues": field_values
49434949
"/admin:reports_v1/AppliedLabel/fieldValues/field_value": field_value

generated/google-apis-admin_reports_v1/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-admin_reports_v1
22

3+
### v0.28.0 (2025-07-13)
4+
5+
* Regenerated from discovery document revision 20250707
6+
* Regenerated using generator version 0.18.0
7+
38
### v0.27.0 (2025-05-18)
49

510
* Regenerated from discovery document revision 20250505

generated/google-apis-admin_reports_v1/lib/google/apis/admin_reports_v1/classes.rb

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ class Activity
100100
# @return [String]
101101
attr_accessor :kind
102102

103+
# Network information of the user doing the action.
104+
# Corresponds to the JSON property `networkInfo`
105+
# @return [Google::Apis::AdminReportsV1::ActivityNetworkInfo]
106+
attr_accessor :network_info
107+
103108
# This is the domain that is affected by the report's event. For example domain
104109
# of Admin console or the Drive application's document owner.
105110
# Corresponds to the JSON property `ownerDomain`
@@ -123,6 +128,7 @@ def update!(**args)
123128
@id = args[:id] if args.key?(:id)
124129
@ip_address = args[:ip_address] if args.key?(:ip_address)
125130
@kind = args[:kind] if args.key?(:kind)
131+
@network_info = args[:network_info] if args.key?(:network_info)
126132
@owner_domain = args[:owner_domain] if args.key?(:owner_domain)
127133
@resource_details = args[:resource_details] if args.key?(:resource_details)
128134
end
@@ -400,6 +406,38 @@ def update!(**args)
400406
end
401407
end
402408

409+
# Network information of the user doing the action.
410+
class ActivityNetworkInfo
411+
include Google::Apis::Core::Hashable
412+
413+
# IP Address of the user doing the action.
414+
# Corresponds to the JSON property `ipAsn`
415+
# @return [Array<Fixnum>]
416+
attr_accessor :ip_asn
417+
418+
# ISO 3166-1 alpha-2 region code of the user doing the action.
419+
# Corresponds to the JSON property `regionCode`
420+
# @return [String]
421+
attr_accessor :region_code
422+
423+
# ISO 3166-2 region code (states and provinces) for countries of the user doing
424+
# the action.
425+
# Corresponds to the JSON property `subdivisionCode`
426+
# @return [String]
427+
attr_accessor :subdivision_code
428+
429+
def initialize(**args)
430+
update!(**args)
431+
end
432+
433+
# Update properties of this object
434+
def update!(**args)
435+
@ip_asn = args[:ip_asn] if args.key?(:ip_asn)
436+
@region_code = args[:region_code] if args.key?(:region_code)
437+
@subdivision_code = args[:subdivision_code] if args.key?(:subdivision_code)
438+
end
439+
end
440+
403441
# Details of the label applied on the resource.
404442
class AppliedLabel
405443
include Google::Apis::Core::Hashable
@@ -921,7 +959,8 @@ class UsageReport
921959

922960
# Output only. Parameter value pairs for various applications. For the Entity
923961
# Usage Report parameters and values, see [the Entity Usage parameters reference]
924-
# (/admin-sdk/reports/v1/reference/usage-ref-appendix-a/entities).
962+
# (https://developers.google.com/workspace/admin/reports/v1/reference/usage-ref-
963+
# appendix-a/entities).
925964
# Corresponds to the JSON property `parameters`
926965
# @return [Array<Google::Apis::AdminReportsV1::UsageReport::Parameter>]
927966
attr_accessor :parameters

generated/google-apis-admin_reports_v1/lib/google/apis/admin_reports_v1/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module AdminReportsV1
1818
# Version of the google-apis-admin_reports_v1 gem
19-
GEM_VERSION = "0.27.0"
19+
GEM_VERSION = "0.28.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.17.0"
22+
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250505"
25+
REVISION = "20250707"
2626
end
2727
end
2828
end

generated/google-apis-admin_reports_v1/lib/google/apis/admin_reports_v1/representations.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
7676
include Google::Apis::Core::JsonObjectSupport
7777
end
7878

79+
class ActivityNetworkInfo
80+
class Representation < Google::Apis::Core::JsonRepresentation; end
81+
82+
include Google::Apis::Core::JsonObjectSupport
83+
end
84+
7985
class AppliedLabel
8086
class Representation < Google::Apis::Core::JsonRepresentation; end
8187

@@ -207,6 +213,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
207213

208214
property :ip_address, as: 'ipAddress'
209215
property :kind, as: 'kind'
216+
property :network_info, as: 'networkInfo', class: Google::Apis::AdminReportsV1::ActivityNetworkInfo, decorator: Google::Apis::AdminReportsV1::ActivityNetworkInfo::Representation
217+
210218
property :owner_domain, as: 'ownerDomain'
211219
collection :resource_details, as: 'resourceDetails', class: Google::Apis::AdminReportsV1::ResourceDetails, decorator: Google::Apis::AdminReportsV1::ResourceDetails::Representation
212220

@@ -288,6 +296,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
288296
end
289297
end
290298

299+
class ActivityNetworkInfo
300+
# @private
301+
class Representation < Google::Apis::Core::JsonRepresentation
302+
collection :ip_asn, as: 'ipAsn'
303+
property :region_code, as: 'regionCode'
304+
property :subdivision_code, as: 'subdivisionCode'
305+
end
306+
end
307+
291308
class AppliedLabel
292309
# @private
293310
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-admin_reports_v1/lib/google/apis/admin_reports_v1/service.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,11 @@ def list_activities(user_key, application_name, actor_ip_address: nil, customer_
267267
# returns the response corresponding to the remaining valid parameters. If no
268268
# parameters are requested, all parameters are returned.
269269
# @param [String] group_id_filter
270-
# Comma separated group ids (obfuscated) on which user activities are filtered,
271-
# i.e. the response will contain activities for only those users that are a part
272-
# of at least one of the group ids mentioned here. Format: "id:abc123,id:xyz456"
273-
# *Important:* To filter by groups, you must explicitly add the groups to your
270+
# `Deprecated`. This field is deprecated and is no longer supported. Comma
271+
# separated group ids (obfuscated) on which user activities are filtered, i.e.
272+
# the response will contain activities for only those users that are a part of
273+
# at least one of the group ids mentioned here. Format: "id:abc123,id:xyz456" *
274+
# Important:* To filter by groups, you must explicitly add the groups to your
274275
# filtering groups allowlist. For more information about adding groups to
275276
# filtering groups allowlist, see [Filter results by Google Group](https://
276277
# support.google.com/a/answer/11482175)

0 commit comments

Comments
 (0)