From 2871cc1ad648dc17b580767e9e86721f98cccb0d Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sun, 18 Aug 2024 03:02:13 -0700 Subject: [PATCH] feat: Automated regeneration of serviceusage v1 client (#20089) Auto-created at 2024-08-18 09:57:46 +0000 using the toys pull request generator. --- api_names_out.yaml | 17 +++ .../google-apis-serviceusage_v1/CHANGELOG.md | 5 + .../google/apis/serviceusage_v1/classes.rb | 125 ++++++++++++++++++ .../apis/serviceusage_v1/gem_version.rb | 6 +- .../apis/serviceusage_v1/representations.rb | 73 ++++++++++ 5 files changed, 223 insertions(+), 3 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 39d1a66686d..b5e64f434ee 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -300022,6 +300022,20 @@ "/serviceusage:v1/AdminQuotaPolicy/name": name "/serviceusage:v1/AdminQuotaPolicy/policyValue": policy_value "/serviceusage:v1/AdminQuotaPolicy/unit": unit +"/serviceusage:v1/Analysis": analysis +"/serviceusage:v1/Analysis/analysis": analysis +"/serviceusage:v1/Analysis/analysisType": analysis_type +"/serviceusage:v1/Analysis/displayName": display_name +"/serviceusage:v1/Analysis/service": service +"/serviceusage:v1/AnalysisResult": analysis_result +"/serviceusage:v1/AnalysisResult/blockers": blockers +"/serviceusage:v1/AnalysisResult/blockers/blocker": blocker +"/serviceusage:v1/AnalysisResult/warnings": warnings +"/serviceusage:v1/AnalysisResult/warnings/warning": warning +"/serviceusage:v1/AnalyzeConsumerPolicyMetadata": analyze_consumer_policy_metadata +"/serviceusage:v1/AnalyzeConsumerPolicyResponse": analyze_consumer_policy_response +"/serviceusage:v1/AnalyzeConsumerPolicyResponse/analysis": analysis +"/serviceusage:v1/AnalyzeConsumerPolicyResponse/analysis/analysis": analysis "/serviceusage:v1/Api": api "/serviceusage:v1/Api/methods": methods_prop "/serviceusage:v1/Api/methods/methods_prop": methods_prop @@ -300371,6 +300385,9 @@ "/serviceusage:v1/HttpRule/restCollection": rest_collection "/serviceusage:v1/HttpRule/restMethodName": rest_method_name "/serviceusage:v1/HttpRule/selector": selector +"/serviceusage:v1/Impact": impact +"/serviceusage:v1/Impact/detail": detail +"/serviceusage:v1/Impact/impactType": impact_type "/serviceusage:v1/ImportAdminOverridesMetadata": import_admin_overrides_metadata "/serviceusage:v1/ImportAdminOverridesResponse": import_admin_overrides_response "/serviceusage:v1/ImportAdminOverridesResponse/overrides": overrides diff --git a/generated/google-apis-serviceusage_v1/CHANGELOG.md b/generated/google-apis-serviceusage_v1/CHANGELOG.md index 308f2090fab..f69d7df1c13 100644 --- a/generated/google-apis-serviceusage_v1/CHANGELOG.md +++ b/generated/google-apis-serviceusage_v1/CHANGELOG.md @@ -1,5 +1,10 @@ # Release history for google-apis-serviceusage_v1 +### v0.55.0 (2024-08-18) + +* Regenerated from discovery document revision 20240811 +* Regenerated using generator version 0.15.1 + ### v0.54.0 (2024-07-25) * Regenerated from discovery document revision 20240712 diff --git a/generated/google-apis-serviceusage_v1/lib/google/apis/serviceusage_v1/classes.rb b/generated/google-apis-serviceusage_v1/lib/google/apis/serviceusage_v1/classes.rb index a62c050ae42..285ac448860 100644 --- a/generated/google-apis-serviceusage_v1/lib/google/apis/serviceusage_v1/classes.rb +++ b/generated/google-apis-serviceusage_v1/lib/google/apis/serviceusage_v1/classes.rb @@ -127,6 +127,106 @@ def update!(**args) end end + # A message to group the analysis information. + class Analysis + include Google::Apis::Core::Hashable + + # An analysis result including blockers and warnings. + # Corresponds to the JSON property `analysis` + # @return [Google::Apis::ServiceusageV1::AnalysisResult] + attr_accessor :analysis + + # Output only. The type of analysis. + # Corresponds to the JSON property `analysisType` + # @return [String] + attr_accessor :analysis_type + + # Output only. The user friendly display name of the analysis type. E.g. service + # dependency analysis, service resource usage analysis, etc. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # The names of the service that has analysis result of warnings or blockers. + # Example: `services/storage.googleapis.com`. + # Corresponds to the JSON property `service` + # @return [String] + attr_accessor :service + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @analysis = args[:analysis] if args.key?(:analysis) + @analysis_type = args[:analysis_type] if args.key?(:analysis_type) + @display_name = args[:display_name] if args.key?(:display_name) + @service = args[:service] if args.key?(:service) + end + end + + # An analysis result including blockers and warnings. + class AnalysisResult + include Google::Apis::Core::Hashable + + # Blocking information that would prevent the policy changes at runtime. + # Corresponds to the JSON property `blockers` + # @return [Array] + attr_accessor :blockers + + # Warning information indicating that the policy changes might be unsafe, but + # will not block the changes at runtime. + # Corresponds to the JSON property `warnings` + # @return [Array] + attr_accessor :warnings + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @blockers = args[:blockers] if args.key?(:blockers) + @warnings = args[:warnings] if args.key?(:warnings) + end + end + + # Metadata for the `AnalyzeConsumerPolicy` method. + class AnalyzeConsumerPolicyMetadata + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The response of analyzing a consumer policy update. + class AnalyzeConsumerPolicyResponse + include Google::Apis::Core::Hashable + + # The list of analyses returned from performing the intended policy update + # analysis. The analysis is grouped by service name and different analysis types. + # The empty analysis list means that the consumer policy can be updated without + # any warnings or blockers. + # Corresponds to the JSON property `analysis` + # @return [Array] + attr_accessor :analysis + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @analysis = args[:analysis] if args.key?(:analysis) + end + end + # Api is a light-weight descriptor for an API Interface. Interfaces are also # described as "protocol buffer services" in some contexts, such as by the " # service" keyword in a .proto file, but they are different from API Services, @@ -2710,6 +2810,31 @@ def update!(**args) end end + # A message to group impacts of updating a policy. + class Impact + include Google::Apis::Core::Hashable + + # Output only. User friendly impact detail in a free form message. + # Corresponds to the JSON property `detail` + # @return [String] + attr_accessor :detail + + # Output only. The type of impact. + # Corresponds to the JSON property `impactType` + # @return [String] + attr_accessor :impact_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detail = args[:detail] if args.key?(:detail) + @impact_type = args[:impact_type] if args.key?(:impact_type) + end + end + # Metadata message that provides information such as progress, partial failures, # and similar information on each GetOperation call of LRO returned by # ImportAdminOverrides. diff --git a/generated/google-apis-serviceusage_v1/lib/google/apis/serviceusage_v1/gem_version.rb b/generated/google-apis-serviceusage_v1/lib/google/apis/serviceusage_v1/gem_version.rb index 6a2d2b7dced..e9efadae499 100644 --- a/generated/google-apis-serviceusage_v1/lib/google/apis/serviceusage_v1/gem_version.rb +++ b/generated/google-apis-serviceusage_v1/lib/google/apis/serviceusage_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module ServiceusageV1 # Version of the google-apis-serviceusage_v1 gem - GEM_VERSION = "0.54.0" + GEM_VERSION = "0.55.0" # Version of the code generator used to generate this client - GENERATOR_VERSION = "0.15.0" + GENERATOR_VERSION = "0.15.1" # Revision of the discovery document this client was generated from - REVISION = "20240712" + REVISION = "20240811" end end end diff --git a/generated/google-apis-serviceusage_v1/lib/google/apis/serviceusage_v1/representations.rb b/generated/google-apis-serviceusage_v1/lib/google/apis/serviceusage_v1/representations.rb index 007f30a0d00..d0838898461 100644 --- a/generated/google-apis-serviceusage_v1/lib/google/apis/serviceusage_v1/representations.rb +++ b/generated/google-apis-serviceusage_v1/lib/google/apis/serviceusage_v1/representations.rb @@ -40,6 +40,30 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class Analysis + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AnalysisResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AnalyzeConsumerPolicyMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AnalyzeConsumerPolicyResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Api class Representation < Google::Apis::Core::JsonRepresentation; end @@ -376,6 +400,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class Impact + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ImportAdminOverridesMetadata class Representation < Google::Apis::Core::JsonRepresentation; end @@ -714,6 +744,41 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class Analysis + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :analysis, as: 'analysis', class: Google::Apis::ServiceusageV1::AnalysisResult, decorator: Google::Apis::ServiceusageV1::AnalysisResult::Representation + + property :analysis_type, as: 'analysisType' + property :display_name, as: 'displayName' + property :service, as: 'service' + end + end + + class AnalysisResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :blockers, as: 'blockers', class: Google::Apis::ServiceusageV1::Impact, decorator: Google::Apis::ServiceusageV1::Impact::Representation + + collection :warnings, as: 'warnings', class: Google::Apis::ServiceusageV1::Impact, decorator: Google::Apis::ServiceusageV1::Impact::Representation + + end + end + + class AnalyzeConsumerPolicyMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class AnalyzeConsumerPolicyResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :analysis, as: 'analysis', class: Google::Apis::ServiceusageV1::Analysis, decorator: Google::Apis::ServiceusageV1::Analysis::Representation + + end + end + class Api # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1326,6 +1391,14 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class Impact + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :detail, as: 'detail' + property :impact_type, as: 'impactType' + end + end + class ImportAdminOverridesMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation