diff --git a/analyticsdata/v1beta/analyticsdata-api.json b/analyticsdata/v1beta/analyticsdata-api.json index 02d27caef3..0c18663d76 100644 --- a/analyticsdata/v1beta/analyticsdata-api.json +++ b/analyticsdata/v1beta/analyticsdata-api.json @@ -440,7 +440,7 @@ } } }, - "revision": "20240128", + "revision": "20240512", "rootUrl": "https://analyticsdata.googleapis.com/", "schemas": { "ActiveMetricRestriction": { @@ -790,6 +790,44 @@ }, "type": "object" }, + "Comparison": { + "description": "Defines an individual comparison. Most requests will include multiple comparisons so that the report compares between the comparisons.", + "id": "Comparison", + "properties": { + "comparison": { + "description": "A saved comparison identified by the comparison's resource name. For example, 'comparisons/1234'.", + "type": "string" + }, + "dimensionFilter": { + "$ref": "FilterExpression", + "description": "A basic comparison." + }, + "name": { + "description": "Each comparison produces separate rows in the response. In the response, this comparison is identified by this name. If name is unspecified, we will use the saved comparisons display name.", + "type": "string" + } + }, + "type": "object" + }, + "ComparisonMetadata": { + "description": "The metadata for a single comparison.", + "id": "ComparisonMetadata", + "properties": { + "apiName": { + "description": "This comparison's resource name. Useable in [Comparison](#Comparison)'s `comparison` field. For example, 'comparisons/1234'.", + "type": "string" + }, + "description": { + "description": "This comparison's description.", + "type": "string" + }, + "uiName": { + "description": "This comparison's name within the Google Analytics user interface.", + "type": "string" + } + }, + "type": "object" + }, "ConcatenateExpression": { "description": "Used to combine dimension values to a single dimension.", "id": "ConcatenateExpression", @@ -1073,6 +1111,13 @@ "description": "The dimensions, metrics and comparisons currently accepted in reporting methods.", "id": "Metadata", "properties": { + "comparisons": { + "description": "The comparison descriptions.", + "items": { + "$ref": "ComparisonMetadata" + }, + "type": "array" + }, "dimensions": { "description": "The dimension descriptions.", "items": { @@ -1694,6 +1739,13 @@ "$ref": "CohortSpec", "description": "Cohort group associated with this request. If there is a cohort group in the request the 'cohort' dimension must be present." }, + "comparisons": { + "description": "Optional. The configuration of comparisons requested and displayed. The request requires both a comparisons field and a comparisons dimension to receive a comparison column in the response.", + "items": { + "$ref": "Comparison" + }, + "type": "array" + }, "currencyCode": { "description": "A currency code in ISO4217 format, such as \"AED\", \"USD\", \"JPY\". If the field is empty, the report uses the property's default currency.", "type": "string" @@ -1946,6 +1998,13 @@ "$ref": "CohortSpec", "description": "Cohort group associated with this request. If there is a cohort group in the request the 'cohort' dimension must be present." }, + "comparisons": { + "description": "Optional. The configuration of comparisons requested and displayed. The request only requires a comparisons field in order to receive a comparison column in the response.", + "items": { + "$ref": "Comparison" + }, + "type": "array" + }, "currencyCode": { "description": "A currency code in ISO4217 format, such as \"AED\", \"USD\", \"JPY\". If the field is empty, the report uses the property's default currency.", "type": "string" diff --git a/analyticsdata/v1beta/analyticsdata-gen.go b/analyticsdata/v1beta/analyticsdata-gen.go index fa8f25dcaf..f9f96f020c 100644 --- a/analyticsdata/v1beta/analyticsdata-gen.go +++ b/analyticsdata/v1beta/analyticsdata-gen.go @@ -695,6 +695,63 @@ func (s *CohortsRange) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// Comparison: Defines an individual comparison. Most requests will include +// multiple comparisons so that the report compares between the comparisons. +type Comparison struct { + // Comparison: A saved comparison identified by the comparison's resource name. + // For example, 'comparisons/1234'. + Comparison string `json:"comparison,omitempty"` + // DimensionFilter: A basic comparison. + DimensionFilter *FilterExpression `json:"dimensionFilter,omitempty"` + // Name: Each comparison produces separate rows in the response. In the + // response, this comparison is identified by this name. If name is + // unspecified, we will use the saved comparisons display name. + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "Comparison") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Comparison") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *Comparison) MarshalJSON() ([]byte, error) { + type NoMethod Comparison + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// ComparisonMetadata: The metadata for a single comparison. +type ComparisonMetadata struct { + // ApiName: This comparison's resource name. Useable in Comparison + // (#Comparison)'s `comparison` field. For example, 'comparisons/1234'. + ApiName string `json:"apiName,omitempty"` + // Description: This comparison's description. + Description string `json:"description,omitempty"` + // UiName: This comparison's name within the Google Analytics user interface. + UiName string `json:"uiName,omitempty"` + // ForceSendFields is a list of field names (e.g. "ApiName") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ApiName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *ComparisonMetadata) MarshalJSON() ([]byte, error) { + type NoMethod ComparisonMetadata + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // ConcatenateExpression: Used to combine dimension values to a single // dimension. type ConcatenateExpression struct { @@ -1133,6 +1190,8 @@ func (s *ListAudienceExportsResponse) MarshalJSON() ([]byte, error) { // Metadata: The dimensions, metrics and comparisons currently accepted in // reporting methods. type Metadata struct { + // Comparisons: The comparison descriptions. + Comparisons []*ComparisonMetadata `json:"comparisons,omitempty"` // Dimensions: The dimension descriptions. Dimensions []*DimensionMetadata `json:"dimensions,omitempty"` // Metrics: The metric descriptions. @@ -1142,13 +1201,13 @@ type Metadata struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Dimensions") to + // ForceSendFields is a list of field names (e.g. "Comparisons") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Dimensions") to include in API + // NullFields is a list of field names (e.g. "Comparisons") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -2012,6 +2071,10 @@ type RunPivotReportRequest struct { // CohortSpec: Cohort group associated with this request. If there is a cohort // group in the request the 'cohort' dimension must be present. CohortSpec *CohortSpec `json:"cohortSpec,omitempty"` + // Comparisons: Optional. The configuration of comparisons requested and + // displayed. The request requires both a comparisons field and a comparisons + // dimension to receive a comparison column in the response. + Comparisons []*Comparison `json:"comparisons,omitempty"` // CurrencyCode: A currency code in ISO4217 format, such as "AED", "USD", // "JPY". If the field is empty, the report uses the property's default // currency. @@ -2254,6 +2317,10 @@ type RunReportRequest struct { // CohortSpec: Cohort group associated with this request. If there is a cohort // group in the request the 'cohort' dimension must be present. CohortSpec *CohortSpec `json:"cohortSpec,omitempty"` + // Comparisons: Optional. The configuration of comparisons requested and + // displayed. The request only requires a comparisons field in order to receive + // a comparison column in the response. + Comparisons []*Comparison `json:"comparisons,omitempty"` // CurrencyCode: A currency code in ISO4217 format, such as "AED", "USD", // "JPY". If the field is empty, the report uses the property's default // currency. diff --git a/assuredworkloads/v1/assuredworkloads-api.json b/assuredworkloads/v1/assuredworkloads-api.json index 1485f218d1..8c46ba8c5e 100644 --- a/assuredworkloads/v1/assuredworkloads-api.json +++ b/assuredworkloads/v1/assuredworkloads-api.json @@ -591,7 +591,7 @@ } } }, - "revision": "20240422", + "revision": "20240510", "rootUrl": "https://assuredworkloads.googleapis.com/", "schemas": { "GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest": { @@ -682,19 +682,25 @@ "CJIS", "FEDRAMP_HIGH", "FEDRAMP_MODERATE", + "REGIONAL_CONTROLS_PREMIUM_US", "US_REGIONAL_ACCESS", "HIPAA", "HITRUST", + "REGIONAL_CONTROLS_PREMIUM_EU", "EU_REGIONS_AND_SUPPORT", + "REGIONAL_CONTROLS_PREMIUM_CA", "CA_REGIONS_AND_SUPPORT", "ITAR", + "REGIONAL_CONTROLS_PREMIUM_AU", "AU_REGIONS_AND_US_SUPPORT", "ASSURED_WORKLOADS_FOR_PARTNERS", + "REGIONAL_CONTROLS_PREMIUM_ISR", "ISR_REGIONS", "ISR_REGIONS_AND_SUPPORT", "CA_PROTECTED_B", "IL5", "IL2", + "REGIONAL_CONTROLS_PREMIUM_JP", "JP_REGIONS_AND_SUPPORT", "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS", "REGIONAL_CONTROLS", @@ -707,19 +713,25 @@ "FedRAMP High data protection controls", "FedRAMP Moderate data protection controls", "Assured Workloads For US Regions data protection controls", + "Assured Workloads For US Regions data protection controls", "Health Insurance Portability and Accountability Act controls", "Health Information Trust Alliance controls", "Assured Workloads For EU Regions and Support controls", + "Assured Workloads For EU Regions and Support controls", + "Assured Workloads For Canada Regions and Support controls", "Assured Workloads For Canada Regions and Support controls", "International Traffic in Arms Regulations", "Assured Workloads for Australia Regions and Support controls", + "Assured Workloads for Australia Regions and Support controls", "Assured Workloads for Partners;", "Assured Workloads for Israel", "Assured Workloads for Israel Regions", + "Assured Workloads for Israel Regions", "Assured Workloads for Canada Protected B regime", "Information protection as per DoD IL5 requirements.", "Information protection as per DoD IL2 requirements.", "Assured Workloads for Japan Regions", + "Assured Workloads for Japan Regions", "KSA R5 Controls.", "Assured Workloads for Regional Controls/Free Regions", "Assured Workloads for Regional Controls/Free Regions" @@ -1165,19 +1177,25 @@ "CJIS", "FEDRAMP_HIGH", "FEDRAMP_MODERATE", + "REGIONAL_CONTROLS_PREMIUM_US", "US_REGIONAL_ACCESS", "HIPAA", "HITRUST", + "REGIONAL_CONTROLS_PREMIUM_EU", "EU_REGIONS_AND_SUPPORT", + "REGIONAL_CONTROLS_PREMIUM_CA", "CA_REGIONS_AND_SUPPORT", "ITAR", + "REGIONAL_CONTROLS_PREMIUM_AU", "AU_REGIONS_AND_US_SUPPORT", "ASSURED_WORKLOADS_FOR_PARTNERS", + "REGIONAL_CONTROLS_PREMIUM_ISR", "ISR_REGIONS", "ISR_REGIONS_AND_SUPPORT", "CA_PROTECTED_B", "IL5", "IL2", + "REGIONAL_CONTROLS_PREMIUM_JP", "JP_REGIONS_AND_SUPPORT", "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS", "REGIONAL_CONTROLS", @@ -1190,19 +1208,25 @@ "FedRAMP High data protection controls", "FedRAMP Moderate data protection controls", "Assured Workloads For US Regions data protection controls", + "Assured Workloads For US Regions data protection controls", "Health Insurance Portability and Accountability Act controls", "Health Information Trust Alliance controls", "Assured Workloads For EU Regions and Support controls", + "Assured Workloads For EU Regions and Support controls", + "Assured Workloads For Canada Regions and Support controls", "Assured Workloads For Canada Regions and Support controls", "International Traffic in Arms Regulations", "Assured Workloads for Australia Regions and Support controls", + "Assured Workloads for Australia Regions and Support controls", "Assured Workloads for Partners;", "Assured Workloads for Israel", "Assured Workloads for Israel Regions", + "Assured Workloads for Israel Regions", "Assured Workloads for Canada Protected B regime", "Information protection as per DoD IL5 requirements.", "Information protection as per DoD IL2 requirements.", "Assured Workloads for Japan Regions", + "Assured Workloads for Japan Regions", "KSA R5 Controls.", "Assured Workloads for Regional Controls/Free Regions", "Assured Workloads for Regional Controls/Free Regions" diff --git a/assuredworkloads/v1/assuredworkloads-gen.go b/assuredworkloads/v1/assuredworkloads-gen.go index 1d29f340b6..486baecbf0 100644 --- a/assuredworkloads/v1/assuredworkloads-gen.go +++ b/assuredworkloads/v1/assuredworkloads-gen.go @@ -328,23 +328,33 @@ type GoogleCloudAssuredworkloadsV1CreateWorkloadOperationMetadata struct { // "CJIS" - Criminal Justice Information Services (CJIS) Security policies. // "FEDRAMP_HIGH" - FedRAMP High data protection controls // "FEDRAMP_MODERATE" - FedRAMP Moderate data protection controls + // "REGIONAL_CONTROLS_PREMIUM_US" - Assured Workloads For US Regions data + // protection controls // "US_REGIONAL_ACCESS" - Assured Workloads For US Regions data protection // controls // "HIPAA" - Health Insurance Portability and Accountability Act controls // "HITRUST" - Health Information Trust Alliance controls + // "REGIONAL_CONTROLS_PREMIUM_EU" - Assured Workloads For EU Regions and + // Support controls // "EU_REGIONS_AND_SUPPORT" - Assured Workloads For EU Regions and Support // controls + // "REGIONAL_CONTROLS_PREMIUM_CA" - Assured Workloads For Canada Regions and + // Support controls // "CA_REGIONS_AND_SUPPORT" - Assured Workloads For Canada Regions and // Support controls // "ITAR" - International Traffic in Arms Regulations + // "REGIONAL_CONTROLS_PREMIUM_AU" - Assured Workloads for Australia Regions + // and Support controls // "AU_REGIONS_AND_US_SUPPORT" - Assured Workloads for Australia Regions and // Support controls // "ASSURED_WORKLOADS_FOR_PARTNERS" - Assured Workloads for Partners; - // "ISR_REGIONS" - Assured Workloads for Israel + // "REGIONAL_CONTROLS_PREMIUM_ISR" - Assured Workloads for Israel + // "ISR_REGIONS" - Assured Workloads for Israel Regions // "ISR_REGIONS_AND_SUPPORT" - Assured Workloads for Israel Regions // "CA_PROTECTED_B" - Assured Workloads for Canada Protected B regime // "IL5" - Information protection as per DoD IL5 requirements. // "IL2" - Information protection as per DoD IL2 requirements. + // "REGIONAL_CONTROLS_PREMIUM_JP" - Assured Workloads for Japan Regions // "JP_REGIONS_AND_SUPPORT" - Assured Workloads for Japan Regions // "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS" - KSA R5 Controls. // "REGIONAL_CONTROLS" - Assured Workloads for Regional Controls/Free Regions @@ -861,23 +871,33 @@ type GoogleCloudAssuredworkloadsV1Workload struct { // "CJIS" - Criminal Justice Information Services (CJIS) Security policies. // "FEDRAMP_HIGH" - FedRAMP High data protection controls // "FEDRAMP_MODERATE" - FedRAMP Moderate data protection controls + // "REGIONAL_CONTROLS_PREMIUM_US" - Assured Workloads For US Regions data + // protection controls // "US_REGIONAL_ACCESS" - Assured Workloads For US Regions data protection // controls // "HIPAA" - Health Insurance Portability and Accountability Act controls // "HITRUST" - Health Information Trust Alliance controls + // "REGIONAL_CONTROLS_PREMIUM_EU" - Assured Workloads For EU Regions and + // Support controls // "EU_REGIONS_AND_SUPPORT" - Assured Workloads For EU Regions and Support // controls + // "REGIONAL_CONTROLS_PREMIUM_CA" - Assured Workloads For Canada Regions and + // Support controls // "CA_REGIONS_AND_SUPPORT" - Assured Workloads For Canada Regions and // Support controls // "ITAR" - International Traffic in Arms Regulations + // "REGIONAL_CONTROLS_PREMIUM_AU" - Assured Workloads for Australia Regions + // and Support controls // "AU_REGIONS_AND_US_SUPPORT" - Assured Workloads for Australia Regions and // Support controls // "ASSURED_WORKLOADS_FOR_PARTNERS" - Assured Workloads for Partners; - // "ISR_REGIONS" - Assured Workloads for Israel + // "REGIONAL_CONTROLS_PREMIUM_ISR" - Assured Workloads for Israel + // "ISR_REGIONS" - Assured Workloads for Israel Regions // "ISR_REGIONS_AND_SUPPORT" - Assured Workloads for Israel Regions // "CA_PROTECTED_B" - Assured Workloads for Canada Protected B regime // "IL5" - Information protection as per DoD IL5 requirements. // "IL2" - Information protection as per DoD IL2 requirements. + // "REGIONAL_CONTROLS_PREMIUM_JP" - Assured Workloads for Japan Regions // "JP_REGIONS_AND_SUPPORT" - Assured Workloads for Japan Regions // "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS" - KSA R5 Controls. // "REGIONAL_CONTROLS" - Assured Workloads for Regional Controls/Free Regions diff --git a/assuredworkloads/v1beta1/assuredworkloads-api.json b/assuredworkloads/v1beta1/assuredworkloads-api.json index 8fc65811c8..f09a5e65f1 100644 --- a/assuredworkloads/v1beta1/assuredworkloads-api.json +++ b/assuredworkloads/v1beta1/assuredworkloads-api.json @@ -563,7 +563,7 @@ } } }, - "revision": "20240422", + "revision": "20240510", "rootUrl": "https://assuredworkloads.googleapis.com/", "schemas": { "GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest": { @@ -654,19 +654,25 @@ "CJIS", "FEDRAMP_HIGH", "FEDRAMP_MODERATE", + "REGIONAL_CONTROLS_PREMIUM_US", "US_REGIONAL_ACCESS", "HIPAA", "HITRUST", + "REGIONAL_CONTROLS_PREMIUM_EU", "EU_REGIONS_AND_SUPPORT", + "REGIONAL_CONTROLS_PREMIUM_CA", "CA_REGIONS_AND_SUPPORT", "ITAR", + "REGIONAL_CONTROLS_PREMIUM_AU", "AU_REGIONS_AND_US_SUPPORT", "ASSURED_WORKLOADS_FOR_PARTNERS", + "REGIONAL_CONTROLS_PREMIUM_ISR", "ISR_REGIONS", "ISR_REGIONS_AND_SUPPORT", "CA_PROTECTED_B", "IL5", "IL2", + "REGIONAL_CONTROLS_PREMIUM_JP", "JP_REGIONS_AND_SUPPORT", "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS", "REGIONAL_CONTROLS", @@ -679,19 +685,25 @@ "FedRAMP High data protection controls", "FedRAMP Moderate data protection controls", "Assured Workloads For US Regions data protection controls", + "Assured Workloads For US Regions data protection controls", "Health Insurance Portability and Accountability Act controls", "Health Information Trust Alliance controls", "Assured Workloads For EU Regions and Support controls", + "Assured Workloads For EU Regions and Support controls", + "Assured Workloads For Canada Regions and Support controls", "Assured Workloads For Canada Regions and Support controls", "International Traffic in Arms Regulations", "Assured Workloads for Australia Regions and Support controls", + "Assured Workloads for Australia Regions and Support controls", "Assured Workloads for Partners;", "Assured Workloads for Israel", "Assured Workloads for Israel Regions", + "Assured Workloads for Israel Regions", "Assured Workloads for Canada Protected B regime", "Information protection as per DoD IL5 requirements.", "Information protection as per DoD IL2 requirements.", "Assured Workloads for Japan Regions", + "Assured Workloads for Japan Regions", "KSA R5 Controls.", "Assured Workloads for Regional Controls/Free Regions", "Assured Workloads for Regional Controls/Free Regions" @@ -1129,19 +1141,25 @@ "CJIS", "FEDRAMP_HIGH", "FEDRAMP_MODERATE", + "REGIONAL_CONTROLS_PREMIUM_US", "US_REGIONAL_ACCESS", "HIPAA", "HITRUST", + "REGIONAL_CONTROLS_PREMIUM_EU", "EU_REGIONS_AND_SUPPORT", + "REGIONAL_CONTROLS_PREMIUM_CA", "CA_REGIONS_AND_SUPPORT", "ITAR", + "REGIONAL_CONTROLS_PREMIUM_AU", "AU_REGIONS_AND_US_SUPPORT", "ASSURED_WORKLOADS_FOR_PARTNERS", + "REGIONAL_CONTROLS_PREMIUM_ISR", "ISR_REGIONS", "ISR_REGIONS_AND_SUPPORT", "CA_PROTECTED_B", "IL5", "IL2", + "REGIONAL_CONTROLS_PREMIUM_JP", "JP_REGIONS_AND_SUPPORT", "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS", "REGIONAL_CONTROLS", @@ -1154,19 +1172,25 @@ "FedRAMP High data protection controls", "FedRAMP Moderate data protection controls", "Assured Workloads For US Regions data protection controls", + "Assured Workloads For US Regions data protection controls", "Health Insurance Portability and Accountability Act controls", "Health Information Trust Alliance controls", "Assured Workloads For EU Regions and Support controls", + "Assured Workloads For EU Regions and Support controls", + "Assured Workloads For Canada Regions and Support controls", "Assured Workloads For Canada Regions and Support controls", "International Traffic in Arms Regulations", "Assured Workloads for Australia Regions and Support controls", + "Assured Workloads for Australia Regions and Support controls", "Assured Workloads for Partners;", "Assured Workloads for Israel", "Assured Workloads for Israel Regions", + "Assured Workloads for Israel Regions", "Assured Workloads for Canada Protected B regime", "Information protection as per DoD IL5 requirements.", "Information protection as per DoD IL2 requirements.", "Assured Workloads for Japan Regions", + "Assured Workloads for Japan Regions", "KSA R5 Controls.", "Assured Workloads for Regional Controls/Free Regions", "Assured Workloads for Regional Controls/Free Regions" diff --git a/assuredworkloads/v1beta1/assuredworkloads-gen.go b/assuredworkloads/v1beta1/assuredworkloads-gen.go index bdcfd43cf2..7a799a3bd4 100644 --- a/assuredworkloads/v1beta1/assuredworkloads-gen.go +++ b/assuredworkloads/v1beta1/assuredworkloads-gen.go @@ -328,23 +328,33 @@ type GoogleCloudAssuredworkloadsV1beta1CreateWorkloadOperationMetadata struct { // "CJIS" - Criminal Justice Information Services (CJIS) Security policies. // "FEDRAMP_HIGH" - FedRAMP High data protection controls // "FEDRAMP_MODERATE" - FedRAMP Moderate data protection controls + // "REGIONAL_CONTROLS_PREMIUM_US" - Assured Workloads For US Regions data + // protection controls // "US_REGIONAL_ACCESS" - Assured Workloads For US Regions data protection // controls // "HIPAA" - Health Insurance Portability and Accountability Act controls // "HITRUST" - Health Information Trust Alliance controls + // "REGIONAL_CONTROLS_PREMIUM_EU" - Assured Workloads For EU Regions and + // Support controls // "EU_REGIONS_AND_SUPPORT" - Assured Workloads For EU Regions and Support // controls + // "REGIONAL_CONTROLS_PREMIUM_CA" - Assured Workloads For Canada Regions and + // Support controls // "CA_REGIONS_AND_SUPPORT" - Assured Workloads For Canada Regions and // Support controls // "ITAR" - International Traffic in Arms Regulations + // "REGIONAL_CONTROLS_PREMIUM_AU" - Assured Workloads for Australia Regions + // and Support controls // "AU_REGIONS_AND_US_SUPPORT" - Assured Workloads for Australia Regions and // Support controls // "ASSURED_WORKLOADS_FOR_PARTNERS" - Assured Workloads for Partners; - // "ISR_REGIONS" - Assured Workloads for Israel + // "REGIONAL_CONTROLS_PREMIUM_ISR" - Assured Workloads for Israel + // "ISR_REGIONS" - Assured Workloads for Israel Regions // "ISR_REGIONS_AND_SUPPORT" - Assured Workloads for Israel Regions // "CA_PROTECTED_B" - Assured Workloads for Canada Protected B regime // "IL5" - Information protection as per DoD IL5 requirements. // "IL2" - Information protection as per DoD IL2 requirements. + // "REGIONAL_CONTROLS_PREMIUM_JP" - Assured Workloads for Japan Regions // "JP_REGIONS_AND_SUPPORT" - Assured Workloads for Japan Regions // "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS" - KSA R5 Controls. // "REGIONAL_CONTROLS" - Assured Workloads for Regional Controls/Free Regions @@ -838,23 +848,33 @@ type GoogleCloudAssuredworkloadsV1beta1Workload struct { // "CJIS" - Criminal Justice Information Services (CJIS) Security policies. // "FEDRAMP_HIGH" - FedRAMP High data protection controls // "FEDRAMP_MODERATE" - FedRAMP Moderate data protection controls + // "REGIONAL_CONTROLS_PREMIUM_US" - Assured Workloads For US Regions data + // protection controls // "US_REGIONAL_ACCESS" - Assured Workloads For US Regions data protection // controls // "HIPAA" - Health Insurance Portability and Accountability Act controls // "HITRUST" - Health Information Trust Alliance controls + // "REGIONAL_CONTROLS_PREMIUM_EU" - Assured Workloads For EU Regions and + // Support controls // "EU_REGIONS_AND_SUPPORT" - Assured Workloads For EU Regions and Support // controls + // "REGIONAL_CONTROLS_PREMIUM_CA" - Assured Workloads For Canada Regions and + // Support controls // "CA_REGIONS_AND_SUPPORT" - Assured Workloads For Canada Regions and // Support controls // "ITAR" - International Traffic in Arms Regulations + // "REGIONAL_CONTROLS_PREMIUM_AU" - Assured Workloads for Australia Regions + // and Support controls // "AU_REGIONS_AND_US_SUPPORT" - Assured Workloads for Australia Regions and // Support controls // "ASSURED_WORKLOADS_FOR_PARTNERS" - Assured Workloads for Partners; - // "ISR_REGIONS" - Assured Workloads for Israel + // "REGIONAL_CONTROLS_PREMIUM_ISR" - Assured Workloads for Israel + // "ISR_REGIONS" - Assured Workloads for Israel Regions // "ISR_REGIONS_AND_SUPPORT" - Assured Workloads for Israel Regions // "CA_PROTECTED_B" - Assured Workloads for Canada Protected B regime // "IL5" - Information protection as per DoD IL5 requirements. // "IL2" - Information protection as per DoD IL2 requirements. + // "REGIONAL_CONTROLS_PREMIUM_JP" - Assured Workloads for Japan Regions // "JP_REGIONS_AND_SUPPORT" - Assured Workloads for Japan Regions // "KSA_REGIONS_AND_SUPPORT_WITH_SOVEREIGNTY_CONTROLS" - KSA R5 Controls. // "REGIONAL_CONTROLS" - Assured Workloads for Regional Controls/Free Regions diff --git a/compute/v0.alpha/compute-api.json b/compute/v0.alpha/compute-api.json index 651291dd6a..5b1001c852 100644 --- a/compute/v0.alpha/compute-api.json +++ b/compute/v0.alpha/compute-api.json @@ -44423,7 +44423,7 @@ } } }, - "revision": "20240430", + "revision": "20240507", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -46348,31 +46348,6 @@ }, "type": "object" }, - "AuthorizationLoggingOptions": { - "description": "This is deprecated and has no effect. Do not use.", - "id": "AuthorizationLoggingOptions", - "properties": { - "permissionType": { - "description": "This is deprecated and has no effect. Do not use.", - "enum": [ - "ADMIN_READ", - "ADMIN_WRITE", - "DATA_READ", - "DATA_WRITE", - "PERMISSION_TYPE_UNSPECIFIED" - ], - "enumDescriptions": [ - "This is deprecated and has no effect. Do not use.", - "This is deprecated and has no effect. Do not use.", - "This is deprecated and has no effect. Do not use.", - "This is deprecated and has no effect. Do not use.", - "This is deprecated and has no effect. Do not use." - ], - "type": "string" - } - }, - "type": "object" - }, "Autoscaler": { "description": "Represents an Autoscaler resource. Google Compute Engine has two Autoscaler resources: * [Zonal](/compute/docs/reference/rest/alpha/autoscalers) * [Regional](/compute/docs/reference/rest/alpha/regionAutoscalers) Use autoscalers to automatically add or delete instances from a managed instance group according to your defined autoscaling policy. For more information, read Autoscaling Groups of Instances. For zonal managed instance groups resource, use the autoscaler resource. For regional managed instance groups, use the regionAutoscalers resource.", "id": "Autoscaler", @@ -47927,7 +47902,8 @@ "GENERATED_COOKIE", "HEADER_FIELD", "HTTP_COOKIE", - "NONE" + "NONE", + "STRONG_COOKIE_AFFINITY" ], "enumDescriptions": [ "2-tuple hash on packet's source and destination IP addresses. Connections from the same source IP address to the same destination IP address will be served by the same backend VM while that VM remains healthy.", @@ -47937,10 +47913,15 @@ "Hash based on a cookie generated by the L7 loadbalancer. Only valid for HTTP(S) load balancing.", "The hash is based on a user specified header field.", "The hash is based on a user provided cookie.", - "No session affinity. Connections from the same client IP may go to any instance in the pool." + "No session affinity. Connections from the same client IP may go to any instance in the pool.", + "Strong cookie-based affinity. Connections bearing the same cookie will be served by the same backend VM while that VM remains healthy, as long as the cookie has not expired." ], "type": "string" }, + "strongSessionAffinityCookie": { + "$ref": "BackendServiceHttpCookie", + "description": "Describes the HTTP cookie used for stateful session affinity. This field is applicable and required if the sessionAffinity is set to STRONG_COOKIE_AFFINITY." + }, "subsetting": { "$ref": "Subsetting" }, @@ -48374,6 +48355,25 @@ }, "type": "object" }, + "BackendServiceHttpCookie": { + "description": "The HTTP cookie used for stateful session affinity.", + "id": "BackendServiceHttpCookie", + "properties": { + "name": { + "description": "Name of the cookie.", + "type": "string" + }, + "path": { + "description": "Path to set for the cookie.", + "type": "string" + }, + "ttl": { + "$ref": "Duration", + "description": "Lifetime of the cookie." + } + }, + "type": "object" + }, "BackendServiceIAP": { "description": "Identity-Aware Proxy", "id": "BackendServiceIAP", @@ -66864,10 +66864,6 @@ "description": "This is deprecated and has no effect. Do not use.", "id": "LogConfigCloudAuditOptions", "properties": { - "authorizationLoggingOptions": { - "$ref": "AuthorizationLoggingOptions", - "description": "This is deprecated and has no effect. Do not use." - }, "logName": { "description": "This is deprecated and has no effect. Do not use.", "enum": [ @@ -77395,33 +77391,27 @@ "type": "object" }, "QueuedResourceStatus": { - "description": "[Output only] Result of queuing and provisioning based on deferred capacity.", "id": "QueuedResourceStatus", "properties": { "failedData": { - "$ref": "QueuedResourceStatusFailedData", - "description": "Additional status detail for the FAILED state." + "$ref": "QueuedResourceStatusFailedData" }, "provisioningOperations": { - "description": "[Output only] Fully qualified URL of the provisioning GCE operation to track the provisioning along with provisioning errors. The referenced operation may not exist after having been deleted or expired.", "items": { "type": "string" }, "type": "array" }, "queuingPolicy": { - "$ref": "QueuingPolicy", - "description": "Constraints for the time when the resource(s) start provisioning. Always exposed as absolute times." + "$ref": "QueuingPolicy" } }, "type": "object" }, "QueuedResourceStatusFailedData": { - "description": "Additional status detail for the FAILED state.", "id": "QueuedResourceStatusFailedData", "properties": { "error": { - "description": "The error(s) that caused the QueuedResource to enter the FAILED state.", "properties": { "errors": { "description": "[Output Only] The array of errors encountered while processing this operation.", @@ -81764,7 +81754,7 @@ "STOPPING" ], "enumDescriptions": [ - "The instance is gracefully shutting down.", + "Deprecating, please use PENDING_STOP. The instance is gracefully shutting down.", "The instance is stopping." ], "type": "string" @@ -94260,7 +94250,8 @@ "GENERATED_COOKIE", "HEADER_FIELD", "HTTP_COOKIE", - "NONE" + "NONE", + "STRONG_COOKIE_AFFINITY" ], "enumDescriptions": [ "2-tuple hash on packet's source and destination IP addresses. Connections from the same source IP address to the same destination IP address will be served by the same backend VM while that VM remains healthy.", @@ -94270,7 +94261,8 @@ "Hash based on a cookie generated by the L7 loadbalancer. Only valid for HTTP(S) load balancing.", "The hash is based on a user specified header field.", "The hash is based on a user provided cookie.", - "No session affinity. Connections from the same client IP may go to any instance in the pool." + "No session affinity. Connections from the same client IP may go to any instance in the pool.", + "Strong cookie-based affinity. Connections bearing the same cookie will be served by the same backend VM while that VM remains healthy, as long as the cookie has not expired." ], "type": "string" } diff --git a/compute/v0.alpha/compute-gen.go b/compute/v0.alpha/compute-gen.go index 809c52574f..e2f17fc7a1 100644 --- a/compute/v0.alpha/compute-gen.go +++ b/compute/v0.alpha/compute-gen.go @@ -3570,37 +3570,6 @@ func (s *AuthorizationConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// AuthorizationLoggingOptions: This is deprecated and has no effect. Do not -// use. -type AuthorizationLoggingOptions struct { - // PermissionType: This is deprecated and has no effect. Do not use. - // - // Possible values: - // "ADMIN_READ" - This is deprecated and has no effect. Do not use. - // "ADMIN_WRITE" - This is deprecated and has no effect. Do not use. - // "DATA_READ" - This is deprecated and has no effect. Do not use. - // "DATA_WRITE" - This is deprecated and has no effect. Do not use. - // "PERMISSION_TYPE_UNSPECIFIED" - This is deprecated and has no effect. Do - // not use. - PermissionType string `json:"permissionType,omitempty"` - // ForceSendFields is a list of field names (e.g. "PermissionType") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PermissionType") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s *AuthorizationLoggingOptions) MarshalJSON() ([]byte, error) { - type NoMethod AuthorizationLoggingOptions - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - // Autoscaler: Represents an Autoscaler resource. Google Compute Engine has two // Autoscaler resources: * Zonal // (/compute/docs/reference/rest/alpha/autoscalers) * Regional @@ -5590,8 +5559,15 @@ type BackendService struct { // "HTTP_COOKIE" - The hash is based on a user provided cookie. // "NONE" - No session affinity. Connections from the same client IP may go // to any instance in the pool. - SessionAffinity string `json:"sessionAffinity,omitempty"` - Subsetting *Subsetting `json:"subsetting,omitempty"` + // "STRONG_COOKIE_AFFINITY" - Strong cookie-based affinity. Connections + // bearing the same cookie will be served by the same backend VM while that VM + // remains healthy, as long as the cookie has not expired. + SessionAffinity string `json:"sessionAffinity,omitempty"` + // StrongSessionAffinityCookie: Describes the HTTP cookie used for stateful + // session affinity. This field is applicable and required if the + // sessionAffinity is set to STRONG_COOKIE_AFFINITY. + StrongSessionAffinityCookie *BackendServiceHttpCookie `json:"strongSessionAffinityCookie,omitempty"` + Subsetting *Subsetting `json:"subsetting,omitempty"` // TimeoutSec: The backend service timeout has a different meaning depending on // the type of load balancer. For more information see, Backend service // settings. The default is 30 seconds. The full range of timeout values @@ -6239,6 +6215,33 @@ func (s *BackendServiceHAPolicyLeaderNetworkEndpoint) MarshalJSON() ([]byte, err return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// BackendServiceHttpCookie: The HTTP cookie used for stateful session +// affinity. +type BackendServiceHttpCookie struct { + // Name: Name of the cookie. + Name string `json:"name,omitempty"` + // Path: Path to set for the cookie. + Path string `json:"path,omitempty"` + // Ttl: Lifetime of the cookie. + Ttl *Duration `json:"ttl,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *BackendServiceHttpCookie) MarshalJSON() ([]byte, error) { + type NoMethod BackendServiceHttpCookie + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // BackendServiceIAP: Identity-Aware Proxy type BackendServiceIAP struct { // Enabled: Whether the serving infrastructure will authenticate and authorize @@ -27480,9 +27483,6 @@ func (s *LogConfig) MarshalJSON() ([]byte, error) { // LogConfigCloudAuditOptions: This is deprecated and has no effect. Do not // use. type LogConfigCloudAuditOptions struct { - // AuthorizationLoggingOptions: This is deprecated and has no effect. Do not - // use. - AuthorizationLoggingOptions *AuthorizationLoggingOptions `json:"authorizationLoggingOptions,omitempty"` // LogName: This is deprecated and has no effect. Do not use. // // Possible values: @@ -27490,15 +27490,15 @@ type LogConfigCloudAuditOptions struct { // "DATA_ACCESS" - This is deprecated and has no effect. Do not use. // "UNSPECIFIED_LOG_NAME" - This is deprecated and has no effect. Do not use. LogName string `json:"logName,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "AuthorizationLoggingOptions") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields - // for more details. + // ForceSendFields is a list of field names (e.g. "LogName") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AuthorizationLoggingOptions") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "LogName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -38713,19 +38713,10 @@ func (s *QueuedResourceListWarningData) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// QueuedResourceStatus: [Output only] Result of queuing and provisioning based -// on deferred capacity. type QueuedResourceStatus struct { - // FailedData: Additional status detail for the FAILED state. - FailedData *QueuedResourceStatusFailedData `json:"failedData,omitempty"` - // ProvisioningOperations: [Output only] Fully qualified URL of the - // provisioning GCE operation to track the provisioning along with provisioning - // errors. The referenced operation may not exist after having been deleted or - // expired. - ProvisioningOperations []string `json:"provisioningOperations,omitempty"` - // QueuingPolicy: Constraints for the time when the resource(s) start - // provisioning. Always exposed as absolute times. - QueuingPolicy *QueuingPolicy `json:"queuingPolicy,omitempty"` + FailedData *QueuedResourceStatusFailedData `json:"failedData,omitempty"` + ProvisioningOperations []string `json:"provisioningOperations,omitempty"` + QueuingPolicy *QueuingPolicy `json:"queuingPolicy,omitempty"` // ForceSendFields is a list of field names (e.g. "FailedData") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -38744,11 +38735,7 @@ func (s *QueuedResourceStatus) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// QueuedResourceStatusFailedData: Additional status detail for the FAILED -// state. type QueuedResourceStatusFailedData struct { - // Error: The error(s) that caused the QueuedResource to enter the FAILED - // state. Error *QueuedResourceStatusFailedDataError `json:"error,omitempty"` // ForceSendFields is a list of field names (e.g. "Error") to unconditionally // include in API requests. By default, fields with empty or default values are @@ -38768,8 +38755,6 @@ func (s *QueuedResourceStatusFailedData) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// QueuedResourceStatusFailedDataError: The error(s) that caused the -// QueuedResource to enter the FAILED state. type QueuedResourceStatusFailedDataError struct { // Errors: [Output Only] The array of errors encountered while processing this // operation. @@ -43548,7 +43533,8 @@ type ResourceStatusShutdownDetails struct { // StopState: Current stopping state of the instance. // // Possible values: - // "SHUTTING_DOWN" - The instance is gracefully shutting down. + // "SHUTTING_DOWN" - Deprecating, please use PENDING_STOP. The instance is + // gracefully shutting down. // "STOPPING" - The instance is stopping. StopState string `json:"stopState,omitempty"` // TargetState: Target instance state. @@ -56950,6 +56936,9 @@ type TargetPool struct { // "HTTP_COOKIE" - The hash is based on a user provided cookie. // "NONE" - No session affinity. Connections from the same client IP may go // to any instance in the pool. + // "STRONG_COOKIE_AFFINITY" - Strong cookie-based affinity. Connections + // bearing the same cookie will be served by the same backend VM while that VM + // remains healthy, as long as the cookie has not expired. SessionAffinity string `json:"sessionAffinity,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. diff --git a/compute/v0.beta/compute-api.json b/compute/v0.beta/compute-api.json index 6c530915c4..086a64a65a 100644 --- a/compute/v0.beta/compute-api.json +++ b/compute/v0.beta/compute-api.json @@ -41579,7 +41579,7 @@ } } }, - "revision": "20240430", + "revision": "20240507", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -43377,31 +43377,6 @@ }, "type": "object" }, - "AuthorizationLoggingOptions": { - "description": "This is deprecated and has no effect. Do not use.", - "id": "AuthorizationLoggingOptions", - "properties": { - "permissionType": { - "description": "This is deprecated and has no effect. Do not use.", - "enum": [ - "ADMIN_READ", - "ADMIN_WRITE", - "DATA_READ", - "DATA_WRITE", - "PERMISSION_TYPE_UNSPECIFIED" - ], - "enumDescriptions": [ - "This is deprecated and has no effect. Do not use.", - "This is deprecated and has no effect. Do not use.", - "This is deprecated and has no effect. Do not use.", - "This is deprecated and has no effect. Do not use.", - "This is deprecated and has no effect. Do not use." - ], - "type": "string" - } - }, - "type": "object" - }, "Autoscaler": { "description": "Represents an Autoscaler resource. Google Compute Engine has two Autoscaler resources: * [Zonal](/compute/docs/reference/rest/beta/autoscalers) * [Regional](/compute/docs/reference/rest/beta/regionAutoscalers) Use autoscalers to automatically add or delete instances from a managed instance group according to your defined autoscaling policy. For more information, read Autoscaling Groups of Instances. For zonal managed instance groups resource, use the autoscaler resource. For regional managed instance groups, use the regionAutoscalers resource.", "id": "Autoscaler", @@ -62254,10 +62229,6 @@ "description": "This is deprecated and has no effect. Do not use.", "id": "LogConfigCloudAuditOptions", "properties": { - "authorizationLoggingOptions": { - "$ref": "AuthorizationLoggingOptions", - "description": "This is deprecated and has no effect. Do not use." - }, "logName": { "description": "This is deprecated and has no effect. Do not use.", "enum": [ diff --git a/compute/v0.beta/compute-gen.go b/compute/v0.beta/compute-gen.go index a9b22c2525..22b89f4c68 100644 --- a/compute/v0.beta/compute-gen.go +++ b/compute/v0.beta/compute-gen.go @@ -3380,37 +3380,6 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// AuthorizationLoggingOptions: This is deprecated and has no effect. Do not -// use. -type AuthorizationLoggingOptions struct { - // PermissionType: This is deprecated and has no effect. Do not use. - // - // Possible values: - // "ADMIN_READ" - This is deprecated and has no effect. Do not use. - // "ADMIN_WRITE" - This is deprecated and has no effect. Do not use. - // "DATA_READ" - This is deprecated and has no effect. Do not use. - // "DATA_WRITE" - This is deprecated and has no effect. Do not use. - // "PERMISSION_TYPE_UNSPECIFIED" - This is deprecated and has no effect. Do - // not use. - PermissionType string `json:"permissionType,omitempty"` - // ForceSendFields is a list of field names (e.g. "PermissionType") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. - ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PermissionType") to include in - // API requests with the JSON null value. By default, fields with empty values - // are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. - NullFields []string `json:"-"` -} - -func (s *AuthorizationLoggingOptions) MarshalJSON() ([]byte, error) { - type NoMethod AuthorizationLoggingOptions - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) -} - // Autoscaler: Represents an Autoscaler resource. Google Compute Engine has two // Autoscaler resources: * Zonal // (/compute/docs/reference/rest/beta/autoscalers) * Regional @@ -25368,9 +25337,6 @@ func (s *LogConfig) MarshalJSON() ([]byte, error) { // LogConfigCloudAuditOptions: This is deprecated and has no effect. Do not // use. type LogConfigCloudAuditOptions struct { - // AuthorizationLoggingOptions: This is deprecated and has no effect. Do not - // use. - AuthorizationLoggingOptions *AuthorizationLoggingOptions `json:"authorizationLoggingOptions,omitempty"` // LogName: This is deprecated and has no effect. Do not use. // // Possible values: @@ -25378,15 +25344,15 @@ type LogConfigCloudAuditOptions struct { // "DATA_ACCESS" - This is deprecated and has no effect. Do not use. // "UNSPECIFIED_LOG_NAME" - This is deprecated and has no effect. Do not use. LogName string `json:"logName,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "AuthorizationLoggingOptions") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields - // for more details. + // ForceSendFields is a list of field names (e.g. "LogName") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AuthorizationLoggingOptions") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "LogName") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } diff --git a/dataform/v1beta1/dataform-api.json b/dataform/v1beta1/dataform-api.json index 39eb56cafd..13d80998c0 100644 --- a/dataform/v1beta1/dataform-api.json +++ b/dataform/v1beta1/dataform-api.json @@ -721,6 +721,69 @@ } }, "resources": { + "commentThreads": { + "methods": { + "getIamPolicy": { + "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/commentThreads/{commentThreadsId}:getIamPolicy", + "httpMethod": "GET", + "id": "dataform.projects.locations.repositories.commentThreads.getIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "options.requestedPolicyVersion": { + "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + "format": "int32", + "location": "query", + "type": "integer" + }, + "resource": { + "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/commentThreads/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:getIamPolicy", + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "setIamPolicy": { + "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/repositories/{repositoriesId}/commentThreads/{commentThreadsId}:setIamPolicy", + "httpMethod": "POST", + "id": "dataform.projects.locations.repositories.commentThreads.setIamPolicy", + "parameterOrder": [ + "resource" + ], + "parameters": { + "resource": { + "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+/commentThreads/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+resource}:setIamPolicy", + "request": { + "$ref": "SetIamPolicyRequest" + }, + "response": { + "$ref": "Policy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "compilationResults": { "methods": { "create": { @@ -2108,7 +2171,7 @@ } } }, - "revision": "20240427", + "revision": "20240504", "rootUrl": "https://dataform.googleapis.com/", "schemas": { "Assertion": { diff --git a/dataform/v1beta1/dataform-gen.go b/dataform/v1beta1/dataform-gen.go index 01efed97c0..16a3d98df4 100644 --- a/dataform/v1beta1/dataform-gen.go +++ b/dataform/v1beta1/dataform-gen.go @@ -192,6 +192,7 @@ type ProjectsLocationsCollectionsService struct { func NewProjectsLocationsRepositoriesService(s *Service) *ProjectsLocationsRepositoriesService { rs := &ProjectsLocationsRepositoriesService{s: s} + rs.CommentThreads = NewProjectsLocationsRepositoriesCommentThreadsService(s) rs.CompilationResults = NewProjectsLocationsRepositoriesCompilationResultsService(s) rs.ReleaseConfigs = NewProjectsLocationsRepositoriesReleaseConfigsService(s) rs.WorkflowConfigs = NewProjectsLocationsRepositoriesWorkflowConfigsService(s) @@ -203,6 +204,8 @@ func NewProjectsLocationsRepositoriesService(s *Service) *ProjectsLocationsRepos type ProjectsLocationsRepositoriesService struct { s *Service + CommentThreads *ProjectsLocationsRepositoriesCommentThreadsService + CompilationResults *ProjectsLocationsRepositoriesCompilationResultsService ReleaseConfigs *ProjectsLocationsRepositoriesReleaseConfigsService @@ -214,6 +217,15 @@ type ProjectsLocationsRepositoriesService struct { Workspaces *ProjectsLocationsRepositoriesWorkspacesService } +func NewProjectsLocationsRepositoriesCommentThreadsService(s *Service) *ProjectsLocationsRepositoriesCommentThreadsService { + rs := &ProjectsLocationsRepositoriesCommentThreadsService{s: s} + return rs +} + +type ProjectsLocationsRepositoriesCommentThreadsService struct { + s *Service +} + func NewProjectsLocationsRepositoriesCompilationResultsService(s *Service) *ProjectsLocationsRepositoriesCompilationResultsService { rs := &ProjectsLocationsRepositoriesCompilationResultsService{s: s} return rs @@ -5254,6 +5266,238 @@ func (c *ProjectsLocationsRepositoriesTestIamPermissionsCall) Do(opts ...googlea return ret, nil } +type ProjectsLocationsRepositoriesCommentThreadsGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns an +// empty policy if the resource exists and does not have a policy set. +// +// - resource: REQUIRED: The resource for which the policy is being requested. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsRepositoriesCommentThreadsService) GetIamPolicy(resource string) *ProjectsLocationsRepositoriesCommentThreadsGetIamPolicyCall { + c := &ProjectsLocationsRepositoriesCommentThreadsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that will be +// used to format the policy. Valid values are 0, 1, and 3. Requests specifying +// an invalid value will be rejected. Requests for policies with any +// conditional role bindings must specify version 3. Policies with no +// conditional role bindings may specify any valid value or leave the field +// unset. The policy in the response might use the policy version that you +// specified, or it might use a lower policy version. For example, if you +// specify version 3, but the policy has no conditional role bindings, the +// response uses version 1. To learn which resources support conditions in +// their IAM policies, see the IAM documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsRepositoriesCommentThreadsGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsRepositoriesCommentThreadsGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsRepositoriesCommentThreadsGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesCommentThreadsGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsRepositoriesCommentThreadsGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsRepositoriesCommentThreadsGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsRepositoriesCommentThreadsGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesCommentThreadsGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsRepositoriesCommentThreadsGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesCommentThreadsGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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, "v1beta1/{+resource}:getIamPolicy") + 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{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.commentThreads.getIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsRepositoriesCommentThreadsGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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 := &Policy{ + 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 +} + +type ProjectsLocationsRepositoriesCommentThreadsSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// SetIamPolicy: Sets the access control policy on the specified resource. +// Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, +// and `PERMISSION_DENIED` errors. +// +// - resource: REQUIRED: The resource for which the policy is being specified. +// See Resource names (https://cloud.google.com/apis/design/resource_names) +// for the appropriate value for this field. +func (r *ProjectsLocationsRepositoriesCommentThreadsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsRepositoriesCommentThreadsSetIamPolicyCall { + c := &ProjectsLocationsRepositoriesCommentThreadsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsRepositoriesCommentThreadsSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsRepositoriesCommentThreadsSetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsRepositoriesCommentThreadsSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsRepositoriesCommentThreadsSetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsRepositoriesCommentThreadsSetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsRepositoriesCommentThreadsSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+resource}:setIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "dataform.projects.locations.repositories.commentThreads.setIamPolicy" call. +// Any non-2xx status code is an error. Response headers are in either +// *Policy.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 *ProjectsLocationsRepositoriesCommentThreadsSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, 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 := &Policy{ + 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 +} + type ProjectsLocationsRepositoriesCompilationResultsCreateCall struct { s *Service parent string diff --git a/firebaseml/v2beta/firebaseml-api.json b/firebaseml/v2beta/firebaseml-api.json index cc7e030438..5c02eac088 100644 --- a/firebaseml/v2beta/firebaseml-api.json +++ b/firebaseml/v2beta/firebaseml-api.json @@ -206,7 +206,7 @@ } } }, - "revision": "20240508", + "revision": "20240510", "rootUrl": "https://firebaseml.googleapis.com/", "schemas": { "Blob": { @@ -627,22 +627,6 @@ "description": "Optional. Output response mimetype of the generated candidate text. Supported mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON response in the candidates. The model needs to be prompted to output the appropriate response type, otherwise the behavior is undefined. This is a preview feature.", "type": "string" }, - "responseStyle": { - "description": "Optional. Control Three levels of creativity in the model output. Default: RESPONSE_STYLE_BALANCED", - "enum": [ - "RESPONSE_STYLE_UNSPECIFIED", - "RESPONSE_STYLE_PRECISE", - "RESPONSE_STYLE_BALANCED", - "RESPONSE_STYLE_CREATIVE" - ], - "enumDescriptions": [ - "response style unspecified.", - "Precise response.", - "Default response style.", - "Creative response style." - ], - "type": "string" - }, "stopSequences": { "description": "Optional. Stop sequences.", "items": { diff --git a/firebaseml/v2beta/firebaseml-gen.go b/firebaseml/v2beta/firebaseml-gen.go index 5f0109a7d3..c58c20d314 100644 --- a/firebaseml/v2beta/firebaseml-gen.go +++ b/firebaseml/v2beta/firebaseml-gen.go @@ -719,15 +719,6 @@ type GenerationConfig struct { // prompted to output the appropriate response type, otherwise the behavior is // undefined. This is a preview feature. ResponseMimeType string `json:"responseMimeType,omitempty"` - // ResponseStyle: Optional. Control Three levels of creativity in the model - // output. Default: RESPONSE_STYLE_BALANCED - // - // Possible values: - // "RESPONSE_STYLE_UNSPECIFIED" - response style unspecified. - // "RESPONSE_STYLE_PRECISE" - Precise response. - // "RESPONSE_STYLE_BALANCED" - Default response style. - // "RESPONSE_STYLE_CREATIVE" - Creative response style. - ResponseStyle string `json:"responseStyle,omitempty"` // StopSequences: Optional. Stop sequences. StopSequences []string `json:"stopSequences,omitempty"` // Temperature: Optional. Controls the randomness of predictions. diff --git a/networkconnectivity/v1/networkconnectivity-api.json b/networkconnectivity/v1/networkconnectivity-api.json index 2f315f6c62..3135ab9512 100644 --- a/networkconnectivity/v1/networkconnectivity-api.json +++ b/networkconnectivity/v1/networkconnectivity-api.json @@ -675,6 +675,45 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "patch": { + "description": "Updates the parameters of a Network Connectivity Center group.", + "flatPath": "v1/projects/{projectsId}/locations/global/hubs/{hubsId}/groups/{groupsId}", + "httpMethod": "PATCH", + "id": "networkconnectivity.projects.locations.global.hubs.groups.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Immutable. The name of the group. Group names must be unique. They use the following form: `projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}`", + "location": "path", + "pattern": "^projects/[^/]+/locations/global/hubs/[^/]+/groups/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server knows to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID, with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Optional. In the case of an update to an existing group, field mask is used to specify the fields to be overwritten. The fields specified in the update_mask are relative to the resource, not the full request. A field is overwritten if it is in the mask. If the user does not provide a mask, then all fields are overwritten.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "Group" + }, + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "setIamPolicy": { "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", "flatPath": "v1/projects/{projectsId}/locations/global/hubs/{hubsId}/groups/{groupsId}:setIamPolicy", @@ -2773,7 +2812,7 @@ } } }, - "revision": "20240423", + "revision": "20240506", "rootUrl": "https://networkconnectivity.googleapis.com/", "schemas": { "AcceptHubSpokeRequest": { @@ -2850,6 +2889,20 @@ }, "type": "object" }, + "AutoAccept": { + "description": "The auto-accept setting for a group controls whether proposed spokes are automatically attached to the hub. If auto-accept is enabled, the spoke immediately is attached to the hub and becomes part of the group. In this case, the new spoke is in the ACTIVE state. If auto-accept is disabled, the spoke goes to the INACTIVE state, and it must be reviewed and accepted by a hub administrator.", + "id": "AutoAccept", + "properties": { + "autoAcceptProjects": { + "description": "A list of project ids or project numbers for which you want to enable auto-accept. The auto-accept setting is applied to spokes being created or updated in these projects.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "Binding": { "description": "Associates `members`, or principals, with a `role`.", "id": "Binding", @@ -3172,6 +3225,10 @@ "description": "A group represents a subset of spokes attached to a hub.", "id": "Group", "properties": { + "autoAccept": { + "$ref": "AutoAccept", + "description": "Optional. The auto-accept setting for this group." + }, "createTime": { "description": "Output only. The time the group was created.", "format": "google-datetime", @@ -3193,6 +3250,11 @@ "description": "Immutable. The name of the group. Group names must be unique. They use the following form: `projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}`", "type": "string" }, + "routeTable": { + "description": "Output only. The name of the route table that corresponds to this group. They use the following form: `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}`", + "readOnly": true, + "type": "string" + }, "state": { "description": "Output only. The current lifecycle state of this group.", "enum": [ @@ -3248,6 +3310,10 @@ "description": "An optional description of the hub.", "type": "string" }, + "exportPsc": { + "description": "Optional. Whether Private Service Connect transitivity is enabled for the hub. If true, Private Service Connect endpoints in VPC spokes attached to the hub are made accessible to other VPC spokes attached to the hub. The default value is false.", + "type": "boolean" + }, "labels": { "additionalProperties": { "type": "string" @@ -3259,6 +3325,32 @@ "description": "Immutable. The name of the hub. Hub names must be unique. They use the following form: `projects/{project_number}/locations/global/hubs/{hub_id}`", "type": "string" }, + "policyMode": { + "description": "Optional. The policy mode of this hub. This field can be either PRESET or CUSTOM. If unspecified, the policy_mode defaults to PRESET.", + "enum": [ + "POLICY_MODE_UNSPECIFIED", + "PRESET" + ], + "enumDescriptions": [ + "Policy mode is unspecified. It defaults to PRESET with preset_topology = MESH.", + "Hub uses one of the preset topologies." + ], + "type": "string" + }, + "presetTopology": { + "description": "Optional. The topology implemented in this hub. Currently, this field is only used when policy_mode = PRESET. The available preset topologies are MESH and STAR. If preset_topology is unspecified and policy_mode = PRESET, the preset_topology defaults to MESH. When policy_mode = CUSTOM, the preset_topology is set to PRESET_TOPOLOGY_UNSPECIFIED.", + "enum": [ + "PRESET_TOPOLOGY_UNSPECIFIED", + "MESH", + "STAR" + ], + "enumDescriptions": [ + "Preset topology is unspecified. When policy_mode = PRESET, it defaults to MESH.", + "Mesh topology is implemented. Group `default` is automatically created. All spokes in the hub are added to group `default`.", + "Star topology is implemented. Two groups, `center` and `edge`, are automatically created along with hub creation. Spokes have to join one of the groups during creation." + ], + "type": "string" + }, "routeTables": { "description": "Output only. The route tables that belong to this hub. They use the following form: `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_table_id}` This field is read-only. Network Connectivity Center automatically populates it based on the route tables nested under the hub.", "items": { diff --git a/networkconnectivity/v1/networkconnectivity-gen.go b/networkconnectivity/v1/networkconnectivity-gen.go index cb9392e41b..8ca17c1399 100644 --- a/networkconnectivity/v1/networkconnectivity-gen.go +++ b/networkconnectivity/v1/networkconnectivity-gen.go @@ -475,6 +475,35 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// AutoAccept: The auto-accept setting for a group controls whether proposed +// spokes are automatically attached to the hub. If auto-accept is enabled, the +// spoke immediately is attached to the hub and becomes part of the group. In +// this case, the new spoke is in the ACTIVE state. If auto-accept is disabled, +// the spoke goes to the INACTIVE state, and it must be reviewed and accepted +// by a hub administrator. +type AutoAccept struct { + // AutoAcceptProjects: A list of project ids or project numbers for which you + // want to enable auto-accept. The auto-accept setting is applied to spokes + // being created or updated in these projects. + AutoAcceptProjects []string `json:"autoAcceptProjects,omitempty"` + // ForceSendFields is a list of field names (e.g. "AutoAcceptProjects") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "AutoAcceptProjects") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *AutoAccept) MarshalJSON() ([]byte, error) { + type NoMethod AutoAccept + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // Binding: Associates `members`, or principals, with a `role`. type Binding struct { // Condition: The condition that is associated with this binding. If the @@ -956,6 +985,8 @@ func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) { // Group: A group represents a subset of spokes attached to a hub. type Group struct { + // AutoAccept: Optional. The auto-accept setting for this group. + AutoAccept *AutoAccept `json:"autoAccept,omitempty"` // CreateTime: Output only. The time the group was created. CreateTime string `json:"createTime,omitempty"` // Description: Optional. The description of the group. @@ -968,6 +999,11 @@ type Group struct { // the following form: // `projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}` Name string `json:"name,omitempty"` + // RouteTable: Output only. The name of the route table that corresponds to + // this group. They use the following form: + // `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_ + // table_id}` + RouteTable string `json:"routeTable,omitempty"` // State: Output only. The current lifecycle state of this group. // // Possible values: @@ -992,13 +1028,13 @@ type Group struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CreateTime") to + // ForceSendFields is a list of field names (e.g. "AutoAccept") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CreateTime") to include in API + // NullFields is a list of field names (e.g. "AutoAccept") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -1021,6 +1057,11 @@ type Hub struct { CreateTime string `json:"createTime,omitempty"` // Description: An optional description of the hub. Description string `json:"description,omitempty"` + // ExportPsc: Optional. Whether Private Service Connect transitivity is enabled + // for the hub. If true, Private Service Connect endpoints in VPC spokes + // attached to the hub are made accessible to other VPC spokes attached to the + // hub. The default value is false. + ExportPsc bool `json:"exportPsc,omitempty"` // Labels: Optional labels in key-value pair format. For more information about // labels, see Requirements for labels // (https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements). @@ -1028,6 +1069,29 @@ type Hub struct { // Name: Immutable. The name of the hub. Hub names must be unique. They use the // following form: `projects/{project_number}/locations/global/hubs/{hub_id}` Name string `json:"name,omitempty"` + // PolicyMode: Optional. The policy mode of this hub. This field can be either + // PRESET or CUSTOM. If unspecified, the policy_mode defaults to PRESET. + // + // Possible values: + // "POLICY_MODE_UNSPECIFIED" - Policy mode is unspecified. It defaults to + // PRESET with preset_topology = MESH. + // "PRESET" - Hub uses one of the preset topologies. + PolicyMode string `json:"policyMode,omitempty"` + // PresetTopology: Optional. The topology implemented in this hub. Currently, + // this field is only used when policy_mode = PRESET. The available preset + // topologies are MESH and STAR. If preset_topology is unspecified and + // policy_mode = PRESET, the preset_topology defaults to MESH. When policy_mode + // = CUSTOM, the preset_topology is set to PRESET_TOPOLOGY_UNSPECIFIED. + // + // Possible values: + // "PRESET_TOPOLOGY_UNSPECIFIED" - Preset topology is unspecified. When + // policy_mode = PRESET, it defaults to MESH. + // "MESH" - Mesh topology is implemented. Group `default` is automatically + // created. All spokes in the hub are added to group `default`. + // "STAR" - Star topology is implemented. Two groups, `center` and `edge`, + // are automatically created along with hub creation. Spokes have to join one + // of the groups during creation. + PresetTopology string `json:"presetTopology,omitempty"` // RouteTables: Output only. The route tables that belong to this hub. They use // the following form: // `projects/{project_number}/locations/global/hubs/{hub_id}/routeTables/{route_ @@ -5160,6 +5224,137 @@ func (c *ProjectsLocationsGlobalHubsGroupsListCall) Pages(ctx context.Context, f } } +type ProjectsLocationsGlobalHubsGroupsPatchCall struct { + s *Service + name string + group *Group + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the parameters of a Network Connectivity Center group. +// +// - name: Immutable. The name of the group. Group names must be unique. They +// use the following form: +// `projects/{project_number}/locations/global/hubs/{hub}/groups/{group_id}`. +func (r *ProjectsLocationsGlobalHubsGroupsService) Patch(name string, group *Group) *ProjectsLocationsGlobalHubsGroupsPatchCall { + c := &ProjectsLocationsGlobalHubsGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.group = group + return c +} + +// RequestId sets the optional parameter "requestId": A request ID to identify +// requests. Specify a unique request ID so that if you must retry your +// request, the server knows to ignore the request if it has already been +// completed. The server guarantees that a request doesn't result in creation +// of duplicate commitments for at least 60 minutes. For example, consider a +// situation where you make an initial request and the request times out. If +// you make the request again with the same request ID, the server can check to +// see whether the original operation was received. If it was, the server +// ignores the second request. This behavior prevents clients from mistakenly +// creating duplicate commitments. The request ID must be a valid UUID, with +// the exception that zero UUID is not supported +// (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsGlobalHubsGroupsPatchCall) RequestId(requestId string) *ProjectsLocationsGlobalHubsGroupsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": In the case of an +// update to an existing group, field mask is used to specify the fields to be +// overwritten. The fields specified in the update_mask are relative to the +// resource, not the full request. A field is overwritten if it is in the mask. +// If the user does not provide a mask, then all fields are overwritten. +func (c *ProjectsLocationsGlobalHubsGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsGlobalHubsGroupsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsGlobalHubsGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsGlobalHubsGroupsPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGlobalHubsGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsGlobalHubsGroupsPatchCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsGlobalHubsGroupsPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGlobalHubsGroupsPatchCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.group) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PATCH", 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 "networkconnectivity.projects.locations.global.hubs.groups.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.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 *ProjectsLocationsGlobalHubsGroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{ + 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 +} + type ProjectsLocationsGlobalHubsGroupsSetIamPolicyCall struct { s *Service resource string diff --git a/networkservices/v1/networkservices-api.json b/networkservices/v1/networkservices-api.json index 3b79de1341..e6415211d9 100644 --- a/networkservices/v1/networkservices-api.json +++ b/networkservices/v1/networkservices-api.json @@ -2756,7 +2756,7 @@ } } }, - "revision": "20240410", + "revision": "20240506", "rootUrl": "https://networkservices.googleapis.com/", "schemas": { "AuditConfig": { @@ -3080,7 +3080,7 @@ "type": "object" }, "Gateway": { - "description": "Gateway represents the configuration for a proxy, typically a load balancer. It captures the ip:port over which the services are exposed by the proxy, along with any policy configurations. Routes have reference to to Gateways to dictate how requests should be routed by this Gateway. Next id: 32", + "description": "Gateway represents the configuration for a proxy, typically a load balancer. It captures the ip:port over which the services are exposed by the proxy, along with any policy configurations. Routes have reference to to Gateways to dictate how requests should be routed by this Gateway. Next id: 33", "id": "Gateway", "properties": { "addresses": { diff --git a/networkservices/v1/networkservices-gen.go b/networkservices/v1/networkservices-gen.go index e8ee7ea79d..2b719a947a 100644 --- a/networkservices/v1/networkservices-gen.go +++ b/networkservices/v1/networkservices-gen.go @@ -906,7 +906,7 @@ func (s *ExtensionChainMatchCondition) MarshalJSON() ([]byte, error) { // balancer. It captures the ip:port over which the services are exposed by the // proxy, along with any policy configurations. Routes have reference to to // Gateways to dictate how requests should be routed by this Gateway. Next id: -// 32 +// 33 type Gateway struct { // Addresses: Optional. Zero or one IPv4 or IPv6 address on which the Gateway // will receive the traffic. When no address is provided, an IP from the diff --git a/networkservices/v1beta1/networkservices-api.json b/networkservices/v1beta1/networkservices-api.json index c0dc852831..1b523f958e 100644 --- a/networkservices/v1beta1/networkservices-api.json +++ b/networkservices/v1beta1/networkservices-api.json @@ -2483,7 +2483,7 @@ } } }, - "revision": "20240410", + "revision": "20240506", "rootUrl": "https://networkservices.googleapis.com/", "schemas": { "AuditConfig": { @@ -2764,7 +2764,7 @@ "type": "object" }, "Gateway": { - "description": "Gateway represents the configuration for a proxy, typically a load balancer. It captures the ip:port over which the services are exposed by the proxy, along with any policy configurations. Routes have reference to to Gateways to dictate how requests should be routed by this Gateway. Next id: 32", + "description": "Gateway represents the configuration for a proxy, typically a load balancer. It captures the ip:port over which the services are exposed by the proxy, along with any policy configurations. Routes have reference to to Gateways to dictate how requests should be routed by this Gateway. Next id: 33", "id": "Gateway", "properties": { "addresses": { diff --git a/networkservices/v1beta1/networkservices-gen.go b/networkservices/v1beta1/networkservices-gen.go index d45585c4c8..8c8dc8628c 100644 --- a/networkservices/v1beta1/networkservices-gen.go +++ b/networkservices/v1beta1/networkservices-gen.go @@ -797,7 +797,7 @@ func (s *ExtensionChainMatchCondition) MarshalJSON() ([]byte, error) { // balancer. It captures the ip:port over which the services are exposed by the // proxy, along with any policy configurations. Routes have reference to to // Gateways to dictate how requests should be routed by this Gateway. Next id: -// 32 +// 33 type Gateway struct { // Addresses: Optional. Zero or one IPv4 or IPv6 address on which the Gateway // will receive the traffic. When no address is provided, an IP from the diff --git a/places/v1/places-api.json b/places/v1/places-api.json index 456f210519..a1d379fbd1 100644 --- a/places/v1/places-api.json +++ b/places/v1/places-api.json @@ -276,7 +276,7 @@ } } }, - "revision": "20240423", + "revision": "20240512", "rootUrl": "https://places.googleapis.com/", "schemas": { "GoogleGeoTypeViewport": { @@ -546,6 +546,133 @@ }, "type": "object" }, + "GoogleMapsPlacesV1ContentBlock": { + "description": "A block of content that can be served individually.", + "id": "GoogleMapsPlacesV1ContentBlock", + "properties": { + "content": { + "$ref": "GoogleTypeLocalizedText", + "description": "Content related to the topic." + }, + "references": { + "$ref": "GoogleMapsPlacesV1References", + "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. References that are related to this block of content." + }, + "topic": { + "description": "The topic of the content, for example \"overview\" or \"restaurant\".", + "type": "string" + } + }, + "type": "object" + }, + "GoogleMapsPlacesV1ContextualContent": { + "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. Content that is contextual to the place query.", + "id": "GoogleMapsPlacesV1ContextualContent", + "properties": { + "justifications": { + "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. Justifications for the place.", + "items": { + "$ref": "GoogleMapsPlacesV1ContextualContentJustification" + }, + "type": "array" + }, + "photos": { + "description": "Information (including references) about photos of this place, contexual to the place query.", + "items": { + "$ref": "GoogleMapsPlacesV1Photo" + }, + "type": "array" + }, + "reviews": { + "description": "List of reviews about this place, contexual to the place query.", + "items": { + "$ref": "GoogleMapsPlacesV1Review" + }, + "type": "array" + } + }, + "type": "object" + }, + "GoogleMapsPlacesV1ContextualContentJustification": { + "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. Justifications for the place. Justifications answers the question of why a place could interest an end user.", + "id": "GoogleMapsPlacesV1ContextualContentJustification", + "properties": { + "businessAvailabilityAttributesJustification": { + "$ref": "GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification", + "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details." + }, + "reviewJustification": { + "$ref": "GoogleMapsPlacesV1ContextualContentJustificationReviewJustification", + "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details." + } + }, + "type": "object" + }, + "GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification": { + "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. BusinessAvailabilityAttributes justifications. This shows some attributes a business has that could interest an end user.", + "id": "GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification", + "properties": { + "delivery": { + "description": "If a place provides delivery.", + "type": "boolean" + }, + "dineIn": { + "description": "If a place provides dine-in.", + "type": "boolean" + }, + "takeout": { + "description": "If a place provides takeout.", + "type": "boolean" + } + }, + "type": "object" + }, + "GoogleMapsPlacesV1ContextualContentJustificationReviewJustification": { + "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. User review justifications. This highlights a section of the user review that would interest an end user. For instance, if the search query is \"firewood pizza\", the review justification highlights the text relevant to the search query.", + "id": "GoogleMapsPlacesV1ContextualContentJustificationReviewJustification", + "properties": { + "highlightedText": { + "$ref": "GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText" + }, + "review": { + "$ref": "GoogleMapsPlacesV1Review", + "description": "The review that the highlighted text is generated from." + } + }, + "type": "object" + }, + "GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText": { + "description": "The text highlighted by the justification. This is a subset of the review itself. The exact word to highlight is marked by the HighlightedTextRange. There could be several words in the text being highlighted.", + "id": "GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText", + "properties": { + "highlightedTextRanges": { + "description": "The list of the ranges of the highlighted text.", + "items": { + "$ref": "GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange" + }, + "type": "array" + }, + "text": { + "type": "string" + } + }, + "type": "object" + }, + "GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange": { + "description": "The range of highlighted text.", + "id": "GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange", + "properties": { + "endIndex": { + "format": "int32", + "type": "integer" + }, + "startIndex": { + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "GoogleMapsPlacesV1EVChargeOptions": { "description": "Information about the EV Charge Station hosted in Place. Terminology follows https://afdc.energy.gov/fuels/electricity_infrastructure.html One port could charge one car at a time. One port has one or more connectors. One station has one or more ports.", "id": "GoogleMapsPlacesV1EVChargeOptions", @@ -767,6 +894,10 @@ "description": "Place allows dogs.", "type": "boolean" }, + "areaSummary": { + "$ref": "GoogleMapsPlacesV1PlaceAreaSummary", + "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. AI-generated summary of the area that the place is in." + }, "attributions": { "description": "A set of data provider that must be shown with this result.", "items": { @@ -833,6 +964,10 @@ "$ref": "GoogleMapsPlacesV1FuelOptions", "description": "The most recent information about fuel options in a gas station. This information is updated regularly." }, + "generativeSummary": { + "$ref": "GoogleMapsPlacesV1PlaceGenerativeSummary", + "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. AI-generated summary of the place." + }, "goodForChildren": { "description": "Place is good for children.", "type": "boolean" @@ -1099,6 +1234,20 @@ }, "type": "object" }, + "GoogleMapsPlacesV1PlaceAreaSummary": { + "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. AI-generated summary of the area that the place is in.", + "id": "GoogleMapsPlacesV1PlaceAreaSummary", + "properties": { + "contentBlocks": { + "description": "Content blocks that compose the area summary. Each block has a separate topic about the area.", + "items": { + "$ref": "GoogleMapsPlacesV1ContentBlock" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleMapsPlacesV1PlaceAttribution": { "description": "Information about data providers of this place.", "id": "GoogleMapsPlacesV1PlaceAttribution", @@ -1114,6 +1263,25 @@ }, "type": "object" }, + "GoogleMapsPlacesV1PlaceGenerativeSummary": { + "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. AI-generated summary of the place.", + "id": "GoogleMapsPlacesV1PlaceGenerativeSummary", + "properties": { + "description": { + "$ref": "GoogleTypeLocalizedText", + "description": "The detailed description of the place." + }, + "overview": { + "$ref": "GoogleTypeLocalizedText", + "description": "The overview of the place." + }, + "references": { + "$ref": "GoogleMapsPlacesV1References", + "description": "References that are used to generate the summary description." + } + }, + "type": "object" + }, "GoogleMapsPlacesV1PlaceOpeningHours": { "description": "Information about business hour of the place.", "id": "GoogleMapsPlacesV1PlaceOpeningHours", @@ -1326,6 +1494,27 @@ }, "type": "object" }, + "GoogleMapsPlacesV1References": { + "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. Reference that the generative content is related to.", + "id": "GoogleMapsPlacesV1References", + "properties": { + "places": { + "description": "The list of resource names of the referenced places. This name can be used in other APIs that accept Place resource names.", + "items": { + "type": "string" + }, + "type": "array" + }, + "reviews": { + "description": "Reviews that serve as references.", + "items": { + "$ref": "GoogleMapsPlacesV1Review" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleMapsPlacesV1Review": { "description": "Information about a review of a place.", "id": "GoogleMapsPlacesV1Review", @@ -1479,7 +1668,8 @@ "description": "The region to search. This location serves as a restriction which means results outside given location will not be returned. Cannot be set along with location_bias." }, "maxResultCount": { - "description": "Maximum number of results to return. It must be between 1 and 20, inclusively. The default is 20. If the number is unset, it falls back to the upper limit. If the number is set to negative or exceeds the upper limit, an INVALID_ARGUMENT error is returned.", + "deprecated": true, + "description": "Deprecated: Use `page_size` instead. The maximum number of results per page that can be returned. If the number of available results is larger than `max_result_count`, a `next_page_token` is returned which can be passed to `page_token` to get the next page of results in subsequent requests. If 0 or no value is provided, a default of 20 is used. The maximum value is 20; values above 20 will be coerced to 20. Negative values will return an INVALID_ARGUMENT error. If both `max_result_count` and `page_size` are specified, `max_result_count` will be ignored.", "format": "int32", "type": "integer" }, @@ -1492,6 +1682,15 @@ "description": "Used to restrict the search to places that are currently open. The default is false.", "type": "boolean" }, + "pageSize": { + "description": "Optional. The maximum number of results per page that can be returned. If the number of available results is larger than `page_size`, a `next_page_token` is returned which can be passed to `page_token` to get the next page of results in subsequent requests. If 0 or no value is provided, a default of 20 is used. The maximum value is 20; values above 20 will be set to 20. Negative values will return an INVALID_ARGUMENT error. If both `max_result_count` and `page_size` are specified, `max_result_count` will be ignored.", + "format": "int32", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A page token, received from a previous TextSearch call. Provide this to retrieve the subsequent page. When paginating, all parameters other than `page_token`, `page_size`, and `max_result_count` provided to TextSearch must match the initial call that provided the page token. Otherwise an INVALID_ARGUMENT error is returned.", + "type": "string" + }, "priceLevels": { "description": "Used to restrict the search to places that are marked as certain price levels. Users can choose any combinations of price levels. Default to select all price levels.", "items": { @@ -1617,6 +1816,17 @@ "description": "Response proto for SearchText. ", "id": "GoogleMapsPlacesV1SearchTextResponse", "properties": { + "contextualContents": { + "description": "Experimental: See https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative for more details. A list of contextual contents where each entry associates to the corresponding place in the same index in the places field. The contents that are relevant to the `text_query` in the request are preferred. If the contextual content is not available for one of the places, it will return non-contextual content. It will be empty only when the content is unavailable for this place. This list should have as many entries as the list of places if requested.", + "items": { + "$ref": "GoogleMapsPlacesV1ContextualContent" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token that can be sent as `page_token` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.", + "type": "string" + }, "places": { "description": "A list of places that meet the user's text search criteria.", "items": { diff --git a/places/v1/places-gen.go b/places/v1/places-gen.go index 2f4540a5d9..19564b6f72 100644 --- a/places/v1/places-gen.go +++ b/places/v1/places-gen.go @@ -686,6 +686,208 @@ func (s *GoogleMapsPlacesV1Circle) UnmarshalJSON(data []byte) error { return nil } +// GoogleMapsPlacesV1ContentBlock: A block of content that can be served +// individually. +type GoogleMapsPlacesV1ContentBlock struct { + // Content: Content related to the topic. + Content *GoogleTypeLocalizedText `json:"content,omitempty"` + // References: Experimental: See + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative + // for more details. References that are related to this block of content. + References *GoogleMapsPlacesV1References `json:"references,omitempty"` + // Topic: The topic of the content, for example "overview" or "restaurant". + Topic string `json:"topic,omitempty"` + // ForceSendFields is a list of field names (e.g. "Content") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Content") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleMapsPlacesV1ContentBlock) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1ContentBlock + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// GoogleMapsPlacesV1ContextualContent: Experimental: See +// https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative +// for more details. Content that is contextual to the place query. +type GoogleMapsPlacesV1ContextualContent struct { + // Justifications: Experimental: See + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative + // for more details. Justifications for the place. + Justifications []*GoogleMapsPlacesV1ContextualContentJustification `json:"justifications,omitempty"` + // Photos: Information (including references) about photos of this place, + // contexual to the place query. + Photos []*GoogleMapsPlacesV1Photo `json:"photos,omitempty"` + // Reviews: List of reviews about this place, contexual to the place query. + Reviews []*GoogleMapsPlacesV1Review `json:"reviews,omitempty"` + // ForceSendFields is a list of field names (e.g. "Justifications") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Justifications") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleMapsPlacesV1ContextualContent) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1ContextualContent + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// GoogleMapsPlacesV1ContextualContentJustification: Experimental: See +// https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative +// for more details. Justifications for the place. Justifications answers the +// question of why a place could interest an end user. +type GoogleMapsPlacesV1ContextualContentJustification struct { + // BusinessAvailabilityAttributesJustification: Experimental: See + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative + // for more details. + BusinessAvailabilityAttributesJustification *GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification `json:"businessAvailabilityAttributesJustification,omitempty"` + // ReviewJustification: Experimental: See + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative + // for more details. + ReviewJustification *GoogleMapsPlacesV1ContextualContentJustificationReviewJustification `json:"reviewJustification,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "BusinessAvailabilityAttributesJustification") to unconditionally include in + // API requests. By default, fields with empty or default values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. + // "BusinessAvailabilityAttributesJustification") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleMapsPlacesV1ContextualContentJustification) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1ContextualContentJustification + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttribute +// sJustification: Experimental: See +// https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative +// for more details. BusinessAvailabilityAttributes justifications. This shows +// some attributes a business has that could interest an end user. +type GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification struct { + // Delivery: If a place provides delivery. + Delivery bool `json:"delivery,omitempty"` + // DineIn: If a place provides dine-in. + DineIn bool `json:"dineIn,omitempty"` + // Takeout: If a place provides takeout. + Takeout bool `json:"takeout,omitempty"` + // ForceSendFields is a list of field names (e.g. "Delivery") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Delivery") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1ContextualContentJustificationBusinessAvailabilityAttributesJustification + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// GoogleMapsPlacesV1ContextualContentJustificationReviewJustification: +// Experimental: See +// https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative +// for more details. User review justifications. This highlights a section of +// the user review that would interest an end user. For instance, if the search +// query is "firewood pizza", the review justification highlights the text +// relevant to the search query. +type GoogleMapsPlacesV1ContextualContentJustificationReviewJustification struct { + HighlightedText *GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText `json:"highlightedText,omitempty"` + // Review: The review that the highlighted text is generated from. + Review *GoogleMapsPlacesV1Review `json:"review,omitempty"` + // ForceSendFields is a list of field names (e.g. "HighlightedText") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "HighlightedText") to include in + // API requests with the JSON null value. By default, fields with empty values + // are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleMapsPlacesV1ContextualContentJustificationReviewJustification) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1ContextualContentJustificationReviewJustification + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlighte +// dText: The text highlighted by the justification. This is a subset of the +// review itself. The exact word to highlight is marked by the +// HighlightedTextRange. There could be several words in the text being +// highlighted. +type GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText struct { + // HighlightedTextRanges: The list of the ranges of the highlighted text. + HighlightedTextRanges []*GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange `json:"highlightedTextRanges,omitempty"` + Text string `json:"text,omitempty"` + // ForceSendFields is a list of field names (e.g. "HighlightedTextRanges") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "HighlightedTextRanges") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedText + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + +// GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlighte +// dTextHighlightedTextRange: The range of highlighted text. +type GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange struct { + EndIndex int64 `json:"endIndex,omitempty"` + StartIndex int64 `json:"startIndex,omitempty"` + // ForceSendFields is a list of field names (e.g. "EndIndex") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "EndIndex") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1ContextualContentJustificationReviewJustificationHighlightedTextHighlightedTextRange + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleMapsPlacesV1EVChargeOptions: Information about the EV Charge Station // hosted in Place. Terminology follows // https://afdc.energy.gov/fuels/electricity_infrastructure.html One port could @@ -945,6 +1147,10 @@ type GoogleMapsPlacesV1Place struct { AdrFormatAddress string `json:"adrFormatAddress,omitempty"` // AllowsDogs: Place allows dogs. AllowsDogs bool `json:"allowsDogs,omitempty"` + // AreaSummary: Experimental: See + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative + // for more details. AI-generated summary of the area that the place is in. + AreaSummary *GoogleMapsPlacesV1PlaceAreaSummary `json:"areaSummary,omitempty"` // Attributions: A set of data provider that must be shown with this result. Attributions []*GoogleMapsPlacesV1PlaceAttribution `json:"attributions,omitempty"` // BusinessStatus: The business status for the place. @@ -995,6 +1201,10 @@ type GoogleMapsPlacesV1Place struct { // FuelOptions: The most recent information about fuel options in a gas // station. This information is updated regularly. FuelOptions *GoogleMapsPlacesV1FuelOptions `json:"fuelOptions,omitempty"` + // GenerativeSummary: Experimental: See + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative + // for more details. AI-generated summary of the place. + GenerativeSummary *GoogleMapsPlacesV1PlaceGenerativeSummary `json:"generativeSummary,omitempty"` // GoodForChildren: Place is good for children. GoodForChildren bool `json:"goodForChildren,omitempty"` // GoodForGroups: Place accommodates groups. @@ -1220,6 +1430,31 @@ func (s *GoogleMapsPlacesV1PlaceAddressComponent) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleMapsPlacesV1PlaceAreaSummary: Experimental: See +// https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative +// for more details. AI-generated summary of the area that the place is in. +type GoogleMapsPlacesV1PlaceAreaSummary struct { + // ContentBlocks: Content blocks that compose the area summary. Each block has + // a separate topic about the area. + ContentBlocks []*GoogleMapsPlacesV1ContentBlock `json:"contentBlocks,omitempty"` + // ForceSendFields is a list of field names (e.g. "ContentBlocks") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "ContentBlocks") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleMapsPlacesV1PlaceAreaSummary) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1PlaceAreaSummary + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleMapsPlacesV1PlaceAttribution: Information about data providers of this // place. type GoogleMapsPlacesV1PlaceAttribution struct { @@ -1245,6 +1480,34 @@ func (s *GoogleMapsPlacesV1PlaceAttribution) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleMapsPlacesV1PlaceGenerativeSummary: Experimental: See +// https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative +// for more details. AI-generated summary of the place. +type GoogleMapsPlacesV1PlaceGenerativeSummary struct { + // Description: The detailed description of the place. + Description *GoogleTypeLocalizedText `json:"description,omitempty"` + // Overview: The overview of the place. + Overview *GoogleTypeLocalizedText `json:"overview,omitempty"` + // References: References that are used to generate the summary description. + References *GoogleMapsPlacesV1References `json:"references,omitempty"` + // 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. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Description") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleMapsPlacesV1PlaceGenerativeSummary) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1PlaceGenerativeSummary + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleMapsPlacesV1PlaceOpeningHours: Information about business hour of the // place. type GoogleMapsPlacesV1PlaceOpeningHours struct { @@ -1512,6 +1775,33 @@ func (s *GoogleMapsPlacesV1PlaceSubDestination) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } +// GoogleMapsPlacesV1References: Experimental: See +// https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative +// for more details. Reference that the generative content is related to. +type GoogleMapsPlacesV1References struct { + // Places: The list of resource names of the referenced places. This name can + // be used in other APIs that accept Place resource names. + Places []string `json:"places,omitempty"` + // Reviews: Reviews that serve as references. + Reviews []*GoogleMapsPlacesV1Review `json:"reviews,omitempty"` + // ForceSendFields is a list of field names (e.g. "Places") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Places") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s *GoogleMapsPlacesV1References) MarshalJSON() ([]byte, error) { + type NoMethod GoogleMapsPlacesV1References + return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) +} + // GoogleMapsPlacesV1Review: Information about a review of a place. type GoogleMapsPlacesV1Review struct { // AuthorAttribution: This review's author. @@ -1739,10 +2029,14 @@ type GoogleMapsPlacesV1SearchTextRequest struct { // restriction which means results outside given location will not be returned. // Cannot be set along with location_bias. LocationRestriction *GoogleMapsPlacesV1SearchTextRequestLocationRestriction `json:"locationRestriction,omitempty"` - // MaxResultCount: Maximum number of results to return. It must be between 1 - // and 20, inclusively. The default is 20. If the number is unset, it falls - // back to the upper limit. If the number is set to negative or exceeds the - // upper limit, an INVALID_ARGUMENT error is returned. + // MaxResultCount: Deprecated: Use `page_size` instead. The maximum number of + // results per page that can be returned. If the number of available results is + // larger than `max_result_count`, a `next_page_token` is returned which can be + // passed to `page_token` to get the next page of results in subsequent + // requests. If 0 or no value is provided, a default of 20 is used. The maximum + // value is 20; values above 20 will be coerced to 20. Negative values will + // return an INVALID_ARGUMENT error. If both `max_result_count` and `page_size` + // are specified, `max_result_count` will be ignored. MaxResultCount int64 `json:"maxResultCount,omitempty"` // MinRating: Filter out results whose average user rating is strictly less // than this limit. A valid value must be a float between 0 and 5 (inclusively) @@ -1753,6 +2047,21 @@ type GoogleMapsPlacesV1SearchTextRequest struct { // OpenNow: Used to restrict the search to places that are currently open. The // default is false. OpenNow bool `json:"openNow,omitempty"` + // PageSize: Optional. The maximum number of results per page that can be + // returned. If the number of available results is larger than `page_size`, a + // `next_page_token` is returned which can be passed to `page_token` to get the + // next page of results in subsequent requests. If 0 or no value is provided, a + // default of 20 is used. The maximum value is 20; values above 20 will be set + // to 20. Negative values will return an INVALID_ARGUMENT error. If both + // `max_result_count` and `page_size` are specified, `max_result_count` will be + // ignored. + PageSize int64 `json:"pageSize,omitempty"` + // PageToken: Optional. A page token, received from a previous TextSearch call. + // Provide this to retrieve the subsequent page. When paginating, all + // parameters other than `page_token`, `page_size`, and `max_result_count` + // provided to TextSearch must match the initial call that provided the page + // token. Otherwise an INVALID_ARGUMENT error is returned. + PageToken string `json:"pageToken,omitempty"` // PriceLevels: Used to restrict the search to places that are marked as // certain price levels. Users can choose any combinations of price levels. // Default to select all price levels. @@ -1945,20 +2254,33 @@ func (s *GoogleMapsPlacesV1SearchTextRequestLocationRestriction) MarshalJSON() ( // GoogleMapsPlacesV1SearchTextResponse: Response proto for SearchText. type GoogleMapsPlacesV1SearchTextResponse struct { + // ContextualContents: Experimental: See + // https://developers.google.com/maps/documentation/places/web-service/experimental/places-generative + // for more details. A list of contextual contents where each entry associates + // to the corresponding place in the same index in the places field. The + // contents that are relevant to the `text_query` in the request are preferred. + // If the contextual content is not available for one of the places, it will + // return non-contextual content. It will be empty only when the content is + // unavailable for this place. This list should have as many entries as the + // list of places if requested. + ContextualContents []*GoogleMapsPlacesV1ContextualContent `json:"contextualContents,omitempty"` + // NextPageToken: A token that can be sent as `page_token` to retrieve the next + // page. If this field is omitted or empty, there are no subsequent pages. + NextPageToken string `json:"nextPageToken,omitempty"` // Places: A list of places that meet the user's text search criteria. Places []*GoogleMapsPlacesV1Place `json:"places,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Places") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "ContextualContents") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Places") to include in API - // requests with the JSON null value. By default, fields with empty values are - // omitted from API requests. See + // NullFields is a list of field names (e.g. "ContextualContents") to include + // in API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -2547,6 +2869,27 @@ func (c *PlacesSearchTextCall) Do(opts ...googleapi.CallOption) (*GoogleMapsPlac return ret, nil } +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *PlacesSearchTextCall) Pages(ctx context.Context, f func(*GoogleMapsPlacesV1SearchTextResponse) error) error { + c.ctx_ = ctx + defer func(pt string) { c.googlemapsplacesv1searchtextrequest.PageToken = pt }(c.googlemapsplacesv1searchtextrequest.PageToken) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.googlemapsplacesv1searchtextrequest.PageToken = x.NextPageToken + } +} + type PlacesPhotosGetMediaCall struct { s *Service name string diff --git a/securitycenter/v1/securitycenter-api.json b/securitycenter/v1/securitycenter-api.json index 6adbe02b59..219a3e52bf 100644 --- a/securitycenter/v1/securitycenter-api.json +++ b/securitycenter/v1/securitycenter-api.json @@ -725,6 +725,39 @@ "resources": { "muteConfigs": { "methods": { + "create": { + "description": "Creates a mute config.", + "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/muteConfigs", + "httpMethod": "POST", + "id": "securitycenter.folders.locations.muteConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "muteConfigId": { + "description": "Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Resource name of the new mute configs's parent. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", + "location": "path", + "pattern": "^folders/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/muteConfigs", + "request": { + "$ref": "GoogleCloudSecuritycenterV1MuteConfig" + }, + "response": { + "$ref": "GoogleCloudSecuritycenterV1MuteConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "delete": { "description": "Deletes an existing mute config.", "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/muteConfigs/{muteConfigsId}", @@ -775,6 +808,42 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "list": { + "description": "Lists mute configs.", + "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/muteConfigs", + "httpMethod": "GET", + "id": "securitycenter.folders.locations.muteConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of configs to return. The service may return fewer than this value. If unspecified, at most 10 configs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListMuteConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMuteConfigs` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent, which owns the collection of mute configs. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", \"projects/[project_id]\".", + "location": "path", + "pattern": "^folders/[^/]+/locations/[^/]+/muteConfigs$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}", + "response": { + "$ref": "ListMuteConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "patch": { "description": "Updates a mute config.", "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/muteConfigs/{muteConfigsId}", @@ -2432,6 +2501,39 @@ "resources": { "muteConfigs": { "methods": { + "create": { + "description": "Creates a mute config.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/muteConfigs", + "httpMethod": "POST", + "id": "securitycenter.organizations.locations.muteConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "muteConfigId": { + "description": "Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Resource name of the new mute configs's parent. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/muteConfigs", + "request": { + "$ref": "GoogleCloudSecuritycenterV1MuteConfig" + }, + "response": { + "$ref": "GoogleCloudSecuritycenterV1MuteConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "delete": { "description": "Deletes an existing mute config.", "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/muteConfigs/{muteConfigsId}", @@ -2482,6 +2584,42 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "list": { + "description": "Lists mute configs.", + "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/muteConfigs", + "httpMethod": "GET", + "id": "securitycenter.organizations.locations.muteConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of configs to return. The service may return fewer than this value. If unspecified, at most 10 configs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListMuteConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMuteConfigs` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent, which owns the collection of mute configs. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", \"projects/[project_id]\".", + "location": "path", + "pattern": "^organizations/[^/]+/locations/[^/]+/muteConfigs$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}", + "response": { + "$ref": "ListMuteConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "patch": { "description": "Updates a mute config.", "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/muteConfigs/{muteConfigsId}", @@ -4822,6 +4960,39 @@ "resources": { "muteConfigs": { "methods": { + "create": { + "description": "Creates a mute config.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/muteConfigs", + "httpMethod": "POST", + "id": "securitycenter.projects.locations.muteConfigs.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "muteConfigId": { + "description": "Required. Unique identifier provided by the client within the parent scope. It must consist of only lowercase letters, numbers, and hyphens, must start with a letter, must end with either a letter or a number, and must be 63 characters or less.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. Resource name of the new mute configs's parent. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", or \"projects/[project_id]\".", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/muteConfigs", + "request": { + "$ref": "GoogleCloudSecuritycenterV1MuteConfig" + }, + "response": { + "$ref": "GoogleCloudSecuritycenterV1MuteConfig" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "delete": { "description": "Deletes an existing mute config.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/muteConfigs/{muteConfigsId}", @@ -4872,6 +5043,42 @@ "https://www.googleapis.com/auth/cloud-platform" ] }, + "list": { + "description": "Lists mute configs.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/muteConfigs", + "httpMethod": "GET", + "id": "securitycenter.projects.locations.muteConfigs.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "The maximum number of configs to return. The service may return fewer than this value. If unspecified, at most 10 configs will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListMuteConfigs` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListMuteConfigs` must match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent, which owns the collection of mute configs. Its format is \"organizations/[organization_id]\", \"folders/[folder_id]\", \"projects/[project_id]\".", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/muteConfigs$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}", + "response": { + "$ref": "ListMuteConfigsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, "patch": { "description": "Updates a mute config.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/muteConfigs/{muteConfigsId}", @@ -5820,7 +6027,7 @@ } } }, - "revision": "20240506", + "revision": "20240513", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { diff --git a/securitycenter/v1/securitycenter-gen.go b/securitycenter/v1/securitycenter-gen.go index 568a9e6013..4e9649da8f 100644 --- a/securitycenter/v1/securitycenter-gen.go +++ b/securitycenter/v1/securitycenter-gen.go @@ -12811,6 +12811,120 @@ func (c *FoldersFindingsBulkMuteCall) Do(opts ...googleapi.CallOption) (*Operati return ret, nil } +type FoldersLocationsMuteConfigsCreateCall struct { + s *Service + parent string + googlecloudsecuritycenterv1muteconfig *GoogleCloudSecuritycenterV1MuteConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a mute config. +// +// - parent: Resource name of the new mute configs's parent. Its format is +// "organizations/[organization_id]", "folders/[folder_id]", or +// "projects/[project_id]". +func (r *FoldersLocationsMuteConfigsService) Create(parent string, googlecloudsecuritycenterv1muteconfig *GoogleCloudSecuritycenterV1MuteConfig) *FoldersLocationsMuteConfigsCreateCall { + c := &FoldersLocationsMuteConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudsecuritycenterv1muteconfig = googlecloudsecuritycenterv1muteconfig + return c +} + +// MuteConfigId sets the optional parameter "muteConfigId": Required. Unique +// identifier provided by the client within the parent scope. It must consist +// of only lowercase letters, numbers, and hyphens, must start with a letter, +// must end with either a letter or a number, and must be 63 characters or +// less. +func (c *FoldersLocationsMuteConfigsCreateCall) MuteConfigId(muteConfigId string) *FoldersLocationsMuteConfigsCreateCall { + c.urlParams_.Set("muteConfigId", muteConfigId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *FoldersLocationsMuteConfigsCreateCall) Fields(s ...googleapi.Field) *FoldersLocationsMuteConfigsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *FoldersLocationsMuteConfigsCreateCall) Context(ctx context.Context) *FoldersLocationsMuteConfigsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *FoldersLocationsMuteConfigsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersLocationsMuteConfigsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudsecuritycenterv1muteconfig) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/muteConfigs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.folders.locations.muteConfigs.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudSecuritycenterV1MuteConfig.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 *FoldersLocationsMuteConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudSecuritycenterV1MuteConfig, 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 := &GoogleCloudSecuritycenterV1MuteConfig{ + 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 +} + type FoldersLocationsMuteConfigsDeleteCall struct { s *Service name string @@ -13026,6 +13140,155 @@ func (c *FoldersLocationsMuteConfigsGetCall) Do(opts ...googleapi.CallOption) (* return ret, nil } +type FoldersLocationsMuteConfigsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists mute configs. +// +// - parent: The parent, which owns the collection of mute configs. Its format +// is "organizations/[organization_id]", "folders/[folder_id]", +// "projects/[project_id]". +func (r *FoldersLocationsMuteConfigsService) List(parent string) *FoldersLocationsMuteConfigsListCall { + c := &FoldersLocationsMuteConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// configs to return. The service may return fewer than this value. If +// unspecified, at most 10 configs will be returned. The maximum value is 1000; +// values above 1000 will be coerced to 1000. +func (c *FoldersLocationsMuteConfigsListCall) PageSize(pageSize int64) *FoldersLocationsMuteConfigsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListMuteConfigs` call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// `ListMuteConfigs` must match the call that provided the page token. +func (c *FoldersLocationsMuteConfigsListCall) PageToken(pageToken string) *FoldersLocationsMuteConfigsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *FoldersLocationsMuteConfigsListCall) Fields(s ...googleapi.Field) *FoldersLocationsMuteConfigsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *FoldersLocationsMuteConfigsListCall) IfNoneMatch(entityTag string) *FoldersLocationsMuteConfigsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *FoldersLocationsMuteConfigsListCall) Context(ctx context.Context) *FoldersLocationsMuteConfigsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *FoldersLocationsMuteConfigsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *FoldersLocationsMuteConfigsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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/{+parent}") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.folders.locations.muteConfigs.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListMuteConfigsResponse.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 *FoldersLocationsMuteConfigsListCall) Do(opts ...googleapi.CallOption) (*ListMuteConfigsResponse, 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 := &ListMuteConfigsResponse{ + 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 +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *FoldersLocationsMuteConfigsListCall) Pages(ctx context.Context, f func(*ListMuteConfigsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + type FoldersLocationsMuteConfigsPatchCall struct { s *Service name string @@ -19170,6 +19433,120 @@ func (c *OrganizationsFindingsBulkMuteCall) Do(opts ...googleapi.CallOption) (*O return ret, nil } +type OrganizationsLocationsMuteConfigsCreateCall struct { + s *Service + parent string + googlecloudsecuritycenterv1muteconfig *GoogleCloudSecuritycenterV1MuteConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a mute config. +// +// - parent: Resource name of the new mute configs's parent. Its format is +// "organizations/[organization_id]", "folders/[folder_id]", or +// "projects/[project_id]". +func (r *OrganizationsLocationsMuteConfigsService) Create(parent string, googlecloudsecuritycenterv1muteconfig *GoogleCloudSecuritycenterV1MuteConfig) *OrganizationsLocationsMuteConfigsCreateCall { + c := &OrganizationsLocationsMuteConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudsecuritycenterv1muteconfig = googlecloudsecuritycenterv1muteconfig + return c +} + +// MuteConfigId sets the optional parameter "muteConfigId": Required. Unique +// identifier provided by the client within the parent scope. It must consist +// of only lowercase letters, numbers, and hyphens, must start with a letter, +// must end with either a letter or a number, and must be 63 characters or +// less. +func (c *OrganizationsLocationsMuteConfigsCreateCall) MuteConfigId(muteConfigId string) *OrganizationsLocationsMuteConfigsCreateCall { + c.urlParams_.Set("muteConfigId", muteConfigId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *OrganizationsLocationsMuteConfigsCreateCall) Fields(s ...googleapi.Field) *OrganizationsLocationsMuteConfigsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsMuteConfigsCreateCall) Context(ctx context.Context) *OrganizationsLocationsMuteConfigsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *OrganizationsLocationsMuteConfigsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsMuteConfigsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudsecuritycenterv1muteconfig) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/muteConfigs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.organizations.locations.muteConfigs.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudSecuritycenterV1MuteConfig.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 *OrganizationsLocationsMuteConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudSecuritycenterV1MuteConfig, 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 := &GoogleCloudSecuritycenterV1MuteConfig{ + 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 +} + type OrganizationsLocationsMuteConfigsDeleteCall struct { s *Service name string @@ -19382,7 +19759,156 @@ func (c *OrganizationsLocationsMuteConfigsGetCall) Do(opts ...googleapi.CallOpti if err := gensupport.DecodeResponse(target, res); err != nil { return nil, err } - return ret, nil + return ret, nil +} + +type OrganizationsLocationsMuteConfigsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists mute configs. +// +// - parent: The parent, which owns the collection of mute configs. Its format +// is "organizations/[organization_id]", "folders/[folder_id]", +// "projects/[project_id]". +func (r *OrganizationsLocationsMuteConfigsService) List(parent string) *OrganizationsLocationsMuteConfigsListCall { + c := &OrganizationsLocationsMuteConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// configs to return. The service may return fewer than this value. If +// unspecified, at most 10 configs will be returned. The maximum value is 1000; +// values above 1000 will be coerced to 1000. +func (c *OrganizationsLocationsMuteConfigsListCall) PageSize(pageSize int64) *OrganizationsLocationsMuteConfigsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListMuteConfigs` call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// `ListMuteConfigs` must match the call that provided the page token. +func (c *OrganizationsLocationsMuteConfigsListCall) PageToken(pageToken string) *OrganizationsLocationsMuteConfigsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *OrganizationsLocationsMuteConfigsListCall) Fields(s ...googleapi.Field) *OrganizationsLocationsMuteConfigsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *OrganizationsLocationsMuteConfigsListCall) IfNoneMatch(entityTag string) *OrganizationsLocationsMuteConfigsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *OrganizationsLocationsMuteConfigsListCall) Context(ctx context.Context) *OrganizationsLocationsMuteConfigsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *OrganizationsLocationsMuteConfigsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *OrganizationsLocationsMuteConfigsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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/{+parent}") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.organizations.locations.muteConfigs.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListMuteConfigsResponse.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 *OrganizationsLocationsMuteConfigsListCall) Do(opts ...googleapi.CallOption) (*ListMuteConfigsResponse, 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 := &ListMuteConfigsResponse{ + 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 +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *OrganizationsLocationsMuteConfigsListCall) Pages(ctx context.Context, f func(*ListMuteConfigsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } } type OrganizationsLocationsMuteConfigsPatchCall struct { @@ -28017,6 +28543,120 @@ func (c *ProjectsFindingsBulkMuteCall) Do(opts ...googleapi.CallOption) (*Operat return ret, nil } +type ProjectsLocationsMuteConfigsCreateCall struct { + s *Service + parent string + googlecloudsecuritycenterv1muteconfig *GoogleCloudSecuritycenterV1MuteConfig + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a mute config. +// +// - parent: Resource name of the new mute configs's parent. Its format is +// "organizations/[organization_id]", "folders/[folder_id]", or +// "projects/[project_id]". +func (r *ProjectsLocationsMuteConfigsService) Create(parent string, googlecloudsecuritycenterv1muteconfig *GoogleCloudSecuritycenterV1MuteConfig) *ProjectsLocationsMuteConfigsCreateCall { + c := &ProjectsLocationsMuteConfigsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlecloudsecuritycenterv1muteconfig = googlecloudsecuritycenterv1muteconfig + return c +} + +// MuteConfigId sets the optional parameter "muteConfigId": Required. Unique +// identifier provided by the client within the parent scope. It must consist +// of only lowercase letters, numbers, and hyphens, must start with a letter, +// must end with either a letter or a number, and must be 63 characters or +// less. +func (c *ProjectsLocationsMuteConfigsCreateCall) MuteConfigId(muteConfigId string) *ProjectsLocationsMuteConfigsCreateCall { + c.urlParams_.Set("muteConfigId", muteConfigId) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsMuteConfigsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsMuteConfigsCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsMuteConfigsCreateCall) Context(ctx context.Context) *ProjectsLocationsMuteConfigsCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsMuteConfigsCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMuteConfigsCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudsecuritycenterv1muteconfig) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/muteConfigs") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.projects.locations.muteConfigs.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudSecuritycenterV1MuteConfig.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 *ProjectsLocationsMuteConfigsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudSecuritycenterV1MuteConfig, 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 := &GoogleCloudSecuritycenterV1MuteConfig{ + 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 +} + type ProjectsLocationsMuteConfigsDeleteCall struct { s *Service name string @@ -28232,6 +28872,155 @@ func (c *ProjectsLocationsMuteConfigsGetCall) Do(opts ...googleapi.CallOption) ( return ret, nil } +type ProjectsLocationsMuteConfigsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists mute configs. +// +// - parent: The parent, which owns the collection of mute configs. Its format +// is "organizations/[organization_id]", "folders/[folder_id]", +// "projects/[project_id]". +func (r *ProjectsLocationsMuteConfigsService) List(parent string) *ProjectsLocationsMuteConfigsListCall { + c := &ProjectsLocationsMuteConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// configs to return. The service may return fewer than this value. If +// unspecified, at most 10 configs will be returned. The maximum value is 1000; +// values above 1000 will be coerced to 1000. +func (c *ProjectsLocationsMuteConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsMuteConfigsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, received +// from a previous `ListMuteConfigs` call. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// `ListMuteConfigs` must match the call that provided the page token. +func (c *ProjectsLocationsMuteConfigsListCall) PageToken(pageToken string) *ProjectsLocationsMuteConfigsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsLocationsMuteConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsMuteConfigsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an 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. +func (c *ProjectsLocationsMuteConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsMuteConfigsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsMuteConfigsListCall) Context(ctx context.Context) *ProjectsLocationsMuteConfigsListCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsLocationsMuteConfigsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsMuteConfigsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + 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/{+parent}") + 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{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "securitycenter.projects.locations.muteConfigs.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListMuteConfigsResponse.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 *ProjectsLocationsMuteConfigsListCall) Do(opts ...googleapi.CallOption) (*ListMuteConfigsResponse, 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 := &ListMuteConfigsResponse{ + 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 +} + +// Pages invokes f for each page of results. +// A non-nil error returned from f will halt the iteration. +// The provided context supersedes any context provided to the Context method. +func (c *ProjectsLocationsMuteConfigsListCall) Pages(ctx context.Context, f func(*ListMuteConfigsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} + type ProjectsLocationsMuteConfigsPatchCall struct { s *Service name string diff --git a/storagetransfer/v1/storagetransfer-api.json b/storagetransfer/v1/storagetransfer-api.json index f8ff6c349f..e439c9b7ca 100644 --- a/storagetransfer/v1/storagetransfer-api.json +++ b/storagetransfer/v1/storagetransfer-api.json @@ -632,7 +632,7 @@ } } }, - "revision": "20240507", + "revision": "20240511", "rootUrl": "https://storagetransfer.googleapis.com/", "schemas": { "AgentPool": { @@ -1043,15 +1043,15 @@ "type": "object" }, "LoggingConfig": { - "description": "Specifies the logging behavior for transfer operations. For cloud-to-cloud transfers, logs are sent to Cloud Logging. See [Read transfer logs](https://cloud.google.com/storage-transfer/docs/read-transfer-logs) for details. For transfers to or from a POSIX file system, logs are stored in the Cloud Storage bucket that is the source or sink of the transfer. See [Managing Transfer for on-premises jobs] (https://cloud.google.com/storage-transfer/docs/managing-on-prem-jobs#viewing-logs) for details.", + "description": "Specifies the logging behavior for transfer operations. Logs can be sent to Cloud Logging for all transfer types. See [Read transfer logs](https://cloud.google.com/storage-transfer/docs/read-transfer-logs) for details.", "id": "LoggingConfig", "properties": { "enableOnpremGcsTransferLogs": { - "description": "For transfers with a PosixFilesystem source, this option enables the Cloud Storage transfer logs for this transfer.", + "description": "For PosixFilesystem transfers, enables [file system transfer logs](https://cloud.google.com/storage-transfer/docs/on-prem-transfer-log-format) instead of, or in addition to, Cloud Logging. This option ignores [LoggableAction] and [LoggableActionState]. If these are set, Cloud Logging will also be enabled for this transfer.", "type": "boolean" }, "logActionStates": { - "description": "States in which `log_actions` are logged. If empty, no logs are generated. Not supported for transfers with PosixFilesystem data sources; use enable_onprem_gcs_transfer_logs instead.", + "description": "States in which `log_actions` are logged. If empty, no logs are generated.", "items": { "enum": [ "LOGGABLE_ACTION_STATE_UNSPECIFIED", @@ -1068,7 +1068,7 @@ "type": "array" }, "logActions": { - "description": "Specifies the actions to be logged. If empty, no logs are generated. Not supported for transfers with PosixFilesystem data sources; use enable_onprem_gcs_transfer_logs instead.", + "description": "Specifies the actions to be logged. If empty, no logs are generated.", "items": { "enum": [ "LOGGABLE_ACTION_UNSPECIFIED", diff --git a/storagetransfer/v1/storagetransfer-gen.go b/storagetransfer/v1/storagetransfer-gen.go index deb9735f38..a34514171c 100644 --- a/storagetransfer/v1/storagetransfer-gen.go +++ b/storagetransfer/v1/storagetransfer-gen.go @@ -913,21 +913,20 @@ func (s *ListTransferJobsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) } -// LoggingConfig: Specifies the logging behavior for transfer operations. For -// cloud-to-cloud transfers, logs are sent to Cloud Logging. See Read transfer -// logs (https://cloud.google.com/storage-transfer/docs/read-transfer-logs) for -// details. For transfers to or from a POSIX file system, logs are stored in -// the Cloud Storage bucket that is the source or sink of the transfer. See -// [Managing Transfer for on-premises jobs] -// (https://cloud.google.com/storage-transfer/docs/managing-on-prem-jobs#viewing-logs) -// for details. +// LoggingConfig: Specifies the logging behavior for transfer operations. Logs +// can be sent to Cloud Logging for all transfer types. See Read transfer logs +// (https://cloud.google.com/storage-transfer/docs/read-transfer-logs) for +// details. type LoggingConfig struct { - // EnableOnpremGcsTransferLogs: For transfers with a PosixFilesystem source, - // this option enables the Cloud Storage transfer logs for this transfer. + // EnableOnpremGcsTransferLogs: For PosixFilesystem transfers, enables file + // system transfer logs + // (https://cloud.google.com/storage-transfer/docs/on-prem-transfer-log-format) + // instead of, or in addition to, Cloud Logging. This option ignores + // [LoggableAction] and [LoggableActionState]. If these are set, Cloud Logging + // will also be enabled for this transfer. EnableOnpremGcsTransferLogs bool `json:"enableOnpremGcsTransferLogs,omitempty"` // LogActionStates: States in which `log_actions` are logged. If empty, no logs - // are generated. Not supported for transfers with PosixFilesystem data - // sources; use enable_onprem_gcs_transfer_logs instead. + // are generated. // // Possible values: // "LOGGABLE_ACTION_STATE_UNSPECIFIED" - Default value. This value is unused. @@ -937,8 +936,7 @@ type LoggingConfig struct { // are logged as ERROR. LogActionStates []string `json:"logActionStates,omitempty"` // LogActions: Specifies the actions to be logged. If empty, no logs are - // generated. Not supported for transfers with PosixFilesystem data sources; - // use enable_onprem_gcs_transfer_logs instead. + // generated. // // Possible values: // "LOGGABLE_ACTION_UNSPECIFIED" - Default value. This value is unused. diff --git a/webfonts/v1/webfonts-api.json b/webfonts/v1/webfonts-api.json index 2dd4a73503..9c87d0c1ec 100644 --- a/webfonts/v1/webfonts-api.json +++ b/webfonts/v1/webfonts-api.json @@ -161,7 +161,7 @@ } } }, - "revision": "20230419", + "revision": "20240508", "rootUrl": "https://webfonts.googleapis.com/", "schemas": { "Axis": { @@ -200,6 +200,13 @@ "description": "The category of the font.", "type": "string" }, + "colorCapabilities": { + "description": "The color format(s) available for this family.", + "items": { + "type": "string" + }, + "type": "array" + }, "family": { "description": "The name of the font.", "type": "string" diff --git a/webfonts/v1/webfonts-gen.go b/webfonts/v1/webfonts-gen.go index 2944d7db60..c073faa8f5 100644 --- a/webfonts/v1/webfonts-gen.go +++ b/webfonts/v1/webfonts-gen.go @@ -199,6 +199,8 @@ type Webfont struct { Axes []*Axis `json:"axes,omitempty"` // Category: The category of the font. Category string `json:"category,omitempty"` + // ColorCapabilities: The color format(s) available for this family. + ColorCapabilities []string `json:"colorCapabilities,omitempty"` // Family: The name of the font. Family string `json:"family,omitempty"` // Files: The font files (with all supported scripts) for each one of the