Skip to content

Commit 679abf7

Browse files
feat: Automated regeneration of serviceusage v1beta1 client (googleapis#27404)
Auto-created at 2026-07-19 11:47:21 +0000 using the toys pull request generator.
1 parent f24f3f6 commit 679abf7

5 files changed

Lines changed: 267 additions & 45 deletions

File tree

api_names_out.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401467,6 +401467,7 @@
401467401467
"/serviceusage:v1beta1/AdminQuotaPolicy/unit": unit
401468401468
"/serviceusage:v1beta1/Analysis": analysis
401469401469
"/serviceusage:v1beta1/Analysis/analysis": analysis
401470+
"/serviceusage:v1beta1/Analysis/analysisResult": analysis_result
401470401471
"/serviceusage:v1beta1/Analysis/analysisType": analysis_type
401471401472
"/serviceusage:v1beta1/Analysis/displayName": display_name
401472401473
"/serviceusage:v1beta1/Analysis/service": service
@@ -401603,6 +401604,7 @@
401603401604
"/serviceusage:v1beta1/ConsumerPolicy": consumer_policy
401604401605
"/serviceusage:v1beta1/ConsumerPolicy/annotations": annotations
401605401606
"/serviceusage:v1beta1/ConsumerPolicy/annotations/annotation": annotation
401607+
"/serviceusage:v1beta1/ConsumerPolicy/createTime": create_time
401606401608
"/serviceusage:v1beta1/ConsumerPolicy/enableRules": enable_rules
401607401609
"/serviceusage:v1beta1/ConsumerPolicy/enableRules/enable_rule": enable_rule
401608401610
"/serviceusage:v1beta1/ConsumerPolicy/etag": etag
@@ -401844,6 +401846,20 @@
401844401846
"/serviceusage:v1beta1/GoogleApiServiceusageV1beta1ServiceIdentity": google_api_serviceusage_v1beta1_service_identity
401845401847
"/serviceusage:v1beta1/GoogleApiServiceusageV1beta1ServiceIdentity/email": email
401846401848
"/serviceusage:v1beta1/GoogleApiServiceusageV1beta1ServiceIdentity/uniqueId": unique_id
401849+
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalysis": google_api_serviceusage_v2alpha_analysis
401850+
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalysis/analysisResult": analysis_result
401851+
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalysis/analysisType": analysis_type
401852+
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalysis/displayName": display_name
401853+
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalysis/service": service
401854+
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalysisResult": google_api_serviceusage_v2alpha_analysis_result
401855+
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalysisResult/blockers": blockers
401856+
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalysisResult/blockers/blocker": blocker
401857+
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalysisResult/warnings": warnings
401858+
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalysisResult/warnings/warning": warning
401859+
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata": google_api_serviceusage_v2alpha_analyze_consumer_policy_metadata
401860+
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse": google_api_serviceusage_v2alpha_analyze_consumer_policy_response
401861+
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse/analysis": analysis
401862+
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse/analysis/analysis": analysis
401847401863
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaConsumerPolicy": google_api_serviceusage_v2alpha_consumer_policy
401848401864
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaConsumerPolicy/annotations": annotations
401849401865
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaConsumerPolicy/annotations/annotation": annotation
@@ -401860,6 +401876,10 @@
401860401876
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaEnableRule/groups/group": group
401861401877
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaEnableRule/services": services
401862401878
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaEnableRule/services/service": service
401879+
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaImpact": google_api_serviceusage_v2alpha_impact
401880+
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaImpact/detail": detail
401881+
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaImpact/impactType": impact_type
401882+
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaImpact/parent": parent
401863401883
"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaUpdateConsumerPolicyMetadata": google_api_serviceusage_v2alpha_update_consumer_policy_metadata
401864401884
"/serviceusage:v1beta1/GoogleApiServiceusageV2betaAnalysis": google_api_serviceusage_v2beta_analysis
401865401885
"/serviceusage:v1beta1/GoogleApiServiceusageV2betaAnalysis/analysis": analysis
@@ -401934,6 +401954,7 @@
401934401954
"/serviceusage:v1beta1/Impact": impact
401935401955
"/serviceusage:v1beta1/Impact/detail": detail
401936401956
"/serviceusage:v1beta1/Impact/impactType": impact_type
401957+
"/serviceusage:v1beta1/Impact/missingDependency": missing_dependency
401937401958
"/serviceusage:v1beta1/Impact/parent": parent
401938401959
"/serviceusage:v1beta1/ImportAdminOverridesMetadata": import_admin_overrides_metadata
401939401960
"/serviceusage:v1beta1/ImportAdminOverridesRequest": import_admin_overrides_request

generated/google-apis-serviceusage_v1beta1/CHANGELOG.md

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

3+
### v0.78.0 (2026-07-19)
4+
5+
* Regenerated from discovery document revision 20260713
6+
37
### v0.77.0 (2026-06-14)
48

59
* Regenerated from discovery document revision 20260423

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

Lines changed: 163 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ class Analysis
132132
include Google::Apis::Core::Hashable
133133

134134
# An analysis result including blockers and warnings.
135-
# Corresponds to the JSON property `analysis`
135+
# Corresponds to the JSON property `analysisResult`
136136
# @return [Google::Apis::ServiceusageV1beta1::AnalysisResult]
137-
attr_accessor :analysis
137+
attr_accessor :analysis_result
138138

139139
# Output only. The type of analysis.
140140
# Corresponds to the JSON property `analysisType`
@@ -159,7 +159,7 @@ def initialize(**args)
159159

160160
# Update properties of this object
161161
def update!(**args)
162-
@analysis = args[:analysis] if args.key?(:analysis)
162+
@analysis_result = args[:analysis_result] if args.key?(:analysis_result)
163163
@analysis_type = args[:analysis_type] if args.key?(:analysis_type)
164164
@display_name = args[:display_name] if args.key?(:display_name)
165165
@service = args[:service] if args.key?(:service)
@@ -1110,15 +1110,14 @@ def update!(**args)
11101110
class ConsumerPolicy
11111111
include Google::Apis::Core::Hashable
11121112

1113-
# Optional. Annotations is an unstructured key-value map stored with a policy
1114-
# that may be set by external tools to store and retrieve arbitrary metadata.
1115-
# They are not queryable and should be preserved when modifying objects. [AIP-
1116-
# 128](https://google.aip.dev/128#annotations)
1117-
# Corresponds to the JSON property `annotations`
1118-
# @return [Hash<String,String>]
1119-
attr_accessor :annotations
1113+
# Output only. The time the policy was created. For singleton policies, this is
1114+
# the first touch of the policy.
1115+
# Corresponds to the JSON property `createTime`
1116+
# @return [String]
1117+
attr_accessor :create_time
11201118

1121-
# Enable rules define usable services and service groups.
1119+
# Enable rules define usable services and groups. There can currently be at most
1120+
# one `EnableRule`. This restriction will be lifted in later releases.
11221121
# Corresponds to the JSON property `enableRules`
11231122
# @return [Array<Google::Apis::ServiceusageV1beta1::EnableRule>]
11241123
attr_accessor :enable_rules
@@ -1129,15 +1128,14 @@ class ConsumerPolicy
11291128
# @return [String]
11301129
attr_accessor :etag
11311130

1132-
# Output only. The resource name of the policy. We only allow consumer policy
1133-
# name as `default` for now: `projects/12345/consumerPolicies/default`, `folders/
1134-
# 12345/consumerPolicies/default`, `organizations/12345/consumerPolicies/default`
1135-
# .
1131+
# Output only. The resource name of the policy. Only the `default` policy is
1132+
# supported: `projects/12345/consumerPolicies/default`, `folders/12345/
1133+
# consumerPolicies/default`, `organizations/12345/consumerPolicies/default`.
11361134
# Corresponds to the JSON property `name`
11371135
# @return [String]
11381136
attr_accessor :name
11391137

1140-
# The last-modified time.
1138+
# Output only. The time the policy was last updated.
11411139
# Corresponds to the JSON property `updateTime`
11421140
# @return [String]
11431141
attr_accessor :update_time
@@ -1148,7 +1146,7 @@ def initialize(**args)
11481146

11491147
# Update properties of this object
11501148
def update!(**args)
1151-
@annotations = args[:annotations] if args.key?(:annotations)
1149+
@create_time = args[:create_time] if args.key?(:create_time)
11521150
@enable_rules = args[:enable_rules] if args.key?(:enable_rules)
11531151
@etag = args[:etag] if args.key?(:etag)
11541152
@name = args[:name] if args.key?(:name)
@@ -1871,7 +1869,7 @@ def update!(**args)
18711869
end
18721870
end
18731871

1874-
# The consumer policy rule that defines usable services and service groups.
1872+
# The consumer policy rule that defines enabled services and groups.
18751873
class EnableRule
18761874
include Google::Apis::Core::Hashable
18771875

@@ -1880,15 +1878,8 @@ class EnableRule
18801878
# @return [String]
18811879
attr_accessor :enable_type
18821880

1883-
# DEPRECATED: Please use field `values`. Service group should have prefix `
1884-
# groups/`. The names of the service groups that are enabled (Not Implemented).
1885-
# Example: `groups/googleServices`.
1886-
# Corresponds to the JSON property `groups`
1887-
# @return [Array<String>]
1888-
attr_accessor :groups
1889-
1890-
# DEPRECATED: Please use field `values`. Service should have prefix `services/`.
1891-
# The names of the services that are enabled. Example: `storage.googleapis.com`.
1881+
# The names of the services that are enabled. Example: `services/storage.
1882+
# googleapis.com`.
18921883
# Corresponds to the JSON property `services`
18931884
# @return [Array<String>]
18941885
attr_accessor :services
@@ -1907,7 +1898,6 @@ def initialize(**args)
19071898
# Update properties of this object
19081899
def update!(**args)
19091900
@enable_type = args[:enable_type] if args.key?(:enable_type)
1910-
@groups = args[:groups] if args.key?(:groups)
19111901
@services = args[:services] if args.key?(:services)
19121902
@values = args[:values] if args.key?(:values)
19131903
end
@@ -2929,6 +2919,106 @@ def update!(**args)
29292919
end
29302920
end
29312921

2922+
# A message to group the analysis information.
2923+
class GoogleApiServiceusageV2alphaAnalysis
2924+
include Google::Apis::Core::Hashable
2925+
2926+
# An analysis result including blockers and warnings.
2927+
# Corresponds to the JSON property `analysisResult`
2928+
# @return [Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2alphaAnalysisResult]
2929+
attr_accessor :analysis_result
2930+
2931+
# Output only. The type of analysis.
2932+
# Corresponds to the JSON property `analysisType`
2933+
# @return [String]
2934+
attr_accessor :analysis_type
2935+
2936+
# Output only. The user friendly display name of the analysis type. E.g. service
2937+
# dependency analysis, service resource usage analysis, etc.
2938+
# Corresponds to the JSON property `displayName`
2939+
# @return [String]
2940+
attr_accessor :display_name
2941+
2942+
# The names of the service that has analysis result of warnings or blockers.
2943+
# Example: `services/storage.googleapis.com`.
2944+
# Corresponds to the JSON property `service`
2945+
# @return [String]
2946+
attr_accessor :service
2947+
2948+
def initialize(**args)
2949+
update!(**args)
2950+
end
2951+
2952+
# Update properties of this object
2953+
def update!(**args)
2954+
@analysis_result = args[:analysis_result] if args.key?(:analysis_result)
2955+
@analysis_type = args[:analysis_type] if args.key?(:analysis_type)
2956+
@display_name = args[:display_name] if args.key?(:display_name)
2957+
@service = args[:service] if args.key?(:service)
2958+
end
2959+
end
2960+
2961+
# An analysis result including blockers and warnings.
2962+
class GoogleApiServiceusageV2alphaAnalysisResult
2963+
include Google::Apis::Core::Hashable
2964+
2965+
# Blocking information that would prevent the policy changes at runtime.
2966+
# Corresponds to the JSON property `blockers`
2967+
# @return [Array<Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2alphaImpact>]
2968+
attr_accessor :blockers
2969+
2970+
# Warning information indicating that the policy changes might be unsafe, but
2971+
# will not block the changes at runtime.
2972+
# Corresponds to the JSON property `warnings`
2973+
# @return [Array<Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2alphaImpact>]
2974+
attr_accessor :warnings
2975+
2976+
def initialize(**args)
2977+
update!(**args)
2978+
end
2979+
2980+
# Update properties of this object
2981+
def update!(**args)
2982+
@blockers = args[:blockers] if args.key?(:blockers)
2983+
@warnings = args[:warnings] if args.key?(:warnings)
2984+
end
2985+
end
2986+
2987+
# Metadata for the `AnalyzeConsumerPolicy` method.
2988+
class GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata
2989+
include Google::Apis::Core::Hashable
2990+
2991+
def initialize(**args)
2992+
update!(**args)
2993+
end
2994+
2995+
# Update properties of this object
2996+
def update!(**args)
2997+
end
2998+
end
2999+
3000+
# The response of analyzing a consumer policy update.
3001+
class GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse
3002+
include Google::Apis::Core::Hashable
3003+
3004+
# The list of analyses returned from performing the intended policy update
3005+
# analysis. The analysis is grouped by service name and different analysis types.
3006+
# The empty analysis list means that the consumer policy can be updated without
3007+
# any warnings or blockers.
3008+
# Corresponds to the JSON property `analysis`
3009+
# @return [Array<Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2alphaAnalysis>]
3010+
attr_accessor :analysis
3011+
3012+
def initialize(**args)
3013+
update!(**args)
3014+
end
3015+
3016+
# Update properties of this object
3017+
def update!(**args)
3018+
@analysis = args[:analysis] if args.key?(:analysis)
3019+
end
3020+
end
3021+
29323022
# Consumer Policy is a set of rules that define what services or service groups
29333023
# can be used for a cloud resource hierarchy.
29343024
class GoogleApiServiceusageV2alphaConsumerPolicy
@@ -3008,6 +3098,44 @@ def update!(**args)
30083098
end
30093099
end
30103100

3101+
# A message to group impacts of updating a policy.
3102+
class GoogleApiServiceusageV2alphaImpact
3103+
include Google::Apis::Core::Hashable
3104+
3105+
# Output only. User friendly impact detail in a free form message.
3106+
# Corresponds to the JSON property `detail`
3107+
# @return [String]
3108+
attr_accessor :detail
3109+
3110+
# Output only. The type of impact.
3111+
# Corresponds to the JSON property `impactType`
3112+
# @return [String]
3113+
attr_accessor :impact_type
3114+
3115+
# The parent resource that the analysis is based on and the service name that
3116+
# the analysis is for. Example: `projects/100/services/compute.googleapis.com`,
3117+
# folders/101/services/compute.googleapis.com` and `organizations/102/services/
3118+
# compute.googleapis.com`. Usually, the parent resource here is same as the
3119+
# parent resource of the analyzed policy. However, for some analysis types, the
3120+
# parent can be different. For example, for resource existence analysis, if the
3121+
# parent resource of the analyzed policy is a folder or an organization, the
3122+
# parent resource here can still be the project that contains the resources.
3123+
# Corresponds to the JSON property `parent`
3124+
# @return [String]
3125+
attr_accessor :parent
3126+
3127+
def initialize(**args)
3128+
update!(**args)
3129+
end
3130+
3131+
# Update properties of this object
3132+
def update!(**args)
3133+
@detail = args[:detail] if args.key?(:detail)
3134+
@impact_type = args[:impact_type] if args.key?(:impact_type)
3135+
@parent = args[:parent] if args.key?(:parent)
3136+
end
3137+
end
3138+
30113139
# Metadata for the `UpdateConsumerPolicy` method.
30123140
class GoogleApiServiceusageV2alphaUpdateConsumerPolicyMetadata
30133141
include Google::Apis::Core::Hashable
@@ -3594,17 +3722,13 @@ class Impact
35943722
# @return [String]
35953723
attr_accessor :impact_type
35963724

3597-
# The parent resource that the analysis is based on and the service name that
3598-
# the analysis is for. Example: `projects/100/services/compute.googleapis.com`,
3599-
# folders/101/services/compute.googleapis.com` and `organizations/102/services/
3600-
# compute.googleapis.com`. Usually, the parent resource here is same as the
3601-
# parent resource of the analyzed policy. However, for some analysis types, the
3602-
# parent can be different. For example, for resource existence analysis, if the
3603-
# parent resource of the analyzed policy is a folder or an organization, the
3604-
# parent resource here can still be the project that contains the resources.
3605-
# Corresponds to the JSON property `parent`
3725+
# Output only. This field will be populated only for the `
3726+
# DEPENDENCY_MISSING_DEPENDENCIES` impact type. Example: `services/compute.
3727+
# googleapis.com`. Impact.detail will be in format : `missing service dependency:
3728+
# `missing_dependency`.`
3729+
# Corresponds to the JSON property `missingDependency`
36063730
# @return [String]
3607-
attr_accessor :parent
3731+
attr_accessor :missing_dependency
36083732

36093733
def initialize(**args)
36103734
update!(**args)
@@ -3614,7 +3738,7 @@ def initialize(**args)
36143738
def update!(**args)
36153739
@detail = args[:detail] if args.key?(:detail)
36163740
@impact_type = args[:impact_type] if args.key?(:impact_type)
3617-
@parent = args[:parent] if args.key?(:parent)
3741+
@missing_dependency = args[:missing_dependency] if args.key?(:missing_dependency)
36183742
end
36193743
end
36203744

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module ServiceusageV1beta1
1818
# Version of the google-apis-serviceusage_v1beta1 gem
19-
GEM_VERSION = "0.77.0"
19+
GEM_VERSION = "0.78.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.19.0"
2323

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

0 commit comments

Comments
 (0)