From 78d3669e1fee515944f2bfdd1d091a111b37c529 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 9 Jul 2024 07:10:47 +0000 Subject: [PATCH] feat(all): auto-regenerate discovery clients --- aiplatform/v1/aiplatform-api.json | 55 +- aiplatform/v1/aiplatform-gen.go | 51 +- aiplatform/v1beta1/aiplatform-api.json | 55 +- aiplatform/v1beta1/aiplatform-gen.go | 51 +- alloydb/v1/alloydb-gen.go | 4 +- .../v1alpha/analyticsadmin-api.json | 95 +- analyticsadmin/v1alpha/analyticsadmin-gen.go | 317 ++++++ backupdr/v1/backupdr-gen.go | 168 +-- chromemanagement/v1/chromemanagement-api.json | 16 +- chromemanagement/v1/chromemanagement-gen.go | 4 +- classroom/v1/classroom-api.json | 6 +- classroom/v1/classroom-gen.go | 6 +- cloudbuild/v1/cloudbuild-gen.go | 29 - .../v1beta1/clouderrorreporting-api.json | 313 +++++- .../v1beta1/clouderrorreporting-gen.go | 1000 ++++++++++++++++- container/v1/container-gen.go | 12 +- container/v1beta1/container-gen.go | 12 +- .../v1/containeranalysis-api.json | 62 +- containeranalysis/v1/containeranalysis-gen.go | 74 +- .../v1alpha1/containeranalysis-api.json | 28 +- .../v1alpha1/containeranalysis-gen.go | 38 +- .../v1beta1/containeranalysis-api.json | 28 +- .../v1beta1/containeranalysis-gen.go | 38 +- datafusion/v1/datafusion-gen.go | 56 +- datafusion/v1beta1/datafusion-gen.go | 56 +- dlp/v2/dlp-gen.go | 44 +- firebaseappcheck/v1/firebaseappcheck-api.json | 306 ++++- firebaseappcheck/v1/firebaseappcheck-gen.go | 945 ++++++++++++++++ firebaseml/v2beta/firebaseml-gen.go | 94 -- firestore/v1/firestore-api.json | 4 +- firestore/v1/firestore-gen.go | 3 +- monitoring/v1/monitoring-api.json | 10 +- monitoring/v1/monitoring-gen.go | 2 + run/v1/run-gen.go | 30 - run/v2/run-gen.go | 30 - securitycenter/v1/securitycenter-api.json | 22 +- securitycenter/v1/securitycenter-gen.go | 12 +- .../v1beta1/securitycenter-api.json | 22 +- securitycenter/v1beta1/securitycenter-gen.go | 12 +- .../v1beta2/securitycenter-api.json | 22 +- securitycenter/v1beta2/securitycenter-gen.go | 12 +- sqladmin/v1/sqladmin-gen.go | 8 +- sqladmin/v1beta4/sqladmin-gen.go | 8 +- vmwareengine/v1/vmwareengine-gen.go | 12 +- 44 files changed, 3412 insertions(+), 760 deletions(-) diff --git a/aiplatform/v1/aiplatform-api.json b/aiplatform/v1/aiplatform-api.json index d45cc9610f..b6f2c72bbb 100644 --- a/aiplatform/v1/aiplatform-api.json +++ b/aiplatform/v1/aiplatform-api.json @@ -3927,7 +3927,7 @@ "type": "string" }, "updateMask": { - "description": "Field mask is used to specify the fields to be overwritten in the FeatureGroup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels`", + "description": "Field mask is used to specify the fields to be overwritten in the FeatureGroup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels` * `description` * `big_query` * `big_query.entity_id_columns`", "format": "google-fieldmask", "location": "query", "type": "string" @@ -4106,7 +4106,7 @@ "type": "string" }, "updateMask": { - "description": "Field mask is used to specify the fields to be overwritten in the Features resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported for FeatureRegistry Feature)", + "description": "Field mask is used to specify the fields to be overwritten in the Features resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported for FeatureRegistryService Feature) * `point_of_contact` (Not supported for FeaturestoreService FeatureStore)", "format": "google-fieldmask", "location": "query", "type": "string" @@ -4534,7 +4534,7 @@ "type": "string" }, "updateMask": { - "description": "Field mask is used to specify the fields to be overwritten in the FeatureOnlineStore resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `big_query_source` * `bigtable` * `labels` * `sync_config`", + "description": "Field mask is used to specify the fields to be overwritten in the FeatureOnlineStore resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels` * `description` * `bigtable` * `bigtable.auto_scaling` * `bigtable.enable_multi_region_replica`", "format": "google-fieldmask", "location": "query", "type": "string" @@ -4734,7 +4734,7 @@ "type": "string" }, "updateMask": { - "description": "Field mask is used to specify the fields to be overwritten in the FeatureView resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels` * `serviceAgentType`", + "description": "Field mask is used to specify the fields to be overwritten in the FeatureView resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels` * `service_agent_type` * `big_query_source` * `big_query_source.uri` * `big_query_source.entity_id_columns` * `feature_registry_source` * `feature_registry_source.feature_groups` * `sync_config` * `sync_config.cron`", "format": "google-fieldmask", "location": "query", "type": "string" @@ -6101,7 +6101,7 @@ "type": "string" }, "updateMask": { - "description": "Field mask is used to specify the fields to be overwritten in the Features resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported for FeatureRegistry Feature)", + "description": "Field mask is used to specify the fields to be overwritten in the Features resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported for FeatureRegistryService Feature) * `point_of_contact` (Not supported for FeaturestoreService FeatureStore)", "format": "google-fieldmask", "location": "query", "type": "string" @@ -16810,11 +16810,11 @@ } } }, - "revision": "20240628", + "revision": "20240703", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { - "description": "Generate video response.", + "description": "Next ID: 8 Generate video response.", "id": "CloudAiLargeModelsVisionGenerateVideoResponse", "properties": { "generatedSamples": { @@ -25409,6 +25409,22 @@ "TPU_V4_POD", "TPU_V5_LITEPOD" ], + "enumDeprecated": [ + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Unspecified accelerator type, which means no accelerator.", "Nvidia Tesla K80 GPU.", @@ -25961,12 +25977,12 @@ "description": "The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain." }, "satisfiesPzi": { - "description": "Output only. A read only boolean field reflecting Zone Isolation status of the model. It's false by default. Since Model is a type ZICY 4.2 resource, the field is an aggregated value of ZI status of its underlying dependencies.", + "description": "Output only. Reserved for future use.", "readOnly": true, "type": "boolean" }, "satisfiesPzs": { - "description": "Output only. A read only boolean field reflecting ZS status of the model. It's false by default. Since Model is a type ZICY 4.2 resource, the field is an aggregated value of ZS status of its underlying dependencies.", + "description": "Output only. Reserved for future use.", "readOnly": true, "type": "boolean" }, @@ -30238,7 +30254,7 @@ "properties": { "autoscalingSpec": { "$ref": "GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec", - "description": "Optional. Optional spec to configure GKE autoscaling" + "description": "Optional. Optional spec to configure GKE or Ray-on-Vertex autoscaling" }, "diskSpec": { "$ref": "GoogleCloudAiplatformV1DiskSpec", @@ -30276,7 +30292,7 @@ "type": "string" }, "minReplicaCount": { - "description": "Optional. min replicas in the node pool, must be ≤ replica_count and \u003c max_replica_count or will throw error", + "description": "Optional. min replicas in the node pool, must be ≤ replica_count and \u003c max_replica_count or will throw error. For autoscaling enabled Ray-on-Vertex, we allow min_replica_count of a resource_pool to be 0 to match the OSS Ray behavior(https://docs.ray.io/en/latest/cluster/vms/user-guides/configuring-autoscaling.html#cluster-config-parameters). As for Persistent Resource, the min_replica_count must be \u003e 0, we added a corresponding validation inside CreatePersistentResourceRequestValidator.java.", "format": "int64", "type": "string" } @@ -36145,11 +36161,18 @@ "id": "GoogleCloudAiplatformV1SupervisedTuningDataStats", "properties": { "totalBillableCharacterCount": { + "deprecated": true, "description": "Output only. Number of billable characters in the tuning dataset.", "format": "int64", "readOnly": true, "type": "string" }, + "totalBillableTokenCount": { + "description": "Output only. Number of billable tokens in the tuning dataset.", + "format": "int64", + "readOnly": true, + "type": "string" + }, "totalTuningCharacterCount": { "description": "Output only. Number of tuning characters in the tuning dataset.", "format": "int64", @@ -36520,6 +36543,16 @@ "readOnly": true, "type": "integer" }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "updateTime": { "description": "Output only. Timestamp when this Tensorboard was last updated.", "format": "google-datetime", diff --git a/aiplatform/v1/aiplatform-gen.go b/aiplatform/v1/aiplatform-gen.go index 3a8160cf31..0ab78f97e4 100644 --- a/aiplatform/v1/aiplatform-gen.go +++ b/aiplatform/v1/aiplatform-gen.go @@ -1337,7 +1337,8 @@ type PublishersModelsService struct { s *Service } -// CloudAiLargeModelsVisionGenerateVideoResponse: Generate video response. +// CloudAiLargeModelsVisionGenerateVideoResponse: Next ID: 8 Generate video +// response. type CloudAiLargeModelsVisionGenerateVideoResponse struct { // GeneratedSamples: The generates samples. GeneratedSamples []*CloudAiLargeModelsVisionMedia `json:"generatedSamples,omitempty"` @@ -14743,15 +14744,9 @@ type GoogleCloudAiplatformV1Model struct { // predictions and explanations as given and returned via // PredictionService.Predict and PredictionService.Explain. PredictSchemata *GoogleCloudAiplatformV1PredictSchemata `json:"predictSchemata,omitempty"` - // SatisfiesPzi: Output only. A read only boolean field reflecting Zone - // Isolation status of the model. It's false by default. Since Model is a type - // ZICY 4.2 resource, the field is an aggregated value of ZI status of its - // underlying dependencies. + // SatisfiesPzi: Output only. Reserved for future use. SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` - // SatisfiesPzs: Output only. A read only boolean field reflecting ZS status of - // the model. It's false by default. Since Model is a type ZICY 4.2 resource, - // the field is an aggregated value of ZS status of its underlying - // dependencies. + // SatisfiesPzs: Output only. Reserved for future use. SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // SupportedDeploymentResourcesTypes: Output only. When this Model is deployed, // its prediction resources are described by the `prediction_resources` field @@ -20540,7 +20535,8 @@ type GoogleCloudAiplatformV1RemoveDatapointsResponse struct { // resources of the same type, for example machine type, disk, and // accelerators, in a PersistentResource. type GoogleCloudAiplatformV1ResourcePool struct { - // AutoscalingSpec: Optional. Optional spec to configure GKE autoscaling + // AutoscalingSpec: Optional. Optional spec to configure GKE or Ray-on-Vertex + // autoscaling AutoscalingSpec *GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec `json:"autoscalingSpec,omitempty"` // DiskSpec: Optional. Disk spec for the machine in this node pool. DiskSpec *GoogleCloudAiplatformV1DiskSpec `json:"diskSpec,omitempty"` @@ -20581,7 +20577,13 @@ type GoogleCloudAiplatformV1ResourcePoolAutoscalingSpec struct { // replica_count and > min_replica_count or will throw error MaxReplicaCount int64 `json:"maxReplicaCount,omitempty,string"` // MinReplicaCount: Optional. min replicas in the node pool, must be ≤ - // replica_count and < max_replica_count or will throw error + // replica_count and < max_replica_count or will throw error. For autoscaling + // enabled Ray-on-Vertex, we allow min_replica_count of a resource_pool to be 0 + // to match the OSS Ray + // behavior(https://docs.ray.io/en/latest/cluster/vms/user-guides/configuring-au + // toscaling.html#cluster-config-parameters). As for Persistent Resource, the + // min_replica_count must be > 0, we added a corresponding validation inside + // CreatePersistentResourceRequestValidator.java. MinReplicaCount int64 `json:"minReplicaCount,omitempty,string"` // ForceSendFields is a list of field names (e.g. "MaxReplicaCount") to // unconditionally include in API requests. By default, fields with empty or @@ -29939,6 +29941,9 @@ type GoogleCloudAiplatformV1SupervisedTuningDataStats struct { // TotalBillableCharacterCount: Output only. Number of billable characters in // the tuning dataset. TotalBillableCharacterCount int64 `json:"totalBillableCharacterCount,omitempty,string"` + // TotalBillableTokenCount: Output only. Number of billable tokens in the + // tuning dataset. + TotalBillableTokenCount int64 `json:"totalBillableTokenCount,omitempty,string"` // TotalTuningCharacterCount: Output only. Number of tuning characters in the // tuning dataset. TotalTuningCharacterCount int64 `json:"totalTuningCharacterCount,omitempty,string"` @@ -30305,6 +30310,10 @@ type GoogleCloudAiplatformV1Tensorboard struct { Name string `json:"name,omitempty"` // RunCount: Output only. The number of Runs stored in this Tensorboard. RunCount int64 `json:"runCount,omitempty"` + // SatisfiesPzi: Output only. Reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. Reserved for future use. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // UpdateTime: Output only. Timestamp when this Tensorboard was last updated. UpdateTime string `json:"updateTime,omitempty"` @@ -46598,7 +46607,8 @@ func (r *ProjectsLocationsFeatureGroupsService) Patch(name string, googlecloudai // resource, not the full request. A field will be overwritten if it is in the // mask. If the user does not provide a mask then only the non-empty fields // present in the request will be overwritten. Set the update_mask to `*` to -// override all fields. Updatable fields: * `labels` +// override all fields. Updatable fields: * `labels` * `description` * +// `big_query` * `big_query.entity_id_columns` func (c *ProjectsLocationsFeatureGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureGroupsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -47243,7 +47253,8 @@ func (r *ProjectsLocationsFeatureGroupsFeaturesService) Patch(name string, googl // user does not provide a mask then only the non-empty fields present in the // request will be overwritten. Set the update_mask to `*` to override all // fields. Updatable fields: * `description` * `labels` * `disable_monitoring` -// (Not supported for FeatureRegistry Feature) +// (Not supported for FeatureRegistryService Feature) * `point_of_contact` (Not +// supported for FeaturestoreService FeatureStore) func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureGroupsFeaturesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -48806,8 +48817,9 @@ func (r *ProjectsLocationsFeatureOnlineStoresService) Patch(name string, googlec // resource, not the full request. A field will be overwritten if it is in the // mask. If the user does not provide a mask then only the non-empty fields // present in the request will be overwritten. Set the update_mask to `*` to -// override all fields. Updatable fields: * `big_query_source` * `bigtable` * -// `labels` * `sync_config` +// override all fields. Updatable fields: * `labels` * `description` * +// `bigtable` * `bigtable.auto_scaling` * +// `bigtable.enable_multi_region_replica` func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureOnlineStoresPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -49534,7 +49546,11 @@ func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Patch(name str // resource, not the full request. A field will be overwritten if it is in the // mask. If the user does not provide a mask then only the non-empty fields // present in the request will be overwritten. Set the update_mask to `*` to -// override all fields. Updatable fields: * `labels` * `serviceAgentType` +// override all fields. Updatable fields: * `labels` * `service_agent_type` * +// `big_query_source` * `big_query_source.uri` * +// `big_query_source.entity_id_columns` * `feature_registry_source` * +// `feature_registry_source.feature_groups` * `sync_config` * +// `sync_config.cron` func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -54606,7 +54622,8 @@ func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Patch(name st // user does not provide a mask then only the non-empty fields present in the // request will be overwritten. Set the update_mask to `*` to override all // fields. Updatable fields: * `description` * `labels` * `disable_monitoring` -// (Not supported for FeatureRegistry Feature) +// (Not supported for FeatureRegistryService Feature) * `point_of_contact` (Not +// supported for FeaturestoreService FeatureStore) func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c diff --git a/aiplatform/v1beta1/aiplatform-api.json b/aiplatform/v1beta1/aiplatform-api.json index 0a94f13cc7..83da3ab8a1 100644 --- a/aiplatform/v1beta1/aiplatform-api.json +++ b/aiplatform/v1beta1/aiplatform-api.json @@ -5601,7 +5601,7 @@ "type": "string" }, "updateMask": { - "description": "Field mask is used to specify the fields to be overwritten in the FeatureGroup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels`", + "description": "Field mask is used to specify the fields to be overwritten in the FeatureGroup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels` * `description` * `big_query` * `big_query.entity_id_columns`", "format": "google-fieldmask", "location": "query", "type": "string" @@ -5780,7 +5780,7 @@ "type": "string" }, "updateMask": { - "description": "Field mask is used to specify the fields to be overwritten in the Features resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported for FeatureRegistry Feature)", + "description": "Field mask is used to specify the fields to be overwritten in the Features resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported for FeatureRegistryService Feature) * `point_of_contact` (Not supported for FeaturestoreService FeatureStore)", "format": "google-fieldmask", "location": "query", "type": "string" @@ -6239,7 +6239,7 @@ "type": "string" }, "updateMask": { - "description": "Field mask is used to specify the fields to be overwritten in the FeatureOnlineStore resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `big_query_source` * `bigtable` * `labels` * `sync_config`", + "description": "Field mask is used to specify the fields to be overwritten in the FeatureOnlineStore resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels` * `description` * `bigtable` * `bigtable.auto_scaling` * `bigtable.enable_multi_region_replica`", "format": "google-fieldmask", "location": "query", "type": "string" @@ -6529,7 +6529,7 @@ "type": "string" }, "updateMask": { - "description": "Field mask is used to specify the fields to be overwritten in the FeatureView resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels` * `serviceAgentType`", + "description": "Field mask is used to specify the fields to be overwritten in the FeatureView resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `labels` * `service_agent_type` * `big_query_source` * `big_query_source.uri` * `big_query_source.entity_id_columns` * `feature_registry_source` * `feature_registry_source.feature_groups` * `sync_config` * `sync_config.cron`", "format": "google-fieldmask", "location": "query", "type": "string" @@ -7977,7 +7977,7 @@ "type": "string" }, "updateMask": { - "description": "Field mask is used to specify the fields to be overwritten in the Features resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported for FeatureRegistry Feature)", + "description": "Field mask is used to specify the fields to be overwritten in the Features resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to `*` to override all fields. Updatable fields: * `description` * `labels` * `disable_monitoring` (Not supported for FeatureRegistryService Feature) * `point_of_contact` (Not supported for FeaturestoreService FeatureStore)", "format": "google-fieldmask", "location": "query", "type": "string" @@ -20447,11 +20447,11 @@ } } }, - "revision": "20240628", + "revision": "20240703", "rootUrl": "https://aiplatform.googleapis.com/", "schemas": { "CloudAiLargeModelsVisionGenerateVideoResponse": { - "description": "Generate video response.", + "description": "Next ID: 8 Generate video response.", "id": "CloudAiLargeModelsVisionGenerateVideoResponse", "properties": { "generatedSamples": { @@ -30070,6 +30070,22 @@ "TPU_V4_POD", "TPU_V5_LITEPOD" ], + "enumDeprecated": [ + false, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false + ], "enumDescriptions": [ "Unspecified accelerator type, which means no accelerator.", "Nvidia Tesla K80 GPU.", @@ -30614,12 +30630,12 @@ "description": "The schemata that describe formats of the Model's predictions and explanations as given and returned via PredictionService.Predict and PredictionService.Explain." }, "satisfiesPzi": { - "description": "Output only. A read only boolean field reflecting Zone Isolation status of the model. It's false by default. Since Model is a type ZICY 4.2 resource, the field is an aggregated value of ZI status of its underlying dependencies.", + "description": "Output only. Reserved for future use.", "readOnly": true, "type": "boolean" }, "satisfiesPzs": { - "description": "Output only. A read only boolean field reflecting ZS status of the model. It's false by default. Since Model is a type ZICY 4.2 resource, the field is an aggregated value of ZS status of its underlying dependencies.", + "description": "Output only. Reserved for future use.", "readOnly": true, "type": "boolean" }, @@ -36268,7 +36284,7 @@ "properties": { "autoscalingSpec": { "$ref": "GoogleCloudAiplatformV1beta1ResourcePoolAutoscalingSpec", - "description": "Optional. Optional spec to configure GKE autoscaling" + "description": "Optional. Optional spec to configure GKE or Ray-on-Vertex autoscaling" }, "diskSpec": { "$ref": "GoogleCloudAiplatformV1beta1DiskSpec", @@ -36306,7 +36322,7 @@ "type": "string" }, "minReplicaCount": { - "description": "Optional. min replicas in the node pool, must be ≤ replica_count and \u003c max_replica_count or will throw error", + "description": "Optional. min replicas in the node pool, must be ≤ replica_count and \u003c max_replica_count or will throw error. For autoscaling enabled Ray-on-Vertex, we allow min_replica_count of a resource_pool to be 0 to match the OSS Ray behavior(https://docs.ray.io/en/latest/cluster/vms/user-guides/configuring-autoscaling.html#cluster-config-parameters). As for Persistent Resource, the min_replica_count must be \u003e 0, we added a corresponding validation inside CreatePersistentResourceRequestValidator.java.", "format": "int64", "type": "string" } @@ -42425,11 +42441,18 @@ "id": "GoogleCloudAiplatformV1beta1SupervisedTuningDataStats", "properties": { "totalBillableCharacterCount": { + "deprecated": true, "description": "Output only. Number of billable characters in the tuning dataset.", "format": "int64", "readOnly": true, "type": "string" }, + "totalBillableTokenCount": { + "description": "Output only. Number of billable tokens in the tuning dataset.", + "format": "int64", + "readOnly": true, + "type": "string" + }, "totalTuningCharacterCount": { "description": "Output only. Number of tuning characters in the tuning dataset.", "format": "int64", @@ -42800,6 +42823,16 @@ "readOnly": true, "type": "integer" }, + "satisfiesPzi": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, + "satisfiesPzs": { + "description": "Output only. Reserved for future use.", + "readOnly": true, + "type": "boolean" + }, "updateTime": { "description": "Output only. Timestamp when this Tensorboard was last updated.", "format": "google-datetime", diff --git a/aiplatform/v1beta1/aiplatform-gen.go b/aiplatform/v1beta1/aiplatform-gen.go index 027c736a02..67ab8d8a1e 100644 --- a/aiplatform/v1beta1/aiplatform-gen.go +++ b/aiplatform/v1beta1/aiplatform-gen.go @@ -1661,7 +1661,8 @@ type PublishersModelsService struct { s *Service } -// CloudAiLargeModelsVisionGenerateVideoResponse: Generate video response. +// CloudAiLargeModelsVisionGenerateVideoResponse: Next ID: 8 Generate video +// response. type CloudAiLargeModelsVisionGenerateVideoResponse struct { // GeneratedSamples: The generates samples. GeneratedSamples []*CloudAiLargeModelsVisionMedia `json:"generatedSamples,omitempty"` @@ -16531,15 +16532,9 @@ type GoogleCloudAiplatformV1beta1Model struct { // predictions and explanations as given and returned via // PredictionService.Predict and PredictionService.Explain. PredictSchemata *GoogleCloudAiplatformV1beta1PredictSchemata `json:"predictSchemata,omitempty"` - // SatisfiesPzi: Output only. A read only boolean field reflecting Zone - // Isolation status of the model. It's false by default. Since Model is a type - // ZICY 4.2 resource, the field is an aggregated value of ZI status of its - // underlying dependencies. + // SatisfiesPzi: Output only. Reserved for future use. SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` - // SatisfiesPzs: Output only. A read only boolean field reflecting ZS status of - // the model. It's false by default. Since Model is a type ZICY 4.2 resource, - // the field is an aggregated value of ZS status of its underlying - // dependencies. + // SatisfiesPzs: Output only. Reserved for future use. SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // SupportedDeploymentResourcesTypes: Output only. When this Model is deployed, // its prediction resources are described by the `prediction_resources` field @@ -24250,7 +24245,8 @@ func (s GoogleCloudAiplatformV1beta1ReportRuntimeEventResponse) MarshalJSON() ([ // resources of the same type, for example machine type, disk, and // accelerators, in a PersistentResource. type GoogleCloudAiplatformV1beta1ResourcePool struct { - // AutoscalingSpec: Optional. Optional spec to configure GKE autoscaling + // AutoscalingSpec: Optional. Optional spec to configure GKE or Ray-on-Vertex + // autoscaling AutoscalingSpec *GoogleCloudAiplatformV1beta1ResourcePoolAutoscalingSpec `json:"autoscalingSpec,omitempty"` // DiskSpec: Optional. Disk spec for the machine in this node pool. DiskSpec *GoogleCloudAiplatformV1beta1DiskSpec `json:"diskSpec,omitempty"` @@ -24291,7 +24287,13 @@ type GoogleCloudAiplatformV1beta1ResourcePoolAutoscalingSpec struct { // replica_count and > min_replica_count or will throw error MaxReplicaCount int64 `json:"maxReplicaCount,omitempty,string"` // MinReplicaCount: Optional. min replicas in the node pool, must be ≤ - // replica_count and < max_replica_count or will throw error + // replica_count and < max_replica_count or will throw error. For autoscaling + // enabled Ray-on-Vertex, we allow min_replica_count of a resource_pool to be 0 + // to match the OSS Ray + // behavior(https://docs.ray.io/en/latest/cluster/vms/user-guides/configuring-au + // toscaling.html#cluster-config-parameters). As for Persistent Resource, the + // min_replica_count must be > 0, we added a corresponding validation inside + // CreatePersistentResourceRequestValidator.java. MinReplicaCount int64 `json:"minReplicaCount,omitempty,string"` // ForceSendFields is a list of field names (e.g. "MaxReplicaCount") to // unconditionally include in API requests. By default, fields with empty or @@ -34087,6 +34089,9 @@ type GoogleCloudAiplatformV1beta1SupervisedTuningDataStats struct { // TotalBillableCharacterCount: Output only. Number of billable characters in // the tuning dataset. TotalBillableCharacterCount int64 `json:"totalBillableCharacterCount,omitempty,string"` + // TotalBillableTokenCount: Output only. Number of billable tokens in the + // tuning dataset. + TotalBillableTokenCount int64 `json:"totalBillableTokenCount,omitempty,string"` // TotalTuningCharacterCount: Output only. Number of tuning characters in the // tuning dataset. TotalTuningCharacterCount int64 `json:"totalTuningCharacterCount,omitempty,string"` @@ -34455,6 +34460,10 @@ type GoogleCloudAiplatformV1beta1Tensorboard struct { Name string `json:"name,omitempty"` // RunCount: Output only. The number of Runs stored in this Tensorboard. RunCount int64 `json:"runCount,omitempty"` + // SatisfiesPzi: Output only. Reserved for future use. + SatisfiesPzi bool `json:"satisfiesPzi,omitempty"` + // SatisfiesPzs: Output only. Reserved for future use. + SatisfiesPzs bool `json:"satisfiesPzs,omitempty"` // UpdateTime: Output only. Timestamp when this Tensorboard was last updated. UpdateTime string `json:"updateTime,omitempty"` @@ -57288,7 +57297,8 @@ func (r *ProjectsLocationsFeatureGroupsService) Patch(name string, googlecloudai // resource, not the full request. A field will be overwritten if it is in the // mask. If the user does not provide a mask then only the non-empty fields // present in the request will be overwritten. Set the update_mask to `*` to -// override all fields. Updatable fields: * `labels` +// override all fields. Updatable fields: * `labels` * `description` * +// `big_query` * `big_query.entity_id_columns` func (c *ProjectsLocationsFeatureGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureGroupsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -57933,7 +57943,8 @@ func (r *ProjectsLocationsFeatureGroupsFeaturesService) Patch(name string, googl // user does not provide a mask then only the non-empty fields present in the // request will be overwritten. Set the update_mask to `*` to override all // fields. Updatable fields: * `description` * `labels` * `disable_monitoring` -// (Not supported for FeatureRegistry Feature) +// (Not supported for FeatureRegistryService Feature) * `point_of_contact` (Not +// supported for FeaturestoreService FeatureStore) func (c *ProjectsLocationsFeatureGroupsFeaturesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureGroupsFeaturesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -59610,8 +59621,9 @@ func (r *ProjectsLocationsFeatureOnlineStoresService) Patch(name string, googlec // resource, not the full request. A field will be overwritten if it is in the // mask. If the user does not provide a mask then only the non-empty fields // present in the request will be overwritten. Set the update_mask to `*` to -// override all fields. Updatable fields: * `big_query_source` * `bigtable` * -// `labels` * `sync_config` +// override all fields. Updatable fields: * `labels` * `description` * +// `bigtable` * `bigtable.auto_scaling` * +// `bigtable.enable_multi_region_replica` func (c *ProjectsLocationsFeatureOnlineStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureOnlineStoresPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -60674,7 +60686,11 @@ func (r *ProjectsLocationsFeatureOnlineStoresFeatureViewsService) Patch(name str // resource, not the full request. A field will be overwritten if it is in the // mask. If the user does not provide a mask then only the non-empty fields // present in the request will be overwritten. Set the update_mask to `*` to -// override all fields. Updatable fields: * `labels` * `serviceAgentType` +// override all fields. Updatable fields: * `labels` * `service_agent_type` * +// `big_query_source` * `big_query_source.uri` * +// `big_query_source.entity_id_columns` * `feature_registry_source` * +// `feature_registry_source.feature_groups` * `sync_config` * +// `sync_config.cron` func (c *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeatureOnlineStoresFeatureViewsPatchCall { c.urlParams_.Set("updateMask", updateMask) return c @@ -66058,7 +66074,8 @@ func (r *ProjectsLocationsFeaturestoresEntityTypesFeaturesService) Patch(name st // user does not provide a mask then only the non-empty fields present in the // request will be overwritten. Set the update_mask to `*` to override all // fields. Updatable fields: * `description` * `labels` * `disable_monitoring` -// (Not supported for FeatureRegistry Feature) +// (Not supported for FeatureRegistryService Feature) * `point_of_contact` (Not +// supported for FeaturestoreService FeatureStore) func (c *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsFeaturestoresEntityTypesFeaturesPatchCall { c.urlParams_.Set("updateMask", updateMask) return c diff --git a/alloydb/v1/alloydb-gen.go b/alloydb/v1/alloydb-gen.go index e813a49965..3be98a7da1 100644 --- a/alloydb/v1/alloydb-gen.go +++ b/alloydb/v1/alloydb-gen.go @@ -3556,9 +3556,9 @@ type TrialMetadata struct { NullFields []string `json:"-"` } -func (s *TrialMetadata) MarshalJSON() ([]byte, error) { +func (s TrialMetadata) MarshalJSON() ([]byte, error) { type NoMethod TrialMetadata - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // User: Message describing User object. diff --git a/analyticsadmin/v1alpha/analyticsadmin-api.json b/analyticsadmin/v1alpha/analyticsadmin-api.json index e432d863c0..e6e55f7079 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-api.json +++ b/analyticsadmin/v1alpha/analyticsadmin-api.json @@ -1710,6 +1710,59 @@ }, "bigQueryLinks": { "methods": { + "create": { + "description": "Creates a BigQueryLink.", + "flatPath": "v1alpha/properties/{propertiesId}/bigQueryLinks", + "httpMethod": "POST", + "id": "analyticsadmin.properties.bigQueryLinks.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. Example format: properties/1234", + "location": "path", + "pattern": "^properties/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+parent}/bigQueryLinks", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaBigQueryLink" + }, + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaBigQueryLink" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit" + ] + }, + "delete": { + "description": "Deletes a BigQueryLink on a property.", + "flatPath": "v1alpha/properties/{propertiesId}/bigQueryLinks/{bigQueryLinksId}", + "httpMethod": "DELETE", + "id": "analyticsadmin.properties.bigQueryLinks.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The BigQueryLink to delete. Example format: properties/1234/bigQueryLinks/5678", + "location": "path", + "pattern": "^properties/[^/]+/bigQueryLinks/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit" + ] + }, "get": { "description": "Lookup for a single BigQuery Link.", "flatPath": "v1alpha/properties/{propertiesId}/bigQueryLinks/{bigQueryLinksId}", @@ -1772,6 +1825,40 @@ "https://www.googleapis.com/auth/analytics.edit", "https://www.googleapis.com/auth/analytics.readonly" ] + }, + "patch": { + "description": "Updates a BigQueryLink.", + "flatPath": "v1alpha/properties/{propertiesId}/bigQueryLinks/{bigQueryLinksId}", + "httpMethod": "PATCH", + "id": "analyticsadmin.properties.bigQueryLinks.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Output only. Resource name of this BigQuery link. Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}' Format: 'properties/1234/bigQueryLinks/abc567'", + "location": "path", + "pattern": "^properties/[^/]+/bigQueryLinks/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. The list of fields to be updated. Field names must be in snake case (e.g., \"field_to_update\"). Omitted fields will not be updated. To replace the entire entity, use one path with the string \"*\" to match all fields.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1alpha/{+name}", + "request": { + "$ref": "GoogleAnalyticsAdminV1alphaBigQueryLink" + }, + "response": { + "$ref": "GoogleAnalyticsAdminV1alphaBigQueryLink" + }, + "scopes": [ + "https://www.googleapis.com/auth/analytics.edit" + ] } } }, @@ -4646,7 +4733,7 @@ } } }, - "revision": "20240529", + "revision": "20240707", "rootUrl": "https://analyticsadmin.googleapis.com/", "schemas": { "GoogleAnalyticsAdminV1alphaAccessBetweenFilter": { @@ -5765,6 +5852,10 @@ "description": "If set true, enables daily data export to the linked Google Cloud project.", "type": "boolean" }, + "datasetLocation": { + "description": "Required. Immutable. The geographic location where the created BigQuery dataset should reside. See https://cloud.google.com/bigquery/docs/locations for supported locations.", + "type": "string" + }, "excludedEvents": { "description": "The list of event names that will be excluded from exports.", "items": { @@ -8511,6 +8602,7 @@ "ATTRIBUTION_SETTINGS", "EXPANDED_DATA_SET", "CHANNEL_GROUP", + "BIGQUERY_LINK", "ENHANCED_MEASUREMENT_SETTINGS", "DATA_REDACTION_SETTINGS", "SKADNETWORK_CONVERSION_VALUE_SCHEMA", @@ -8538,6 +8630,7 @@ "AttributionSettings resource", "ExpandedDataSet resource", "ChannelGroup resource", + "BigQuery link resource", "EnhancedMeasurementSettings resource", "DataRedactionSettings resource", "SKAdNetworkConversionValueSchema resource", diff --git a/analyticsadmin/v1alpha/analyticsadmin-gen.go b/analyticsadmin/v1alpha/analyticsadmin-gen.go index 777b23564e..878eba4b09 100644 --- a/analyticsadmin/v1alpha/analyticsadmin-gen.go +++ b/analyticsadmin/v1alpha/analyticsadmin-gen.go @@ -2093,6 +2093,10 @@ type GoogleAnalyticsAdminV1alphaBigQueryLink struct { // DailyExportEnabled: If set true, enables daily data export to the linked // Google Cloud project. DailyExportEnabled bool `json:"dailyExportEnabled,omitempty"` + // DatasetLocation: Required. Immutable. The geographic location where the + // created BigQuery dataset should reside. See + // https://cloud.google.com/bigquery/docs/locations for supported locations. + DatasetLocation string `json:"datasetLocation,omitempty"` // ExcludedEvents: The list of event names that will be excluded from exports. ExcludedEvents []string `json:"excludedEvents,omitempty"` // ExportStreams: The list of streams under the parent property for which data @@ -5802,6 +5806,7 @@ type GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest struct { // "ATTRIBUTION_SETTINGS" - AttributionSettings resource // "EXPANDED_DATA_SET" - ExpandedDataSet resource // "CHANNEL_GROUP" - ChannelGroup resource + // "BIGQUERY_LINK" - BigQuery link resource // "ENHANCED_MEASUREMENT_SETTINGS" - EnhancedMeasurementSettings resource // "DATA_REDACTION_SETTINGS" - DataRedactionSettings resource // "SKADNETWORK_CONVERSION_VALUE_SCHEMA" - SKAdNetworkConversionValueSchema @@ -12479,6 +12484,205 @@ func (c *PropertiesAudiencesPatchCall) Do(opts ...googleapi.CallOption) (*Google return ret, nil } +type PropertiesBigQueryLinksCreateCall struct { + s *Service + parent string + googleanalyticsadminv1alphabigquerylink *GoogleAnalyticsAdminV1alphaBigQueryLink + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a BigQueryLink. +// +// - parent: Example format: properties/1234. +func (r *PropertiesBigQueryLinksService) Create(parent string, googleanalyticsadminv1alphabigquerylink *GoogleAnalyticsAdminV1alphaBigQueryLink) *PropertiesBigQueryLinksCreateCall { + c := &PropertiesBigQueryLinksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googleanalyticsadminv1alphabigquerylink = googleanalyticsadminv1alphabigquerylink + 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 *PropertiesBigQueryLinksCreateCall) Fields(s ...googleapi.Field) *PropertiesBigQueryLinksCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *PropertiesBigQueryLinksCreateCall) Context(ctx context.Context) *PropertiesBigQueryLinksCreateCall { + 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 *PropertiesBigQueryLinksCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesBigQueryLinksCreateCall) 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.googleanalyticsadminv1alphabigquerylink) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/bigQueryLinks") + 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 "analyticsadmin.properties.bigQueryLinks.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleAnalyticsAdminV1alphaBigQueryLink.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 *PropertiesBigQueryLinksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaBigQueryLink, 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 := &GoogleAnalyticsAdminV1alphaBigQueryLink{ + 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 PropertiesBigQueryLinksDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a BigQueryLink on a property. +// +// - name: The BigQueryLink to delete. Example format: +// properties/1234/bigQueryLinks/5678. +func (r *PropertiesBigQueryLinksService) Delete(name string) *PropertiesBigQueryLinksDeleteCall { + c := &PropertiesBigQueryLinksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *PropertiesBigQueryLinksDeleteCall) Fields(s ...googleapi.Field) *PropertiesBigQueryLinksDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *PropertiesBigQueryLinksDeleteCall) Context(ctx context.Context) *PropertiesBigQueryLinksDeleteCall { + 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 *PropertiesBigQueryLinksDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesBigQueryLinksDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", 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 "analyticsadmin.properties.bigQueryLinks.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *PropertiesBigQueryLinksDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + 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 PropertiesBigQueryLinksGetCall struct { s *Service name string @@ -12738,6 +12942,119 @@ func (c *PropertiesBigQueryLinksListCall) Pages(ctx context.Context, f func(*Goo } } +type PropertiesBigQueryLinksPatchCall struct { + s *Service + name string + googleanalyticsadminv1alphabigquerylink *GoogleAnalyticsAdminV1alphaBigQueryLink + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates a BigQueryLink. +// +// - name: Output only. Resource name of this BigQuery link. Format: +// 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}' Format: +// 'properties/1234/bigQueryLinks/abc567'. +func (r *PropertiesBigQueryLinksService) Patch(name string, googleanalyticsadminv1alphabigquerylink *GoogleAnalyticsAdminV1alphaBigQueryLink) *PropertiesBigQueryLinksPatchCall { + c := &PropertiesBigQueryLinksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googleanalyticsadminv1alphabigquerylink = googleanalyticsadminv1alphabigquerylink + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. The list of +// fields to be updated. Field names must be in snake case (e.g., +// "field_to_update"). Omitted fields will not be updated. To replace the +// entire entity, use one path with the string "*" to match all fields. +func (c *PropertiesBigQueryLinksPatchCall) UpdateMask(updateMask string) *PropertiesBigQueryLinksPatchCall { + 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 *PropertiesBigQueryLinksPatchCall) Fields(s ...googleapi.Field) *PropertiesBigQueryLinksPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *PropertiesBigQueryLinksPatchCall) Context(ctx context.Context) *PropertiesBigQueryLinksPatchCall { + 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 *PropertiesBigQueryLinksPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *PropertiesBigQueryLinksPatchCall) 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.googleanalyticsadminv1alphabigquerylink) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+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 "analyticsadmin.properties.bigQueryLinks.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleAnalyticsAdminV1alphaBigQueryLink.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 *PropertiesBigQueryLinksPatchCall) Do(opts ...googleapi.CallOption) (*GoogleAnalyticsAdminV1alphaBigQueryLink, 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 := &GoogleAnalyticsAdminV1alphaBigQueryLink{ + 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 PropertiesCalculatedMetricsCreateCall struct { s *Service parent string diff --git a/backupdr/v1/backupdr-gen.go b/backupdr/v1/backupdr-gen.go index 64ab823624..349129627d 100644 --- a/backupdr/v1/backupdr-gen.go +++ b/backupdr/v1/backupdr-gen.go @@ -262,9 +262,9 @@ type AbandonBackupRequest struct { NullFields []string `json:"-"` } -func (s *AbandonBackupRequest) MarshalJSON() ([]byte, error) { +func (s AbandonBackupRequest) MarshalJSON() ([]byte, error) { type NoMethod AbandonBackupRequest - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AcceleratorConfig: A specification of the type and number of accelerator @@ -289,9 +289,9 @@ type AcceleratorConfig struct { NullFields []string `json:"-"` } -func (s *AcceleratorConfig) MarshalJSON() ([]byte, error) { +func (s AcceleratorConfig) MarshalJSON() ([]byte, error) { type NoMethod AcceleratorConfig - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AccessConfig: An access configuration attached to an instance's network @@ -346,9 +346,9 @@ type AccessConfig struct { NullFields []string `json:"-"` } -func (s *AccessConfig) MarshalJSON() ([]byte, error) { +func (s AccessConfig) MarshalJSON() ([]byte, error) { type NoMethod AccessConfig - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AliasIpRange: An alias IP range attached to an instance's network interface. @@ -372,9 +372,9 @@ type AliasIpRange struct { NullFields []string `json:"-"` } -func (s *AliasIpRange) MarshalJSON() ([]byte, error) { +func (s AliasIpRange) MarshalJSON() ([]byte, error) { type NoMethod AliasIpRange - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AttachedDisk: An instance-attached disk resource. @@ -460,9 +460,9 @@ type AttachedDisk struct { NullFields []string `json:"-"` } -func (s *AttachedDisk) MarshalJSON() ([]byte, error) { +func (s AttachedDisk) MarshalJSON() ([]byte, error) { type NoMethod AttachedDisk - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AuditConfig: Specifies the audit configuration for a service. The @@ -610,9 +610,9 @@ type Backup struct { NullFields []string `json:"-"` } -func (s *Backup) MarshalJSON() ([]byte, error) { +func (s Backup) MarshalJSON() ([]byte, error) { type NoMethod Backup - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BackupApplianceBackupConfig: BackupApplianceBackupConfig captures the backup @@ -645,9 +645,9 @@ type BackupApplianceBackupConfig struct { NullFields []string `json:"-"` } -func (s *BackupApplianceBackupConfig) MarshalJSON() ([]byte, error) { +func (s BackupApplianceBackupConfig) MarshalJSON() ([]byte, error) { type NoMethod BackupApplianceBackupConfig - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BackupApplianceBackupProperties: BackupApplianceBackupProperties represents @@ -678,9 +678,9 @@ type BackupApplianceBackupProperties struct { NullFields []string `json:"-"` } -func (s *BackupApplianceBackupProperties) MarshalJSON() ([]byte, error) { +func (s BackupApplianceBackupProperties) MarshalJSON() ([]byte, error) { type NoMethod BackupApplianceBackupProperties - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BackupApplianceLockInfo: BackupApplianceLockInfo contains metadata about the @@ -716,9 +716,9 @@ type BackupApplianceLockInfo struct { NullFields []string `json:"-"` } -func (s *BackupApplianceLockInfo) MarshalJSON() ([]byte, error) { +func (s BackupApplianceLockInfo) MarshalJSON() ([]byte, error) { type NoMethod BackupApplianceLockInfo - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BackupConfigInfo: BackupConfigInfo has information about how the resource is @@ -759,9 +759,9 @@ type BackupConfigInfo struct { NullFields []string `json:"-"` } -func (s *BackupConfigInfo) MarshalJSON() ([]byte, error) { +func (s BackupConfigInfo) MarshalJSON() ([]byte, error) { type NoMethod BackupConfigInfo - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BackupLock: BackupLock represents a single lock on a Backup resource. An @@ -789,9 +789,9 @@ type BackupLock struct { NullFields []string `json:"-"` } -func (s *BackupLock) MarshalJSON() ([]byte, error) { +func (s BackupLock) MarshalJSON() ([]byte, error) { type NoMethod BackupLock - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // BackupVault: Message describing a BackupVault object. @@ -866,9 +866,9 @@ type BackupVault struct { NullFields []string `json:"-"` } -func (s *BackupVault) MarshalJSON() ([]byte, error) { +func (s BackupVault) MarshalJSON() ([]byte, error) { type NoMethod BackupVault - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Binding: Associates `members`, or principals, with a `role`. @@ -1050,9 +1050,9 @@ type ComputeInstanceBackupProperties struct { NullFields []string `json:"-"` } -func (s *ComputeInstanceBackupProperties) MarshalJSON() ([]byte, error) { +func (s ComputeInstanceBackupProperties) MarshalJSON() ([]byte, error) { type NoMethod ComputeInstanceBackupProperties - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ComputeInstanceDataSourceProperties: ComputeInstanceDataSourceProperties @@ -1082,9 +1082,9 @@ type ComputeInstanceDataSourceProperties struct { NullFields []string `json:"-"` } -func (s *ComputeInstanceDataSourceProperties) MarshalJSON() ([]byte, error) { +func (s ComputeInstanceDataSourceProperties) MarshalJSON() ([]byte, error) { type NoMethod ComputeInstanceDataSourceProperties - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CustomerEncryptionKey: A customer-supplied encryption key. @@ -1114,9 +1114,9 @@ type CustomerEncryptionKey struct { NullFields []string `json:"-"` } -func (s *CustomerEncryptionKey) MarshalJSON() ([]byte, error) { +func (s CustomerEncryptionKey) MarshalJSON() ([]byte, error) { type NoMethod CustomerEncryptionKey - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DataSource: Message describing a DataSource object. Datasource object used @@ -1185,9 +1185,9 @@ type DataSource struct { NullFields []string `json:"-"` } -func (s *DataSource) MarshalJSON() ([]byte, error) { +func (s DataSource) MarshalJSON() ([]byte, error) { type NoMethod DataSource - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DataSourceBackupApplianceApplication: BackupApplianceApplication describes a @@ -1222,9 +1222,9 @@ type DataSourceBackupApplianceApplication struct { NullFields []string `json:"-"` } -func (s *DataSourceBackupApplianceApplication) MarshalJSON() ([]byte, error) { +func (s DataSourceBackupApplianceApplication) MarshalJSON() ([]byte, error) { type NoMethod DataSourceBackupApplianceApplication - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DataSourceGcpResource: DataSourceGcpResource is used for protected resources @@ -1258,9 +1258,9 @@ type DataSourceGcpResource struct { NullFields []string `json:"-"` } -func (s *DataSourceGcpResource) MarshalJSON() ([]byte, error) { +func (s DataSourceGcpResource) MarshalJSON() ([]byte, error) { type NoMethod DataSourceGcpResource - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Empty: A generic empty message that you can re-use to avoid defining @@ -1294,9 +1294,9 @@ type Entry struct { NullFields []string `json:"-"` } -func (s *Entry) MarshalJSON() ([]byte, error) { +func (s Entry) MarshalJSON() ([]byte, error) { type NoMethod Entry - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Expr: Represents a textual expression in the Common Expression Language @@ -1364,9 +1364,9 @@ type FetchAccessTokenRequest struct { NullFields []string `json:"-"` } -func (s *FetchAccessTokenRequest) MarshalJSON() ([]byte, error) { +func (s FetchAccessTokenRequest) MarshalJSON() ([]byte, error) { type NoMethod FetchAccessTokenRequest - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FetchAccessTokenResponse: Response message for FetchAccessToken. @@ -1395,9 +1395,9 @@ type FetchAccessTokenResponse struct { NullFields []string `json:"-"` } -func (s *FetchAccessTokenResponse) MarshalJSON() ([]byte, error) { +func (s FetchAccessTokenResponse) MarshalJSON() ([]byte, error) { type NoMethod FetchAccessTokenResponse - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FetchUsableBackupVaultsResponse: Response message for fetching usable @@ -1431,9 +1431,9 @@ type FetchUsableBackupVaultsResponse struct { NullFields []string `json:"-"` } -func (s *FetchUsableBackupVaultsResponse) MarshalJSON() ([]byte, error) { +func (s FetchUsableBackupVaultsResponse) MarshalJSON() ([]byte, error) { type NoMethod FetchUsableBackupVaultsResponse - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FinalizeBackupRequest: Message for finalizing a Backup. @@ -1484,9 +1484,9 @@ type FinalizeBackupRequest struct { NullFields []string `json:"-"` } -func (s *FinalizeBackupRequest) MarshalJSON() ([]byte, error) { +func (s FinalizeBackupRequest) MarshalJSON() ([]byte, error) { type NoMethod FinalizeBackupRequest - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GCPBackupPlanInfo: GCPBackupPlanInfo captures the plan configuration details @@ -1512,9 +1512,9 @@ type GCPBackupPlanInfo struct { NullFields []string `json:"-"` } -func (s *GCPBackupPlanInfo) MarshalJSON() ([]byte, error) { +func (s GCPBackupPlanInfo) MarshalJSON() ([]byte, error) { type NoMethod GCPBackupPlanInfo - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GcpBackupConfig: GcpBackupConfig captures the Backup configuration details @@ -1543,9 +1543,9 @@ type GcpBackupConfig struct { NullFields []string `json:"-"` } -func (s *GcpBackupConfig) MarshalJSON() ([]byte, error) { +func (s GcpBackupConfig) MarshalJSON() ([]byte, error) { type NoMethod GcpBackupConfig - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GuestOsFeature: Feature type of the Guest OS. @@ -1582,9 +1582,9 @@ type GuestOsFeature struct { NullFields []string `json:"-"` } -func (s *GuestOsFeature) MarshalJSON() ([]byte, error) { +func (s GuestOsFeature) MarshalJSON() ([]byte, error) { type NoMethod GuestOsFeature - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InitializeParams: Specifies the parameters to initialize this disk. @@ -1608,9 +1608,9 @@ type InitializeParams struct { NullFields []string `json:"-"` } -func (s *InitializeParams) MarshalJSON() ([]byte, error) { +func (s InitializeParams) MarshalJSON() ([]byte, error) { type NoMethod InitializeParams - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InitiateBackupRequest: request message for InitiateBackup. @@ -1642,9 +1642,9 @@ type InitiateBackupRequest struct { NullFields []string `json:"-"` } -func (s *InitiateBackupRequest) MarshalJSON() ([]byte, error) { +func (s InitiateBackupRequest) MarshalJSON() ([]byte, error) { type NoMethod InitiateBackupRequest - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InitiateBackupResponse: Response message for InitiateBackup. @@ -1672,9 +1672,9 @@ type InitiateBackupResponse struct { NullFields []string `json:"-"` } -func (s *InitiateBackupResponse) MarshalJSON() ([]byte, error) { +func (s InitiateBackupResponse) MarshalJSON() ([]byte, error) { type NoMethod InitiateBackupResponse - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListBackupVaultsResponse: Response message for listing BackupVaults. @@ -1707,9 +1707,9 @@ type ListBackupVaultsResponse struct { NullFields []string `json:"-"` } -func (s *ListBackupVaultsResponse) MarshalJSON() ([]byte, error) { +func (s ListBackupVaultsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListBackupVaultsResponse - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListBackupsResponse: Response message for listing Backups. @@ -1742,9 +1742,9 @@ type ListBackupsResponse struct { NullFields []string `json:"-"` } -func (s *ListBackupsResponse) MarshalJSON() ([]byte, error) { +func (s ListBackupsResponse) MarshalJSON() ([]byte, error) { type NoMethod ListBackupsResponse - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListDataSourcesResponse: Response message for listing DataSources. @@ -1777,9 +1777,9 @@ type ListDataSourcesResponse struct { NullFields []string `json:"-"` } -func (s *ListDataSourcesResponse) MarshalJSON() ([]byte, error) { +func (s ListDataSourcesResponse) MarshalJSON() ([]byte, error) { type NoMethod ListDataSourcesResponse - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListLocationsResponse: The response message for Locations.ListLocations. @@ -2042,9 +2042,9 @@ type Metadata struct { NullFields []string `json:"-"` } -func (s *Metadata) MarshalJSON() ([]byte, error) { +func (s Metadata) MarshalJSON() ([]byte, error) { type NoMethod Metadata - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // NetworkConfig: Network configuration for ManagementServer instance. @@ -2162,9 +2162,9 @@ type NetworkInterface struct { NullFields []string `json:"-"` } -func (s *NetworkInterface) MarshalJSON() ([]byte, error) { +func (s NetworkInterface) MarshalJSON() ([]byte, error) { type NoMethod NetworkInterface - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // NodeAffinity: Node Affinity: the configuration of desired nodes onto which @@ -2194,9 +2194,9 @@ type NodeAffinity struct { NullFields []string `json:"-"` } -func (s *NodeAffinity) MarshalJSON() ([]byte, error) { +func (s NodeAffinity) MarshalJSON() ([]byte, error) { type NoMethod NodeAffinity - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Operation: This resource represents a long-running operation that is the @@ -2406,9 +2406,9 @@ type RemoveDataSourceRequest struct { NullFields []string `json:"-"` } -func (s *RemoveDataSourceRequest) MarshalJSON() ([]byte, error) { +func (s RemoveDataSourceRequest) MarshalJSON() ([]byte, error) { type NoMethod RemoveDataSourceRequest - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Scheduling: Sets the scheduling options for an Instance. @@ -2471,9 +2471,9 @@ type Scheduling struct { NullFields []string `json:"-"` } -func (s *Scheduling) MarshalJSON() ([]byte, error) { +func (s Scheduling) MarshalJSON() ([]byte, error) { type NoMethod Scheduling - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SchedulingDuration: A SchedulingDuration represents a fixed-length span of @@ -2499,9 +2499,9 @@ type SchedulingDuration struct { NullFields []string `json:"-"` } -func (s *SchedulingDuration) MarshalJSON() ([]byte, error) { +func (s SchedulingDuration) MarshalJSON() ([]byte, error) { type NoMethod SchedulingDuration - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ServiceAccount: A service account. @@ -2524,9 +2524,9 @@ type ServiceAccount struct { NullFields []string `json:"-"` } -func (s *ServiceAccount) MarshalJSON() ([]byte, error) { +func (s ServiceAccount) MarshalJSON() ([]byte, error) { type NoMethod ServiceAccount - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ServiceLockInfo: ServiceLockInfo represents the details of a lock taken by @@ -2548,9 +2548,9 @@ type ServiceLockInfo struct { NullFields []string `json:"-"` } -func (s *ServiceLockInfo) MarshalJSON() ([]byte, error) { +func (s ServiceLockInfo) MarshalJSON() ([]byte, error) { type NoMethod ServiceLockInfo - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // SetIamPolicyRequest: Request message for `SetIamPolicy` method. @@ -2622,9 +2622,9 @@ type SetInternalStatusRequest struct { NullFields []string `json:"-"` } -func (s *SetInternalStatusRequest) MarshalJSON() ([]byte, error) { +func (s SetInternalStatusRequest) MarshalJSON() ([]byte, error) { type NoMethod SetInternalStatusRequest - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Status: The `Status` type defines a logical error model that is suitable for @@ -2679,9 +2679,9 @@ type Tags struct { NullFields []string `json:"-"` } -func (s *Tags) MarshalJSON() ([]byte, error) { +func (s Tags) MarshalJSON() ([]byte, error) { type NoMethod Tags - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TestIamPermissionsRequest: Request message for `TestIamPermissions` method. diff --git a/chromemanagement/v1/chromemanagement-api.json b/chromemanagement/v1/chromemanagement-api.json index 0e91e5592a..c8adfd0d0d 100644 --- a/chromemanagement/v1/chromemanagement-api.json +++ b/chromemanagement/v1/chromemanagement-api.json @@ -976,7 +976,7 @@ "type": "string" }, "readMask": { - "description": "Required. Read mask to specify which fields to return. Although currently required, this field will become optional, while the filter parameter with an event type will be come required. Supported read_mask paths are: - device - user - audio_severe_underrun_event - usb_peripherals_event - https_latency_change_event - network_state_change_event - wifi_signal_strength_event - vpn_connection_state_change_event - app_install_event - app_uninstall_event - app_launch_event ", + "description": "Required. Read mask to specify which fields to return. Although currently required, this field will become optional, while the filter parameter with an event type will be come required. Supported read_mask paths are: - device - user - audio_severe_underrun_event - usb_peripherals_event - https_latency_change_event - network_state_change_event - wifi_signal_strength_event - vpn_connection_state_change_event - app_install_event - app_uninstall_event - app_launch_event - os_crash_event ", "format": "google-fieldmask", "location": "query", "type": "string" @@ -1172,7 +1172,7 @@ } } }, - "revision": "20240626", + "revision": "20240702", "rootUrl": "https://chromemanagement.googleapis.com/", "schemas": { "GoogleChromeManagementV1AndroidAppInfo": { @@ -4112,7 +4112,8 @@ "VPN_CONNECTION_STATE_CHANGE", "APP_INSTALLED", "APP_UNINSTALLED", - "APP_LAUNCHED" + "APP_LAUNCHED", + "OS_CRASH" ], "enumDescriptions": [ "Event type unknown.", @@ -4126,7 +4127,8 @@ "Triggered on changes to VPN connections.", "Triggered when an app is installed.", "Triggered when an app is uninstalled.", - "Triggered when an app is launched." + "Triggered when an app is launched.", + "Triggered when a crash occurs." ], "type": "string" }, @@ -4192,7 +4194,8 @@ "VPN_CONNECTION_STATE_CHANGE", "APP_INSTALLED", "APP_UNINSTALLED", - "APP_LAUNCHED" + "APP_LAUNCHED", + "OS_CRASH" ], "enumDescriptions": [ "Event type unknown.", @@ -4206,7 +4209,8 @@ "Triggered on changes to VPN connections.", "Triggered when an app is installed.", "Triggered when an app is uninstalled.", - "Triggered when an app is launched." + "Triggered when an app is launched.", + "Triggered when a crash occurs." ], "type": "string" }, diff --git a/chromemanagement/v1/chromemanagement-gen.go b/chromemanagement/v1/chromemanagement-gen.go index bd4baab9dc..69ee6b3dd4 100644 --- a/chromemanagement/v1/chromemanagement-gen.go +++ b/chromemanagement/v1/chromemanagement-gen.go @@ -3256,6 +3256,7 @@ type GoogleChromeManagementV1TelemetryEvent struct { // "APP_INSTALLED" - Triggered when an app is installed. // "APP_UNINSTALLED" - Triggered when an app is uninstalled. // "APP_LAUNCHED" - Triggered when an app is launched. + // "OS_CRASH" - Triggered when a crash occurs. EventType string `json:"eventType,omitempty"` // HttpsLatencyChangeEvent: Output only. Payload for HTTPS latency change // event. Present only when `event_type` is `NETWORK_HTTPS_LATENCY_CHANGE`. @@ -3323,6 +3324,7 @@ type GoogleChromeManagementV1TelemetryEventNotificationFilter struct { // "APP_INSTALLED" - Triggered when an app is installed. // "APP_UNINSTALLED" - Triggered when an app is uninstalled. // "APP_LAUNCHED" - Triggered when an app is launched. + // "OS_CRASH" - Triggered when a crash occurs. EventTypes []string `json:"eventTypes,omitempty"` // ForceSendFields is a list of field names (e.g. "EventTypes") to // unconditionally include in API requests. By default, fields with empty or @@ -6822,7 +6824,7 @@ func (c *CustomersTelemetryEventsListCall) PageToken(pageToken string) *Customer // audio_severe_underrun_event - usb_peripherals_event - // https_latency_change_event - network_state_change_event - // wifi_signal_strength_event - vpn_connection_state_change_event - -// app_install_event - app_uninstall_event - app_launch_event +// app_install_event - app_uninstall_event - app_launch_event - os_crash_event func (c *CustomersTelemetryEventsListCall) ReadMask(readMask string) *CustomersTelemetryEventsListCall { c.urlParams_.Set("readMask", readMask) return c diff --git a/classroom/v1/classroom-api.json b/classroom/v1/classroom-api.json index 01a8f53f00..1a5b3df40e 100644 --- a/classroom/v1/classroom-api.json +++ b/classroom/v1/classroom-api.json @@ -1185,7 +1185,7 @@ ] }, "patch": { - "description": "Updates one or more fields of a course work. See google.classroom.v1.CourseWork for details of which fields may be updated and who may change them. This request must be made by the Developer Console project of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the corresponding course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project did not create the corresponding course work, if the user is not permitted to make the requested modification to the student submission, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `FAILED_PRECONDITION` if the requested course work has already been deleted. * `NOT_FOUND` if the requested course, course work, or student submission does not exist.", + "description": "Updates one or more fields of a course work. See google.classroom.v1.CourseWork for details of which fields may be updated and who may change them. This request must be made by the Developer Console project of the [OAuth client ID](https://support.google.com/cloud/answer/6158849) used to create the corresponding course work item. This method returns the following error codes: * `PERMISSION_DENIED` if the requesting developer project did not create the corresponding course work, if the user is not permitted to make the requested modification to the student submission, or for access errors. * `INVALID_ARGUMENT` if the request is malformed. * `FAILED_PRECONDITION` if the requested course work has already been deleted. * `NOT_FOUND` if the requested course or course work does not exist.", "flatPath": "v1/courses/{courseId}/courseWork/{id}", "httpMethod": "PATCH", "id": "classroom.courses.courseWork.patch", @@ -1207,7 +1207,7 @@ "type": "string" }, "updateMask": { - "description": "Mask that identifies which fields on the course work to update. This field is required to do an update. The update fails if invalid fields are specified. If a field supports empty values, it can be cleared by specifying it in the update mask and not in the `CourseWork` object. If a field that does not support empty values is included in the update mask and not set in the `CourseWork` object, an `INVALID_ARGUMENT` error is returned. The following fields may be specified by teachers: * `title` * `description` * `state` * `due_date` * `due_time` * `max_points` * `scheduled_time` * `submission_modification_mode` * `topic_id`", + "description": "Mask that identifies which fields on the course work to update. This field is required to do an update. The update fails if invalid fields are specified. If a field supports empty values, it can be cleared by specifying it in the update mask and not in the `CourseWork` object. If a field that does not support empty values is included in the update mask and not set in the `CourseWork` object, an `INVALID_ARGUMENT` error is returned. The following fields may be specified by teachers: * `title` * `description` * `state` * `due_date` * `due_time` * `max_points` * `scheduled_time` * `submission_modification_mode` * `topic_id` * `grading_period_id` Available in [V1_20240401_PREVIEW](https://developers.google.com/classroom/reference/preview) and later.", "format": "google-fieldmask", "location": "query", "type": "string" @@ -3695,7 +3695,7 @@ } } }, - "revision": "20240617", + "revision": "20240701", "rootUrl": "https://classroom.googleapis.com/", "schemas": { "AddOnAttachment": { diff --git a/classroom/v1/classroom-gen.go b/classroom/v1/classroom-gen.go index 090b4d16a4..301ba958dc 100644 --- a/classroom/v1/classroom-gen.go +++ b/classroom/v1/classroom-gen.go @@ -6491,7 +6491,7 @@ type CoursesCourseWorkPatchCall struct { // the requested modification to the student submission, or for access errors. // * `INVALID_ARGUMENT` if the request is malformed. * `FAILED_PRECONDITION` if // the requested course work has already been deleted. * `NOT_FOUND` if the -// requested course, course work, or student submission does not exist. +// requested course or course work does not exist. // // - courseId: Identifier of the course. This identifier can be either the // Classroom-assigned identifier or an alias. @@ -6513,7 +6513,9 @@ func (r *CoursesCourseWorkService) Patch(courseId string, id string, coursework // object, an `INVALID_ARGUMENT` error is returned. The following fields may be // specified by teachers: * `title` * `description` * `state` * `due_date` * // `due_time` * `max_points` * `scheduled_time` * -// `submission_modification_mode` * `topic_id` +// `submission_modification_mode` * `topic_id` * `grading_period_id` Available +// in V1_20240401_PREVIEW +// (https://developers.google.com/classroom/reference/preview) and later. func (c *CoursesCourseWorkPatchCall) UpdateMask(updateMask string) *CoursesCourseWorkPatchCall { c.urlParams_.Set("updateMask", updateMask) return c diff --git a/cloudbuild/v1/cloudbuild-gen.go b/cloudbuild/v1/cloudbuild-gen.go index c4232dd404..7c4f34791c 100644 --- a/cloudbuild/v1/cloudbuild-gen.go +++ b/cloudbuild/v1/cloudbuild-gen.go @@ -2057,35 +2057,6 @@ func (s FileHashes) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GCSLocation: Represents a storage location in Cloud Storage -type GCSLocation struct { - // Bucket: Cloud Storage bucket. See - // https://cloud.google.com/storage/docs/naming#requirements - Bucket string `json:"bucket,omitempty"` - // Generation: Cloud Storage generation for the object. If the generation is - // omitted, the latest generation will be used. - Generation int64 `json:"generation,omitempty,string"` - // Object: Cloud Storage object. See - // https://cloud.google.com/storage/docs/naming#objectnames - Object string `json:"object,omitempty"` - // ForceSendFields is a list of field names (e.g. "Bucket") 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. "Bucket") 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 GCSLocation) MarshalJSON() ([]byte, error) { - type NoMethod GCSLocation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // GitConfig: GitConfig is a configuration for git operations. type GitConfig struct { // Http: Configuration for HTTP related git operations. diff --git a/clouderrorreporting/v1beta1/clouderrorreporting-api.json b/clouderrorreporting/v1beta1/clouderrorreporting-api.json index 2dfaefde4b..5fc2cc2e74 100644 --- a/clouderrorreporting/v1beta1/clouderrorreporting-api.json +++ b/clouderrorreporting/v1beta1/clouderrorreporting-api.json @@ -117,7 +117,7 @@ ], "parameters": { "projectName": { - "description": "Required. The resource name of the Google Cloud Platform project. Written as `projects/{projectID}`, where `{projectID}` is the [Google Cloud Platform project ID](https://support.google.com/cloud/answer/6158840). Example: `projects/my-project-123`.", + "description": "Required. The resource name of the Google Cloud Platform project. Written as `projects/{projectID}` or `projects/{projectID}/locations/{location}`, where `{projectID}` is the [Google Cloud Platform project ID](https://support.google.com/cloud/answer/6158840) and `{location}` is a Cloud region. Examples: `projects/my-project-123`, `projects/my-project-123/locations/global`. For a list of supported locations, see [Supported Regions](https://cloud.google.com/logging/docs/region-support). `global` is the default when unspecified.", "location": "path", "pattern": "^projects/[^/]+$", "required": true, @@ -162,7 +162,7 @@ "type": "string" }, "projectName": { - "description": "Required. The resource name of the Google Cloud Platform project. Written as `projects/{projectID}`, where `{projectID}` is the [Google Cloud Platform project ID](https://support.google.com/cloud/answer/6158840). Example: `projects/my-project-123`.", + "description": "Required. The resource name of the Google Cloud Platform project. Written as `projects/{projectID}` or `projects/{projectID}/locations/{location}`, where `{projectID}` is the [Google Cloud Platform project ID](https://support.google.com/cloud/answer/6158840) and `{location}` is a Cloud region. Examples: `projects/my-project-123`, `projects/my-project-123/locations/global`. For a list of supported locations, see [Supported Regions](https://cloud.google.com/logging/docs/region-support). `global` is the default when unspecified.", "location": "path", "pattern": "^projects/[^/]+$", "required": true, @@ -214,7 +214,7 @@ ] }, "report": { - "description": "Report an individual error event and record the event to a log. This endpoint accepts **either** an OAuth token, **or** an [API key](https://support.google.com/cloud/answer/6158862) for authentication. To use an API key, append it to the URL as the value of a `key` parameter. For example: `POST https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456` **Note:** [Error Reporting] (https://cloud.google.com/error-reporting) is a global service built on Cloud Logging and can analyze log entries when all of the following are true: * The log entries are stored in a log bucket in the `global` location. * Customer-managed encryption keys (CMEK) are disabled on the log bucket. * The log bucket satisfies one of the following: * The log bucket is stored in the same project where the logs originated. * The logs were routed to a project, and then that project stored those logs in a log bucket that it owns.", + "description": "Report an individual error event and record the event to a log. This endpoint accepts **either** an OAuth token, **or** an [API key](https://support.google.com/cloud/answer/6158862) for authentication. To use an API key, append it to the URL as the value of a `key` parameter. For example: `POST https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456` **Note:** [Error Reporting] (https://cloud.google.com/error-reporting) is a service built on Cloud Logging and can analyze log entries when all of the following are true: * Customer-managed encryption keys (CMEK) are disabled on the log bucket. * The log bucket satisfies one of the following: * The log bucket is stored in the same project where the logs originated. * The logs were routed to a project, and then that project stored those logs in a log bucket that it owns.", "flatPath": "v1beta1/projects/{projectsId}/events:report", "httpMethod": "POST", "id": "clouderrorreporting.projects.events.report", @@ -312,7 +312,7 @@ "type": "string" }, "projectName": { - "description": "Required. The resource name of the Google Cloud Platform project. Written as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}` and `{projectNumber}` can be found in the [Google Cloud console](https://support.google.com/cloud/answer/6158840). Examples: `projects/my-project-123`, `projects/5551234`.", + "description": "Required. The resource name of the Google Cloud Platform project. Written as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}` and `{projectNumber}` can be found in the [Google Cloud console](https://support.google.com/cloud/answer/6158840). It may also include a location, such as `projects/{projectID}/locations/{location}` where `{location}` is a cloud region. Examples: `projects/my-project-123`, `projects/5551234`, `projects/my-project-123/locations/us-central1`, `projects/5551234/locations/us-central1`. For a list of supported locations, see [Supported Regions](https://cloud.google.com/logging/docs/region-support). `global` is the default when unspecified. Use `-` as a wildcard to request group stats from all regions.", "location": "path", "pattern": "^projects/[^/]+$", "required": true, @@ -383,7 +383,7 @@ ], "parameters": { "groupName": { - "description": "Required. The group resource name. Written as `projects/{projectID}/groups/{group_id}`. Call groupStats.list to return a list of groups belonging to this project. Example: `projects/my-project-123/groups/my-group` In the group resource name, the `group_id` is a unique identifier for a particular error group. The identifier is derived from key parts of the error-log content and is treated as Service Data. For information about how Service Data is handled, see [Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy-notice).", + "description": "Required. The group resource name. Written as either `projects/{projectID}/groups/{group_id}` or `projects/{projectID}/locations/{location}/groups/{group_id}`. Call groupStats.list to return a list of groups belonging to this project. Examples: `projects/my-project-123/groups/my-group`, `projects/my-project-123/locations/global/groups/my-group` In the group resource name, the `group_id` is a unique identifier for a particular error group. The identifier is derived from key parts of the error-log content and is treated as Service Data. For information about how Service Data is handled, see [Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy-notice). For a list of supported locations, see [Supported Regions](https://cloud.google.com/logging/docs/region-support). `global` is the default when unspecified.", "location": "path", "pattern": "^projects/[^/]+/groups/[^/]+$", "required": true, @@ -408,7 +408,7 @@ ], "parameters": { "name": { - "description": "The group resource name. Written as `projects/{projectID}/groups/{group_id}`. Example: `projects/my-project-123/groups/my-group` In the group resource name, the `group_id` is a unique identifier for a particular error group. The identifier is derived from key parts of the error-log content and is treated as Service Data. For information about how Service Data is handled, see [Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy-notice).", + "description": "The group resource name. Written as `projects/{projectID}/groups/{group_id}` or `projects/{projectID}/locations/{location}/groups/{group_id}` Examples: `projects/my-project-123/groups/my-group`, `projects/my-project-123/locations/us-central1/groups/my-group` In the group resource name, the `group_id` is a unique identifier for a particular error group. The identifier is derived from key parts of the error-log content and is treated as Service Data. For information about how Service Data is handled, see [Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy-notice). For a list of supported locations, see [Supported Regions](https://cloud.google.com/logging/docs/region-support). `global` is the default when unspecified.", "location": "path", "pattern": "^projects/[^/]+/groups/[^/]+$", "required": true, @@ -427,11 +427,308 @@ ] } } + }, + "locations": { + "methods": { + "deleteEvents": { + "description": "Deletes all error events of a given project.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/events", + "httpMethod": "DELETE", + "id": "clouderrorreporting.projects.locations.deleteEvents", + "parameterOrder": [ + "projectName" + ], + "parameters": { + "projectName": { + "description": "Required. The resource name of the Google Cloud Platform project. Written as `projects/{projectID}` or `projects/{projectID}/locations/{location}`, where `{projectID}` is the [Google Cloud Platform project ID](https://support.google.com/cloud/answer/6158840) and `{location}` is a Cloud region. Examples: `projects/my-project-123`, `projects/my-project-123/locations/global`. For a list of supported locations, see [Supported Regions](https://cloud.google.com/logging/docs/region-support). `global` is the default when unspecified.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+projectName}/events", + "response": { + "$ref": "DeleteEventsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + }, + "resources": { + "events": { + "methods": { + "list": { + "description": "Lists the specified events.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/events", + "httpMethod": "GET", + "id": "clouderrorreporting.projects.locations.events.list", + "parameterOrder": [ + "projectName" + ], + "parameters": { + "groupId": { + "description": "Required. The group for which events shall be returned. The `group_id` is a unique identifier for a particular error group. The identifier is derived from key parts of the error-log content and is treated as Service Data. For information about how Service Data is handled, see [Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy-notice).", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of results to return per response.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A `next_page_token` provided by a previous response.", + "location": "query", + "type": "string" + }, + "projectName": { + "description": "Required. The resource name of the Google Cloud Platform project. Written as `projects/{projectID}` or `projects/{projectID}/locations/{location}`, where `{projectID}` is the [Google Cloud Platform project ID](https://support.google.com/cloud/answer/6158840) and `{location}` is a Cloud region. Examples: `projects/my-project-123`, `projects/my-project-123/locations/global`. For a list of supported locations, see [Supported Regions](https://cloud.google.com/logging/docs/region-support). `global` is the default when unspecified.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "serviceFilter.resourceType": { + "description": "Optional. The exact value to match against [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type).", + "location": "query", + "type": "string" + }, + "serviceFilter.service": { + "description": "Optional. The exact value to match against [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).", + "location": "query", + "type": "string" + }, + "serviceFilter.version": { + "description": "Optional. The exact value to match against [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).", + "location": "query", + "type": "string" + }, + "timeRange.period": { + "description": "Restricts the query to the specified time range.", + "enum": [ + "PERIOD_UNSPECIFIED", + "PERIOD_1_HOUR", + "PERIOD_6_HOURS", + "PERIOD_1_DAY", + "PERIOD_1_WEEK", + "PERIOD_30_DAYS" + ], + "enumDescriptions": [ + "Do not use.", + "Retrieve data for the last hour. Recommended minimum timed count duration: 1 min.", + "Retrieve data for the last 6 hours. Recommended minimum timed count duration: 10 min.", + "Retrieve data for the last day. Recommended minimum timed count duration: 1 hour.", + "Retrieve data for the last week. Recommended minimum timed count duration: 6 hours.", + "Retrieve data for the last 30 days. Recommended minimum timed count duration: 1 day." + ], + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+projectName}/events", + "response": { + "$ref": "ListEventsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "groupStats": { + "methods": { + "list": { + "description": "Lists the specified groups.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/groupStats", + "httpMethod": "GET", + "id": "clouderrorreporting.projects.locations.groupStats.list", + "parameterOrder": [ + "projectName" + ], + "parameters": { + "alignment": { + "description": "Optional. The alignment of the timed counts to be returned. Default is `ALIGNMENT_EQUAL_AT_END`.", + "enum": [ + "ERROR_COUNT_ALIGNMENT_UNSPECIFIED", + "ALIGNMENT_EQUAL_ROUNDED", + "ALIGNMENT_EQUAL_AT_END" + ], + "enumDescriptions": [ + "No alignment specified.", + "The time periods shall be consecutive, have width equal to the requested duration, and be aligned at the alignment_time provided in the request. The alignment_time does not have to be inside the query period but even if it is outside, only time periods are returned which overlap with the query period. A rounded alignment will typically result in a different size of the first or the last time period.", + "The time periods shall be consecutive, have width equal to the requested duration, and be aligned at the end of the requested time period. This can result in a different size of the first time period." + ], + "location": "query", + "type": "string" + }, + "alignmentTime": { + "description": "Optional. Time where the timed counts shall be aligned if rounded alignment is chosen. Default is 00:00 UTC.", + "format": "google-datetime", + "location": "query", + "type": "string" + }, + "groupId": { + "description": "Optional. List all ErrorGroupStats with these IDs. The `group_id` is a unique identifier for a particular error group. The identifier is derived from key parts of the error-log content and is treated as Service Data. For information about how Service Data is handled, see [Google Cloud Privacy Notice] (https://cloud.google.com/terms/cloud-privacy-notice).", + "location": "query", + "repeated": true, + "type": "string" + }, + "order": { + "description": "Optional. The sort order in which the results are returned. Default is `COUNT_DESC`.", + "enum": [ + "GROUP_ORDER_UNSPECIFIED", + "COUNT_DESC", + "LAST_SEEN_DESC", + "CREATED_DESC", + "AFFECTED_USERS_DESC" + ], + "enumDescriptions": [ + "No group order specified.", + "Total count of errors in the given time window in descending order.", + "Timestamp when the group was last seen in the given time window in descending order.", + "Timestamp when the group was created in descending order.", + "Number of affected users in the given time window in descending order." + ], + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of results to return per response. Default is 20.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. A next_page_token provided by a previous response. To view additional results, pass this token along with the identical query parameters as the first request.", + "location": "query", + "type": "string" + }, + "projectName": { + "description": "Required. The resource name of the Google Cloud Platform project. Written as `projects/{projectID}` or `projects/{projectNumber}`, where `{projectID}` and `{projectNumber}` can be found in the [Google Cloud console](https://support.google.com/cloud/answer/6158840). It may also include a location, such as `projects/{projectID}/locations/{location}` where `{location}` is a cloud region. Examples: `projects/my-project-123`, `projects/5551234`, `projects/my-project-123/locations/us-central1`, `projects/5551234/locations/us-central1`. For a list of supported locations, see [Supported Regions](https://cloud.google.com/logging/docs/region-support). `global` is the default when unspecified. Use `-` as a wildcard to request group stats from all regions.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+$", + "required": true, + "type": "string" + }, + "serviceFilter.resourceType": { + "description": "Optional. The exact value to match against [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type).", + "location": "query", + "type": "string" + }, + "serviceFilter.service": { + "description": "Optional. The exact value to match against [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).", + "location": "query", + "type": "string" + }, + "serviceFilter.version": { + "description": "Optional. The exact value to match against [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).", + "location": "query", + "type": "string" + }, + "timeRange.period": { + "description": "Restricts the query to the specified time range.", + "enum": [ + "PERIOD_UNSPECIFIED", + "PERIOD_1_HOUR", + "PERIOD_6_HOURS", + "PERIOD_1_DAY", + "PERIOD_1_WEEK", + "PERIOD_30_DAYS" + ], + "enumDescriptions": [ + "Do not use.", + "Retrieve data for the last hour. Recommended minimum timed count duration: 1 min.", + "Retrieve data for the last 6 hours. Recommended minimum timed count duration: 10 min.", + "Retrieve data for the last day. Recommended minimum timed count duration: 1 hour.", + "Retrieve data for the last week. Recommended minimum timed count duration: 6 hours.", + "Retrieve data for the last 30 days. Recommended minimum timed count duration: 1 day." + ], + "location": "query", + "type": "string" + }, + "timedCountDuration": { + "description": "Optional. The preferred duration for a single returned TimedCount. If not set, no timed counts are returned.", + "format": "google-duration", + "location": "query", + "type": "string" + } + }, + "path": "v1beta1/{+projectName}/groupStats", + "response": { + "$ref": "ListGroupStatsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "groups": { + "methods": { + "get": { + "description": "Get the specified group.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/groups/{groupsId}", + "httpMethod": "GET", + "id": "clouderrorreporting.projects.locations.groups.get", + "parameterOrder": [ + "groupName" + ], + "parameters": { + "groupName": { + "description": "Required. The group resource name. Written as either `projects/{projectID}/groups/{group_id}` or `projects/{projectID}/locations/{location}/groups/{group_id}`. Call groupStats.list to return a list of groups belonging to this project. Examples: `projects/my-project-123/groups/my-group`, `projects/my-project-123/locations/global/groups/my-group` In the group resource name, the `group_id` is a unique identifier for a particular error group. The identifier is derived from key parts of the error-log content and is treated as Service Data. For information about how Service Data is handled, see [Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy-notice). For a list of supported locations, see [Supported Regions](https://cloud.google.com/logging/docs/region-support). `global` is the default when unspecified.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/groups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+groupName}", + "response": { + "$ref": "ErrorGroup" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "update": { + "description": "Replace the data for the specified group. Fails if the group does not exist.", + "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/groups/{groupsId}", + "httpMethod": "PUT", + "id": "clouderrorreporting.projects.locations.groups.update", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "The group resource name. Written as `projects/{projectID}/groups/{group_id}` or `projects/{projectID}/locations/{location}/groups/{group_id}` Examples: `projects/my-project-123/groups/my-group`, `projects/my-project-123/locations/us-central1/groups/my-group` In the group resource name, the `group_id` is a unique identifier for a particular error group. The identifier is derived from key parts of the error-log content and is treated as Service Data. For information about how Service Data is handled, see [Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy-notice). For a list of supported locations, see [Supported Regions](https://cloud.google.com/logging/docs/region-support). `global` is the default when unspecified.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/groups/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}", + "request": { + "$ref": "ErrorGroup" + }, + "response": { + "$ref": "ErrorGroup" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } } } } }, - "revision": "20240322", + "revision": "20240702", "rootUrl": "https://clouderrorreporting.googleapis.com/", "schemas": { "DeleteEventsResponse": { @@ -499,7 +796,7 @@ "type": "string" }, "name": { - "description": "The group resource name. Written as `projects/{projectID}/groups/{group_id}`. Example: `projects/my-project-123/groups/my-group` In the group resource name, the `group_id` is a unique identifier for a particular error group. The identifier is derived from key parts of the error-log content and is treated as Service Data. For information about how Service Data is handled, see [Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy-notice).", + "description": "The group resource name. Written as `projects/{projectID}/groups/{group_id}` or `projects/{projectID}/locations/{location}/groups/{group_id}` Examples: `projects/my-project-123/groups/my-group`, `projects/my-project-123/locations/us-central1/groups/my-group` In the group resource name, the `group_id` is a unique identifier for a particular error group. The identifier is derived from key parts of the error-log content and is treated as Service Data. For information about how Service Data is handled, see [Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy-notice). For a list of supported locations, see [Supported Regions](https://cloud.google.com/logging/docs/region-support). `global` is the default when unspecified.", "type": "string" }, "resolutionStatus": { diff --git a/clouderrorreporting/v1beta1/clouderrorreporting-gen.go b/clouderrorreporting/v1beta1/clouderrorreporting-gen.go index 9fa1215dbd..87e67a84c3 100644 --- a/clouderrorreporting/v1beta1/clouderrorreporting-gen.go +++ b/clouderrorreporting/v1beta1/clouderrorreporting-gen.go @@ -159,6 +159,7 @@ func NewProjectsService(s *Service) *ProjectsService { rs.Events = NewProjectsEventsService(s) rs.GroupStats = NewProjectsGroupStatsService(s) rs.Groups = NewProjectsGroupsService(s) + rs.Locations = NewProjectsLocationsService(s) return rs } @@ -170,6 +171,8 @@ type ProjectsService struct { GroupStats *ProjectsGroupStatsService Groups *ProjectsGroupsService + + Locations *ProjectsLocationsService } func NewProjectsEventsService(s *Service) *ProjectsEventsService { @@ -199,6 +202,51 @@ type ProjectsGroupsService struct { s *Service } +func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { + rs := &ProjectsLocationsService{s: s} + rs.Events = NewProjectsLocationsEventsService(s) + rs.GroupStats = NewProjectsLocationsGroupStatsService(s) + rs.Groups = NewProjectsLocationsGroupsService(s) + return rs +} + +type ProjectsLocationsService struct { + s *Service + + Events *ProjectsLocationsEventsService + + GroupStats *ProjectsLocationsGroupStatsService + + Groups *ProjectsLocationsGroupsService +} + +func NewProjectsLocationsEventsService(s *Service) *ProjectsLocationsEventsService { + rs := &ProjectsLocationsEventsService{s: s} + return rs +} + +type ProjectsLocationsEventsService struct { + s *Service +} + +func NewProjectsLocationsGroupStatsService(s *Service) *ProjectsLocationsGroupStatsService { + rs := &ProjectsLocationsGroupStatsService{s: s} + return rs +} + +type ProjectsLocationsGroupStatsService struct { + s *Service +} + +func NewProjectsLocationsGroupsService(s *Service) *ProjectsLocationsGroupsService { + rs := &ProjectsLocationsGroupsService{s: s} + return rs +} + +type ProjectsLocationsGroupsService struct { + s *Service +} + // DeleteEventsResponse: Response message for deleting error events. type DeleteEventsResponse struct { // ServerResponse contains the HTTP response code and headers from the server. @@ -287,13 +335,18 @@ type ErrorGroup struct { // (https://cloud.google.com/terms/cloud-privacy-notice). GroupId string `json:"groupId,omitempty"` // Name: The group resource name. Written as - // `projects/{projectID}/groups/{group_id}`. Example: - // `projects/my-project-123/groups/my-group` In the group resource name, the - // `group_id` is a unique identifier for a particular error group. The - // identifier is derived from key parts of the error-log content and is treated - // as Service Data. For information about how Service Data is handled, see - // Google Cloud Privacy Notice - // (https://cloud.google.com/terms/cloud-privacy-notice). + // `projects/{projectID}/groups/{group_id}` or + // `projects/{projectID}/locations/{location}/groups/{group_id}` Examples: + // `projects/my-project-123/groups/my-group`, + // `projects/my-project-123/locations/us-central1/groups/my-group` In the group + // resource name, the `group_id` is a unique identifier for a particular error + // group. The identifier is derived from key parts of the error-log content and + // is treated as Service Data. For information about how Service Data is + // handled, see Google Cloud Privacy Notice + // (https://cloud.google.com/terms/cloud-privacy-notice). For a list of + // supported locations, see Supported Regions + // (https://cloud.google.com/logging/docs/region-support). `global` is the + // default when unspecified. Name string `json:"name,omitempty"` // ResolutionStatus: Error group's resolution status. An unspecified resolution // status will be interpreted as OPEN @@ -718,9 +771,15 @@ type ProjectsDeleteEventsCall struct { // DeleteEvents: Deletes all error events of a given project. // // - projectName: The resource name of the Google Cloud Platform project. -// Written as `projects/{projectID}`, where `{projectID}` is the Google Cloud -// Platform project ID (https://support.google.com/cloud/answer/6158840). -// Example: `projects/my-project-123`. +// Written as `projects/{projectID}` or +// `projects/{projectID}/locations/{location}`, where `{projectID}` is the +// Google Cloud Platform project ID +// (https://support.google.com/cloud/answer/6158840) and `{location}` is a +// Cloud region. Examples: `projects/my-project-123`, +// `projects/my-project-123/locations/global`. For a list of supported +// locations, see Supported Regions +// (https://cloud.google.com/logging/docs/region-support). `global` is the +// default when unspecified. func (r *ProjectsService) DeleteEvents(projectName string) *ProjectsDeleteEventsCall { c := &ProjectsDeleteEventsCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.projectName = projectName @@ -818,9 +877,15 @@ type ProjectsEventsListCall struct { // List: Lists the specified events. // // - projectName: The resource name of the Google Cloud Platform project. -// Written as `projects/{projectID}`, where `{projectID}` is the Google Cloud -// Platform project ID (https://support.google.com/cloud/answer/6158840). -// Example: `projects/my-project-123`. +// Written as `projects/{projectID}` or +// `projects/{projectID}/locations/{location}`, where `{projectID}` is the +// Google Cloud Platform project ID +// (https://support.google.com/cloud/answer/6158840) and `{location}` is a +// Cloud region. Examples: `projects/my-project-123`, +// `projects/my-project-123/locations/global`. For a list of supported +// locations, see Supported Regions +// (https://cloud.google.com/logging/docs/region-support). `global` is the +// default when unspecified. func (r *ProjectsEventsService) List(projectName string) *ProjectsEventsListCall { c := &ProjectsEventsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.projectName = projectName @@ -1035,13 +1100,12 @@ type ProjectsEventsReportCall struct { // example: `POST // https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456` // **Note:** [Error Reporting] (https://cloud.google.com/error-reporting) is a -// global service built on Cloud Logging and can analyze log entries when all -// of the following are true: * The log entries are stored in a log bucket in -// the `global` location. * Customer-managed encryption keys (CMEK) are -// disabled on the log bucket. * The log bucket satisfies one of the following: -// * The log bucket is stored in the same project where the logs originated. * -// The logs were routed to a project, and then that project stored those logs -// in a log bucket that it owns. +// service built on Cloud Logging and can analyze log entries when all of the +// following are true: * Customer-managed encryption keys (CMEK) are disabled +// on the log bucket. * The log bucket satisfies one of the following: * The +// log bucket is stored in the same project where the logs originated. * The +// logs were routed to a project, and then that project stored those logs in a +// log bucket that it owns. // // - projectName: The resource name of the Google Cloud Platform project. // Written as `projects/{projectId}`, where `{projectId}` is the Google Cloud @@ -1151,8 +1215,15 @@ type ProjectsGroupStatsListCall struct { // - projectName: The resource name of the Google Cloud Platform project. // Written as `projects/{projectID}` or `projects/{projectNumber}`, where // `{projectID}` and `{projectNumber}` can be found in the Google Cloud -// console (https://support.google.com/cloud/answer/6158840). Examples: -// `projects/my-project-123`, `projects/5551234`. +// console (https://support.google.com/cloud/answer/6158840). It may also +// include a location, such as `projects/{projectID}/locations/{location}` +// where `{location}` is a cloud region. Examples: `projects/my-project-123`, +// `projects/5551234`, `projects/my-project-123/locations/us-central1`, +// `projects/5551234/locations/us-central1`. For a list of supported +// locations, see Supported Regions +// (https://cloud.google.com/logging/docs/region-support). `global` is the +// default when unspecified. Use `-` as a wildcard to request group stats +// from all regions. func (r *ProjectsGroupStatsService) List(projectName string) *ProjectsGroupStatsListCall { c := &ProjectsGroupStatsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.projectName = projectName @@ -1426,15 +1497,20 @@ type ProjectsGroupsGetCall struct { // Get: Get the specified group. // -// - groupName: The group resource name. Written as -// `projects/{projectID}/groups/{group_id}`. Call groupStats.list to return a -// list of groups belonging to this project. Example: -// `projects/my-project-123/groups/my-group` In the group resource name, the -// `group_id` is a unique identifier for a particular error group. The -// identifier is derived from key parts of the error-log content and is -// treated as Service Data. For information about how Service Data is -// handled, see Google Cloud Privacy Notice -// (https://cloud.google.com/terms/cloud-privacy-notice). +// - groupName: The group resource name. Written as either +// `projects/{projectID}/groups/{group_id}` or +// `projects/{projectID}/locations/{location}/groups/{group_id}`. Call +// groupStats.list to return a list of groups belonging to this project. +// Examples: `projects/my-project-123/groups/my-group`, +// `projects/my-project-123/locations/global/groups/my-group` In the group +// resource name, the `group_id` is a unique identifier for a particular +// error group. The identifier is derived from key parts of the error-log +// content and is treated as Service Data. For information about how Service +// Data is handled, see Google Cloud Privacy Notice +// (https://cloud.google.com/terms/cloud-privacy-notice). For a list of +// supported locations, see Supported Regions +// (https://cloud.google.com/logging/docs/region-support). `global` is the +// default when unspecified. func (r *ProjectsGroupsService) Get(groupNameid string) *ProjectsGroupsGetCall { c := &ProjectsGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.groupNameid = groupNameid @@ -1543,13 +1619,18 @@ type ProjectsGroupsUpdateCall struct { // not exist. // // - name: The group resource name. Written as -// `projects/{projectID}/groups/{group_id}`. Example: -// `projects/my-project-123/groups/my-group` In the group resource name, the -// `group_id` is a unique identifier for a particular error group. The -// identifier is derived from key parts of the error-log content and is -// treated as Service Data. For information about how Service Data is -// handled, see Google Cloud Privacy Notice -// (https://cloud.google.com/terms/cloud-privacy-notice). +// `projects/{projectID}/groups/{group_id}` or +// `projects/{projectID}/locations/{location}/groups/{group_id}` Examples: +// `projects/my-project-123/groups/my-group`, +// `projects/my-project-123/locations/us-central1/groups/my-group` In the +// group resource name, the `group_id` is a unique identifier for a +// particular error group. The identifier is derived from key parts of the +// error-log content and is treated as Service Data. For information about +// how Service Data is handled, see Google Cloud Privacy Notice +// (https://cloud.google.com/terms/cloud-privacy-notice). For a list of +// supported locations, see Supported Regions +// (https://cloud.google.com/logging/docs/region-support). `global` is the +// default when unspecified. func (r *ProjectsGroupsService) Update(nameid string, errorgroup *ErrorGroup) *ProjectsGroupsUpdateCall { c := &ProjectsGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.nameid = nameid @@ -1638,3 +1719,846 @@ func (c *ProjectsGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*ErrorGroup } return ret, nil } + +type ProjectsLocationsDeleteEventsCall struct { + s *Service + projectName string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// DeleteEvents: Deletes all error events of a given project. +// +// - projectName: The resource name of the Google Cloud Platform project. +// Written as `projects/{projectID}` or +// `projects/{projectID}/locations/{location}`, where `{projectID}` is the +// Google Cloud Platform project ID +// (https://support.google.com/cloud/answer/6158840) and `{location}` is a +// Cloud region. Examples: `projects/my-project-123`, +// `projects/my-project-123/locations/global`. For a list of supported +// locations, see Supported Regions +// (https://cloud.google.com/logging/docs/region-support). `global` is the +// default when unspecified. +func (r *ProjectsLocationsService) DeleteEvents(projectName string) *ProjectsLocationsDeleteEventsCall { + c := &ProjectsLocationsDeleteEventsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.projectName = projectName + 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 *ProjectsLocationsDeleteEventsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeleteEventsCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsDeleteEventsCall) Context(ctx context.Context) *ProjectsLocationsDeleteEventsCall { + 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 *ProjectsLocationsDeleteEventsCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDeleteEventsCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+projectName}/events") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "projectName": c.projectName, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "clouderrorreporting.projects.locations.deleteEvents" call. +// Any non-2xx status code is an error. Response headers are in either +// *DeleteEventsResponse.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 *ProjectsLocationsDeleteEventsCall) Do(opts ...googleapi.CallOption) (*DeleteEventsResponse, 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 := &DeleteEventsResponse{ + 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 ProjectsLocationsEventsListCall struct { + s *Service + projectName string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the specified events. +// +// - projectName: The resource name of the Google Cloud Platform project. +// Written as `projects/{projectID}` or +// `projects/{projectID}/locations/{location}`, where `{projectID}` is the +// Google Cloud Platform project ID +// (https://support.google.com/cloud/answer/6158840) and `{location}` is a +// Cloud region. Examples: `projects/my-project-123`, +// `projects/my-project-123/locations/global`. For a list of supported +// locations, see Supported Regions +// (https://cloud.google.com/logging/docs/region-support). `global` is the +// default when unspecified. +func (r *ProjectsLocationsEventsService) List(projectName string) *ProjectsLocationsEventsListCall { + c := &ProjectsLocationsEventsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.projectName = projectName + return c +} + +// GroupId sets the optional parameter "groupId": Required. The group for which +// events shall be returned. The `group_id` is a unique identifier for a +// particular error group. The identifier is derived from key parts of the +// error-log content and is treated as Service Data. For information about how +// Service Data is handled, see Google Cloud Privacy Notice +// (https://cloud.google.com/terms/cloud-privacy-notice). +func (c *ProjectsLocationsEventsListCall) GroupId(groupId string) *ProjectsLocationsEventsListCall { + c.urlParams_.Set("groupId", groupId) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return per response. +func (c *ProjectsLocationsEventsListCall) PageSize(pageSize int64) *ProjectsLocationsEventsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A `next_page_token` +// provided by a previous response. +func (c *ProjectsLocationsEventsListCall) PageToken(pageToken string) *ProjectsLocationsEventsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ServiceFilterResourceType sets the optional parameter +// "serviceFilter.resourceType": The exact value to match against +// `ServiceContext.resource_type` +// (/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type) +// . +func (c *ProjectsLocationsEventsListCall) ServiceFilterResourceType(serviceFilterResourceType string) *ProjectsLocationsEventsListCall { + c.urlParams_.Set("serviceFilter.resourceType", serviceFilterResourceType) + return c +} + +// ServiceFilterService sets the optional parameter "serviceFilter.service": +// The exact value to match against `ServiceContext.service` +// (/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service). +func (c *ProjectsLocationsEventsListCall) ServiceFilterService(serviceFilterService string) *ProjectsLocationsEventsListCall { + c.urlParams_.Set("serviceFilter.service", serviceFilterService) + return c +} + +// ServiceFilterVersion sets the optional parameter "serviceFilter.version": +// The exact value to match against `ServiceContext.version` +// (/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version). +func (c *ProjectsLocationsEventsListCall) ServiceFilterVersion(serviceFilterVersion string) *ProjectsLocationsEventsListCall { + c.urlParams_.Set("serviceFilter.version", serviceFilterVersion) + return c +} + +// TimeRangePeriod sets the optional parameter "timeRange.period": Restricts +// the query to the specified time range. +// +// Possible values: +// +// "PERIOD_UNSPECIFIED" - Do not use. +// "PERIOD_1_HOUR" - Retrieve data for the last hour. Recommended minimum +// +// timed count duration: 1 min. +// +// "PERIOD_6_HOURS" - Retrieve data for the last 6 hours. Recommended minimum +// +// timed count duration: 10 min. +// +// "PERIOD_1_DAY" - Retrieve data for the last day. Recommended minimum timed +// +// count duration: 1 hour. +// +// "PERIOD_1_WEEK" - Retrieve data for the last week. Recommended minimum +// +// timed count duration: 6 hours. +// +// "PERIOD_30_DAYS" - Retrieve data for the last 30 days. Recommended minimum +// +// timed count duration: 1 day. +func (c *ProjectsLocationsEventsListCall) TimeRangePeriod(timeRangePeriod string) *ProjectsLocationsEventsListCall { + c.urlParams_.Set("timeRange.period", timeRangePeriod) + 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 *ProjectsLocationsEventsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsEventsListCall { + 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 *ProjectsLocationsEventsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsEventsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsEventsListCall) Context(ctx context.Context) *ProjectsLocationsEventsListCall { + 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 *ProjectsLocationsEventsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsEventsListCall) 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/{+projectName}/events") + 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{ + "projectName": c.projectName, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "clouderrorreporting.projects.locations.events.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListEventsResponse.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 *ProjectsLocationsEventsListCall) Do(opts ...googleapi.CallOption) (*ListEventsResponse, 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 := &ListEventsResponse{ + 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 *ProjectsLocationsEventsListCall) Pages(ctx context.Context, f func(*ListEventsResponse) 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 ProjectsLocationsGroupStatsListCall struct { + s *Service + projectName string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists the specified groups. +// +// - projectName: The resource name of the Google Cloud Platform project. +// Written as `projects/{projectID}` or `projects/{projectNumber}`, where +// `{projectID}` and `{projectNumber}` can be found in the Google Cloud +// console (https://support.google.com/cloud/answer/6158840). It may also +// include a location, such as `projects/{projectID}/locations/{location}` +// where `{location}` is a cloud region. Examples: `projects/my-project-123`, +// `projects/5551234`, `projects/my-project-123/locations/us-central1`, +// `projects/5551234/locations/us-central1`. For a list of supported +// locations, see Supported Regions +// (https://cloud.google.com/logging/docs/region-support). `global` is the +// default when unspecified. Use `-` as a wildcard to request group stats +// from all regions. +func (r *ProjectsLocationsGroupStatsService) List(projectName string) *ProjectsLocationsGroupStatsListCall { + c := &ProjectsLocationsGroupStatsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.projectName = projectName + return c +} + +// Alignment sets the optional parameter "alignment": The alignment of the +// timed counts to be returned. Default is `ALIGNMENT_EQUAL_AT_END`. +// +// Possible values: +// +// "ERROR_COUNT_ALIGNMENT_UNSPECIFIED" - No alignment specified. +// "ALIGNMENT_EQUAL_ROUNDED" - The time periods shall be consecutive, have +// +// width equal to the requested duration, and be aligned at the alignment_time +// provided in the request. The alignment_time does not have to be inside the +// query period but even if it is outside, only time periods are returned which +// overlap with the query period. A rounded alignment will typically result in +// a different size of the first or the last time period. +// +// "ALIGNMENT_EQUAL_AT_END" - The time periods shall be consecutive, have +// +// width equal to the requested duration, and be aligned at the end of the +// requested time period. This can result in a different size of the first time +// period. +func (c *ProjectsLocationsGroupStatsListCall) Alignment(alignment string) *ProjectsLocationsGroupStatsListCall { + c.urlParams_.Set("alignment", alignment) + return c +} + +// AlignmentTime sets the optional parameter "alignmentTime": Time where the +// timed counts shall be aligned if rounded alignment is chosen. Default is +// 00:00 UTC. +func (c *ProjectsLocationsGroupStatsListCall) AlignmentTime(alignmentTime string) *ProjectsLocationsGroupStatsListCall { + c.urlParams_.Set("alignmentTime", alignmentTime) + return c +} + +// GroupId sets the optional parameter "groupId": List all ErrorGroupStats with +// these IDs. The `group_id` is a unique identifier for a particular error +// group. The identifier is derived from key parts of the error-log content and +// is treated as Service Data. For information about how Service Data is +// handled, see [Google Cloud Privacy Notice] +// (https://cloud.google.com/terms/cloud-privacy-notice). +func (c *ProjectsLocationsGroupStatsListCall) GroupId(groupId ...string) *ProjectsLocationsGroupStatsListCall { + c.urlParams_.SetMulti("groupId", append([]string{}, groupId...)) + return c +} + +// Order sets the optional parameter "order": The sort order in which the +// results are returned. Default is `COUNT_DESC`. +// +// Possible values: +// +// "GROUP_ORDER_UNSPECIFIED" - No group order specified. +// "COUNT_DESC" - Total count of errors in the given time window in +// +// descending order. +// +// "LAST_SEEN_DESC" - Timestamp when the group was last seen in the given +// +// time window in descending order. +// +// "CREATED_DESC" - Timestamp when the group was created in descending order. +// "AFFECTED_USERS_DESC" - Number of affected users in the given time window +// +// in descending order. +func (c *ProjectsLocationsGroupStatsListCall) Order(order string) *ProjectsLocationsGroupStatsListCall { + c.urlParams_.Set("order", order) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// results to return per response. Default is 20. +func (c *ProjectsLocationsGroupStatsListCall) PageSize(pageSize int64) *ProjectsLocationsGroupStatsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A next_page_token +// provided by a previous response. To view additional results, pass this token +// along with the identical query parameters as the first request. +func (c *ProjectsLocationsGroupStatsListCall) PageToken(pageToken string) *ProjectsLocationsGroupStatsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ServiceFilterResourceType sets the optional parameter +// "serviceFilter.resourceType": The exact value to match against +// `ServiceContext.resource_type` +// (/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type) +// . +func (c *ProjectsLocationsGroupStatsListCall) ServiceFilterResourceType(serviceFilterResourceType string) *ProjectsLocationsGroupStatsListCall { + c.urlParams_.Set("serviceFilter.resourceType", serviceFilterResourceType) + return c +} + +// ServiceFilterService sets the optional parameter "serviceFilter.service": +// The exact value to match against `ServiceContext.service` +// (/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service). +func (c *ProjectsLocationsGroupStatsListCall) ServiceFilterService(serviceFilterService string) *ProjectsLocationsGroupStatsListCall { + c.urlParams_.Set("serviceFilter.service", serviceFilterService) + return c +} + +// ServiceFilterVersion sets the optional parameter "serviceFilter.version": +// The exact value to match against `ServiceContext.version` +// (/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version). +func (c *ProjectsLocationsGroupStatsListCall) ServiceFilterVersion(serviceFilterVersion string) *ProjectsLocationsGroupStatsListCall { + c.urlParams_.Set("serviceFilter.version", serviceFilterVersion) + return c +} + +// TimeRangePeriod sets the optional parameter "timeRange.period": Restricts +// the query to the specified time range. +// +// Possible values: +// +// "PERIOD_UNSPECIFIED" - Do not use. +// "PERIOD_1_HOUR" - Retrieve data for the last hour. Recommended minimum +// +// timed count duration: 1 min. +// +// "PERIOD_6_HOURS" - Retrieve data for the last 6 hours. Recommended minimum +// +// timed count duration: 10 min. +// +// "PERIOD_1_DAY" - Retrieve data for the last day. Recommended minimum timed +// +// count duration: 1 hour. +// +// "PERIOD_1_WEEK" - Retrieve data for the last week. Recommended minimum +// +// timed count duration: 6 hours. +// +// "PERIOD_30_DAYS" - Retrieve data for the last 30 days. Recommended minimum +// +// timed count duration: 1 day. +func (c *ProjectsLocationsGroupStatsListCall) TimeRangePeriod(timeRangePeriod string) *ProjectsLocationsGroupStatsListCall { + c.urlParams_.Set("timeRange.period", timeRangePeriod) + return c +} + +// TimedCountDuration sets the optional parameter "timedCountDuration": The +// preferred duration for a single returned TimedCount. If not set, no timed +// counts are returned. +func (c *ProjectsLocationsGroupStatsListCall) TimedCountDuration(timedCountDuration string) *ProjectsLocationsGroupStatsListCall { + c.urlParams_.Set("timedCountDuration", timedCountDuration) + 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 *ProjectsLocationsGroupStatsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroupStatsListCall { + 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 *ProjectsLocationsGroupStatsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsGroupStatsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGroupStatsListCall) Context(ctx context.Context) *ProjectsLocationsGroupStatsListCall { + 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 *ProjectsLocationsGroupStatsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGroupStatsListCall) 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/{+projectName}/groupStats") + 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{ + "projectName": c.projectName, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "clouderrorreporting.projects.locations.groupStats.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *ListGroupStatsResponse.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 *ProjectsLocationsGroupStatsListCall) Do(opts ...googleapi.CallOption) (*ListGroupStatsResponse, 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 := &ListGroupStatsResponse{ + 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 *ProjectsLocationsGroupStatsListCall) Pages(ctx context.Context, f func(*ListGroupStatsResponse) 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 ProjectsLocationsGroupsGetCall struct { + s *Service + groupNameid string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Get the specified group. +// +// - groupName: The group resource name. Written as either +// `projects/{projectID}/groups/{group_id}` or +// `projects/{projectID}/locations/{location}/groups/{group_id}`. Call +// groupStats.list to return a list of groups belonging to this project. +// Examples: `projects/my-project-123/groups/my-group`, +// `projects/my-project-123/locations/global/groups/my-group` In the group +// resource name, the `group_id` is a unique identifier for a particular +// error group. The identifier is derived from key parts of the error-log +// content and is treated as Service Data. For information about how Service +// Data is handled, see Google Cloud Privacy Notice +// (https://cloud.google.com/terms/cloud-privacy-notice). For a list of +// supported locations, see Supported Regions +// (https://cloud.google.com/logging/docs/region-support). `global` is the +// default when unspecified. +func (r *ProjectsLocationsGroupsService) Get(groupNameid string) *ProjectsLocationsGroupsGetCall { + c := &ProjectsLocationsGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.groupNameid = groupNameid + 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 *ProjectsLocationsGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroupsGetCall { + 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 *ProjectsLocationsGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGroupsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsGroupsGetCall { + 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 *ProjectsLocationsGroupsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGroupsGetCall) 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/{+groupName}") + 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{ + "groupName": c.groupNameid, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "clouderrorreporting.projects.locations.groups.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *ErrorGroup.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 *ProjectsLocationsGroupsGetCall) Do(opts ...googleapi.CallOption) (*ErrorGroup, 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 := &ErrorGroup{ + 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 ProjectsLocationsGroupsUpdateCall struct { + s *Service + nameid string + errorgroup *ErrorGroup + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Update: Replace the data for the specified group. Fails if the group does +// not exist. +// +// - name: The group resource name. Written as +// `projects/{projectID}/groups/{group_id}` or +// `projects/{projectID}/locations/{location}/groups/{group_id}` Examples: +// `projects/my-project-123/groups/my-group`, +// `projects/my-project-123/locations/us-central1/groups/my-group` In the +// group resource name, the `group_id` is a unique identifier for a +// particular error group. The identifier is derived from key parts of the +// error-log content and is treated as Service Data. For information about +// how Service Data is handled, see Google Cloud Privacy Notice +// (https://cloud.google.com/terms/cloud-privacy-notice). For a list of +// supported locations, see Supported Regions +// (https://cloud.google.com/logging/docs/region-support). `global` is the +// default when unspecified. +func (r *ProjectsLocationsGroupsService) Update(nameid string, errorgroup *ErrorGroup) *ProjectsLocationsGroupsUpdateCall { + c := &ProjectsLocationsGroupsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.nameid = nameid + c.errorgroup = errorgroup + 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 *ProjectsLocationsGroupsUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroupsUpdateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsGroupsUpdateCall) Context(ctx context.Context) *ProjectsLocationsGroupsUpdateCall { + 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 *ProjectsLocationsGroupsUpdateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGroupsUpdateCall) 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.errorgroup) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("PUT", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.nameid, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "clouderrorreporting.projects.locations.groups.update" call. +// Any non-2xx status code is an error. Response headers are in either +// *ErrorGroup.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 *ProjectsLocationsGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*ErrorGroup, 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 := &ErrorGroup{ + 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 +} diff --git a/container/v1/container-gen.go b/container/v1/container-gen.go index b98ef0c08b..e844e3513d 100644 --- a/container/v1/container-gen.go +++ b/container/v1/container-gen.go @@ -5063,9 +5063,9 @@ type RayClusterLoggingConfig struct { NullFields []string `json:"-"` } -func (s *RayClusterLoggingConfig) MarshalJSON() ([]byte, error) { +func (s RayClusterLoggingConfig) MarshalJSON() ([]byte, error) { type NoMethod RayClusterLoggingConfig - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RayClusterMonitoringConfig: RayClusterMonitoringConfig specifies monitoring @@ -5086,9 +5086,9 @@ type RayClusterMonitoringConfig struct { NullFields []string `json:"-"` } -func (s *RayClusterMonitoringConfig) MarshalJSON() ([]byte, error) { +func (s RayClusterMonitoringConfig) MarshalJSON() ([]byte, error) { type NoMethod RayClusterMonitoringConfig - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RayOperatorConfig: Configuration options for the Ray Operator add-on. @@ -5113,9 +5113,9 @@ type RayOperatorConfig struct { NullFields []string `json:"-"` } -func (s *RayOperatorConfig) MarshalJSON() ([]byte, error) { +func (s RayOperatorConfig) MarshalJSON() ([]byte, error) { type NoMethod RayOperatorConfig - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RecurringTimeWindow: Represents an arbitrary window of time that recurs. diff --git a/container/v1beta1/container-gen.go b/container/v1beta1/container-gen.go index 9724ea6cb1..14b0414dd6 100644 --- a/container/v1beta1/container-gen.go +++ b/container/v1beta1/container-gen.go @@ -5666,9 +5666,9 @@ type RayClusterLoggingConfig struct { NullFields []string `json:"-"` } -func (s *RayClusterLoggingConfig) MarshalJSON() ([]byte, error) { +func (s RayClusterLoggingConfig) MarshalJSON() ([]byte, error) { type NoMethod RayClusterLoggingConfig - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RayClusterMonitoringConfig: RayClusterMonitoringConfig specifies monitoring @@ -5689,9 +5689,9 @@ type RayClusterMonitoringConfig struct { NullFields []string `json:"-"` } -func (s *RayClusterMonitoringConfig) MarshalJSON() ([]byte, error) { +func (s RayClusterMonitoringConfig) MarshalJSON() ([]byte, error) { type NoMethod RayClusterMonitoringConfig - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RayOperatorConfig: Configuration options for the Ray Operator add-on. @@ -5716,9 +5716,9 @@ type RayOperatorConfig struct { NullFields []string `json:"-"` } -func (s *RayOperatorConfig) MarshalJSON() ([]byte, error) { +func (s RayOperatorConfig) MarshalJSON() ([]byte, error) { type NoMethod RayOperatorConfig - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RecurringTimeWindow: Represents an arbitrary window of time that recurs. diff --git a/containeranalysis/v1/containeranalysis-api.json b/containeranalysis/v1/containeranalysis-api.json index a64e293658..15ae123630 100644 --- a/containeranalysis/v1/containeranalysis-api.json +++ b/containeranalysis/v1/containeranalysis-api.json @@ -1072,7 +1072,7 @@ } } }, - "revision": "20240625", + "revision": "20240704", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AliasContext": { @@ -2968,26 +2968,6 @@ }, "type": "object" }, - "ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation": { - "description": "Represents a storage location in Cloud Storage", - "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation", - "properties": { - "bucket": { - "description": "Cloud Storage bucket. See https://cloud.google.com/storage/docs/naming#requirements", - "type": "string" - }, - "generation": { - "description": "Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.", - "format": "int64", - "type": "string" - }, - "object": { - "description": "Cloud Storage object. See https://cloud.google.com/storage/docs/naming#objectnames", - "type": "string" - } - }, - "type": "object" - }, "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig": { "description": "GitConfig is a configuration for git operations.", "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig", @@ -3004,12 +2984,8 @@ "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig", "properties": { "proxySecretVersionName": { - "description": "SecretVersion resource of the HTTP proxy URL. The proxy URL should be in format protocol://@]proxyhost[:port].", + "description": "SecretVersion resource of the HTTP proxy URL. The Service Account used in the build (either the default Service Account or user-specified Service Account) should have `secretmanager.versions.access` permissions on this secret. The proxy URL should be in format `protocol://@]proxyhost[:port]`.", "type": "string" - }, - "proxySslCaInfo": { - "$ref": "ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation", - "description": "Optional. Cloud Storage object storing the certificate to use with the HTTP proxy." } }, "type": "object" @@ -3748,10 +3724,6 @@ "sbomStatus": { "$ref": "SBOMStatus", "description": "The status of an SBOM generation." - }, - "vulnerabilityAttestation": { - "$ref": "VulnerabilityAttestation", - "description": "The status of an vulnerability attestation generation." } }, "type": "object" @@ -5905,36 +5877,6 @@ }, "type": "object" }, - "VulnerabilityAttestation": { - "description": "The status of an vulnerability attestation generation.", - "id": "VulnerabilityAttestation", - "properties": { - "error": { - "description": "If failure, the error reason for why the attestation generation failed.", - "type": "string" - }, - "lastAttemptTime": { - "description": "The last time we attempted to generate an attestation.", - "format": "google-datetime", - "type": "string" - }, - "state": { - "description": "The success/failure state of the latest attestation attempt.", - "enum": [ - "VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED", - "SUCCESS", - "FAILURE" - ], - "enumDescriptions": [ - "Default unknown state.", - "Attestation was successfully generated and stored.", - "Attestation was unsuccessfully generated and stored." - ], - "type": "string" - } - }, - "type": "object" - }, "VulnerabilityNote": { "description": "A security vulnerability that can be found in resources.", "id": "VulnerabilityNote", diff --git a/containeranalysis/v1/containeranalysis-gen.go b/containeranalysis/v1/containeranalysis-gen.go index 09a94c1212..a9ac30fa69 100644 --- a/containeranalysis/v1/containeranalysis-gen.go +++ b/containeranalysis/v1/containeranalysis-gen.go @@ -2309,36 +2309,6 @@ func (s ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes) MarshalJSON() ([] return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation: Represents a storage -// location in Cloud Storage -type ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation struct { - // Bucket: Cloud Storage bucket. See - // https://cloud.google.com/storage/docs/naming#requirements - Bucket string `json:"bucket,omitempty"` - // Generation: Cloud Storage generation for the object. If the generation is - // omitted, the latest generation will be used. - Generation int64 `json:"generation,omitempty,string"` - // Object: Cloud Storage object. See - // https://cloud.google.com/storage/docs/naming#objectnames - Object string `json:"object,omitempty"` - // ForceSendFields is a list of field names (e.g. "Bucket") 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. "Bucket") 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 ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation) MarshalJSON() ([]byte, error) { - type NoMethod ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig: GitConfig is a // configuration for git operations. type ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig struct { @@ -2366,11 +2336,11 @@ func (s ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig) MarshalJSON() ([]b // is a configuration for HTTP related git operations. type ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig struct { // ProxySecretVersionName: SecretVersion resource of the HTTP proxy URL. The - // proxy URL should be in format protocol://@]proxyhost[:port]. + // Service Account used in the build (either the default Service Account or + // user-specified Service Account) should have `secretmanager.versions.access` + // permissions on this secret. The proxy URL should be in format + // `protocol://@]proxyhost[:port]`. ProxySecretVersionName string `json:"proxySecretVersionName,omitempty"` - // ProxySslCaInfo: Optional. Cloud Storage object storing the certificate to - // use with the HTTP proxy. - ProxySslCaInfo *ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation `json:"proxySslCaInfo,omitempty"` // ForceSendFields is a list of field names (e.g. "ProxySecretVersionName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -3286,9 +3256,6 @@ type DiscoveryOccurrence struct { LastScanTime string `json:"lastScanTime,omitempty"` // SbomStatus: The status of an SBOM generation. SbomStatus *SBOMStatus `json:"sbomStatus,omitempty"` - // VulnerabilityAttestation: The status of an vulnerability attestation - // generation. - VulnerabilityAttestation *VulnerabilityAttestation `json:"vulnerabilityAttestation,omitempty"` // ForceSendFields is a list of field names (e.g. "AnalysisCompleted") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See @@ -6097,39 +6064,6 @@ func (s VulnerabilityAssessmentNote) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// VulnerabilityAttestation: The status of an vulnerability attestation -// generation. -type VulnerabilityAttestation struct { - // Error: If failure, the error reason for why the attestation generation - // failed. - Error string `json:"error,omitempty"` - // LastAttemptTime: The last time we attempted to generate an attestation. - LastAttemptTime string `json:"lastAttemptTime,omitempty"` - // State: The success/failure state of the latest attestation attempt. - // - // Possible values: - // "VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED" - Default unknown state. - // "SUCCESS" - Attestation was successfully generated and stored. - // "FAILURE" - Attestation was unsuccessfully generated and stored. - State string `json:"state,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 - // 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. "Error") 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 VulnerabilityAttestation) MarshalJSON() ([]byte, error) { - type NoMethod VulnerabilityAttestation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // VulnerabilityNote: A security vulnerability that can be found in resources. type VulnerabilityNote struct { // CvssScore: The CVSS score of this vulnerability. CVSS score is on a scale of diff --git a/containeranalysis/v1alpha1/containeranalysis-api.json b/containeranalysis/v1alpha1/containeranalysis-api.json index d6062db034..974425258f 100644 --- a/containeranalysis/v1alpha1/containeranalysis-api.json +++ b/containeranalysis/v1alpha1/containeranalysis-api.json @@ -1240,7 +1240,7 @@ } } }, - "revision": "20240625", + "revision": "20240704", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AnalysisCompleted": { @@ -2942,26 +2942,6 @@ }, "type": "object" }, - "ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation": { - "description": "Represents a storage location in Cloud Storage", - "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation", - "properties": { - "bucket": { - "description": "Cloud Storage bucket. See https://cloud.google.com/storage/docs/naming#requirements", - "type": "string" - }, - "generation": { - "description": "Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.", - "format": "int64", - "type": "string" - }, - "object": { - "description": "Cloud Storage object. See https://cloud.google.com/storage/docs/naming#objectnames", - "type": "string" - } - }, - "type": "object" - }, "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig": { "description": "GitConfig is a configuration for git operations.", "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig", @@ -2978,12 +2958,8 @@ "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig", "properties": { "proxySecretVersionName": { - "description": "SecretVersion resource of the HTTP proxy URL. The proxy URL should be in format protocol://@]proxyhost[:port].", + "description": "SecretVersion resource of the HTTP proxy URL. The Service Account used in the build (either the default Service Account or user-specified Service Account) should have `secretmanager.versions.access` permissions on this secret. The proxy URL should be in format `protocol://@]proxyhost[:port]`.", "type": "string" - }, - "proxySslCaInfo": { - "$ref": "ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation", - "description": "Optional. Cloud Storage object storing the certificate to use with the HTTP proxy." } }, "type": "object" diff --git a/containeranalysis/v1alpha1/containeranalysis-gen.go b/containeranalysis/v1alpha1/containeranalysis-gen.go index eee3689587..bda9b1ea45 100644 --- a/containeranalysis/v1alpha1/containeranalysis-gen.go +++ b/containeranalysis/v1alpha1/containeranalysis-gen.go @@ -2146,36 +2146,6 @@ func (s ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes) MarshalJSON() ([] return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation: Represents a storage -// location in Cloud Storage -type ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation struct { - // Bucket: Cloud Storage bucket. See - // https://cloud.google.com/storage/docs/naming#requirements - Bucket string `json:"bucket,omitempty"` - // Generation: Cloud Storage generation for the object. If the generation is - // omitted, the latest generation will be used. - Generation int64 `json:"generation,omitempty,string"` - // Object: Cloud Storage object. See - // https://cloud.google.com/storage/docs/naming#objectnames - Object string `json:"object,omitempty"` - // ForceSendFields is a list of field names (e.g. "Bucket") 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. "Bucket") 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 ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation) MarshalJSON() ([]byte, error) { - type NoMethod ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig: GitConfig is a // configuration for git operations. type ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig struct { @@ -2203,11 +2173,11 @@ func (s ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig) MarshalJSON() ([]b // is a configuration for HTTP related git operations. type ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig struct { // ProxySecretVersionName: SecretVersion resource of the HTTP proxy URL. The - // proxy URL should be in format protocol://@]proxyhost[:port]. + // Service Account used in the build (either the default Service Account or + // user-specified Service Account) should have `secretmanager.versions.access` + // permissions on this secret. The proxy URL should be in format + // `protocol://@]proxyhost[:port]`. ProxySecretVersionName string `json:"proxySecretVersionName,omitempty"` - // ProxySslCaInfo: Optional. Cloud Storage object storing the certificate to - // use with the HTTP proxy. - ProxySslCaInfo *ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation `json:"proxySslCaInfo,omitempty"` // ForceSendFields is a list of field names (e.g. "ProxySecretVersionName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See diff --git a/containeranalysis/v1beta1/containeranalysis-api.json b/containeranalysis/v1beta1/containeranalysis-api.json index 2c65474ce8..c1be0320f8 100644 --- a/containeranalysis/v1beta1/containeranalysis-api.json +++ b/containeranalysis/v1beta1/containeranalysis-api.json @@ -1128,7 +1128,7 @@ } } }, - "revision": "20240614", + "revision": "20240704", "rootUrl": "https://containeranalysis.googleapis.com/", "schemas": { "AliasContext": { @@ -2924,26 +2924,6 @@ }, "type": "object" }, - "ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation": { - "description": "Represents a storage location in Cloud Storage", - "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation", - "properties": { - "bucket": { - "description": "Cloud Storage bucket. See https://cloud.google.com/storage/docs/naming#requirements", - "type": "string" - }, - "generation": { - "description": "Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.", - "format": "int64", - "type": "string" - }, - "object": { - "description": "Cloud Storage object. See https://cloud.google.com/storage/docs/naming#objectnames", - "type": "string" - } - }, - "type": "object" - }, "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig": { "description": "GitConfig is a configuration for git operations.", "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig", @@ -2960,12 +2940,8 @@ "id": "ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig", "properties": { "proxySecretVersionName": { - "description": "SecretVersion resource of the HTTP proxy URL. The proxy URL should be in format protocol://@]proxyhost[:port].", + "description": "SecretVersion resource of the HTTP proxy URL. The Service Account used in the build (either the default Service Account or user-specified Service Account) should have `secretmanager.versions.access` permissions on this secret. The proxy URL should be in format `protocol://@]proxyhost[:port]`.", "type": "string" - }, - "proxySslCaInfo": { - "$ref": "ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation", - "description": "Optional. Cloud Storage object storing the certificate to use with the HTTP proxy." } }, "type": "object" diff --git a/containeranalysis/v1beta1/containeranalysis-gen.go b/containeranalysis/v1beta1/containeranalysis-gen.go index 7abd51c141..103610a542 100644 --- a/containeranalysis/v1beta1/containeranalysis-gen.go +++ b/containeranalysis/v1beta1/containeranalysis-gen.go @@ -2212,36 +2212,6 @@ func (s ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes) MarshalJSON() ([] return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation: Represents a storage -// location in Cloud Storage -type ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation struct { - // Bucket: Cloud Storage bucket. See - // https://cloud.google.com/storage/docs/naming#requirements - Bucket string `json:"bucket,omitempty"` - // Generation: Cloud Storage generation for the object. If the generation is - // omitted, the latest generation will be used. - Generation int64 `json:"generation,omitempty,string"` - // Object: Cloud Storage object. See - // https://cloud.google.com/storage/docs/naming#objectnames - Object string `json:"object,omitempty"` - // ForceSendFields is a list of field names (e.g. "Bucket") 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. "Bucket") 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 ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation) MarshalJSON() ([]byte, error) { - type NoMethod ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig: GitConfig is a // configuration for git operations. type ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig struct { @@ -2269,11 +2239,11 @@ func (s ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfig) MarshalJSON() ([]b // is a configuration for HTTP related git operations. type ContaineranalysisGoogleDevtoolsCloudbuildV1GitConfigHttpConfig struct { // ProxySecretVersionName: SecretVersion resource of the HTTP proxy URL. The - // proxy URL should be in format protocol://@]proxyhost[:port]. + // Service Account used in the build (either the default Service Account or + // user-specified Service Account) should have `secretmanager.versions.access` + // permissions on this secret. The proxy URL should be in format + // `protocol://@]proxyhost[:port]`. ProxySecretVersionName string `json:"proxySecretVersionName,omitempty"` - // ProxySslCaInfo: Optional. Cloud Storage object storing the certificate to - // use with the HTTP proxy. - ProxySslCaInfo *ContaineranalysisGoogleDevtoolsCloudbuildV1GCSLocation `json:"proxySslCaInfo,omitempty"` // ForceSendFields is a list of field names (e.g. "ProxySecretVersionName") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See diff --git a/datafusion/v1/datafusion-gen.go b/datafusion/v1/datafusion-gen.go index 2bd85774a1..89f4181ff8 100644 --- a/datafusion/v1/datafusion-gen.go +++ b/datafusion/v1/datafusion-gen.go @@ -293,9 +293,9 @@ type AssetLocation struct { NullFields []string `json:"-"` } -func (s *AssetLocation) MarshalJSON() ([]byte, error) { +func (s AssetLocation) MarshalJSON() ([]byte, error) { type NoMethod AssetLocation - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AuditConfig: Specifies the audit configuration for a service. The @@ -490,9 +490,9 @@ type BlobstoreLocation struct { NullFields []string `json:"-"` } -func (s *BlobstoreLocation) MarshalJSON() ([]byte, error) { +func (s BlobstoreLocation) MarshalJSON() ([]byte, error) { type NoMethod BlobstoreLocation - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CancelOperationRequest: The request message for Operations.CancelOperation. @@ -515,9 +515,9 @@ type CloudAsset struct { NullFields []string `json:"-"` } -func (s *CloudAsset) MarshalJSON() ([]byte, error) { +func (s CloudAsset) MarshalJSON() ([]byte, error) { type NoMethod CloudAsset - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CloudAssetComposition struct { @@ -535,9 +535,9 @@ type CloudAssetComposition struct { NullFields []string `json:"-"` } -func (s *CloudAssetComposition) MarshalJSON() ([]byte, error) { +func (s CloudAssetComposition) MarshalJSON() ([]byte, error) { type NoMethod CloudAssetComposition - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CryptoKeyConfig: The crypto key configuration. This field is used by the @@ -580,9 +580,9 @@ type DirectLocationAssignment struct { NullFields []string `json:"-"` } -func (s *DirectLocationAssignment) MarshalJSON() ([]byte, error) { +func (s DirectLocationAssignment) MarshalJSON() ([]byte, error) { type NoMethod DirectLocationAssignment - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DnsPeering: DNS peering configuration. These configurations are used to @@ -724,9 +724,9 @@ type ExtraParameter struct { NullFields []string `json:"-"` } -func (s *ExtraParameter) MarshalJSON() ([]byte, error) { +func (s ExtraParameter) MarshalJSON() ([]byte, error) { type NoMethod ExtraParameter - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Instance: Represents a Data Fusion instance. @@ -944,9 +944,9 @@ type IsolationExpectations struct { NullFields []string `json:"-"` } -func (s *IsolationExpectations) MarshalJSON() ([]byte, error) { +func (s IsolationExpectations) MarshalJSON() ([]byte, error) { type NoMethod IsolationExpectations - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListAvailableVersionsResponse: Response message for the list available @@ -1156,9 +1156,9 @@ type LocationAssignment struct { NullFields []string `json:"-"` } -func (s *LocationAssignment) MarshalJSON() ([]byte, error) { +func (s LocationAssignment) MarshalJSON() ([]byte, error) { type NoMethod LocationAssignment - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type LocationData struct { @@ -1181,9 +1181,9 @@ type LocationData struct { NullFields []string `json:"-"` } -func (s *LocationData) MarshalJSON() ([]byte, error) { +func (s LocationData) MarshalJSON() ([]byte, error) { type NoMethod LocationData - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MaintenancePolicy: Maintenance policy of the instance. @@ -1399,9 +1399,9 @@ type PlacerLocation struct { NullFields []string `json:"-"` } -func (s *PlacerLocation) MarshalJSON() ([]byte, error) { +func (s PlacerLocation) MarshalJSON() ([]byte, error) { type NoMethod PlacerLocation - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Policy: An Identity and Access Management (IAM) policy, which specifies @@ -1594,9 +1594,9 @@ type RegionalMigDistributionPolicy struct { NullFields []string `json:"-"` } -func (s *RegionalMigDistributionPolicy) MarshalJSON() ([]byte, error) { +func (s RegionalMigDistributionPolicy) MarshalJSON() ([]byte, error) { type NoMethod RegionalMigDistributionPolicy - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RestartInstanceRequest: Request message for restarting a Data Fusion @@ -1652,9 +1652,9 @@ type SpannerLocation struct { NullFields []string `json:"-"` } -func (s *SpannerLocation) MarshalJSON() ([]byte, error) { +func (s SpannerLocation) MarshalJSON() ([]byte, error) { type NoMethod SpannerLocation - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Status: The `Status` type defines a logical error model that is suitable for @@ -1706,9 +1706,9 @@ type TenantProjectProxy struct { NullFields []string `json:"-"` } -func (s *TenantProjectProxy) MarshalJSON() ([]byte, error) { +func (s TenantProjectProxy) MarshalJSON() ([]byte, error) { type NoMethod TenantProjectProxy - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TestIamPermissionsRequest: Request message for `TestIamPermissions` method. @@ -1844,9 +1844,9 @@ type ZoneConfiguration struct { NullFields []string `json:"-"` } -func (s *ZoneConfiguration) MarshalJSON() ([]byte, error) { +func (s ZoneConfiguration) MarshalJSON() ([]byte, error) { type NoMethod ZoneConfiguration - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ProjectsLocationsGetCall struct { diff --git a/datafusion/v1beta1/datafusion-gen.go b/datafusion/v1beta1/datafusion-gen.go index 35797a7a5d..35c05a8fa3 100644 --- a/datafusion/v1beta1/datafusion-gen.go +++ b/datafusion/v1beta1/datafusion-gen.go @@ -305,9 +305,9 @@ type AssetLocation struct { NullFields []string `json:"-"` } -func (s *AssetLocation) MarshalJSON() ([]byte, error) { +func (s AssetLocation) MarshalJSON() ([]byte, error) { type NoMethod AssetLocation - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AuditConfig: Specifies the audit configuration for a service. The @@ -502,9 +502,9 @@ type BlobstoreLocation struct { NullFields []string `json:"-"` } -func (s *BlobstoreLocation) MarshalJSON() ([]byte, error) { +func (s BlobstoreLocation) MarshalJSON() ([]byte, error) { type NoMethod BlobstoreLocation - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CancelOperationRequest: The request message for Operations.CancelOperation. @@ -527,9 +527,9 @@ type CloudAsset struct { NullFields []string `json:"-"` } -func (s *CloudAsset) MarshalJSON() ([]byte, error) { +func (s CloudAsset) MarshalJSON() ([]byte, error) { type NoMethod CloudAsset - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type CloudAssetComposition struct { @@ -547,9 +547,9 @@ type CloudAssetComposition struct { NullFields []string `json:"-"` } -func (s *CloudAssetComposition) MarshalJSON() ([]byte, error) { +func (s CloudAssetComposition) MarshalJSON() ([]byte, error) { type NoMethod CloudAssetComposition - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // CryptoKeyConfig: The crypto key configuration. This field is used by the @@ -592,9 +592,9 @@ type DirectLocationAssignment struct { NullFields []string `json:"-"` } -func (s *DirectLocationAssignment) MarshalJSON() ([]byte, error) { +func (s DirectLocationAssignment) MarshalJSON() ([]byte, error) { type NoMethod DirectLocationAssignment - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // DnsPeering: DNS peering configuration. These configurations are used to @@ -736,9 +736,9 @@ type ExtraParameter struct { NullFields []string `json:"-"` } -func (s *ExtraParameter) MarshalJSON() ([]byte, error) { +func (s ExtraParameter) MarshalJSON() ([]byte, error) { type NoMethod ExtraParameter - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // IAMPolicy: IAMPolicy encapsulates the IAM policy name, definition and status @@ -981,9 +981,9 @@ type IsolationExpectations struct { NullFields []string `json:"-"` } -func (s *IsolationExpectations) MarshalJSON() ([]byte, error) { +func (s IsolationExpectations) MarshalJSON() ([]byte, error) { type NoMethod IsolationExpectations - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // ListAvailableVersionsResponse: Response message for the list available @@ -1221,9 +1221,9 @@ type LocationAssignment struct { NullFields []string `json:"-"` } -func (s *LocationAssignment) MarshalJSON() ([]byte, error) { +func (s LocationAssignment) MarshalJSON() ([]byte, error) { type NoMethod LocationAssignment - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type LocationData struct { @@ -1246,9 +1246,9 @@ type LocationData struct { NullFields []string `json:"-"` } -func (s *LocationData) MarshalJSON() ([]byte, error) { +func (s LocationData) MarshalJSON() ([]byte, error) { type NoMethod LocationData - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // MaintenancePolicy: Maintenance policy of the instance. @@ -1488,9 +1488,9 @@ type PlacerLocation struct { NullFields []string `json:"-"` } -func (s *PlacerLocation) MarshalJSON() ([]byte, error) { +func (s PlacerLocation) MarshalJSON() ([]byte, error) { type NoMethod PlacerLocation - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Policy: An Identity and Access Management (IAM) policy, which specifies @@ -1683,9 +1683,9 @@ type RegionalMigDistributionPolicy struct { NullFields []string `json:"-"` } -func (s *RegionalMigDistributionPolicy) MarshalJSON() ([]byte, error) { +func (s RegionalMigDistributionPolicy) MarshalJSON() ([]byte, error) { type NoMethod RegionalMigDistributionPolicy - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // RemoveIamPolicyRequest: Request message for RemoveIamPolicy method. @@ -1751,9 +1751,9 @@ type SpannerLocation struct { NullFields []string `json:"-"` } -func (s *SpannerLocation) MarshalJSON() ([]byte, error) { +func (s SpannerLocation) MarshalJSON() ([]byte, error) { type NoMethod SpannerLocation - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Status: The `Status` type defines a logical error model that is suitable for @@ -1805,9 +1805,9 @@ type TenantProjectProxy struct { NullFields []string `json:"-"` } -func (s *TenantProjectProxy) MarshalJSON() ([]byte, error) { +func (s TenantProjectProxy) MarshalJSON() ([]byte, error) { type NoMethod TenantProjectProxy - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // TestIamPermissionsRequest: Request message for `TestIamPermissions` method. @@ -1947,9 +1947,9 @@ type ZoneConfiguration struct { NullFields []string `json:"-"` } -func (s *ZoneConfiguration) MarshalJSON() ([]byte, error) { +func (s ZoneConfiguration) MarshalJSON() ([]byte, error) { type NoMethod ZoneConfiguration - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } type ProjectsLocationsGetCall struct { diff --git a/dlp/v2/dlp-gen.go b/dlp/v2/dlp-gen.go index 30377fdec4..f724e41d83 100644 --- a/dlp/v2/dlp-gen.go +++ b/dlp/v2/dlp-gen.go @@ -1518,9 +1518,9 @@ type GooglePrivacyDlpV2CloudStorageDiscoveryTarget struct { NullFields []string `json:"-"` } -func (s *GooglePrivacyDlpV2CloudStorageDiscoveryTarget) MarshalJSON() ([]byte, error) { +func (s GooglePrivacyDlpV2CloudStorageDiscoveryTarget) MarshalJSON() ([]byte, error) { type NoMethod GooglePrivacyDlpV2CloudStorageDiscoveryTarget - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GooglePrivacyDlpV2CloudStorageFileSet: Message representing a set of files @@ -1691,9 +1691,9 @@ type GooglePrivacyDlpV2CloudStorageRegex struct { NullFields []string `json:"-"` } -func (s *GooglePrivacyDlpV2CloudStorageRegex) MarshalJSON() ([]byte, error) { +func (s GooglePrivacyDlpV2CloudStorageRegex) MarshalJSON() ([]byte, error) { type NoMethod GooglePrivacyDlpV2CloudStorageRegex - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GooglePrivacyDlpV2CloudStorageRegexFileSet: Message representing a set of @@ -1773,9 +1773,9 @@ type GooglePrivacyDlpV2CloudStorageResourceReference struct { NullFields []string `json:"-"` } -func (s *GooglePrivacyDlpV2CloudStorageResourceReference) MarshalJSON() ([]byte, error) { +func (s GooglePrivacyDlpV2CloudStorageResourceReference) MarshalJSON() ([]byte, error) { type NoMethod GooglePrivacyDlpV2CloudStorageResourceReference - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GooglePrivacyDlpV2Color: Represents a color in the RGB color space. @@ -3989,9 +3989,9 @@ type GooglePrivacyDlpV2DiscoveryCloudStorageConditions struct { NullFields []string `json:"-"` } -func (s *GooglePrivacyDlpV2DiscoveryCloudStorageConditions) MarshalJSON() ([]byte, error) { +func (s GooglePrivacyDlpV2DiscoveryCloudStorageConditions) MarshalJSON() ([]byte, error) { type NoMethod GooglePrivacyDlpV2DiscoveryCloudStorageConditions - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GooglePrivacyDlpV2DiscoveryCloudStorageFilter: Determines which buckets will @@ -4025,9 +4025,9 @@ type GooglePrivacyDlpV2DiscoveryCloudStorageFilter struct { NullFields []string `json:"-"` } -func (s *GooglePrivacyDlpV2DiscoveryCloudStorageFilter) MarshalJSON() ([]byte, error) { +func (s GooglePrivacyDlpV2DiscoveryCloudStorageFilter) MarshalJSON() ([]byte, error) { type NoMethod GooglePrivacyDlpV2DiscoveryCloudStorageFilter - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GooglePrivacyDlpV2DiscoveryCloudStorageGenerationCadence: How often existing @@ -4066,9 +4066,9 @@ type GooglePrivacyDlpV2DiscoveryCloudStorageGenerationCadence struct { NullFields []string `json:"-"` } -func (s *GooglePrivacyDlpV2DiscoveryCloudStorageGenerationCadence) MarshalJSON() ([]byte, error) { +func (s GooglePrivacyDlpV2DiscoveryCloudStorageGenerationCadence) MarshalJSON() ([]byte, error) { type NoMethod GooglePrivacyDlpV2DiscoveryCloudStorageGenerationCadence - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GooglePrivacyDlpV2DiscoveryConfig: Configuration for discovery to scan @@ -4166,9 +4166,9 @@ type GooglePrivacyDlpV2DiscoveryFileStoreConditions struct { NullFields []string `json:"-"` } -func (s *GooglePrivacyDlpV2DiscoveryFileStoreConditions) MarshalJSON() ([]byte, error) { +func (s GooglePrivacyDlpV2DiscoveryFileStoreConditions) MarshalJSON() ([]byte, error) { type NoMethod GooglePrivacyDlpV2DiscoveryFileStoreConditions - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GooglePrivacyDlpV2DiscoveryGenerationCadence: What must take place for a @@ -4233,9 +4233,9 @@ type GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence struct { NullFields []string `json:"-"` } -func (s *GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence) MarshalJSON() ([]byte, error) { +func (s GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence) MarshalJSON() ([]byte, error) { type NoMethod GooglePrivacyDlpV2DiscoveryInspectTemplateModifiedCadence - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GooglePrivacyDlpV2DiscoverySchemaModifiedCadence: The cadence at which to @@ -4915,9 +4915,9 @@ type GooglePrivacyDlpV2FileStoreCollection struct { NullFields []string `json:"-"` } -func (s *GooglePrivacyDlpV2FileStoreCollection) MarshalJSON() ([]byte, error) { +func (s GooglePrivacyDlpV2FileStoreCollection) MarshalJSON() ([]byte, error) { type NoMethod GooglePrivacyDlpV2FileStoreCollection - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GooglePrivacyDlpV2FileStoreDataProfile: The profile for a file store. * @@ -5063,9 +5063,9 @@ type GooglePrivacyDlpV2FileStoreRegex struct { NullFields []string `json:"-"` } -func (s *GooglePrivacyDlpV2FileStoreRegex) MarshalJSON() ([]byte, error) { +func (s GooglePrivacyDlpV2FileStoreRegex) MarshalJSON() ([]byte, error) { type NoMethod GooglePrivacyDlpV2FileStoreRegex - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GooglePrivacyDlpV2FileStoreRegexes: A collection of regular expressions to @@ -5088,9 +5088,9 @@ type GooglePrivacyDlpV2FileStoreRegexes struct { NullFields []string `json:"-"` } -func (s *GooglePrivacyDlpV2FileStoreRegexes) MarshalJSON() ([]byte, error) { +func (s GooglePrivacyDlpV2FileStoreRegexes) MarshalJSON() ([]byte, error) { type NoMethod GooglePrivacyDlpV2FileStoreRegexes - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // GooglePrivacyDlpV2Finding: Represents a piece of potentially sensitive diff --git a/firebaseappcheck/v1/firebaseappcheck-api.json b/firebaseappcheck/v1/firebaseappcheck-api.json index 93d759c700..af417cfe54 100644 --- a/firebaseappcheck/v1/firebaseappcheck-api.json +++ b/firebaseappcheck/v1/firebaseappcheck-api.json @@ -1458,12 +1458,210 @@ "https://www.googleapis.com/auth/firebase" ] } + }, + "resources": { + "resourcePolicies": { + "methods": { + "batchUpdate": { + "description": "Atomically updates the specified ResourcePolicy configurations.", + "flatPath": "v1/projects/{projectsId}/services/{servicesId}/resourcePolicies:batchUpdate", + "httpMethod": "POST", + "id": "firebaseappcheck.projects.services.resourcePolicies.batchUpdate", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent service name, in the format ``` projects/{project_number}/services/{service_id} ``` The parent collection in the `name` field of any resource being updated must match this field, or the entire batch fails.", + "location": "path", + "pattern": "^projects/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/resourcePolicies:batchUpdate", + "request": { + "$ref": "GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest" + }, + "response": { + "$ref": "GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "create": { + "description": "Creates the specified ResourcePolicy configuration.", + "flatPath": "v1/projects/{projectsId}/services/{servicesId}/resourcePolicies", + "httpMethod": "POST", + "id": "firebaseappcheck.projects.services.resourcePolicies.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The relative resource name of the parent Service in which the specified ResourcePolicy will be created, in the format: ``` projects/{project_number}/services/{service_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `oauth2.googleapis.com` (Google Identity for iOS)", + "location": "path", + "pattern": "^projects/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/resourcePolicies", + "request": { + "$ref": "GoogleFirebaseAppcheckV1ResourcePolicy" + }, + "response": { + "$ref": "GoogleFirebaseAppcheckV1ResourcePolicy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "delete": { + "description": "Deletes the specified ResourcePolicy configuration.", + "flatPath": "v1/projects/{projectsId}/services/{servicesId}/resourcePolicies/{resourcePoliciesId}", + "httpMethod": "DELETE", + "id": "firebaseappcheck.projects.services.resourcePolicies.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "etag": { + "description": "The checksum to be validated against the current ResourcePolicy, to ensure the client has an up-to-date value before proceeding. This checksum is computed by the server based on the values of fields in the ResourcePolicy object, and can be obtained from the ResourcePolicy object received from the last CreateResourcePolicy, GetResourcePolicy, ListResourcePolicies, UpdateResourcePolicy, or BatchUpdateResourcePolicies call. This etag is strongly validated as defined by RFC 7232.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The relative resource name of the ResourcePolicy to delete, in the format: ``` projects/{project_number}/services/{service_id}/resourcePolicies/{resource_policy_id} ```", + "location": "path", + "pattern": "^projects/[^/]+/services/[^/]+/resourcePolicies/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleProtobufEmpty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "get": { + "description": "Gets the requested ResourcePolicy configuration.", + "flatPath": "v1/projects/{projectsId}/services/{servicesId}/resourcePolicies/{resourcePoliciesId}", + "httpMethod": "GET", + "id": "firebaseappcheck.projects.services.resourcePolicies.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The relative resource name of the ResourcePolicy to retrieve, in the format: ``` projects/{project_number}/services/{service_id}/resourcePolicies/{resource_policy_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `oauth2.googleapis.com` (Google Identity for iOS)", + "location": "path", + "pattern": "^projects/[^/]+/services/[^/]+/resourcePolicies/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "GoogleFirebaseAppcheckV1ResourcePolicy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "list": { + "description": "Lists all ResourcePolicy configurations for the specified project and service.", + "flatPath": "v1/projects/{projectsId}/services/{servicesId}/resourcePolicies", + "httpMethod": "GET", + "id": "firebaseappcheck.projects.services.resourcePolicies.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Optional. Filters the results by the specified rule. For the exact syntax of this field, please consult the [AIP-160](https://google.aip.dev/160) standard. Currently, since the only fields in the ResourcePolicy resource are the scalar fields `enforcement_mode` and `target_resource`, this method does not support the traversal operator (`.`) or the has operator (`:`). Here are some examples of valid filters: * `enforcement_mode = ENFORCED` * `target_resource = \"//oauth2.googleapis.com/projects/12345/oauthClients/\"` * `enforcement_mode = ENFORCED AND target_resource = \"//oauth2.googleapis.com/projects/12345/oauthClients/\"`", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of ResourcePolicy objects to return in the response. The server may return fewer than this at its own discretion. If no value is specified (or too large a value is specified), the server will impose its own limit.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Token returned from a previous call to ListResourcePolicies indicating where in the set of ResourcePolicy objects to resume listing. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListResourcePolicies must match the call that provided the page token; if they do not match, the result is undefined.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The relative resource name of the parent Service for which to list each associated ResourcePolicy, in the format: ``` projects/{project_number}/services/{service_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `oauth2.googleapis.com` (Google Identity for iOS)", + "location": "path", + "pattern": "^projects/[^/]+/services/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/resourcePolicies", + "response": { + "$ref": "GoogleFirebaseAppcheckV1ListResourcePoliciesResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "patch": { + "description": "Updates the specified ResourcePolicy configuration.", + "flatPath": "v1/projects/{projectsId}/services/{servicesId}/resourcePolicies/{resourcePoliciesId}", + "httpMethod": "PATCH", + "id": "firebaseappcheck.projects.services.resourcePolicies.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Identifier. The relative name of the resource policy object, in the format: ``` projects/{project_number}/services/{service_id}/resourcePolicies/{resource_policy_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `oauth2.googleapis.com` (Google Identity for iOS) `resource_policy_id` is a system-generated UID.", + "location": "path", + "pattern": "^projects/[^/]+/services/[^/]+/resourcePolicies/[^/]+$", + "required": true, + "type": "string" + }, + "updateMask": { + "description": "Required. A comma-separated list of names of fields in the ResourcePolicy to update. Example: `enforcement_mode`.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "GoogleFirebaseAppcheckV1ResourcePolicy" + }, + "response": { + "$ref": "GoogleFirebaseAppcheckV1ResourcePolicy" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + } + } + } } } } } }, - "revision": "20240524", + "revision": "20240708", "rootUrl": "https://firebaseappcheck.googleapis.com/", "schemas": { "GoogleFirebaseAppcheckV1AppAttestConfig": { @@ -1583,6 +1781,39 @@ }, "type": "object" }, + "GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest": { + "description": "Request message for the BatchUpdateResourcePolicies method.", + "id": "GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest", + "properties": { + "requests": { + "description": "Required. The request messages specifying the ResourcePolicy objects to update. A maximum of 100 objects can be updated in a batch.", + "items": { + "$ref": "GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest" + }, + "type": "array" + }, + "updateMask": { + "description": "Optional. A comma-separated list of names of fields in the ResourcePolicy objects to update. Example: `enforcement_mode`. If this field is present, the `update_mask` field in the UpdateResourcePolicyRequest messages must all match this field, or the entire batch fails and no updates will be committed.", + "format": "google-fieldmask", + "type": "string" + } + }, + "type": "object" + }, + "GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponse": { + "description": "Response message for the BatchUpdateResourcePolicies method.", + "id": "GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponse", + "properties": { + "resourcePolicies": { + "description": "ResourcePolicy objects after the updates have been applied.", + "items": { + "$ref": "GoogleFirebaseAppcheckV1ResourcePolicy" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleFirebaseAppcheckV1BatchUpdateServicesRequest": { "description": "Request message for the BatchUpdateServices method.", "id": "GoogleFirebaseAppcheckV1BatchUpdateServicesRequest", @@ -1903,6 +2134,24 @@ }, "type": "object" }, + "GoogleFirebaseAppcheckV1ListResourcePoliciesResponse": { + "description": "Response message for the ListResourcePolicies method.", + "id": "GoogleFirebaseAppcheckV1ListResourcePoliciesResponse", + "properties": { + "nextPageToken": { + "description": "If the result list is too large to fit in a single response, then a token is returned. If the string is empty or omitted, then this response is the last page of results. This token can be used in a subsequent call to ListResourcePolicies to find the next group of ResourcePolicy objects. Page tokens are short-lived and should not be persisted.", + "type": "string" + }, + "resourcePolicies": { + "description": "The ResourcePolicy objects retrieved.", + "items": { + "$ref": "GoogleFirebaseAppcheckV1ResourcePolicy" + }, + "type": "array" + } + }, + "type": "object" + }, "GoogleFirebaseAppcheckV1ListServicesResponse": { "description": "Response message for the ListServices method.", "id": "GoogleFirebaseAppcheckV1ListServicesResponse", @@ -2027,6 +2276,45 @@ }, "type": "object" }, + "GoogleFirebaseAppcheckV1ResourcePolicy": { + "description": "App Check enforcement policy for a specific resource of a Firebase service supported by App Check. Note that this policy will override the service-level configuration.", + "id": "GoogleFirebaseAppcheckV1ResourcePolicy", + "properties": { + "enforcementMode": { + "description": "Required. The App Check enforcement mode for this resource. This will override the EnforcementMode setting on the service.", + "enum": [ + "OFF", + "UNENFORCED", + "ENFORCED" + ], + "enumDescriptions": [ + "Firebase App Check is not enforced for the service, nor are App Check metrics collected. Though the service is not protected by App Check in this mode, other applicable protections, such as user authorization, are still enforced. An unconfigured service is in this mode by default.", + "Firebase App Check is not enforced for the service. App Check metrics are collected to help you decide when to turn on enforcement for the service. Though the service is not protected by App Check in this mode, other applicable protections, such as user authorization, are still enforced. Some services require certain conditions to be met before they will work with App Check, such as requiring you to upgrade to a specific service tier. Until those requirements are met for a service, this `UNENFORCED` setting will have no effect and App Check will not work with that service.", + "Firebase App Check is enforced for the service. The service will reject any request that attempts to access your project's resources if it does not have valid App Check token attached, with some exceptions depending on the service; for example, some services will still allow requests bearing the developer's privileged service account credentials without an App Check token. App Check metrics continue to be collected to help you detect issues with your App Check integration and monitor the composition of your callers. While the service is protected by App Check, other applicable protections, such as user authorization, continue to be enforced at the same time. Use caution when choosing to enforce App Check on a Firebase service. If your users have not updated to an App Check capable version of your app, their apps will no longer be able to use your Firebase services that are enforcing App Check. App Check metrics can help you decide whether to enforce App Check on your Firebase services. If your app has not launched yet, you should enable enforcement immediately, since there are no outdated clients in use. Some services require certain conditions to be met before they will work with App Check, such as requiring you to upgrade to a specific service tier. Until those requirements are met for a service, this `ENFORCED` setting will have no effect and App Check will not work with that service." + ], + "type": "string" + }, + "etag": { + "description": "This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. This etag is strongly validated as defined by RFC 7232.", + "type": "string" + }, + "name": { + "description": "Required. Identifier. The relative name of the resource policy object, in the format: ``` projects/{project_number}/services/{service_id}/resourcePolicies/{resource_policy_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `oauth2.googleapis.com` (Google Identity for iOS) `resource_policy_id` is a system-generated UID.", + "type": "string" + }, + "targetResource": { + "description": "Required. Service specific name of the resource object to which this policy applies, in the format: * `//oauth2.googleapis.com/projects/{project_number}/oauthClients/{oauth_client_id}` (Google Identity for iOS) Note that the resource must belong to the service specified in the `name` and be from the same project as this policy, but the resource is allowed to be missing at the time of creation of this policy; in that case, we make a best-effort attempt at respecting this policy, but it may not have any effect until the resource is fully created.", + "type": "string" + }, + "updateTime": { + "description": "Output only. Timestamp when this resource policy configuration object was most recently updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleFirebaseAppcheckV1SafetyNetConfig": { "deprecated": true, "description": "An app's SafetyNet configuration object. This configuration controls certain properties of the `AppCheckToken` returned by ExchangeSafetyNetToken, such as its ttl. Note that your registered SHA-256 certificate fingerprints are used to validate tokens issued by SafetyNet; please register them via the Firebase Console or programmatically via the [Firebase Management Service](https://firebase.google.com/docs/projects/api/reference/rest/v11/projects.androidApps.sha/create).", @@ -2069,6 +2357,22 @@ }, "type": "object" }, + "GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest": { + "description": "Request message for the UpdateResourcePolicy method as well as an individual update message for the BatchUpdateResourcePolicies method.", + "id": "GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest", + "properties": { + "resourcePolicy": { + "$ref": "GoogleFirebaseAppcheckV1ResourcePolicy", + "description": "Required. The ResourcePolicy to update. The ResourcePolicy's `name` field is used to identify the ResourcePolicy to be updated, in the format: ``` projects/{project_number}/services/{service_id}/resourcePolicies/{resource_policy_id} ``` Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: * `oauth2.googleapis.com` (Google Identity for iOS)" + }, + "updateMask": { + "description": "Required. A comma-separated list of names of fields in the ResourcePolicy to update. Example: `enforcement_mode`.", + "format": "google-fieldmask", + "type": "string" + } + }, + "type": "object" + }, "GoogleFirebaseAppcheckV1UpdateServiceRequest": { "description": "Request message for the UpdateService method as well as an individual update message for the BatchUpdateServices method.", "id": "GoogleFirebaseAppcheckV1UpdateServiceRequest", diff --git a/firebaseappcheck/v1/firebaseappcheck-gen.go b/firebaseappcheck/v1/firebaseappcheck-gen.go index 95ee8b71ea..fece356d9b 100644 --- a/firebaseappcheck/v1/firebaseappcheck-gen.go +++ b/firebaseappcheck/v1/firebaseappcheck-gen.go @@ -297,11 +297,23 @@ type ProjectsAppsSafetyNetConfigService struct { func NewProjectsServicesService(s *Service) *ProjectsServicesService { rs := &ProjectsServicesService{s: s} + rs.ResourcePolicies = NewProjectsServicesResourcePoliciesService(s) return rs } type ProjectsServicesService struct { s *Service + + ResourcePolicies *ProjectsServicesResourcePoliciesService +} + +func NewProjectsServicesResourcePoliciesService(s *Service) *ProjectsServicesResourcePoliciesService { + rs := &ProjectsServicesResourcePoliciesService{s: s} + return rs +} + +type ProjectsServicesResourcePoliciesService struct { + s *Service } // GoogleFirebaseAppcheckV1AppAttestConfig: An app's App Attest configuration @@ -535,6 +547,63 @@ func (s GoogleFirebaseAppcheckV1BatchGetSafetyNetConfigsResponse) MarshalJSON() return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest: Request message +// for the BatchUpdateResourcePolicies method. +type GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest struct { + // Requests: Required. The request messages specifying the ResourcePolicy + // objects to update. A maximum of 100 objects can be updated in a batch. + Requests []*GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest `json:"requests,omitempty"` + // UpdateMask: Optional. A comma-separated list of names of fields in the + // ResourcePolicy objects to update. Example: `enforcement_mode`. If this field + // is present, the `update_mask` field in the UpdateResourcePolicyRequest + // messages must all match this field, or the entire batch fails and no updates + // will be committed. + UpdateMask string `json:"updateMask,omitempty"` + // ForceSendFields is a list of field names (e.g. "Requests") 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. "Requests") 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 GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponse: Response +// message for the BatchUpdateResourcePolicies method. +type GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponse struct { + // ResourcePolicies: ResourcePolicy objects after the updates have been + // applied. + ResourcePolicies []*GoogleFirebaseAppcheckV1ResourcePolicy `json:"resourcePolicies,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "ResourcePolicies") 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. "ResourcePolicies") 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 GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleFirebaseAppcheckV1BatchUpdateServicesRequest: Request message for the // BatchUpdateServices method. type GoogleFirebaseAppcheckV1BatchUpdateServicesRequest struct { @@ -1093,6 +1162,38 @@ func (s GoogleFirebaseAppcheckV1ListDebugTokensResponse) MarshalJSON() ([]byte, return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleFirebaseAppcheckV1ListResourcePoliciesResponse: Response message for +// the ListResourcePolicies method. +type GoogleFirebaseAppcheckV1ListResourcePoliciesResponse struct { + // NextPageToken: If the result list is too large to fit in a single response, + // then a token is returned. If the string is empty or omitted, then this + // response is the last page of results. This token can be used in a subsequent + // call to ListResourcePolicies to find the next group of ResourcePolicy + // objects. Page tokens are short-lived and should not be persisted. + NextPageToken string `json:"nextPageToken,omitempty"` + // ResourcePolicies: The ResourcePolicy objects retrieved. + ResourcePolicies []*GoogleFirebaseAppcheckV1ResourcePolicy `json:"resourcePolicies,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 GoogleFirebaseAppcheckV1ListResourcePoliciesResponse) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppcheckV1ListResourcePoliciesResponse + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleFirebaseAppcheckV1ListServicesResponse: Response message for the // ListServices method. type GoogleFirebaseAppcheckV1ListServicesResponse struct { @@ -1317,6 +1418,94 @@ func (s GoogleFirebaseAppcheckV1RecaptchaV3Config) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleFirebaseAppcheckV1ResourcePolicy: App Check enforcement policy for a +// specific resource of a Firebase service supported by App Check. Note that +// this policy will override the service-level configuration. +type GoogleFirebaseAppcheckV1ResourcePolicy struct { + // EnforcementMode: Required. The App Check enforcement mode for this resource. + // This will override the EnforcementMode setting on the service. + // + // Possible values: + // "OFF" - Firebase App Check is not enforced for the service, nor are App + // Check metrics collected. Though the service is not protected by App Check in + // this mode, other applicable protections, such as user authorization, are + // still enforced. An unconfigured service is in this mode by default. + // "UNENFORCED" - Firebase App Check is not enforced for the service. App + // Check metrics are collected to help you decide when to turn on enforcement + // for the service. Though the service is not protected by App Check in this + // mode, other applicable protections, such as user authorization, are still + // enforced. Some services require certain conditions to be met before they + // will work with App Check, such as requiring you to upgrade to a specific + // service tier. Until those requirements are met for a service, this + // `UNENFORCED` setting will have no effect and App Check will not work with + // that service. + // "ENFORCED" - Firebase App Check is enforced for the service. The service + // will reject any request that attempts to access your project's resources if + // it does not have valid App Check token attached, with some exceptions + // depending on the service; for example, some services will still allow + // requests bearing the developer's privileged service account credentials + // without an App Check token. App Check metrics continue to be collected to + // help you detect issues with your App Check integration and monitor the + // composition of your callers. While the service is protected by App Check, + // other applicable protections, such as user authorization, continue to be + // enforced at the same time. Use caution when choosing to enforce App Check on + // a Firebase service. If your users have not updated to an App Check capable + // version of your app, their apps will no longer be able to use your Firebase + // services that are enforcing App Check. App Check metrics can help you decide + // whether to enforce App Check on your Firebase services. If your app has not + // launched yet, you should enable enforcement immediately, since there are no + // outdated clients in use. Some services require certain conditions to be met + // before they will work with App Check, such as requiring you to upgrade to a + // specific service tier. Until those requirements are met for a service, this + // `ENFORCED` setting will have no effect and App Check will not work with that + // service. + EnforcementMode string `json:"enforcementMode,omitempty"` + // Etag: This checksum is computed by the server based on the value of other + // fields, and may be sent on update and delete requests to ensure the client + // has an up-to-date value before proceeding. This etag is strongly validated + // as defined by RFC 7232. + Etag string `json:"etag,omitempty"` + // Name: Required. Identifier. The relative name of the resource policy object, + // in the format: ``` + // projects/{project_number}/services/{service_id}/resourcePolicies/{resource_po + // licy_id} ``` Note that the `service_id` element must be a supported service + // ID. Currently, the following service IDs are supported: * + // `oauth2.googleapis.com` (Google Identity for iOS) `resource_policy_id` is a + // system-generated UID. + Name string `json:"name,omitempty"` + // TargetResource: Required. Service specific name of the resource object to + // which this policy applies, in the format: * + // `//oauth2.googleapis.com/projects/{project_number}/oauthClients/{oauth_client + // _id}` (Google Identity for iOS) Note that the resource must belong to the + // service specified in the `name` and be from the same project as this policy, + // but the resource is allowed to be missing at the time of creation of this + // policy; in that case, we make a best-effort attempt at respecting this + // policy, but it may not have any effect until the resource is fully created. + TargetResource string `json:"targetResource,omitempty"` + // UpdateTime: Output only. Timestamp when this resource policy configuration + // object was most recently updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "EnforcementMode") 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. "EnforcementMode") 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 GoogleFirebaseAppcheckV1ResourcePolicy) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppcheckV1ResourcePolicy + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleFirebaseAppcheckV1SafetyNetConfig: An app's SafetyNet configuration // object. This configuration controls certain properties of the // `AppCheckToken` returned by ExchangeSafetyNetToken, such as its ttl. Note @@ -1423,6 +1612,39 @@ func (s GoogleFirebaseAppcheckV1Service) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest: Request message for the +// UpdateResourcePolicy method as well as an individual update message for the +// BatchUpdateResourcePolicies method. +type GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest struct { + // ResourcePolicy: Required. The ResourcePolicy to update. The ResourcePolicy's + // `name` field is used to identify the ResourcePolicy to be updated, in the + // format: ``` + // projects/{project_number}/services/{service_id}/resourcePolicies/{resource_po + // licy_id} ``` Note that the `service_id` element must be a supported service + // ID. Currently, the following service IDs are supported: * + // `oauth2.googleapis.com` (Google Identity for iOS) + ResourcePolicy *GoogleFirebaseAppcheckV1ResourcePolicy `json:"resourcePolicy,omitempty"` + // UpdateMask: Required. A comma-separated list of names of fields in the + // ResourcePolicy to update. Example: `enforcement_mode`. + UpdateMask string `json:"updateMask,omitempty"` + // ForceSendFields is a list of field names (e.g. "ResourcePolicy") 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. "ResourcePolicy") 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 GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppcheckV1UpdateResourcePolicyRequest + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleFirebaseAppcheckV1UpdateServiceRequest: Request message for the // UpdateService method as well as an individual update message for the // BatchUpdateServices method. @@ -6354,3 +6576,726 @@ func (c *ProjectsServicesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleFir } return ret, nil } + +type ProjectsServicesResourcePoliciesBatchUpdateCall struct { + s *Service + parent string + googlefirebaseappcheckv1batchupdateresourcepoliciesrequest *GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// BatchUpdate: Atomically updates the specified ResourcePolicy configurations. +// +// - parent: The parent service name, in the format ``` +// projects/{project_number}/services/{service_id} ``` The parent collection +// in the `name` field of any resource being updated must match this field, +// or the entire batch fails. +func (r *ProjectsServicesResourcePoliciesService) BatchUpdate(parent string, googlefirebaseappcheckv1batchupdateresourcepoliciesrequest *GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesRequest) *ProjectsServicesResourcePoliciesBatchUpdateCall { + c := &ProjectsServicesResourcePoliciesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlefirebaseappcheckv1batchupdateresourcepoliciesrequest = googlefirebaseappcheckv1batchupdateresourcepoliciesrequest + 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 *ProjectsServicesResourcePoliciesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsServicesResourcePoliciesBatchUpdateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsServicesResourcePoliciesBatchUpdateCall) Context(ctx context.Context) *ProjectsServicesResourcePoliciesBatchUpdateCall { + 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 *ProjectsServicesResourcePoliciesBatchUpdateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsServicesResourcePoliciesBatchUpdateCall) 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.googlefirebaseappcheckv1batchupdateresourcepoliciesrequest) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcePolicies:batchUpdate") + 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 "firebaseappcheck.projects.services.resourcePolicies.batchUpdate" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponse.ServerResponse.H +// eader 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 *ProjectsServicesResourcePoliciesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponse, 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 := &GoogleFirebaseAppcheckV1BatchUpdateResourcePoliciesResponse{ + 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 ProjectsServicesResourcePoliciesCreateCall struct { + s *Service + parent string + googlefirebaseappcheckv1resourcepolicy *GoogleFirebaseAppcheckV1ResourcePolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates the specified ResourcePolicy configuration. +// +// - parent: The relative resource name of the parent Service in which the +// specified ResourcePolicy will be created, in the format: ``` +// projects/{project_number}/services/{service_id} ``` Note that the +// `service_id` element must be a supported service ID. Currently, the +// following service IDs are supported: * `oauth2.googleapis.com` (Google +// Identity for iOS). +func (r *ProjectsServicesResourcePoliciesService) Create(parent string, googlefirebaseappcheckv1resourcepolicy *GoogleFirebaseAppcheckV1ResourcePolicy) *ProjectsServicesResourcePoliciesCreateCall { + c := &ProjectsServicesResourcePoliciesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.googlefirebaseappcheckv1resourcepolicy = googlefirebaseappcheckv1resourcepolicy + 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 *ProjectsServicesResourcePoliciesCreateCall) Fields(s ...googleapi.Field) *ProjectsServicesResourcePoliciesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsServicesResourcePoliciesCreateCall) Context(ctx context.Context) *ProjectsServicesResourcePoliciesCreateCall { + 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 *ProjectsServicesResourcePoliciesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsServicesResourcePoliciesCreateCall) 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.googlefirebaseappcheckv1resourcepolicy) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/resourcePolicies") + 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 "firebaseappcheck.projects.services.resourcePolicies.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleFirebaseAppcheckV1ResourcePolicy.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 *ProjectsServicesResourcePoliciesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppcheckV1ResourcePolicy, 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 := &GoogleFirebaseAppcheckV1ResourcePolicy{ + 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 ProjectsServicesResourcePoliciesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes the specified ResourcePolicy configuration. +// +// - name: The relative resource name of the ResourcePolicy to delete, in the +// format: ``` +// projects/{project_number}/services/{service_id}/resourcePolicies/{resource_ +// policy_id} ```. +func (r *ProjectsServicesResourcePoliciesService) Delete(name string) *ProjectsServicesResourcePoliciesDeleteCall { + c := &ProjectsServicesResourcePoliciesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Etag sets the optional parameter "etag": The checksum to be validated +// against the current ResourcePolicy, to ensure the client has an up-to-date +// value before proceeding. This checksum is computed by the server based on +// the values of fields in the ResourcePolicy object, and can be obtained from +// the ResourcePolicy object received from the last CreateResourcePolicy, +// GetResourcePolicy, ListResourcePolicies, UpdateResourcePolicy, or +// BatchUpdateResourcePolicies call. This etag is strongly validated as defined +// by RFC 7232. +func (c *ProjectsServicesResourcePoliciesDeleteCall) Etag(etag string) *ProjectsServicesResourcePoliciesDeleteCall { + c.urlParams_.Set("etag", etag) + 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 *ProjectsServicesResourcePoliciesDeleteCall) Fields(s ...googleapi.Field) *ProjectsServicesResourcePoliciesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsServicesResourcePoliciesDeleteCall) Context(ctx context.Context) *ProjectsServicesResourcePoliciesDeleteCall { + 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 *ProjectsServicesResourcePoliciesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsServicesResourcePoliciesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + 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("DELETE", 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 "firebaseappcheck.projects.services.resourcePolicies.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleProtobufEmpty.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 *ProjectsServicesResourcePoliciesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{ + 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 ProjectsServicesResourcePoliciesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets the requested ResourcePolicy configuration. +// +// - name: The relative resource name of the ResourcePolicy to retrieve, in the +// format: ``` +// projects/{project_number}/services/{service_id}/resourcePolicies/{resource_ +// policy_id} ``` Note that the `service_id` element must be a supported +// service ID. Currently, the following service IDs are supported: * +// `oauth2.googleapis.com` (Google Identity for iOS). +func (r *ProjectsServicesResourcePoliciesService) Get(name string) *ProjectsServicesResourcePoliciesGetCall { + c := &ProjectsServicesResourcePoliciesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsServicesResourcePoliciesGetCall) Fields(s ...googleapi.Field) *ProjectsServicesResourcePoliciesGetCall { + 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 *ProjectsServicesResourcePoliciesGetCall) IfNoneMatch(entityTag string) *ProjectsServicesResourcePoliciesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsServicesResourcePoliciesGetCall) Context(ctx context.Context) *ProjectsServicesResourcePoliciesGetCall { + 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 *ProjectsServicesResourcePoliciesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsServicesResourcePoliciesGetCall) 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/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebaseappcheck.projects.services.resourcePolicies.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleFirebaseAppcheckV1ResourcePolicy.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 *ProjectsServicesResourcePoliciesGetCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppcheckV1ResourcePolicy, 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 := &GoogleFirebaseAppcheckV1ResourcePolicy{ + 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 ProjectsServicesResourcePoliciesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists all ResourcePolicy configurations for the specified project and +// service. +// +// - parent: The relative resource name of the parent Service for which to list +// each associated ResourcePolicy, in the format: ``` +// projects/{project_number}/services/{service_id} ``` Note that the +// `service_id` element must be a supported service ID. Currently, the +// following service IDs are supported: * `oauth2.googleapis.com` (Google +// Identity for iOS). +func (r *ProjectsServicesResourcePoliciesService) List(parent string) *ProjectsServicesResourcePoliciesListCall { + c := &ProjectsServicesResourcePoliciesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filters the results by the +// specified rule. For the exact syntax of this field, please consult the +// AIP-160 (https://google.aip.dev/160) standard. Currently, since the only +// fields in the ResourcePolicy resource are the scalar fields +// `enforcement_mode` and `target_resource`, this method does not support the +// traversal operator (`.`) or the has operator (`:`). Here are some examples +// of valid filters: * `enforcement_mode = ENFORCED` * `target_resource = +// "//oauth2.googleapis.com/projects/12345/oauthClients/" * `enforcement_mode +// = ENFORCED AND target_resource = +// "//oauth2.googleapis.com/projects/12345/oauthClients/" +func (c *ProjectsServicesResourcePoliciesListCall) Filter(filter string) *ProjectsServicesResourcePoliciesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number of +// ResourcePolicy objects to return in the response. The server may return +// fewer than this at its own discretion. If no value is specified (or too +// large a value is specified), the server will impose its own limit. +func (c *ProjectsServicesResourcePoliciesListCall) PageSize(pageSize int64) *ProjectsServicesResourcePoliciesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": Token returned from a +// previous call to ListResourcePolicies indicating where in the set of +// ResourcePolicy objects to resume listing. Provide this to retrieve the +// subsequent page. When paginating, all other parameters provided to +// ListResourcePolicies must match the call that provided the page token; if +// they do not match, the result is undefined. +func (c *ProjectsServicesResourcePoliciesListCall) PageToken(pageToken string) *ProjectsServicesResourcePoliciesListCall { + 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 *ProjectsServicesResourcePoliciesListCall) Fields(s ...googleapi.Field) *ProjectsServicesResourcePoliciesListCall { + 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 *ProjectsServicesResourcePoliciesListCall) IfNoneMatch(entityTag string) *ProjectsServicesResourcePoliciesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsServicesResourcePoliciesListCall) Context(ctx context.Context) *ProjectsServicesResourcePoliciesListCall { + 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 *ProjectsServicesResourcePoliciesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsServicesResourcePoliciesListCall) 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}/resourcePolicies") + 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 "firebaseappcheck.projects.services.resourcePolicies.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleFirebaseAppcheckV1ListResourcePoliciesResponse.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 *ProjectsServicesResourcePoliciesListCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppcheckV1ListResourcePoliciesResponse, 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 := &GoogleFirebaseAppcheckV1ListResourcePoliciesResponse{ + 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 *ProjectsServicesResourcePoliciesListCall) Pages(ctx context.Context, f func(*GoogleFirebaseAppcheckV1ListResourcePoliciesResponse) 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 ProjectsServicesResourcePoliciesPatchCall struct { + s *Service + name string + googlefirebaseappcheckv1resourcepolicy *GoogleFirebaseAppcheckV1ResourcePolicy + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Patch: Updates the specified ResourcePolicy configuration. +// +// - name: Identifier. The relative name of the resource policy object, in the +// format: ``` +// projects/{project_number}/services/{service_id}/resourcePolicies/{resource_ +// policy_id} ``` Note that the `service_id` element must be a supported +// service ID. Currently, the following service IDs are supported: * +// `oauth2.googleapis.com` (Google Identity for iOS) `resource_policy_id` is +// a system-generated UID. +func (r *ProjectsServicesResourcePoliciesService) Patch(name string, googlefirebaseappcheckv1resourcepolicy *GoogleFirebaseAppcheckV1ResourcePolicy) *ProjectsServicesResourcePoliciesPatchCall { + c := &ProjectsServicesResourcePoliciesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.googlefirebaseappcheckv1resourcepolicy = googlefirebaseappcheckv1resourcepolicy + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. A +// comma-separated list of names of fields in the ResourcePolicy to update. +// Example: `enforcement_mode`. +func (c *ProjectsServicesResourcePoliciesPatchCall) UpdateMask(updateMask string) *ProjectsServicesResourcePoliciesPatchCall { + 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 *ProjectsServicesResourcePoliciesPatchCall) Fields(s ...googleapi.Field) *ProjectsServicesResourcePoliciesPatchCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsServicesResourcePoliciesPatchCall) Context(ctx context.Context) *ProjectsServicesResourcePoliciesPatchCall { + 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 *ProjectsServicesResourcePoliciesPatchCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsServicesResourcePoliciesPatchCall) 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.googlefirebaseappcheckv1resourcepolicy) + 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 "firebaseappcheck.projects.services.resourcePolicies.patch" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleFirebaseAppcheckV1ResourcePolicy.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 *ProjectsServicesResourcePoliciesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleFirebaseAppcheckV1ResourcePolicy, 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 := &GoogleFirebaseAppcheckV1ResourcePolicy{ + 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 +} diff --git a/firebaseml/v2beta/firebaseml-gen.go b/firebaseml/v2beta/firebaseml-gen.go index cb5f66f682..94ee0e2062 100644 --- a/firebaseml/v2beta/firebaseml-gen.go +++ b/firebaseml/v2beta/firebaseml-gen.go @@ -877,100 +877,6 @@ func (s *GoogleCloudAiplatformV1beta1GenerationConfig) UnmarshalJSON(data []byte type GoogleCloudAiplatformV1beta1GoogleSearchRetrieval struct { } -// GoogleCloudAiplatformV1beta1GroundingAttribution: Grounding attribution. -type GoogleCloudAiplatformV1beta1GroundingAttribution struct { - // ConfidenceScore: Optional. Output only. Confidence score of the attribution. - // Ranges from 0 to 1. 1 is the most confident. - ConfidenceScore float64 `json:"confidenceScore,omitempty"` - // RetrievedContext: Optional. Attribution from context retrieved by the - // retrieval tools. - RetrievedContext *GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext `json:"retrievedContext,omitempty"` - // Segment: Output only. Segment of the content this attribution belongs to. - Segment *GoogleCloudAiplatformV1beta1Segment `json:"segment,omitempty"` - // Web: Optional. Attribution from the web. - Web *GoogleCloudAiplatformV1beta1GroundingAttributionWeb `json:"web,omitempty"` - // ForceSendFields is a list of field names (e.g. "ConfidenceScore") 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. "ConfidenceScore") 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 GoogleCloudAiplatformV1beta1GroundingAttribution) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1GroundingAttribution - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -func (s *GoogleCloudAiplatformV1beta1GroundingAttribution) UnmarshalJSON(data []byte) error { - type NoMethod GoogleCloudAiplatformV1beta1GroundingAttribution - var s1 struct { - ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"` - *NoMethod - } - s1.NoMethod = (*NoMethod)(s) - if err := json.Unmarshal(data, &s1); err != nil { - return err - } - s.ConfidenceScore = float64(s1.ConfidenceScore) - return nil -} - -// GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext: -// Attribution from context retrieved by the retrieval tools. -type GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext struct { - // Title: Output only. Title of the attribution. - Title string `json:"title,omitempty"` - // Uri: Output only. URI reference of the attribution. - Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "Title") 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. "Title") 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 GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// GoogleCloudAiplatformV1beta1GroundingAttributionWeb: Attribution from the -// web. -type GoogleCloudAiplatformV1beta1GroundingAttributionWeb struct { - // Title: Output only. Title of the attribution. - Title string `json:"title,omitempty"` - // Uri: Output only. URI reference of the attribution. - Uri string `json:"uri,omitempty"` - // ForceSendFields is a list of field names (e.g. "Title") 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. "Title") 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 GoogleCloudAiplatformV1beta1GroundingAttributionWeb) MarshalJSON() ([]byte, error) { - type NoMethod GoogleCloudAiplatformV1beta1GroundingAttributionWeb - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // GoogleCloudAiplatformV1beta1GroundingChunk: Grounding chunk. type GoogleCloudAiplatformV1beta1GroundingChunk struct { // RetrievedContext: Grounding chunk from context retrieved by the retrieval diff --git a/firestore/v1/firestore-api.json b/firestore/v1/firestore-api.json index 97af807e53..3baeb1314c 100644 --- a/firestore/v1/firestore-api.json +++ b/firestore/v1/firestore-api.json @@ -1706,7 +1706,7 @@ } } }, - "revision": "20240626", + "revision": "20240630", "rootUrl": "https://firestore.googleapis.com/", "schemas": { "Aggregation": { @@ -2499,7 +2499,7 @@ "type": "string" }, "retention": { - "description": "At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days.", + "description": "At what relative time in the future, compared to its creation time, the backup should be deleted, e.g. keep backups for 7 days. The maximum supported retention is 14 weeks.", "format": "google-duration", "type": "string" }, diff --git a/firestore/v1/firestore-gen.go b/firestore/v1/firestore-gen.go index 50e075de4c..1de86c4319 100644 --- a/firestore/v1/firestore-gen.go +++ b/firestore/v1/firestore-gen.go @@ -1468,7 +1468,8 @@ type GoogleFirestoreAdminV1BackupSchedule struct { // `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}` Name string `json:"name,omitempty"` // Retention: At what relative time in the future, compared to its creation - // time, the backup should be deleted, e.g. keep backups for 7 days. + // time, the backup should be deleted, e.g. keep backups for 7 days. The + // maximum supported retention is 14 weeks. Retention string `json:"retention,omitempty"` // UpdateTime: Output only. The timestamp at which this backup schedule was // most recently updated. When a backup schedule is first created, this is the diff --git a/monitoring/v1/monitoring-api.json b/monitoring/v1/monitoring-api.json index 81548eb5f8..8612d2b160 100644 --- a/monitoring/v1/monitoring-api.json +++ b/monitoring/v1/monitoring-api.json @@ -753,7 +753,7 @@ } } }, - "revision": "20240623", + "revision": "20240707", "rootUrl": "https://monitoring.googleapis.com/", "schemas": { "Aggregation": { @@ -1356,7 +1356,9 @@ "CLOUD_SQL_FAILOVER", "CLOUD_SQL_START_STOP", "CLOUD_SQL_STORAGE", - "UPTIME_CHECK_FAILURE" + "UPTIME_CHECK_FAILURE", + "CLOUD_ALERTING_ALERT", + "SERVICE_HEALTH_INCIDENT" ], "enumDescriptions": [ "No event type specified.", @@ -1378,7 +1380,9 @@ "Failover of a Cloud SQL instance.", "Start/stop of a Cloud SQL instance.", "Storage event for a Cloud SQL instance.", - "Failure of a Cloud Monitoring uptime check." + "Failure of a Cloud Monitoring uptime check.", + "Alerts from Cloud Alerting", + "Incidents from Service Health" ], "type": "string" }, diff --git a/monitoring/v1/monitoring-gen.go b/monitoring/v1/monitoring-gen.go index e1f49b064d..9a7fd2eb8b 100644 --- a/monitoring/v1/monitoring-gen.go +++ b/monitoring/v1/monitoring-gen.go @@ -1195,6 +1195,8 @@ type EventAnnotation struct { // "CLOUD_SQL_START_STOP" - Start/stop of a Cloud SQL instance. // "CLOUD_SQL_STORAGE" - Storage event for a Cloud SQL instance. // "UPTIME_CHECK_FAILURE" - Failure of a Cloud Monitoring uptime check. + // "CLOUD_ALERTING_ALERT" - Alerts from Cloud Alerting + // "SERVICE_HEALTH_INCIDENT" - Incidents from Service Health EventType string `json:"eventType,omitempty"` // Filter: string filtering the events - event dependant. Example values: // "resource.labels.pod_name = 'pod-1'" diff --git a/run/v1/run-gen.go b/run/v1/run-gen.go index 80c82338ae..d99fd0d41c 100644 --- a/run/v1/run-gen.go +++ b/run/v1/run-gen.go @@ -2343,36 +2343,6 @@ func (s GoogleDevtoolsCloudbuildV1FileHashes) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsCloudbuildV1GCSLocation: Represents a storage location in -// Cloud Storage -type GoogleDevtoolsCloudbuildV1GCSLocation struct { - // Bucket: Cloud Storage bucket. See - // https://cloud.google.com/storage/docs/naming#requirements - Bucket string `json:"bucket,omitempty"` - // Generation: Cloud Storage generation for the object. If the generation is - // omitted, the latest generation will be used. - Generation int64 `json:"generation,omitempty,string"` - // Object: Cloud Storage object. See - // https://cloud.google.com/storage/docs/naming#objectnames - Object string `json:"object,omitempty"` - // ForceSendFields is a list of field names (e.g. "Bucket") 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. "Bucket") 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 GoogleDevtoolsCloudbuildV1GCSLocation) MarshalJSON() ([]byte, error) { - type NoMethod GoogleDevtoolsCloudbuildV1GCSLocation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // GoogleDevtoolsCloudbuildV1GitConfig: GitConfig is a configuration for git // operations. type GoogleDevtoolsCloudbuildV1GitConfig struct { diff --git a/run/v2/run-gen.go b/run/v2/run-gen.go index d5d1ce3585..999d84d4bd 100644 --- a/run/v2/run-gen.go +++ b/run/v2/run-gen.go @@ -3525,36 +3525,6 @@ func (s GoogleDevtoolsCloudbuildV1FileHashes) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// GoogleDevtoolsCloudbuildV1GCSLocation: Represents a storage location in -// Cloud Storage -type GoogleDevtoolsCloudbuildV1GCSLocation struct { - // Bucket: Cloud Storage bucket. See - // https://cloud.google.com/storage/docs/naming#requirements - Bucket string `json:"bucket,omitempty"` - // Generation: Cloud Storage generation for the object. If the generation is - // omitted, the latest generation will be used. - Generation int64 `json:"generation,omitempty,string"` - // Object: Cloud Storage object. See - // https://cloud.google.com/storage/docs/naming#objectnames - Object string `json:"object,omitempty"` - // ForceSendFields is a list of field names (e.g. "Bucket") 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. "Bucket") 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 GoogleDevtoolsCloudbuildV1GCSLocation) MarshalJSON() ([]byte, error) { - type NoMethod GoogleDevtoolsCloudbuildV1GCSLocation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // GoogleDevtoolsCloudbuildV1GitConfig: GitConfig is a configuration for git // operations. type GoogleDevtoolsCloudbuildV1GitConfig struct { diff --git a/securitycenter/v1/securitycenter-api.json b/securitycenter/v1/securitycenter-api.json index 67411c1749..49905e1c91 100644 --- a/securitycenter/v1/securitycenter-api.json +++ b/securitycenter/v1/securitycenter-api.json @@ -6027,7 +6027,7 @@ } } }, - "revision": "20240628", + "revision": "20240705", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -10534,8 +10534,10 @@ "COMMAND_AND_SCRIPTING_INTERPRETER", "UNIX_SHELL", "PYTHON", + "EXPLOITATION_FOR_PRIVILEGE_ESCALATION", "PERMISSION_GROUPS_DISCOVERY", "CLOUD_GROUPS", + "INDICATOR_REMOVAL_FILE_DELETION", "APPLICATION_LAYER_PROTOCOL", "DNS", "SOFTWARE_DEPLOYMENT_TOOLS", @@ -10599,8 +10601,10 @@ "T1059", "T1059.004", "T1059.006", + "T1068", "T1069", "T1069.003", + "T1070.004", "T1071", "T1071.004", "T1072", @@ -10648,7 +10652,7 @@ "T1588", "T1595", "T1595.001", - "T1613", + "T1609", "T1611", "T1613", "T1649" @@ -10709,8 +10713,10 @@ "COMMAND_AND_SCRIPTING_INTERPRETER", "UNIX_SHELL", "PYTHON", + "EXPLOITATION_FOR_PRIVILEGE_ESCALATION", "PERMISSION_GROUPS_DISCOVERY", "CLOUD_GROUPS", + "INDICATOR_REMOVAL_FILE_DELETION", "APPLICATION_LAYER_PROTOCOL", "DNS", "SOFTWARE_DEPLOYMENT_TOOLS", @@ -10774,8 +10780,10 @@ "T1059", "T1059.004", "T1059.006", + "T1068", "T1069", "T1069.003", + "T1070.004", "T1071", "T1071.004", "T1072", @@ -10823,7 +10831,7 @@ "T1588", "T1595", "T1595.001", - "T1613", + "T1609", "T1611", "T1613", "T1649" @@ -12541,8 +12549,10 @@ "COMMAND_AND_SCRIPTING_INTERPRETER", "UNIX_SHELL", "PYTHON", + "EXPLOITATION_FOR_PRIVILEGE_ESCALATION", "PERMISSION_GROUPS_DISCOVERY", "CLOUD_GROUPS", + "INDICATOR_REMOVAL_FILE_DELETION", "APPLICATION_LAYER_PROTOCOL", "DNS", "SOFTWARE_DEPLOYMENT_TOOLS", @@ -12606,8 +12616,10 @@ "T1059", "T1059.004", "T1059.006", + "T1068", "T1069", "T1069.003", + "T1070.004", "T1071", "T1071.004", "T1072", @@ -12716,8 +12728,10 @@ "COMMAND_AND_SCRIPTING_INTERPRETER", "UNIX_SHELL", "PYTHON", + "EXPLOITATION_FOR_PRIVILEGE_ESCALATION", "PERMISSION_GROUPS_DISCOVERY", "CLOUD_GROUPS", + "INDICATOR_REMOVAL_FILE_DELETION", "APPLICATION_LAYER_PROTOCOL", "DNS", "SOFTWARE_DEPLOYMENT_TOOLS", @@ -12781,8 +12795,10 @@ "T1059", "T1059.004", "T1059.006", + "T1068", "T1069", "T1069.003", + "T1070.004", "T1071", "T1071.004", "T1072", diff --git a/securitycenter/v1/securitycenter-gen.go b/securitycenter/v1/securitycenter-gen.go index 6032b4eb26..b862a03b00 100644 --- a/securitycenter/v1/securitycenter-gen.go +++ b/securitycenter/v1/securitycenter-gen.go @@ -6466,8 +6466,10 @@ type GoogleCloudSecuritycenterV2MitreAttack struct { // "COMMAND_AND_SCRIPTING_INTERPRETER" - T1059 // "UNIX_SHELL" - T1059.004 // "PYTHON" - T1059.006 + // "EXPLOITATION_FOR_PRIVILEGE_ESCALATION" - T1068 // "PERMISSION_GROUPS_DISCOVERY" - T1069 // "CLOUD_GROUPS" - T1069.003 + // "INDICATOR_REMOVAL_FILE_DELETION" - T1070.004 // "APPLICATION_LAYER_PROTOCOL" - T1071 // "DNS" - T1071.004 // "SOFTWARE_DEPLOYMENT_TOOLS" - T1072 @@ -6515,7 +6517,7 @@ type GoogleCloudSecuritycenterV2MitreAttack struct { // "OBTAIN_CAPABILITIES" - T1588 // "ACTIVE_SCANNING" - T1595 // "SCANNING_IP_BLOCKS" - T1595.001 - // "CONTAINER_ADMINISTRATION_COMMAND" - T1613 + // "CONTAINER_ADMINISTRATION_COMMAND" - T1609 // "ESCAPE_TO_HOST" - T1611 // "CONTAINER_AND_RESOURCE_DISCOVERY" - T1613 // "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES" - T1649 @@ -6558,8 +6560,10 @@ type GoogleCloudSecuritycenterV2MitreAttack struct { // "COMMAND_AND_SCRIPTING_INTERPRETER" - T1059 // "UNIX_SHELL" - T1059.004 // "PYTHON" - T1059.006 + // "EXPLOITATION_FOR_PRIVILEGE_ESCALATION" - T1068 // "PERMISSION_GROUPS_DISCOVERY" - T1069 // "CLOUD_GROUPS" - T1069.003 + // "INDICATOR_REMOVAL_FILE_DELETION" - T1070.004 // "APPLICATION_LAYER_PROTOCOL" - T1071 // "DNS" - T1071.004 // "SOFTWARE_DEPLOYMENT_TOOLS" - T1072 @@ -6607,7 +6611,7 @@ type GoogleCloudSecuritycenterV2MitreAttack struct { // "OBTAIN_CAPABILITIES" - T1588 // "ACTIVE_SCANNING" - T1595 // "SCANNING_IP_BLOCKS" - T1595.001 - // "CONTAINER_ADMINISTRATION_COMMAND" - T1613 + // "CONTAINER_ADMINISTRATION_COMMAND" - T1609 // "ESCAPE_TO_HOST" - T1611 // "CONTAINER_AND_RESOURCE_DISCOVERY" - T1613 // "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES" - T1649 @@ -8917,8 +8921,10 @@ type MitreAttack struct { // "COMMAND_AND_SCRIPTING_INTERPRETER" - T1059 // "UNIX_SHELL" - T1059.004 // "PYTHON" - T1059.006 + // "EXPLOITATION_FOR_PRIVILEGE_ESCALATION" - T1068 // "PERMISSION_GROUPS_DISCOVERY" - T1069 // "CLOUD_GROUPS" - T1069.003 + // "INDICATOR_REMOVAL_FILE_DELETION" - T1070.004 // "APPLICATION_LAYER_PROTOCOL" - T1071 // "DNS" - T1071.004 // "SOFTWARE_DEPLOYMENT_TOOLS" - T1072 @@ -9009,8 +9015,10 @@ type MitreAttack struct { // "COMMAND_AND_SCRIPTING_INTERPRETER" - T1059 // "UNIX_SHELL" - T1059.004 // "PYTHON" - T1059.006 + // "EXPLOITATION_FOR_PRIVILEGE_ESCALATION" - T1068 // "PERMISSION_GROUPS_DISCOVERY" - T1069 // "CLOUD_GROUPS" - T1069.003 + // "INDICATOR_REMOVAL_FILE_DELETION" - T1070.004 // "APPLICATION_LAYER_PROTOCOL" - T1071 // "DNS" - T1071.004 // "SOFTWARE_DEPLOYMENT_TOOLS" - T1072 diff --git a/securitycenter/v1beta1/securitycenter-api.json b/securitycenter/v1beta1/securitycenter-api.json index 982b8ac9a8..56fe87a05a 100644 --- a/securitycenter/v1beta1/securitycenter-api.json +++ b/securitycenter/v1beta1/securitycenter-api.json @@ -896,7 +896,7 @@ } } }, - "revision": "20240628", + "revision": "20240705", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -5145,8 +5145,10 @@ "COMMAND_AND_SCRIPTING_INTERPRETER", "UNIX_SHELL", "PYTHON", + "EXPLOITATION_FOR_PRIVILEGE_ESCALATION", "PERMISSION_GROUPS_DISCOVERY", "CLOUD_GROUPS", + "INDICATOR_REMOVAL_FILE_DELETION", "APPLICATION_LAYER_PROTOCOL", "DNS", "SOFTWARE_DEPLOYMENT_TOOLS", @@ -5210,8 +5212,10 @@ "T1059", "T1059.004", "T1059.006", + "T1068", "T1069", "T1069.003", + "T1070.004", "T1071", "T1071.004", "T1072", @@ -5259,7 +5263,7 @@ "T1588", "T1595", "T1595.001", - "T1613", + "T1609", "T1611", "T1613", "T1649" @@ -5320,8 +5324,10 @@ "COMMAND_AND_SCRIPTING_INTERPRETER", "UNIX_SHELL", "PYTHON", + "EXPLOITATION_FOR_PRIVILEGE_ESCALATION", "PERMISSION_GROUPS_DISCOVERY", "CLOUD_GROUPS", + "INDICATOR_REMOVAL_FILE_DELETION", "APPLICATION_LAYER_PROTOCOL", "DNS", "SOFTWARE_DEPLOYMENT_TOOLS", @@ -5385,8 +5391,10 @@ "T1059", "T1059.004", "T1059.006", + "T1068", "T1069", "T1069.003", + "T1070.004", "T1071", "T1071.004", "T1072", @@ -5434,7 +5442,7 @@ "T1588", "T1595", "T1595.001", - "T1613", + "T1609", "T1611", "T1613", "T1649" @@ -6873,8 +6881,10 @@ "COMMAND_AND_SCRIPTING_INTERPRETER", "UNIX_SHELL", "PYTHON", + "EXPLOITATION_FOR_PRIVILEGE_ESCALATION", "PERMISSION_GROUPS_DISCOVERY", "CLOUD_GROUPS", + "INDICATOR_REMOVAL_FILE_DELETION", "APPLICATION_LAYER_PROTOCOL", "DNS", "SOFTWARE_DEPLOYMENT_TOOLS", @@ -6938,8 +6948,10 @@ "T1059", "T1059.004", "T1059.006", + "T1068", "T1069", "T1069.003", + "T1070.004", "T1071", "T1071.004", "T1072", @@ -7048,8 +7060,10 @@ "COMMAND_AND_SCRIPTING_INTERPRETER", "UNIX_SHELL", "PYTHON", + "EXPLOITATION_FOR_PRIVILEGE_ESCALATION", "PERMISSION_GROUPS_DISCOVERY", "CLOUD_GROUPS", + "INDICATOR_REMOVAL_FILE_DELETION", "APPLICATION_LAYER_PROTOCOL", "DNS", "SOFTWARE_DEPLOYMENT_TOOLS", @@ -7113,8 +7127,10 @@ "T1059", "T1059.004", "T1059.006", + "T1068", "T1069", "T1069.003", + "T1070.004", "T1071", "T1071.004", "T1072", diff --git a/securitycenter/v1beta1/securitycenter-gen.go b/securitycenter/v1beta1/securitycenter-gen.go index 6a257d73d3..e0fa7ba245 100644 --- a/securitycenter/v1beta1/securitycenter-gen.go +++ b/securitycenter/v1beta1/securitycenter-gen.go @@ -5477,8 +5477,10 @@ type GoogleCloudSecuritycenterV2MitreAttack struct { // "COMMAND_AND_SCRIPTING_INTERPRETER" - T1059 // "UNIX_SHELL" - T1059.004 // "PYTHON" - T1059.006 + // "EXPLOITATION_FOR_PRIVILEGE_ESCALATION" - T1068 // "PERMISSION_GROUPS_DISCOVERY" - T1069 // "CLOUD_GROUPS" - T1069.003 + // "INDICATOR_REMOVAL_FILE_DELETION" - T1070.004 // "APPLICATION_LAYER_PROTOCOL" - T1071 // "DNS" - T1071.004 // "SOFTWARE_DEPLOYMENT_TOOLS" - T1072 @@ -5526,7 +5528,7 @@ type GoogleCloudSecuritycenterV2MitreAttack struct { // "OBTAIN_CAPABILITIES" - T1588 // "ACTIVE_SCANNING" - T1595 // "SCANNING_IP_BLOCKS" - T1595.001 - // "CONTAINER_ADMINISTRATION_COMMAND" - T1613 + // "CONTAINER_ADMINISTRATION_COMMAND" - T1609 // "ESCAPE_TO_HOST" - T1611 // "CONTAINER_AND_RESOURCE_DISCOVERY" - T1613 // "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES" - T1649 @@ -5569,8 +5571,10 @@ type GoogleCloudSecuritycenterV2MitreAttack struct { // "COMMAND_AND_SCRIPTING_INTERPRETER" - T1059 // "UNIX_SHELL" - T1059.004 // "PYTHON" - T1059.006 + // "EXPLOITATION_FOR_PRIVILEGE_ESCALATION" - T1068 // "PERMISSION_GROUPS_DISCOVERY" - T1069 // "CLOUD_GROUPS" - T1069.003 + // "INDICATOR_REMOVAL_FILE_DELETION" - T1070.004 // "APPLICATION_LAYER_PROTOCOL" - T1071 // "DNS" - T1071.004 // "SOFTWARE_DEPLOYMENT_TOOLS" - T1072 @@ -5618,7 +5622,7 @@ type GoogleCloudSecuritycenterV2MitreAttack struct { // "OBTAIN_CAPABILITIES" - T1588 // "ACTIVE_SCANNING" - T1595 // "SCANNING_IP_BLOCKS" - T1595.001 - // "CONTAINER_ADMINISTRATION_COMMAND" - T1613 + // "CONTAINER_ADMINISTRATION_COMMAND" - T1609 // "ESCAPE_TO_HOST" - T1611 // "CONTAINER_AND_RESOURCE_DISCOVERY" - T1613 // "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES" - T1649 @@ -7431,8 +7435,10 @@ type MitreAttack struct { // "COMMAND_AND_SCRIPTING_INTERPRETER" - T1059 // "UNIX_SHELL" - T1059.004 // "PYTHON" - T1059.006 + // "EXPLOITATION_FOR_PRIVILEGE_ESCALATION" - T1068 // "PERMISSION_GROUPS_DISCOVERY" - T1069 // "CLOUD_GROUPS" - T1069.003 + // "INDICATOR_REMOVAL_FILE_DELETION" - T1070.004 // "APPLICATION_LAYER_PROTOCOL" - T1071 // "DNS" - T1071.004 // "SOFTWARE_DEPLOYMENT_TOOLS" - T1072 @@ -7523,8 +7529,10 @@ type MitreAttack struct { // "COMMAND_AND_SCRIPTING_INTERPRETER" - T1059 // "UNIX_SHELL" - T1059.004 // "PYTHON" - T1059.006 + // "EXPLOITATION_FOR_PRIVILEGE_ESCALATION" - T1068 // "PERMISSION_GROUPS_DISCOVERY" - T1069 // "CLOUD_GROUPS" - T1069.003 + // "INDICATOR_REMOVAL_FILE_DELETION" - T1070.004 // "APPLICATION_LAYER_PROTOCOL" - T1071 // "DNS" - T1071.004 // "SOFTWARE_DEPLOYMENT_TOOLS" - T1072 diff --git a/securitycenter/v1beta2/securitycenter-api.json b/securitycenter/v1beta2/securitycenter-api.json index 2959ed5f6f..829cd706e0 100644 --- a/securitycenter/v1beta2/securitycenter-api.json +++ b/securitycenter/v1beta2/securitycenter-api.json @@ -1906,7 +1906,7 @@ } } }, - "revision": "20240628", + "revision": "20240705", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -6058,8 +6058,10 @@ "COMMAND_AND_SCRIPTING_INTERPRETER", "UNIX_SHELL", "PYTHON", + "EXPLOITATION_FOR_PRIVILEGE_ESCALATION", "PERMISSION_GROUPS_DISCOVERY", "CLOUD_GROUPS", + "INDICATOR_REMOVAL_FILE_DELETION", "APPLICATION_LAYER_PROTOCOL", "DNS", "SOFTWARE_DEPLOYMENT_TOOLS", @@ -6123,8 +6125,10 @@ "T1059", "T1059.004", "T1059.006", + "T1068", "T1069", "T1069.003", + "T1070.004", "T1071", "T1071.004", "T1072", @@ -6172,7 +6176,7 @@ "T1588", "T1595", "T1595.001", - "T1613", + "T1609", "T1611", "T1613", "T1649" @@ -6233,8 +6237,10 @@ "COMMAND_AND_SCRIPTING_INTERPRETER", "UNIX_SHELL", "PYTHON", + "EXPLOITATION_FOR_PRIVILEGE_ESCALATION", "PERMISSION_GROUPS_DISCOVERY", "CLOUD_GROUPS", + "INDICATOR_REMOVAL_FILE_DELETION", "APPLICATION_LAYER_PROTOCOL", "DNS", "SOFTWARE_DEPLOYMENT_TOOLS", @@ -6298,8 +6304,10 @@ "T1059", "T1059.004", "T1059.006", + "T1068", "T1069", "T1069.003", + "T1070.004", "T1071", "T1071.004", "T1072", @@ -6347,7 +6355,7 @@ "T1588", "T1595", "T1595.001", - "T1613", + "T1609", "T1611", "T1613", "T1649" @@ -7537,8 +7545,10 @@ "COMMAND_AND_SCRIPTING_INTERPRETER", "UNIX_SHELL", "PYTHON", + "EXPLOITATION_FOR_PRIVILEGE_ESCALATION", "PERMISSION_GROUPS_DISCOVERY", "CLOUD_GROUPS", + "INDICATOR_REMOVAL_FILE_DELETION", "APPLICATION_LAYER_PROTOCOL", "DNS", "SOFTWARE_DEPLOYMENT_TOOLS", @@ -7602,8 +7612,10 @@ "T1059", "T1059.004", "T1059.006", + "T1068", "T1069", "T1069.003", + "T1070.004", "T1071", "T1071.004", "T1072", @@ -7712,8 +7724,10 @@ "COMMAND_AND_SCRIPTING_INTERPRETER", "UNIX_SHELL", "PYTHON", + "EXPLOITATION_FOR_PRIVILEGE_ESCALATION", "PERMISSION_GROUPS_DISCOVERY", "CLOUD_GROUPS", + "INDICATOR_REMOVAL_FILE_DELETION", "APPLICATION_LAYER_PROTOCOL", "DNS", "SOFTWARE_DEPLOYMENT_TOOLS", @@ -7777,8 +7791,10 @@ "T1059", "T1059.004", "T1059.006", + "T1068", "T1069", "T1069.003", + "T1070.004", "T1071", "T1071.004", "T1072", diff --git a/securitycenter/v1beta2/securitycenter-gen.go b/securitycenter/v1beta2/securitycenter-gen.go index 9e7f3fd1a5..0825b73c44 100644 --- a/securitycenter/v1beta2/securitycenter-gen.go +++ b/securitycenter/v1beta2/securitycenter-gen.go @@ -5428,8 +5428,10 @@ type GoogleCloudSecuritycenterV2MitreAttack struct { // "COMMAND_AND_SCRIPTING_INTERPRETER" - T1059 // "UNIX_SHELL" - T1059.004 // "PYTHON" - T1059.006 + // "EXPLOITATION_FOR_PRIVILEGE_ESCALATION" - T1068 // "PERMISSION_GROUPS_DISCOVERY" - T1069 // "CLOUD_GROUPS" - T1069.003 + // "INDICATOR_REMOVAL_FILE_DELETION" - T1070.004 // "APPLICATION_LAYER_PROTOCOL" - T1071 // "DNS" - T1071.004 // "SOFTWARE_DEPLOYMENT_TOOLS" - T1072 @@ -5477,7 +5479,7 @@ type GoogleCloudSecuritycenterV2MitreAttack struct { // "OBTAIN_CAPABILITIES" - T1588 // "ACTIVE_SCANNING" - T1595 // "SCANNING_IP_BLOCKS" - T1595.001 - // "CONTAINER_ADMINISTRATION_COMMAND" - T1613 + // "CONTAINER_ADMINISTRATION_COMMAND" - T1609 // "ESCAPE_TO_HOST" - T1611 // "CONTAINER_AND_RESOURCE_DISCOVERY" - T1613 // "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES" - T1649 @@ -5520,8 +5522,10 @@ type GoogleCloudSecuritycenterV2MitreAttack struct { // "COMMAND_AND_SCRIPTING_INTERPRETER" - T1059 // "UNIX_SHELL" - T1059.004 // "PYTHON" - T1059.006 + // "EXPLOITATION_FOR_PRIVILEGE_ESCALATION" - T1068 // "PERMISSION_GROUPS_DISCOVERY" - T1069 // "CLOUD_GROUPS" - T1069.003 + // "INDICATOR_REMOVAL_FILE_DELETION" - T1070.004 // "APPLICATION_LAYER_PROTOCOL" - T1071 // "DNS" - T1071.004 // "SOFTWARE_DEPLOYMENT_TOOLS" - T1072 @@ -5569,7 +5573,7 @@ type GoogleCloudSecuritycenterV2MitreAttack struct { // "OBTAIN_CAPABILITIES" - T1588 // "ACTIVE_SCANNING" - T1595 // "SCANNING_IP_BLOCKS" - T1595.001 - // "CONTAINER_ADMINISTRATION_COMMAND" - T1613 + // "CONTAINER_ADMINISTRATION_COMMAND" - T1609 // "ESCAPE_TO_HOST" - T1611 // "CONTAINER_AND_RESOURCE_DISCOVERY" - T1613 // "STEAL_OR_FORGE_AUTHENTICATION_CERTIFICATES" - T1649 @@ -7020,8 +7024,10 @@ type MitreAttack struct { // "COMMAND_AND_SCRIPTING_INTERPRETER" - T1059 // "UNIX_SHELL" - T1059.004 // "PYTHON" - T1059.006 + // "EXPLOITATION_FOR_PRIVILEGE_ESCALATION" - T1068 // "PERMISSION_GROUPS_DISCOVERY" - T1069 // "CLOUD_GROUPS" - T1069.003 + // "INDICATOR_REMOVAL_FILE_DELETION" - T1070.004 // "APPLICATION_LAYER_PROTOCOL" - T1071 // "DNS" - T1071.004 // "SOFTWARE_DEPLOYMENT_TOOLS" - T1072 @@ -7112,8 +7118,10 @@ type MitreAttack struct { // "COMMAND_AND_SCRIPTING_INTERPRETER" - T1059 // "UNIX_SHELL" - T1059.004 // "PYTHON" - T1059.006 + // "EXPLOITATION_FOR_PRIVILEGE_ESCALATION" - T1068 // "PERMISSION_GROUPS_DISCOVERY" - T1069 // "CLOUD_GROUPS" - T1069.003 + // "INDICATOR_REMOVAL_FILE_DELETION" - T1070.004 // "APPLICATION_LAYER_PROTOCOL" - T1071 // "DNS" - T1071.004 // "SOFTWARE_DEPLOYMENT_TOOLS" - T1072 diff --git a/sqladmin/v1/sqladmin-gen.go b/sqladmin/v1/sqladmin-gen.go index 2e9aac4ed7..3cb4ae8ac1 100644 --- a/sqladmin/v1/sqladmin-gen.go +++ b/sqladmin/v1/sqladmin-gen.go @@ -1777,9 +1777,9 @@ type ExportContextSqlExportOptionsPostgresExportOptions struct { NullFields []string `json:"-"` } -func (s *ExportContextSqlExportOptionsPostgresExportOptions) MarshalJSON() ([]byte, error) { +func (s ExportContextSqlExportOptionsPostgresExportOptions) MarshalJSON() ([]byte, error) { type NoMethod ExportContextSqlExportOptionsPostgresExportOptions - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FailoverContext: Database instance failover context. @@ -2277,9 +2277,9 @@ type ImportContextSqlImportOptionsPostgresImportOptions struct { NullFields []string `json:"-"` } -func (s *ImportContextSqlImportOptionsPostgresImportOptions) MarshalJSON() ([]byte, error) { +func (s ImportContextSqlImportOptionsPostgresImportOptions) MarshalJSON() ([]byte, error) { type NoMethod ImportContextSqlImportOptionsPostgresImportOptions - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InsightsConfig: Insights configuration. This specifies when Cloud SQL diff --git a/sqladmin/v1beta4/sqladmin-gen.go b/sqladmin/v1beta4/sqladmin-gen.go index 5bd408c320..b5c51686f4 100644 --- a/sqladmin/v1beta4/sqladmin-gen.go +++ b/sqladmin/v1beta4/sqladmin-gen.go @@ -1778,9 +1778,9 @@ type ExportContextSqlExportOptionsPostgresExportOptions struct { NullFields []string `json:"-"` } -func (s *ExportContextSqlExportOptionsPostgresExportOptions) MarshalJSON() ([]byte, error) { +func (s ExportContextSqlExportOptionsPostgresExportOptions) MarshalJSON() ([]byte, error) { type NoMethod ExportContextSqlExportOptionsPostgresExportOptions - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // FailoverContext: Database instance failover context. @@ -2279,9 +2279,9 @@ type ImportContextSqlImportOptionsPostgresImportOptions struct { NullFields []string `json:"-"` } -func (s *ImportContextSqlImportOptionsPostgresImportOptions) MarshalJSON() ([]byte, error) { +func (s ImportContextSqlImportOptionsPostgresImportOptions) MarshalJSON() ([]byte, error) { type NoMethod ImportContextSqlImportOptionsPostgresImportOptions - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // InsightsConfig: Insights configuration. This specifies when Cloud SQL diff --git a/vmwareengine/v1/vmwareengine-gen.go b/vmwareengine/v1/vmwareengine-gen.go index a6410fe3fa..b2b3da298d 100644 --- a/vmwareengine/v1/vmwareengine-gen.go +++ b/vmwareengine/v1/vmwareengine-gen.go @@ -506,9 +506,9 @@ type AutoscalingPolicy struct { NullFields []string `json:"-"` } -func (s *AutoscalingPolicy) MarshalJSON() ([]byte, error) { +func (s AutoscalingPolicy) MarshalJSON() ([]byte, error) { type NoMethod AutoscalingPolicy - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // AutoscalingSettings: Autoscaling settings define the rules used by VMware @@ -548,9 +548,9 @@ type AutoscalingSettings struct { NullFields []string `json:"-"` } -func (s *AutoscalingSettings) MarshalJSON() ([]byte, error) { +func (s AutoscalingSettings) MarshalJSON() ([]byte, error) { type NoMethod AutoscalingSettings - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // Binding: Associates `members`, or principals, with a `role`. @@ -3265,9 +3265,9 @@ type Thresholds struct { NullFields []string `json:"-"` } -func (s *Thresholds) MarshalJSON() ([]byte, error) { +func (s Thresholds) MarshalJSON() ([]byte, error) { type NoMethod Thresholds - return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields) + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } // UndeletePrivateCloudRequest: Request message for