diff --git a/apigee/v1/apigee-api.json b/apigee/v1/apigee-api.json index 294fce0c68b..2e33f9d662f 100644 --- a/apigee/v1/apigee-api.json +++ b/apigee/v1/apigee-api.json @@ -8744,7 +8744,7 @@ } } }, - "revision": "20230508", + "revision": "20230526", "rootUrl": "https://apigee.googleapis.com/", "schemas": { "EdgeConfigstoreBundleBadBundle": { @@ -10972,6 +10972,13 @@ "description": "Encapsulates a metric grouped by dimension.", "id": "GoogleCloudApigeeV1DimensionMetric", "properties": { + "individualNames": { + "description": "Individual dimension names. E.g. [\"dim1_name\", \"dim2_name\"].", + "items": { + "type": "string" + }, + "type": "array" + }, "metrics": { "description": "List of metrics.", "items": { @@ -10980,7 +10987,7 @@ "type": "array" }, "name": { - "description": "Name of the dimension.", + "description": "Comma joined dimension names. E.g. \"dim1_name,dim2_name\". Deprecated. If name already has comma before join, we may get wrong splits. Please use individual_names.", "type": "string" } }, @@ -12903,7 +12910,7 @@ "description": "Addon configurations of the Apigee organization." }, "analyticsRegion": { - "description": "Required. DEPRECATED: This field will be deprecated once Apigee supports DRZ. Primary Google Cloud region for analytics data storage. For valid values, see [Create an Apigee organization](https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).", + "description": "Required. DEPRECATED: This field will eventually be deprecated and replaced with a differently-named field. Primary Google Cloud region for analytics data storage. For valid values, see [Create an Apigee organization](https://cloud.google.com/apigee/docs/api-platform/get-started/create-org).", "type": "string" }, "apiConsumerDataEncryptionKeyName": { @@ -13172,6 +13179,87 @@ }, "type": "object" }, + "GoogleCloudApigeeV1ProfileConfig": { + "description": "ProfileConfig defines a set of categories and policies which will be used to compute security score.", + "id": "GoogleCloudApigeeV1ProfileConfig", + "properties": { + "categories": { + "description": "List of categories of profile config.", + "items": { + "$ref": "GoogleCloudApigeeV1ProfileConfigCategory" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleCloudApigeeV1ProfileConfigAbuse": { + "description": "Checks for abuse, which includes any requests sent to the API for purposes other than what it is intended for, such as high volumes of requests, data scraping, and abuse related to authorization.", + "id": "GoogleCloudApigeeV1ProfileConfigAbuse", + "properties": {}, + "type": "object" + }, + "GoogleCloudApigeeV1ProfileConfigAuthorization": { + "description": "By default, following policies will be included: - JWS - JWT - OAuth - BasicAuth - APIKey", + "id": "GoogleCloudApigeeV1ProfileConfigAuthorization", + "properties": {}, + "type": "object" + }, + "GoogleCloudApigeeV1ProfileConfigCORS": { + "description": "Checks to see if you have CORS policy in place.", + "id": "GoogleCloudApigeeV1ProfileConfigCORS", + "properties": {}, + "type": "object" + }, + "GoogleCloudApigeeV1ProfileConfigCategory": { + "description": "Advanced API Security provides security profile that scores the following categories.", + "id": "GoogleCloudApigeeV1ProfileConfigCategory", + "properties": { + "abuse": { + "$ref": "GoogleCloudApigeeV1ProfileConfigAbuse", + "description": "Checks for abuse, which includes any requests sent to the API for purposes other than what it is intended for, such as high volumes of requests, data scraping, and abuse related to authorization." + }, + "authorization": { + "$ref": "GoogleCloudApigeeV1ProfileConfigAuthorization", + "description": "Checks to see if you have an authorization policy in place." + }, + "cors": { + "$ref": "GoogleCloudApigeeV1ProfileConfigCORS", + "description": "Checks to see if you have CORS policy in place." + }, + "mediation": { + "$ref": "GoogleCloudApigeeV1ProfileConfigMediation", + "description": "Checks to see if you have a mediation policy in place." + }, + "mtls": { + "$ref": "GoogleCloudApigeeV1ProfileConfigMTLS", + "description": "Checks to see if you have configured mTLS for the target server." + }, + "threat": { + "$ref": "GoogleCloudApigeeV1ProfileConfigThreat", + "description": "Checks to see if you have a threat protection policy in place." + } + }, + "type": "object" + }, + "GoogleCloudApigeeV1ProfileConfigMTLS": { + "description": "Checks to see if you have configured mTLS for the target server.", + "id": "GoogleCloudApigeeV1ProfileConfigMTLS", + "properties": {}, + "type": "object" + }, + "GoogleCloudApigeeV1ProfileConfigMediation": { + "description": "By default, following policies will be included: - OASValidation - SOAPMessageValidation", + "id": "GoogleCloudApigeeV1ProfileConfigMediation", + "properties": {}, + "type": "object" + }, + "GoogleCloudApigeeV1ProfileConfigThreat": { + "description": "By default, following policies will be included: - XMLThreatProtection - JSONThreatProtection", + "id": "GoogleCloudApigeeV1ProfileConfigThreat", + "properties": {}, + "type": "object" + }, "GoogleCloudApigeeV1Properties": { "description": "Message for compatibility with legacy Edge specification for Java Properties object in JSON.", "id": "GoogleCloudApigeeV1Properties", @@ -14379,6 +14467,10 @@ "description": "Represents a SecurityProfile resource.", "id": "GoogleCloudApigeeV1SecurityProfile", "properties": { + "description": { + "description": "Description of the security profile.", + "type": "string" + }, "displayName": { "description": "Display name of the security profile.", "type": "string" @@ -14406,6 +14498,10 @@ "description": "Immutable. Name of the security profile resource. Format: organizations/{org}/securityProfiles/{profile}", "type": "string" }, + "profileConfig": { + "$ref": "GoogleCloudApigeeV1ProfileConfig", + "description": "Customized profile configuration that computes the security score." + }, "revisionCreateTime": { "description": "Output only. The time when revision was created.", "format": "google-datetime", diff --git a/apigee/v1/apigee-gen.go b/apigee/v1/apigee-gen.go index da8c0ad0e0f..fb7cde3528a 100644 --- a/apigee/v1/apigee-gen.go +++ b/apigee/v1/apigee-gen.go @@ -4371,13 +4371,19 @@ func (s *GoogleCloudApigeeV1DeveloperSubscription) MarshalJSON() ([]byte, error) // GoogleCloudApigeeV1DimensionMetric: Encapsulates a metric grouped by // dimension. type GoogleCloudApigeeV1DimensionMetric struct { + // IndividualNames: Individual dimension names. E.g. ["dim1_name", + // "dim2_name"]. + IndividualNames []string `json:"individualNames,omitempty"` + // Metrics: List of metrics. Metrics []*GoogleCloudApigeeV1Metric `json:"metrics,omitempty"` - // Name: Name of the dimension. + // Name: Comma joined dimension names. E.g. "dim1_name,dim2_name". + // Deprecated. If name already has comma before join, we may get wrong + // splits. Please use individual_names. Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "Metrics") to + // ForceSendFields is a list of field names (e.g. "IndividualNames") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4385,12 +4391,13 @@ type GoogleCloudApigeeV1DimensionMetric struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Metrics") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IndividualNames") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } @@ -7701,9 +7708,10 @@ type GoogleCloudApigeeV1Organization struct { // AddonsConfig: Addon configurations of the Apigee organization. AddonsConfig *GoogleCloudApigeeV1AddonsConfig `json:"addonsConfig,omitempty"` - // AnalyticsRegion: Required. DEPRECATED: This field will be deprecated - // once Apigee supports DRZ. Primary Google Cloud region for analytics - // data storage. For valid values, see Create an Apigee organization + // AnalyticsRegion: Required. DEPRECATED: This field will eventually be + // deprecated and replaced with a differently-named field. Primary + // Google Cloud region for analytics data storage. For valid values, see + // Create an Apigee organization // (https://cloud.google.com/apigee/docs/api-platform/get-started/create-org). AnalyticsRegion string `json:"analyticsRegion,omitempty"` @@ -8035,6 +8043,117 @@ func (s *GoogleCloudApigeeV1Point) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// GoogleCloudApigeeV1ProfileConfig: ProfileConfig defines a set of +// categories and policies which will be used to compute security score. +type GoogleCloudApigeeV1ProfileConfig struct { + // Categories: List of categories of profile config. + Categories []*GoogleCloudApigeeV1ProfileConfigCategory `json:"categories,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Categories") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Categories") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudApigeeV1ProfileConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1ProfileConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudApigeeV1ProfileConfigAbuse: Checks for abuse, which +// includes any requests sent to the API for purposes other than what it +// is intended for, such as high volumes of requests, data scraping, and +// abuse related to authorization. +type GoogleCloudApigeeV1ProfileConfigAbuse struct { +} + +// GoogleCloudApigeeV1ProfileConfigAuthorization: By default, following +// policies will be included: - JWS - JWT - OAuth - BasicAuth - APIKey +type GoogleCloudApigeeV1ProfileConfigAuthorization struct { +} + +// GoogleCloudApigeeV1ProfileConfigCORS: Checks to see if you have CORS +// policy in place. +type GoogleCloudApigeeV1ProfileConfigCORS struct { +} + +// GoogleCloudApigeeV1ProfileConfigCategory: Advanced API Security +// provides security profile that scores the following categories. +type GoogleCloudApigeeV1ProfileConfigCategory struct { + // Abuse: Checks for abuse, which includes any requests sent to the API + // for purposes other than what it is intended for, such as high volumes + // of requests, data scraping, and abuse related to authorization. + Abuse *GoogleCloudApigeeV1ProfileConfigAbuse `json:"abuse,omitempty"` + + // Authorization: Checks to see if you have an authorization policy in + // place. + Authorization *GoogleCloudApigeeV1ProfileConfigAuthorization `json:"authorization,omitempty"` + + // Cors: Checks to see if you have CORS policy in place. + Cors *GoogleCloudApigeeV1ProfileConfigCORS `json:"cors,omitempty"` + + // Mediation: Checks to see if you have a mediation policy in place. + Mediation *GoogleCloudApigeeV1ProfileConfigMediation `json:"mediation,omitempty"` + + // Mtls: Checks to see if you have configured mTLS for the target + // server. + Mtls *GoogleCloudApigeeV1ProfileConfigMTLS `json:"mtls,omitempty"` + + // Threat: Checks to see if you have a threat protection policy in + // place. + Threat *GoogleCloudApigeeV1ProfileConfigThreat `json:"threat,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Abuse") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Abuse") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *GoogleCloudApigeeV1ProfileConfigCategory) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudApigeeV1ProfileConfigCategory + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// GoogleCloudApigeeV1ProfileConfigMTLS: Checks to see if you have +// configured mTLS for the target server. +type GoogleCloudApigeeV1ProfileConfigMTLS struct { +} + +// GoogleCloudApigeeV1ProfileConfigMediation: By default, following +// policies will be included: - OASValidation - SOAPMessageValidation +type GoogleCloudApigeeV1ProfileConfigMediation struct { +} + +// GoogleCloudApigeeV1ProfileConfigThreat: By default, following +// policies will be included: - XMLThreatProtection - +// JSONThreatProtection +type GoogleCloudApigeeV1ProfileConfigThreat struct { +} + // GoogleCloudApigeeV1Properties: Message for compatibility with legacy // Edge specification for Java Properties object in JSON. type GoogleCloudApigeeV1Properties struct { @@ -9916,6 +10035,9 @@ func (s *GoogleCloudApigeeV1SecurityIncident) MarshalJSON() ([]byte, error) { // GoogleCloudApigeeV1SecurityProfile: Represents a SecurityProfile // resource. type GoogleCloudApigeeV1SecurityProfile struct { + // Description: Description of the security profile. + Description string `json:"description,omitempty"` + // DisplayName: Display name of the security profile. DisplayName string `json:"displayName,omitempty"` @@ -9934,6 +10056,10 @@ type GoogleCloudApigeeV1SecurityProfile struct { // organizations/{org}/securityProfiles/{profile} Name string `json:"name,omitempty"` + // ProfileConfig: Customized profile configuration that computes the + // security score. + ProfileConfig *GoogleCloudApigeeV1ProfileConfig `json:"profileConfig,omitempty"` + // RevisionCreateTime: Output only. The time when revision was created. RevisionCreateTime string `json:"revisionCreateTime,omitempty"` @@ -9955,7 +10081,7 @@ type GoogleCloudApigeeV1SecurityProfile struct { // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to + // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -9963,7 +10089,7 @@ type GoogleCloudApigeeV1SecurityProfile struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DisplayName") to include + // NullFields is a list of field names (e.g. "Description") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as diff --git a/bigtableadmin/v2/bigtableadmin-api.json b/bigtableadmin/v2/bigtableadmin-api.json index 76073433c49..3273680757b 100644 --- a/bigtableadmin/v2/bigtableadmin-api.json +++ b/bigtableadmin/v2/bigtableadmin-api.json @@ -1966,7 +1966,7 @@ } } }, - "revision": "20230426", + "revision": "20230529", "rootUrl": "https://bigtableadmin.googleapis.com/", "schemas": { "AppProfile": { @@ -2995,7 +2995,7 @@ "type": "object" }, "Location": { - "description": "A resource that represents Google Cloud location.", + "description": "A resource that represents a Google Cloud location.", "id": "Location", "properties": { "displayName": { @@ -3055,6 +3055,10 @@ "description": "Request message for google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies", "id": "ModifyColumnFamiliesRequest", "properties": { + "ignoreWarnings": { + "description": "If true, ignore safety checks when modifying the column families.", + "type": "boolean" + }, "modifications": { "description": "Required. Modifications to be atomically applied to the specified table's families. Entries are applied in order, meaning that earlier modifications can be masked by later ones (in the case of repeated updates to the same family, for example).", "items": { diff --git a/bigtableadmin/v2/bigtableadmin-gen.go b/bigtableadmin/v2/bigtableadmin-gen.go index 5701dd5decc..a21b126031c 100644 --- a/bigtableadmin/v2/bigtableadmin-gen.go +++ b/bigtableadmin/v2/bigtableadmin-gen.go @@ -2320,7 +2320,7 @@ func (s *ListTablesResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Location: A resource that represents Google Cloud location. +// Location: A resource that represents a Google Cloud location. type Location struct { // DisplayName: The friendly name for this location, typically a nearby // city name. For example, "Tokyo". @@ -2414,13 +2414,17 @@ func (s *Modification) MarshalJSON() ([]byte, error) { // ModifyColumnFamiliesRequest: Request message for // google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies type ModifyColumnFamiliesRequest struct { + // IgnoreWarnings: If true, ignore safety checks when modifying the + // column families. + IgnoreWarnings bool `json:"ignoreWarnings,omitempty"` + // Modifications: Required. Modifications to be atomically applied to // the specified table's families. Entries are applied in order, meaning // that earlier modifications can be masked by later ones (in the case // of repeated updates to the same family, for example). Modifications []*Modification `json:"modifications,omitempty"` - // ForceSendFields is a list of field names (e.g. "Modifications") to + // ForceSendFields is a list of field names (e.g. "IgnoreWarnings") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2428,12 +2432,13 @@ type ModifyColumnFamiliesRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Modifications") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "IgnoreWarnings") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } diff --git a/cloudsearch/v1/cloudsearch-api.json b/cloudsearch/v1/cloudsearch-api.json index 5d769ff83bb..2d69ab52fdb 100644 --- a/cloudsearch/v1/cloudsearch-api.json +++ b/cloudsearch/v1/cloudsearch-api.json @@ -937,6 +937,25 @@ }, "query": { "methods": { + "removeActivity": { + "description": "Provides functionality to remove logged activity for a user. Currently to be used only for dynamite 1p clients **Note:** This API requires a standard end user account to execute. A service account can't perform Remove Activity requests directly; to use a service account to perform queries, set up [Google Workspace domain-wide delegation of authority](https://developers.google.com/cloud-search/docs/guides/delegation/).", + "flatPath": "v1/query:removeActivity", + "httpMethod": "POST", + "id": "cloudsearch.query.removeActivity", + "parameterOrder": [], + "parameters": {}, + "path": "v1/query:removeActivity", + "request": { + "$ref": "RemoveActivityRequest" + }, + "response": { + "$ref": "RemoveActivityResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud_search", + "https://www.googleapis.com/auth/cloud_search.query" + ] + }, "search": { "description": "The Cloud Search Query API provides the search method, which returns the most relevant results from a user query. The results can come from Google Workspace apps, such as Gmail or Google Drive, or they can come from data that you have indexed from a third party. **Note:** This API requires a standard end user account to execute. A service account can't perform Query API requests directly; to use a service account to perform queries, set up [Google Workspace domain-wide delegation of authority](https://developers.google.com/cloud-search/docs/guides/delegation/).", "flatPath": "v1/query/search", @@ -2077,7 +2096,7 @@ } } }, - "revision": "20230510", + "revision": "20230524", "rootUrl": "https://cloudsearch.googleapis.com/", "schemas": { "AbuseReportingConfig": { @@ -2860,7 +2879,7 @@ "type": "object" }, "AppsDynamiteSharedBackendUploadMetadata": { - "description": "Metadata used only in Dynamite backend for uploaded attachments.", + "description": "Metadata used only in Dynamite backend for uploaded attachments. NEXT ID: 20", "id": "AppsDynamiteSharedBackendUploadMetadata", "properties": { "blobPath": { @@ -2949,7 +2968,7 @@ "description": "Summary of a Data Loss Prevention (DLP) scan of the attachment. Attachments are evaluated in the backend when they are uploaded." }, "experiment": { - "description": "The list of experiments this video is enabled for Next tag: 19", + "description": "The list of experiments this video is enabled for", "items": { "enum": [ "UNKNOWN_EXPERIMENT", @@ -2971,6 +2990,9 @@ "description": "If the uploaded file is a video that has been transcoded on the client side", "type": "boolean" }, + "migratedFromHangoutsMetadata": { + "$ref": "AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadata" + }, "originalDimension": { "$ref": "AppsDynamiteSharedDimension", "description": "Original dimension of the content. Only set for image attachments." @@ -3022,6 +3044,34 @@ }, "type": "object" }, + "AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadata": { + "description": "Metadata for attachments migrated from Hangouts", + "id": "AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadata", + "properties": { + "photoId": { + "$ref": "AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadataPhotoId" + }, + "updateTimestampUsec": { + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, + "AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadataPhotoId": { + "id": "AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadataPhotoId", + "properties": { + "photoId": { + "format": "int64", + "type": "string" + }, + "userId": { + "format": "int64", + "type": "string" + } + }, + "type": "object" + }, "AppsDynamiteSharedCalendarEventAnnotationData": { "id": "AppsDynamiteSharedCalendarEventAnnotationData", "properties": { @@ -3711,7 +3761,7 @@ "id": "AppsDynamiteSharedMessageSearchInfo", "properties": { "matchedSegmentsInTextBody": { - "description": "An example use case: clients can use this field to highlight matched segments in message text_body defined in http://google3/apps/dynamite/v1/frontend/api/message.proto;l=104;rcl=513400736.", + "description": "Current usage: - DescriptionType=KEYWORD_MATCH is populated in this field to return metadata for keyword matches, which clients can use to highlight matched segments in a message's text_body. - DescriptionType=SNIPPET can be used to return metadata describing how a message's text_body can be broken up to provide a snippet.", "items": { "$ref": "AppsDynamiteSharedTextSegmentsWithDescription" }, @@ -4062,11 +4112,13 @@ "descriptionType": { "enum": [ "DESCRIPTION_TYPE_UNSPECIFIED", - "KEYWORD_MATCH" + "KEYWORD_MATCH", + "SNIPPET" ], "enumDescriptions": [ "", - "Indicates the text segments contain matched keywords. Client can highlight them in search results page." + "Indicates the text segments contain matched keywords. Client can highlight them in search results page.", + "Indicates the text segments represent parts of the snippeted text. Clients can display just these in SRP as shortened message. Multiple TextSegments with this DescriptionType are returned to denote disjointed snippets i.e. \"a long test message\" -\u003e \"a ... message\"" ], "type": "string" }, @@ -5875,6 +5927,20 @@ "type": "string" }, "type": "array" + }, + "uninstallCapability": { + "description": "Determine how uninstall is permitted for this app.", + "enum": [ + "UNSPECIFIED_UNINSTALL_CAPABILITY", + "ALWAYS_ALLOWED", + "NEVER_ALLOWED" + ], + "enumDescriptions": [ + "Defaults to ALWAYS_ALLOWED.", + "", + "" + ], + "type": "string" } }, "type": "object" @@ -6741,7 +6807,7 @@ "type": "object" }, "Color": { - "description": "Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to/from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page doesn't carry information about the absolute color space that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most 1e-5. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:\u0026red green:\u0026green blue:\u0026blue alpha:\u0026alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha \u003c= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red \u003c\u003c 16) | (green \u003c\u003c 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i \u003c missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(''); }; // ...", + "description": "Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to and from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page does not have information about the absolute color space that should be used to interpret the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most `1e-5`. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:\u0026red green:\u0026green blue:\u0026blue alpha:\u0026alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha \u003c= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red \u003c\u003c 16) | (green \u003c\u003c 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i \u003c missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(''); }; // ...", "id": "Color", "properties": { "alpha": { @@ -9838,7 +9904,7 @@ "type": "object" }, "GoogleChatV1ContextualAddOnMarkupCard": { - "description": "A card is a UI element that can contain UI widgets such as texts, images.", + "description": "A card is a UI element that can contain UI widgets such as text and images.", "id": "GoogleChatV1ContextualAddOnMarkupCard", "properties": { "cardActions": { @@ -9885,7 +9951,7 @@ "id": "GoogleChatV1ContextualAddOnMarkupCardCardHeader", "properties": { "imageStyle": { - "description": "The image's type (e.g. square border or circular border).", + "description": "The image's type (for example, square border or circular border).", "enum": [ "IMAGE_STYLE_UNSPECIFIED", "IMAGE", @@ -9907,22 +9973,22 @@ "type": "string" }, "title": { - "description": "The title must be specified. The header has a fixed height: if both a title and subtitle is specified, each will take up 1 line. If only the title is specified, it will take up both lines.", + "description": "The title must be specified. The header has a fixed height: if both a title and subtitle is specified, each takes up one line. If only the title is specified, it takes up both lines.", "type": "string" } }, "type": "object" }, "GoogleChatV1ContextualAddOnMarkupCardSection": { - "description": "A section contains a collection of widgets that are rendered (vertically) in the order that they are specified. Across all platforms, cards have a narrow fixed width, so there is currently no need for layout properties (e.g. float).", + "description": "A section contains a collection of widgets that are rendered (vertically) in the order that they are specified. Across all platforms, cards have a narrow fixed width, so there's currently no need for layout properties (for example, float).", "id": "GoogleChatV1ContextualAddOnMarkupCardSection", "properties": { "header": { - "description": "The header of the section. Formatted text is supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.", + "description": "The header of the section. Formatted text is supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", "type": "string" }, "widgets": { - "description": "A section must contain at least 1 widget.", + "description": "A section must contain at least one widget.", "items": { "$ref": "GoogleChatV1WidgetMarkup" }, @@ -9932,7 +9998,7 @@ "type": "object" }, "GoogleChatV1WidgetMarkup": { - "description": "A widget is a UI element that presents texts, images, etc.", + "description": "A widget is a UI element that presents text and images.", "id": "GoogleChatV1WidgetMarkup", "properties": { "buttons": { @@ -9963,21 +10029,21 @@ "properties": { "imageButton": { "$ref": "GoogleChatV1WidgetMarkupImageButton", - "description": "A button with image and onclick action." + "description": "A button with image and `onclick` action." }, "textButton": { "$ref": "GoogleChatV1WidgetMarkupTextButton", - "description": "A button with text and onclick action." + "description": "A button with text and `onclick` action." } }, "type": "object" }, "GoogleChatV1WidgetMarkupFormAction": { - "description": "A form action describes the behavior when the form is submitted. For example, an Apps Script can be invoked to handle the form.", + "description": "A form action describes the behavior when the form is submitted. For example, you can invoke Apps Script to handle the form.", "id": "GoogleChatV1WidgetMarkupFormAction", "properties": { "actionMethodName": { - "description": "The method name is used to identify which part of the form triggered the form submission. This information is echoed back to the Chat app as part of the card click event. The same method name can be used for several elements that trigger a common behavior if desired.", + "description": "The method name is used to identify which part of the form triggered the form submission. This information is echoed back to the Chat app as part of the card click event. You can use the same method name for several elements that trigger a common behavior.", "type": "string" }, "parameters": { @@ -9991,7 +10057,7 @@ "type": "object" }, "GoogleChatV1WidgetMarkupFormActionActionParameter": { - "description": "List of string parameters to supply when the action method is invoked. For example, consider three snooze buttons: snooze now, snooze 1 day, snooze next week. You might use action method = snooze(), passing the snooze type and snooze time in the list of string parameters.", + "description": "List of string parameters to supply when the action method is invoked. For example, consider three snooze buttons: snooze now, snooze one day, snooze next week. You might use `action method = snooze()`, passing the snooze type and snooze time in the list of string parameters.", "id": "GoogleChatV1WidgetMarkupFormActionActionParameter", "properties": { "key": { @@ -10006,11 +10072,11 @@ "type": "object" }, "GoogleChatV1WidgetMarkupImage": { - "description": "An image that is specified by a URL and can have an onclick action.", + "description": "An image that's specified by a URL and can have an `onclick` action.", "id": "GoogleChatV1WidgetMarkupImage", "properties": { "aspectRatio": { - "description": "The aspect ratio of this image (width/height). This field allows clients to reserve the right height for the image while waiting for it to load. It's not meant to override the native aspect ratio of the image. If unset, the server fills it by prefetching the image.", + "description": "The aspect ratio of this image (width and height). This field lets you reserve the right height for the image while waiting for it to load. It's not meant to override the built-in aspect ratio of the image. If unset, the server fills it by prefetching the image.", "format": "double", "type": "number" }, @@ -10020,17 +10086,17 @@ }, "onClick": { "$ref": "GoogleChatV1WidgetMarkupOnClick", - "description": "The onclick action." + "description": "The `onclick` action." } }, "type": "object" }, "GoogleChatV1WidgetMarkupImageButton": { - "description": "An image button with an onclick action.", + "description": "An image button with an `onclick` action.", "id": "GoogleChatV1WidgetMarkupImageButton", "properties": { "icon": { - "description": "The icon specified by an enum that indices to an icon provided by Chat API.", + "description": "The icon specified by an `enum` that indices to an icon provided by Chat API.", "enum": [ "ICON_UNSPECIFIED", "AIRPLANE", @@ -10104,22 +10170,22 @@ "type": "string" }, "name": { - "description": "The name of this image_button which will be used for accessibility. Default value will be provided if developers don't specify.", + "description": "The name of this `image_button` that's used for accessibility. Default value is provided if this name isn't specified.", "type": "string" }, "onClick": { "$ref": "GoogleChatV1WidgetMarkupOnClick", - "description": "The onclick action." + "description": "The `onclick` action." } }, "type": "object" }, "GoogleChatV1WidgetMarkupKeyValue": { - "description": "A UI element contains a key (label) and a value (content). And this element may also contain some actions such as onclick button.", + "description": "A UI element contains a key (label) and a value (content). This element can also contain some actions such as `onclick` button.", "id": "GoogleChatV1WidgetMarkupKeyValue", "properties": { "bottomLabel": { - "description": "The text of the bottom label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.", + "description": "The text of the bottom label. Formatted text supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", "type": "string" }, "button": { @@ -10127,7 +10193,7 @@ "description": "A button that can be clicked to trigger an action." }, "content": { - "description": "The text of the content. Formatted text supported and always required. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.", + "description": "The text of the content. Formatted text supported and always required. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", "type": "string" }, "contentMultiline": { @@ -10135,7 +10201,7 @@ "type": "boolean" }, "icon": { - "description": "An enum value that will be replaced by the Chat API with the corresponding icon image.", + "description": "An enum value that's replaced by the Chat API with the corresponding icon image.", "enum": [ "ICON_UNSPECIFIED", "AIRPLANE", @@ -10210,26 +10276,26 @@ }, "onClick": { "$ref": "GoogleChatV1WidgetMarkupOnClick", - "description": "The onclick action. Only the top label, bottom label and content region are clickable." + "description": "The `onclick` action. Only the top label, bottom label, and content region are clickable." }, "topLabel": { - "description": "The text of the top label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.", + "description": "The text of the top label. Formatted text supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", "type": "string" } }, "type": "object" }, "GoogleChatV1WidgetMarkupOnClick": { - "description": "An onclick action (e.g. open a link).", + "description": "An `onclick` action (for example, open a link).", "id": "GoogleChatV1WidgetMarkupOnClick", "properties": { "action": { "$ref": "GoogleChatV1WidgetMarkupFormAction", - "description": "A form action will be triggered by this onclick if specified." + "description": "A form action is triggered by this `onclick` action if specified." }, "openLink": { "$ref": "GoogleChatV1WidgetMarkupOpenLink", - "description": "This onclick triggers an open link action if specified." + "description": "This `onclick` action triggers an open link action if specified." } }, "type": "object" @@ -10246,12 +10312,12 @@ "type": "object" }, "GoogleChatV1WidgetMarkupTextButton": { - "description": "A button with text and onclick action.", + "description": "A button with text and `onclick` action.", "id": "GoogleChatV1WidgetMarkupTextButton", "properties": { "onClick": { "$ref": "GoogleChatV1WidgetMarkupOnClick", - "description": "The onclick action of the button." + "description": "The `onclick` action of the button." }, "text": { "description": "The text of the button.", @@ -10261,7 +10327,7 @@ "type": "object" }, "GoogleChatV1WidgetMarkupTextParagraph": { - "description": "A paragraph of text. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.", + "description": "A paragraph of text. Formatted text supported. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).", "id": "GoogleChatV1WidgetMarkupTextParagraph", "properties": { "text": { @@ -13033,8 +13099,8 @@ "Non-member -\u003e Can join. Multiple groups and users.", "Can join -\u003e Member. One user.", "Non-member -\u003e Member. Multiple users.", - "Can join -\u003e Non-member. One group or user.", - "Member -\u003e Can join. One user.", + "Member or can join -\u003e Non-member. One group or user.", + "Before April 2023, a user transitioned from joined", "Bot added to the room.", "Bot removed from the room.", "This signifies the user is kicked because the user's OTR policy is conflicted with the room history settings. Joined -\u003e Non-member. One user.", @@ -14803,6 +14869,17 @@ }, "type": "object" }, + "QueryActivity": { + "description": "Details about a user's query activity.", + "id": "QueryActivity", + "properties": { + "query": { + "description": "User input query to be logged/removed.", + "type": "string" + } + }, + "type": "object" + }, "QueryCountByStatus": { "id": "QueryCountByStatus", "properties": { @@ -15347,6 +15424,27 @@ }, "type": "object" }, + "RemoveActivityRequest": { + "description": "Remove Logged Activity Request.", + "id": "RemoveActivityRequest", + "properties": { + "requestOptions": { + "$ref": "RequestOptions", + "description": "Request options, such as the search application and clientId." + }, + "userActivity": { + "$ref": "UserActivity", + "description": "User Activity containing the data to be deleted." + } + }, + "type": "object" + }, + "RemoveActivityResponse": { + "description": "Remove Logged Activity Response. will return an empty response for now. Will be revisited in later phases.", + "id": "RemoveActivityResponse", + "properties": {}, + "type": "object" + }, "RenameEvent": { "id": "RenameEvent", "properties": { @@ -16870,6 +16968,20 @@ "suggestedQuery": { "description": "The suggested spelling of the query.", "type": "string" + }, + "suggestionType": { + "description": "Suggestion triggered for the current query.", + "enum": [ + "SUGGESTION_TYPE_UNSPECIFIED", + "NON_EMPTY_RESULTS_SPELL_SUGGESTION", + "ZERO_RESULTS_FULL_PAGE_REPLACEMENT" + ], + "enumDescriptions": [ + "Default spell check type", + "Spell suggestion without any results changed. The results are still shown for the original query (which has non zero / results) with a suggestion for spelling that would have results.", + "Spell suggestion triggered when original query has no results. When the original query has no results, and spell suggestion has results we trigger results for the spell corrected query." + ], + "type": "string" } }, "type": "object" @@ -18078,6 +18190,10 @@ "$ref": "AppsDynamiteSharedDlpMetricsMetadata", "description": "The metrics metadata of the Data Loss Prevention attachment scan." }, + "internalOnlyComponentSearchInfo": { + "$ref": "AppsDynamiteSharedMessageComponentSearchInfo", + "description": "Message component search metadata for this upload_metadata (currently used for message highlighting and snippeting). For use by Search backend only; clients should get upload_metadata search info from Annotation.component_search_info. This field is necessary because backend Message keeps UploadMetadata in a separate field. Upon converting from backend message to frontend message, this field will be copied to Annotation.component_search_info while the corresponding UploadMetadata is converted into an Annotation." + }, "latestVirusScanTimestamp": { "description": "The timestamp of the most recent virus scan completed (in microseconds).", "format": "int64", @@ -18299,6 +18415,17 @@ }, "type": "object" }, + "UserActivity": { + "description": "User's single or bulk query activity. This can be a logging query or deletion query.", + "id": "UserActivity", + "properties": { + "queryActivity": { + "$ref": "QueryActivity", + "description": "Contains data which needs to be logged/removed." + } + }, + "type": "object" + }, "UserDisplayInfo": { "description": "Resource for displaying user info", "id": "UserDisplayInfo", diff --git a/cloudsearch/v1/cloudsearch-gen.go b/cloudsearch/v1/cloudsearch-gen.go index abb1e79bd5f..ca3f6f0e1bb 100644 --- a/cloudsearch/v1/cloudsearch-gen.go +++ b/cloudsearch/v1/cloudsearch-gen.go @@ -1633,7 +1633,7 @@ func (s *AppsDynamiteSharedAvatarInfo) MarshalJSON() ([]byte, error) { } // AppsDynamiteSharedBackendUploadMetadata: Metadata used only in -// Dynamite backend for uploaded attachments. +// Dynamite backend for uploaded attachments. NEXT ID: 20 type AppsDynamiteSharedBackendUploadMetadata struct { // BlobPath: Blobstore path for the uploaded attachment BlobPath string `json:"blobPath,omitempty"` @@ -1742,8 +1742,7 @@ type AppsDynamiteSharedBackendUploadMetadata struct { // uploaded. DlpScanSummary *DlpScanSummary `json:"dlpScanSummary,omitempty"` - // Experiment: The list of experiments this video is enabled for Next - // tag: 19 + // Experiment: The list of experiments this video is enabled for // // Possible values: // "UNKNOWN_EXPERIMENT" @@ -1757,6 +1756,8 @@ type AppsDynamiteSharedBackendUploadMetadata struct { // been transcoded on the client side IsClientSideTranscodedVideo bool `json:"isClientSideTranscodedVideo,omitempty"` + MigratedFromHangoutsMetadata *AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadata `json:"migratedFromHangoutsMetadata,omitempty"` + // OriginalDimension: Original dimension of the content. Only set for // image attachments. OriginalDimension *AppsDynamiteSharedDimension `json:"originalDimension,omitempty"` @@ -1824,6 +1825,64 @@ func (s *AppsDynamiteSharedBackendUploadMetadata) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadata: +// Metadata for attachments migrated from Hangouts +type AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadata struct { + PhotoId *AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadataPhotoId `json:"photoId,omitempty"` + + UpdateTimestampUsec int64 `json:"updateTimestampUsec,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "PhotoId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PhotoId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadata) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadata + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadataPhotoId struct { + PhotoId int64 `json:"photoId,omitempty,string"` + + UserId int64 `json:"userId,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "PhotoId") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "PhotoId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadataPhotoId) MarshalJSON() ([]byte, error) { + type NoMethod AppsDynamiteSharedBackendUploadMetadataMigratedFromHangoutsMetadataPhotoId + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type AppsDynamiteSharedCalendarEventAnnotationData struct { CalendarEvent *AppsDynamiteSharedCalendarEventAnnotationDataCalendarEvent `json:"calendarEvent,omitempty"` @@ -2941,9 +3000,12 @@ func (s *AppsDynamiteSharedMessageIntegrationPayload) MarshalJSON() ([]byte, err // snipetting. In future, we can use this proto to return more search // specific data attached to a message. type AppsDynamiteSharedMessageSearchInfo struct { - // MatchedSegmentsInTextBody: An example use case: clients can use this - // field to highlight matched segments in message text_body defined in - // http://google3/apps/dynamite/v1/frontend/api/message.proto;l=104;rcl=513400736. + // MatchedSegmentsInTextBody: Current usage: - + // DescriptionType=KEYWORD_MATCH is populated in this field to return + // metadata for keyword matches, which clients can use to highlight + // matched segments in a message's text_body. - DescriptionType=SNIPPET + // can be used to return metadata describing how a message's text_body + // can be broken up to provide a snippet. MatchedSegmentsInTextBody []*AppsDynamiteSharedTextSegmentsWithDescription `json:"matchedSegmentsInTextBody,omitempty"` // ForceSendFields is a list of field names (e.g. @@ -3495,6 +3557,11 @@ type AppsDynamiteSharedTextSegmentsWithDescription struct { // "DESCRIPTION_TYPE_UNSPECIFIED" // "KEYWORD_MATCH" - Indicates the text segments contain matched // keywords. Client can highlight them in search results page. + // "SNIPPET" - Indicates the text segments represent parts of the + // snippeted text. Clients can display just these in SRP as shortened + // message. Multiple TextSegments with this DescriptionType are returned + // to denote disjointed snippets i.e. "a long test message" -> "a ... + // message" DescriptionType string `json:"descriptionType,omitempty"` TextSegment []*AppsDynamiteSharedTextSegment `json:"textSegment,omitempty"` @@ -6348,6 +6415,15 @@ type BotInfo struct { // "CAN_ADD_TO_HUMAN_DM" SupportedUses []string `json:"supportedUses,omitempty"` + // UninstallCapability: Determine how uninstall is permitted for this + // app. + // + // Possible values: + // "UNSPECIFIED_UNINSTALL_CAPABILITY" - Defaults to ALWAYS_ALLOWED. + // "ALWAYS_ALLOWED" + // "NEVER_ALLOWED" + UninstallCapability string `json:"uninstallCapability,omitempty"` + // ForceSendFields is a list of field names (e.g. "AppAllowlistStatus") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -7673,23 +7749,23 @@ func (s *Collaboration) MarshalJSON() ([]byte, error) { } // Color: Represents a color in the RGBA color space. This -// representation is designed for simplicity of conversion to/from color -// representations in various languages over compactness. For example, -// the fields of this representation can be trivially provided to the -// constructor of `java.awt.Color` in Java; it can also be trivially -// provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; -// and, with just a little work, it can be easily formatted into a CSS -// `rgba()` string in JavaScript. This reference page doesn't carry -// information about the absolute color space that should be used to -// interpret the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, -// etc.). By default, applications should assume the sRGB color space. -// When color equality needs to be decided, implementations, unless -// documented otherwise, treat two colors as equal if all their red, -// green, blue, and alpha values each differ by at most 1e-5. Example -// (Java): import com.google.type.Color; // ... public static -// java.awt.Color fromProto(Color protocolor) { float alpha = -// protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; -// return new java.awt.Color( protocolor.getRed(), +// representation is designed for simplicity of conversion to and from +// color representations in various languages over compactness. For +// example, the fields of this representation can be trivially provided +// to the constructor of `java.awt.Color` in Java; it can also be +// trivially provided to UIColor's `+colorWithRed:green:blue:alpha` +// method in iOS; and, with just a little work, it can be easily +// formatted into a CSS `rgba()` string in JavaScript. This reference +// page does not have information about the absolute color space that +// should be used to interpret the RGB value—for example, sRGB, Adobe +// RGB, DCI-P3, and BT.2020. By default, applications should assume the +// sRGB color space. When color equality needs to be decided, +// implementations, unless documented otherwise, treat two colors as +// equal if all their red, green, blue, and alpha values each differ by +// at most `1e-5`. Example (Java): import com.google.type.Color; // ... +// public static java.awt.Color fromProto(Color protocolor) { float +// alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : +// 1.0; return new java.awt.Color( protocolor.getRed(), // protocolor.getGreen(), protocolor.getBlue(), alpha); } public static // Color toProto(java.awt.Color color) { float red = (float) // color.getRed(); float green = (float) color.getGreen(); float blue = @@ -12306,7 +12382,7 @@ func (s *GoogleChatV1ContextualAddOnMarkup) MarshalJSON() ([]byte, error) { } // GoogleChatV1ContextualAddOnMarkupCard: A card is a UI element that -// can contain UI widgets such as texts, images. +// can contain UI widgets such as text and images. type GoogleChatV1ContextualAddOnMarkupCard struct { // CardActions: The actions of this card. CardActions []*GoogleChatV1ContextualAddOnMarkupCardCardAction `json:"cardActions,omitempty"` @@ -12379,7 +12455,8 @@ func (s *GoogleChatV1ContextualAddOnMarkupCardCardAction) MarshalJSON() ([]byte, } type GoogleChatV1ContextualAddOnMarkupCardCardHeader struct { - // ImageStyle: The image's type (e.g. square border or circular border). + // ImageStyle: The image's type (for example, square border or circular + // border). // // Possible values: // "IMAGE_STYLE_UNSPECIFIED" @@ -12394,8 +12471,8 @@ type GoogleChatV1ContextualAddOnMarkupCardCardHeader struct { Subtitle string `json:"subtitle,omitempty"` // Title: The title must be specified. The header has a fixed height: if - // both a title and subtitle is specified, each will take up 1 line. If - // only the title is specified, it will take up both lines. + // both a title and subtitle is specified, each takes up one line. If + // only the title is specified, it takes up both lines. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "ImageStyle") to @@ -12424,15 +12501,18 @@ func (s *GoogleChatV1ContextualAddOnMarkupCardCardHeader) MarshalJSON() ([]byte, // GoogleChatV1ContextualAddOnMarkupCardSection: A section contains a // collection of widgets that are rendered (vertically) in the order // that they are specified. Across all platforms, cards have a narrow -// fixed width, so there is currently no need for layout properties -// (e.g. float). +// fixed width, so there's currently no need for layout properties (for +// example, float). type GoogleChatV1ContextualAddOnMarkupCardSection struct { // Header: The header of the section. Formatted text is supported. For // more information about formatting text, see Formatting text in Google - // Chat apps and Formatting text in Google Workspace Add-ons. + // Chat apps + // (https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) + // and Formatting text in Google Workspace Add-ons + // (https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). Header string `json:"header,omitempty"` - // Widgets: A section must contain at least 1 widget. + // Widgets: A section must contain at least one widget. Widgets []*GoogleChatV1WidgetMarkup `json:"widgets,omitempty"` // ForceSendFields is a list of field names (e.g. "Header") to @@ -12458,8 +12538,8 @@ func (s *GoogleChatV1ContextualAddOnMarkupCardSection) MarshalJSON() ([]byte, er return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleChatV1WidgetMarkup: A widget is a UI element that presents -// texts, images, etc. +// GoogleChatV1WidgetMarkup: A widget is a UI element that presents text +// and images. type GoogleChatV1WidgetMarkup struct { // Buttons: A list of buttons. Buttons is also `oneof data` and only one // of these fields should be set. @@ -12500,10 +12580,10 @@ func (s *GoogleChatV1WidgetMarkup) MarshalJSON() ([]byte, error) { // GoogleChatV1WidgetMarkupButton: A button. Can be a text button or an // image button. type GoogleChatV1WidgetMarkupButton struct { - // ImageButton: A button with image and onclick action. + // ImageButton: A button with image and `onclick` action. ImageButton *GoogleChatV1WidgetMarkupImageButton `json:"imageButton,omitempty"` - // TextButton: A button with text and onclick action. + // TextButton: A button with text and `onclick` action. TextButton *GoogleChatV1WidgetMarkupTextButton `json:"textButton,omitempty"` // ForceSendFields is a list of field names (e.g. "ImageButton") to @@ -12530,14 +12610,13 @@ func (s *GoogleChatV1WidgetMarkupButton) MarshalJSON() ([]byte, error) { } // GoogleChatV1WidgetMarkupFormAction: A form action describes the -// behavior when the form is submitted. For example, an Apps Script can -// be invoked to handle the form. +// behavior when the form is submitted. For example, you can invoke Apps +// Script to handle the form. type GoogleChatV1WidgetMarkupFormAction struct { // ActionMethodName: The method name is used to identify which part of // the form triggered the form submission. This information is echoed - // back to the Chat app as part of the card click event. The same method - // name can be used for several elements that trigger a common behavior - // if desired. + // back to the Chat app as part of the card click event. You can use the + // same method name for several elements that trigger a common behavior. ActionMethodName string `json:"actionMethodName,omitempty"` // Parameters: List of action parameters. @@ -12569,9 +12648,9 @@ func (s *GoogleChatV1WidgetMarkupFormAction) MarshalJSON() ([]byte, error) { // GoogleChatV1WidgetMarkupFormActionActionParameter: List of string // parameters to supply when the action method is invoked. For example, -// consider three snooze buttons: snooze now, snooze 1 day, snooze next -// week. You might use action method = snooze(), passing the snooze type -// and snooze time in the list of string parameters. +// consider three snooze buttons: snooze now, snooze one day, snooze +// next week. You might use `action method = snooze()`, passing the +// snooze type and snooze time in the list of string parameters. type GoogleChatV1WidgetMarkupFormActionActionParameter struct { // Key: The name of the parameter for the action script. Key string `json:"key,omitempty"` @@ -12602,20 +12681,19 @@ func (s *GoogleChatV1WidgetMarkupFormActionActionParameter) MarshalJSON() ([]byt return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleChatV1WidgetMarkupImage: An image that is specified by a URL -// and can have an onclick action. +// GoogleChatV1WidgetMarkupImage: An image that's specified by a URL and +// can have an `onclick` action. type GoogleChatV1WidgetMarkupImage struct { - // AspectRatio: The aspect ratio of this image (width/height). This - // field allows clients to reserve the right height for the image while - // waiting for it to load. It's not meant to override the native aspect - // ratio of the image. If unset, the server fills it by prefetching the - // image. + // AspectRatio: The aspect ratio of this image (width and height). This + // field lets you reserve the right height for the image while waiting + // for it to load. It's not meant to override the built-in aspect ratio + // of the image. If unset, the server fills it by prefetching the image. AspectRatio float64 `json:"aspectRatio,omitempty"` // ImageUrl: The URL of the image. ImageUrl string `json:"imageUrl,omitempty"` - // OnClick: The onclick action. + // OnClick: The `onclick` action. OnClick *GoogleChatV1WidgetMarkupOnClick `json:"onClick,omitempty"` // ForceSendFields is a list of field names (e.g. "AspectRatio") to @@ -12655,11 +12733,11 @@ func (s *GoogleChatV1WidgetMarkupImage) UnmarshalJSON(data []byte) error { return nil } -// GoogleChatV1WidgetMarkupImageButton: An image button with an onclick -// action. +// GoogleChatV1WidgetMarkupImageButton: An image button with an +// `onclick` action. type GoogleChatV1WidgetMarkupImageButton struct { - // Icon: The icon specified by an enum that indices to an icon provided - // by Chat API. + // Icon: The icon specified by an `enum` that indices to an icon + // provided by Chat API. // // Possible values: // "ICON_UNSPECIFIED" @@ -12698,12 +12776,11 @@ type GoogleChatV1WidgetMarkupImageButton struct { // IconUrl: The icon specified by a URL. IconUrl string `json:"iconUrl,omitempty"` - // Name: The name of this image_button which will be used for - // accessibility. Default value will be provided if developers don't - // specify. + // Name: The name of this `image_button` that's used for accessibility. + // Default value is provided if this name isn't specified. Name string `json:"name,omitempty"` - // OnClick: The onclick action. + // OnClick: The `onclick` action. OnClick *GoogleChatV1WidgetMarkupOnClick `json:"onClick,omitempty"` // ForceSendFields is a list of field names (e.g. "Icon") to @@ -12730,12 +12807,15 @@ func (s *GoogleChatV1WidgetMarkupImageButton) MarshalJSON() ([]byte, error) { } // GoogleChatV1WidgetMarkupKeyValue: A UI element contains a key (label) -// and a value (content). And this element may also contain some actions -// such as onclick button. +// and a value (content). This element can also contain some actions +// such as `onclick` button. type GoogleChatV1WidgetMarkupKeyValue struct { // BottomLabel: The text of the bottom label. Formatted text supported. // For more information about formatting text, see Formatting text in - // Google Chat apps and Formatting text in Google Workspace Add-ons. + // Google Chat apps + // (https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) + // and Formatting text in Google Workspace Add-ons + // (https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). BottomLabel string `json:"bottomLabel,omitempty"` // Button: A button that can be clicked to trigger an action. @@ -12743,14 +12823,16 @@ type GoogleChatV1WidgetMarkupKeyValue struct { // Content: The text of the content. Formatted text supported and always // required. For more information about formatting text, see Formatting - // text in Google Chat apps and Formatting text in Google Workspace - // Add-ons. + // text in Google Chat apps + // (https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) + // and Formatting text in Google Workspace Add-ons + // (https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). Content string `json:"content,omitempty"` // ContentMultiline: If the content should be multiline. ContentMultiline bool `json:"contentMultiline,omitempty"` - // Icon: An enum value that will be replaced by the Chat API with the + // Icon: An enum value that's replaced by the Chat API with the // corresponding icon image. // // Possible values: @@ -12790,13 +12872,16 @@ type GoogleChatV1WidgetMarkupKeyValue struct { // IconUrl: The icon specified by a URL. IconUrl string `json:"iconUrl,omitempty"` - // OnClick: The onclick action. Only the top label, bottom label and + // OnClick: The `onclick` action. Only the top label, bottom label, and // content region are clickable. OnClick *GoogleChatV1WidgetMarkupOnClick `json:"onClick,omitempty"` // TopLabel: The text of the top label. Formatted text supported. For // more information about formatting text, see Formatting text in Google - // Chat apps and Formatting text in Google Workspace Add-ons. + // Chat apps + // (https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) + // and Formatting text in Google Workspace Add-ons + // (https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). TopLabel string `json:"topLabel,omitempty"` // ForceSendFields is a list of field names (e.g. "BottomLabel") to @@ -12822,13 +12907,15 @@ func (s *GoogleChatV1WidgetMarkupKeyValue) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleChatV1WidgetMarkupOnClick: An onclick action (e.g. open a -// link). +// GoogleChatV1WidgetMarkupOnClick: An `onclick` action (for example, +// open a link). type GoogleChatV1WidgetMarkupOnClick struct { - // Action: A form action will be triggered by this onclick if specified. + // Action: A form action is triggered by this `onclick` action if + // specified. Action *GoogleChatV1WidgetMarkupFormAction `json:"action,omitempty"` - // OpenLink: This onclick triggers an open link action if specified. + // OpenLink: This `onclick` action triggers an open link action if + // specified. OpenLink *GoogleChatV1WidgetMarkupOpenLink `json:"openLink,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") to @@ -12882,10 +12969,10 @@ func (s *GoogleChatV1WidgetMarkupOpenLink) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GoogleChatV1WidgetMarkupTextButton: A button with text and onclick +// GoogleChatV1WidgetMarkupTextButton: A button with text and `onclick` // action. type GoogleChatV1WidgetMarkupTextButton struct { - // OnClick: The onclick action of the button. + // OnClick: The `onclick` action of the button. OnClick *GoogleChatV1WidgetMarkupOnClick `json:"onClick,omitempty"` // Text: The text of the button. @@ -12916,8 +13003,10 @@ func (s *GoogleChatV1WidgetMarkupTextButton) MarshalJSON() ([]byte, error) { // GoogleChatV1WidgetMarkupTextParagraph: A paragraph of text. Formatted // text supported. For more information about formatting text, see -// Formatting text in Google Chat apps and Formatting text in Google -// Workspace Add-ons. +// Formatting text in Google Chat apps +// (https://developers.google.com/chat/api/guides/message-formats/cards#card_text_formatting) +// and Formatting text in Google Workspace Add-ons +// (https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting). type GoogleChatV1WidgetMarkupTextParagraph struct { Text string `json:"text,omitempty"` @@ -16809,8 +16898,8 @@ type MembershipChangedMetadata struct { // "INVITED" - Non-member -> Can join. Multiple groups and users. // "JOINED" - Can join -> Member. One user. // "ADDED" - Non-member -> Member. Multiple users. - // "REMOVED" - Can join -> Non-member. One group or user. - // "LEFT" - Member -> Can join. One user. + // "REMOVED" - Member or can join -> Non-member. One group or user. + // "LEFT" - Before April 2023, a user transitioned from joined // "BOT_ADDED" - Bot added to the room. // "BOT_REMOVED" - Bot removed from the room. // "KICKED_DUE_TO_OTR_CONFLICT" - This signifies the user is kicked @@ -19511,6 +19600,34 @@ func (s *PushItemRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// QueryActivity: Details about a user's query activity. +type QueryActivity struct { + // Query: User input query to be logged/removed. + Query string `json:"query,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Query") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Query") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *QueryActivity) MarshalJSON() ([]byte, error) { + type NoMethod QueryActivity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type QueryCountByStatus struct { Count int64 `json:"count,omitempty,string"` @@ -20387,6 +20504,47 @@ func (s *References) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// RemoveActivityRequest: Remove Logged Activity Request. +type RemoveActivityRequest struct { + // RequestOptions: Request options, such as the search application and + // clientId. + RequestOptions *RequestOptions `json:"requestOptions,omitempty"` + + // UserActivity: User Activity containing the data to be deleted. + UserActivity *UserActivity `json:"userActivity,omitempty"` + + // ForceSendFields is a list of field names (e.g. "RequestOptions") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "RequestOptions") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *RemoveActivityRequest) MarshalJSON() ([]byte, error) { + type NoMethod RemoveActivityRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RemoveActivityResponse: Remove Logged Activity Response. will return +// an empty response for now. Will be revisited in later phases. +type RemoveActivityResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + type RenameEvent struct { NewName string `json:"newName,omitempty"` @@ -22924,6 +23082,20 @@ type SpellResult struct { // SuggestedQuery: The suggested spelling of the query. SuggestedQuery string `json:"suggestedQuery,omitempty"` + // SuggestionType: Suggestion triggered for the current query. + // + // Possible values: + // "SUGGESTION_TYPE_UNSPECIFIED" - Default spell check type + // "NON_EMPTY_RESULTS_SPELL_SUGGESTION" - Spell suggestion without any + // results changed. The results are still shown for the original query + // (which has non zero / results) with a suggestion for spelling that + // would have results. + // "ZERO_RESULTS_FULL_PAGE_REPLACEMENT" - Spell suggestion triggered + // when original query has no results. When the original query has no + // results, and spell suggestion has results we trigger results for the + // spell corrected query. + SuggestionType string `json:"suggestionType,omitempty"` + // ForceSendFields is a list of field names (e.g. "SuggestedQuery") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -25104,6 +25276,17 @@ type UploadMetadata struct { // attachment scan. DlpMetricsMetadata *AppsDynamiteSharedDlpMetricsMetadata `json:"dlpMetricsMetadata,omitempty"` + // InternalOnlyComponentSearchInfo: Message component search metadata + // for this upload_metadata (currently used for message highlighting and + // snippeting). For use by Search backend only; clients should get + // upload_metadata search info from Annotation.component_search_info. + // This field is necessary because backend Message keeps UploadMetadata + // in a separate field. Upon converting from backend message to frontend + // message, this field will be copied to + // Annotation.component_search_info while the corresponding + // UploadMetadata is converted into an Annotation. + InternalOnlyComponentSearchInfo *AppsDynamiteSharedMessageComponentSearchInfo `json:"internalOnlyComponentSearchInfo,omitempty"` + // LatestVirusScanTimestamp: The timestamp of the most recent virus scan // completed (in microseconds). LatestVirusScanTimestamp int64 `json:"latestVirusScanTimestamp,omitempty,string"` @@ -25345,6 +25528,35 @@ func (s *User) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// UserActivity: User's single or bulk query activity. This can be a +// logging query or deletion query. +type UserActivity struct { + // QueryActivity: Contains data which needs to be logged/removed. + QueryActivity *QueryActivity `json:"queryActivity,omitempty"` + + // ForceSendFields is a list of field names (e.g. "QueryActivity") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "QueryActivity") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *UserActivity) MarshalJSON() ([]byte, error) { + type NoMethod UserActivity + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // UserDisplayInfo: Resource for displaying user info type UserDisplayInfo struct { // AvatarUrl: The avatar to show for this user @@ -29952,6 +30164,138 @@ func (c *OperationsLroListCall) Pages(ctx context.Context, f func(*ListOperation } } +// method id "cloudsearch.query.removeActivity": + +type QueryRemoveActivityCall struct { + s *Service + removeactivityrequest *RemoveActivityRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// RemoveActivity: Provides functionality to remove logged activity for +// a user. Currently to be used only for dynamite 1p clients **Note:** +// This API requires a standard end user account to execute. A service +// account can't perform Remove Activity requests directly; to use a +// service account to perform queries, set up Google Workspace +// domain-wide delegation of authority +// (https://developers.google.com/cloud-search/docs/guides/delegation/). +func (r *QueryService) RemoveActivity(removeactivityrequest *RemoveActivityRequest) *QueryRemoveActivityCall { + c := &QueryRemoveActivityCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.removeactivityrequest = removeactivityrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *QueryRemoveActivityCall) Fields(s ...googleapi.Field) *QueryRemoveActivityCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *QueryRemoveActivityCall) Context(ctx context.Context) *QueryRemoveActivityCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *QueryRemoveActivityCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *QueryRemoveActivityCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.removeactivityrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/query:removeActivity") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "cloudsearch.query.removeActivity" call. +// Exactly one of *RemoveActivityResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *RemoveActivityResponse.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was +// because http.StatusNotModified was returned. +func (c *QueryRemoveActivityCall) Do(opts ...googleapi.CallOption) (*RemoveActivityResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &RemoveActivityResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Provides functionality to remove logged activity for a user. Currently to be used only for dynamite 1p clients **Note:** This API requires a standard end user account to execute. A service account can't perform Remove Activity requests directly; to use a service account to perform queries, set up [Google Workspace domain-wide delegation of authority](https://developers.google.com/cloud-search/docs/guides/delegation/).", + // "flatPath": "v1/query:removeActivity", + // "httpMethod": "POST", + // "id": "cloudsearch.query.removeActivity", + // "parameterOrder": [], + // "parameters": {}, + // "path": "v1/query:removeActivity", + // "request": { + // "$ref": "RemoveActivityRequest" + // }, + // "response": { + // "$ref": "RemoveActivityResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud_search", + // "https://www.googleapis.com/auth/cloud_search.query" + // ] + // } + +} + // method id "cloudsearch.query.search": type QuerySearchCall struct { diff --git a/container/v1/container-api.json b/container/v1/container-api.json index 1d052dfbcec..0f33192ba35 100644 --- a/container/v1/container-api.json +++ b/container/v1/container-api.json @@ -197,6 +197,31 @@ "resources": { "clusters": { "methods": { + "checkAutopilotCompatibility": { + "description": "Checks the cluster compatibility with Autopilot mode, and returns a list of compatibility issues.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:checkAutopilotCompatibility", + "httpMethod": "GET", + "id": "container.projects.locations.clusters.checkAutopilotCompatibility", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The name (project, location, cluster) of the cluster to retrieve. Specified in the format `projects/*/locations/*/clusters/*`.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:checkAutopilotCompatibility", + "response": { + "$ref": "CheckAutopilotCompatibilityResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "completeIpRotation": { "description": "Completes master IP rotation.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:completeIpRotation", @@ -2489,7 +2514,7 @@ } } }, - "revision": "20230515", + "revision": "20230519", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -2630,6 +2655,53 @@ }, "type": "object" }, + "AutopilotCompatibilityIssue": { + "description": "AutopilotCompatibilityIssue contains information about a specific compatibility issue with Autopilot mode.", + "id": "AutopilotCompatibilityIssue", + "properties": { + "constraintType": { + "description": "The constraint type of the issue.", + "type": "string" + }, + "description": { + "description": "The description of the issue.", + "type": "string" + }, + "documentationUrl": { + "description": "A URL to a public documnetation, which addresses resolving this issue.", + "type": "string" + }, + "incompatibilityType": { + "description": "The incompatibility type of this issue.", + "enum": [ + "UNSPECIFIED", + "INCOMPATIBILITY", + "ADDITIONAL_CONFIG_REQUIRED", + "PASSED_WITH_OPTIONAL_CONFIG" + ], + "enumDescriptions": [ + "Default value, should not be used.", + "Indicates that the issue is a known incompatibility between the cluster and Autopilot mode.", + "Indicates the issue is an incompatibility if customers take no further action to resolve.", + "Indicates the issue is not an incompatibility, but depending on the workloads business logic, there is a potential that they won't work on Autopilot." + ], + "type": "string" + }, + "lastObservation": { + "description": "The last time when this issue was observed.", + "format": "google-datetime", + "type": "string" + }, + "subjects": { + "description": "The name of the resources which are subject to this issue.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "AutoprovisioningNodePoolDefaults": { "description": "AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.", "id": "AutoprovisioningNodePoolDefaults", @@ -2681,6 +2753,22 @@ }, "type": "object" }, + "BestEffortProvisioning": { + "description": "Best effort provisioning.", + "id": "BestEffortProvisioning", + "properties": { + "enabled": { + "description": "When this is enabled, cluster/node pool creations will ignore non-fatal errors like stockout to best provision as many nodes as possible right now and eventually bring up all target number of nodes", + "type": "boolean" + }, + "minProvisionNodes": { + "description": "Minimum number of nodes to be provisioned to be considered as succeeded, and the rest of nodes will be provisioned gradually and eventually when stockout issue has been resolved.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "BigQueryDestination": { "description": "Parameters for using BigQuery as the destination of resource usage export.", "id": "BigQueryDestination", @@ -2809,6 +2897,24 @@ }, "type": "object" }, + "CheckAutopilotCompatibilityResponse": { + "description": "CheckAutopilotCompatibilityResponse has a list of compatibility issues.", + "id": "CheckAutopilotCompatibilityResponse", + "properties": { + "issues": { + "description": "The list of issues for the given operation.", + "items": { + "$ref": "AutopilotCompatibilityIssue" + }, + "type": "array" + }, + "summary": { + "description": "The summary of the autopilot compatibility response.", + "type": "string" + } + }, + "type": "object" + }, "CidrBlock": { "description": "CidrBlock contains an optional name and one CIDR block.", "id": "CidrBlock", @@ -2932,6 +3038,10 @@ "description": "An optional description of this cluster.", "type": "string" }, + "enableK8sBetaApis": { + "$ref": "K8sBetaAPIConfig", + "description": "Beta APIs Config" + }, "enableKubernetesAlpha": { "description": "Kubernetes alpha features are enabled on this cluster. This includes alpha API groups (e.g. v1alpha1) and features that may not be production ready in the kubernetes version of the master and nodes. The cluster has no SLA for uptime and master/node upgrades are disabled. Alpha enabled clusters are automatically deleted thirty days after creation.", "type": "boolean" @@ -3257,6 +3367,10 @@ "$ref": "DNSConfig", "description": "DNSConfig contains clusterDNS config for this cluster." }, + "desiredEnableFqdnNetworkPolicy": { + "description": "Enable/Disable FQDN Network Policy for the cluster.", + "type": "boolean" + }, "desiredEnablePrivateEndpoint": { "description": "Enable/Disable private endpoint for the cluster's master.", "type": "boolean" @@ -3285,6 +3399,10 @@ "$ref": "IntraNodeVisibilityConfig", "description": "The desired config of Intra-node visibility." }, + "desiredK8sBetaApis": { + "$ref": "K8sBetaAPIConfig", + "description": "Desired Beta APIs to be enabled for cluster." + }, "desiredL4ilbSubsettingConfig": { "$ref": "ILBSubsettingConfig", "description": "The desired L4 Internal Load Balancer Subsetting configuration." @@ -3406,6 +3524,10 @@ "$ref": "WorkloadIdentityConfig", "description": "Configuration for Workload Identity." }, + "enableK8sBetaApis": { + "$ref": "K8sBetaAPIConfig", + "description": "Kubernetes open source beta apis enabled on the cluster. Only beta apis" + }, "etag": { "description": "The current etag of the cluster. If an etag is provided and does not match the current etag of the cluster, update will be blocked and an ABORTED error will be returned.", "type": "string" @@ -4102,6 +4224,20 @@ }, "type": "object" }, + "K8sBetaAPIConfig": { + "description": "K8sBetaAPIConfig , configuration for beta APIs", + "id": "K8sBetaAPIConfig", + "properties": { + "enabledApis": { + "description": "Enabled k8s beta APIs.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "KubernetesDashboard": { "description": "Configuration for the Kubernetes Dashboard.", "id": "KubernetesDashboard", @@ -4539,6 +4675,10 @@ "$ref": "DNSConfig", "description": "DNSConfig contains clusterDNS config for this cluster." }, + "enableFqdnNetworkPolicy": { + "description": "Whether FQDN Network Policy is enabled on this cluster.", + "type": "boolean" + }, "enableIntraNodeVisibility": { "description": "Whether Intra-node visibility is enabled for this cluster. This makes same node pod to pod traffic visible for VPC network.", "type": "boolean" @@ -4958,6 +5098,10 @@ "$ref": "NodePoolAutoscaling", "description": "Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present." }, + "bestEffortProvisioning": { + "$ref": "BestEffortProvisioning", + "description": "Enable best effort provisioning for nodes" + }, "conditions": { "description": "Which conditions caused the current node pool state.", "items": { diff --git a/container/v1/container-gen.go b/container/v1/container-gen.go index 54eca00f915..0982b905144 100644 --- a/container/v1/container-gen.go +++ b/container/v1/container-gen.go @@ -563,6 +563,62 @@ func (s *Autopilot) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AutopilotCompatibilityIssue: AutopilotCompatibilityIssue contains +// information about a specific compatibility issue with Autopilot mode. +type AutopilotCompatibilityIssue struct { + // ConstraintType: The constraint type of the issue. + ConstraintType string `json:"constraintType,omitempty"` + + // Description: The description of the issue. + Description string `json:"description,omitempty"` + + // DocumentationUrl: A URL to a public documnetation, which addresses + // resolving this issue. + DocumentationUrl string `json:"documentationUrl,omitempty"` + + // IncompatibilityType: The incompatibility type of this issue. + // + // Possible values: + // "UNSPECIFIED" - Default value, should not be used. + // "INCOMPATIBILITY" - Indicates that the issue is a known + // incompatibility between the cluster and Autopilot mode. + // "ADDITIONAL_CONFIG_REQUIRED" - Indicates the issue is an + // incompatibility if customers take no further action to resolve. + // "PASSED_WITH_OPTIONAL_CONFIG" - Indicates the issue is not an + // incompatibility, but depending on the workloads business logic, there + // is a potential that they won't work on Autopilot. + IncompatibilityType string `json:"incompatibilityType,omitempty"` + + // LastObservation: The last time when this issue was observed. + LastObservation string `json:"lastObservation,omitempty"` + + // Subjects: The name of the resources which are subject to this issue. + Subjects []string `json:"subjects,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ConstraintType") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ConstraintType") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AutopilotCompatibilityIssue) MarshalJSON() ([]byte, error) { + type NoMethod AutopilotCompatibilityIssue + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AutoprovisioningNodePoolDefaults: AutoprovisioningNodePoolDefaults // contains defaults for a node pool created by NAP. type AutoprovisioningNodePoolDefaults struct { @@ -645,6 +701,42 @@ func (s *AutoprovisioningNodePoolDefaults) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// BestEffortProvisioning: Best effort provisioning. +type BestEffortProvisioning struct { + // Enabled: When this is enabled, cluster/node pool creations will + // ignore non-fatal errors like stockout to best provision as many nodes + // as possible right now and eventually bring up all target number of + // nodes + Enabled bool `json:"enabled,omitempty"` + + // MinProvisionNodes: Minimum number of nodes to be provisioned to be + // considered as succeeded, and the rest of nodes will be provisioned + // gradually and eventually when stockout issue has been resolved. + MinProvisionNodes int64 `json:"minProvisionNodes,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Enabled") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Enabled") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *BestEffortProvisioning) MarshalJSON() ([]byte, error) { + type NoMethod BestEffortProvisioning + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // BigQueryDestination: Parameters for using BigQuery as the destination // of resource usage export. type BigQueryDestination struct { @@ -858,6 +950,43 @@ func (s *CancelOperationRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CheckAutopilotCompatibilityResponse: +// CheckAutopilotCompatibilityResponse has a list of compatibility +// issues. +type CheckAutopilotCompatibilityResponse struct { + // Issues: The list of issues for the given operation. + Issues []*AutopilotCompatibilityIssue `json:"issues,omitempty"` + + // Summary: The summary of the autopilot compatibility response. + Summary string `json:"summary,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Issues") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Issues") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *CheckAutopilotCompatibilityResponse) MarshalJSON() ([]byte, error) { + type NoMethod CheckAutopilotCompatibilityResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CidrBlock: CidrBlock contains an optional name and one CIDR block. type CidrBlock struct { // CidrBlock: cidr_block must be specified in CIDR notation. @@ -1030,6 +1159,9 @@ type Cluster struct { // Description: An optional description of this cluster. Description string `json:"description,omitempty"` + // EnableK8sBetaApis: Beta APIs Config + EnableK8sBetaApis *K8sBetaAPIConfig `json:"enableK8sBetaApis,omitempty"` + // EnableKubernetesAlpha: Kubernetes alpha features are enabled on this // cluster. This includes alpha API groups (e.g. v1alpha1) and features // that may not be production ready in the kubernetes version of the @@ -1440,6 +1572,10 @@ type ClusterUpdate struct { // cluster. DesiredDnsConfig *DNSConfig `json:"desiredDnsConfig,omitempty"` + // DesiredEnableFqdnNetworkPolicy: Enable/Disable FQDN Network Policy + // for the cluster. + DesiredEnableFqdnNetworkPolicy bool `json:"desiredEnableFqdnNetworkPolicy,omitempty"` + // DesiredEnablePrivateEndpoint: Enable/Disable private endpoint for the // cluster's master. DesiredEnablePrivateEndpoint bool `json:"desiredEnablePrivateEndpoint,omitempty"` @@ -1466,6 +1602,9 @@ type ClusterUpdate struct { // visibility. DesiredIntraNodeVisibilityConfig *IntraNodeVisibilityConfig `json:"desiredIntraNodeVisibilityConfig,omitempty"` + // DesiredK8sBetaApis: Desired Beta APIs to be enabled for cluster. + DesiredK8sBetaApis *K8sBetaAPIConfig `json:"desiredK8sBetaApis,omitempty"` + // DesiredL4ilbSubsettingConfig: The desired L4 Internal Load Balancer // Subsetting configuration. DesiredL4ilbSubsettingConfig *ILBSubsettingConfig `json:"desiredL4ilbSubsettingConfig,omitempty"` @@ -1608,6 +1747,10 @@ type ClusterUpdate struct { // DesiredWorkloadIdentityConfig: Configuration for Workload Identity. DesiredWorkloadIdentityConfig *WorkloadIdentityConfig `json:"desiredWorkloadIdentityConfig,omitempty"` + // EnableK8sBetaApis: Kubernetes open source beta apis enabled on the + // cluster. Only beta apis + EnableK8sBetaApis *K8sBetaAPIConfig `json:"enableK8sBetaApis,omitempty"` + // Etag: The current etag of the cluster. If an etag is provided and // does not match the current etag of the cluster, update will be // blocked and an ABORTED error will be returned. @@ -2946,6 +3089,34 @@ func (s *Jwk) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// K8sBetaAPIConfig: K8sBetaAPIConfig , configuration for beta APIs +type K8sBetaAPIConfig struct { + // EnabledApis: Enabled k8s beta APIs. + EnabledApis []string `json:"enabledApis,omitempty"` + + // ForceSendFields is a list of field names (e.g. "EnabledApis") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "EnabledApis") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *K8sBetaAPIConfig) MarshalJSON() ([]byte, error) { + type NoMethod K8sBetaAPIConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // KubernetesDashboard: Configuration for the Kubernetes Dashboard. type KubernetesDashboard struct { // Disabled: Whether the Kubernetes Dashboard is enabled for this @@ -3808,6 +3979,10 @@ type NetworkConfig struct { // DnsConfig: DNSConfig contains clusterDNS config for this cluster. DnsConfig *DNSConfig `json:"dnsConfig,omitempty"` + // EnableFqdnNetworkPolicy: Whether FQDN Network Policy is enabled on + // this cluster. + EnableFqdnNetworkPolicy bool `json:"enableFqdnNetworkPolicy,omitempty"` + // EnableIntraNodeVisibility: Whether Intra-node visibility is enabled // for this cluster. This makes same node pod to pod traffic visible for // VPC network. @@ -4503,6 +4678,9 @@ type NodePool struct { // is enabled only if a valid configuration is present. Autoscaling *NodePoolAutoscaling `json:"autoscaling,omitempty"` + // BestEffortProvisioning: Enable best effort provisioning for nodes + BestEffortProvisioning *BestEffortProvisioning `json:"bestEffortProvisioning,omitempty"` + // Conditions: Which conditions caused the current node pool state. Conditions []*StatusCondition `json:"conditions,omitempty"` @@ -8048,6 +8226,156 @@ func (c *ProjectsLocationsGetServerConfigCall) Do(opts ...googleapi.CallOption) } +// method id "container.projects.locations.clusters.checkAutopilotCompatibility": + +type ProjectsLocationsClustersCheckAutopilotCompatibilityCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// CheckAutopilotCompatibility: Checks the cluster compatibility with +// Autopilot mode, and returns a list of compatibility issues. +// +// - name: The name (project, location, cluster) of the cluster to +// retrieve. Specified in the format +// `projects/*/locations/*/clusters/*`. +func (r *ProjectsLocationsClustersService) CheckAutopilotCompatibility(name string) *ProjectsLocationsClustersCheckAutopilotCompatibilityCall { + c := &ProjectsLocationsClustersCheckAutopilotCompatibilityCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsClustersCheckAutopilotCompatibilityCall) Fields(s ...googleapi.Field) *ProjectsLocationsClustersCheckAutopilotCompatibilityCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsClustersCheckAutopilotCompatibilityCall) IfNoneMatch(entityTag string) *ProjectsLocationsClustersCheckAutopilotCompatibilityCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsClustersCheckAutopilotCompatibilityCall) Context(ctx context.Context) *ProjectsLocationsClustersCheckAutopilotCompatibilityCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsClustersCheckAutopilotCompatibilityCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsClustersCheckAutopilotCompatibilityCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:checkAutopilotCompatibility") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "container.projects.locations.clusters.checkAutopilotCompatibility" call. +// Exactly one of *CheckAutopilotCompatibilityResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *CheckAutopilotCompatibilityResponse.ServerResponse.Header or +// (if a response was returned at all) in +// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check +// whether the returned error was because http.StatusNotModified was +// returned. +func (c *ProjectsLocationsClustersCheckAutopilotCompatibilityCall) Do(opts ...googleapi.CallOption) (*CheckAutopilotCompatibilityResponse, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &CheckAutopilotCompatibilityResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Checks the cluster compatibility with Autopilot mode, and returns a list of compatibility issues.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/clusters/{clustersId}:checkAutopilotCompatibility", + // "httpMethod": "GET", + // "id": "container.projects.locations.clusters.checkAutopilotCompatibility", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "The name (project, location, cluster) of the cluster to retrieve. Specified in the format `projects/*/locations/*/clusters/*`.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}:checkAutopilotCompatibility", + // "response": { + // "$ref": "CheckAutopilotCompatibilityResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "container.projects.locations.clusters.completeIpRotation": type ProjectsLocationsClustersCompleteIpRotationCall struct { diff --git a/iam/v1/iam-api.json b/iam/v1/iam-api.json index 89171e32376..d932daf37eb 100644 --- a/iam/v1/iam-api.json +++ b/iam/v1/iam-api.json @@ -2751,7 +2751,7 @@ } } }, - "revision": "20230427", + "revision": "20230530", "rootUrl": "https://iam.googleapis.com/", "schemas": { "AdminAuditData": { @@ -3413,6 +3413,10 @@ "issuerUri": { "description": "Required. The OIDC issuer URL. Must be an HTTPS endpoint.", "type": "string" + }, + "jwksJson": { + "description": "Optional. OIDC JWKs in JSON String format. For details on the definition of a JWK, see https://tools.ietf.org/html/rfc7517. If not set, the `jwks_uri` from the discovery document(fetched from the .well-known path of the `issuer_uri`) will be used. Currently, RSA and EC asymmetric keys are supported. The JWK must use following format and include only the following fields: { \"keys\": [ { \"kty\": \"RSA/EC\", \"alg\": \"\", \"use\": \"sig\", \"kid\": \"\", \"n\": \"\", \"e\": \"\", \"x\": \"\", \"y\": \"\", \"crv\": \"\" } ] }", + "type": "string" } }, "type": "object" diff --git a/iam/v1/iam-gen.go b/iam/v1/iam-gen.go index 86717a7a869..3a89574dafa 100644 --- a/iam/v1/iam-gen.go +++ b/iam/v1/iam-gen.go @@ -1747,6 +1747,16 @@ type Oidc struct { // IssuerUri: Required. The OIDC issuer URL. Must be an HTTPS endpoint. IssuerUri string `json:"issuerUri,omitempty"` + // JwksJson: Optional. OIDC JWKs in JSON String format. For details on + // the definition of a JWK, see https://tools.ietf.org/html/rfc7517. If + // not set, the `jwks_uri` from the discovery document(fetched from the + // .well-known path of the `issuer_uri`) will be used. Currently, RSA + // and EC asymmetric keys are supported. The JWK must use following + // format and include only the following fields: { "keys": [ { "kty": + // "RSA/EC", "alg": "", "use": "sig", "kid": "", "n": "", "e": "", "x": + // "", "y": "", "crv": "" } ] } + JwksJson string `json:"jwksJson,omitempty"` + // ForceSendFields is a list of field names (e.g. "AllowedAudiences") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any diff --git a/manufacturers/v1/manufacturers-api.json b/manufacturers/v1/manufacturers-api.json index 7abd7b40f8b..ec9efadbb51 100644 --- a/manufacturers/v1/manufacturers-api.json +++ b/manufacturers/v1/manufacturers-api.json @@ -416,7 +416,7 @@ } } }, - "revision": "20230209", + "revision": "20230602", "rootUrl": "https://manufacturers.googleapis.com/", "schemas": { "Attributes": { @@ -611,6 +611,10 @@ "type": "string" }, "type": "array" + }, + "virtualModelLink": { + "description": "Virtual Model (3d) asset link.", + "type": "string" } }, "type": "object" diff --git a/manufacturers/v1/manufacturers-gen.go b/manufacturers/v1/manufacturers-gen.go index 2847bf77c1e..5d5da4327cf 100644 --- a/manufacturers/v1/manufacturers-gen.go +++ b/manufacturers/v1/manufacturers-gen.go @@ -358,6 +358,9 @@ type Attributes struct { // https://support.google.com/manufacturers/answer/6124116#video. VideoLink []string `json:"videoLink,omitempty"` + // VirtualModelLink: Virtual Model (3d) asset link. + VirtualModelLink string `json:"virtualModelLink,omitempty"` + // ForceSendFields is a list of field names (e.g. "AdditionalImageLink") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any