Skip to content

Commit

Permalink
feat: Automated regeneration of serviceusage v1 client (#20089)
Browse files Browse the repository at this point in the history
Auto-created at 2024-08-18 09:57:46 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored Aug 18, 2024
1 parent 284eace commit 2871cc1
Show file tree
Hide file tree
Showing 5 changed files with 223 additions and 3 deletions.
17 changes: 17 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions generated/google-apis-serviceusage_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<Google::Apis::ServiceusageV1::Impact>]
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<Google::Apis::ServiceusageV1::Impact>]
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<Google::Apis::ServiceusageV1::Analysis>]
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,
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2871cc1

Please sign in to comment.