From b5187e53b13c4ccdce1915c4d7d05c6f4d42436e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sat, 25 Jan 2025 00:40:21 -0800 Subject: [PATCH] feat(all): auto-regenerate discovery clients (#2980) --- .../v1alpha/adsenseplatform-api.json | 8 +- .../v1alpha/adsenseplatform-gen.go | 14 +- .../v1/androidmanagement-api.json | 6 +- androidmanagement/v1/androidmanagement-gen.go | 5 +- apphub/v1/apphub-api.json | 394 +----------- apphub/v1/apphub-gen.go | 426 +------------ apphub/v1alpha/apphub-api.json | 394 +----------- apphub/v1alpha/apphub-gen.go | 426 +------------ chromemanagement/v1/chromemanagement-api.json | 18 +- chromemanagement/v1/chromemanagement-gen.go | 12 +- cloudtasks/v2/cloudtasks-api.json | 4 +- cloudtasks/v2/cloudtasks-gen.go | 6 + cloudtasks/v2beta3/cloudtasks-api.json | 4 +- cloudtasks/v2beta3/cloudtasks-gen.go | 6 + datamigration/v1/datamigration-api.json | 6 +- datamigration/v1/datamigration-gen.go | 2 + displayvideo/v2/displayvideo-api.json | 125 +--- displayvideo/v2/displayvideo-gen.go | 147 +---- displayvideo/v3/displayvideo-api.json | 4 +- displayvideo/v3/displayvideo-gen.go | 2 +- drive/v2/drive-api.json | 4 +- drive/v2/drive-gen.go | 2 +- drive/v3/drive-api.json | 28 +- drive/v3/drive-gen.go | 2 +- .../v1alpha/firebaseappdistribution-api.json | 30 +- .../v1alpha/firebaseappdistribution-gen.go | 35 +- firebaseml/v2beta/firebaseml-api.json | 66 +- firebaseml/v2beta/firebaseml-gen.go | 61 +- gkehub/v1beta/gkehub-api.json | 42 +- gkehub/v1beta/gkehub-gen.go | 72 +-- gkehub/v2alpha/gkehub-api.json | 4 +- gkehub/v2alpha/gkehub-gen.go | 1 + gkehub/v2beta/gkehub-api.json | 4 +- gkehub/v2beta/gkehub-gen.go | 1 + iam/v1/iam-api.json | 4 +- iam/v1/iam-gen.go | 5 +- run/v2/run-api.json | 274 +++++++- run/v2/run-gen.go | 599 +++++++++++++++++- .../v1beta1/securitycenter-api.json | 5 +- securitycenter/v1beta1/securitycenter-gen.go | 2 +- .../v1beta2/securitycenter-api.json | 3 +- sqladmin/v1/sqladmin-api.json | 16 +- sqladmin/v1/sqladmin-gen.go | 4 + 43 files changed, 1198 insertions(+), 2075 deletions(-) diff --git a/adsenseplatform/v1alpha/adsenseplatform-api.json b/adsenseplatform/v1alpha/adsenseplatform-api.json index 3f78427196..b007d33441 100644 --- a/adsenseplatform/v1alpha/adsenseplatform-api.json +++ b/adsenseplatform/v1alpha/adsenseplatform-api.json @@ -202,7 +202,7 @@ "type": "string" }, "parent": { - "description": "Required. The name of the platform to retrieve. Format: accounts/{account}/platforms/{platform}/childAccounts/{child_publisher_code}", + "description": "Required. The name of the child account under the given platform which owns the platform child sites. Format: accounts/{account}/platforms/{platform}/childAccounts/{child_account}", "location": "path", "pattern": "^accounts/[^/]+/platforms/[^/]+/childAccounts/[^/]+$", "required": true, @@ -228,7 +228,7 @@ ], "parameters": { "name": { - "description": "Identifier. Format: accounts/{account}/platforms/{platform}/childAccounts/{child}/sites/{platformChildSite}", + "description": "Identifier. Format: accounts/{account}/platforms/{platform}/childAccounts/{child_account}/sites/{platform_child_site}", "location": "path", "pattern": "^accounts/[^/]+/platforms/[^/]+/childAccounts/[^/]+/sites/[^/]+$", "required": true, @@ -639,7 +639,7 @@ } } }, - "revision": "20250120", + "revision": "20250123", "rootUrl": "https://adsenseplatform.googleapis.com/", "schemas": { "Account": { @@ -945,7 +945,7 @@ "type": "string" }, "name": { - "description": "Identifier. Format: accounts/{account}/platforms/{platform}/childAccounts/{child}/sites/{platformChildSite}", + "description": "Identifier. Format: accounts/{account}/platforms/{platform}/childAccounts/{child_account}/sites/{platform_child_site}", "type": "string" }, "platformGroup": { diff --git a/adsenseplatform/v1alpha/adsenseplatform-gen.go b/adsenseplatform/v1alpha/adsenseplatform-gen.go index 3d8c1d47bc..9c48527cd7 100644 --- a/adsenseplatform/v1alpha/adsenseplatform-gen.go +++ b/adsenseplatform/v1alpha/adsenseplatform-gen.go @@ -723,8 +723,8 @@ type PlatformChildSite struct { // PlatformChildSite name. Domain string `json:"domain,omitempty"` // Name: Identifier. Format: - // accounts/{account}/platforms/{platform}/childAccounts/{child}/sites/{platform - // ChildSite} + // accounts/{account}/platforms/{platform}/childAccounts/{child_account}/sites/{ + // platform_child_site} Name string `json:"name,omitempty"` // PlatformGroup: Resource name of the Platform Group of the Platform Child // Site. @@ -1128,9 +1128,9 @@ type AccountsPlatformsChildAccountsSitesListCall struct { // List: Lists Platform Child Sites for a specified Platform Child Account. // -// - parent: The name of the platform to retrieve. Format: -// accounts/{account}/platforms/{platform}/childAccounts/{child_publisher_code -// }. +// - parent: The name of the child account under the given platform which owns +// the platform child sites. Format: +// accounts/{account}/platforms/{platform}/childAccounts/{child_account}. func (r *AccountsPlatformsChildAccountsSitesService) List(parent string) *AccountsPlatformsChildAccountsSitesListCall { c := &AccountsPlatformsChildAccountsSitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent @@ -1280,8 +1280,8 @@ type AccountsPlatformsChildAccountsSitesPatchCall struct { // Patch: Update a Platform Child Site. // // - name: Identifier. Format: -// accounts/{account}/platforms/{platform}/childAccounts/{child}/sites/{platfo -// rmChildSite}. +// accounts/{account}/platforms/{platform}/childAccounts/{child_account}/sites +// /{platform_child_site}. func (r *AccountsPlatformsChildAccountsSitesService) Patch(name string, platformchildsite *PlatformChildSite) *AccountsPlatformsChildAccountsSitesPatchCall { c := &AccountsPlatformsChildAccountsSitesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name diff --git a/androidmanagement/v1/androidmanagement-api.json b/androidmanagement/v1/androidmanagement-api.json index 91b3f7f97e..4422e24de1 100644 --- a/androidmanagement/v1/androidmanagement-api.json +++ b/androidmanagement/v1/androidmanagement-api.json @@ -1174,7 +1174,7 @@ } } }, - "revision": "20250109", + "revision": "20250123", "rootUrl": "https://androidmanagement.googleapis.com/", "schemas": { "AdbShellCommandEvent": { @@ -4858,7 +4858,7 @@ "type": "boolean" }, "adjustVolumeDisabled": { - "description": "Whether adjusting the master volume is disabled. Also mutes the device.", + "description": "Whether adjusting the master volume is disabled. Also mutes the device. The setting has effect only on fully managed devices.", "type": "boolean" }, "advancedSecurityOverrides": { @@ -5379,7 +5379,7 @@ "type": "boolean" }, "setUserIconDisabled": { - "description": "Whether changing the user icon is disabled.", + "description": "Whether changing the user icon is disabled. The setting has effect only on fully managed devices.", "type": "boolean" }, "setWallpaperDisabled": { diff --git a/androidmanagement/v1/androidmanagement-gen.go b/androidmanagement/v1/androidmanagement-gen.go index 06810f7560..4d3da4ffcf 100644 --- a/androidmanagement/v1/androidmanagement-gen.go +++ b/androidmanagement/v1/androidmanagement-gen.go @@ -4753,7 +4753,7 @@ type Policy struct { // user is never allowed to add or remove users. AddUserDisabled bool `json:"addUserDisabled,omitempty"` // AdjustVolumeDisabled: Whether adjusting the master volume is disabled. Also - // mutes the device. + // mutes the device. The setting has effect only on fully managed devices. AdjustVolumeDisabled bool `json:"adjustVolumeDisabled,omitempty"` // AdvancedSecurityOverrides: Advanced security settings. In most cases, // setting these is not needed. @@ -5179,7 +5179,8 @@ type Policy struct { SafeBootDisabled bool `json:"safeBootDisabled,omitempty"` // ScreenCaptureDisabled: Whether screen capture is disabled. ScreenCaptureDisabled bool `json:"screenCaptureDisabled,omitempty"` - // SetUserIconDisabled: Whether changing the user icon is disabled. + // SetUserIconDisabled: Whether changing the user icon is disabled. The setting + // has effect only on fully managed devices. SetUserIconDisabled bool `json:"setUserIconDisabled,omitempty"` // SetWallpaperDisabled: Whether changing the wallpaper is disabled. SetWallpaperDisabled bool `json:"setWallpaperDisabled,omitempty"` diff --git a/apphub/v1/apphub-api.json b/apphub/v1/apphub-api.json index 7ad1235cb9..905adb512a 100644 --- a/apphub/v1/apphub-api.json +++ b/apphub/v1/apphub-api.json @@ -1078,7 +1078,7 @@ "operations": { "methods": { "cancel": { - "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", "httpMethod": "POST", "id": "apphub.projects.locations.operations.cancel", @@ -1346,7 +1346,7 @@ } } }, - "revision": "20241008", + "revision": "20250115", "rootUrl": "https://apphub.googleapis.com/", "schemas": { "Application": { @@ -1410,42 +1410,6 @@ }, "type": "object" }, - "AssetLocation": { - "description": "Provides the mapping of a cloud asset to a direct physical location or to a proxy that defines the location on its behalf.", - "id": "AssetLocation", - "properties": { - "ccfeRmsPath": { - "description": "Spanner path of the CCFE RMS database. It is only applicable for CCFE tenants that use CCFE RMS for storing resource metadata.", - "type": "string" - }, - "expected": { - "$ref": "IsolationExpectations", - "description": "Defines the customer expectation around ZI/ZS for this asset and ZI/ZS state of the region at the time of asset creation." - }, - "extraParameters": { - "description": "Defines extra parameters required for specific asset types.", - "items": { - "$ref": "ExtraParameter" - }, - "type": "array" - }, - "locationData": { - "description": "Contains all kinds of physical location definitions for this asset.", - "items": { - "$ref": "LocationData" - }, - "type": "array" - }, - "parentAsset": { - "description": "Defines parents assets if any in order to allow later generation of child_asset_location data via child assets.", - "items": { - "$ref": "CloudAsset" - }, - "type": "array" - } - }, - "type": "object" - }, "Attributes": { "description": "Consumer provided attributes.", "id": "Attributes", @@ -1552,49 +1516,12 @@ }, "type": "object" }, - "BlobstoreLocation": { - "description": "Policy ID that identified data placement in Blobstore as per go/blobstore-user-guide#data-metadata-placement-and-failure-domains", - "id": "BlobstoreLocation", - "properties": { - "policyId": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "CancelOperationRequest": { "description": "The request message for Operations.CancelOperation.", "id": "CancelOperationRequest", "properties": {}, "type": "object" }, - "CloudAsset": { - "id": "CloudAsset", - "properties": { - "assetName": { - "type": "string" - }, - "assetType": { - "type": "string" - } - }, - "type": "object" - }, - "CloudAssetComposition": { - "id": "CloudAssetComposition", - "properties": { - "childAsset": { - "items": { - "$ref": "CloudAsset" - }, - "type": "array" - } - }, - "type": "object" - }, "ContactInfo": { "description": "Contact information of stakeholders.", "id": "ContactInfo", @@ -1647,18 +1574,6 @@ "properties": {}, "type": "object" }, - "DirectLocationAssignment": { - "id": "DirectLocationAssignment", - "properties": { - "location": { - "items": { - "$ref": "LocationAssignment" - }, - "type": "array" - } - }, - "type": "object" - }, "DiscoveredService": { "description": "DiscoveredService is a network or API interface that exposes some functionality to clients for consumption over the network. A discovered service can be registered to a App Hub service.", "id": "DiscoveredService", @@ -1755,142 +1670,6 @@ }, "type": "object" }, - "ExtraParameter": { - "description": "Defines parameters that should only be used for specific asset types.", - "id": "ExtraParameter", - "properties": { - "regionalMigDistributionPolicy": { - "$ref": "RegionalMigDistributionPolicy", - "description": "Details about zones used by regional compute.googleapis.com/InstanceGroupManager to create instances." - } - }, - "type": "object" - }, - "IsolationExpectations": { - "id": "IsolationExpectations", - "properties": { - "requirementOverride": { - "$ref": "RequirementOverride", - "description": "Explicit overrides for ZI and ZS requirements to be used for resources that should be excluded from ZI/ZS verification logic." - }, - "ziOrgPolicy": { - "enum": [ - "ZI_UNSPECIFIED", - "ZI_UNKNOWN", - "ZI_NOT_REQUIRED", - "ZI_PREFERRED", - "ZI_REQUIRED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "", - "" - ], - "type": "string" - }, - "ziRegionPolicy": { - "enum": [ - "ZI_REGION_POLICY_UNSPECIFIED", - "ZI_REGION_POLICY_UNKNOWN", - "ZI_REGION_POLICY_NOT_SET", - "ZI_REGION_POLICY_FAIL_OPEN", - "ZI_REGION_POLICY_FAIL_CLOSED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "", - "" - ], - "type": "string" - }, - "ziRegionState": { - "enum": [ - "ZI_REGION_UNSPECIFIED", - "ZI_REGION_UNKNOWN", - "ZI_REGION_NOT_ENABLED", - "ZI_REGION_ENABLED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "" - ], - "type": "string" - }, - "zoneIsolation": { - "deprecated": true, - "description": "Deprecated: use zi_org_policy, zi_region_policy and zi_region_state instead for setting ZI expectations as per go/zicy-publish-physical-location.", - "enum": [ - "ZI_UNSPECIFIED", - "ZI_UNKNOWN", - "ZI_NOT_REQUIRED", - "ZI_PREFERRED", - "ZI_REQUIRED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "", - "" - ], - "type": "string" - }, - "zoneSeparation": { - "deprecated": true, - "description": "Deprecated: use zs_org_policy, and zs_region_stateinstead for setting Zs expectations as per go/zicy-publish-physical-location.", - "enum": [ - "ZS_UNSPECIFIED", - "ZS_UNKNOWN", - "ZS_NOT_REQUIRED", - "ZS_REQUIRED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "" - ], - "type": "string" - }, - "zsOrgPolicy": { - "enum": [ - "ZS_UNSPECIFIED", - "ZS_UNKNOWN", - "ZS_NOT_REQUIRED", - "ZS_REQUIRED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "" - ], - "type": "string" - }, - "zsRegionState": { - "enum": [ - "ZS_REGION_UNSPECIFIED", - "ZS_REGION_UNKNOWN", - "ZS_REGION_NOT_ENABLED", - "ZS_REGION_ENABLED" - ], - "enumDescriptions": [ - "", - "To be used if tracking of the asset ZS-bit is not available", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, "ListApplicationsResponse": { "description": "Response for ListApplications.", "id": "ListApplicationsResponse", @@ -2111,64 +1890,6 @@ }, "type": "object" }, - "LocationAssignment": { - "id": "LocationAssignment", - "properties": { - "location": { - "type": "string" - }, - "locationType": { - "enum": [ - "UNSPECIFIED", - "CLUSTER", - "POP", - "CLOUD_ZONE", - "CLOUD_REGION", - "MULTI_REGION_GEO", - "MULTI_REGION_JURISDICTION", - "GLOBAL", - "OTHER" - ], - "enumDescriptions": [ - "", - "1-10: Physical failure domains.", - "", - "11-20: Logical failure domains.", - "", - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "LocationData": { - "id": "LocationData", - "properties": { - "blobstoreLocation": { - "$ref": "BlobstoreLocation" - }, - "childAssetLocation": { - "$ref": "CloudAssetComposition" - }, - "directLocation": { - "$ref": "DirectLocationAssignment" - }, - "gcpProjectProxy": { - "$ref": "TenantProjectProxy" - }, - "placerLocation": { - "$ref": "PlacerLocation" - }, - "spannerLocation": { - "$ref": "SpannerLocation" - } - }, - "type": "object" - }, "LookupDiscoveredServiceResponse": { "description": "Response for LookupDiscoveredService.", "id": "LookupDiscoveredServiceResponse", @@ -2259,7 +1980,7 @@ "type": "string" }, "requestedCancellation": { - "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", "readOnly": true, "type": "boolean" }, @@ -2281,17 +2002,6 @@ }, "type": "object" }, - "PlacerLocation": { - "description": "Message describing that the location of the customer resource is tied to placer allocations", - "id": "PlacerLocation", - "properties": { - "placerConfig": { - "description": "Directory with a config related to it in placer (e.g. \"/placer/prod/home/my-root/my-dir\")", - "type": "string" - } - }, - "type": "object" - }, "Policy": { "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", "id": "Policy", @@ -2354,63 +2064,6 @@ }, "type": "object" }, - "RegionalMigDistributionPolicy": { - "description": "To be used for specifying the intended distribution of regional compute.googleapis.com/InstanceGroupManager instances", - "id": "RegionalMigDistributionPolicy", - "properties": { - "targetShape": { - "description": "The shape in which the group converges around distribution of resources. Instance of proto2 enum", - "format": "int32", - "type": "integer" - }, - "zones": { - "description": "Cloud zones used by regional MIG to create instances.", - "items": { - "$ref": "ZoneConfiguration" - }, - "type": "array" - } - }, - "type": "object" - }, - "RequirementOverride": { - "id": "RequirementOverride", - "properties": { - "ziOverride": { - "enum": [ - "ZI_UNSPECIFIED", - "ZI_UNKNOWN", - "ZI_NOT_REQUIRED", - "ZI_PREFERRED", - "ZI_REQUIRED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "", - "" - ], - "type": "string" - }, - "zsOverride": { - "enum": [ - "ZS_UNSPECIFIED", - "ZS_UNKNOWN", - "ZS_NOT_REQUIRED", - "ZS_REQUIRED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, "Scope": { "description": "Scope of an application.", "id": "Scope", @@ -2598,26 +2251,6 @@ }, "type": "object" }, - "SpannerLocation": { - "id": "SpannerLocation", - "properties": { - "backupName": { - "description": "Set of backups used by the resource with name in the same format as what is available at http://table/spanner_automon.backup_metadata", - "items": { - "type": "string" - }, - "type": "array" - }, - "dbName": { - "description": "Set of databases used by the resource in format /span//", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "Status": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "Status", @@ -2645,18 +2278,6 @@ }, "type": "object" }, - "TenantProjectProxy": { - "id": "TenantProjectProxy", - "properties": { - "projectNumbers": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "TestIamPermissionsRequest": { "description": "Request message for `TestIamPermissions` method.", "id": "TestIamPermissionsRequest", @@ -2791,15 +2412,6 @@ } }, "type": "object" - }, - "ZoneConfiguration": { - "id": "ZoneConfiguration", - "properties": { - "zone": { - "type": "string" - } - }, - "type": "object" } }, "servicePath": "", diff --git a/apphub/v1/apphub-gen.go b/apphub/v1/apphub-gen.go index 52e5ddc292..0804caa70c 100644 --- a/apphub/v1/apphub-gen.go +++ b/apphub/v1/apphub-gen.go @@ -318,41 +318,6 @@ func (s Application) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AssetLocation: Provides the mapping of a cloud asset to a direct physical -// location or to a proxy that defines the location on its behalf. -type AssetLocation struct { - // CcfeRmsPath: Spanner path of the CCFE RMS database. It is only applicable - // for CCFE tenants that use CCFE RMS for storing resource metadata. - CcfeRmsPath string `json:"ccfeRmsPath,omitempty"` - // Expected: Defines the customer expectation around ZI/ZS for this asset and - // ZI/ZS state of the region at the time of asset creation. - Expected *IsolationExpectations `json:"expected,omitempty"` - // ExtraParameters: Defines extra parameters required for specific asset types. - ExtraParameters []*ExtraParameter `json:"extraParameters,omitempty"` - // LocationData: Contains all kinds of physical location definitions for this - // asset. - LocationData []*LocationData `json:"locationData,omitempty"` - // ParentAsset: Defines parents assets if any in order to allow later - // generation of child_asset_location data via child assets. - ParentAsset []*CloudAsset `json:"parentAsset,omitempty"` - // ForceSendFields is a list of field names (e.g. "CcfeRmsPath") 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. "CcfeRmsPath") 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 AssetLocation) MarshalJSON() ([]byte, error) { - type NoMethod AssetLocation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // Attributes: Consumer provided attributes. type Attributes struct { // BusinessOwners: Optional. Business team that ensures user needs are met and @@ -559,73 +524,10 @@ func (s Binding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BlobstoreLocation: Policy ID that identified data placement in Blobstore as -// per go/blobstore-user-guide#data-metadata-placement-and-failure-domains -type BlobstoreLocation struct { - PolicyId []string `json:"policyId,omitempty"` - // ForceSendFields is a list of field names (e.g. "PolicyId") 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. "PolicyId") 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 BlobstoreLocation) MarshalJSON() ([]byte, error) { - type NoMethod BlobstoreLocation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // CancelOperationRequest: The request message for Operations.CancelOperation. type CancelOperationRequest struct { } -type CloudAsset struct { - AssetName string `json:"assetName,omitempty"` - AssetType string `json:"assetType,omitempty"` - // ForceSendFields is a list of field names (e.g. "AssetName") 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. "AssetName") 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 CloudAsset) MarshalJSON() ([]byte, error) { - type NoMethod CloudAsset - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type CloudAssetComposition struct { - ChildAsset []*CloudAsset `json:"childAsset,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChildAsset") 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. "ChildAsset") 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 CloudAssetComposition) MarshalJSON() ([]byte, error) { - type NoMethod CloudAssetComposition - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // ContactInfo: Contact information of stakeholders. type ContactInfo struct { // DisplayName: Optional. Contact's name. Can have a maximum length of 63 @@ -692,26 +594,6 @@ type DetachServiceProjectAttachmentResponse struct { googleapi.ServerResponse `json:"-"` } -type DirectLocationAssignment struct { - Location []*LocationAssignment `json:"location,omitempty"` - // ForceSendFields is a list of field names (e.g. "Location") 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. "Location") 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 DirectLocationAssignment) MarshalJSON() ([]byte, error) { - type NoMethod DirectLocationAssignment - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // DiscoveredService: DiscoveredService is a network or API interface that // exposes some functionality to clients for consumption over the network. A // discovered service can be registered to a App Hub service. @@ -868,105 +750,6 @@ func (s Expr) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ExtraParameter: Defines parameters that should only be used for specific -// asset types. -type ExtraParameter struct { - // RegionalMigDistributionPolicy: Details about zones used by regional - // compute.googleapis.com/InstanceGroupManager to create instances. - RegionalMigDistributionPolicy *RegionalMigDistributionPolicy `json:"regionalMigDistributionPolicy,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "RegionalMigDistributionPolicy") 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. "RegionalMigDistributionPolicy") - // 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 ExtraParameter) MarshalJSON() ([]byte, error) { - type NoMethod ExtraParameter - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type IsolationExpectations struct { - // RequirementOverride: Explicit overrides for ZI and ZS requirements to be - // used for resources that should be excluded from ZI/ZS verification logic. - RequirementOverride *RequirementOverride `json:"requirementOverride,omitempty"` - // Possible values: - // "ZI_UNSPECIFIED" - // "ZI_UNKNOWN" - To be used if tracking is not available - // "ZI_NOT_REQUIRED" - // "ZI_PREFERRED" - // "ZI_REQUIRED" - ZiOrgPolicy string `json:"ziOrgPolicy,omitempty"` - // Possible values: - // "ZI_REGION_POLICY_UNSPECIFIED" - // "ZI_REGION_POLICY_UNKNOWN" - To be used if tracking is not available - // "ZI_REGION_POLICY_NOT_SET" - // "ZI_REGION_POLICY_FAIL_OPEN" - // "ZI_REGION_POLICY_FAIL_CLOSED" - ZiRegionPolicy string `json:"ziRegionPolicy,omitempty"` - // Possible values: - // "ZI_REGION_UNSPECIFIED" - // "ZI_REGION_UNKNOWN" - To be used if tracking is not available - // "ZI_REGION_NOT_ENABLED" - // "ZI_REGION_ENABLED" - ZiRegionState string `json:"ziRegionState,omitempty"` - // ZoneIsolation: Deprecated: use zi_org_policy, zi_region_policy and - // zi_region_state instead for setting ZI expectations as per - // go/zicy-publish-physical-location. - // - // Possible values: - // "ZI_UNSPECIFIED" - // "ZI_UNKNOWN" - To be used if tracking is not available - // "ZI_NOT_REQUIRED" - // "ZI_PREFERRED" - // "ZI_REQUIRED" - ZoneIsolation string `json:"zoneIsolation,omitempty"` - // ZoneSeparation: Deprecated: use zs_org_policy, and zs_region_stateinstead - // for setting Zs expectations as per go/zicy-publish-physical-location. - // - // Possible values: - // "ZS_UNSPECIFIED" - // "ZS_UNKNOWN" - To be used if tracking is not available - // "ZS_NOT_REQUIRED" - // "ZS_REQUIRED" - ZoneSeparation string `json:"zoneSeparation,omitempty"` - // Possible values: - // "ZS_UNSPECIFIED" - // "ZS_UNKNOWN" - To be used if tracking is not available - // "ZS_NOT_REQUIRED" - // "ZS_REQUIRED" - ZsOrgPolicy string `json:"zsOrgPolicy,omitempty"` - // Possible values: - // "ZS_REGION_UNSPECIFIED" - // "ZS_REGION_UNKNOWN" - To be used if tracking of the asset ZS-bit is not - // available - // "ZS_REGION_NOT_ENABLED" - // "ZS_REGION_ENABLED" - ZsRegionState string `json:"zsRegionState,omitempty"` - // ForceSendFields is a list of field names (e.g. "RequirementOverride") 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. "RequirementOverride") 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 IsolationExpectations) MarshalJSON() ([]byte, error) { - type NoMethod IsolationExpectations - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // ListApplicationsResponse: Response for ListApplications. type ListApplicationsResponse struct { // Applications: List of Applications. @@ -1242,62 +1025,6 @@ func (s Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -type LocationAssignment struct { - Location string `json:"location,omitempty"` - // Possible values: - // "UNSPECIFIED" - // "CLUSTER" - 1-10: Physical failure domains. - // "POP" - // "CLOUD_ZONE" - 11-20: Logical failure domains. - // "CLOUD_REGION" - // "MULTI_REGION_GEO" - // "MULTI_REGION_JURISDICTION" - // "GLOBAL" - // "OTHER" - LocationType string `json:"locationType,omitempty"` - // ForceSendFields is a list of field names (e.g. "Location") 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. "Location") 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 LocationAssignment) MarshalJSON() ([]byte, error) { - type NoMethod LocationAssignment - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type LocationData struct { - BlobstoreLocation *BlobstoreLocation `json:"blobstoreLocation,omitempty"` - ChildAssetLocation *CloudAssetComposition `json:"childAssetLocation,omitempty"` - DirectLocation *DirectLocationAssignment `json:"directLocation,omitempty"` - GcpProjectProxy *TenantProjectProxy `json:"gcpProjectProxy,omitempty"` - PlacerLocation *PlacerLocation `json:"placerLocation,omitempty"` - SpannerLocation *SpannerLocation `json:"spannerLocation,omitempty"` - // ForceSendFields is a list of field names (e.g. "BlobstoreLocation") 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. "BlobstoreLocation") 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 LocationData) MarshalJSON() ([]byte, error) { - type NoMethod LocationData - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // LookupDiscoveredServiceResponse: Response for LookupDiscoveredService. type LookupDiscoveredServiceResponse struct { // DiscoveredService: Discovered Service if exists, empty otherwise. @@ -1432,8 +1159,8 @@ type OperationMetadata struct { EndTime string `json:"endTime,omitempty"` // RequestedCancellation: Output only. Identifies whether the user has // requested cancellation of the operation. Operations that have been cancelled - // successfully have Operation.error value with a google.rpc.Status.code of 1, - // corresponding to `Code.CANCELLED`. + // successfully have google.longrunning.Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. RequestedCancellation bool `json:"requestedCancellation,omitempty"` // StatusMessage: Output only. Human-readable status of the operation, if any. StatusMessage string `json:"statusMessage,omitempty"` @@ -1460,30 +1187,6 @@ func (s OperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PlacerLocation: Message describing that the location of the customer -// resource is tied to placer allocations -type PlacerLocation struct { - // PlacerConfig: Directory with a config related to it in placer (e.g. - // "/placer/prod/home/my-root/my-dir") - PlacerConfig string `json:"placerConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "PlacerConfig") 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. "PlacerConfig") 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 PlacerLocation) MarshalJSON() ([]byte, error) { - type NoMethod PlacerLocation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // Policy: An Identity and Access Management (IAM) policy, which specifies // access controls for Google Cloud resources. A `Policy` is a collection of // `bindings`. A `binding` binds one or more `members`, or principals, to a @@ -1611,65 +1314,6 @@ func (s ReconciliationOperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RegionalMigDistributionPolicy: To be used for specifying the intended -// distribution of regional compute.googleapis.com/InstanceGroupManager -// instances -type RegionalMigDistributionPolicy struct { - // TargetShape: The shape in which the group converges around distribution of - // resources. Instance of proto2 enum - TargetShape int64 `json:"targetShape,omitempty"` - // Zones: Cloud zones used by regional MIG to create instances. - Zones []*ZoneConfiguration `json:"zones,omitempty"` - // ForceSendFields is a list of field names (e.g. "TargetShape") 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. "TargetShape") 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 RegionalMigDistributionPolicy) MarshalJSON() ([]byte, error) { - type NoMethod RegionalMigDistributionPolicy - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type RequirementOverride struct { - // Possible values: - // "ZI_UNSPECIFIED" - // "ZI_UNKNOWN" - To be used if tracking is not available - // "ZI_NOT_REQUIRED" - // "ZI_PREFERRED" - // "ZI_REQUIRED" - ZiOverride string `json:"ziOverride,omitempty"` - // Possible values: - // "ZS_UNSPECIFIED" - // "ZS_UNKNOWN" - To be used if tracking is not available - // "ZS_NOT_REQUIRED" - // "ZS_REQUIRED" - ZsOverride string `json:"zsOverride,omitempty"` - // ForceSendFields is a list of field names (e.g. "ZiOverride") 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. "ZiOverride") 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 RequirementOverride) MarshalJSON() ([]byte, error) { - type NoMethod RequirementOverride - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // Scope: Scope of an application. type Scope struct { // Type: Required. Scope Type. @@ -1894,30 +1538,6 @@ func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -type SpannerLocation struct { - // BackupName: Set of backups used by the resource with name in the same format - // as what is available at http://table/spanner_automon.backup_metadata - BackupName []string `json:"backupName,omitempty"` - // DbName: Set of databases used by the resource in format /span// - DbName []string `json:"dbName,omitempty"` - // ForceSendFields is a list of field names (e.g. "BackupName") 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. "BackupName") 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 SpannerLocation) MarshalJSON() ([]byte, error) { - type NoMethod SpannerLocation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // Status: The `Status` type defines a logical error model that is suitable for // different programming environments, including REST APIs and RPC APIs. It is // used by gRPC (https://github.com/grpc). Each `Status` message contains three @@ -1952,26 +1572,6 @@ func (s Status) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -type TenantProjectProxy struct { - ProjectNumbers []string `json:"projectNumbers,omitempty"` - // ForceSendFields is a list of field names (e.g. "ProjectNumbers") 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. "ProjectNumbers") 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 TenantProjectProxy) MarshalJSON() ([]byte, error) { - type NoMethod TenantProjectProxy - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // TestIamPermissionsRequest: Request message for `TestIamPermissions` method. type TestIamPermissionsRequest struct { // Permissions: The set of permissions to check for the `resource`. Permissions @@ -2140,26 +1740,6 @@ func (s WorkloadReference) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -type ZoneConfiguration struct { - Zone string `json:"zone,omitempty"` - // ForceSendFields is a list of field names (e.g. "Zone") 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. "Zone") 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 ZoneConfiguration) MarshalJSON() ([]byte, error) { - type NoMethod ZoneConfiguration - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - type ProjectsLocationsDetachServiceProjectAttachmentCall struct { s *APIService name string @@ -5748,7 +5328,7 @@ type ProjectsLocationsOperationsCancelCall struct { // other methods to check whether the cancellation succeeded or whether the // operation completed despite cancellation. On successful cancellation, the // operation is not deleted; instead, it becomes an operation with an -// Operation.error value with a google.rpc.Status.code of 1, corresponding to +// Operation.error value with a google.rpc.Status.code of `1`, corresponding to // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. diff --git a/apphub/v1alpha/apphub-api.json b/apphub/v1alpha/apphub-api.json index 7dba2f9771..ee6fd84cb2 100644 --- a/apphub/v1alpha/apphub-api.json +++ b/apphub/v1alpha/apphub-api.json @@ -1170,7 +1170,7 @@ "operations": { "methods": { "cancel": { - "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", "flatPath": "v1alpha/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}:cancel", "httpMethod": "POST", "id": "apphub.projects.locations.operations.cancel", @@ -1438,7 +1438,7 @@ } } }, - "revision": "20241008", + "revision": "20250115", "rootUrl": "https://apphub.googleapis.com/", "schemas": { "Application": { @@ -1502,42 +1502,6 @@ }, "type": "object" }, - "AssetLocation": { - "description": "Provides the mapping of a cloud asset to a direct physical location or to a proxy that defines the location on its behalf.", - "id": "AssetLocation", - "properties": { - "ccfeRmsPath": { - "description": "Spanner path of the CCFE RMS database. It is only applicable for CCFE tenants that use CCFE RMS for storing resource metadata.", - "type": "string" - }, - "expected": { - "$ref": "IsolationExpectations", - "description": "Defines the customer expectation around ZI/ZS for this asset and ZI/ZS state of the region at the time of asset creation." - }, - "extraParameters": { - "description": "Defines extra parameters required for specific asset types.", - "items": { - "$ref": "ExtraParameter" - }, - "type": "array" - }, - "locationData": { - "description": "Contains all kinds of physical location definitions for this asset.", - "items": { - "$ref": "LocationData" - }, - "type": "array" - }, - "parentAsset": { - "description": "Defines parents assets if any in order to allow later generation of child_asset_location data via child assets.", - "items": { - "$ref": "CloudAsset" - }, - "type": "array" - } - }, - "type": "object" - }, "Attributes": { "description": "Consumer provided attributes.", "id": "Attributes", @@ -1644,19 +1608,6 @@ }, "type": "object" }, - "BlobstoreLocation": { - "description": "Policy ID that identified data placement in Blobstore as per go/blobstore-user-guide#data-metadata-placement-and-failure-domains", - "id": "BlobstoreLocation", - "properties": { - "policyId": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "CancelOperationRequest": { "description": "The request message for Operations.CancelOperation.", "id": "CancelOperationRequest", @@ -1674,30 +1625,6 @@ }, "type": "object" }, - "CloudAsset": { - "id": "CloudAsset", - "properties": { - "assetName": { - "type": "string" - }, - "assetType": { - "type": "string" - } - }, - "type": "object" - }, - "CloudAssetComposition": { - "id": "CloudAssetComposition", - "properties": { - "childAsset": { - "items": { - "$ref": "CloudAsset" - }, - "type": "array" - } - }, - "type": "object" - }, "ContactInfo": { "description": "Contact information of stakeholders.", "id": "ContactInfo", @@ -1764,18 +1691,6 @@ "properties": {}, "type": "object" }, - "DirectLocationAssignment": { - "id": "DirectLocationAssignment", - "properties": { - "location": { - "items": { - "$ref": "LocationAssignment" - }, - "type": "array" - } - }, - "type": "object" - }, "DiscoveredService": { "description": "DiscoveredService is a network or API interface that exposes some functionality to clients for consumption over the network. A discovered service can be registered to a App Hub service.", "id": "DiscoveredService", @@ -1877,17 +1792,6 @@ }, "type": "object" }, - "ExtraParameter": { - "description": "Defines parameters that should only be used for specific asset types.", - "id": "ExtraParameter", - "properties": { - "regionalMigDistributionPolicy": { - "$ref": "RegionalMigDistributionPolicy", - "description": "Details about zones used by regional compute.googleapis.com/InstanceGroupManager to create instances." - } - }, - "type": "object" - }, "FindUnregisteredServicesResponse": { "description": "Response for FindUnregisteredServices.", "id": "FindUnregisteredServicesResponse", @@ -1938,131 +1842,6 @@ }, "type": "object" }, - "IsolationExpectations": { - "id": "IsolationExpectations", - "properties": { - "requirementOverride": { - "$ref": "RequirementOverride", - "description": "Explicit overrides for ZI and ZS requirements to be used for resources that should be excluded from ZI/ZS verification logic." - }, - "ziOrgPolicy": { - "enum": [ - "ZI_UNSPECIFIED", - "ZI_UNKNOWN", - "ZI_NOT_REQUIRED", - "ZI_PREFERRED", - "ZI_REQUIRED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "", - "" - ], - "type": "string" - }, - "ziRegionPolicy": { - "enum": [ - "ZI_REGION_POLICY_UNSPECIFIED", - "ZI_REGION_POLICY_UNKNOWN", - "ZI_REGION_POLICY_NOT_SET", - "ZI_REGION_POLICY_FAIL_OPEN", - "ZI_REGION_POLICY_FAIL_CLOSED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "", - "" - ], - "type": "string" - }, - "ziRegionState": { - "enum": [ - "ZI_REGION_UNSPECIFIED", - "ZI_REGION_UNKNOWN", - "ZI_REGION_NOT_ENABLED", - "ZI_REGION_ENABLED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "" - ], - "type": "string" - }, - "zoneIsolation": { - "deprecated": true, - "description": "Deprecated: use zi_org_policy, zi_region_policy and zi_region_state instead for setting ZI expectations as per go/zicy-publish-physical-location.", - "enum": [ - "ZI_UNSPECIFIED", - "ZI_UNKNOWN", - "ZI_NOT_REQUIRED", - "ZI_PREFERRED", - "ZI_REQUIRED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "", - "" - ], - "type": "string" - }, - "zoneSeparation": { - "deprecated": true, - "description": "Deprecated: use zs_org_policy, and zs_region_stateinstead for setting Zs expectations as per go/zicy-publish-physical-location.", - "enum": [ - "ZS_UNSPECIFIED", - "ZS_UNKNOWN", - "ZS_NOT_REQUIRED", - "ZS_REQUIRED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "" - ], - "type": "string" - }, - "zsOrgPolicy": { - "enum": [ - "ZS_UNSPECIFIED", - "ZS_UNKNOWN", - "ZS_NOT_REQUIRED", - "ZS_REQUIRED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "" - ], - "type": "string" - }, - "zsRegionState": { - "enum": [ - "ZS_REGION_UNSPECIFIED", - "ZS_REGION_UNKNOWN", - "ZS_REGION_NOT_ENABLED", - "ZS_REGION_ENABLED" - ], - "enumDescriptions": [ - "", - "To be used if tracking of the asset ZS-bit is not available", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, "ListApplicationsResponse": { "description": "Response for ListApplications.", "id": "ListApplicationsResponse", @@ -2283,64 +2062,6 @@ }, "type": "object" }, - "LocationAssignment": { - "id": "LocationAssignment", - "properties": { - "location": { - "type": "string" - }, - "locationType": { - "enum": [ - "UNSPECIFIED", - "CLUSTER", - "POP", - "CLOUD_ZONE", - "CLOUD_REGION", - "MULTI_REGION_GEO", - "MULTI_REGION_JURISDICTION", - "GLOBAL", - "OTHER" - ], - "enumDescriptions": [ - "", - "1-10: Physical failure domains.", - "", - "11-20: Logical failure domains.", - "", - "", - "", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, - "LocationData": { - "id": "LocationData", - "properties": { - "blobstoreLocation": { - "$ref": "BlobstoreLocation" - }, - "childAssetLocation": { - "$ref": "CloudAssetComposition" - }, - "directLocation": { - "$ref": "DirectLocationAssignment" - }, - "gcpProjectProxy": { - "$ref": "TenantProjectProxy" - }, - "placerLocation": { - "$ref": "PlacerLocation" - }, - "spannerLocation": { - "$ref": "SpannerLocation" - } - }, - "type": "object" - }, "LookupDiscoveredServiceResponse": { "description": "Response for LookupDiscoveredService.", "id": "LookupDiscoveredServiceResponse", @@ -2431,7 +2152,7 @@ "type": "string" }, "requestedCancellation": { - "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", + "description": "Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.", "readOnly": true, "type": "boolean" }, @@ -2453,17 +2174,6 @@ }, "type": "object" }, - "PlacerLocation": { - "description": "Message describing that the location of the customer resource is tied to placer allocations", - "id": "PlacerLocation", - "properties": { - "placerConfig": { - "description": "Directory with a config related to it in placer (e.g. \"/placer/prod/home/my-root/my-dir\")", - "type": "string" - } - }, - "type": "object" - }, "Policy": { "description": "An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** ``` { \"bindings\": [ { \"role\": \"roles/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike@example.com\", \"group:admins@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles/resourcemanager.organizationViewer\", \"members\": [ \"user:eve@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \u003c timestamp('2020-10-01T00:00:00.000Z')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 } ``` **YAML example:** ``` bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \u003c timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).", "id": "Policy", @@ -2495,63 +2205,6 @@ }, "type": "object" }, - "RegionalMigDistributionPolicy": { - "description": "To be used for specifying the intended distribution of regional compute.googleapis.com/InstanceGroupManager instances", - "id": "RegionalMigDistributionPolicy", - "properties": { - "targetShape": { - "description": "The shape in which the group converges around distribution of resources. Instance of proto2 enum", - "format": "int32", - "type": "integer" - }, - "zones": { - "description": "Cloud zones used by regional MIG to create instances.", - "items": { - "$ref": "ZoneConfiguration" - }, - "type": "array" - } - }, - "type": "object" - }, - "RequirementOverride": { - "id": "RequirementOverride", - "properties": { - "ziOverride": { - "enum": [ - "ZI_UNSPECIFIED", - "ZI_UNKNOWN", - "ZI_NOT_REQUIRED", - "ZI_PREFERRED", - "ZI_REQUIRED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "", - "" - ], - "type": "string" - }, - "zsOverride": { - "enum": [ - "ZS_UNSPECIFIED", - "ZS_UNKNOWN", - "ZS_NOT_REQUIRED", - "ZS_REQUIRED" - ], - "enumDescriptions": [ - "", - "To be used if tracking is not available", - "", - "" - ], - "type": "string" - } - }, - "type": "object" - }, "Scope": { "description": "Scope of an application.", "id": "Scope", @@ -2744,26 +2397,6 @@ }, "type": "object" }, - "SpannerLocation": { - "id": "SpannerLocation", - "properties": { - "backupName": { - "description": "Set of backups used by the resource with name in the same format as what is available at http://table/spanner_automon.backup_metadata", - "items": { - "type": "string" - }, - "type": "array" - }, - "dbName": { - "description": "Set of databases used by the resource in format /span//", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "Status": { "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "id": "Status", @@ -2791,18 +2424,6 @@ }, "type": "object" }, - "TenantProjectProxy": { - "id": "TenantProjectProxy", - "properties": { - "projectNumbers": { - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "TestIamPermissionsRequest": { "description": "Request message for `TestIamPermissions` method.", "id": "TestIamPermissionsRequest", @@ -2937,15 +2558,6 @@ } }, "type": "object" - }, - "ZoneConfiguration": { - "id": "ZoneConfiguration", - "properties": { - "zone": { - "type": "string" - } - }, - "type": "object" } }, "servicePath": "", diff --git a/apphub/v1alpha/apphub-gen.go b/apphub/v1alpha/apphub-gen.go index 4e10ce5c44..e30331ed50 100644 --- a/apphub/v1alpha/apphub-gen.go +++ b/apphub/v1alpha/apphub-gen.go @@ -318,41 +318,6 @@ func (s Application) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AssetLocation: Provides the mapping of a cloud asset to a direct physical -// location or to a proxy that defines the location on its behalf. -type AssetLocation struct { - // CcfeRmsPath: Spanner path of the CCFE RMS database. It is only applicable - // for CCFE tenants that use CCFE RMS for storing resource metadata. - CcfeRmsPath string `json:"ccfeRmsPath,omitempty"` - // Expected: Defines the customer expectation around ZI/ZS for this asset and - // ZI/ZS state of the region at the time of asset creation. - Expected *IsolationExpectations `json:"expected,omitempty"` - // ExtraParameters: Defines extra parameters required for specific asset types. - ExtraParameters []*ExtraParameter `json:"extraParameters,omitempty"` - // LocationData: Contains all kinds of physical location definitions for this - // asset. - LocationData []*LocationData `json:"locationData,omitempty"` - // ParentAsset: Defines parents assets if any in order to allow later - // generation of child_asset_location data via child assets. - ParentAsset []*CloudAsset `json:"parentAsset,omitempty"` - // ForceSendFields is a list of field names (e.g. "CcfeRmsPath") 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. "CcfeRmsPath") 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 AssetLocation) MarshalJSON() ([]byte, error) { - type NoMethod AssetLocation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // Attributes: Consumer provided attributes. type Attributes struct { // BusinessOwners: Optional. Business team that ensures user needs are met and @@ -559,28 +524,6 @@ func (s Binding) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// BlobstoreLocation: Policy ID that identified data placement in Blobstore as -// per go/blobstore-user-guide#data-metadata-placement-and-failure-domains -type BlobstoreLocation struct { - PolicyId []string `json:"policyId,omitempty"` - // ForceSendFields is a list of field names (e.g. "PolicyId") 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. "PolicyId") 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 BlobstoreLocation) MarshalJSON() ([]byte, error) { - type NoMethod BlobstoreLocation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // CancelOperationRequest: The request message for Operations.CancelOperation. type CancelOperationRequest struct { } @@ -608,47 +551,6 @@ func (s Channel) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -type CloudAsset struct { - AssetName string `json:"assetName,omitempty"` - AssetType string `json:"assetType,omitempty"` - // ForceSendFields is a list of field names (e.g. "AssetName") 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. "AssetName") 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 CloudAsset) MarshalJSON() ([]byte, error) { - type NoMethod CloudAsset - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type CloudAssetComposition struct { - ChildAsset []*CloudAsset `json:"childAsset,omitempty"` - // ForceSendFields is a list of field names (e.g. "ChildAsset") 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. "ChildAsset") 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 CloudAssetComposition) MarshalJSON() ([]byte, error) { - type NoMethod CloudAssetComposition - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // ContactInfo: Contact information of stakeholders. type ContactInfo struct { // Channel: Optional. Communication channel of the contacts. @@ -724,26 +626,6 @@ type DetachServiceProjectAttachmentResponse struct { googleapi.ServerResponse `json:"-"` } -type DirectLocationAssignment struct { - Location []*LocationAssignment `json:"location,omitempty"` - // ForceSendFields is a list of field names (e.g. "Location") 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. "Location") 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 DirectLocationAssignment) MarshalJSON() ([]byte, error) { - type NoMethod DirectLocationAssignment - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // DiscoveredService: DiscoveredService is a network or API interface that // exposes some functionality to clients for consumption over the network. A // discovered service can be registered to a App Hub service. @@ -904,30 +786,6 @@ func (s Expr) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// ExtraParameter: Defines parameters that should only be used for specific -// asset types. -type ExtraParameter struct { - // RegionalMigDistributionPolicy: Details about zones used by regional - // compute.googleapis.com/InstanceGroupManager to create instances. - RegionalMigDistributionPolicy *RegionalMigDistributionPolicy `json:"regionalMigDistributionPolicy,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "RegionalMigDistributionPolicy") 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. "RegionalMigDistributionPolicy") - // 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 ExtraParameter) MarshalJSON() ([]byte, error) { - type NoMethod ExtraParameter - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // FindUnregisteredServicesResponse: Response for FindUnregisteredServices. type FindUnregisteredServicesResponse struct { // DiscoveredServices: List of Discovered Services. @@ -988,81 +846,6 @@ func (s FindUnregisteredWorkloadsResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -type IsolationExpectations struct { - // RequirementOverride: Explicit overrides for ZI and ZS requirements to be - // used for resources that should be excluded from ZI/ZS verification logic. - RequirementOverride *RequirementOverride `json:"requirementOverride,omitempty"` - // Possible values: - // "ZI_UNSPECIFIED" - // "ZI_UNKNOWN" - To be used if tracking is not available - // "ZI_NOT_REQUIRED" - // "ZI_PREFERRED" - // "ZI_REQUIRED" - ZiOrgPolicy string `json:"ziOrgPolicy,omitempty"` - // Possible values: - // "ZI_REGION_POLICY_UNSPECIFIED" - // "ZI_REGION_POLICY_UNKNOWN" - To be used if tracking is not available - // "ZI_REGION_POLICY_NOT_SET" - // "ZI_REGION_POLICY_FAIL_OPEN" - // "ZI_REGION_POLICY_FAIL_CLOSED" - ZiRegionPolicy string `json:"ziRegionPolicy,omitempty"` - // Possible values: - // "ZI_REGION_UNSPECIFIED" - // "ZI_REGION_UNKNOWN" - To be used if tracking is not available - // "ZI_REGION_NOT_ENABLED" - // "ZI_REGION_ENABLED" - ZiRegionState string `json:"ziRegionState,omitempty"` - // ZoneIsolation: Deprecated: use zi_org_policy, zi_region_policy and - // zi_region_state instead for setting ZI expectations as per - // go/zicy-publish-physical-location. - // - // Possible values: - // "ZI_UNSPECIFIED" - // "ZI_UNKNOWN" - To be used if tracking is not available - // "ZI_NOT_REQUIRED" - // "ZI_PREFERRED" - // "ZI_REQUIRED" - ZoneIsolation string `json:"zoneIsolation,omitempty"` - // ZoneSeparation: Deprecated: use zs_org_policy, and zs_region_stateinstead - // for setting Zs expectations as per go/zicy-publish-physical-location. - // - // Possible values: - // "ZS_UNSPECIFIED" - // "ZS_UNKNOWN" - To be used if tracking is not available - // "ZS_NOT_REQUIRED" - // "ZS_REQUIRED" - ZoneSeparation string `json:"zoneSeparation,omitempty"` - // Possible values: - // "ZS_UNSPECIFIED" - // "ZS_UNKNOWN" - To be used if tracking is not available - // "ZS_NOT_REQUIRED" - // "ZS_REQUIRED" - ZsOrgPolicy string `json:"zsOrgPolicy,omitempty"` - // Possible values: - // "ZS_REGION_UNSPECIFIED" - // "ZS_REGION_UNKNOWN" - To be used if tracking of the asset ZS-bit is not - // available - // "ZS_REGION_NOT_ENABLED" - // "ZS_REGION_ENABLED" - ZsRegionState string `json:"zsRegionState,omitempty"` - // ForceSendFields is a list of field names (e.g. "RequirementOverride") 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. "RequirementOverride") 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 IsolationExpectations) MarshalJSON() ([]byte, error) { - type NoMethod IsolationExpectations - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // ListApplicationsResponse: Response for ListApplications. type ListApplicationsResponse struct { // Applications: List of Applications. @@ -1338,62 +1121,6 @@ func (s Location) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -type LocationAssignment struct { - Location string `json:"location,omitempty"` - // Possible values: - // "UNSPECIFIED" - // "CLUSTER" - 1-10: Physical failure domains. - // "POP" - // "CLOUD_ZONE" - 11-20: Logical failure domains. - // "CLOUD_REGION" - // "MULTI_REGION_GEO" - // "MULTI_REGION_JURISDICTION" - // "GLOBAL" - // "OTHER" - LocationType string `json:"locationType,omitempty"` - // ForceSendFields is a list of field names (e.g. "Location") 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. "Location") 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 LocationAssignment) MarshalJSON() ([]byte, error) { - type NoMethod LocationAssignment - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type LocationData struct { - BlobstoreLocation *BlobstoreLocation `json:"blobstoreLocation,omitempty"` - ChildAssetLocation *CloudAssetComposition `json:"childAssetLocation,omitempty"` - DirectLocation *DirectLocationAssignment `json:"directLocation,omitempty"` - GcpProjectProxy *TenantProjectProxy `json:"gcpProjectProxy,omitempty"` - PlacerLocation *PlacerLocation `json:"placerLocation,omitempty"` - SpannerLocation *SpannerLocation `json:"spannerLocation,omitempty"` - // ForceSendFields is a list of field names (e.g. "BlobstoreLocation") 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. "BlobstoreLocation") 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 LocationData) MarshalJSON() ([]byte, error) { - type NoMethod LocationData - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // LookupDiscoveredServiceResponse: Response for LookupDiscoveredService. type LookupDiscoveredServiceResponse struct { // DiscoveredService: Discovered Service if exists, empty otherwise. @@ -1528,8 +1255,8 @@ type OperationMetadata struct { EndTime string `json:"endTime,omitempty"` // RequestedCancellation: Output only. Identifies whether the user has // requested cancellation of the operation. Operations that have been cancelled - // successfully have Operation.error value with a google.rpc.Status.code of 1, - // corresponding to `Code.CANCELLED`. + // successfully have google.longrunning.Operation.error value with a + // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. RequestedCancellation bool `json:"requestedCancellation,omitempty"` // StatusMessage: Output only. Human-readable status of the operation, if any. StatusMessage string `json:"statusMessage,omitempty"` @@ -1556,30 +1283,6 @@ func (s OperationMetadata) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// PlacerLocation: Message describing that the location of the customer -// resource is tied to placer allocations -type PlacerLocation struct { - // PlacerConfig: Directory with a config related to it in placer (e.g. - // "/placer/prod/home/my-root/my-dir") - PlacerConfig string `json:"placerConfig,omitempty"` - // ForceSendFields is a list of field names (e.g. "PlacerConfig") 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. "PlacerConfig") 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 PlacerLocation) MarshalJSON() ([]byte, error) { - type NoMethod PlacerLocation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // Policy: An Identity and Access Management (IAM) policy, which specifies // access controls for Google Cloud resources. A `Policy` is a collection of // `bindings`. A `binding` binds one or more `members`, or principals, to a @@ -1672,65 +1375,6 @@ func (s Policy) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// RegionalMigDistributionPolicy: To be used for specifying the intended -// distribution of regional compute.googleapis.com/InstanceGroupManager -// instances -type RegionalMigDistributionPolicy struct { - // TargetShape: The shape in which the group converges around distribution of - // resources. Instance of proto2 enum - TargetShape int64 `json:"targetShape,omitempty"` - // Zones: Cloud zones used by regional MIG to create instances. - Zones []*ZoneConfiguration `json:"zones,omitempty"` - // ForceSendFields is a list of field names (e.g. "TargetShape") 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. "TargetShape") 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 RegionalMigDistributionPolicy) MarshalJSON() ([]byte, error) { - type NoMethod RegionalMigDistributionPolicy - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -type RequirementOverride struct { - // Possible values: - // "ZI_UNSPECIFIED" - // "ZI_UNKNOWN" - To be used if tracking is not available - // "ZI_NOT_REQUIRED" - // "ZI_PREFERRED" - // "ZI_REQUIRED" - ZiOverride string `json:"ziOverride,omitempty"` - // Possible values: - // "ZS_UNSPECIFIED" - // "ZS_UNKNOWN" - To be used if tracking is not available - // "ZS_NOT_REQUIRED" - // "ZS_REQUIRED" - ZsOverride string `json:"zsOverride,omitempty"` - // ForceSendFields is a list of field names (e.g. "ZiOverride") 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. "ZiOverride") 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 RequirementOverride) MarshalJSON() ([]byte, error) { - type NoMethod RequirementOverride - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // Scope: Scope of an application. type Scope struct { // Type: Required. Scope Type. @@ -1959,30 +1603,6 @@ func (s SetIamPolicyRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -type SpannerLocation struct { - // BackupName: Set of backups used by the resource with name in the same format - // as what is available at http://table/spanner_automon.backup_metadata - BackupName []string `json:"backupName,omitempty"` - // DbName: Set of databases used by the resource in format /span// - DbName []string `json:"dbName,omitempty"` - // ForceSendFields is a list of field names (e.g. "BackupName") 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. "BackupName") 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 SpannerLocation) MarshalJSON() ([]byte, error) { - type NoMethod SpannerLocation - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // Status: The `Status` type defines a logical error model that is suitable for // different programming environments, including REST APIs and RPC APIs. It is // used by gRPC (https://github.com/grpc). Each `Status` message contains three @@ -2017,26 +1637,6 @@ func (s Status) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -type TenantProjectProxy struct { - ProjectNumbers []string `json:"projectNumbers,omitempty"` - // ForceSendFields is a list of field names (e.g. "ProjectNumbers") 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. "ProjectNumbers") 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 TenantProjectProxy) MarshalJSON() ([]byte, error) { - type NoMethod TenantProjectProxy - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // TestIamPermissionsRequest: Request message for `TestIamPermissions` method. type TestIamPermissionsRequest struct { // Permissions: The set of permissions to check for the `resource`. Permissions @@ -2205,26 +1805,6 @@ func (s WorkloadReference) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -type ZoneConfiguration struct { - Zone string `json:"zone,omitempty"` - // ForceSendFields is a list of field names (e.g. "Zone") 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. "Zone") 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 ZoneConfiguration) MarshalJSON() ([]byte, error) { - type NoMethod ZoneConfiguration - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - type ProjectsLocationsDetachServiceProjectAttachmentCall struct { s *APIService name string @@ -6135,7 +5715,7 @@ type ProjectsLocationsOperationsCancelCall struct { // other methods to check whether the cancellation succeeded or whether the // operation completed despite cancellation. On successful cancellation, the // operation is not deleted; instead, it becomes an operation with an -// Operation.error value with a google.rpc.Status.code of 1, corresponding to +// Operation.error value with a google.rpc.Status.code of `1`, corresponding to // `Code.CANCELLED`. // // - name: The name of the operation resource to be cancelled. diff --git a/chromemanagement/v1/chromemanagement-api.json b/chromemanagement/v1/chromemanagement-api.json index 43d2756504..1e0c8f1a50 100644 --- a/chromemanagement/v1/chromemanagement-api.json +++ b/chromemanagement/v1/chromemanagement-api.json @@ -1263,7 +1263,7 @@ } } }, - "revision": "20250111", + "revision": "20250122", "rootUrl": "https://chromemanagement.googleapis.com/", "schemas": { "GoogleChromeManagementV1AndroidAppInfo": { @@ -1465,7 +1465,7 @@ "enumDeprecated": [ false, false, - false, + true, false, false, false, @@ -1483,7 +1483,7 @@ "enumDescriptions": [ "Application type unknown.", "Application type arc (Android app).", - "Application type built-in.", + "Deprecated. This vaule is no longer used. Application type built-in.", "Application type Linux (via Crostini).", "Application type Chrome app.", "Application type web.", @@ -3816,7 +3816,7 @@ "enumDeprecated": [ false, false, - false, + true, false, false, false, @@ -3834,7 +3834,7 @@ "enumDescriptions": [ "Application type unknown.", "Application type arc (Android app).", - "Application type built-in.", + "Deprecated. This vaule is no longer used. Application type built-in.", "Application type Linux (via Crostini).", "Application type Chrome app.", "Application type web.", @@ -3981,7 +3981,7 @@ "enumDeprecated": [ false, false, - false, + true, false, false, false, @@ -3999,7 +3999,7 @@ "enumDescriptions": [ "Application type unknown.", "Application type arc (Android app).", - "Application type built-in.", + "Deprecated. This vaule is no longer used. Application type built-in.", "Application type Linux (via Crostini).", "Application type Chrome app.", "Application type web.", @@ -4050,7 +4050,7 @@ "enumDeprecated": [ false, false, - false, + true, false, false, false, @@ -4068,7 +4068,7 @@ "enumDescriptions": [ "Application type unknown.", "Application type arc (Android app).", - "Application type built-in.", + "Deprecated. This vaule is no longer used. Application type built-in.", "Application type Linux (via Crostini).", "Application type Chrome app.", "Application type web.", diff --git a/chromemanagement/v1/chromemanagement-gen.go b/chromemanagement/v1/chromemanagement-gen.go index 7c9d44d580..1eda24fbf8 100644 --- a/chromemanagement/v1/chromemanagement-gen.go +++ b/chromemanagement/v1/chromemanagement-gen.go @@ -486,7 +486,8 @@ type GoogleChromeManagementV1AppUsageData struct { // Possible values: // "TELEMETRY_APPLICATION_TYPE_UNSPECIFIED" - Application type unknown. // "APPLICATION_TYPE_ARC" - Application type arc (Android app). - // "APPLICATION_TYPE_BUILT_IN" - Application type built-in. + // "APPLICATION_TYPE_BUILT_IN" - Deprecated. This vaule is no longer used. + // Application type built-in. // "APPLICATION_TYPE_CROSTINI" - Application type Linux (via Crostini). // "APPLICATION_TYPE_CHROME_APP" - Application type Chrome app. // "APPLICATION_TYPE_WEB" - Application type web. @@ -2981,7 +2982,8 @@ type GoogleChromeManagementV1TelemetryAppInstallEvent struct { // Possible values: // "TELEMETRY_APPLICATION_TYPE_UNSPECIFIED" - Application type unknown. // "APPLICATION_TYPE_ARC" - Application type arc (Android app). - // "APPLICATION_TYPE_BUILT_IN" - Application type built-in. + // "APPLICATION_TYPE_BUILT_IN" - Deprecated. This vaule is no longer used. + // Application type built-in. // "APPLICATION_TYPE_CROSTINI" - Application type Linux (via Crostini). // "APPLICATION_TYPE_CHROME_APP" - Application type Chrome app. // "APPLICATION_TYPE_WEB" - Application type web. @@ -3113,7 +3115,8 @@ type GoogleChromeManagementV1TelemetryAppLaunchEvent struct { // Possible values: // "TELEMETRY_APPLICATION_TYPE_UNSPECIFIED" - Application type unknown. // "APPLICATION_TYPE_ARC" - Application type arc (Android app). - // "APPLICATION_TYPE_BUILT_IN" - Application type built-in. + // "APPLICATION_TYPE_BUILT_IN" - Deprecated. This vaule is no longer used. + // Application type built-in. // "APPLICATION_TYPE_CROSTINI" - Application type Linux (via Crostini). // "APPLICATION_TYPE_CHROME_APP" - Application type Chrome app. // "APPLICATION_TYPE_WEB" - Application type web. @@ -3159,7 +3162,8 @@ type GoogleChromeManagementV1TelemetryAppUninstallEvent struct { // Possible values: // "TELEMETRY_APPLICATION_TYPE_UNSPECIFIED" - Application type unknown. // "APPLICATION_TYPE_ARC" - Application type arc (Android app). - // "APPLICATION_TYPE_BUILT_IN" - Application type built-in. + // "APPLICATION_TYPE_BUILT_IN" - Deprecated. This vaule is no longer used. + // Application type built-in. // "APPLICATION_TYPE_CROSTINI" - Application type Linux (via Crostini). // "APPLICATION_TYPE_CHROME_APP" - Application type Chrome app. // "APPLICATION_TYPE_WEB" - Application type web. diff --git a/cloudtasks/v2/cloudtasks-api.json b/cloudtasks/v2/cloudtasks-api.json index 47e49d81a0..46a21e2b36 100644 --- a/cloudtasks/v2/cloudtasks-api.json +++ b/cloudtasks/v2/cloudtasks-api.json @@ -779,7 +779,7 @@ } } }, - "revision": "20241111", + "revision": "20250115", "rootUrl": "https://cloudtasks.googleapis.com/", "schemas": { "AppEngineHttpRequest": { @@ -1438,7 +1438,7 @@ "id": "RetryConfig", "properties": { "maxAttempts": { - "description": "Number of attempts per task. Cloud Tasks will attempt the task `max_attempts` times (that is, if the first attempt fails, then there will be `max_attempts - 1` retries). Must be \u003e= -1. If unspecified when the queue is created, Cloud Tasks will pick the default. -1 indicates unlimited attempts. This field has the same meaning as [task_retry_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).", + "description": "Number of attempts per task. Cloud Tasks will attempt the task `max_attempts` times (that is, if the first attempt fails, then there will be `max_attempts - 1` retries). Must be \u003e= -1. If unspecified when the queue is created, Cloud Tasks will pick the default. -1 indicates unlimited attempts. This field has the same meaning as [task_retry_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). Note: Cloud Tasks stops retrying only when `max_attempts` and `max_retry_duration` are both satisfied. When the task has been attempted `max_attempts` times and when the `max_retry_duration` time has passed, no further attempts are made, and the task is deleted. If you want your task to retry infinitely, you must set `max_attempts` to -1 and `max_retry_duration` to 0.", "format": "int32", "type": "integer" }, diff --git a/cloudtasks/v2/cloudtasks-gen.go b/cloudtasks/v2/cloudtasks-gen.go index 5d26ede3f9..b3daf0fee8 100644 --- a/cloudtasks/v2/cloudtasks-gen.go +++ b/cloudtasks/v2/cloudtasks-gen.go @@ -1543,6 +1543,12 @@ type RetryConfig struct { // attempts. This field has the same meaning as task_retry_limit in // queue.yaml/xml // (https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). + // Note: Cloud Tasks stops retrying only when `max_attempts` and + // `max_retry_duration` are both satisfied. When the task has been attempted + // `max_attempts` times and when the `max_retry_duration` time has passed, no + // further attempts are made, and the task is deleted. If you want your task to + // retry infinitely, you must set `max_attempts` to -1 and `max_retry_duration` + // to 0. MaxAttempts int64 `json:"maxAttempts,omitempty"` // MaxBackoff: A task will be scheduled for retry between min_backoff and // max_backoff duration after it fails, if the queue's RetryConfig specifies diff --git a/cloudtasks/v2beta3/cloudtasks-api.json b/cloudtasks/v2beta3/cloudtasks-api.json index ada4dbf13c..9a76cd12d5 100644 --- a/cloudtasks/v2beta3/cloudtasks-api.json +++ b/cloudtasks/v2beta3/cloudtasks-api.json @@ -791,7 +791,7 @@ } } }, - "revision": "20241111", + "revision": "20250115", "rootUrl": "https://cloudtasks.googleapis.com/", "schemas": { "AppEngineHttpQueue": { @@ -1543,7 +1543,7 @@ "id": "RetryConfig", "properties": { "maxAttempts": { - "description": "Number of attempts per task. Cloud Tasks will attempt the task `max_attempts` times (that is, if the first attempt fails, then there will be `max_attempts - 1` retries). Must be \u003e= -1. If unspecified when the queue is created, Cloud Tasks will pick the default. -1 indicates unlimited attempts. This field has the same meaning as [task_retry_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).", + "description": "Number of attempts per task. Cloud Tasks will attempt the task `max_attempts` times (that is, if the first attempt fails, then there will be `max_attempts - 1` retries). Must be \u003e= -1. If unspecified when the queue is created, Cloud Tasks will pick the default. -1 indicates unlimited attempts. This field has the same meaning as [task_retry_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). Note: Cloud Tasks stops retrying only when `max_attempts` and `max_retry_duration` are both satisfied. When the task has been attempted `max_attempts` times and when the `max_retry_duration` time has passed, no further attempts are made, and the task is deleted. If you want your task to retry infinitely, you must set `max_attempts` to -1 and `max_retry_duration` to 0.", "format": "int32", "type": "integer" }, diff --git a/cloudtasks/v2beta3/cloudtasks-gen.go b/cloudtasks/v2beta3/cloudtasks-gen.go index b941c8956f..80601a3a57 100644 --- a/cloudtasks/v2beta3/cloudtasks-gen.go +++ b/cloudtasks/v2beta3/cloudtasks-gen.go @@ -1692,6 +1692,12 @@ type RetryConfig struct { // attempts. This field has the same meaning as task_retry_limit in // queue.yaml/xml // (https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters). + // Note: Cloud Tasks stops retrying only when `max_attempts` and + // `max_retry_duration` are both satisfied. When the task has been attempted + // `max_attempts` times and when the `max_retry_duration` time has passed, no + // further attempts are made, and the task is deleted. If you want your task to + // retry infinitely, you must set `max_attempts` to -1 and `max_retry_duration` + // to 0. MaxAttempts int64 `json:"maxAttempts,omitempty"` // MaxBackoff: A task will be scheduled for retry between min_backoff and // max_backoff duration after it fails, if the queue's RetryConfig specifies diff --git a/datamigration/v1/datamigration-api.json b/datamigration/v1/datamigration-api.json index 7c8111c6c3..a5e90e1896 100644 --- a/datamigration/v1/datamigration-api.json +++ b/datamigration/v1/datamigration-api.json @@ -2332,7 +2332,7 @@ } } }, - "revision": "20241231", + "revision": "20250115", "rootUrl": "https://datamigration.googleapis.com/", "schemas": { "AlloyDbConnectionProfile": { @@ -2897,6 +2897,10 @@ "description": "Comment associated with the column.", "type": "string" }, + "computed": { + "description": "Is the column a computed column.", + "type": "boolean" + }, "customFeatures": { "additionalProperties": { "description": "Properties of the object.", diff --git a/datamigration/v1/datamigration-gen.go b/datamigration/v1/datamigration-gen.go index 15aab881bc..a79adbf32c 100644 --- a/datamigration/v1/datamigration-gen.go +++ b/datamigration/v1/datamigration-gen.go @@ -941,6 +941,8 @@ type ColumnEntity struct { Collation string `json:"collation,omitempty"` // Comment: Comment associated with the column. Comment string `json:"comment,omitempty"` + // Computed: Is the column a computed column. + Computed bool `json:"computed,omitempty"` // CustomFeatures: Custom engine specific features. CustomFeatures googleapi.RawMessage `json:"customFeatures,omitempty"` // DataType: Column data type. diff --git a/displayvideo/v2/displayvideo-api.json b/displayvideo/v2/displayvideo-api.json index e759252eba..af4295577f 100644 --- a/displayvideo/v2/displayvideo-api.json +++ b/displayvideo/v2/displayvideo-api.json @@ -8010,7 +8010,7 @@ } } }, - "revision": "20250115", + "revision": "20250123", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -8213,10 +8213,6 @@ "readOnly": true, "type": "string" }, - "billingConfig": { - "$ref": "AdvertiserBillingConfig", - "description": "Required. Billing related settings of the advertiser." - }, "creativeConfig": { "$ref": "AdvertiserCreativeConfig", "description": "Required. Creative related settings of the advertiser." @@ -8299,18 +8295,6 @@ }, "type": "object" }, - "AdvertiserBillingConfig": { - "description": "Billing related settings of an advertiser.", - "id": "AdvertiserBillingConfig", - "properties": { - "billingProfileId": { - "description": "Required. The ID of a billing profile assigned to the advertiser.", - "format": "int64", - "type": "string" - } - }, - "type": "object" - }, "AdvertiserCreativeConfig": { "description": "Creatives related settings of an advertiser.", "id": "AdvertiserCreativeConfig", @@ -9097,13 +9081,9 @@ "type": "object" }, "AudienceGroupAssignedTargetingOptionDetails": { - "description": "Assigned audience group targeting option details. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_AUDIENCE_GROUP`. The relation between each group is UNION, except for excluded_first_and_third_party_audience_group and excluded_google_audience_group, of which COMPLEMENT is used as an INTERSECTION with other groups.", + "description": "Assigned audience group targeting option details. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_AUDIENCE_GROUP`. The relation between each group is UNION, except for excluded_first_and_third_party_audience_group and excluded_google_audience_group, of which COMPLEMENT is used as an INTERSECTION with other groups. NEXT_ID: 9", "id": "AudienceGroupAssignedTargetingOptionDetails", "properties": { - "excludedFirstAndThirdPartyAudienceGroup": { - "$ref": "FirstAndThirdPartyAudienceGroup", - "description": "The first and third party audience ids and recencies of the excluded first and third party audience group. Used for negative targeting. The COMPLEMENT of the UNION of this group and other excluded audience groups is used as an INTERSECTION to any positive audience targeting. All items are logically ‘OR’ of each other." - }, "excludedGoogleAudienceGroup": { "$ref": "GoogleAudienceGroup", "description": "The Google audience ids of the excluded Google audience group. Used for negative targeting. The COMPLEMENT of the UNION of this group and other excluded audience groups is used as an INTERSECTION to any positive audience targeting. Only contains Affinity, In-market and Installed-apps type Google audiences. All items are logically ‘OR’ of each other." @@ -9116,13 +9096,6 @@ "$ref": "CustomListGroup", "description": "The custom list ids of the included custom list group. Contains custom list ids only." }, - "includedFirstAndThirdPartyAudienceGroups": { - "description": "The first and third party audience ids and recencies of included first and third party audience groups. Each first and third party audience group contains first and third party audience ids only. The relation between each first and third party audience group is INTERSECTION, and the result is UNION'ed with other audience groups. Repeated groups with same settings will be ignored.", - "items": { - "$ref": "FirstAndThirdPartyAudienceGroup" - }, - "type": "array" - }, "includedGoogleAudienceGroup": { "$ref": "GoogleAudienceGroup", "description": "The Google audience ids of the included Google audience group. Contains Google audience ids only." @@ -13433,100 +13406,6 @@ }, "type": "object" }, - "FirstAndThirdPartyAudienceGroup": { - "description": "Details of first and third party audience group. All first and third party audience targeting settings are logically ‘OR’ of each other.", - "id": "FirstAndThirdPartyAudienceGroup", - "properties": { - "settings": { - "description": "Required. All first and third party audience targeting settings in first and third party audience group. Repeated settings with same id are not allowed.", - "items": { - "$ref": "FirstAndThirdPartyAudienceTargetingSetting" - }, - "type": "array" - } - }, - "type": "object" - }, - "FirstAndThirdPartyAudienceTargetingSetting": { - "description": "Details of first and third party audience targeting setting.", - "id": "FirstAndThirdPartyAudienceTargetingSetting", - "properties": { - "firstAndThirdPartyAudienceId": { - "description": "Required. First and third party audience id of the first and third party audience targeting setting. This id is first_and_third_party_audience_id.", - "format": "int64", - "type": "string" - }, - "recency": { - "description": "The recency of the first and third party audience targeting setting. Only applicable to first party audiences, otherwise will be ignored. For more info, refer to https://support.google.com/displayvideo/answer/2949947#recency When unspecified, no recency limit will be used.", - "enum": [ - "RECENCY_NO_LIMIT", - "RECENCY_1_MINUTE", - "RECENCY_5_MINUTES", - "RECENCY_10_MINUTES", - "RECENCY_15_MINUTES", - "RECENCY_30_MINUTES", - "RECENCY_1_HOUR", - "RECENCY_2_HOURS", - "RECENCY_3_HOURS", - "RECENCY_6_HOURS", - "RECENCY_12_HOURS", - "RECENCY_1_DAY", - "RECENCY_2_DAYS", - "RECENCY_3_DAYS", - "RECENCY_5_DAYS", - "RECENCY_7_DAYS", - "RECENCY_10_DAYS", - "RECENCY_14_DAYS", - "RECENCY_15_DAYS", - "RECENCY_21_DAYS", - "RECENCY_28_DAYS", - "RECENCY_30_DAYS", - "RECENCY_40_DAYS", - "RECENCY_45_DAYS", - "RECENCY_60_DAYS", - "RECENCY_90_DAYS", - "RECENCY_120_DAYS", - "RECENCY_180_DAYS", - "RECENCY_270_DAYS", - "RECENCY_365_DAYS" - ], - "enumDescriptions": [ - "No limit of recency.", - "Recency is 1 minute.", - "Recency is 5 minutes.", - "Recency is 10 minutes.", - "Recency is 15 minutes.", - "Recency is 30 minutes.", - "Recency is 1 hour.", - "Recency is 2 hours.", - "Recency is 3 hours.", - "Recency is 6 hours.", - "Recency is 12 hours.", - "Recency is 1 day.", - "Recency is 2 days.", - "Recency is 3 days.", - "Recency is 5 days.", - "Recency is 7 days.", - "Recency is 10 days.", - "Recency is 14 days.", - "Recency is 15 days.", - "Recency is 21 days.", - "Recency is 28 days.", - "Recency is 30 days.", - "Recency is 40 days.", - "Recency is 45 days.", - "Recency is 60 days.", - "Recency is 90 days.", - "Recency is 120 days.", - "Recency is 180 days.", - "Recency is 270 days.", - "Recency is 365 days." - ], - "type": "string" - } - }, - "type": "object" - }, "FixedBidStrategy": { "description": "A strategy that uses a fixed bidding price.", "id": "FixedBidStrategy", diff --git a/displayvideo/v2/displayvideo-gen.go b/displayvideo/v2/displayvideo-gen.go index ec729b9c7c..1394396f79 100644 --- a/displayvideo/v2/displayvideo-gen.go +++ b/displayvideo/v2/displayvideo-gen.go @@ -871,8 +871,6 @@ type Advertiser struct { // AdvertiserId: Output only. The unique ID of the advertiser. Assigned by the // system. AdvertiserId int64 `json:"advertiserId,omitempty,string"` - // BillingConfig: Required. Billing related settings of the advertiser. - BillingConfig *AdvertiserBillingConfig `json:"billingConfig,omitempty"` // CreativeConfig: Required. Creative related settings of the advertiser. CreativeConfig *AdvertiserCreativeConfig `json:"creativeConfig,omitempty"` // DataAccessConfig: Settings that control how advertiser data may be accessed. @@ -971,29 +969,6 @@ func (s AdvertiserAdServerConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// AdvertiserBillingConfig: Billing related settings of an advertiser. -type AdvertiserBillingConfig struct { - // BillingProfileId: Required. The ID of a billing profile assigned to the - // advertiser. - BillingProfileId int64 `json:"billingProfileId,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "BillingProfileId") 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. "BillingProfileId") 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 AdvertiserBillingConfig) MarshalJSON() ([]byte, error) { - type NoMethod AdvertiserBillingConfig - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // AdvertiserCreativeConfig: Creatives related settings of an advertiser. type AdvertiserCreativeConfig struct { // DynamicCreativeEnabled: Whether or not the advertiser is enabled for dynamic @@ -2024,14 +1999,8 @@ func (s AssignedUserRole) MarshalJSON() ([]byte, error) { // `TARGETING_TYPE_AUDIENCE_GROUP`. The relation between each group is UNION, // except for excluded_first_and_third_party_audience_group and // excluded_google_audience_group, of which COMPLEMENT is used as an -// INTERSECTION with other groups. +// INTERSECTION with other groups. NEXT_ID: 9 type AudienceGroupAssignedTargetingOptionDetails struct { - // ExcludedFirstAndThirdPartyAudienceGroup: The first and third party audience - // ids and recencies of the excluded first and third party audience group. Used - // for negative targeting. The COMPLEMENT of the UNION of this group and other - // excluded audience groups is used as an INTERSECTION to any positive audience - // targeting. All items are logically ‘OR’ of each other. - ExcludedFirstAndThirdPartyAudienceGroup *FirstAndThirdPartyAudienceGroup `json:"excludedFirstAndThirdPartyAudienceGroup,omitempty"` // ExcludedGoogleAudienceGroup: The Google audience ids of the excluded Google // audience group. Used for negative targeting. The COMPLEMENT of the UNION of // this group and other excluded audience groups is used as an INTERSECTION to @@ -2045,28 +2014,19 @@ type AudienceGroupAssignedTargetingOptionDetails struct { // IncludedCustomListGroup: The custom list ids of the included custom list // group. Contains custom list ids only. IncludedCustomListGroup *CustomListGroup `json:"includedCustomListGroup,omitempty"` - // IncludedFirstAndThirdPartyAudienceGroups: The first and third party audience - // ids and recencies of included first and third party audience groups. Each - // first and third party audience group contains first and third party audience - // ids only. The relation between each first and third party audience group is - // INTERSECTION, and the result is UNION'ed with other audience groups. - // Repeated groups with same settings will be ignored. - IncludedFirstAndThirdPartyAudienceGroups []*FirstAndThirdPartyAudienceGroup `json:"includedFirstAndThirdPartyAudienceGroups,omitempty"` // IncludedGoogleAudienceGroup: The Google audience ids of the included Google // audience group. Contains Google audience ids only. IncludedGoogleAudienceGroup *GoogleAudienceGroup `json:"includedGoogleAudienceGroup,omitempty"` // ForceSendFields is a list of field names (e.g. - // "ExcludedFirstAndThirdPartyAudienceGroup") 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. - // "ExcludedFirstAndThirdPartyAudienceGroup") 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 + // "ExcludedGoogleAudienceGroup") 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. "ExcludedGoogleAudienceGroup") 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:"-"` } @@ -7000,95 +6960,6 @@ func (s ExitEvent) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } -// FirstAndThirdPartyAudienceGroup: Details of first and third party audience -// group. All first and third party audience targeting settings are logically -// ‘OR’ of each other. -type FirstAndThirdPartyAudienceGroup struct { - // Settings: Required. All first and third party audience targeting settings in - // first and third party audience group. Repeated settings with same id are not - // allowed. - Settings []*FirstAndThirdPartyAudienceTargetingSetting `json:"settings,omitempty"` - // ForceSendFields is a list of field names (e.g. "Settings") 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. "Settings") 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 FirstAndThirdPartyAudienceGroup) MarshalJSON() ([]byte, error) { - type NoMethod FirstAndThirdPartyAudienceGroup - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// FirstAndThirdPartyAudienceTargetingSetting: Details of first and third party -// audience targeting setting. -type FirstAndThirdPartyAudienceTargetingSetting struct { - // FirstAndThirdPartyAudienceId: Required. First and third party audience id of - // the first and third party audience targeting setting. This id is - // first_and_third_party_audience_id. - FirstAndThirdPartyAudienceId int64 `json:"firstAndThirdPartyAudienceId,omitempty,string"` - // Recency: The recency of the first and third party audience targeting - // setting. Only applicable to first party audiences, otherwise will be - // ignored. For more info, refer to - // https://support.google.com/displayvideo/answer/2949947#recency When - // unspecified, no recency limit will be used. - // - // Possible values: - // "RECENCY_NO_LIMIT" - No limit of recency. - // "RECENCY_1_MINUTE" - Recency is 1 minute. - // "RECENCY_5_MINUTES" - Recency is 5 minutes. - // "RECENCY_10_MINUTES" - Recency is 10 minutes. - // "RECENCY_15_MINUTES" - Recency is 15 minutes. - // "RECENCY_30_MINUTES" - Recency is 30 minutes. - // "RECENCY_1_HOUR" - Recency is 1 hour. - // "RECENCY_2_HOURS" - Recency is 2 hours. - // "RECENCY_3_HOURS" - Recency is 3 hours. - // "RECENCY_6_HOURS" - Recency is 6 hours. - // "RECENCY_12_HOURS" - Recency is 12 hours. - // "RECENCY_1_DAY" - Recency is 1 day. - // "RECENCY_2_DAYS" - Recency is 2 days. - // "RECENCY_3_DAYS" - Recency is 3 days. - // "RECENCY_5_DAYS" - Recency is 5 days. - // "RECENCY_7_DAYS" - Recency is 7 days. - // "RECENCY_10_DAYS" - Recency is 10 days. - // "RECENCY_14_DAYS" - Recency is 14 days. - // "RECENCY_15_DAYS" - Recency is 15 days. - // "RECENCY_21_DAYS" - Recency is 21 days. - // "RECENCY_28_DAYS" - Recency is 28 days. - // "RECENCY_30_DAYS" - Recency is 30 days. - // "RECENCY_40_DAYS" - Recency is 40 days. - // "RECENCY_45_DAYS" - Recency is 45 days. - // "RECENCY_60_DAYS" - Recency is 60 days. - // "RECENCY_90_DAYS" - Recency is 90 days. - // "RECENCY_120_DAYS" - Recency is 120 days. - // "RECENCY_180_DAYS" - Recency is 180 days. - // "RECENCY_270_DAYS" - Recency is 270 days. - // "RECENCY_365_DAYS" - Recency is 365 days. - Recency string `json:"recency,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "FirstAndThirdPartyAudienceId") 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. "FirstAndThirdPartyAudienceId") 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 FirstAndThirdPartyAudienceTargetingSetting) MarshalJSON() ([]byte, error) { - type NoMethod FirstAndThirdPartyAudienceTargetingSetting - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // FixedBidStrategy: A strategy that uses a fixed bidding price. type FixedBidStrategy struct { // BidAmountMicros: The fixed bid amount, in micros of the advertiser's diff --git a/displayvideo/v3/displayvideo-api.json b/displayvideo/v3/displayvideo-api.json index ab23353b40..bf96a3def5 100644 --- a/displayvideo/v3/displayvideo-api.json +++ b/displayvideo/v3/displayvideo-api.json @@ -9222,7 +9222,7 @@ } } }, - "revision": "20250109", + "revision": "20250123", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActiveViewVideoViewabilityMetricConfig": { @@ -11200,7 +11200,7 @@ "type": "object" }, "AudienceGroupAssignedTargetingOptionDetails": { - "description": "Assigned audience group targeting option details. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_AUDIENCE_GROUP`. The relation between each group is UNION, except for excluded_first_and_third_party_audience_group and excluded_google_audience_group, of which COMPLEMENT is used as an INTERSECTION with other groups.", + "description": "Assigned audience group targeting option details. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_AUDIENCE_GROUP`. The relation between each group is UNION, except for excluded_first_and_third_party_audience_group and excluded_google_audience_group, of which COMPLEMENT is used as an INTERSECTION with other groups. NEXT_ID: 9", "id": "AudienceGroupAssignedTargetingOptionDetails", "properties": { "excludedFirstAndThirdPartyAudienceGroup": { diff --git a/displayvideo/v3/displayvideo-gen.go b/displayvideo/v3/displayvideo-gen.go index d47d22861b..9b1164a110 100644 --- a/displayvideo/v3/displayvideo-gen.go +++ b/displayvideo/v3/displayvideo-gen.go @@ -2886,7 +2886,7 @@ func (s AssignedUserRole) MarshalJSON() ([]byte, error) { // `TARGETING_TYPE_AUDIENCE_GROUP`. The relation between each group is UNION, // except for excluded_first_and_third_party_audience_group and // excluded_google_audience_group, of which COMPLEMENT is used as an -// INTERSECTION with other groups. +// INTERSECTION with other groups. NEXT_ID: 9 type AudienceGroupAssignedTargetingOptionDetails struct { // ExcludedFirstAndThirdPartyAudienceGroup: The first and third party audience // ids and recencies of the excluded first and third party audience group. Used diff --git a/drive/v2/drive-api.json b/drive/v2/drive-api.json index 267fe0b129..4d570a3b87 100644 --- a/drive/v2/drive-api.json +++ b/drive/v2/drive-api.json @@ -3869,7 +3869,7 @@ } } }, - "revision": "20240914", + "revision": "20250122", "rootUrl": "https://www.googleapis.com/", "schemas": { "About": { @@ -6430,7 +6430,7 @@ "type": "boolean" }, "publishedLink": { - "description": "Output only. A link to the published revision. This is only populated for Google Sites files.", + "description": "Output only. A link to the published revision. This is only populated for Docs Editors files.", "type": "string" }, "publishedOutsideDomain": { diff --git a/drive/v2/drive-gen.go b/drive/v2/drive-gen.go index 6305bece19..3b25e51d40 100644 --- a/drive/v2/drive-gen.go +++ b/drive/v2/drive-gen.go @@ -3075,7 +3075,7 @@ type Revision struct { // can only be modified for Docs Editors files. Published bool `json:"published,omitempty"` // PublishedLink: Output only. A link to the published revision. This is only - // populated for Google Sites files. + // populated for Docs Editors files. PublishedLink string `json:"publishedLink,omitempty"` // PublishedOutsideDomain: Whether this revision is published outside the // domain. This is only populated and can only be modified for Docs Editors diff --git a/drive/v3/drive-api.json b/drive/v3/drive-api.json index b79c12ed29..7ff0773986 100644 --- a/drive/v3/drive-api.json +++ b/drive/v3/drive-api.json @@ -1832,7 +1832,13 @@ "type": "string" } }, - "path": "operation/{name}:cancel" + "path": "operation/{name}:cancel", + "scopes": [ + "https://www.googleapis.com/auth/drive", + "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", + "https://www.googleapis.com/auth/drive.readonly" + ] }, "delete": { "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", @@ -1850,7 +1856,13 @@ "type": "string" } }, - "path": "operation/{name}" + "path": "operation/{name}", + "scopes": [ + "https://www.googleapis.com/auth/drive", + "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", + "https://www.googleapis.com/auth/drive.readonly" + ] } } }, @@ -1915,7 +1927,13 @@ "path": "operations", "response": { "$ref": "ListOperationsResponse" - } + }, + "scopes": [ + "https://www.googleapis.com/auth/drive", + "https://www.googleapis.com/auth/drive.file", + "https://www.googleapis.com/auth/drive.meet.readonly", + "https://www.googleapis.com/auth/drive.readonly" + ] } } }, @@ -2774,7 +2792,7 @@ } } }, - "revision": "20241206", + "revision": "20250122", "rootUrl": "https://www.googleapis.com/", "schemas": { "About": { @@ -4934,7 +4952,7 @@ "type": "boolean" }, "publishedLink": { - "description": "Output only. A link to the published revision. This is only populated for Google Sites files.", + "description": "Output only. A link to the published revision. This is only populated for Docs Editors files.", "type": "string" }, "publishedOutsideDomain": { diff --git a/drive/v3/drive-gen.go b/drive/v3/drive-gen.go index 027453fe93..5e4f66a534 100644 --- a/drive/v3/drive-gen.go +++ b/drive/v3/drive-gen.go @@ -2766,7 +2766,7 @@ type Revision struct { // Docs Editors files. Published bool `json:"published,omitempty"` // PublishedLink: Output only. A link to the published revision. This is only - // populated for Google Sites files. + // populated for Docs Editors files. PublishedLink string `json:"publishedLink,omitempty"` // PublishedOutsideDomain: Whether this revision is published outside the // domain. This is only applicable to Docs Editors files. diff --git a/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json b/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json index 34fb512510..5d05ff90b4 100644 --- a/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json +++ b/firebaseappdistribution/v1alpha/firebaseappdistribution-api.json @@ -776,7 +776,7 @@ } } }, - "revision": "20241204", + "revision": "20250123", "rootUrl": "https://firebaseappdistribution.googleapis.com/", "schemas": { "AndroidxCrawlerOutputPoint": { @@ -1463,6 +1463,11 @@ "description": "An action taken by the AI agent while attempting to accomplish a goal.", "id": "GoogleFirebaseAppdistroV1alphaGoalAction", "properties": { + "debugInfo": { + "$ref": "GoogleFirebaseAppdistroV1alphaGoalActionDebugInfo", + "description": "Output only. Debug information explaining why the agent to the specific action", + "readOnly": true + }, "deviceAction": { "$ref": "GoogleFirebaseAppdistroV1alphaDeviceAction", "description": "Output only. A high level action taken by the AI on the device.", @@ -1481,6 +1486,23 @@ }, "type": "object" }, + "GoogleFirebaseAppdistroV1alphaGoalActionDebugInfo": { + "description": "Information to help the customer understand why the agent took this action", + "id": "GoogleFirebaseAppdistroV1alphaGoalActionDebugInfo", + "properties": { + "annotatedScreenshotUri": { + "description": "Output only. URI of the screenshot with elements labeled which was used by the agent", + "readOnly": true, + "type": "string" + }, + "jsonUri": { + "description": "Output only. Structured data explaining the agent's choice", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleFirebaseAppdistroV1alphaGoalDetails": { "description": "Details for a goal step.", "id": "GoogleFirebaseAppdistroV1alphaGoalDetails", @@ -1819,6 +1841,12 @@ "$ref": "GoogleFirebaseAppdistroV1alphaAiInstructions", "description": "Optional. Instructions for AI driven test." }, + "createTime": { + "description": "Output only. Timestamp when the test case was created", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, "displayName": { "description": "Required. Display name of the test case.", "type": "string" diff --git a/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go b/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go index 3380290223..987e6abd39 100644 --- a/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go +++ b/firebaseappdistribution/v1alpha/firebaseappdistribution-gen.go @@ -1041,6 +1041,9 @@ func (s GoogleFirebaseAppdistroV1alphaGetUploadStatusResponse) MarshalJSON() ([] // GoogleFirebaseAppdistroV1alphaGoalAction: An action taken by the AI agent // while attempting to accomplish a goal. type GoogleFirebaseAppdistroV1alphaGoalAction struct { + // DebugInfo: Output only. Debug information explaining why the agent to the + // specific action + DebugInfo *GoogleFirebaseAppdistroV1alphaGoalActionDebugInfo `json:"debugInfo,omitempty"` // DeviceAction: Output only. A high level action taken by the AI on the // device. DeviceAction *GoogleFirebaseAppdistroV1alphaDeviceAction `json:"deviceAction,omitempty"` @@ -1049,13 +1052,13 @@ type GoogleFirebaseAppdistroV1alphaGoalAction struct { Explanation string `json:"explanation,omitempty"` // TerminalAction: Output only. An action taken by the AI to end the goal. TerminalAction *GoogleFirebaseAppdistroV1alphaTerminalAction `json:"terminalAction,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeviceAction") to + // ForceSendFields is a list of field names (e.g. "DebugInfo") 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. "DeviceAction") to include in API + // NullFields is a list of field names (e.g. "DebugInfo") 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. @@ -1067,6 +1070,32 @@ func (s GoogleFirebaseAppdistroV1alphaGoalAction) MarshalJSON() ([]byte, error) return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleFirebaseAppdistroV1alphaGoalActionDebugInfo: Information to help the +// customer understand why the agent took this action +type GoogleFirebaseAppdistroV1alphaGoalActionDebugInfo struct { + // AnnotatedScreenshotUri: Output only. URI of the screenshot with elements + // labeled which was used by the agent + AnnotatedScreenshotUri string `json:"annotatedScreenshotUri,omitempty"` + // JsonUri: Output only. Structured data explaining the agent's choice + JsonUri string `json:"jsonUri,omitempty"` + // ForceSendFields is a list of field names (e.g. "AnnotatedScreenshotUri") 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. "AnnotatedScreenshotUri") 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 GoogleFirebaseAppdistroV1alphaGoalActionDebugInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleFirebaseAppdistroV1alphaGoalActionDebugInfo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleFirebaseAppdistroV1alphaGoalDetails: Details for a goal step. type GoogleFirebaseAppdistroV1alphaGoalDetails struct { // GoalActions: Output only. The actions taken by the AI while attempting to @@ -1476,6 +1505,8 @@ func (s GoogleFirebaseAppdistroV1alphaTerminalAction) MarshalJSON() ([]byte, err type GoogleFirebaseAppdistroV1alphaTestCase struct { // AiInstructions: Optional. Instructions for AI driven test. AiInstructions *GoogleFirebaseAppdistroV1alphaAiInstructions `json:"aiInstructions,omitempty"` + // CreateTime: Output only. Timestamp when the test case was created + CreateTime string `json:"createTime,omitempty"` // DisplayName: Required. Display name of the test case. DisplayName string `json:"displayName,omitempty"` // Name: Identifier. The name of the test case resource. Format: diff --git a/firebaseml/v2beta/firebaseml-api.json b/firebaseml/v2beta/firebaseml-api.json index 134994fc54..f1bf5711ce 100644 --- a/firebaseml/v2beta/firebaseml-api.json +++ b/firebaseml/v2beta/firebaseml-api.json @@ -206,7 +206,7 @@ } } }, - "revision": "20250120", + "revision": "20250122", "rootUrl": "https://firebaseml.googleapis.com/", "schemas": { "Date": { @@ -475,6 +475,14 @@ "description": "Response message for PredictionService.CountTokens.", "id": "GoogleCloudAiplatformV1beta1CountTokensResponse", "properties": { + "promptTokensDetails": { + "description": "Output only. List of modalities that were processed in the request input.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1ModalityTokenCount" + }, + "readOnly": true, + "type": "array" + }, "totalBillableCharacters": { "description": "The total number of billable characters counted across all instances from the request.", "format": "int32", @@ -779,6 +787,14 @@ "description": "Usage metadata about response(s).", "id": "GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata", "properties": { + "cacheTokensDetails": { + "description": "Output only. List of modalities of the cached content in the request input.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1ModalityTokenCount" + }, + "readOnly": true, + "type": "array" + }, "cachedContentTokenCount": { "description": "Output only. Number of tokens in the cached part in the input (the cached content).", "format": "int32", @@ -790,11 +806,27 @@ "format": "int32", "type": "integer" }, + "candidatesTokensDetails": { + "description": "Output only. List of modalities that were returned in the response.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1ModalityTokenCount" + }, + "readOnly": true, + "type": "array" + }, "promptTokenCount": { "description": "Number of tokens in the request. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content.", "format": "int32", "type": "integer" }, + "promptTokensDetails": { + "description": "Output only. List of modalities that were processed in the request input.", + "items": { + "$ref": "GoogleCloudAiplatformV1beta1ModalityTokenCount" + }, + "readOnly": true, + "type": "array" + }, "totalTokenCount": { "description": "Total token count for prompt and response candidates.", "format": "int32", @@ -1172,6 +1204,38 @@ }, "type": "object" }, + "GoogleCloudAiplatformV1beta1ModalityTokenCount": { + "description": "Represents token counting info for a single modality.", + "id": "GoogleCloudAiplatformV1beta1ModalityTokenCount", + "properties": { + "modality": { + "description": "The modality associated with this token count.", + "enum": [ + "MODALITY_UNSPECIFIED", + "TEXT", + "IMAGE", + "VIDEO", + "AUDIO", + "DOCUMENT" + ], + "enumDescriptions": [ + "Unspecified modality.", + "Plain text.", + "Image.", + "Video.", + "Audio.", + "Document, e.g. PDF." + ], + "type": "string" + }, + "tokenCount": { + "description": "Number of tokens.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "GoogleCloudAiplatformV1beta1Part": { "description": "A datatype containing media that is part of a multi-part `Content` message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. A `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if `inline_data` or `file_data` field is filled with raw bytes.", "id": "GoogleCloudAiplatformV1beta1Part", diff --git a/firebaseml/v2beta/firebaseml-gen.go b/firebaseml/v2beta/firebaseml-gen.go index d4476a9b13..2bddc28f41 100644 --- a/firebaseml/v2beta/firebaseml-gen.go +++ b/firebaseml/v2beta/firebaseml-gen.go @@ -512,6 +512,9 @@ func (s GoogleCloudAiplatformV1beta1CountTokensRequest) MarshalJSON() ([]byte, e // GoogleCloudAiplatformV1beta1CountTokensResponse: Response message for // PredictionService.CountTokens. type GoogleCloudAiplatformV1beta1CountTokensResponse struct { + // PromptTokensDetails: Output only. List of modalities that were processed in + // the request input. + PromptTokensDetails []*GoogleCloudAiplatformV1beta1ModalityTokenCount `json:"promptTokensDetails,omitempty"` // TotalBillableCharacters: The total number of billable characters counted // across all instances from the request. TotalBillableCharacters int64 `json:"totalBillableCharacters,omitempty"` @@ -521,15 +524,15 @@ type GoogleCloudAiplatformV1beta1CountTokensResponse struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "TotalBillableCharacters") to + // ForceSendFields is a list of field names (e.g. "PromptTokensDetails") 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. "TotalBillableCharacters") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "PromptTokensDetails") 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:"-"` } @@ -923,26 +926,35 @@ func (s GoogleCloudAiplatformV1beta1GenerateContentResponsePromptFeedback) Marsh // GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata: Usage // metadata about response(s). type GoogleCloudAiplatformV1beta1GenerateContentResponseUsageMetadata struct { + // CacheTokensDetails: Output only. List of modalities of the cached content in + // the request input. + CacheTokensDetails []*GoogleCloudAiplatformV1beta1ModalityTokenCount `json:"cacheTokensDetails,omitempty"` // CachedContentTokenCount: Output only. Number of tokens in the cached part in // the input (the cached content). CachedContentTokenCount int64 `json:"cachedContentTokenCount,omitempty"` // CandidatesTokenCount: Number of tokens in the response(s). CandidatesTokenCount int64 `json:"candidatesTokenCount,omitempty"` + // CandidatesTokensDetails: Output only. List of modalities that were returned + // in the response. + CandidatesTokensDetails []*GoogleCloudAiplatformV1beta1ModalityTokenCount `json:"candidatesTokensDetails,omitempty"` // PromptTokenCount: Number of tokens in the request. When `cached_content` is // set, this is still the total effective prompt size meaning this includes the // number of tokens in the cached content. PromptTokenCount int64 `json:"promptTokenCount,omitempty"` + // PromptTokensDetails: Output only. List of modalities that were processed in + // the request input. + PromptTokensDetails []*GoogleCloudAiplatformV1beta1ModalityTokenCount `json:"promptTokensDetails,omitempty"` // TotalTokenCount: Total token count for prompt and response candidates. TotalTokenCount int64 `json:"totalTokenCount,omitempty"` - // ForceSendFields is a list of field names (e.g. "CachedContentTokenCount") to + // ForceSendFields is a list of field names (e.g. "CacheTokensDetails") 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. "CachedContentTokenCount") to - // include in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. See + // NullFields is a list of field names (e.g. "CacheTokensDetails") 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:"-"` } @@ -1435,6 +1447,39 @@ func (s GoogleCloudAiplatformV1beta1LogprobsResultTopCandidates) MarshalJSON() ( return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudAiplatformV1beta1ModalityTokenCount: Represents token counting +// info for a single modality. +type GoogleCloudAiplatformV1beta1ModalityTokenCount struct { + // Modality: The modality associated with this token count. + // + // Possible values: + // "MODALITY_UNSPECIFIED" - Unspecified modality. + // "TEXT" - Plain text. + // "IMAGE" - Image. + // "VIDEO" - Video. + // "AUDIO" - Audio. + // "DOCUMENT" - Document, e.g. PDF. + Modality string `json:"modality,omitempty"` + // TokenCount: Number of tokens. + TokenCount int64 `json:"tokenCount,omitempty"` + // ForceSendFields is a list of field names (e.g. "Modality") 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. "Modality") 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 GoogleCloudAiplatformV1beta1ModalityTokenCount) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudAiplatformV1beta1ModalityTokenCount + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudAiplatformV1beta1Part: A datatype containing media that is part // of a multi-part `Content` message. A `Part` consists of data which has an // associated datatype. A `Part` can only contain one of the accepted types in diff --git a/gkehub/v1beta/gkehub-api.json b/gkehub/v1beta/gkehub-api.json index 9628f81108..12a3438997 100644 --- a/gkehub/v1beta/gkehub-api.json +++ b/gkehub/v1beta/gkehub-api.json @@ -2111,39 +2111,9 @@ } } }, - "revision": "20250113", + "revision": "20250116", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { - "AnthosObservabilityFeatureSpec": { - "description": "**Anthos Observability**: Spec", - "id": "AnthosObservabilityFeatureSpec", - "properties": { - "defaultMembershipSpec": { - "$ref": "AnthosObservabilityMembershipSpec", - "description": "Default membership spec for unconfigured memberships" - } - }, - "type": "object" - }, - "AnthosObservabilityMembershipSpec": { - "description": "**Anthosobservability**: Per-Membership Feature spec.", - "id": "AnthosObservabilityMembershipSpec", - "properties": { - "doNotOptimizeMetrics": { - "description": "Use full of metrics rather than optimized metrics. See https://cloud.google.com/anthos/clusters/docs/on-prem/1.8/concepts/logging-and-monitoring#optimized_metrics_default_metrics", - "type": "boolean" - }, - "enableStackdriverOnApplications": { - "description": "Enable collecting and reporting metrics and logs from user apps.", - "type": "boolean" - }, - "version": { - "description": "the version of stackdriver operator used by this feature", - "type": "string" - } - }, - "type": "object" - }, "AppDevExperienceFeatureSpec": { "description": "Spec for App Dev Experience Feature.", "id": "AppDevExperienceFeatureSpec", @@ -2563,10 +2533,6 @@ "description": "CommonFeatureSpec contains Fleet-wide configuration information", "id": "CommonFeatureSpec", "properties": { - "anthosobservability": { - "$ref": "AnthosObservabilityFeatureSpec", - "description": "Anthos Observability spec" - }, "appdevexperience": { "$ref": "AppDevExperienceFeatureSpec", "description": "Appdevexperience specific spec." @@ -5188,10 +5154,6 @@ "description": "MembershipFeatureSpec contains configuration information for a single Membership.", "id": "MembershipFeatureSpec", "properties": { - "anthosobservability": { - "$ref": "AnthosObservabilityMembershipSpec", - "description": "Anthos Observability-specific spec" - }, "cloudbuild": { "$ref": "MembershipSpec", "description": "Cloud Build-specific spec" @@ -6330,6 +6292,7 @@ "CNI_INSTALLATION_FAILED", "CNI_POD_UNSCHEDULABLE", "CLUSTER_HAS_ZERO_NODES", + "CANONICAL_SERVICE_ERROR", "UNSUPPORTED_MULTIPLE_CONTROL_PLANES", "VPCSC_GA_SUPPORTED", "DEPRECATED_SPEC_CONTROL_PLANE_MANAGEMENT", @@ -6367,6 +6330,7 @@ "CNI installation failed error code", "CNI pod unschedulable error code", "Cluster has zero node code", + "Failure to reconcile CanonicalServices", "Multiple control planes unsupported error code", "VPC-SC GA is supported for this control plane.", "User is using deprecated ControlPlaneManagement and they have not yet set Management.", diff --git a/gkehub/v1beta/gkehub-gen.go b/gkehub/v1beta/gkehub-gen.go index 014462eadb..8aeb1e3f83 100644 --- a/gkehub/v1beta/gkehub-gen.go +++ b/gkehub/v1beta/gkehub-gen.go @@ -322,57 +322,6 @@ type ProjectsLocationsScopesRbacrolebindingsService struct { s *Service } -// AnthosObservabilityFeatureSpec: **Anthos Observability**: Spec -type AnthosObservabilityFeatureSpec struct { - // DefaultMembershipSpec: Default membership spec for unconfigured memberships - DefaultMembershipSpec *AnthosObservabilityMembershipSpec `json:"defaultMembershipSpec,omitempty"` - // ForceSendFields is a list of field names (e.g. "DefaultMembershipSpec") 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. "DefaultMembershipSpec") 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 AnthosObservabilityFeatureSpec) MarshalJSON() ([]byte, error) { - type NoMethod AnthosObservabilityFeatureSpec - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - -// AnthosObservabilityMembershipSpec: **Anthosobservability**: Per-Membership -// Feature spec. -type AnthosObservabilityMembershipSpec struct { - // DoNotOptimizeMetrics: Use full of metrics rather than optimized metrics. See - // https://cloud.google.com/anthos/clusters/docs/on-prem/1.8/concepts/logging-and-monitoring#optimized_metrics_default_metrics - DoNotOptimizeMetrics bool `json:"doNotOptimizeMetrics,omitempty"` - // EnableStackdriverOnApplications: Enable collecting and reporting metrics and - // logs from user apps. - EnableStackdriverOnApplications bool `json:"enableStackdriverOnApplications,omitempty"` - // Version: the version of stackdriver operator used by this feature - Version string `json:"version,omitempty"` - // ForceSendFields is a list of field names (e.g. "DoNotOptimizeMetrics") 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. "DoNotOptimizeMetrics") 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 AnthosObservabilityMembershipSpec) MarshalJSON() ([]byte, error) { - type NoMethod AnthosObservabilityMembershipSpec - return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) -} - // AppDevExperienceFeatureSpec: Spec for App Dev Experience Feature. type AppDevExperienceFeatureSpec struct { } @@ -1037,8 +986,6 @@ func (s ClusterUpgradeUpgradeStatus) MarshalJSON() ([]byte, error) { // CommonFeatureSpec: CommonFeatureSpec contains Fleet-wide configuration // information type CommonFeatureSpec struct { - // Anthosobservability: Anthos Observability spec - Anthosobservability *AnthosObservabilityFeatureSpec `json:"anthosobservability,omitempty"` // Appdevexperience: Appdevexperience specific spec. Appdevexperience *AppDevExperienceFeatureSpec `json:"appdevexperience,omitempty"` // Clusterupgrade: ClusterUpgrade (fleet-based) feature spec. @@ -1049,15 +996,15 @@ type CommonFeatureSpec struct { Fleetobservability *FleetObservabilityFeatureSpec `json:"fleetobservability,omitempty"` // Multiclusteringress: Multicluster Ingress-specific spec. Multiclusteringress *MultiClusterIngressFeatureSpec `json:"multiclusteringress,omitempty"` - // ForceSendFields is a list of field names (e.g. "Anthosobservability") to + // ForceSendFields is a list of field names (e.g. "Appdevexperience") 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. "Anthosobservability") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See + // NullFields is a list of field names (e.g. "Appdevexperience") 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:"-"` } @@ -4172,8 +4119,6 @@ func (s MembershipEndpoint) MarshalJSON() ([]byte, error) { // MembershipFeatureSpec: MembershipFeatureSpec contains configuration // information for a single Membership. type MembershipFeatureSpec struct { - // Anthosobservability: Anthos Observability-specific spec - Anthosobservability *AnthosObservabilityMembershipSpec `json:"anthosobservability,omitempty"` // Cloudbuild: Cloud Build-specific spec Cloudbuild *MembershipSpec `json:"cloudbuild,omitempty"` // Configmanagement: Config Management-specific spec. @@ -4191,15 +4136,15 @@ type MembershipFeatureSpec struct { Origin *Origin `json:"origin,omitempty"` // Policycontroller: Policy Controller spec. Policycontroller *PolicyControllerMembershipSpec `json:"policycontroller,omitempty"` - // ForceSendFields is a list of field names (e.g. "Anthosobservability") to + // ForceSendFields is a list of field names (e.g. "Cloudbuild") 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. "Anthosobservability") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See + // NullFields is a list of field names (e.g. "Cloudbuild") 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:"-"` } @@ -5621,6 +5566,7 @@ type ServiceMeshCondition struct { // "CNI_INSTALLATION_FAILED" - CNI installation failed error code // "CNI_POD_UNSCHEDULABLE" - CNI pod unschedulable error code // "CLUSTER_HAS_ZERO_NODES" - Cluster has zero node code + // "CANONICAL_SERVICE_ERROR" - Failure to reconcile CanonicalServices // "UNSUPPORTED_MULTIPLE_CONTROL_PLANES" - Multiple control planes // unsupported error code // "VPCSC_GA_SUPPORTED" - VPC-SC GA is supported for this control plane. diff --git a/gkehub/v2alpha/gkehub-api.json b/gkehub/v2alpha/gkehub-api.json index 359c39d113..86573cf606 100644 --- a/gkehub/v2alpha/gkehub-api.json +++ b/gkehub/v2alpha/gkehub-api.json @@ -471,7 +471,7 @@ } } }, - "revision": "20250113", + "revision": "20250116", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceState": { @@ -2909,6 +2909,7 @@ "CNI_INSTALLATION_FAILED", "CNI_POD_UNSCHEDULABLE", "CLUSTER_HAS_ZERO_NODES", + "CANONICAL_SERVICE_ERROR", "UNSUPPORTED_MULTIPLE_CONTROL_PLANES", "VPCSC_GA_SUPPORTED", "DEPRECATED_SPEC_CONTROL_PLANE_MANAGEMENT", @@ -2946,6 +2947,7 @@ "CNI installation failed error code", "CNI pod unschedulable error code", "Cluster has zero node code", + "Failure to reconcile CanonicalServices", "Multiple control planes unsupported error code", "VPC-SC GA is supported for this control plane.", "User is using deprecated ControlPlaneManagement and they have not yet set Management.", diff --git a/gkehub/v2alpha/gkehub-gen.go b/gkehub/v2alpha/gkehub-gen.go index b2ef7ce205..628a24dcfa 100644 --- a/gkehub/v2alpha/gkehub-gen.go +++ b/gkehub/v2alpha/gkehub-gen.go @@ -3062,6 +3062,7 @@ type ServiceMeshCondition struct { // "CNI_INSTALLATION_FAILED" - CNI installation failed error code // "CNI_POD_UNSCHEDULABLE" - CNI pod unschedulable error code // "CLUSTER_HAS_ZERO_NODES" - Cluster has zero node code + // "CANONICAL_SERVICE_ERROR" - Failure to reconcile CanonicalServices // "UNSUPPORTED_MULTIPLE_CONTROL_PLANES" - Multiple control planes // unsupported error code // "VPCSC_GA_SUPPORTED" - VPC-SC GA is supported for this control plane. diff --git a/gkehub/v2beta/gkehub-api.json b/gkehub/v2beta/gkehub-api.json index 39e1aec7d7..b50575f5f4 100644 --- a/gkehub/v2beta/gkehub-api.json +++ b/gkehub/v2beta/gkehub-api.json @@ -471,7 +471,7 @@ } } }, - "revision": "20250113", + "revision": "20250116", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceState": { @@ -2909,6 +2909,7 @@ "CNI_INSTALLATION_FAILED", "CNI_POD_UNSCHEDULABLE", "CLUSTER_HAS_ZERO_NODES", + "CANONICAL_SERVICE_ERROR", "UNSUPPORTED_MULTIPLE_CONTROL_PLANES", "VPCSC_GA_SUPPORTED", "DEPRECATED_SPEC_CONTROL_PLANE_MANAGEMENT", @@ -2946,6 +2947,7 @@ "CNI installation failed error code", "CNI pod unschedulable error code", "Cluster has zero node code", + "Failure to reconcile CanonicalServices", "Multiple control planes unsupported error code", "VPC-SC GA is supported for this control plane.", "User is using deprecated ControlPlaneManagement and they have not yet set Management.", diff --git a/gkehub/v2beta/gkehub-gen.go b/gkehub/v2beta/gkehub-gen.go index 69688bea06..c2af58c3bf 100644 --- a/gkehub/v2beta/gkehub-gen.go +++ b/gkehub/v2beta/gkehub-gen.go @@ -3062,6 +3062,7 @@ type ServiceMeshCondition struct { // "CNI_INSTALLATION_FAILED" - CNI installation failed error code // "CNI_POD_UNSCHEDULABLE" - CNI pod unschedulable error code // "CLUSTER_HAS_ZERO_NODES" - Cluster has zero node code + // "CANONICAL_SERVICE_ERROR" - Failure to reconcile CanonicalServices // "UNSUPPORTED_MULTIPLE_CONTROL_PLANES" - Multiple control planes // unsupported error code // "VPCSC_GA_SUPPORTED" - VPC-SC GA is supported for this control plane. diff --git a/iam/v1/iam-api.json b/iam/v1/iam-api.json index 9aa1f45599..106b1ae80b 100644 --- a/iam/v1/iam-api.json +++ b/iam/v1/iam-api.json @@ -3188,7 +3188,7 @@ } } }, - "revision": "20250102", + "revision": "20250116", "rootUrl": "https://iam.googleapis.com/", "schemas": { "AccessRestrictions": { @@ -4053,7 +4053,7 @@ "type": "array" }, "allowedScopes": { - "description": "Required. The list of scopes that the OauthClient is allowed to request during OAuth flows. The following scopes are supported: * `https://www.googleapis.com/auth/cloud-platform`: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.", + "description": "Required. The list of scopes that the OauthClient is allowed to request during OAuth flows. The following scopes are supported: * `https://www.googleapis.com/auth/cloud-platform`: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. * `openid`: The OAuth client can associate you with your personal information on Google Cloud. * `email`: The OAuth client can read a federated identity's email address. * `groups`: The OAuth client can read a federated identity's groups.", "items": { "type": "string" }, diff --git a/iam/v1/iam-gen.go b/iam/v1/iam-gen.go index 32777457e1..eb7fabeff1 100644 --- a/iam/v1/iam-gen.go +++ b/iam/v1/iam-gen.go @@ -1934,7 +1934,10 @@ type OauthClient struct { // to request during OAuth flows. The following scopes are supported: * // `https://www.googleapis.com/auth/cloud-platform`: See, edit, configure, and // delete your Google Cloud data and see the email address for your Google - // Account. + // Account. * `openid`: The OAuth client can associate you with your personal + // information on Google Cloud. * `email`: The OAuth client can read a + // federated identity's email address. * `groups`: The OAuth client can read a + // federated identity's groups. AllowedScopes []string `json:"allowedScopes,omitempty"` // ClientId: Output only. The system-generated OauthClient id. ClientId string `json:"clientId,omitempty"` diff --git a/run/v2/run-api.json b/run/v2/run-api.json index 1b4c6eb68e..eb71cb4c5b 100644 --- a/run/v2/run-api.json +++ b/run/v2/run-api.json @@ -1520,13 +1520,122 @@ } } } + }, + "workerPools": { + "resources": { + "revisions": { + "methods": { + "delete": { + "description": "Deletes a Revision.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/workerPools/{workerPoolsId}/revisions/{revisionsId}", + "httpMethod": "DELETE", + "id": "run.projects.locations.workerPools.revisions.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "etag": { + "description": "A system-generated fingerprint for this version of the resource. This may be used to detect modification conflict during updates.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The name of the Revision to delete. Format: projects/{project}/locations/{location}/services/{service}/revisions/{revision}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workerPools/[^/]+/revisions/[^/]+$", + "required": true, + "type": "string" + }, + "validateOnly": { + "description": "Indicates that the request should be validated without actually deleting any resources.", + "location": "query", + "type": "boolean" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "GoogleLongrunningOperation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets information about a Revision.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/workerPools/{workerPoolsId}/revisions/{revisionsId}", + "httpMethod": "GET", + "id": "run.projects.locations.workerPools.revisions.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The full name of the Revision. Format: projects/{project}/locations/{location}/services/{service}/revisions/{revision}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workerPools/[^/]+/revisions/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v2/{+name}", + "response": { + "$ref": "GoogleCloudRunV2Revision" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Revisions from a given Service, or from a given location. Results are sorted by creation time, descending.", + "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/workerPools/{workerPoolsId}/revisions", + "httpMethod": "GET", + "id": "run.projects.locations.workerPools.revisions.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "pageSize": { + "description": "Maximum number of revisions to return in this call.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token received from a previous call to ListRevisions. All other parameters must match.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The Service from which the Revisions should be listed. To list all Revisions across Services, use \"-\" instead of Service name. Format: projects/{project}/locations/{location}/services/{service}", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/workerPools/[^/]+$", + "required": true, + "type": "string" + }, + "showDeleted": { + "description": "If true, returns deleted (but unexpired) resources along with active ones.", + "location": "query", + "type": "boolean" + } + }, + "path": "v2/{+parent}/revisions", + "response": { + "$ref": "GoogleCloudRunV2ListRevisionsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + } + } } } } } } }, - "revision": "20250103", + "revision": "20250117", "rootUrl": "https://run.googleapis.com/", "schemas": { "GoogleCloudRunV2BinaryAuthorization": { @@ -1548,12 +1657,76 @@ }, "type": "object" }, + "GoogleCloudRunV2BuildConfig": { + "description": "Describes the Build step of the function that builds a container from the given source.", + "id": "GoogleCloudRunV2BuildConfig", + "properties": { + "baseImage": { + "description": "Optional. The base image used to build the function.", + "type": "string" + }, + "enableAutomaticUpdates": { + "description": "Optional. Sets whether the function will receive automatic base image updates.", + "type": "boolean" + }, + "environmentVariables": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. User-provided build-time environment variables for the function", + "type": "object" + }, + "functionTarget": { + "description": "Optional. The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named \"function\".", + "type": "string" + }, + "imageUri": { + "description": "Optional. Artifact Registry URI to store the built image.", + "type": "string" + }, + "name": { + "description": "Output only. The Cloud Build name of the latest successful deployment of the function.", + "readOnly": true, + "type": "string" + }, + "serviceAccount": { + "description": "Optional. Service account to be used for building the container. The format of this field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.", + "type": "string" + }, + "sourceLocation": { + "description": "The Cloud Storage bucket URI where the function source code is located.", + "type": "string" + }, + "workerPool": { + "description": "Optional. Name of the Cloud Build Custom Worker Pool that should be used to build the Cloud Run function. The format of this field is `projects/{project}/locations/{region}/workerPools/{workerPool}` where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool.", + "type": "string" + } + }, + "type": "object" + }, + "GoogleCloudRunV2BuildInfo": { + "description": "Build information of the image.", + "id": "GoogleCloudRunV2BuildInfo", + "properties": { + "functionTarget": { + "description": "Output only. Entry point of the function when the image is a Cloud Run function.", + "readOnly": true, + "type": "string" + }, + "sourceLocation": { + "description": "Output only. Source code location of the image.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudRunV2BuildpacksBuild": { "description": "Build the source using Buildpacks.", "id": "GoogleCloudRunV2BuildpacksBuild", "properties": { "baseImage": { - "description": "Optional. The base image used to opt into automatic base image updates.", + "description": "Optional. The base image to use for the build.", "type": "string" }, "cacheImageUri": { @@ -1776,6 +1949,15 @@ }, "type": "array" }, + "baseImageUri": { + "description": "Base image for this container. Only supported for services. If set. it indicates that the service is enrolled into automatic base image update.", + "type": "string" + }, + "buildInfo": { + "$ref": "GoogleCloudRunV2BuildInfo", + "description": "Output only. The build info of the container image.", + "readOnly": true + }, "command": { "description": "Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided.", "items": { @@ -1980,6 +2162,11 @@ "readOnly": true, "type": "string" }, + "creator": { + "description": "Output only. Email address of the authenticated creator.", + "readOnly": true, + "type": "string" + }, "deleteTime": { "description": "Output only. For a deleted resource, the deletion time. It is only populated as a response to a Delete request.", "format": "google-datetime", @@ -3205,6 +3392,10 @@ "$ref": "GoogleCloudRunV2BinaryAuthorization", "description": "Optional. Settings for the Binary Authorization feature." }, + "buildConfig": { + "$ref": "GoogleCloudRunV2BuildConfig", + "description": "Optional. Configuration for building a Cloud Run function." + }, "client": { "description": "Arbitrary identifier for the API client.", "type": "string" @@ -4066,6 +4257,13 @@ "description": "Artifacts produced by a build that should be uploaded upon successful completion of all build steps.", "id": "GoogleDevtoolsCloudbuildV1Artifacts", "properties": { + "goModules": { + "description": "Optional. A list of Go modules to be uploaded to Artifact Registry upon successful completion of all build steps. If any objects fail to be pushed, the build is marked FAILURE.", + "items": { + "$ref": "GoogleDevtoolsCloudbuildV1GoModule" + }, + "type": "array" + }, "images": { "description": "A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account's credentials. The digests of the pushed images will be stored in the Build resource's results field. If any of the images fail to be pushed, the build is marked FAILURE.", "items": { @@ -4372,6 +4570,10 @@ "description": "Option to specify whether or not to apply bash style string operations to the substitutions. NOTE: this is always enabled for triggered builds and cannot be overridden in the build configuration file.", "type": "boolean" }, + "enableStructuredLogging": { + "description": "Optional. Option to specify whether structured logging is enabled. If true, JSON-formatted logs are parsed as structured logs.", + "type": "boolean" + }, "env": { "description": "A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will use the build step value. The elements are of the form \"KEY=VALUE\" for the environment variable \"KEY\" being given the value \"VALUE\".", "items": { @@ -4479,12 +4681,14 @@ "NONE", "SHA256", "MD5", + "GO_MODULE_H1", "SHA512" ], "enumDescriptions": [ "No hash requested.", "Use a sha256 hash.", "Use a md5 hash.", + "Dirhash of a Go module's source code which is then hex-encoded.", "Use a sha512 hash." ], "type": "string" @@ -4781,6 +4985,37 @@ }, "type": "object" }, + "GoogleDevtoolsCloudbuildV1GoModule": { + "description": "Go module to upload to Artifact Registry upon successful completion of all build steps. A module refers to all dependencies in a go.mod file.", + "id": "GoogleDevtoolsCloudbuildV1GoModule", + "properties": { + "modulePath": { + "description": "Optional. The Go module's \"module path\". e.g. example.com/foo/v2", + "type": "string" + }, + "moduleVersion": { + "description": "Optional. The Go module's semantic version in the form vX.Y.Z. e.g. v0.1.1 Pre-release identifiers can also be added by appending a dash and dot separated ASCII alphanumeric characters and hyphens. e.g. v0.2.3-alpha.x.12m.5", + "type": "string" + }, + "repositoryLocation": { + "description": "Optional. Location of the Artifact Registry repository. i.e. us-east1 Defaults to the build’s location.", + "type": "string" + }, + "repositoryName": { + "description": "Optional. Artifact Registry repository name. Specified Go modules will be zipped and uploaded to Artifact Registry with this location as a prefix. e.g. my-go-repo", + "type": "string" + }, + "repositoryProjectId": { + "description": "Optional. Project ID of the Artifact Registry repository. Defaults to the build project.", + "type": "string" + }, + "sourcePath": { + "description": "Optional. Source path of the go.mod file in the build's workspace. If not specified, this will default to the current directory. e.g. ~/code/go/mypackage", + "type": "string" + } + }, + "type": "object" + }, "GoogleDevtoolsCloudbuildV1Hash": { "description": "Container message for hash values.", "id": "GoogleDevtoolsCloudbuildV1Hash", @@ -4791,12 +5026,14 @@ "NONE", "SHA256", "MD5", + "GO_MODULE_H1", "SHA512" ], "enumDescriptions": [ "No hash requested.", "Use a sha256 hash.", "Use a md5 hash.", + "Dirhash of a Go module's source code which is then hex-encoded.", "Use a sha512 hash." ], "type": "string" @@ -4979,6 +5216,13 @@ }, "type": "array" }, + "goModules": { + "description": "Optional. Go module artifacts uploaded to Artifact Registry at the end of the build.", + "items": { + "$ref": "GoogleDevtoolsCloudbuildV1UploadedGoModule" + }, + "type": "array" + }, "images": { "description": "Container images that were built as a part of the build.", "items": { @@ -5209,6 +5453,26 @@ }, "type": "object" }, + "GoogleDevtoolsCloudbuildV1UploadedGoModule": { + "description": "A Go module artifact uploaded to Artifact Registry using the GoModule directive.", + "id": "GoogleDevtoolsCloudbuildV1UploadedGoModule", + "properties": { + "fileHashes": { + "$ref": "GoogleDevtoolsCloudbuildV1FileHashes", + "description": "Hash types and values of the Go Module Artifact." + }, + "pushTiming": { + "$ref": "GoogleDevtoolsCloudbuildV1TimeSpan", + "description": "Output only. Stores timing information for pushing the specified artifact.", + "readOnly": true + }, + "uri": { + "description": "URI of the uploaded artifact.", + "type": "string" + } + }, + "type": "object" + }, "GoogleDevtoolsCloudbuildV1UploadedMavenArtifact": { "description": "A Maven artifact uploaded using the MavenArtifact directive.", "id": "GoogleDevtoolsCloudbuildV1UploadedMavenArtifact", @@ -5588,12 +5852,12 @@ "id": "UtilStatusProto", "properties": { "canonicalCode": { - "description": "The canonical error code (see codes.proto) that most closely corresponds to this status. This may be missing, and in the common case of the generic space, it definitely will be.", + "description": "The canonical error code (see codes.proto) that most closely corresponds to this status. This may be missing, and in the common case of the generic space, it definitely will be. copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional int32 canonical_code = 6;", "format": "int32", "type": "integer" }, "code": { - "description": "Numeric code drawn from the space specified below. Often, this is the canonical error space, and code is drawn from google3/util/task/codes.proto", + "description": "Numeric code drawn from the space specified below. Often, this is the canonical error space, and code is drawn from google3/util/task/codes.proto copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional int32 code = 1;", "format": "int32", "type": "integer" }, @@ -5606,7 +5870,7 @@ "description": "message_set associates an arbitrary proto message with the status. copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional proto2.bridge.MessageSet message_set = 5;" }, "space": { - "description": "The following are usually only present when code != 0 Space to which this status belongs", + "description": "The following are usually only present when code != 0 Space to which this status belongs copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional string space = 2;", "type": "string" } }, diff --git a/run/v2/run-gen.go b/run/v2/run-gen.go index e632f1a144..f54452513f 100644 --- a/run/v2/run-gen.go +++ b/run/v2/run-gen.go @@ -175,6 +175,7 @@ func NewProjectsLocationsService(s *Service) *ProjectsLocationsService { rs.Jobs = NewProjectsLocationsJobsService(s) rs.Operations = NewProjectsLocationsOperationsService(s) rs.Services = NewProjectsLocationsServicesService(s) + rs.WorkerPools = NewProjectsLocationsWorkerPoolsService(s) return rs } @@ -188,6 +189,8 @@ type ProjectsLocationsService struct { Operations *ProjectsLocationsOperationsService Services *ProjectsLocationsServicesService + + WorkerPools *ProjectsLocationsWorkerPoolsService } func NewProjectsLocationsBuildsService(s *Service) *ProjectsLocationsBuildsService { @@ -262,6 +265,27 @@ type ProjectsLocationsServicesRevisionsService struct { s *Service } +func NewProjectsLocationsWorkerPoolsService(s *Service) *ProjectsLocationsWorkerPoolsService { + rs := &ProjectsLocationsWorkerPoolsService{s: s} + rs.Revisions = NewProjectsLocationsWorkerPoolsRevisionsService(s) + return rs +} + +type ProjectsLocationsWorkerPoolsService struct { + s *Service + + Revisions *ProjectsLocationsWorkerPoolsRevisionsService +} + +func NewProjectsLocationsWorkerPoolsRevisionsService(s *Service) *ProjectsLocationsWorkerPoolsRevisionsService { + rs := &ProjectsLocationsWorkerPoolsRevisionsService{s: s} + return rs +} + +type ProjectsLocationsWorkerPoolsRevisionsService struct { + s *Service +} + // GoogleCloudRunV2BinaryAuthorization: Settings for Binary Authorization // feature. type GoogleCloudRunV2BinaryAuthorization struct { @@ -294,10 +318,87 @@ func (s GoogleCloudRunV2BinaryAuthorization) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleCloudRunV2BuildConfig: Describes the Build step of the function that +// builds a container from the given source. +type GoogleCloudRunV2BuildConfig struct { + // BaseImage: Optional. The base image used to build the function. + BaseImage string `json:"baseImage,omitempty"` + // EnableAutomaticUpdates: Optional. Sets whether the function will receive + // automatic base image updates. + EnableAutomaticUpdates bool `json:"enableAutomaticUpdates,omitempty"` + // EnvironmentVariables: Optional. User-provided build-time environment + // variables for the function + EnvironmentVariables map[string]string `json:"environmentVariables,omitempty"` + // FunctionTarget: Optional. The name of the function (as defined in source + // code) that will be executed. Defaults to the resource name suffix, if not + // specified. For backward compatibility, if function with given name is not + // found, then the system will try to use function named "function". + FunctionTarget string `json:"functionTarget,omitempty"` + // ImageUri: Optional. Artifact Registry URI to store the built image. + ImageUri string `json:"imageUri,omitempty"` + // Name: Output only. The Cloud Build name of the latest successful deployment + // of the function. + Name string `json:"name,omitempty"` + // ServiceAccount: Optional. Service account to be used for building the + // container. The format of this field is + // `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`. + ServiceAccount string `json:"serviceAccount,omitempty"` + // SourceLocation: The Cloud Storage bucket URI where the function source code + // is located. + SourceLocation string `json:"sourceLocation,omitempty"` + // WorkerPool: Optional. Name of the Cloud Build Custom Worker Pool that should + // be used to build the Cloud Run function. The format of this field is + // `projects/{project}/locations/{region}/workerPools/{workerPool}` where + // {project} and {region} are the project id and region respectively where the + // worker pool is defined and {workerPool} is the short name of the worker + // pool. + WorkerPool string `json:"workerPool,omitempty"` + // ForceSendFields is a list of field names (e.g. "BaseImage") 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. "BaseImage") 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 GoogleCloudRunV2BuildConfig) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2BuildConfig + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + +// GoogleCloudRunV2BuildInfo: Build information of the image. +type GoogleCloudRunV2BuildInfo struct { + // FunctionTarget: Output only. Entry point of the function when the image is a + // Cloud Run function. + FunctionTarget string `json:"functionTarget,omitempty"` + // SourceLocation: Output only. Source code location of the image. + SourceLocation string `json:"sourceLocation,omitempty"` + // ForceSendFields is a list of field names (e.g. "FunctionTarget") 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. "FunctionTarget") 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 GoogleCloudRunV2BuildInfo) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudRunV2BuildInfo + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudRunV2BuildpacksBuild: Build the source using Buildpacks. type GoogleCloudRunV2BuildpacksBuild struct { - // BaseImage: Optional. The base image used to opt into automatic base image - // updates. + // BaseImage: Optional. The base image to use for the build. BaseImage string `json:"baseImage,omitempty"` // CacheImageUri: Optional. cache_image_uri is the GCR/AR URL where the cache // image will be stored. cache_image_uri is optional and omitting it will @@ -518,6 +619,12 @@ type GoogleCloudRunV2Container struct { // Args: Arguments to the entrypoint. The docker image's CMD is used if this is // not provided. Args []string `json:"args,omitempty"` + // BaseImageUri: Base image for this container. Only supported for services. If + // set. it indicates that the service is enrolled into automatic base image + // update. + BaseImageUri string `json:"baseImageUri,omitempty"` + // BuildInfo: Output only. The build info of the container image. + BuildInfo *GoogleCloudRunV2BuildInfo `json:"buildInfo,omitempty"` // Command: Entrypoint array. Not executed within a shell. The docker image's // ENTRYPOINT is used if this is not provided. Command []string `json:"command,omitempty"` @@ -750,6 +857,8 @@ type GoogleCloudRunV2Execution struct { // by the execution controller. It is not guaranteed to be set in // happens-before order across separate operations. CreateTime string `json:"createTime,omitempty"` + // Creator: Output only. Email address of the authenticated creator. + Creator string `json:"creator,omitempty"` // DeleteTime: Output only. For a deleted resource, the deletion time. It is // only populated as a response to a Delete request. DeleteTime string `json:"deleteTime,omitempty"` @@ -2192,6 +2301,8 @@ type GoogleCloudRunV2Service struct { // BinaryAuthorization: Optional. Settings for the Binary Authorization // feature. BinaryAuthorization *GoogleCloudRunV2BinaryAuthorization `json:"binaryAuthorization,omitempty"` + // BuildConfig: Optional. Configuration for building a Cloud Run function. + BuildConfig *GoogleCloudRunV2BuildConfig `json:"buildConfig,omitempty"` // Client: Arbitrary identifier for the API client. Client string `json:"client,omitempty"` // ClientVersion: Arbitrary version identifier for the API client. @@ -3121,6 +3232,10 @@ func (s GoogleDevtoolsCloudbuildV1ArtifactObjects) MarshalJSON() ([]byte, error) // GoogleDevtoolsCloudbuildV1Artifacts: Artifacts produced by a build that // should be uploaded upon successful completion of all build steps. type GoogleDevtoolsCloudbuildV1Artifacts struct { + // GoModules: Optional. A list of Go modules to be uploaded to Artifact + // Registry upon successful completion of all build steps. If any objects fail + // to be pushed, the build is marked FAILURE. + GoModules []*GoogleDevtoolsCloudbuildV1GoModule `json:"goModules,omitempty"` // Images: A list of images to be pushed upon the successful completion of all // build steps. The images will be pushed using the builder service account's // credentials. The digests of the pushed images will be stored in the Build @@ -3152,13 +3267,13 @@ type GoogleDevtoolsCloudbuildV1Artifacts struct { // account credentials will be used to perform the upload. If any objects fail // to be pushed, the build is marked FAILURE. PythonPackages []*GoogleDevtoolsCloudbuildV1PythonPackage `json:"pythonPackages,omitempty"` - // ForceSendFields is a list of field names (e.g. "Images") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "GoModules") 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. "Images") to include in API + // NullFields is a list of field names (e.g. "GoModules") 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. @@ -3394,6 +3509,10 @@ type GoogleDevtoolsCloudbuildV1BuildOptions struct { // string operations to the substitutions. NOTE: this is always enabled for // triggered builds and cannot be overridden in the build configuration file. DynamicSubstitutions bool `json:"dynamicSubstitutions,omitempty"` + // EnableStructuredLogging: Optional. Option to specify whether structured + // logging is enabled. If true, JSON-formatted logs are parsed as structured + // logs. + EnableStructuredLogging bool `json:"enableStructuredLogging,omitempty"` // Env: A list of global environment variable definitions that will exist for // all build steps in this build. If a variable is defined in both globally and // in a build step, the variable will use the build step value. The elements @@ -3457,6 +3576,8 @@ type GoogleDevtoolsCloudbuildV1BuildOptions struct { // "NONE" - No hash requested. // "SHA256" - Use a sha256 hash. // "MD5" - Use a md5 hash. + // "GO_MODULE_H1" - Dirhash of a Go module's source code which is then + // hex-encoded. // "SHA512" - Use a sha512 hash. SourceProvenanceHash []string `json:"sourceProvenanceHash,omitempty"` // SubstitutionOption: Option to specify behavior when there is an error in the @@ -3820,6 +3941,49 @@ func (s GoogleDevtoolsCloudbuildV1GitSource) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleDevtoolsCloudbuildV1GoModule: Go module to upload to Artifact Registry +// upon successful completion of all build steps. A module refers to all +// dependencies in a go.mod file. +type GoogleDevtoolsCloudbuildV1GoModule struct { + // ModulePath: Optional. The Go module's "module path". e.g. example.com/foo/v2 + ModulePath string `json:"modulePath,omitempty"` + // ModuleVersion: Optional. The Go module's semantic version in the form + // vX.Y.Z. e.g. v0.1.1 Pre-release identifiers can also be added by appending a + // dash and dot separated ASCII alphanumeric characters and hyphens. e.g. + // v0.2.3-alpha.x.12m.5 + ModuleVersion string `json:"moduleVersion,omitempty"` + // RepositoryLocation: Optional. Location of the Artifact Registry repository. + // i.e. us-east1 Defaults to the build’s location. + RepositoryLocation string `json:"repositoryLocation,omitempty"` + // RepositoryName: Optional. Artifact Registry repository name. Specified Go + // modules will be zipped and uploaded to Artifact Registry with this location + // as a prefix. e.g. my-go-repo + RepositoryName string `json:"repositoryName,omitempty"` + // RepositoryProjectId: Optional. Project ID of the Artifact Registry + // repository. Defaults to the build project. + RepositoryProjectId string `json:"repositoryProjectId,omitempty"` + // SourcePath: Optional. Source path of the go.mod file in the build's + // workspace. If not specified, this will default to the current directory. + // e.g. ~/code/go/mypackage + SourcePath string `json:"sourcePath,omitempty"` + // ForceSendFields is a list of field names (e.g. "ModulePath") 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. "ModulePath") 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 GoogleDevtoolsCloudbuildV1GoModule) MarshalJSON() ([]byte, error) { + type NoMethod GoogleDevtoolsCloudbuildV1GoModule + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleDevtoolsCloudbuildV1Hash: Container message for hash values. type GoogleDevtoolsCloudbuildV1Hash struct { // Type: The type of hash that was performed. @@ -3828,6 +3992,8 @@ type GoogleDevtoolsCloudbuildV1Hash struct { // "NONE" - No hash requested. // "SHA256" - Use a sha256 hash. // "MD5" - Use a md5 hash. + // "GO_MODULE_H1" - Dirhash of a Go module's source code which is then + // hex-encoded. // "SHA512" - Use a sha512 hash. Type string `json:"type,omitempty"` // Value: The hash value. @@ -4097,6 +4263,9 @@ type GoogleDevtoolsCloudbuildV1Results struct { // is stored. Note that the `$BUILDER_OUTPUT` variable is read-only and can't // be substituted. BuildStepOutputs []string `json:"buildStepOutputs,omitempty"` + // GoModules: Optional. Go module artifacts uploaded to Artifact Registry at + // the end of the build. + GoModules []*GoogleDevtoolsCloudbuildV1UploadedGoModule `json:"goModules,omitempty"` // Images: Container images that were built as a part of the build. Images []*GoogleDevtoolsCloudbuildV1BuiltImage `json:"images,omitempty"` // MavenArtifacts: Maven artifacts uploaded to Artifact Registry at the end of @@ -4398,6 +4567,34 @@ func (s GoogleDevtoolsCloudbuildV1TimeSpan) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// GoogleDevtoolsCloudbuildV1UploadedGoModule: A Go module artifact uploaded to +// Artifact Registry using the GoModule directive. +type GoogleDevtoolsCloudbuildV1UploadedGoModule struct { + // FileHashes: Hash types and values of the Go Module Artifact. + FileHashes *GoogleDevtoolsCloudbuildV1FileHashes `json:"fileHashes,omitempty"` + // PushTiming: Output only. Stores timing information for pushing the specified + // artifact. + PushTiming *GoogleDevtoolsCloudbuildV1TimeSpan `json:"pushTiming,omitempty"` + // Uri: URI of the uploaded artifact. + Uri string `json:"uri,omitempty"` + // ForceSendFields is a list of field names (e.g. "FileHashes") 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. "FileHashes") 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 GoogleDevtoolsCloudbuildV1UploadedGoModule) MarshalJSON() ([]byte, error) { + type NoMethod GoogleDevtoolsCloudbuildV1UploadedGoModule + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleDevtoolsCloudbuildV1UploadedMavenArtifact: A Maven artifact uploaded // using the MavenArtifact directive. type GoogleDevtoolsCloudbuildV1UploadedMavenArtifact struct { @@ -5093,10 +5290,13 @@ type Proto2BridgeMessageSet struct { type UtilStatusProto struct { // CanonicalCode: The canonical error code (see codes.proto) that most closely // corresponds to this status. This may be missing, and in the common case of - // the generic space, it definitely will be. + // the generic space, it definitely will be. copybara:strip_begin(b/383363683) + // copybara:strip_end_and_replace optional int32 canonical_code = 6; CanonicalCode int64 `json:"canonicalCode,omitempty"` // Code: Numeric code drawn from the space specified below. Often, this is the // canonical error space, and code is drawn from google3/util/task/codes.proto + // copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional + // int32 code = 1; Code int64 `json:"code,omitempty"` // Message: Detail message copybara:strip_begin(b/383363683) // copybara:strip_end_and_replace optional string message = 3; @@ -5106,7 +5306,8 @@ type UtilStatusProto struct { // optional proto2.bridge.MessageSet message_set = 5; MessageSet *Proto2BridgeMessageSet `json:"messageSet,omitempty"` // Space: The following are usually only present when code != 0 Space to which - // this status belongs + // this status belongs copybara:strip_begin(b/383363683) + // copybara:strip_end_and_replace optional string space = 2; Space string `json:"space,omitempty"` // ForceSendFields is a list of field names (e.g. "CanonicalCode") to // unconditionally include in API requests. By default, fields with empty or @@ -9600,3 +9801,385 @@ func (c *ProjectsLocationsServicesRevisionsListCall) Pages(ctx context.Context, c.PageToken(x.NextPageToken) } } + +type ProjectsLocationsWorkerPoolsRevisionsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a Revision. +// +// - name: The name of the Revision to delete. Format: +// projects/{project}/locations/{location}/services/{service}/revisions/{revis +// ion}. +func (r *ProjectsLocationsWorkerPoolsRevisionsService) Delete(name string) *ProjectsLocationsWorkerPoolsRevisionsDeleteCall { + c := &ProjectsLocationsWorkerPoolsRevisionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Etag sets the optional parameter "etag": A system-generated fingerprint for +// this version of the resource. This may be used to detect modification +// conflict during updates. +func (c *ProjectsLocationsWorkerPoolsRevisionsDeleteCall) Etag(etag string) *ProjectsLocationsWorkerPoolsRevisionsDeleteCall { + c.urlParams_.Set("etag", etag) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": Indicates that the +// request should be validated without actually deleting any resources. +func (c *ProjectsLocationsWorkerPoolsRevisionsDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsWorkerPoolsRevisionsDeleteCall { + c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + 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 *ProjectsLocationsWorkerPoolsRevisionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkerPoolsRevisionsDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsWorkerPoolsRevisionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsWorkerPoolsRevisionsDeleteCall { + 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 *ProjectsLocationsWorkerPoolsRevisionsDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkerPoolsRevisionsDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "run.projects.locations.workerPools.revisions.delete", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "run.projects.locations.workerPools.revisions.delete" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleLongrunningOperation.ServerResponse.Header or (if a response was +// returned at all) in error.(*googleapi.Error).Header. Use +// googleapi.IsNotModified to check whether the returned error was because +// http.StatusNotModified was returned. +func (c *ProjectsLocationsWorkerPoolsRevisionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &GoogleLongrunningOperation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "run.projects.locations.workerPools.revisions.delete", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsWorkerPoolsRevisionsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a Revision. +// +// - name: The full name of the Revision. Format: +// projects/{project}/locations/{location}/services/{service}/revisions/{revis +// ion}. +func (r *ProjectsLocationsWorkerPoolsRevisionsService) Get(name string) *ProjectsLocationsWorkerPoolsRevisionsGetCall { + c := &ProjectsLocationsWorkerPoolsRevisionsGetCall{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 *ProjectsLocationsWorkerPoolsRevisionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkerPoolsRevisionsGetCall { + 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 *ProjectsLocationsWorkerPoolsRevisionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkerPoolsRevisionsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsWorkerPoolsRevisionsGetCall) Context(ctx context.Context) *ProjectsLocationsWorkerPoolsRevisionsGetCall { + 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 *ProjectsLocationsWorkerPoolsRevisionsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkerPoolsRevisionsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "run.projects.locations.workerPools.revisions.get", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "run.projects.locations.workerPools.revisions.get" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudRunV2Revision.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 *ProjectsLocationsWorkerPoolsRevisionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunV2Revision, 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 := &GoogleCloudRunV2Revision{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "run.projects.locations.workerPools.revisions.get", "response", internallog.HTTPResponse(res, b)) + return ret, nil +} + +type ProjectsLocationsWorkerPoolsRevisionsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists Revisions from a given Service, or from a given location. +// Results are sorted by creation time, descending. +// +// - parent: The Service from which the Revisions should be listed. To list all +// Revisions across Services, use "-" instead of Service name. Format: +// projects/{project}/locations/{location}/services/{service}. +func (r *ProjectsLocationsWorkerPoolsRevisionsService) List(parent string) *ProjectsLocationsWorkerPoolsRevisionsListCall { + c := &ProjectsLocationsWorkerPoolsRevisionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// PageSize sets the optional parameter "pageSize": Maximum number of revisions +// to return in this call. +func (c *ProjectsLocationsWorkerPoolsRevisionsListCall) PageSize(pageSize int64) *ProjectsLocationsWorkerPoolsRevisionsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token received +// from a previous call to ListRevisions. All other parameters must match. +func (c *ProjectsLocationsWorkerPoolsRevisionsListCall) PageToken(pageToken string) *ProjectsLocationsWorkerPoolsRevisionsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// ShowDeleted sets the optional parameter "showDeleted": If true, returns +// deleted (but unexpired) resources along with active ones. +func (c *ProjectsLocationsWorkerPoolsRevisionsListCall) ShowDeleted(showDeleted bool) *ProjectsLocationsWorkerPoolsRevisionsListCall { + c.urlParams_.Set("showDeleted", fmt.Sprint(showDeleted)) + 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 *ProjectsLocationsWorkerPoolsRevisionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsWorkerPoolsRevisionsListCall { + 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 *ProjectsLocationsWorkerPoolsRevisionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsWorkerPoolsRevisionsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsLocationsWorkerPoolsRevisionsListCall) Context(ctx context.Context) *ProjectsLocationsWorkerPoolsRevisionsListCall { + 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 *ProjectsLocationsWorkerPoolsRevisionsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsWorkerPoolsRevisionsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/revisions") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, nil) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + c.s.logger.DebugContext(c.ctx_, "api request", "serviceName", apiName, "rpcName", "run.projects.locations.workerPools.revisions.list", "request", internallog.HTTPRequest(req, nil)) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "run.projects.locations.workerPools.revisions.list" call. +// Any non-2xx status code is an error. Response headers are in either +// *GoogleCloudRunV2ListRevisionsResponse.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 *ProjectsLocationsWorkerPoolsRevisionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudRunV2ListRevisionsResponse, 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 := &GoogleCloudRunV2ListRevisionsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + b, err := gensupport.DecodeResponseBytes(target, res) + if err != nil { + return nil, err + } + c.s.logger.DebugContext(c.ctx_, "api response", "serviceName", apiName, "rpcName", "run.projects.locations.workerPools.revisions.list", "response", internallog.HTTPResponse(res, b)) + 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 *ProjectsLocationsWorkerPoolsRevisionsListCall) Pages(ctx context.Context, f func(*GoogleCloudRunV2ListRevisionsResponse) 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) + } +} diff --git a/securitycenter/v1beta1/securitycenter-api.json b/securitycenter/v1beta1/securitycenter-api.json index db5db49285..4faf761ece 100644 --- a/securitycenter/v1beta1/securitycenter-api.json +++ b/securitycenter/v1beta1/securitycenter-api.json @@ -654,7 +654,7 @@ ] }, "testIamPermissions": { - "description": "Returns the permissions that a caller has on the specified source.", + "description": " Returns the permissions that a caller has on the specified source.", "flatPath": "v1beta1/organizations/{organizationsId}/sources/{sourcesId}:testIamPermissions", "httpMethod": "POST", "id": "securitycenter.organizations.sources.testIamPermissions", @@ -913,7 +913,7 @@ } } }, - "revision": "20250103", + "revision": "20250116", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -1589,6 +1589,7 @@ "type": "object" }, "ComplianceSnapshot": { + "deprecated": true, "description": "Result containing the properties and count of a ComplianceSnapshot request.", "id": "ComplianceSnapshot", "properties": { diff --git a/securitycenter/v1beta1/securitycenter-gen.go b/securitycenter/v1beta1/securitycenter-gen.go index 4d6cd6ccb3..eb722df37a 100644 --- a/securitycenter/v1beta1/securitycenter-gen.go +++ b/securitycenter/v1beta1/securitycenter-gen.go @@ -11959,7 +11959,7 @@ type OrganizationsSourcesTestIamPermissionsCall struct { header_ http.Header } -// TestIamPermissions: Returns the permissions that a caller has on the +// TestIamPermissions: Returns the permissions that a caller has on the // specified source. // // - resource: REQUIRED: The resource for which the policy detail is being diff --git a/securitycenter/v1beta2/securitycenter-api.json b/securitycenter/v1beta2/securitycenter-api.json index 42f7e6c8aa..5bd3886d9d 100644 --- a/securitycenter/v1beta2/securitycenter-api.json +++ b/securitycenter/v1beta2/securitycenter-api.json @@ -2003,7 +2003,7 @@ } } }, - "revision": "20250103", + "revision": "20250116", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -2539,6 +2539,7 @@ "type": "object" }, "ComplianceSnapshot": { + "deprecated": true, "description": "Result containing the properties and count of a ComplianceSnapshot request.", "id": "ComplianceSnapshot", "properties": { diff --git a/sqladmin/v1/sqladmin-api.json b/sqladmin/v1/sqladmin-api.json index dadc1657da..49e2314af6 100644 --- a/sqladmin/v1/sqladmin-api.json +++ b/sqladmin/v1/sqladmin-api.json @@ -2366,7 +2366,7 @@ } } }, - "revision": "20241210", + "revision": "20250117", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -5696,19 +5696,22 @@ "SQL_DATA_DISK_TYPE_UNSPECIFIED", "PD_SSD", "PD_HDD", - "OBSOLETE_LOCAL_SSD" + "OBSOLETE_LOCAL_SSD", + "HYPERDISK_BALANCED" ], "enumDeprecated": [ false, false, false, - true + true, + false ], "enumDescriptions": [ "This is an unknown data disk type.", "An SSD data disk.", "An HDD data disk.", - "This field is deprecated and will be removed from a future version of the API." + "This field is deprecated and will be removed from a future version of the API.", + "A Hyperdisk Balanced data disk." ], "type": "string" }, @@ -5794,6 +5797,11 @@ ], "type": "string" }, + "replicationLagMaxSeconds": { + "description": "Optional. Configuration value for recreation of replica after certain replication lag", + "format": "int32", + "type": "integer" + }, "replicationType": { "deprecated": true, "description": "The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances.", diff --git a/sqladmin/v1/sqladmin-gen.go b/sqladmin/v1/sqladmin-gen.go index 9f1a8b626f..df86450d3b 100644 --- a/sqladmin/v1/sqladmin-gen.go +++ b/sqladmin/v1/sqladmin-gen.go @@ -3883,6 +3883,7 @@ type Settings struct { // "PD_HDD" - An HDD data disk. // "OBSOLETE_LOCAL_SSD" - This field is deprecated and will be removed from a // future version of the API. + // "HYPERDISK_BALANCED" - A Hyperdisk Balanced data disk. DataDiskType string `json:"dataDiskType,omitempty"` // DatabaseFlags: The database flags passed to the instance at startup. DatabaseFlags []*DatabaseFlags `json:"databaseFlags,omitempty"` @@ -3941,6 +3942,9 @@ type Settings struct { // "PACKAGE" - The instance is billed at a monthly flat rate. // "PER_USE" - The instance is billed per usage. PricingPlan string `json:"pricingPlan,omitempty"` + // ReplicationLagMaxSeconds: Optional. Configuration value for recreation of + // replica after certain replication lag + ReplicationLagMaxSeconds int64 `json:"replicationLagMaxSeconds,omitempty"` // ReplicationType: The type of replication this instance uses. This can be // either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only // applicable to First Generation instances.