From e830d154266e49757d2c624ab98e8e2065e941dc Mon Sep 17 00:00:00 2001 From: Yoshi Automation Date: Wed, 9 Oct 2024 01:36:04 +0000 Subject: [PATCH] feat(memcache): update the API #### memcache:v1beta2 The following keys were added: - schemas.AssetLocation.description - schemas.AssetLocation.id - schemas.AssetLocation.properties.ccfeRmsPath.description - schemas.AssetLocation.properties.ccfeRmsPath.type - schemas.AssetLocation.properties.expected.$ref - schemas.AssetLocation.properties.expected.description - schemas.AssetLocation.properties.extraParameters.description - schemas.AssetLocation.properties.extraParameters.items.$ref - schemas.AssetLocation.properties.extraParameters.type - schemas.AssetLocation.properties.locationData.description - schemas.AssetLocation.properties.locationData.items.$ref - schemas.AssetLocation.properties.locationData.type - schemas.AssetLocation.properties.parentAsset.description - schemas.AssetLocation.properties.parentAsset.items.$ref - schemas.AssetLocation.properties.parentAsset.type - schemas.AssetLocation.type - schemas.BlobstoreLocation.description - schemas.BlobstoreLocation.id - schemas.BlobstoreLocation.properties.policyId.items.type - schemas.BlobstoreLocation.properties.policyId.type - schemas.BlobstoreLocation.type - schemas.CloudAsset.id - schemas.CloudAsset.properties.assetName.type - schemas.CloudAsset.properties.assetType.type - schemas.CloudAsset.type - schemas.CloudAssetComposition.id - schemas.CloudAssetComposition.properties.childAsset.items.$ref - schemas.CloudAssetComposition.properties.childAsset.type - schemas.CloudAssetComposition.type - schemas.DirectLocationAssignment.id - schemas.DirectLocationAssignment.properties.location.items.$ref - schemas.DirectLocationAssignment.properties.location.type - schemas.DirectLocationAssignment.type - schemas.ExtraParameter.description - schemas.ExtraParameter.id - schemas.ExtraParameter.properties.regionalMigDistributionPolicy.$ref - schemas.ExtraParameter.properties.regionalMigDistributionPolicy.description - schemas.ExtraParameter.type - schemas.IsolationExpectations.id - schemas.IsolationExpectations.properties.requirementOverride.$ref - schemas.IsolationExpectations.properties.requirementOverride.description - schemas.IsolationExpectations.properties.ziOrgPolicy.enum - schemas.IsolationExpectations.properties.ziOrgPolicy.enumDescriptions - schemas.IsolationExpectations.properties.ziOrgPolicy.type - schemas.IsolationExpectations.properties.ziRegionPolicy.enum - schemas.IsolationExpectations.properties.ziRegionPolicy.enumDescriptions - schemas.IsolationExpectations.properties.ziRegionPolicy.type - schemas.IsolationExpectations.properties.ziRegionState.enum - schemas.IsolationExpectations.properties.ziRegionState.enumDescriptions - schemas.IsolationExpectations.properties.ziRegionState.type - schemas.IsolationExpectations.properties.zoneIsolation.deprecated - schemas.IsolationExpectations.properties.zoneIsolation.description - schemas.IsolationExpectations.properties.zoneIsolation.enum - schemas.IsolationExpectations.properties.zoneIsolation.enumDescriptions - schemas.IsolationExpectations.properties.zoneIsolation.type - schemas.IsolationExpectations.properties.zoneSeparation.deprecated - schemas.IsolationExpectations.properties.zoneSeparation.description - schemas.IsolationExpectations.properties.zoneSeparation.enum - schemas.IsolationExpectations.properties.zoneSeparation.enumDescriptions - schemas.IsolationExpectations.properties.zoneSeparation.type - schemas.IsolationExpectations.properties.zsOrgPolicy.enum - schemas.IsolationExpectations.properties.zsOrgPolicy.enumDescriptions - schemas.IsolationExpectations.properties.zsOrgPolicy.type - schemas.IsolationExpectations.properties.zsRegionState.enum - schemas.IsolationExpectations.properties.zsRegionState.enumDescriptions - schemas.IsolationExpectations.properties.zsRegionState.type - schemas.IsolationExpectations.type - schemas.LocationAssignment.id - schemas.LocationAssignment.properties.location.type - schemas.LocationAssignment.properties.locationType.enum - schemas.LocationAssignment.properties.locationType.enumDescriptions - schemas.LocationAssignment.properties.locationType.type - schemas.LocationAssignment.type - schemas.LocationData.id - schemas.LocationData.properties.blobstoreLocation.$ref - schemas.LocationData.properties.childAssetLocation.$ref - schemas.LocationData.properties.directLocation.$ref - schemas.LocationData.properties.gcpProjectProxy.$ref - schemas.LocationData.properties.placerLocation.$ref - schemas.LocationData.properties.spannerLocation.$ref - schemas.LocationData.type - schemas.PlacerLocation.description - schemas.PlacerLocation.id - schemas.PlacerLocation.properties.placerConfig.description - schemas.PlacerLocation.properties.placerConfig.type - schemas.PlacerLocation.type - schemas.RegionalMigDistributionPolicy.description - schemas.RegionalMigDistributionPolicy.id - schemas.RegionalMigDistributionPolicy.properties.targetShape.description - schemas.RegionalMigDistributionPolicy.properties.targetShape.format - schemas.RegionalMigDistributionPolicy.properties.targetShape.type - schemas.RegionalMigDistributionPolicy.properties.zones.description - schemas.RegionalMigDistributionPolicy.properties.zones.items.$ref - schemas.RegionalMigDistributionPolicy.properties.zones.type - schemas.RegionalMigDistributionPolicy.type - schemas.RequirementOverride.id - schemas.RequirementOverride.properties.ziOverride.enum - schemas.RequirementOverride.properties.ziOverride.enumDescriptions - schemas.RequirementOverride.properties.ziOverride.type - schemas.RequirementOverride.properties.zsOverride.enum - schemas.RequirementOverride.properties.zsOverride.enumDescriptions - schemas.RequirementOverride.properties.zsOverride.type - schemas.RequirementOverride.type - schemas.SpannerLocation.id - schemas.SpannerLocation.properties.backupName.description - schemas.SpannerLocation.properties.backupName.items.type - schemas.SpannerLocation.properties.backupName.type - schemas.SpannerLocation.properties.dbName.description - schemas.SpannerLocation.properties.dbName.items.type - schemas.SpannerLocation.properties.dbName.type - schemas.SpannerLocation.type - schemas.TenantProjectProxy.id - schemas.TenantProjectProxy.properties.projectNumbers.items.type - schemas.TenantProjectProxy.properties.projectNumbers.type - schemas.TenantProjectProxy.type - schemas.ZoneConfiguration.id - schemas.ZoneConfiguration.properties.zone.type - schemas.ZoneConfiguration.type #### memcache:v1 The following keys were added: - schemas.AssetLocation.description - schemas.AssetLocation.id - schemas.AssetLocation.properties.ccfeRmsPath.description - schemas.AssetLocation.properties.ccfeRmsPath.type - schemas.AssetLocation.properties.expected.$ref - schemas.AssetLocation.properties.expected.description - schemas.AssetLocation.properties.extraParameters.description - schemas.AssetLocation.properties.extraParameters.items.$ref - schemas.AssetLocation.properties.extraParameters.type - schemas.AssetLocation.properties.locationData.description - schemas.AssetLocation.properties.locationData.items.$ref - schemas.AssetLocation.properties.locationData.type - schemas.AssetLocation.properties.parentAsset.description - schemas.AssetLocation.properties.parentAsset.items.$ref - schemas.AssetLocation.properties.parentAsset.type - schemas.AssetLocation.type - schemas.BlobstoreLocation.description - schemas.BlobstoreLocation.id - schemas.BlobstoreLocation.properties.policyId.items.type - schemas.BlobstoreLocation.properties.policyId.type - schemas.BlobstoreLocation.type - schemas.CloudAsset.id - schemas.CloudAsset.properties.assetName.type - schemas.CloudAsset.properties.assetType.type - schemas.CloudAsset.type - schemas.CloudAssetComposition.id - schemas.CloudAssetComposition.properties.childAsset.items.$ref - schemas.CloudAssetComposition.properties.childAsset.type - schemas.CloudAssetComposition.type - schemas.DirectLocationAssignment.id - schemas.DirectLocationAssignment.properties.location.items.$ref - schemas.DirectLocationAssignment.properties.location.type - schemas.DirectLocationAssignment.type - schemas.ExtraParameter.description - schemas.ExtraParameter.id - schemas.ExtraParameter.properties.regionalMigDistributionPolicy.$ref - schemas.ExtraParameter.properties.regionalMigDistributionPolicy.description - schemas.ExtraParameter.type - schemas.IsolationExpectations.id - schemas.IsolationExpectations.properties.requirementOverride.$ref - schemas.IsolationExpectations.properties.requirementOverride.description - schemas.IsolationExpectations.properties.ziOrgPolicy.enum - schemas.IsolationExpectations.properties.ziOrgPolicy.enumDescriptions - schemas.IsolationExpectations.properties.ziOrgPolicy.type - schemas.IsolationExpectations.properties.ziRegionPolicy.enum - schemas.IsolationExpectations.properties.ziRegionPolicy.enumDescriptions - schemas.IsolationExpectations.properties.ziRegionPolicy.type - schemas.IsolationExpectations.properties.ziRegionState.enum - schemas.IsolationExpectations.properties.ziRegionState.enumDescriptions - schemas.IsolationExpectations.properties.ziRegionState.type - schemas.IsolationExpectations.properties.zoneIsolation.deprecated - schemas.IsolationExpectations.properties.zoneIsolation.description - schemas.IsolationExpectations.properties.zoneIsolation.enum - schemas.IsolationExpectations.properties.zoneIsolation.enumDescriptions - schemas.IsolationExpectations.properties.zoneIsolation.type - schemas.IsolationExpectations.properties.zoneSeparation.deprecated - schemas.IsolationExpectations.properties.zoneSeparation.description - schemas.IsolationExpectations.properties.zoneSeparation.enum - schemas.IsolationExpectations.properties.zoneSeparation.enumDescriptions - schemas.IsolationExpectations.properties.zoneSeparation.type - schemas.IsolationExpectations.properties.zsOrgPolicy.enum - schemas.IsolationExpectations.properties.zsOrgPolicy.enumDescriptions - schemas.IsolationExpectations.properties.zsOrgPolicy.type - schemas.IsolationExpectations.properties.zsRegionState.enum - schemas.IsolationExpectations.properties.zsRegionState.enumDescriptions - schemas.IsolationExpectations.properties.zsRegionState.type - schemas.IsolationExpectations.type - schemas.LocationAssignment.id - schemas.LocationAssignment.properties.location.type - schemas.LocationAssignment.properties.locationType.enum - schemas.LocationAssignment.properties.locationType.enumDescriptions - schemas.LocationAssignment.properties.locationType.type - schemas.LocationAssignment.type - schemas.LocationData.id - schemas.LocationData.properties.blobstoreLocation.$ref - schemas.LocationData.properties.childAssetLocation.$ref - schemas.LocationData.properties.directLocation.$ref - schemas.LocationData.properties.gcpProjectProxy.$ref - schemas.LocationData.properties.placerLocation.$ref - schemas.LocationData.properties.spannerLocation.$ref - schemas.LocationData.type - schemas.PlacerLocation.description - schemas.PlacerLocation.id - schemas.PlacerLocation.properties.placerConfig.description - schemas.PlacerLocation.properties.placerConfig.type - schemas.PlacerLocation.type - schemas.RegionalMigDistributionPolicy.description - schemas.RegionalMigDistributionPolicy.id - schemas.RegionalMigDistributionPolicy.properties.targetShape.description - schemas.RegionalMigDistributionPolicy.properties.targetShape.format - schemas.RegionalMigDistributionPolicy.properties.targetShape.type - schemas.RegionalMigDistributionPolicy.properties.zones.description - schemas.RegionalMigDistributionPolicy.properties.zones.items.$ref - schemas.RegionalMigDistributionPolicy.properties.zones.type - schemas.RegionalMigDistributionPolicy.type - schemas.RequirementOverride.id - schemas.RequirementOverride.properties.ziOverride.enum - schemas.RequirementOverride.properties.ziOverride.enumDescriptions - schemas.RequirementOverride.properties.ziOverride.type - schemas.RequirementOverride.properties.zsOverride.enum - schemas.RequirementOverride.properties.zsOverride.enumDescriptions - schemas.RequirementOverride.properties.zsOverride.type - schemas.RequirementOverride.type - schemas.SpannerLocation.id - schemas.SpannerLocation.properties.backupName.description - schemas.SpannerLocation.properties.backupName.items.type - schemas.SpannerLocation.properties.backupName.type - schemas.SpannerLocation.properties.dbName.description - schemas.SpannerLocation.properties.dbName.items.type - schemas.SpannerLocation.properties.dbName.type - schemas.SpannerLocation.type - schemas.TenantProjectProxy.id - schemas.TenantProjectProxy.properties.projectNumbers.items.type - schemas.TenantProjectProxy.properties.projectNumbers.type - schemas.TenantProjectProxy.type - schemas.ZoneConfiguration.id - schemas.ZoneConfiguration.properties.zone.type - schemas.ZoneConfiguration.type --- discovery/memcache-v1.json | 390 +++++++++++++++++++++++++++++++- discovery/memcache-v1beta2.json | 390 +++++++++++++++++++++++++++++++- src/apis/memcache/v1.ts | 123 ++++++++++ src/apis/memcache/v1beta2.ts | 123 ++++++++++ 4 files changed, 1024 insertions(+), 2 deletions(-) diff --git a/discovery/memcache-v1.json b/discovery/memcache-v1.json index b9e0eca5a2..c9e6a241e0 100644 --- a/discovery/memcache-v1.json +++ b/discovery/memcache-v1.json @@ -584,7 +584,7 @@ } } }, - "revision": "20240614", + "revision": "20240919", "rootUrl": "https://memcache.googleapis.com/", "schemas": { "ApplyParametersRequest": { @@ -605,12 +605,85 @@ }, "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" + }, + "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" + }, "DailyCycle": { "description": "Time window specified for daily operations.", "id": "DailyCycle", @@ -668,12 +741,35 @@ }, "type": "object" }, + "DirectLocationAssignment": { + "id": "DirectLocationAssignment", + "properties": { + "location": { + "items": { + "$ref": "LocationAssignment" + }, + "type": "array" + } + }, + "type": "object" + }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "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" + }, "GoogleCloudMemcacheV1LocationMetadata": { "description": "Metadata for the given google.cloud.location.Location.", "id": "GoogleCloudMemcacheV1LocationMetadata", @@ -1232,6 +1328,131 @@ }, "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" + }, "ListInstancesResponse": { "description": "Response for ListInstances.", "id": "ListInstancesResponse", @@ -1327,6 +1548,64 @@ }, "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" + }, "LocationMetadata": { "description": "Metadata for the given google.cloud.location.Location.", "id": "LocationMetadata", @@ -1616,6 +1895,74 @@ }, "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" + }, + "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" + }, "RescheduleMaintenanceRequest": { "description": "Request for RescheduleMaintenance.", "id": "RescheduleMaintenanceRequest", @@ -1684,6 +2031,26 @@ }, "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", @@ -1711,6 +2078,18 @@ }, "type": "object" }, + "TenantProjectProxy": { + "id": "TenantProjectProxy", + "properties": { + "projectNumbers": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "TimeOfDay": { "description": "Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.", "id": "TimeOfDay", @@ -1846,6 +2225,15 @@ }, "type": "object" }, + "ZoneConfiguration": { + "id": "ZoneConfiguration", + "properties": { + "zone": { + "type": "string" + } + }, + "type": "object" + }, "ZoneMetadata": { "id": "ZoneMetadata", "properties": {}, diff --git a/discovery/memcache-v1beta2.json b/discovery/memcache-v1beta2.json index 00e8f9962a..b79d6866b7 100644 --- a/discovery/memcache-v1beta2.json +++ b/discovery/memcache-v1beta2.json @@ -612,7 +612,7 @@ } } }, - "revision": "20240614", + "revision": "20240919", "rootUrl": "https://memcache.googleapis.com/", "schemas": { "ApplyParametersRequest": { @@ -651,12 +651,85 @@ }, "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" + }, + "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" + }, "DailyCycle": { "description": "Time window specified for daily operations.", "id": "DailyCycle", @@ -714,12 +787,35 @@ }, "type": "object" }, + "DirectLocationAssignment": { + "id": "DirectLocationAssignment", + "properties": { + "location": { + "items": { + "$ref": "LocationAssignment" + }, + "type": "array" + } + }, + "type": "object" + }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", "properties": {}, "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" + }, "GoogleCloudMemcacheV1beta2LocationMetadata": { "description": "Metadata for the given google.cloud.location.Location.", "id": "GoogleCloudMemcacheV1beta2LocationMetadata", @@ -1283,6 +1379,131 @@ }, "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" + }, "ListInstancesResponse": { "description": "Response for ListInstances.", "id": "ListInstancesResponse", @@ -1378,6 +1599,64 @@ }, "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" + }, "LocationMetadata": { "description": "Metadata for the given google.cloud.location.Location.", "id": "LocationMetadata", @@ -1672,6 +1951,74 @@ }, "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" + }, + "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" + }, "RescheduleMaintenanceRequest": { "description": "Request for RescheduleMaintenance.", "id": "RescheduleMaintenanceRequest", @@ -1740,6 +2087,26 @@ }, "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", @@ -1767,6 +2134,18 @@ }, "type": "object" }, + "TenantProjectProxy": { + "id": "TenantProjectProxy", + "properties": { + "projectNumbers": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "TimeOfDay": { "description": "Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`.", "id": "TimeOfDay", @@ -1902,6 +2281,15 @@ }, "type": "object" }, + "ZoneConfiguration": { + "id": "ZoneConfiguration", + "properties": { + "zone": { + "type": "string" + } + }, + "type": "object" + }, "ZoneMetadata": { "id": "ZoneMetadata", "properties": {}, diff --git a/src/apis/memcache/v1.ts b/src/apis/memcache/v1.ts index aae9d8253e..fa92be2faf 100644 --- a/src/apis/memcache/v1.ts +++ b/src/apis/memcache/v1.ts @@ -137,10 +137,48 @@ export namespace memcache_v1 { */ nodeIds?: string[] | null; } + /** + * Provides the mapping of a cloud asset to a direct physical location or to a proxy that defines the location on its behalf. + */ + export interface Schema$AssetLocation { + /** + * Spanner path of the CCFE RMS database. It is only applicable for CCFE tenants that use CCFE RMS for storing resource metadata. + */ + ccfeRmsPath?: string | null; + /** + * Defines the customer expectation around ZI/ZS for this asset and ZI/ZS state of the region at the time of asset creation. + */ + expected?: Schema$IsolationExpectations; + /** + * Defines extra parameters required for specific asset types. + */ + extraParameters?: Schema$ExtraParameter[]; + /** + * Contains all kinds of physical location definitions for this asset. + */ + locationData?: Schema$LocationData[]; + /** + * Defines parents assets if any in order to allow later generation of child_asset_location data via child assets. + */ + parentAsset?: Schema$CloudAsset[]; + } + /** + * Policy ID that identified data placement in Blobstore as per go/blobstore-user-guide#data-metadata-placement-and-failure-domains + */ + export interface Schema$BlobstoreLocation { + policyId?: string[] | null; + } /** * The request message for Operations.CancelOperation. */ export interface Schema$CancelOperationRequest {} + export interface Schema$CloudAsset { + assetName?: string | null; + assetType?: string | null; + } + export interface Schema$CloudAssetComposition { + childAsset?: Schema$CloudAsset[]; + } /** * Time window specified for daily operations. */ @@ -188,10 +226,22 @@ export namespace memcache_v1 { */ time?: Schema$TimeOfDay; } + export interface Schema$DirectLocationAssignment { + location?: Schema$LocationAssignment[]; + } /** * A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} */ export interface Schema$Empty {} + /** + * Defines parameters that should only be used for specific asset types. + */ + export interface Schema$ExtraParameter { + /** + * Details about zones used by regional compute.googleapis.com/InstanceGroupManager to create instances. + */ + regionalMigDistributionPolicy?: Schema$RegionalMigDistributionPolicy; + } /** * Metadata for the given google.cloud.location.Location. */ @@ -571,6 +621,25 @@ export namespace memcache_v1 { */ message?: string | null; } + export interface Schema$IsolationExpectations { + /** + * Explicit overrides for ZI and ZS requirements to be used for resources that should be excluded from ZI/ZS verification logic. + */ + requirementOverride?: Schema$RequirementOverride; + ziOrgPolicy?: string | null; + ziRegionPolicy?: string | null; + ziRegionState?: string | null; + /** + * Deprecated: use zi_org_policy, zi_region_policy and zi_region_state instead for setting ZI expectations as per go/zicy-publish-physical-location. + */ + zoneIsolation?: string | null; + /** + * Deprecated: use zs_org_policy, and zs_region_stateinstead for setting Zs expectations as per go/zicy-publish-physical-location. + */ + zoneSeparation?: string | null; + zsOrgPolicy?: string | null; + zsRegionState?: string | null; + } /** * Response for ListInstances. */ @@ -639,6 +708,18 @@ export namespace memcache_v1 { */ name?: string | null; } + export interface Schema$LocationAssignment { + location?: string | null; + locationType?: string | null; + } + export interface Schema$LocationData { + blobstoreLocation?: Schema$BlobstoreLocation; + childAssetLocation?: Schema$CloudAssetComposition; + directLocation?: Schema$DirectLocationAssignment; + gcpProjectProxy?: Schema$TenantProjectProxy; + placerLocation?: Schema$PlacerLocation; + spannerLocation?: Schema$SpannerLocation; + } /** * Metadata for the given google.cloud.location.Location. */ @@ -826,6 +907,32 @@ export namespace memcache_v1 { */ verb?: string | null; } + /** + * Message describing that the location of the customer resource is tied to placer allocations + */ + export interface Schema$PlacerLocation { + /** + * Directory with a config related to it in placer (e.g. "/placer/prod/home/my-root/my-dir") + */ + placerConfig?: string | null; + } + /** + * To be used for specifying the intended distribution of regional compute.googleapis.com/InstanceGroupManager instances + */ + export interface Schema$RegionalMigDistributionPolicy { + /** + * The shape in which the group converges around distribution of resources. Instance of proto2 enum + */ + targetShape?: number | null; + /** + * Cloud zones used by regional MIG to create instances. + */ + zones?: Schema$ZoneConfiguration[]; + } + export interface Schema$RequirementOverride { + ziOverride?: string | null; + zsOverride?: string | null; + } /** * Request for RescheduleMaintenance. */ @@ -856,6 +963,16 @@ export namespace memcache_v1 { */ startTime?: Schema$TimeOfDay; } + export interface Schema$SpannerLocation { + /** + * 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[] | null; + /** + * Set of databases used by the resource in format /span// + */ + dbName?: string[] | null; + } /** * 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). */ @@ -873,6 +990,9 @@ export namespace memcache_v1 { */ message?: string | null; } + export interface Schema$TenantProjectProxy { + projectNumbers?: string[] | null; + } /** * Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. */ @@ -950,6 +1070,9 @@ export namespace memcache_v1 { */ startTime?: Schema$TimeOfDay; } + export interface Schema$ZoneConfiguration { + zone?: string | null; + } export interface Schema$ZoneMetadata {} export class Resource$Projects { diff --git a/src/apis/memcache/v1beta2.ts b/src/apis/memcache/v1beta2.ts index 31da3d863b..6830cf57e9 100644 --- a/src/apis/memcache/v1beta2.ts +++ b/src/apis/memcache/v1beta2.ts @@ -150,10 +150,48 @@ export namespace memcache_v1beta2 { */ nodeIds?: string[] | null; } + /** + * Provides the mapping of a cloud asset to a direct physical location or to a proxy that defines the location on its behalf. + */ + export interface Schema$AssetLocation { + /** + * Spanner path of the CCFE RMS database. It is only applicable for CCFE tenants that use CCFE RMS for storing resource metadata. + */ + ccfeRmsPath?: string | null; + /** + * Defines the customer expectation around ZI/ZS for this asset and ZI/ZS state of the region at the time of asset creation. + */ + expected?: Schema$IsolationExpectations; + /** + * Defines extra parameters required for specific asset types. + */ + extraParameters?: Schema$ExtraParameter[]; + /** + * Contains all kinds of physical location definitions for this asset. + */ + locationData?: Schema$LocationData[]; + /** + * Defines parents assets if any in order to allow later generation of child_asset_location data via child assets. + */ + parentAsset?: Schema$CloudAsset[]; + } + /** + * Policy ID that identified data placement in Blobstore as per go/blobstore-user-guide#data-metadata-placement-and-failure-domains + */ + export interface Schema$BlobstoreLocation { + policyId?: string[] | null; + } /** * The request message for Operations.CancelOperation. */ export interface Schema$CancelOperationRequest {} + export interface Schema$CloudAsset { + assetName?: string | null; + assetType?: string | null; + } + export interface Schema$CloudAssetComposition { + childAsset?: Schema$CloudAsset[]; + } /** * Time window specified for daily operations. */ @@ -201,10 +239,22 @@ export namespace memcache_v1beta2 { */ time?: Schema$TimeOfDay; } + export interface Schema$DirectLocationAssignment { + location?: Schema$LocationAssignment[]; + } /** * A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} */ export interface Schema$Empty {} + /** + * Defines parameters that should only be used for specific asset types. + */ + export interface Schema$ExtraParameter { + /** + * Details about zones used by regional compute.googleapis.com/InstanceGroupManager to create instances. + */ + regionalMigDistributionPolicy?: Schema$RegionalMigDistributionPolicy; + } /** * Metadata for the given google.cloud.location.Location. */ @@ -588,6 +638,25 @@ export namespace memcache_v1beta2 { */ message?: string | null; } + export interface Schema$IsolationExpectations { + /** + * Explicit overrides for ZI and ZS requirements to be used for resources that should be excluded from ZI/ZS verification logic. + */ + requirementOverride?: Schema$RequirementOverride; + ziOrgPolicy?: string | null; + ziRegionPolicy?: string | null; + ziRegionState?: string | null; + /** + * Deprecated: use zi_org_policy, zi_region_policy and zi_region_state instead for setting ZI expectations as per go/zicy-publish-physical-location. + */ + zoneIsolation?: string | null; + /** + * Deprecated: use zs_org_policy, and zs_region_stateinstead for setting Zs expectations as per go/zicy-publish-physical-location. + */ + zoneSeparation?: string | null; + zsOrgPolicy?: string | null; + zsRegionState?: string | null; + } /** * Response for ListInstances. */ @@ -656,6 +725,18 @@ export namespace memcache_v1beta2 { */ name?: string | null; } + export interface Schema$LocationAssignment { + location?: string | null; + locationType?: string | null; + } + export interface Schema$LocationData { + blobstoreLocation?: Schema$BlobstoreLocation; + childAssetLocation?: Schema$CloudAssetComposition; + directLocation?: Schema$DirectLocationAssignment; + gcpProjectProxy?: Schema$TenantProjectProxy; + placerLocation?: Schema$PlacerLocation; + spannerLocation?: Schema$SpannerLocation; + } /** * Metadata for the given google.cloud.location.Location. */ @@ -847,6 +928,32 @@ export namespace memcache_v1beta2 { */ verb?: string | null; } + /** + * Message describing that the location of the customer resource is tied to placer allocations + */ + export interface Schema$PlacerLocation { + /** + * Directory with a config related to it in placer (e.g. "/placer/prod/home/my-root/my-dir") + */ + placerConfig?: string | null; + } + /** + * To be used for specifying the intended distribution of regional compute.googleapis.com/InstanceGroupManager instances + */ + export interface Schema$RegionalMigDistributionPolicy { + /** + * The shape in which the group converges around distribution of resources. Instance of proto2 enum + */ + targetShape?: number | null; + /** + * Cloud zones used by regional MIG to create instances. + */ + zones?: Schema$ZoneConfiguration[]; + } + export interface Schema$RequirementOverride { + ziOverride?: string | null; + zsOverride?: string | null; + } /** * Request for RescheduleMaintenance. */ @@ -877,6 +984,16 @@ export namespace memcache_v1beta2 { */ startTime?: Schema$TimeOfDay; } + export interface Schema$SpannerLocation { + /** + * 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[] | null; + /** + * Set of databases used by the resource in format /span// + */ + dbName?: string[] | null; + } /** * 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). */ @@ -894,6 +1011,9 @@ export namespace memcache_v1beta2 { */ message?: string | null; } + export interface Schema$TenantProjectProxy { + projectNumbers?: string[] | null; + } /** * Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and `google.protobuf.Timestamp`. */ @@ -971,6 +1091,9 @@ export namespace memcache_v1beta2 { */ startTime?: Schema$TimeOfDay; } + export interface Schema$ZoneConfiguration { + zone?: string | null; + } export interface Schema$ZoneMetadata {} export class Resource$Projects {