diff --git a/api_names_out.yaml b/api_names_out.yaml index 0db360812b9..7090e2498e3 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -171752,6 +171752,9 @@ "/datastream:v1alpha1/BackfillJob/state": state "/datastream:v1alpha1/BackfillJob/trigger": trigger "/datastream:v1alpha1/BackfillNoneStrategy": backfill_none_strategy +"/datastream:v1alpha1/BadRequest": bad_request +"/datastream:v1alpha1/BadRequest/fieldViolations": field_violations +"/datastream:v1alpha1/BadRequest/fieldViolations/field_violation": field_violation "/datastream:v1alpha1/CancelOperationRequest": cancel_operation_request "/datastream:v1alpha1/ConnectionProfile": connection_profile "/datastream:v1alpha1/ConnectionProfile/createTime": create_time @@ -171767,6 +171770,10 @@ "/datastream:v1alpha1/ConnectionProfile/privateConnectivity": private_connectivity "/datastream:v1alpha1/ConnectionProfile/staticServiceIpConnectivity": static_service_ip_connectivity "/datastream:v1alpha1/ConnectionProfile/updateTime": update_time +"/datastream:v1alpha1/DebugInfo": debug_info +"/datastream:v1alpha1/DebugInfo/detail": detail +"/datastream:v1alpha1/DebugInfo/stackEntries": stack_entries +"/datastream:v1alpha1/DebugInfo/stackEntries/stack_entry": stack_entry "/datastream:v1alpha1/DestinationConfig": destination_config "/datastream:v1alpha1/DestinationConfig/destinationConnectionProfileName": destination_connection_profile_name "/datastream:v1alpha1/DestinationConfig/gcsDestinationConfig": gcs_destination_config @@ -171789,6 +171796,11 @@ "/datastream:v1alpha1/Error/errorUuid": error_uuid "/datastream:v1alpha1/Error/message": message "/datastream:v1alpha1/Error/reason": reason +"/datastream:v1alpha1/ErrorInfo": error_info +"/datastream:v1alpha1/ErrorInfo/domain": domain +"/datastream:v1alpha1/ErrorInfo/metadata": metadata +"/datastream:v1alpha1/ErrorInfo/metadata/metadatum": metadatum +"/datastream:v1alpha1/ErrorInfo/reason": reason "/datastream:v1alpha1/FetchErrorsRequest": fetch_errors_request "/datastream:v1alpha1/FetchErrorsResponse": fetch_errors_response "/datastream:v1alpha1/FetchErrorsResponse/errors": errors @@ -171797,6 +171809,11 @@ "/datastream:v1alpha1/FetchStaticIpsResponse/nextPageToken": next_page_token "/datastream:v1alpha1/FetchStaticIpsResponse/staticIps": static_ips "/datastream:v1alpha1/FetchStaticIpsResponse/staticIps/static_ip": static_ip +"/datastream:v1alpha1/FieldViolation": field_violation +"/datastream:v1alpha1/FieldViolation/description": description +"/datastream:v1alpha1/FieldViolation/field": field +"/datastream:v1alpha1/FieldViolation/localizedMessage": localized_message +"/datastream:v1alpha1/FieldViolation/reason": reason "/datastream:v1alpha1/ForwardSshTunnelConnectivity": forward_ssh_tunnel_connectivity "/datastream:v1alpha1/ForwardSshTunnelConnectivity/hostname": hostname "/datastream:v1alpha1/ForwardSshTunnelConnectivity/password": password @@ -171813,9 +171830,15 @@ "/datastream:v1alpha1/GcsProfile": gcs_profile "/datastream:v1alpha1/GcsProfile/bucketName": bucket_name "/datastream:v1alpha1/GcsProfile/rootPath": root_path +"/datastream:v1alpha1/Help": help +"/datastream:v1alpha1/Help/links": links +"/datastream:v1alpha1/Help/links/link": link "/datastream:v1alpha1/JsonFileFormat": json_file_format "/datastream:v1alpha1/JsonFileFormat/compression": compression "/datastream:v1alpha1/JsonFileFormat/schemaFileFormat": schema_file_format +"/datastream:v1alpha1/Link": link +"/datastream:v1alpha1/Link/description": description +"/datastream:v1alpha1/Link/url": url "/datastream:v1alpha1/ListConnectionProfilesResponse": list_connection_profiles_response "/datastream:v1alpha1/ListConnectionProfilesResponse/connectionProfiles": connection_profiles "/datastream:v1alpha1/ListConnectionProfilesResponse/connectionProfiles/connection_profile": connection_profile @@ -171854,6 +171877,9 @@ "/datastream:v1alpha1/ListStreamsResponse/streams/stream": stream "/datastream:v1alpha1/ListStreamsResponse/unreachable": unreachable "/datastream:v1alpha1/ListStreamsResponse/unreachable/unreachable": unreachable +"/datastream:v1alpha1/LocalizedMessage": localized_message +"/datastream:v1alpha1/LocalizedMessage/locale": locale +"/datastream:v1alpha1/LocalizedMessage/message": message "/datastream:v1alpha1/Location": location "/datastream:v1alpha1/Location/displayName": display_name "/datastream:v1alpha1/Location/labels": labels @@ -171955,6 +171981,13 @@ "/datastream:v1alpha1/OracleTable/oracleColumns": oracle_columns "/datastream:v1alpha1/OracleTable/oracleColumns/oracle_column": oracle_column "/datastream:v1alpha1/OracleTable/tableName": table_name +"/datastream:v1alpha1/PreconditionFailure": precondition_failure +"/datastream:v1alpha1/PreconditionFailure/violations": violations +"/datastream:v1alpha1/PreconditionFailure/violations/violation": violation +"/datastream:v1alpha1/PreconditionFailureViolation": precondition_failure_violation +"/datastream:v1alpha1/PreconditionFailureViolation/description": description +"/datastream:v1alpha1/PreconditionFailureViolation/subject": subject +"/datastream:v1alpha1/PreconditionFailureViolation/type": type "/datastream:v1alpha1/PrivateConnection": private_connection "/datastream:v1alpha1/PrivateConnection/createTime": create_time "/datastream:v1alpha1/PrivateConnection/displayName": display_name @@ -171967,6 +172000,29 @@ "/datastream:v1alpha1/PrivateConnection/vpcPeeringConfig": vpc_peering_config "/datastream:v1alpha1/PrivateConnectivity": private_connectivity "/datastream:v1alpha1/PrivateConnectivity/privateConnectionName": private_connection_name +"/datastream:v1alpha1/QuotaFailure": quota_failure +"/datastream:v1alpha1/QuotaFailure/violations": violations +"/datastream:v1alpha1/QuotaFailure/violations/violation": violation +"/datastream:v1alpha1/QuotaFailureViolation": quota_failure_violation +"/datastream:v1alpha1/QuotaFailureViolation/apiService": api_service +"/datastream:v1alpha1/QuotaFailureViolation/description": description +"/datastream:v1alpha1/QuotaFailureViolation/futureQuotaValue": future_quota_value +"/datastream:v1alpha1/QuotaFailureViolation/quotaDimensions": quota_dimensions +"/datastream:v1alpha1/QuotaFailureViolation/quotaDimensions/quota_dimension": quota_dimension +"/datastream:v1alpha1/QuotaFailureViolation/quotaId": quota_id +"/datastream:v1alpha1/QuotaFailureViolation/quotaMetric": quota_metric +"/datastream:v1alpha1/QuotaFailureViolation/quotaValue": quota_value +"/datastream:v1alpha1/QuotaFailureViolation/subject": subject +"/datastream:v1alpha1/RequestInfo": request_info +"/datastream:v1alpha1/RequestInfo/requestId": request_id +"/datastream:v1alpha1/RequestInfo/servingData": serving_data +"/datastream:v1alpha1/ResourceInfo": resource_info +"/datastream:v1alpha1/ResourceInfo/description": description +"/datastream:v1alpha1/ResourceInfo/owner": owner +"/datastream:v1alpha1/ResourceInfo/resourceName": resource_name +"/datastream:v1alpha1/ResourceInfo/resourceType": resource_type +"/datastream:v1alpha1/RetryInfo": retry_info +"/datastream:v1alpha1/RetryInfo/retryDelay": retry_delay "/datastream:v1alpha1/Route": route "/datastream:v1alpha1/Route/createTime": create_time "/datastream:v1alpha1/Route/destinationAddress": destination_address diff --git a/generated/google-apis-datastream_v1alpha1/CHANGELOG.md b/generated/google-apis-datastream_v1alpha1/CHANGELOG.md index f71b5baa965..25ed7ba7681 100644 --- a/generated/google-apis-datastream_v1alpha1/CHANGELOG.md +++ b/generated/google-apis-datastream_v1alpha1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-datastream_v1alpha1 +### v0.29.0 (2026-02-15) + +* Regenerated from discovery document revision 20260204 + ### v0.28.0 (2026-02-08) * Regenerated from discovery document revision 20260128 diff --git a/generated/google-apis-datastream_v1alpha1/lib/google/apis/datastream_v1alpha1/classes.rb b/generated/google-apis-datastream_v1alpha1/lib/google/apis/datastream_v1alpha1/classes.rb index 3868e69cb88..b3400c8c227 100644 --- a/generated/google-apis-datastream_v1alpha1/lib/google/apis/datastream_v1alpha1/classes.rb +++ b/generated/google-apis-datastream_v1alpha1/lib/google/apis/datastream_v1alpha1/classes.rb @@ -117,6 +117,26 @@ def update!(**args) end end + # Describes violations in a client request. This error type focuses on the + # syntactic aspects of the request. + class BadRequest + include Google::Apis::Core::Hashable + + # Describes all violations in a client request. + # Corresponds to the JSON property `fieldViolations` + # @return [Array] + attr_accessor :field_violations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @field_violations = args[:field_violations] if args.key?(:field_violations) + end + end + # The request message for Operations.CancelOperation. class CancelOperationRequest include Google::Apis::Core::Hashable @@ -215,6 +235,31 @@ def update!(**args) end end + # Describes additional debugging info. + class DebugInfo + include Google::Apis::Core::Hashable + + # Additional debugging information provided by the server. + # Corresponds to the JSON property `detail` + # @return [String] + attr_accessor :detail + + # The stack trace entries indicating where the error occurred. + # Corresponds to the JSON property `stackEntries` + # @return [Array] + attr_accessor :stack_entries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @detail = args[:detail] if args.key?(:detail) + @stack_entries = args[:stack_entries] if args.key?(:stack_entries) + end + end + # The configuration of the stream destination. class DestinationConfig include Google::Apis::Core::Hashable @@ -389,6 +434,58 @@ def update!(**args) end end + # Describes the cause of the error with structured details. Example of an error + # when contacting the "pubsub.googleapis.com" API when it is not enabled: ` " + # reason": "API_DISABLED" "domain": "googleapis.com" "metadata": ` "resource": " + # projects/123", "service": "pubsub.googleapis.com" ` ` This response indicates + # that the pubsub.googleapis.com API is not enabled. Example of an error that is + # returned when attempting to create a Spanner instance in a region that is out + # of stock: ` "reason": "STOCKOUT" "domain": "spanner.googleapis.com", "metadata" + # : ` "availableRegions": "us-central1,us-east2" ` ` + class ErrorInfo + include Google::Apis::Core::Hashable + + # The logical grouping to which the "reason" belongs. The error domain is + # typically the registered service name of the tool or product that generates + # the error. Example: "pubsub.googleapis.com". If the error is generated by some + # common infrastructure, the error domain must be a globally unique value that + # identifies the infrastructure. For Google API infrastructure, the error domain + # is "googleapis.com". + # Corresponds to the JSON property `domain` + # @return [String] + attr_accessor :domain + + # Additional structured details about this error. Keys must match a regular + # expression of `a-z+` but should ideally be lowerCamelCase. Also, they must be + # limited to 64 characters in length. When identifying the current value of an + # exceeded limit, the units should be contained in the key, not the value. For + # example, rather than ``"instanceLimit": "100/request"``, should be returned as, + # ``"instanceLimitPerRequest": "100"``, if the client exceeds the number of + # instances that can be created in a single (batch) request. + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + # The reason of the error. This is a constant value that identifies the + # proximate cause of the error. Error reasons are unique within a particular + # domain of errors. This should be at most 63 characters and match a regular + # expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @domain = args[:domain] if args.key?(:domain) + @metadata = args[:metadata] if args.key?(:metadata) + @reason = args[:reason] if args.key?(:reason) + end + end + # Request message for 'FetchErrors' request. class FetchErrorsRequest include Google::Apis::Core::Hashable @@ -447,6 +544,61 @@ def update!(**args) end end + # A message type used to describe a single bad request field. + class FieldViolation + include Google::Apis::Core::Hashable + + # A description of why the request element is bad. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # A path that leads to a field in the request body. The value will be a sequence + # of dot-separated identifiers that identify a protocol buffer field. Consider + # the following: message CreateContactRequest ` message EmailAddress ` enum Type + # ` TYPE_UNSPECIFIED = 0; HOME = 1; WORK = 2; ` optional string email = 1; + # repeated EmailType type = 2; ` string full_name = 1; repeated EmailAddress + # email_addresses = 2; ` In this example, in proto `field` could take one of the + # following values: * `full_name` for a violation in the `full_name` value * ` + # email_addresses[1].email` for a violation in the `email` field of the first ` + # email_addresses` message * `email_addresses[3].type[2]` for a violation in the + # second `type` value in the third `email_addresses` message. In JSON, the same + # values are represented as: * `fullName` for a violation in the `fullName` + # value * `emailAddresses[1].email` for a violation in the `email` field of the + # first `emailAddresses` message * `emailAddresses[3].type[2]` for a violation + # in the second `type` value in the third `emailAddresses` message. + # Corresponds to the JSON property `field` + # @return [String] + attr_accessor :field + + # Provides a localized error message that is safe to return to the user which + # can be attached to an RPC error. + # Corresponds to the JSON property `localizedMessage` + # @return [Google::Apis::DatastreamV1alpha1::LocalizedMessage] + attr_accessor :localized_message + + # The reason of the field-level error. This is a constant value that identifies + # the proximate cause of the field-level error. It should uniquely identify the + # type of the FieldViolation within the scope of the google.rpc.ErrorInfo.domain. + # This should be at most 63 characters and match a regular expression of `A-Z+[ + # A-Z0-9]`, which represents UPPER_SNAKE_CASE. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @field = args[:field] if args.key?(:field) + @localized_message = args[:localized_message] if args.key?(:localized_message) + @reason = args[:reason] if args.key?(:reason) + end + end + # Forward SSH Tunnel connectivity. class ForwardSshTunnelConnectivity include Google::Apis::Core::Hashable @@ -567,6 +719,28 @@ def update!(**args) end end + # Provides links to documentation or for performing an out of band action. For + # example, if a quota check failed with an error indicating the calling project + # hasn't enabled the accessed service, this can contain a URL pointing directly + # to the right place in the developer console to flip the bit. + class Help + include Google::Apis::Core::Hashable + + # URL(s) pointing to additional information on handling the current error. + # Corresponds to the JSON property `links` + # @return [Array] + attr_accessor :links + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @links = args[:links] if args.key?(:links) + end + end + # JSON file format configuration. class JsonFileFormat include Google::Apis::Core::Hashable @@ -592,6 +766,31 @@ def update!(**args) end end + # Describes a URL link. + class Link + include Google::Apis::Core::Hashable + + # Describes what the link offers. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The URL of the link. + # Corresponds to the JSON property `url` + # @return [String] + attr_accessor :url + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @url = args[:url] if args.key?(:url) + end + end + # class ListConnectionProfilesResponse include Google::Apis::Core::Hashable @@ -804,6 +1003,33 @@ def update!(**args) end end + # Provides a localized error message that is safe to return to the user which + # can be attached to an RPC error. + class LocalizedMessage + include Google::Apis::Core::Hashable + + # The locale used following the specification defined at https://www.rfc-editor. + # org/rfc/bcp/bcp47.txt. Examples are: "en-US", "fr-CH", "es-MX" + # Corresponds to the JSON property `locale` + # @return [String] + attr_accessor :locale + + # The localized error message in the above locale. + # Corresponds to the JSON property `message` + # @return [String] + attr_accessor :message + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @locale = args[:locale] if args.key?(:locale) + @message = args[:message] if args.key?(:message) + end + end + # A resource that represents a Google Cloud location. class Location include Google::Apis::Core::Hashable @@ -1513,6 +1739,64 @@ def update!(**args) end end + # Describes what preconditions have failed. For example, if an RPC failed + # because it required the Terms of Service to be acknowledged, it could list the + # terms of service violation in the PreconditionFailure message. + class PreconditionFailure + include Google::Apis::Core::Hashable + + # Describes all precondition violations. + # Corresponds to the JSON property `violations` + # @return [Array] + attr_accessor :violations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @violations = args[:violations] if args.key?(:violations) + end + end + + # A message type used to describe a single precondition failure. + class PreconditionFailureViolation + include Google::Apis::Core::Hashable + + # A description of how the precondition failed. Developers can use this + # description to understand how to fix the failure. For example: "Terms of + # service not accepted". + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The subject, relative to the type, that failed. For example, "google.com/cloud" + # relative to the "TOS" type would indicate which terms of service is being + # referenced. + # Corresponds to the JSON property `subject` + # @return [String] + attr_accessor :subject + + # The type of PreconditionFailure. We recommend using a service-specific enum + # type to define the supported precondition violation subjects. For example, " + # TOS" for "Terms of Service violation". + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @subject = args[:subject] if args.key?(:subject) + @type = args[:type] if args.key?(:type) + end + end + # The PrivateConnection resource is used to establish private connectivity # between Datastream and a customer's network. class PrivateConnection @@ -1595,6 +1879,225 @@ def update!(**args) end end + # Describes how a quota check failed. For example if a daily limit was exceeded + # for the calling project, a service could respond with a QuotaFailure detail + # containing the project id and the description of the quota limit that was + # exceeded. If the calling project hasn't enabled the service in the developer + # console, then a service could respond with the project id and set ` + # service_disabled` to true. Also see RetryInfo and Help types for other details + # about handling a quota failure. + class QuotaFailure + include Google::Apis::Core::Hashable + + # Describes all quota violations. + # Corresponds to the JSON property `violations` + # @return [Array] + attr_accessor :violations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @violations = args[:violations] if args.key?(:violations) + end + end + + # A message type used to describe a single quota violation. For example, a daily + # quota or a custom quota that was exceeded. + class QuotaFailureViolation + include Google::Apis::Core::Hashable + + # The API Service from which the `QuotaFailure.Violation` orginates. In some + # cases, Quota issues originate from an API Service other than the one that was + # called. In other words, a dependency of the called API Service could be the + # cause of the `QuotaFailure`, and this field would have the dependency API + # service name. For example, if the called API is Kubernetes Engine API ( + # container.googleapis.com), and a quota violation occurs in the Kubernetes + # Engine API itself, this field would be "container.googleapis.com". On the + # other hand, if the quota violation occurs when the Kubernetes Engine API + # creates VMs in the Compute Engine API (compute.googleapis.com), this field + # would be "compute.googleapis.com". + # Corresponds to the JSON property `apiService` + # @return [String] + attr_accessor :api_service + + # A description of how the quota check failed. Clients can use this description + # to find more about the quota configuration in the service's public + # documentation, or find the relevant quota limit to adjust through developer + # console. For example: "Service disabled" or "Daily Limit for read operations + # exceeded". + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The new quota value being rolled out at the time of the violation. At the + # completion of the rollout, this value will be enforced in place of quota_value. + # If no rollout is in progress at the time of the violation, this field is not + # set. For example, if at the time of the violation a rollout is in progress + # changing the number of CPUs quota from 10 to 20, 20 would be the value of this + # field. + # Corresponds to the JSON property `futureQuotaValue` + # @return [Fixnum] + attr_accessor :future_quota_value + + # The dimensions of the violated quota. Every non-global quota is enforced on a + # set of dimensions. While quota metric defines what to count, the dimensions + # specify for what aspects the counter should be increased. For example, the + # quota "CPUs per region per VM family" enforces a limit on the metric "compute. + # googleapis.com/cpus_per_vm_family" on dimensions "region" and "vm_family". And + # if the violation occurred in region "us-central1" and for VM family "n1", the + # quota_dimensions would be, ` "region": "us-central1", "vm_family": "n1", ` + # When a quota is enforced globally, the quota_dimensions would always be empty. + # Corresponds to the JSON property `quotaDimensions` + # @return [Hash] + attr_accessor :quota_dimensions + + # The id of the violated quota. Also know as "limit name", this is the unique + # identifier of a quota in the context of an API service. For example, "CPUS-PER- + # VM-FAMILY-per-project-region". + # Corresponds to the JSON property `quotaId` + # @return [String] + attr_accessor :quota_id + + # The metric of the violated quota. A quota metric is a named counter to measure + # usage, such as API requests or CPUs. When an activity occurs in a service, + # such as Virtual Machine allocation, one or more quota metrics may be affected. + # For example, "compute.googleapis.com/cpus_per_vm_family", "storage.googleapis. + # com/internet_egress_bandwidth". + # Corresponds to the JSON property `quotaMetric` + # @return [String] + attr_accessor :quota_metric + + # The enforced quota value at the time of the `QuotaFailure`. For example, if + # the enforced quota value at the time of the `QuotaFailure` on the number of + # CPUs is "10", then the value of this field would reflect this quantity. + # Corresponds to the JSON property `quotaValue` + # @return [Fixnum] + attr_accessor :quota_value + + # The subject on which the quota check failed. For example, "clientip:" or " + # project:". + # Corresponds to the JSON property `subject` + # @return [String] + attr_accessor :subject + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @api_service = args[:api_service] if args.key?(:api_service) + @description = args[:description] if args.key?(:description) + @future_quota_value = args[:future_quota_value] if args.key?(:future_quota_value) + @quota_dimensions = args[:quota_dimensions] if args.key?(:quota_dimensions) + @quota_id = args[:quota_id] if args.key?(:quota_id) + @quota_metric = args[:quota_metric] if args.key?(:quota_metric) + @quota_value = args[:quota_value] if args.key?(:quota_value) + @subject = args[:subject] if args.key?(:subject) + end + end + + # Contains metadata about the request that clients can attach when filing a bug + # or providing other forms of feedback. + class RequestInfo + include Google::Apis::Core::Hashable + + # An opaque string that should only be interpreted by the service generating it. + # For example, it can be used to identify requests in the service's logs. + # Corresponds to the JSON property `requestId` + # @return [String] + attr_accessor :request_id + + # Any data that was used to serve this request. For example, an encrypted stack + # trace that can be sent back to the service provider for debugging. + # Corresponds to the JSON property `servingData` + # @return [String] + attr_accessor :serving_data + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @request_id = args[:request_id] if args.key?(:request_id) + @serving_data = args[:serving_data] if args.key?(:serving_data) + end + end + + # Describes the resource that is being accessed. + class ResourceInfo + include Google::Apis::Core::Hashable + + # Describes what error is encountered when accessing this resource. For example, + # updating a cloud project may require the `writer` permission on the developer + # console project. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # The owner of the resource (optional). For example, "user:" or "project:". + # Corresponds to the JSON property `owner` + # @return [String] + attr_accessor :owner + + # The name of the resource being accessed. For example, a shared calendar name: " + # example.com_4fghdhgsrgh@group.calendar.google.com", if the current error is + # google.rpc.Code.PERMISSION_DENIED. + # Corresponds to the JSON property `resourceName` + # @return [String] + attr_accessor :resource_name + + # A name for the type of resource being accessed, e.g. "sql table", "cloud + # storage bucket", "file", "Google calendar"; or the type URL of the resource: e. + # g. "type.googleapis.com/google.pubsub.v1.Topic". + # Corresponds to the JSON property `resourceType` + # @return [String] + attr_accessor :resource_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @description = args[:description] if args.key?(:description) + @owner = args[:owner] if args.key?(:owner) + @resource_name = args[:resource_name] if args.key?(:resource_name) + @resource_type = args[:resource_type] if args.key?(:resource_type) + end + end + + # Describes when the clients can retry a failed request. Clients could ignore + # the recommendation here or retry when this information is missing from error + # responses. It's always recommended that clients should use exponential backoff + # when retrying. Clients should wait until `retry_delay` amount of time has + # passed since receiving the error response before retrying. If retrying + # requests also fail, clients should use an exponential backoff scheme to + # gradually increase the delay between retries based on `retry_delay`, until + # either a maximum number of retries have been reached or a maximum retry delay + # cap has been reached. + class RetryInfo + include Google::Apis::Core::Hashable + + # Clients should wait at least this long between retrying the same request. + # Corresponds to the JSON property `retryDelay` + # @return [String] + attr_accessor :retry_delay + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @retry_delay = args[:retry_delay] if args.key?(:retry_delay) + end + end + # The Route resource is the child of the PrivateConnection resource. It used to # define a route for a PrivateConnection setup. class Route diff --git a/generated/google-apis-datastream_v1alpha1/lib/google/apis/datastream_v1alpha1/gem_version.rb b/generated/google-apis-datastream_v1alpha1/lib/google/apis/datastream_v1alpha1/gem_version.rb index 5c8d1a4db18..cbfb38bc135 100644 --- a/generated/google-apis-datastream_v1alpha1/lib/google/apis/datastream_v1alpha1/gem_version.rb +++ b/generated/google-apis-datastream_v1alpha1/lib/google/apis/datastream_v1alpha1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module DatastreamV1alpha1 # Version of the google-apis-datastream_v1alpha1 gem - GEM_VERSION = "0.28.0" + GEM_VERSION = "0.29.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 = "20260128" + REVISION = "20260204" end end end diff --git a/generated/google-apis-datastream_v1alpha1/lib/google/apis/datastream_v1alpha1/representations.rb b/generated/google-apis-datastream_v1alpha1/lib/google/apis/datastream_v1alpha1/representations.rb index f67fed2edd4..f5286ca7760 100644 --- a/generated/google-apis-datastream_v1alpha1/lib/google/apis/datastream_v1alpha1/representations.rb +++ b/generated/google-apis-datastream_v1alpha1/lib/google/apis/datastream_v1alpha1/representations.rb @@ -46,6 +46,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class BadRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CancelOperationRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -58,6 +64,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class DebugInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DestinationConfig class Representation < Google::Apis::Core::JsonRepresentation; end @@ -94,6 +106,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ErrorInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class FetchErrorsRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -112,6 +130,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class FieldViolation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ForwardSshTunnelConnectivity class Representation < Google::Apis::Core::JsonRepresentation; end @@ -130,12 +154,24 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class Help + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class JsonFileFormat class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class Link + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListConnectionProfilesResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -178,6 +214,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class LocalizedMessage + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Location class Representation < Google::Apis::Core::JsonRepresentation; end @@ -292,6 +334,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class PreconditionFailure + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class PreconditionFailureViolation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class PrivateConnection class Representation < Google::Apis::Core::JsonRepresentation; end @@ -304,6 +358,36 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class QuotaFailure + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class QuotaFailureViolation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RequestInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ResourceInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class RetryInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Route class Representation < Google::Apis::Core::JsonRepresentation; end @@ -416,6 +500,14 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class BadRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :field_violations, as: 'fieldViolations', class: Google::Apis::DatastreamV1alpha1::FieldViolation, decorator: Google::Apis::DatastreamV1alpha1::FieldViolation::Representation + + end + end + class CancelOperationRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -447,6 +539,14 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class DebugInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :detail, as: 'detail' + collection :stack_entries, as: 'stackEntries' + end + end + class DestinationConfig # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -504,6 +604,15 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class ErrorInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :domain, as: 'domain' + hash :metadata, as: 'metadata' + property :reason, as: 'reason' + end + end + class FetchErrorsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -526,6 +635,17 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class FieldViolation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :field, as: 'field' + property :localized_message, as: 'localizedMessage', class: Google::Apis::DatastreamV1alpha1::LocalizedMessage, decorator: Google::Apis::DatastreamV1alpha1::LocalizedMessage::Representation + + property :reason, as: 'reason' + end + end + class ForwardSshTunnelConnectivity # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -559,6 +679,14 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class Help + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :links, as: 'links', class: Google::Apis::DatastreamV1alpha1::Link, decorator: Google::Apis::DatastreamV1alpha1::Link::Representation + + end + end + class JsonFileFormat # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -567,6 +695,14 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class Link + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :url, as: 'url' + end + end + class ListConnectionProfilesResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -635,6 +771,14 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class LocalizedMessage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :locale, as: 'locale' + property :message, as: 'message' + end + end + class Location # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -833,6 +977,23 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class PreconditionFailure + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :violations, as: 'violations', class: Google::Apis::DatastreamV1alpha1::PreconditionFailureViolation, decorator: Google::Apis::DatastreamV1alpha1::PreconditionFailureViolation::Representation + + end + end + + class PreconditionFailureViolation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :subject, as: 'subject' + property :type, as: 'type' + end + end + class PrivateConnection # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -856,6 +1017,53 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class QuotaFailure + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :violations, as: 'violations', class: Google::Apis::DatastreamV1alpha1::QuotaFailureViolation, decorator: Google::Apis::DatastreamV1alpha1::QuotaFailureViolation::Representation + + end + end + + class QuotaFailureViolation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :api_service, as: 'apiService' + property :description, as: 'description' + property :future_quota_value, :numeric_string => true, as: 'futureQuotaValue' + hash :quota_dimensions, as: 'quotaDimensions' + property :quota_id, as: 'quotaId' + property :quota_metric, as: 'quotaMetric' + property :quota_value, :numeric_string => true, as: 'quotaValue' + property :subject, as: 'subject' + end + end + + class RequestInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :request_id, as: 'requestId' + property :serving_data, as: 'servingData' + end + end + + class ResourceInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :description, as: 'description' + property :owner, as: 'owner' + property :resource_name, as: 'resourceName' + property :resource_type, as: 'resourceType' + end + end + + class RetryInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :retry_delay, as: 'retryDelay' + end + end + class Route # @private class Representation < Google::Apis::Core::JsonRepresentation