diff --git a/api_names_out.yaml b/api_names_out.yaml index 41bf745ccbe..3f4af84aacd 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -349897,6 +349897,7 @@ "/serviceusage:v1/AnalyzeConsumerPolicyResponse/analysis": analysis "/serviceusage:v1/AnalyzeConsumerPolicyResponse/analysis/analysis": analysis "/serviceusage:v1/Api": api +"/serviceusage:v1/Api/edition": edition "/serviceusage:v1/Api/methods": methods_prop "/serviceusage:v1/Api/methods/methods_prop": methods_prop "/serviceusage:v1/Api/mixins": mixins @@ -350022,6 +350023,11 @@ "/serviceusage:v1/ConsumerPolicy/etag": etag "/serviceusage:v1/ConsumerPolicy/name": name "/serviceusage:v1/ConsumerPolicy/updateTime": update_time +"/serviceusage:v1/ContentSecurity": content_security +"/serviceusage:v1/ContentSecurity/contentSecurityProviders": content_security_providers +"/serviceusage:v1/ContentSecurity/contentSecurityProviders/content_security_provider": content_security_provider +"/serviceusage:v1/ContentSecurityProvider": content_security_provider +"/serviceusage:v1/ContentSecurityProvider/name": name "/serviceusage:v1/Context": context "/serviceusage:v1/Context/rules": rules "/serviceusage:v1/Context/rules/rule": rule @@ -350282,6 +350288,7 @@ "/serviceusage:v1/GoogleApiServiceusageV2betaImpact": google_api_serviceusage_v2beta_impact "/serviceusage:v1/GoogleApiServiceusageV2betaImpact/detail": detail "/serviceusage:v1/GoogleApiServiceusageV2betaImpact/impactType": impact_type +"/serviceusage:v1/GoogleApiServiceusageV2betaImpact/missingDependency": missing_dependency "/serviceusage:v1/GoogleApiServiceusageV2betaUpdateConsumerPolicyMetadata": google_api_serviceusage_v2beta_update_consumer_policy_metadata "/serviceusage:v1/GroupValue": group_value "/serviceusage:v1/GroupValue/name": name @@ -350370,6 +350377,19 @@ "/serviceusage:v1/LongRunning/maxPollDelay": max_poll_delay "/serviceusage:v1/LongRunning/pollDelayMultiplier": poll_delay_multiplier "/serviceusage:v1/LongRunning/totalPollTimeout": total_poll_timeout +"/serviceusage:v1/McpEnableRule": mcp_enable_rule +"/serviceusage:v1/McpEnableRule/mcpServices": mcp_services +"/serviceusage:v1/McpEnableRule/mcpServices/mcp_service": mcp_service +"/serviceusage:v1/McpPolicy": mcp_policy +"/serviceusage:v1/McpPolicy/contentSecurity": content_security +"/serviceusage:v1/McpPolicy/createTime": create_time +"/serviceusage:v1/McpPolicy/etag": etag +"/serviceusage:v1/McpPolicy/mcpEnableRules": mcp_enable_rules +"/serviceusage:v1/McpPolicy/mcpEnableRules/mcp_enable_rule": mcp_enable_rule +"/serviceusage:v1/McpPolicy/name": name +"/serviceusage:v1/McpPolicy/updateTime": update_time +"/serviceusage:v1/McpService": mcp_service +"/serviceusage:v1/McpService/service": service "/serviceusage:v1/MediaDownload": media_download "/serviceusage:v1/MediaDownload/completeNotification": complete_notification "/serviceusage:v1/MediaDownload/downloadService": download_service @@ -350388,6 +350408,7 @@ "/serviceusage:v1/MediaUpload/startNotification": start_notification "/serviceusage:v1/MediaUpload/uploadService": upload_service "/serviceusage:v1/Method": method_prop +"/serviceusage:v1/Method/edition": edition "/serviceusage:v1/Method/name": name "/serviceusage:v1/Method/options": options "/serviceusage:v1/Method/options/option": option @@ -350601,6 +350622,7 @@ "/serviceusage:v1/UpdateAdminQuotaPolicyMetadata": update_admin_quota_policy_metadata "/serviceusage:v1/UpdateConsumerPolicyLROMetadata": update_consumer_policy_lro_metadata "/serviceusage:v1/UpdateConsumerPolicyMetadata": update_consumer_policy_metadata +"/serviceusage:v1/UpdateMcpPolicyMetadata": update_mcp_policy_metadata "/serviceusage:v1/Usage": usage "/serviceusage:v1/Usage/producerNotificationChannel": producer_notification_channel "/serviceusage:v1/Usage/requirements": requirements diff --git a/generated/google-apis-serviceusage_v1/CHANGELOG.md b/generated/google-apis-serviceusage_v1/CHANGELOG.md index 5201bc62cfc..4d1ae266250 100644 --- a/generated/google-apis-serviceusage_v1/CHANGELOG.md +++ b/generated/google-apis-serviceusage_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-serviceusage_v1 +### v0.70.0 (2025-09-28) + +* Regenerated from discovery document revision 20250919 + ### v0.69.0 (2025-07-27) * Regenerated from discovery document revision 20250619 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 be50292ff0a..da63a588f5a 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 @@ -233,10 +233,19 @@ def update!(**args) # which represent a concrete implementation of an interface as opposed to simply # a description of methods and bindings. They are also sometimes simply referred # to as "APIs" in other contexts, such as the name of this message itself. See - # https://cloud.google.com/apis/design/glossary for detailed terminology. + # https://cloud.google.com/apis/design/glossary for detailed terminology. New + # usages of this message as an alternative to ServiceDescriptorProto are + # strongly discouraged. This message does not reliability preserve all + # information necessary to model the schema and preserve semantics. Instead make + # use of FileDescriptorSet which preserves the necessary information. class Api include Google::Apis::Core::Hashable + # The source edition string, only valid when syntax is SYNTAX_EDITIONS. + # Corresponds to the JSON property `edition` + # @return [String] + attr_accessor :edition + # The methods of this interface, in unspecified order. # Corresponds to the JSON property `methods` # @return [Array] @@ -292,6 +301,7 @@ def initialize(**args) # Update properties of this object def update!(**args) + @edition = args[:edition] if args.key?(:edition) @methods_prop = args[:methods_prop] if args.key?(:methods_prop) @mixins = args[:mixins] if args.key?(:mixins) @name = args[:name] if args.key?(:name) @@ -610,7 +620,7 @@ class BackendRule # @return [Hash] attr_accessor :overrides_by_request_protocol - # + # no-lint # Corresponds to the JSON property `pathTranslation` # @return [String] attr_accessor :path_translation @@ -1140,6 +1150,48 @@ def update!(**args) end end + # ContentSecurity defines the content security related fields of a MCP policy. + class ContentSecurity + include Google::Apis::Core::Hashable + + # List of content security providers that are enabled for content scanning. + # Corresponds to the JSON property `contentSecurityProviders` + # @return [Array] + attr_accessor :content_security_providers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content_security_providers = args[:content_security_providers] if args.key?(:content_security_providers) + end + end + + # ContentSecurityProvider contains the name of content security provider. + class ContentSecurityProvider + include Google::Apis::Core::Hashable + + # Name of security service for content scanning, such as Google Cloud Model + # Armor or supported third-party ISV solutions. If it is Google 1P service, the + # name should be prefixed with `services/`. If it is a 3P service, the format + # needs to be documented. The currently supported values are: - `services/ + # modelarmor.googleapis.com` for Google Cloud Model Armor. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + end + end + # `Context` defines which contexts an API requests. Example: context: rules: - # selector: "*" requested: - google.rpc.context.ProjectContext - google.rpc. # context.OriginContext The above specifies that all methods in the API request ` @@ -1809,7 +1861,11 @@ def update!(**args) end end - # Enum type definition. + # Enum type definition. New usages of this message as an alternative to + # EnumDescriptorProto are strongly discouraged. This message does not + # reliability preserve all information necessary to model the schema and + # preserve semantics. Instead make use of FileDescriptorSet which preserves the + # necessary information. class Enum include Google::Apis::Core::Hashable @@ -1859,7 +1915,11 @@ def update!(**args) end end - # Enum value definition. + # Enum value definition. New usages of this message as an alternative to + # EnumValueDescriptorProto are strongly discouraged. This message does not + # reliability preserve all information necessary to model the schema and + # preserve semantics. Instead make use of FileDescriptorSet which preserves the + # necessary information. class EnumValue include Google::Apis::Core::Hashable @@ -1933,7 +1993,11 @@ def update!(**args) end end - # A single field of a message type. + # A single field of a message type. New usages of this message as an alternative + # to FieldDescriptorProto are strongly discouraged. This message does not + # reliability preserve all information necessary to model the schema and + # preserve semantics. Instead make use of FileDescriptorSet which preserves the + # necessary information. class Field include Google::Apis::Core::Hashable @@ -2103,7 +2167,8 @@ class GoSettings # Map of service names to renamed services. Keys are the package relative # service names and values are the name to be used for the service client and - # call options. publishing: go_settings: renamed_services: Publisher: TopicAdmin + # call options. Example: publishing: go_settings: renamed_services: Publisher: + # TopicAdmin # Corresponds to the JSON property `renamedServices` # @return [Hash] attr_accessor :renamed_services @@ -2938,8 +3003,8 @@ class GoogleApiServiceusageV2betaConsumerPolicy # @return [Array] attr_accessor :enable_rules - # Output only. An opaque tag indicating the current version of the policy, used - # for concurrency control. + # An opaque tag indicating the current version of the policy, used for + # concurrency control. # Corresponds to the JSON property `etag` # @return [String] attr_accessor :etag @@ -3005,6 +3070,14 @@ class GoogleApiServiceusageV2betaImpact # @return [String] attr_accessor :impact_type + # 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 :missing_dependency + def initialize(**args) update!(**args) end @@ -3013,6 +3086,7 @@ def initialize(**args) def update!(**args) @detail = args[:detail] if args.key?(:detail) @impact_type = args[:impact_type] if args.key?(:impact_type) + @missing_dependency = args[:missing_dependency] if args.key?(:missing_dependency) end end @@ -3732,10 +3806,115 @@ def update!(**args) end end - # Method represents a method of an API interface. + # McpEnableRule contains MCP enablement related rules. + class McpEnableRule + include Google::Apis::Core::Hashable + + # List of enabled MCP services. + # Corresponds to the JSON property `mcpServices` + # @return [Array] + attr_accessor :mcp_services + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @mcp_services = args[:mcp_services] if args.key?(:mcp_services) + end + end + + # MCP Consumer Policy is a set of rules that define MCP related policy for a + # cloud resource hierarchy. + class McpPolicy + include Google::Apis::Core::Hashable + + # ContentSecurity defines the content security related fields of a MCP policy. + # Corresponds to the JSON property `contentSecurity` + # @return [Google::Apis::ServiceusageV1::ContentSecurity] + attr_accessor :content_security + + # Output only. The time the policy was created. For singleton policies (such as + # the `default` policy), this is the first touch of the policy. + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # An opaque tag indicating the current version of the policy, used for + # concurrency control. + # Corresponds to the JSON property `etag` + # @return [String] + attr_accessor :etag + + # McpEnableRules contains MCP enablement related rules. + # Corresponds to the JSON property `mcpEnableRules` + # @return [Array] + attr_accessor :mcp_enable_rules + + # Output only. The resource name of the policy. Only the `default` policy is + # supported. We allow the following formats: `projects/`PROJECT_NUMBER`/ + # mcpPolicies/default`, `projects/`PROJECT_ID`/mcpPolicies/default`, `folders/` + # FOLDER_ID`/mcpPolicies/default`, `organizations/`ORG_ID`/mcpPolicies/default`. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. The time the policy was last updated. + # Corresponds to the JSON property `updateTime` + # @return [String] + attr_accessor :update_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @content_security = args[:content_security] if args.key?(:content_security) + @create_time = args[:create_time] if args.key?(:create_time) + @etag = args[:etag] if args.key?(:etag) + @mcp_enable_rules = args[:mcp_enable_rules] if args.key?(:mcp_enable_rules) + @name = args[:name] if args.key?(:name) + @update_time = args[:update_time] if args.key?(:update_time) + end + end + + # McpService contains the service names that are enabled for MCP. + class McpService + include Google::Apis::Core::Hashable + + # The names of the services that are enabled for MCP. Example: `services/library- + # example.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) + @service = args[:service] if args.key?(:service) + end + end + + # Method represents a method of an API interface. New usages of this message as + # an alternative to MethodDescriptorProto are strongly discouraged. This message + # does not reliability preserve all information necessary to model the schema + # and preserve semantics. Instead make use of FileDescriptorSet which preserves + # the necessary information. class MethodProp include Google::Apis::Core::Hashable + # The source edition string, only valid when syntax is SYNTAX_EDITIONS. This + # field should be ignored, instead the edition should be inherited from Api. + # This is similar to Field and EnumValue. + # Corresponds to the JSON property `edition` + # @return [String] + attr_accessor :edition + # The simple name of this method. # Corresponds to the JSON property `name` # @return [String] @@ -3768,7 +3947,8 @@ class MethodProp # @return [String] attr_accessor :response_type_url - # The source syntax of this method. + # The source syntax of this method. This field should be ignored, instead the + # syntax should be inherited from Api. This is similar to Field and EnumValue. # Corresponds to the JSON property `syntax` # @return [String] attr_accessor :syntax @@ -3779,6 +3959,7 @@ def initialize(**args) # Update properties of this object def update!(**args) + @edition = args[:edition] if args.key?(:edition) @name = args[:name] if args.key?(:name) @options = args[:options] if args.key?(:options) @request_streaming = args[:request_streaming] if args.key?(:request_streaming) @@ -4421,7 +4602,9 @@ def update!(**args) end # A protocol buffer option, which can be attached to a message, field, - # enumeration, etc. + # enumeration, etc. New usages of this message as an alternative to FileOptions, + # MessageOptions, FieldOptions, EnumOptions, EnumValueOptions, ServiceOptions, + # or MethodOptions are strongly discouraged. class Option include Google::Apis::Core::Hashable @@ -5160,7 +5343,11 @@ def update!(**args) end end - # A protocol buffer message type. + # A protocol buffer message type. New usages of this message as an alternative + # to DescriptorProto are strongly discouraged. This message does not reliability + # preserve all information necessary to model the schema and preserve semantics. + # Instead make use of FileDescriptorSet which preserves the necessary + # information. class Type include Google::Apis::Core::Hashable @@ -5244,6 +5431,19 @@ def update!(**args) end end + # Metadata for the `UpdateMcpPolicy` method. + class UpdateMcpPolicyMetadata + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + # Configuration controlling usage of a service. class Usage include Google::Apis::Core::Hashable 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 abd9fd0b4bd..52073de51a5 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.69.0" + GEM_VERSION = "0.70.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20250619" + REVISION = "20250919" 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 9a95c6b8e2c..71b1b822b9d 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 @@ -196,6 +196,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ContentSecurity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ContentSecurityProvider + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Context class Representation < Google::Apis::Core::JsonRepresentation; end @@ -574,6 +586,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class McpEnableRule + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class McpPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class McpService + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class MethodProp class Representation < Google::Apis::Core::JsonRepresentation; end @@ -790,6 +820,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class UpdateMcpPolicyMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Usage class Representation < Google::Apis::Core::JsonRepresentation; end @@ -866,6 +902,7 @@ class Representation < Google::Apis::Core::JsonRepresentation class Api # @private class Representation < Google::Apis::Core::JsonRepresentation + property :edition, as: 'edition' collection :methods_prop, as: 'methods', class: Google::Apis::ServiceusageV1::MethodProp, decorator: Google::Apis::ServiceusageV1::MethodProp::Representation collection :mixins, as: 'mixins', class: Google::Apis::ServiceusageV1::Mixin, decorator: Google::Apis::ServiceusageV1::Mixin::Representation @@ -1100,6 +1137,21 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class ContentSecurity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :content_security_providers, as: 'contentSecurityProviders', class: Google::Apis::ServiceusageV1::ContentSecurityProvider, decorator: Google::Apis::ServiceusageV1::ContentSecurityProvider::Representation + + end + end + + class ContentSecurityProvider + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + end + end + class Context # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1565,6 +1617,7 @@ class GoogleApiServiceusageV2betaImpact class Representation < Google::Apis::Core::JsonRepresentation property :detail, as: 'detail' property :impact_type, as: 'impactType' + property :missing_dependency, as: 'missingDependency' end end @@ -1738,9 +1791,39 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class McpEnableRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :mcp_services, as: 'mcpServices', class: Google::Apis::ServiceusageV1::McpService, decorator: Google::Apis::ServiceusageV1::McpService::Representation + + end + end + + class McpPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :content_security, as: 'contentSecurity', class: Google::Apis::ServiceusageV1::ContentSecurity, decorator: Google::Apis::ServiceusageV1::ContentSecurity::Representation + + property :create_time, as: 'createTime' + property :etag, as: 'etag' + collection :mcp_enable_rules, as: 'mcpEnableRules', class: Google::Apis::ServiceusageV1::McpEnableRule, decorator: Google::Apis::ServiceusageV1::McpEnableRule::Representation + + property :name, as: 'name' + property :update_time, as: 'updateTime' + end + end + + class McpService + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :service, as: 'service' + end + end + class MethodProp # @private class Representation < Google::Apis::Core::JsonRepresentation + property :edition, as: 'edition' property :name, as: 'name' collection :options, as: 'options', class: Google::Apis::ServiceusageV1::Option, decorator: Google::Apis::ServiceusageV1::Option::Representation @@ -2092,6 +2175,12 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class UpdateMcpPolicyMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + class Usage # @private class Representation < Google::Apis::Core::JsonRepresentation