diff --git a/api_names_out.yaml b/api_names_out.yaml index 6eabba612d4..c9c376c4618 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -400799,6 +400799,7 @@ "/serviceusage:v1beta1/AdminQuotaPolicy/unit": unit "/serviceusage:v1beta1/Analysis": analysis "/serviceusage:v1beta1/Analysis/analysis": analysis +"/serviceusage:v1beta1/Analysis/analysisResult": analysis_result "/serviceusage:v1beta1/Analysis/analysisType": analysis_type "/serviceusage:v1beta1/Analysis/displayName": display_name "/serviceusage:v1beta1/Analysis/service": service @@ -400935,6 +400936,7 @@ "/serviceusage:v1beta1/ConsumerPolicy": consumer_policy "/serviceusage:v1beta1/ConsumerPolicy/annotations": annotations "/serviceusage:v1beta1/ConsumerPolicy/annotations/annotation": annotation +"/serviceusage:v1beta1/ConsumerPolicy/createTime": create_time "/serviceusage:v1beta1/ConsumerPolicy/enableRules": enable_rules "/serviceusage:v1beta1/ConsumerPolicy/enableRules/enable_rule": enable_rule "/serviceusage:v1beta1/ConsumerPolicy/etag": etag @@ -401176,6 +401178,20 @@ "/serviceusage:v1beta1/GoogleApiServiceusageV1beta1ServiceIdentity": google_api_serviceusage_v1beta1_service_identity "/serviceusage:v1beta1/GoogleApiServiceusageV1beta1ServiceIdentity/email": email "/serviceusage:v1beta1/GoogleApiServiceusageV1beta1ServiceIdentity/uniqueId": unique_id +"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalysis": google_api_serviceusage_v2alpha_analysis +"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalysis/analysisResult": analysis_result +"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalysis/analysisType": analysis_type +"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalysis/displayName": display_name +"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalysis/service": service +"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalysisResult": google_api_serviceusage_v2alpha_analysis_result +"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalysisResult/blockers": blockers +"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalysisResult/blockers/blocker": blocker +"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalysisResult/warnings": warnings +"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalysisResult/warnings/warning": warning +"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata": google_api_serviceusage_v2alpha_analyze_consumer_policy_metadata +"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse": google_api_serviceusage_v2alpha_analyze_consumer_policy_response +"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse/analysis": analysis +"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse/analysis/analysis": analysis "/serviceusage:v1beta1/GoogleApiServiceusageV2alphaConsumerPolicy": google_api_serviceusage_v2alpha_consumer_policy "/serviceusage:v1beta1/GoogleApiServiceusageV2alphaConsumerPolicy/annotations": annotations "/serviceusage:v1beta1/GoogleApiServiceusageV2alphaConsumerPolicy/annotations/annotation": annotation @@ -401192,6 +401208,10 @@ "/serviceusage:v1beta1/GoogleApiServiceusageV2alphaEnableRule/groups/group": group "/serviceusage:v1beta1/GoogleApiServiceusageV2alphaEnableRule/services": services "/serviceusage:v1beta1/GoogleApiServiceusageV2alphaEnableRule/services/service": service +"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaImpact": google_api_serviceusage_v2alpha_impact +"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaImpact/detail": detail +"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaImpact/impactType": impact_type +"/serviceusage:v1beta1/GoogleApiServiceusageV2alphaImpact/parent": parent "/serviceusage:v1beta1/GoogleApiServiceusageV2alphaUpdateConsumerPolicyMetadata": google_api_serviceusage_v2alpha_update_consumer_policy_metadata "/serviceusage:v1beta1/GoogleApiServiceusageV2betaAnalysis": google_api_serviceusage_v2beta_analysis "/serviceusage:v1beta1/GoogleApiServiceusageV2betaAnalysis/analysis": analysis @@ -401266,6 +401286,7 @@ "/serviceusage:v1beta1/Impact": impact "/serviceusage:v1beta1/Impact/detail": detail "/serviceusage:v1beta1/Impact/impactType": impact_type +"/serviceusage:v1beta1/Impact/missingDependency": missing_dependency "/serviceusage:v1beta1/Impact/parent": parent "/serviceusage:v1beta1/ImportAdminOverridesMetadata": import_admin_overrides_metadata "/serviceusage:v1beta1/ImportAdminOverridesRequest": import_admin_overrides_request diff --git a/generated/google-apis-serviceusage_v1beta1/CHANGELOG.md b/generated/google-apis-serviceusage_v1beta1/CHANGELOG.md index 3c1e6b2e166..22dd1d6c1f0 100644 --- a/generated/google-apis-serviceusage_v1beta1/CHANGELOG.md +++ b/generated/google-apis-serviceusage_v1beta1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-serviceusage_v1beta1 +### v0.78.0 (2026-07-19) + +* Regenerated from discovery document revision 20260713 + ### v0.77.0 (2026-06-14) * Regenerated from discovery document revision 20260423 diff --git a/generated/google-apis-serviceusage_v1beta1/lib/google/apis/serviceusage_v1beta1/classes.rb b/generated/google-apis-serviceusage_v1beta1/lib/google/apis/serviceusage_v1beta1/classes.rb index 15bfd1d6426..c57d535c39a 100644 --- a/generated/google-apis-serviceusage_v1beta1/lib/google/apis/serviceusage_v1beta1/classes.rb +++ b/generated/google-apis-serviceusage_v1beta1/lib/google/apis/serviceusage_v1beta1/classes.rb @@ -132,9 +132,9 @@ class Analysis include Google::Apis::Core::Hashable # An analysis result including blockers and warnings. - # Corresponds to the JSON property `analysis` + # Corresponds to the JSON property `analysisResult` # @return [Google::Apis::ServiceusageV1beta1::AnalysisResult] - attr_accessor :analysis + attr_accessor :analysis_result # Output only. The type of analysis. # Corresponds to the JSON property `analysisType` @@ -159,7 +159,7 @@ def initialize(**args) # Update properties of this object def update!(**args) - @analysis = args[:analysis] if args.key?(:analysis) + @analysis_result = args[:analysis_result] if args.key?(:analysis_result) @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) @@ -1110,15 +1110,14 @@ def update!(**args) class ConsumerPolicy include Google::Apis::Core::Hashable - # Optional. Annotations is an unstructured key-value map stored with a policy - # that may be set by external tools to store and retrieve arbitrary metadata. - # They are not queryable and should be preserved when modifying objects. [AIP- - # 128](https://google.aip.dev/128#annotations) - # Corresponds to the JSON property `annotations` - # @return [Hash] - attr_accessor :annotations + # Output only. The time the policy was created. For singleton policies, this is + # the first touch of the policy. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time - # Enable rules define usable services and service groups. + # Enable rules define usable services and groups. There can currently be at most + # one `EnableRule`. This restriction will be lifted in later releases. # Corresponds to the JSON property `enableRules` # @return [Array] attr_accessor :enable_rules @@ -1129,15 +1128,14 @@ class ConsumerPolicy # @return [String] attr_accessor :etag - # Output only. The resource name of the policy. We only allow consumer policy - # name as `default` for now: `projects/12345/consumerPolicies/default`, `folders/ - # 12345/consumerPolicies/default`, `organizations/12345/consumerPolicies/default` - # . + # Output only. The resource name of the policy. Only the `default` policy is + # supported: `projects/12345/consumerPolicies/default`, `folders/12345/ + # consumerPolicies/default`, `organizations/12345/consumerPolicies/default`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # The last-modified time. + # Output only. The time the policy was last updated. # Corresponds to the JSON property `updateTime` # @return [String] attr_accessor :update_time @@ -1148,7 +1146,7 @@ def initialize(**args) # Update properties of this object def update!(**args) - @annotations = args[:annotations] if args.key?(:annotations) + @create_time = args[:create_time] if args.key?(:create_time) @enable_rules = args[:enable_rules] if args.key?(:enable_rules) @etag = args[:etag] if args.key?(:etag) @name = args[:name] if args.key?(:name) @@ -1871,7 +1869,7 @@ def update!(**args) end end - # The consumer policy rule that defines usable services and service groups. + # The consumer policy rule that defines enabled services and groups. class EnableRule include Google::Apis::Core::Hashable @@ -1880,15 +1878,8 @@ class EnableRule # @return [String] attr_accessor :enable_type - # DEPRECATED: Please use field `values`. Service group should have prefix ` - # groups/`. The names of the service groups that are enabled (Not Implemented). - # Example: `groups/googleServices`. - # Corresponds to the JSON property `groups` - # @return [Array] - attr_accessor :groups - - # DEPRECATED: Please use field `values`. Service should have prefix `services/`. - # The names of the services that are enabled. Example: `storage.googleapis.com`. + # The names of the services that are enabled. Example: `services/storage. + # googleapis.com`. # Corresponds to the JSON property `services` # @return [Array] attr_accessor :services @@ -1907,7 +1898,6 @@ def initialize(**args) # Update properties of this object def update!(**args) @enable_type = args[:enable_type] if args.key?(:enable_type) - @groups = args[:groups] if args.key?(:groups) @services = args[:services] if args.key?(:services) @values = args[:values] if args.key?(:values) end @@ -2929,6 +2919,106 @@ def update!(**args) end end + # A message to group the analysis information. + class GoogleApiServiceusageV2alphaAnalysis + include Google::Apis::Core::Hashable + + # An analysis result including blockers and warnings. + # Corresponds to the JSON property `analysisResult` + # @return [Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2alphaAnalysisResult] + attr_accessor :analysis_result + + # 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_result = args[:analysis_result] if args.key?(:analysis_result) + @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 GoogleApiServiceusageV2alphaAnalysisResult + 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 GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata + 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 GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse + 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 + # Consumer Policy is a set of rules that define what services or service groups # can be used for a cloud resource hierarchy. class GoogleApiServiceusageV2alphaConsumerPolicy @@ -3008,6 +3098,44 @@ def update!(**args) end end + # A message to group impacts of updating a policy. + class GoogleApiServiceusageV2alphaImpact + 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 + + # The parent resource that the analysis is based on and the service name that + # the analysis is for. Example: `projects/100/services/compute.googleapis.com`, + # folders/101/services/compute.googleapis.com` and `organizations/102/services/ + # compute.googleapis.com`. Usually, the parent resource here is same as the + # parent resource of the analyzed policy. However, for some analysis types, the + # parent can be different. For example, for resource existence analysis, if the + # parent resource of the analyzed policy is a folder or an organization, the + # parent resource here can still be the project that contains the resources. + # Corresponds to the JSON property `parent` + # @return [String] + attr_accessor :parent + + 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) + @parent = args[:parent] if args.key?(:parent) + end + end + # Metadata for the `UpdateConsumerPolicy` method. class GoogleApiServiceusageV2alphaUpdateConsumerPolicyMetadata include Google::Apis::Core::Hashable @@ -3594,17 +3722,13 @@ class Impact # @return [String] attr_accessor :impact_type - # The parent resource that the analysis is based on and the service name that - # the analysis is for. Example: `projects/100/services/compute.googleapis.com`, - # folders/101/services/compute.googleapis.com` and `organizations/102/services/ - # compute.googleapis.com`. Usually, the parent resource here is same as the - # parent resource of the analyzed policy. However, for some analysis types, the - # parent can be different. For example, for resource existence analysis, if the - # parent resource of the analyzed policy is a folder or an organization, the - # parent resource here can still be the project that contains the resources. - # Corresponds to the JSON property `parent` + # Output only. This field will be populated only for the ` + # DEPENDENCY_MISSING_DEPENDENCIES` impact type. Example: `services/compute. + # googleapis.com`. Impact.detail will be in format : `missing service dependency: + # `missing_dependency`.` + # Corresponds to the JSON property `missingDependency` # @return [String] - attr_accessor :parent + attr_accessor :missing_dependency def initialize(**args) update!(**args) @@ -3614,7 +3738,7 @@ def initialize(**args) def update!(**args) @detail = args[:detail] if args.key?(:detail) @impact_type = args[:impact_type] if args.key?(:impact_type) - @parent = args[:parent] if args.key?(:parent) + @missing_dependency = args[:missing_dependency] if args.key?(:missing_dependency) end end diff --git a/generated/google-apis-serviceusage_v1beta1/lib/google/apis/serviceusage_v1beta1/gem_version.rb b/generated/google-apis-serviceusage_v1beta1/lib/google/apis/serviceusage_v1beta1/gem_version.rb index 6073a4a2ab2..768d7ac853c 100644 --- a/generated/google-apis-serviceusage_v1beta1/lib/google/apis/serviceusage_v1beta1/gem_version.rb +++ b/generated/google-apis-serviceusage_v1beta1/lib/google/apis/serviceusage_v1beta1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module ServiceusageV1beta1 # Version of the google-apis-serviceusage_v1beta1 gem - GEM_VERSION = "0.77.0" + GEM_VERSION = "0.78.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.19.0" # Revision of the discovery document this client was generated from - REVISION = "20260423" + REVISION = "20260713" end end end diff --git a/generated/google-apis-serviceusage_v1beta1/lib/google/apis/serviceusage_v1beta1/representations.rb b/generated/google-apis-serviceusage_v1beta1/lib/google/apis/serviceusage_v1beta1/representations.rb index 3a308f7af74..107856d5789 100644 --- a/generated/google-apis-serviceusage_v1beta1/lib/google/apis/serviceusage_v1beta1/representations.rb +++ b/generated/google-apis-serviceusage_v1beta1/lib/google/apis/serviceusage_v1beta1/representations.rb @@ -424,6 +424,30 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleApiServiceusageV2alphaAnalysis + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleApiServiceusageV2alphaAnalysisResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleApiServiceusageV2alphaConsumerPolicy class Representation < Google::Apis::Core::JsonRepresentation; end @@ -436,6 +460,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleApiServiceusageV2alphaImpact + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleApiServiceusageV2alphaUpdateConsumerPolicyMetadata class Representation < Google::Apis::Core::JsonRepresentation; end @@ -951,7 +981,7 @@ class Representation < Google::Apis::Core::JsonRepresentation class Analysis # @private class Representation < Google::Apis::Core::JsonRepresentation - property :analysis, as: 'analysis', class: Google::Apis::ServiceusageV1beta1::AnalysisResult, decorator: Google::Apis::ServiceusageV1beta1::AnalysisResult::Representation + property :analysis_result, as: 'analysisResult', class: Google::Apis::ServiceusageV1beta1::AnalysisResult, decorator: Google::Apis::ServiceusageV1beta1::AnalysisResult::Representation property :analysis_type, as: 'analysisType' property :display_name, as: 'displayName' @@ -1208,7 +1238,7 @@ class Representation < Google::Apis::Core::JsonRepresentation class ConsumerPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation - hash :annotations, as: 'annotations' + property :create_time, as: 'createTime' collection :enable_rules, as: 'enableRules', class: Google::Apis::ServiceusageV1beta1::EnableRule, decorator: Google::Apis::ServiceusageV1beta1::EnableRule::Representation property :etag, as: 'etag' @@ -1414,7 +1444,6 @@ class EnableRule # @private class Representation < Google::Apis::Core::JsonRepresentation property :enable_type, as: 'enableType' - collection :groups, as: 'groups' collection :services, as: 'services' collection :values, as: 'values' end @@ -1646,6 +1675,41 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GoogleApiServiceusageV2alphaAnalysis + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :analysis_result, as: 'analysisResult', class: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2alphaAnalysisResult, decorator: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2alphaAnalysisResult::Representation + + property :analysis_type, as: 'analysisType' + property :display_name, as: 'displayName' + property :service, as: 'service' + end + end + + class GoogleApiServiceusageV2alphaAnalysisResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :blockers, as: 'blockers', class: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2alphaImpact, decorator: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2alphaImpact::Representation + + collection :warnings, as: 'warnings', class: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2alphaImpact, decorator: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2alphaImpact::Representation + + end + end + + class GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class GoogleApiServiceusageV2alphaAnalyzeConsumerPolicyResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :analysis, as: 'analysis', class: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2alphaAnalysis, decorator: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV2alphaAnalysis::Representation + + end + end + class GoogleApiServiceusageV2alphaConsumerPolicy # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1666,6 +1730,15 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GoogleApiServiceusageV2alphaImpact + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :detail, as: 'detail' + property :impact_type, as: 'impactType' + property :parent, as: 'parent' + end + end + class GoogleApiServiceusageV2alphaUpdateConsumerPolicyMetadata # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1806,7 +1879,7 @@ class Impact class Representation < Google::Apis::Core::JsonRepresentation property :detail, as: 'detail' property :impact_type, as: 'impactType' - property :parent, as: 'parent' + property :missing_dependency, as: 'missingDependency' end end