From 6e81c8fe1a7809f90f4744edffa1593a5757704d Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 1 Sep 2024 00:22:19 -0700 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2765) --- alloydb/v1beta/alloydb-api.json | 10 +++- alloydb/v1beta/alloydb-gen.go | 23 +++++--- pagespeedonline/v5/pagespeedonline-api.json | 38 ++++++++++++- pagespeedonline/v5/pagespeedonline-gen.go | 59 +++++++++++++++++++++ 4 files changed, 121 insertions(+), 9 deletions(-) diff --git a/alloydb/v1beta/alloydb-api.json b/alloydb/v1beta/alloydb-api.json index 94061ecd229..28159a4070f 100644 --- a/alloydb/v1beta/alloydb-api.json +++ b/alloydb/v1beta/alloydb-api.json @@ -1486,7 +1486,7 @@ } } }, - "revision": "20240806", + "revision": "20240823", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AuthorizedNetwork": { @@ -3437,6 +3437,10 @@ "description": "Configuration for availability of database instance", "id": "StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration", "properties": { + "automaticFailoverRoutingConfigured": { + "description": "Checks for existence of (multi-cluster) routing configuration that allows automatic failover to a different zone/region in case of an outage. Applicable to Bigtable resources.", + "type": "boolean" + }, "availabilityType": { "description": "Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone. Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from more than one zone in a region (it is highly available).", "enum": [ @@ -5028,6 +5032,10 @@ }, "type": "array" }, + "keepExtraRoles": { + "description": "Input only. If the user already exists and it has additional roles, keep them granted.", + "type": "boolean" + }, "name": { "description": "Output only. Name of the resource in the form of projects/{project}/locations/{location}/cluster/{cluster}/users/{user}.", "readOnly": true, diff --git a/alloydb/v1beta/alloydb-gen.go b/alloydb/v1beta/alloydb-gen.go index 5a3e3d5d6d3..724614a50ac 100644 --- a/alloydb/v1beta/alloydb-gen.go +++ b/alloydb/v1beta/alloydb-gen.go @@ -2471,6 +2471,10 @@ func (s Status) MarshalJSON() ([]byte, error) { // StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration: // Configuration for availability of database instance type StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration struct { + // AutomaticFailoverRoutingConfigured: Checks for existence of (multi-cluster) + // routing configuration that allows automatic failover to a different + // zone/region in case of an outage. Applicable to Bigtable resources. + AutomaticFailoverRoutingConfigured bool `json:"automaticFailoverRoutingConfigured,omitempty"` // AvailabilityType: Availability type. Potential values: * `ZONAL`: The // instance serves data from only one zone. Outages in that zone affect data // accessibility. * `REGIONAL`: The instance can serve data from more than one @@ -2488,16 +2492,18 @@ type StorageDatabasecenterPartnerapiV1mainAvailabilityConfiguration struct { CrossRegionReplicaConfigured bool `json:"crossRegionReplicaConfigured,omitempty"` ExternalReplicaConfigured bool `json:"externalReplicaConfigured,omitempty"` PromotableReplicaConfigured bool `json:"promotableReplicaConfigured,omitempty"` - // ForceSendFields is a list of field names (e.g. "AvailabilityType") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See + // ForceSendFields is a list of field names (e.g. + // "AutomaticFailoverRoutingConfigured") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted from + // API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AvailabilityType") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + // NullFields is a list of field names (e.g. + // "AutomaticFailoverRoutingConfigured") to include in API requests with the + // JSON null value. By default, fields with empty values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for + // more details. NullFields []string `json:"-"` } @@ -3957,6 +3963,9 @@ type User struct { // DatabaseRoles: Optional. List of database roles this user has. The database // role strings are subject to the PostgreSQL naming conventions. DatabaseRoles []string `json:"databaseRoles,omitempty"` + // KeepExtraRoles: Input only. If the user already exists and it has additional + // roles, keep them granted. + KeepExtraRoles bool `json:"keepExtraRoles,omitempty"` // Name: Output only. Name of the resource in the form of // projects/{project}/locations/{location}/cluster/{cluster}/users/{user}. Name string `json:"name,omitempty"` diff --git a/pagespeedonline/v5/pagespeedonline-api.json b/pagespeedonline/v5/pagespeedonline-api.json index ce2682aa7a0..6c2715868fd 100644 --- a/pagespeedonline/v5/pagespeedonline-api.json +++ b/pagespeedonline/v5/pagespeedonline-api.json @@ -201,7 +201,7 @@ } } }, - "revision": "20240509", + "revision": "20240829", "rootUrl": "https://pagespeedonline.googleapis.com/", "schemas": { "AuditRefs": { @@ -432,6 +432,10 @@ "description": "The audit's id.", "type": "string" }, + "metricSavings": { + "$ref": "MetricSavings", + "description": "The metric savings of the audit." + }, "numericUnit": { "description": "The unit of the numeric_value field. Used to format the numeric value for display.", "type": "string" @@ -592,6 +596,38 @@ }, "type": "object" }, + "MetricSavings": { + "description": "The metric savings of the audit.", + "id": "MetricSavings", + "properties": { + "CLS": { + "description": "Optional. Optional numeric value representing the audit's savings for the CLS metric.", + "format": "double", + "type": "number" + }, + "FCP": { + "description": "Optional. Optional numeric value representing the audit's savings for the FCP metric.", + "format": "double", + "type": "number" + }, + "INP": { + "description": "Optional. Optional numeric value representing the audit's savings for the INP metric.", + "format": "double", + "type": "number" + }, + "LCP": { + "description": "Optional. Optional numeric value representing the audit's savings for the LCP metric.", + "format": "double", + "type": "number" + }, + "TBT": { + "description": "Optional. Optional numeric value representing the audit's savings for the TBT metric.", + "format": "double", + "type": "number" + } + }, + "type": "object" + }, "PagespeedApiLoadingExperienceV5": { "description": "The CrUX loading experience object that contains CrUX data breakdowns.", "id": "PagespeedApiLoadingExperienceV5", diff --git a/pagespeedonline/v5/pagespeedonline-gen.go b/pagespeedonline/v5/pagespeedonline-gen.go index f4401720182..7f33562ce0d 100644 --- a/pagespeedonline/v5/pagespeedonline-gen.go +++ b/pagespeedonline/v5/pagespeedonline-gen.go @@ -458,6 +458,8 @@ type LighthouseAuditResultV5 struct { Explanation string `json:"explanation,omitempty"` // Id: The audit's id. Id string `json:"id,omitempty"` + // MetricSavings: The metric savings of the audit. + MetricSavings *MetricSavings `json:"metricSavings,omitempty"` // NumericUnit: The unit of the numeric_value field. Used to format the numeric // value for display. NumericUnit string `json:"numericUnit,omitempty"` @@ -600,6 +602,63 @@ func (s LighthouseResultV5) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// MetricSavings: The metric savings of the audit. +type MetricSavings struct { + // CLS: Optional. Optional numeric value representing the audit's savings for + // the CLS metric. + CLS float64 `json:"CLS,omitempty"` + // FCP: Optional. Optional numeric value representing the audit's savings for + // the FCP metric. + FCP float64 `json:"FCP,omitempty"` + // INP: Optional. Optional numeric value representing the audit's savings for + // the INP metric. + INP float64 `json:"INP,omitempty"` + // LCP: Optional. Optional numeric value representing the audit's savings for + // the LCP metric. + LCP float64 `json:"LCP,omitempty"` + // TBT: Optional. Optional numeric value representing the audit's savings for + // the TBT metric. + TBT float64 `json:"TBT,omitempty"` + // ForceSendFields is a list of field names (e.g. "CLS") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CLS") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s MetricSavings) MarshalJSON() ([]byte, error) { + type NoMethod MetricSavings + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +func (s *MetricSavings) UnmarshalJSON(data []byte) error { + type NoMethod MetricSavings + var s1 struct { + CLS gensupport.JSONFloat64 `json:"CLS"` + FCP gensupport.JSONFloat64 `json:"FCP"` + INP gensupport.JSONFloat64 `json:"INP"` + LCP gensupport.JSONFloat64 `json:"LCP"` + TBT gensupport.JSONFloat64 `json:"TBT"` + *NoMethod + } + s1.NoMethod = (*NoMethod)(s) + if err := json.Unmarshal(data, &s1); err != nil { + return err + } + s.CLS = float64(s1.CLS) + s.FCP = float64(s1.FCP) + s.INP = float64(s1.INP) + s.LCP = float64(s1.LCP) + s.TBT = float64(s1.TBT) + return nil +} + // PagespeedApiLoadingExperienceV5: The CrUX loading experience object that // contains CrUX data breakdowns. type PagespeedApiLoadingExperienceV5 struct {