diff --git a/alloydb/v1/alloydb-api.json b/alloydb/v1/alloydb-api.json index 16ea8f28f96..50786099c31 100644 --- a/alloydb/v1/alloydb-api.json +++ b/alloydb/v1/alloydb-api.json @@ -1489,7 +1489,7 @@ } } }, - "revision": "20231011", + "revision": "20231025", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AutomatedBackupPolicy": { @@ -2129,6 +2129,10 @@ "requestId": { "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", "type": "string" + }, + "useMetadataExchange": { + "description": "Optional. An optional hint to the endpoint to generate a client ceritificate that can be used by AlloyDB connectors to exchange additional metadata with the server after TLS handshake.", + "type": "boolean" } }, "type": "object" @@ -3200,6 +3204,8 @@ "description": "Required. Type of signal, for example, `AVAILABLE_IN_MULTIPLE_ZONES`, `LOGGING_MOST_ERRORS`, etc.", "enum": [ "SIGNAL_TYPE_UNSPECIFIED", + "SIGNAL_TYPE_NOT_PROTECTED_BY_AUTOMATIC_FAILOVER", + "SIGNAL_TYPE_GROUP_NOT_REPLICATING_ACROSS_REGIONS", "SIGNAL_TYPE_NOT_AVAILABLE_IN_MULTIPLE_ZONES", "SIGNAL_TYPE_NOT_AVAILABLE_IN_MULTIPLE_REGIONS", "SIGNAL_TYPE_NO_PROMOTABLE_REPLICA", @@ -3245,10 +3251,65 @@ "SIGNAL_TYPE_LOGGING_EXCESSIVE_STATEMENT_INFO", "SIGNAL_TYPE_EXPOSED_TO_REMOTE_ACCESS", "SIGNAL_TYPE_DATABASE_NAMES_EXPOSED", - "SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED" + "SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED", + "SIGNAL_TYPE_PUBLIC_IP_ENABLED" + ], + "enumDeprecated": [ + false, + false, + false, + true, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false ], "enumDescriptions": [ "Unspecified.", + "Represents if a resource is protected by automatic failover. Checks for resources that are configured to have redundancy within a region that enables automatic failover.", + "Represents if a group is replicating across regions. Checks for resources that are configured to have redundancy, and ongoing replication, across regions.", "Represents if the resource is available in multiple zones or not.", "Represents if a resource is available in multiple regions.", "Represents if a resource has a promotable replica.", @@ -3294,7 +3355,8 @@ "Represents if the log_min_duration_statement database flag for a Cloud SQL for PostgreSQL instance is not set to -1.", "Represents if the remote access database flag for a Cloud SQL for SQL Server instance is not set to off.", "Represents if the skip_show_database database flag for a Cloud SQL for MySQL instance is not set to on.", - "Represents if the 3625 (trace flag) database flag for a Cloud SQL for SQL Server instance is not set to on. LINT.ThenChange(//depot/google3/storage/databasecenter/ingestion/borgjob/message_adapter/health_signal_feed/health_signal_mapping.h)" + "Represents if the 3625 (trace flag) database flag for a Cloud SQL for SQL Server instance is not set to on.", + "Represents if public IP is enabled. LINT.ThenChange(//depot/google3/storage/databasecenter/ingestion/borgjob/message_adapter/health_signal_feed/health_signal_mapping.h)" ], "type": "string" }, diff --git a/alloydb/v1/alloydb-gen.go b/alloydb/v1/alloydb-gen.go index f91f6c7a4ca..2a4c3e09d89 100644 --- a/alloydb/v1/alloydb-gen.go +++ b/alloydb/v1/alloydb-gen.go @@ -1082,6 +1082,11 @@ type GenerateClientCertificateRequest struct { // (00000000-0000-0000-0000-000000000000). RequestId string `json:"requestId,omitempty"` + // UseMetadataExchange: Optional. An optional hint to the endpoint to + // generate a client ceritificate that can be used by AlloyDB connectors + // to exchange additional metadata with the server after TLS handshake. + UseMetadataExchange bool `json:"useMetadataExchange,omitempty"` + // ForceSendFields is a list of field names (e.g. "CertDuration") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -2792,6 +2797,14 @@ type StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData struc // // Possible values: // "SIGNAL_TYPE_UNSPECIFIED" - Unspecified. + // "SIGNAL_TYPE_NOT_PROTECTED_BY_AUTOMATIC_FAILOVER" - Represents if a + // resource is protected by automatic failover. Checks for resources + // that are configured to have redundancy within a region that enables + // automatic failover. + // "SIGNAL_TYPE_GROUP_NOT_REPLICATING_ACROSS_REGIONS" - Represents if + // a group is replicating across regions. Checks for resources that are + // configured to have redundancy, and ongoing replication, across + // regions. // "SIGNAL_TYPE_NOT_AVAILABLE_IN_MULTIPLE_ZONES" - Represents if the // resource is available in multiple zones or not. // "SIGNAL_TYPE_NOT_AVAILABLE_IN_MULTIPLE_REGIONS" - Represents if a @@ -2911,6 +2924,8 @@ type StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData struc // "SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED" - Represents if the // 3625 (trace flag) database flag for a Cloud SQL for SQL Server // instance is not set to on. + // "SIGNAL_TYPE_PUBLIC_IP_ENABLED" - Represents if public IP is + // enabled. // LINT.ThenChange(//depot/google3/storage/databasecenter/ingestion/borgj // ob/message_adapter/health_signal_feed/health_signal_mapping.h) SignalType string `json:"signalType,omitempty"` diff --git a/alloydb/v1alpha/alloydb-api.json b/alloydb/v1alpha/alloydb-api.json index da0ecb53f0e..3170231d1a1 100644 --- a/alloydb/v1alpha/alloydb-api.json +++ b/alloydb/v1alpha/alloydb-api.json @@ -1489,7 +1489,7 @@ } } }, - "revision": "20231011", + "revision": "20231025", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AutomatedBackupPolicy": { @@ -3249,6 +3249,8 @@ "description": "Required. Type of signal, for example, `AVAILABLE_IN_MULTIPLE_ZONES`, `LOGGING_MOST_ERRORS`, etc.", "enum": [ "SIGNAL_TYPE_UNSPECIFIED", + "SIGNAL_TYPE_NOT_PROTECTED_BY_AUTOMATIC_FAILOVER", + "SIGNAL_TYPE_GROUP_NOT_REPLICATING_ACROSS_REGIONS", "SIGNAL_TYPE_NOT_AVAILABLE_IN_MULTIPLE_ZONES", "SIGNAL_TYPE_NOT_AVAILABLE_IN_MULTIPLE_REGIONS", "SIGNAL_TYPE_NO_PROMOTABLE_REPLICA", @@ -3294,10 +3296,65 @@ "SIGNAL_TYPE_LOGGING_EXCESSIVE_STATEMENT_INFO", "SIGNAL_TYPE_EXPOSED_TO_REMOTE_ACCESS", "SIGNAL_TYPE_DATABASE_NAMES_EXPOSED", - "SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED" + "SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED", + "SIGNAL_TYPE_PUBLIC_IP_ENABLED" + ], + "enumDeprecated": [ + false, + false, + false, + true, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false ], "enumDescriptions": [ "Unspecified.", + "Represents if a resource is protected by automatic failover. Checks for resources that are configured to have redundancy within a region that enables automatic failover.", + "Represents if a group is replicating across regions. Checks for resources that are configured to have redundancy, and ongoing replication, across regions.", "Represents if the resource is available in multiple zones or not.", "Represents if a resource is available in multiple regions.", "Represents if a resource has a promotable replica.", @@ -3343,7 +3400,8 @@ "Represents if the log_min_duration_statement database flag for a Cloud SQL for PostgreSQL instance is not set to -1.", "Represents if the remote access database flag for a Cloud SQL for SQL Server instance is not set to off.", "Represents if the skip_show_database database flag for a Cloud SQL for MySQL instance is not set to on.", - "Represents if the 3625 (trace flag) database flag for a Cloud SQL for SQL Server instance is not set to on. LINT.ThenChange(//depot/google3/storage/databasecenter/ingestion/borgjob/message_adapter/health_signal_feed/health_signal_mapping.h)" + "Represents if the 3625 (trace flag) database flag for a Cloud SQL for SQL Server instance is not set to on.", + "Represents if public IP is enabled. LINT.ThenChange(//depot/google3/storage/databasecenter/ingestion/borgjob/message_adapter/health_signal_feed/health_signal_mapping.h)" ], "type": "string" }, diff --git a/alloydb/v1alpha/alloydb-gen.go b/alloydb/v1alpha/alloydb-gen.go index edc9c58e654..0ebd803b75c 100644 --- a/alloydb/v1alpha/alloydb-gen.go +++ b/alloydb/v1alpha/alloydb-gen.go @@ -2827,6 +2827,14 @@ type StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData struc // // Possible values: // "SIGNAL_TYPE_UNSPECIFIED" - Unspecified. + // "SIGNAL_TYPE_NOT_PROTECTED_BY_AUTOMATIC_FAILOVER" - Represents if a + // resource is protected by automatic failover. Checks for resources + // that are configured to have redundancy within a region that enables + // automatic failover. + // "SIGNAL_TYPE_GROUP_NOT_REPLICATING_ACROSS_REGIONS" - Represents if + // a group is replicating across regions. Checks for resources that are + // configured to have redundancy, and ongoing replication, across + // regions. // "SIGNAL_TYPE_NOT_AVAILABLE_IN_MULTIPLE_ZONES" - Represents if the // resource is available in multiple zones or not. // "SIGNAL_TYPE_NOT_AVAILABLE_IN_MULTIPLE_REGIONS" - Represents if a @@ -2946,6 +2954,8 @@ type StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData struc // "SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED" - Represents if the // 3625 (trace flag) database flag for a Cloud SQL for SQL Server // instance is not set to on. + // "SIGNAL_TYPE_PUBLIC_IP_ENABLED" - Represents if public IP is + // enabled. // LINT.ThenChange(//depot/google3/storage/databasecenter/ingestion/borgj // ob/message_adapter/health_signal_feed/health_signal_mapping.h) SignalType string `json:"signalType,omitempty"` diff --git a/alloydb/v1beta/alloydb-api.json b/alloydb/v1beta/alloydb-api.json index 53b781ba752..ccd7ab6f855 100644 --- a/alloydb/v1beta/alloydb-api.json +++ b/alloydb/v1beta/alloydb-api.json @@ -1486,7 +1486,7 @@ } } }, - "revision": "20231011", + "revision": "20231025", "rootUrl": "https://alloydb.googleapis.com/", "schemas": { "AutomatedBackupPolicy": { @@ -3225,6 +3225,8 @@ "description": "Required. Type of signal, for example, `AVAILABLE_IN_MULTIPLE_ZONES`, `LOGGING_MOST_ERRORS`, etc.", "enum": [ "SIGNAL_TYPE_UNSPECIFIED", + "SIGNAL_TYPE_NOT_PROTECTED_BY_AUTOMATIC_FAILOVER", + "SIGNAL_TYPE_GROUP_NOT_REPLICATING_ACROSS_REGIONS", "SIGNAL_TYPE_NOT_AVAILABLE_IN_MULTIPLE_ZONES", "SIGNAL_TYPE_NOT_AVAILABLE_IN_MULTIPLE_REGIONS", "SIGNAL_TYPE_NO_PROMOTABLE_REPLICA", @@ -3270,10 +3272,65 @@ "SIGNAL_TYPE_LOGGING_EXCESSIVE_STATEMENT_INFO", "SIGNAL_TYPE_EXPOSED_TO_REMOTE_ACCESS", "SIGNAL_TYPE_DATABASE_NAMES_EXPOSED", - "SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED" + "SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED", + "SIGNAL_TYPE_PUBLIC_IP_ENABLED" + ], + "enumDeprecated": [ + false, + false, + false, + true, + true, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false ], "enumDescriptions": [ "Unspecified.", + "Represents if a resource is protected by automatic failover. Checks for resources that are configured to have redundancy within a region that enables automatic failover.", + "Represents if a group is replicating across regions. Checks for resources that are configured to have redundancy, and ongoing replication, across regions.", "Represents if the resource is available in multiple zones or not.", "Represents if a resource is available in multiple regions.", "Represents if a resource has a promotable replica.", @@ -3319,7 +3376,8 @@ "Represents if the log_min_duration_statement database flag for a Cloud SQL for PostgreSQL instance is not set to -1.", "Represents if the remote access database flag for a Cloud SQL for SQL Server instance is not set to off.", "Represents if the skip_show_database database flag for a Cloud SQL for MySQL instance is not set to on.", - "Represents if the 3625 (trace flag) database flag for a Cloud SQL for SQL Server instance is not set to on. LINT.ThenChange(//depot/google3/storage/databasecenter/ingestion/borgjob/message_adapter/health_signal_feed/health_signal_mapping.h)" + "Represents if the 3625 (trace flag) database flag for a Cloud SQL for SQL Server instance is not set to on.", + "Represents if public IP is enabled. LINT.ThenChange(//depot/google3/storage/databasecenter/ingestion/borgjob/message_adapter/health_signal_feed/health_signal_mapping.h)" ], "type": "string" }, diff --git a/alloydb/v1beta/alloydb-gen.go b/alloydb/v1beta/alloydb-gen.go index 86ac19a64f8..e5bea1bf853 100644 --- a/alloydb/v1beta/alloydb-gen.go +++ b/alloydb/v1beta/alloydb-gen.go @@ -2813,6 +2813,14 @@ type StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData struc // // Possible values: // "SIGNAL_TYPE_UNSPECIFIED" - Unspecified. + // "SIGNAL_TYPE_NOT_PROTECTED_BY_AUTOMATIC_FAILOVER" - Represents if a + // resource is protected by automatic failover. Checks for resources + // that are configured to have redundancy within a region that enables + // automatic failover. + // "SIGNAL_TYPE_GROUP_NOT_REPLICATING_ACROSS_REGIONS" - Represents if + // a group is replicating across regions. Checks for resources that are + // configured to have redundancy, and ongoing replication, across + // regions. // "SIGNAL_TYPE_NOT_AVAILABLE_IN_MULTIPLE_ZONES" - Represents if the // resource is available in multiple zones or not. // "SIGNAL_TYPE_NOT_AVAILABLE_IN_MULTIPLE_REGIONS" - Represents if a @@ -2932,6 +2940,8 @@ type StorageDatabasecenterPartnerapiV1mainDatabaseResourceHealthSignalData struc // "SIGNAL_TYPE_SENSITIVE_TRACE_INFO_NOT_MASKED" - Represents if the // 3625 (trace flag) database flag for a Cloud SQL for SQL Server // instance is not set to on. + // "SIGNAL_TYPE_PUBLIC_IP_ENABLED" - Represents if public IP is + // enabled. // LINT.ThenChange(//depot/google3/storage/databasecenter/ingestion/borgj // ob/message_adapter/health_signal_feed/health_signal_mapping.h) SignalType string `json:"signalType,omitempty"` diff --git a/artifactregistry/v1/artifactregistry-api.json b/artifactregistry/v1/artifactregistry-api.json index 5068f79060d..c94fbb7c69e 100644 --- a/artifactregistry/v1/artifactregistry-api.json +++ b/artifactregistry/v1/artifactregistry-api.json @@ -551,7 +551,7 @@ ], "parameters": { "name": { - "description": "The name of the repository, for example: \"projects/p1/locations/us-central1/repositories/repo1\".", + "description": "The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", "required": true, @@ -1713,7 +1713,7 @@ } } }, - "revision": "20231018", + "revision": "20231102", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "AptArtifact": { @@ -3113,7 +3113,7 @@ "type": "string" }, "name": { - "description": "The name of the repository, for example: \"projects/p1/locations/us-central1/repositories/repo1\".", + "description": "The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`.", "type": "string" }, "remoteRepositoryConfig": { @@ -3419,7 +3419,7 @@ "type": "integer" }, "repository": { - "description": "A reference to the repository resource, for example: \"projects/p1/locations/us-central1/repositories/repo1\".", + "description": "A reference to the repository resource, for example: `projects/p1/locations/us-central1/repositories/repo1`.", "type": "string" } }, diff --git a/artifactregistry/v1/artifactregistry-gen.go b/artifactregistry/v1/artifactregistry-gen.go index b6576b3dfbd..368d10ecc00 100644 --- a/artifactregistry/v1/artifactregistry-gen.go +++ b/artifactregistry/v1/artifactregistry-gen.go @@ -2726,7 +2726,7 @@ type Repository struct { Mode string `json:"mode,omitempty"` // Name: The name of the repository, for example: - // "projects/p1/locations/us-central1/repositories/repo1". + // `projects/p1/locations/us-central1/repositories/repo1`. Name string `json:"name,omitempty"` // RemoteRepositoryConfig: Configuration specific for a Remote @@ -3328,7 +3328,7 @@ type UpstreamPolicy struct { Priority int64 `json:"priority,omitempty"` // Repository: A reference to the repository resource, for example: - // "projects/p1/locations/us-central1/repositories/repo1". + // `projects/p1/locations/us-central1/repositories/repo1`. Repository string `json:"repository,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to @@ -5536,7 +5536,7 @@ type ProjectsLocationsRepositoriesPatchCall struct { // Patch: Updates a repository. // // - name: The name of the repository, for example: -// "projects/p1/locations/us-central1/repositories/repo1". +// `projects/p1/locations/us-central1/repositories/repo1`. func (r *ProjectsLocationsRepositoriesService) Patch(name string, repository *Repository) *ProjectsLocationsRepositoriesPatchCall { c := &ProjectsLocationsRepositoriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -5652,7 +5652,7 @@ func (c *ProjectsLocationsRepositoriesPatchCall) Do(opts ...googleapi.CallOption // ], // "parameters": { // "name": { - // "description": "The name of the repository, for example: \"projects/p1/locations/us-central1/repositories/repo1\".", + // "description": "The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", // "required": true, diff --git a/artifactregistry/v1beta1/artifactregistry-api.json b/artifactregistry/v1beta1/artifactregistry-api.json index 62951b62c01..1b38832285a 100644 --- a/artifactregistry/v1beta1/artifactregistry-api.json +++ b/artifactregistry/v1beta1/artifactregistry-api.json @@ -429,7 +429,7 @@ ], "parameters": { "name": { - "description": "The name of the repository, for example: \"projects/p1/locations/us-central1/repositories/repo1\".", + "description": "The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", "required": true, @@ -981,7 +981,7 @@ } } }, - "revision": "20231002", + "revision": "20231102", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "Binding": { @@ -1376,7 +1376,7 @@ "type": "object" }, "name": { - "description": "The name of the repository, for example: \"projects/p1/locations/us-central1/repositories/repo1\".", + "description": "The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`.", "type": "string" }, "satisfiesPzs": { diff --git a/artifactregistry/v1beta1/artifactregistry-gen.go b/artifactregistry/v1beta1/artifactregistry-gen.go index 214c9beb253..9bcb45b375a 100644 --- a/artifactregistry/v1beta1/artifactregistry-gen.go +++ b/artifactregistry/v1beta1/artifactregistry-gen.go @@ -1008,7 +1008,7 @@ type Repository struct { Labels map[string]string `json:"labels,omitempty"` // Name: The name of the repository, for example: - // "projects/p1/locations/us-central1/repositories/repo1". + // `projects/p1/locations/us-central1/repositories/repo1`. Name string `json:"name,omitempty"` // SatisfiesPzs: Output only. If set, the repository satisfies physical @@ -2613,7 +2613,7 @@ type ProjectsLocationsRepositoriesPatchCall struct { // Patch: Updates a repository. // // - name: The name of the repository, for example: -// "projects/p1/locations/us-central1/repositories/repo1". +// `projects/p1/locations/us-central1/repositories/repo1`. func (r *ProjectsLocationsRepositoriesService) Patch(name string, repository *Repository) *ProjectsLocationsRepositoriesPatchCall { c := &ProjectsLocationsRepositoriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -2729,7 +2729,7 @@ func (c *ProjectsLocationsRepositoriesPatchCall) Do(opts ...googleapi.CallOption // ], // "parameters": { // "name": { - // "description": "The name of the repository, for example: \"projects/p1/locations/us-central1/repositories/repo1\".", + // "description": "The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", // "required": true, diff --git a/artifactregistry/v1beta2/artifactregistry-api.json b/artifactregistry/v1beta2/artifactregistry-api.json index 898b8e00140..c265ed4bf76 100644 --- a/artifactregistry/v1beta2/artifactregistry-api.json +++ b/artifactregistry/v1beta2/artifactregistry-api.json @@ -491,7 +491,7 @@ ], "parameters": { "name": { - "description": "The name of the repository, for example: \"projects/p1/locations/us-central1/repositories/repo1\".", + "description": "The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`.", "location": "path", "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", "required": true, @@ -1187,7 +1187,7 @@ } } }, - "revision": "20231002", + "revision": "20231102", "rootUrl": "https://artifactregistry.googleapis.com/", "schemas": { "AptArtifact": { @@ -1840,7 +1840,7 @@ "description": "Maven repository config contains repository level configuration for the repositories of maven type." }, "name": { - "description": "The name of the repository, for example: \"projects/p1/locations/us-central1/repositories/repo1\".", + "description": "The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`.", "type": "string" }, "satisfiesPzs": { diff --git a/artifactregistry/v1beta2/artifactregistry-gen.go b/artifactregistry/v1beta2/artifactregistry-gen.go index 80f32784413..97c980d476d 100644 --- a/artifactregistry/v1beta2/artifactregistry-gen.go +++ b/artifactregistry/v1beta2/artifactregistry-gen.go @@ -1450,7 +1450,7 @@ type Repository struct { MavenConfig *MavenRepositoryConfig `json:"mavenConfig,omitempty"` // Name: The name of the repository, for example: - // "projects/p1/locations/us-central1/repositories/repo1". + // `projects/p1/locations/us-central1/repositories/repo1`. Name string `json:"name,omitempty"` // SatisfiesPzs: Output only. If set, the repository satisfies physical @@ -3551,7 +3551,7 @@ type ProjectsLocationsRepositoriesPatchCall struct { // Patch: Updates a repository. // // - name: The name of the repository, for example: -// "projects/p1/locations/us-central1/repositories/repo1". +// `projects/p1/locations/us-central1/repositories/repo1`. func (r *ProjectsLocationsRepositoriesService) Patch(name string, repository *Repository) *ProjectsLocationsRepositoriesPatchCall { c := &ProjectsLocationsRepositoriesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name @@ -3667,7 +3667,7 @@ func (c *ProjectsLocationsRepositoriesPatchCall) Do(opts ...googleapi.CallOption // ], // "parameters": { // "name": { - // "description": "The name of the repository, for example: \"projects/p1/locations/us-central1/repositories/repo1\".", + // "description": "The name of the repository, for example: `projects/p1/locations/us-central1/repositories/repo1`.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/repositories/[^/]+$", // "required": true, diff --git a/batch/v1/batch-api.json b/batch/v1/batch-api.json index 3ab620498f5..53fd47dd540 100644 --- a/batch/v1/batch-api.json +++ b/batch/v1/batch-api.json @@ -561,7 +561,7 @@ } } }, - "revision": "20231018", + "revision": "20231029", "rootUrl": "https://batch.googleapis.com/", "schemas": { "Accelerator": { @@ -917,6 +917,27 @@ "$ref": "AgentTaskRunnable" }, "type": "array" + }, + "userAccount": { + "$ref": "AgentTaskUserAccount", + "description": "User account on the VM to run the runnables in the agentTaskSpec. If not set, the runnable will be run under root user." + } + }, + "type": "object" + }, + "AgentTaskUserAccount": { + "description": "AgentTaskUserAccount contains the information of a POSIX account on the guest os which is used to execute the runnables.", + "id": "AgentTaskUserAccount", + "properties": { + "gid": { + "description": "gid id an unique identifier of the POSIX account group corresponding to the user account.", + "format": "int64", + "type": "string" + }, + "uid": { + "description": "uid is an unique identifier of the POSIX account corresponding to the user account.", + "format": "int64", + "type": "string" } }, "type": "object" @@ -1015,6 +1036,12 @@ "properties": {}, "type": "object" }, + "CloudLoggingOption": { + "description": "CloudLoggingOption contains additional settings for cloud logging generated by Batch job.", + "id": "CloudLoggingOption", + "properties": {}, + "type": "object" + }, "ComputeResource": { "description": "Compute resource requirements. ComputeResource defines the amount of resources required for each task. Make sure your tasks have enough resources to successfully run. If you also define the types of resources for a job to use with the [InstancePolicyOrTemplate](https://cloud.google.com/batch/docs/reference/rest/v1/projects.locations.jobs#instancepolicyortemplate) field, make sure both fields are compatible with each other.", "id": "ComputeResource", @@ -1567,6 +1594,10 @@ "description": "LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be preserved.", "id": "LogsPolicy", "properties": { + "cloudLoggingOption": { + "$ref": "CloudLoggingOption", + "description": "Optional. Additional settings for Cloud Logging. It will only take effect when the destination of LogsPolicy is set to CLOUD_LOGGING." + }, "destination": { "description": "Where logs should be saved.", "enum": [ diff --git a/batch/v1/batch-gen.go b/batch/v1/batch-gen.go index b3a31dc5270..5d6170a315b 100644 --- a/batch/v1/batch-gen.go +++ b/batch/v1/batch-gen.go @@ -753,6 +753,10 @@ type AgentTaskSpec struct { // the agent. Runnables []*AgentTaskRunnable `json:"runnables,omitempty"` + // UserAccount: User account on the VM to run the runnables in the + // agentTaskSpec. If not set, the runnable will be run under root user. + UserAccount *AgentTaskUserAccount `json:"userAccount,omitempty"` + // ForceSendFields is a list of field names (e.g. "Environment") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -776,6 +780,41 @@ func (s *AgentTaskSpec) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AgentTaskUserAccount: AgentTaskUserAccount contains the information +// of a POSIX account on the guest os which is used to execute the +// runnables. +type AgentTaskUserAccount struct { + // Gid: gid id an unique identifier of the POSIX account group + // corresponding to the user account. + Gid int64 `json:"gid,omitempty,string"` + + // Uid: uid is an unique identifier of the POSIX account corresponding + // to the user account. + Uid int64 `json:"uid,omitempty,string"` + + // ForceSendFields is a list of field names (e.g. "Gid") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Gid") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AgentTaskUserAccount) MarshalJSON() ([]byte, error) { + type NoMethod AgentTaskUserAccount + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AgentTimingInfo: VM timing information type AgentTimingInfo struct { // AgentStartupTime: Agent startup time @@ -934,6 +973,11 @@ func (s *Barrier) MarshalJSON() ([]byte, error) { type CancelOperationRequest struct { } +// CloudLoggingOption: CloudLoggingOption contains additional settings +// for cloud logging generated by Batch job. +type CloudLoggingOption struct { +} + // ComputeResource: Compute resource requirements. ComputeResource // defines the amount of resources required for each task. Make sure // your tasks have enough resources to successfully run. If you also @@ -1868,6 +1912,11 @@ func (s *LocationPolicy) MarshalJSON() ([]byte, error) { // LogsPolicy: LogsPolicy describes how outputs from a Job's Tasks // (stdout/stderr) will be preserved. type LogsPolicy struct { + // CloudLoggingOption: Optional. Additional settings for Cloud Logging. + // It will only take effect when the destination of LogsPolicy is set to + // CLOUD_LOGGING. + CloudLoggingOption *CloudLoggingOption `json:"cloudLoggingOption,omitempty"` + // Destination: Where logs should be saved. // // Possible values: @@ -1881,20 +1930,21 @@ type LogsPolicy struct { // point of a Persistent Disk or Filestore, or a Cloud Storage path. LogsPath string `json:"logsPath,omitempty"` - // ForceSendFields is a list of field names (e.g. "Destination") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "CloudLoggingOption") + // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Destination") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "CloudLoggingOption") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } diff --git a/beyondcorp/v1alpha/beyondcorp-api.json b/beyondcorp/v1alpha/beyondcorp-api.json index 3121298a8e4..13a72aab7fd 100644 --- a/beyondcorp/v1alpha/beyondcorp-api.json +++ b/beyondcorp/v1alpha/beyondcorp-api.json @@ -241,6 +241,27 @@ "parent" ], "parameters": { + "filter": { + "description": "Optional. A filter specifying constraints of a list operation. All fields in the PartnerTenant message are supported. For example, the following query will return the PartnerTenants with displayName \"test-tenant\" organizations/${ORG_ID}/locations/${LOCATION}/partnerTenants?filter=displayName=\"test-tenant\" Nested fields are also supported. The follow query will return PartnerTenants with internal_tenant_id \"1234\" organizations/${ORG_ID}/locations/${LOCATION}/partnerTenants?filter=partnerMetadata.internalTenantId=\"1234\" For more information, please refer to https://google.aip.dev/160.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Specifies the ordering of results. See [Sorting order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more information.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of items to return. If not specified, a default value of 50 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's next_page_token to determine if there are more instances left to be queried.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The next_page_token value returned from a previous ListPartnerTenantsResponse, if any.", + "location": "query", + "type": "string" + }, "parent": { "description": "Required. The parent organization to which the PartnerTenants belong. Format: `organizations/{organization_id}/locations/global`", "location": "path", @@ -727,6 +748,27 @@ "parent" ], "parameters": { + "filter": { + "description": "Optional. A filter specifying constraints of a list operation. All fields in the ProxyConfig message are supported. For example, the following query will return the ProxyConfigs with displayName \"test-config\" organizations/${ORG_ID}/locations/global/partnerTenants/${PARTNER_TENANT_ID}/proxyConfigs?filter=displayName=\"test-config\" Nested fields are also supported. The follow query will return ProxyConfigs with pacUri \"example.com/pac.pac\" organizations/${ORG_ID}/locations/global/partnerTenants/${PARTNER_TENANT_ID}/proxyConfigs?filter=routingInfo.pacUri=\"example.com/pac.pac\" For more information, please refer to https://google.aip.dev/160.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Optional. Specifies the ordering of results. See [Sorting order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more information.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "Optional. The maximum number of items to return. If not specified, a default value of 50 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's next_page_token to determine if there are more instances left to be queried.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "Optional. The next_page_token value returned from a previous ListProxyConfigsRequest, if any.", + "location": "query", + "type": "string" + }, "parent": { "description": "Required. The parent organization to which the ProxyConfigs belong. Format: `organizations/{organization_id}/locations/global/partnerTenants/{partner_tenant_id}`", "location": "path", @@ -3674,7 +3716,7 @@ } } }, - "revision": "20231011", + "revision": "20231025", "rootUrl": "https://beyondcorp.googleapis.com/", "schemas": { "AllocatedConnection": { @@ -5117,6 +5159,10 @@ "description": "Message for response to listing PartnerTenants.", "id": "GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse", "properties": { + "nextPageToken": { + "description": "A token to retrieve the next page of results, or empty if there are no more results in the list.", + "type": "string" + }, "partnerTenants": { "description": "The list of PartnerTenant objects.", "items": { @@ -5131,6 +5177,10 @@ "description": "Message for response to listing ProxyConfigs.", "id": "GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse", "properties": { + "nextPageToken": { + "description": "A token to retrieve the next page of results, or empty if there are no more results in the list.", + "type": "string" + }, "proxyConfigs": { "description": "The list of ProxyConfig objects.", "items": { @@ -5707,9 +5757,8 @@ "type": "string" }, "seatCount": { - "description": "Output only. Number of seats in the subscription.", + "description": "Optional. Number of seats in the subscription.", "format": "int64", - "readOnly": true, "type": "string" }, "sku": { diff --git a/beyondcorp/v1alpha/beyondcorp-gen.go b/beyondcorp/v1alpha/beyondcorp-gen.go index 330f3cfadc3..2d4a2e6c8d3 100644 --- a/beyondcorp/v1alpha/beyondcorp-gen.go +++ b/beyondcorp/v1alpha/beyondcorp-gen.go @@ -2475,6 +2475,10 @@ func (s *GoogleCloudBeyondcorpPartnerservicesV1alphaListBrowserDlpRulesResponse) // // Message for response to listing PartnerTenants. type GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse struct { + // NextPageToken: A token to retrieve the next page of results, or empty + // if there are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` + // PartnerTenants: The list of PartnerTenant objects. PartnerTenants []*GoogleCloudBeyondcorpPartnerservicesV1alphaPartnerTenant `json:"partnerTenants,omitempty"` @@ -2482,7 +2486,7 @@ type GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse struc // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "PartnerTenants") to + // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2490,13 +2494,12 @@ type GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse struc // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PartnerTenants") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } @@ -2509,6 +2512,10 @@ func (s *GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse) // GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse: // Message for response to listing ProxyConfigs. type GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse struct { + // NextPageToken: A token to retrieve the next page of results, or empty + // if there are no more results in the list. + NextPageToken string `json:"nextPageToken,omitempty"` + // ProxyConfigs: The list of ProxyConfig objects. ProxyConfigs []*GoogleCloudBeyondcorpPartnerservicesV1alphaProxyConfig `json:"proxyConfigs,omitempty"` @@ -2516,7 +2523,7 @@ type GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse struct // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ProxyConfigs") to + // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2524,7 +2531,7 @@ type GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse struct // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ProxyConfigs") to include + // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as @@ -3349,7 +3356,7 @@ type GoogleCloudBeyondcorpSaasplatformSubscriptionsV1alphaSubscription struct { // ignored when creating a subscription. Name string `json:"name,omitempty"` - // SeatCount: Output only. Number of seats in the subscription. + // SeatCount: Optional. Number of seats in the subscription. SeatCount int64 `json:"seatCount,omitempty,string"` // Sku: Required. SKU of subscription. @@ -5264,6 +5271,49 @@ func (r *OrganizationsLocationsGlobalPartnerTenantsService) List(parent string) return c } +// Filter sets the optional parameter "filter": A filter specifying +// constraints of a list operation. All fields in the PartnerTenant +// message are supported. For example, the following query will return +// the PartnerTenants with displayName "test-tenant" +// organizations/${ORG_ID}/locations/${LOCATION}/partnerTenants?filter=di +// splayName="test-tenant" Nested fields are also supported. The follow +// query will return PartnerTenants with internal_tenant_id "1234" +// organizations/${ORG_ID}/locations/${LOCATION}/partnerTenants?filter=pa +// rtnerMetadata.internalTenantId="1234" For more information, please +// refer to https://google.aip.dev/160. +func (c *OrganizationsLocationsGlobalPartnerTenantsListCall) Filter(filter string) *OrganizationsLocationsGlobalPartnerTenantsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Specifies the ordering +// of results. See Sorting order +// (https://cloud.google.com/apis/design/design_patterns#sorting_order) +// for more information. +func (c *OrganizationsLocationsGlobalPartnerTenantsListCall) OrderBy(orderBy string) *OrganizationsLocationsGlobalPartnerTenantsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of items to return. If not specified, a default value of 50 will be +// used by the service. Regardless of the page_size value, the response +// may include a partial list and a caller should only rely on +// response's next_page_token to determine if there are more instances +// left to be queried. +func (c *OrganizationsLocationsGlobalPartnerTenantsListCall) PageSize(pageSize int64) *OrganizationsLocationsGlobalPartnerTenantsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// next_page_token value returned from a previous +// ListPartnerTenantsResponse, if any. +func (c *OrganizationsLocationsGlobalPartnerTenantsListCall) PageToken(pageToken string) *OrganizationsLocationsGlobalPartnerTenantsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -5376,6 +5426,27 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsListCall) Do(opts ...googleap // "parent" // ], // "parameters": { + // "filter": { + // "description": "Optional. A filter specifying constraints of a list operation. All fields in the PartnerTenant message are supported. For example, the following query will return the PartnerTenants with displayName \"test-tenant\" organizations/${ORG_ID}/locations/${LOCATION}/partnerTenants?filter=displayName=\"test-tenant\" Nested fields are also supported. The follow query will return PartnerTenants with internal_tenant_id \"1234\" organizations/${ORG_ID}/locations/${LOCATION}/partnerTenants?filter=partnerMetadata.internalTenantId=\"1234\" For more information, please refer to https://google.aip.dev/160.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Optional. Specifies the ordering of results. See [Sorting order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more information.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. The maximum number of items to return. If not specified, a default value of 50 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's next_page_token to determine if there are more instances left to be queried.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. The next_page_token value returned from a previous ListPartnerTenantsResponse, if any.", + // "location": "query", + // "type": "string" + // }, // "parent": { // "description": "Required. The parent organization to which the PartnerTenants belong. Format: `organizations/{organization_id}/locations/global`", // "location": "path", @@ -5395,6 +5466,27 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsListCall) Do(opts ...googleap } +// 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 *OrganizationsLocationsGlobalPartnerTenantsListCall) Pages(ctx context.Context, f func(*GoogleCloudBeyondcorpPartnerservicesV1alphaListPartnerTenantsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + 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) + } +} + // method id "beyondcorp.organizations.locations.global.partnerTenants.patch": type OrganizationsLocationsGlobalPartnerTenantsPatchCall struct { @@ -7834,6 +7926,50 @@ func (r *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsService) List(par return c } +// Filter sets the optional parameter "filter": A filter specifying +// constraints of a list operation. All fields in the ProxyConfig +// message are supported. For example, the following query will return +// the ProxyConfigs with displayName "test-config" +// organizations/${ORG_ID}/locations/global/partnerTenants/${PARTNER_TENA +// NT_ID}/proxyConfigs?filter=displayName="test-config" Nested fields +// are also supported. The follow query will return ProxyConfigs with +// pacUri "example.com/pac.pac" +// organizations/${ORG_ID}/locations/global/partnerTenants/${PARTNER_TENA +// NT_ID}/proxyConfigs?filter=routingInfo.pacUri="example.com/pac.pac" +// For more information, please refer to https://google.aip.dev/160. +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall) Filter(filter string) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Specifies the ordering +// of results. See Sorting order +// (https://cloud.google.com/apis/design/design_patterns#sorting_order) +// for more information. +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall) OrderBy(orderBy string) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of items to return. If not specified, a default value of 50 will be +// used by the service. Regardless of the page_size value, the response +// may include a partial list and a caller should only rely on +// response's next_page_token to determine if there are more instances +// left to be queried. +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall) PageSize(pageSize int64) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": The +// next_page_token value returned from a previous +// ListProxyConfigsRequest, if any. +func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall) PageToken(pageToken string) *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. @@ -7944,6 +8080,27 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall) Do(opts // "parent" // ], // "parameters": { + // "filter": { + // "description": "Optional. A filter specifying constraints of a list operation. All fields in the ProxyConfig message are supported. For example, the following query will return the ProxyConfigs with displayName \"test-config\" organizations/${ORG_ID}/locations/global/partnerTenants/${PARTNER_TENANT_ID}/proxyConfigs?filter=displayName=\"test-config\" Nested fields are also supported. The follow query will return ProxyConfigs with pacUri \"example.com/pac.pac\" organizations/${ORG_ID}/locations/global/partnerTenants/${PARTNER_TENANT_ID}/proxyConfigs?filter=routingInfo.pacUri=\"example.com/pac.pac\" For more information, please refer to https://google.aip.dev/160.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Optional. Specifies the ordering of results. See [Sorting order](https://cloud.google.com/apis/design/design_patterns#sorting_order) for more information.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "Optional. The maximum number of items to return. If not specified, a default value of 50 will be used by the service. Regardless of the page_size value, the response may include a partial list and a caller should only rely on response's next_page_token to determine if there are more instances left to be queried.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "Optional. The next_page_token value returned from a previous ListProxyConfigsRequest, if any.", + // "location": "query", + // "type": "string" + // }, // "parent": { // "description": "Required. The parent organization to which the ProxyConfigs belong. Format: `organizations/{organization_id}/locations/global/partnerTenants/{partner_tenant_id}`", // "location": "path", @@ -7963,6 +8120,27 @@ func (c *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall) Do(opts } +// 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 *OrganizationsLocationsGlobalPartnerTenantsProxyConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudBeyondcorpPartnerservicesV1alphaListProxyConfigsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + 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) + } +} + // method id "beyondcorp.organizations.locations.global.partnerTenants.proxyConfigs.patch": type OrganizationsLocationsGlobalPartnerTenantsProxyConfigsPatchCall struct { diff --git a/bigtableadmin/v2/bigtableadmin-api.json b/bigtableadmin/v2/bigtableadmin-api.json index 9eecdcefc1a..5992e224316 100644 --- a/bigtableadmin/v2/bigtableadmin-api.json +++ b/bigtableadmin/v2/bigtableadmin-api.json @@ -1966,7 +1966,7 @@ } } }, - "revision": "20231013", + "revision": "20231029", "rootUrl": "https://bigtableadmin.googleapis.com/", "schemas": { "AppProfile": { @@ -2237,6 +2237,10 @@ "consistencyToken": { "description": "Required. The token created using GenerateConsistencyToken for the Table.", "type": "string" + }, + "standardReadRemoteWrites": { + "$ref": "StandardReadRemoteWrites", + "description": "Checks that reads using an app profile with `StandardIsolation` can see all writes committed before the token was created, even if the read and write target different clusters." } }, "type": "object" @@ -2385,7 +2389,8 @@ }, "stats": { "$ref": "ColumnFamilyStats", - "description": "Only available with STATS_VIEW, this includes summary statistics about column family contents. For statistics over an entire table, see TableStats above." + "description": "Output only. Only available with STATS_VIEW, this includes summary statistics about column family contents. For statistics over an entire table, see TableStats above.", + "readOnly": true } }, "type": "object" @@ -3406,6 +3411,12 @@ }, "type": "object" }, + "StandardReadRemoteWrites": { + "description": "Checks that all writes before the consistency token was generated is replicated in every cluster and readable.", + "id": "StandardReadRemoteWrites", + "properties": {}, + "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", @@ -3483,7 +3494,8 @@ }, "stats": { "$ref": "TableStats", - "description": "Only available with STATS_VIEW, this includes summary statistics about the entire table contents. For statistics about a specific column family, see ColumnFamilyStats in the mapped ColumnFamily collection above." + "description": "Output only. Only available with STATS_VIEW, this includes summary statistics about the entire table contents. For statistics about a specific column family, see ColumnFamilyStats in the mapped ColumnFamily collection above.", + "readOnly": true } }, "type": "object" diff --git a/bigtableadmin/v2/bigtableadmin-gen.go b/bigtableadmin/v2/bigtableadmin-gen.go index 34877314e8b..a60838a03a9 100644 --- a/bigtableadmin/v2/bigtableadmin-gen.go +++ b/bigtableadmin/v2/bigtableadmin-gen.go @@ -809,6 +809,11 @@ type CheckConsistencyRequest struct { // GenerateConsistencyToken for the Table. ConsistencyToken string `json:"consistencyToken,omitempty"` + // StandardReadRemoteWrites: Checks that reads using an app profile with + // `StandardIsolation` can see all writes committed before the token was + // created, even if the read and write target different clusters. + StandardReadRemoteWrites *StandardReadRemoteWrites `json:"standardReadRemoteWrites,omitempty"` + // ForceSendFields is a list of field names (e.g. "ConsistencyToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any @@ -1082,9 +1087,9 @@ type ColumnFamily struct { // family. GcRule *GcRule `json:"gcRule,omitempty"` - // Stats: Only available with STATS_VIEW, this includes summary - // statistics about column family contents. For statistics over an - // entire table, see TableStats above. + // Stats: Output only. Only available with STATS_VIEW, this includes + // summary statistics about column family contents. For statistics over + // an entire table, see TableStats above. Stats *ColumnFamilyStats `json:"stats,omitempty"` // ForceSendFields is a list of field names (e.g. "GcRule") to @@ -3151,6 +3156,12 @@ func (s *StandardIsolation) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// StandardReadRemoteWrites: Checks that all writes before the +// consistency token was generated is replicated in every cluster and +// readable. +type StandardReadRemoteWrites struct { +} + // 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 @@ -3245,9 +3256,9 @@ type Table struct { // information about the restore. RestoreInfo *RestoreInfo `json:"restoreInfo,omitempty"` - // Stats: Only available with STATS_VIEW, this includes summary - // statistics about the entire table contents. For statistics about a - // specific column family, see ColumnFamilyStats in the mapped + // Stats: Output only. Only available with STATS_VIEW, this includes + // summary statistics about the entire table contents. For statistics + // about a specific column family, see ColumnFamilyStats in the mapped // ColumnFamily collection above. Stats *TableStats `json:"stats,omitempty"` diff --git a/clouddeploy/v1/clouddeploy-api.json b/clouddeploy/v1/clouddeploy-api.json index 95775cbb3d6..7e7b6beb0b4 100644 --- a/clouddeploy/v1/clouddeploy-api.json +++ b/clouddeploy/v1/clouddeploy-api.json @@ -534,6 +534,321 @@ } }, "resources": { + "automationRuns": { + "methods": { + "cancel": { + "description": "Cancels an AutomationRun. The `state` of the `AutomationRun` after cancelling is `CANCELLED`. `CancelAutomationRun` can be called on AutomationRun in the state `IN_PROGRESS` and `PENDING`; AutomationRun in a different state returns an `FAILED_PRECONDITION` error.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/automationRuns/{automationRunsId}:cancel", + "httpMethod": "POST", + "id": "clouddeploy.projects.locations.deliveryPipelines.automationRuns.cancel", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the `AutomationRun`. Format is projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/automationRuns/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}:cancel", + "request": { + "$ref": "CancelAutomationRunRequest" + }, + "response": { + "$ref": "CancelAutomationRunResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single AutomationRun.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/automationRuns/{automationRunsId}", + "httpMethod": "GET", + "id": "clouddeploy.projects.locations.deliveryPipelines.automationRuns.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the `AutomationRun`. Format must be projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/automationRuns/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "AutomationRun" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists AutomationRuns in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/automationRuns", + "httpMethod": "GET", + "id": "clouddeploy.projects.locations.deliveryPipelines.automationRuns.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Filter automationRuns to be returned. All fields can be used in the filter.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Field to sort by.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of automationRuns to return. The service may return fewer than this value. If unspecified, at most 50 automationRuns will be returned. The maximum value is 1000; values above 1000 will be set to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListAutomationRuns` call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent, which owns this collection of automationRuns. Format must be projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/automationRuns", + "response": { + "$ref": "ListAutomationRunsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, + "automations": { + "methods": { + "create": { + "description": "Creates a new Automation in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/automations", + "httpMethod": "POST", + "id": "clouddeploy.projects.locations.deliveryPipelines.automations.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "automationId": { + "description": "Required. ID of the `Automation`.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent collection in which the `Automation` should be created. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "validateOnly": { + "description": "Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+parent}/automations", + "request": { + "$ref": "Automation" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "delete": { + "description": "Deletes a single Automation resource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/automations/{automationsId}", + "httpMethod": "DELETE", + "id": "clouddeploy.projects.locations.deliveryPipelines.automations.delete", + "parameterOrder": [ + "name" + ], + "parameters": { + "allowMissing": { + "description": "Optional. If set to true, then deleting an already deleted or non-existing `Automation` will succeed.", + "location": "query", + "type": "boolean" + }, + "etag": { + "description": "Optional. The weak etag of the request. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.", + "location": "query", + "type": "string" + }, + "name": { + "description": "Required. The name of the `Automation` to delete. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/automations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "validateOnly": { + "description": "Optional. If set, validate the request and verify whether the resource exists, but do not actually post it.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "get": { + "description": "Gets details of a single Automation.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/automations/{automationsId}", + "httpMethod": "GET", + "id": "clouddeploy.projects.locations.deliveryPipelines.automations.get", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. Name of the `Automation`. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/automations/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+name}", + "response": { + "$ref": "Automation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "list": { + "description": "Lists Automations in a given project and location.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/automations", + "httpMethod": "GET", + "id": "clouddeploy.projects.locations.deliveryPipelines.automations.list", + "parameterOrder": [ + "parent" + ], + "parameters": { + "filter": { + "description": "Filter automations to be returned. All fields can be used in the filter.", + "location": "query", + "type": "string" + }, + "orderBy": { + "description": "Field to sort by.", + "location": "query", + "type": "string" + }, + "pageSize": { + "description": "The maximum number of automations to return. The service may return fewer than this value. If unspecified, at most 50 automations will be returned. The maximum value is 1000; values above 1000 will be set to 1000.", + "format": "int32", + "location": "query", + "type": "integer" + }, + "pageToken": { + "description": "A page token, received from a previous `ListAutomations` call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters match the call that provided the page token.", + "location": "query", + "type": "string" + }, + "parent": { + "description": "Required. The parent, which owns this collection of automations. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1/{+parent}/automations", + "response": { + "$ref": "ListAutomationsResponse" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + }, + "patch": { + "description": "Updates the parameters of a single Automation resource.", + "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/automations/{automationsId}", + "httpMethod": "PATCH", + "id": "clouddeploy.projects.locations.deliveryPipelines.automations.patch", + "parameterOrder": [ + "name" + ], + "parameters": { + "allowMissing": { + "description": "Optional. If set to true, updating a `Automation` that does not exist will result in the creation of a new `Automation`.", + "location": "query", + "type": "boolean" + }, + "name": { + "description": "Output only. Name of the `Automation`. Format is projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}.", + "location": "path", + "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/automations/[^/]+$", + "required": true, + "type": "string" + }, + "requestId": { + "description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + "location": "query", + "type": "string" + }, + "updateMask": { + "description": "Required. Field mask is used to specify the fields to be overwritten in the `Automation` resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + "format": "google-fieldmask", + "location": "query", + "type": "string" + }, + "validateOnly": { + "description": "Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.", + "location": "query", + "type": "boolean" + } + }, + "path": "v1/{+name}", + "request": { + "$ref": "Automation" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] + } + } + }, "releases": { "methods": { "abandon": { @@ -1479,7 +1794,7 @@ } } }, - "revision": "20231015", + "revision": "20231027", "rootUrl": "https://clouddeploy.googleapis.com/", "schemas": { "AbandonReleaseRequest": { @@ -1517,6 +1832,34 @@ }, "type": "object" }, + "AdvanceRolloutOperation": { + "description": "Contains the information of an automated advance-rollout operation.", + "id": "AdvanceRolloutOperation", + "properties": { + "destinationPhase": { + "description": "Output only. The phase to which the rollout will be advanced to.", + "readOnly": true, + "type": "string" + }, + "rollout": { + "description": "Output only. The name of the rollout that initiates the `AutomationRun`.", + "readOnly": true, + "type": "string" + }, + "sourcePhase": { + "description": "Output only. The phase of a deployment that initiated the operation.", + "readOnly": true, + "type": "string" + }, + "wait": { + "description": "Output only. How long the operation will be paused.", + "format": "google-duration", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "AdvanceRolloutRequest": { "description": "The request object used by `AdvanceRollout`.", "id": "AdvanceRolloutRequest", @@ -1534,6 +1877,34 @@ "properties": {}, "type": "object" }, + "AdvanceRolloutRule": { + "description": "The `AdvanceRollout` automation rule will automatically advance a successful Rollout to the next phase.", + "id": "AdvanceRolloutRule", + "properties": { + "condition": { + "$ref": "AutomationRuleCondition", + "description": "Output only. Information around the state of the Automation rule.", + "readOnly": true + }, + "id": { + "description": "Required. ID of the rule. This id must be unique in the `Automation` resource to which this rule belongs. The format is a-z{0,62}.", + "type": "string" + }, + "sourcePhases": { + "description": "Optional. Proceeds only after phase name matched any one in the list. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.", + "items": { + "type": "string" + }, + "type": "array" + }, + "wait": { + "description": "Optional. How long to wait after a rollout is finished.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, "AnthosCluster": { "description": "Information specifying an Anthos Cluster.", "id": "AnthosCluster", @@ -1610,6 +1981,76 @@ }, "type": "object" }, + "Automation": { + "description": "An `Automation` resource in the Cloud Deploy API. An `Automation` enables the automation of manually driven actions for a Delivery Pipeline, which includes Release promotion amongst Targets, Rollout repair and Rollout deployment strategy advancement. The intention of Automation is to reduce manual intervention in the continuous delivery process.", + "id": "Automation", + "properties": { + "annotations": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. User annotations. These attributes can only be set and used by the user, and not by Cloud Deploy. Annotations must meet the following constraints: * Annotations are key/value pairs. * Valid annotation keys have two segments: an optional prefix and name, separated by a slash (/). * The name segment is required and must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between. * The prefix is optional. If specified, the prefix must be a DNS subdomain: a series of DNS labels separated by dots(.), not longer than 253 characters in total, followed by a slash (/). See https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set for more details.", + "type": "object" + }, + "createTime": { + "description": "Output only. Time at which the automation was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "description": { + "description": "Optional. Description of the `Automation`. Max length is 255 characters.", + "type": "string" + }, + "etag": { + "description": "Optional. The weak etag of the `Automation` resource. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Optional. Labels are attributes that can be set and used by both the user and by Cloud Deploy. Labels must meet the following constraints: * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. * All characters must use UTF-8 encoding, and international characters are allowed. * Keys must start with a lowercase letter or international character. * Each resource is limited to a maximum of 64 labels. Both keys and values are additionally constrained to be \u003c= 63 characters.", + "type": "object" + }, + "name": { + "description": "Output only. Name of the `Automation`. Format is projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}.", + "readOnly": true, + "type": "string" + }, + "rules": { + "description": "Required. List of Automation rules associated with the Automation resource. Must have at least one rule and limited to 250 rules per Delivery Pipeline. Note: the order of the rules here is not the same as the order of execution.", + "items": { + "$ref": "AutomationRule" + }, + "type": "array" + }, + "selector": { + "$ref": "AutomationResourceSelector", + "description": "Required. Selected resources to which the automation will be applied." + }, + "serviceAccount": { + "description": "Required. Email address of the user-managed IAM service account that creates Cloud Deploy release and rollout resources.", + "type": "string" + }, + "suspended": { + "description": "Optional. When Suspended, automation is deactivated from execution.", + "type": "boolean" + }, + "uid": { + "description": "Output only. Unique identifier of the `Automation`.", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. Time at which the automation was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "AutomationEvent": { "description": "Payload proto for \"clouddeploy.googleapis.com/automation\" Platform Log event that describes the Automation related events.", "id": "AutomationEvent", @@ -1663,6 +2104,185 @@ }, "type": "object" }, + "AutomationResourceSelector": { + "description": "AutomationResourceSelector contains the information to select the resources to which an Automation is going to be applied.", + "id": "AutomationResourceSelector", + "properties": { + "targets": { + "description": "Contains attributes about a target.", + "items": { + "$ref": "TargetAttribute" + }, + "type": "array" + } + }, + "type": "object" + }, + "AutomationRolloutMetadata": { + "description": "AutomationRolloutMetadata contains Automation-related actions that were performed on a rollout.", + "id": "AutomationRolloutMetadata", + "properties": { + "advanceAutomationRuns": { + "description": "Output only. The IDs of the AutomationRuns initiated by an advance rollout rule.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + }, + "promoteAutomationRun": { + "description": "Output only. The ID of the AutomationRun initiated by a promote release rule.", + "readOnly": true, + "type": "string" + }, + "repairAutomationRuns": { + "description": "Output only. The IDs of the AutomationRuns initiated by a repair rollout rule.", + "items": { + "type": "string" + }, + "readOnly": true, + "type": "array" + } + }, + "type": "object" + }, + "AutomationRule": { + "description": "`AutomationRule` defines the automation activities.", + "id": "AutomationRule", + "properties": { + "advanceRolloutRule": { + "$ref": "AdvanceRolloutRule", + "description": "Optional. The `AdvanceRolloutRule` will automatically advance a successful Rollout." + }, + "promoteReleaseRule": { + "$ref": "PromoteReleaseRule", + "description": "Optional. `PromoteReleaseRule` will automatically promote a release from the current target to a specified target." + }, + "repairRolloutRule": { + "$ref": "RepairRolloutRule", + "description": "Optional. The `RepairRolloutRule` will automatically repair a failed rollout." + } + }, + "type": "object" + }, + "AutomationRuleCondition": { + "description": "`AutomationRuleCondition` contains conditions relevant to an `Automation` rule.", + "id": "AutomationRuleCondition", + "properties": { + "targetsPresentCondition": { + "$ref": "TargetsPresentCondition", + "description": "Optional. Details around targets enumerated in the rule." + } + }, + "type": "object" + }, + "AutomationRun": { + "description": "An `AutomationRun` resource in the Cloud Deploy API. An `AutomationResource` represents an automation execution instance of an automation rule.", + "id": "AutomationRun", + "properties": { + "advanceRolloutOperation": { + "$ref": "AdvanceRolloutOperation", + "description": "Output only. Advances a rollout to the next phase.", + "readOnly": true + }, + "automationId": { + "description": "Output only. The ID of the automation that initiated the operation.", + "readOnly": true, + "type": "string" + }, + "automationSnapshot": { + "$ref": "Automation", + "description": "Output only. Snapshot of the Automation taken at AutomationRun creation time.", + "readOnly": true + }, + "createTime": { + "description": "Output only. Time at which the `AutomationRun` was created.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "etag": { + "description": "Output only. The weak etag of the `AutomationRun` resource. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.", + "readOnly": true, + "type": "string" + }, + "expireTime": { + "description": "Output only. Time the `AutomationRun` will expire. An `AutomationRun` will expire after 14 days from its creation date.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "name": { + "description": "Output only. Name of the `AutomationRun`. Format is projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}.", + "readOnly": true, + "type": "string" + }, + "promoteReleaseOperation": { + "$ref": "PromoteReleaseOperation", + "description": "Output only. Promotes a release to a specified 'Target'.", + "readOnly": true + }, + "repairRolloutOperation": { + "$ref": "RepairRolloutOperation", + "description": "Output only. Repairs a failed 'Rollout'.", + "readOnly": true + }, + "ruleId": { + "description": "Output only. The ID of the automation rule that initiated the operation.", + "readOnly": true, + "type": "string" + }, + "serviceAccount": { + "description": "Output only. Email address of the user-managed IAM service account that performs the operations against Cloud Deploy resources.", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. Current state of the `AutomationRun`.", + "enum": [ + "STATE_UNSPECIFIED", + "SUCCEEDED", + "CANCELLED", + "FAILED", + "IN_PROGRESS", + "PENDING" + ], + "enumDescriptions": [ + "The `AutomationRun` has an unspecified state.", + "The `AutomationRun` has succeeded.", + "The `AutomationRun` was cancelled.", + "The `AutomationRun` has failed.", + "The `AutomationRun` is in progress.", + "The `AutomationRun` is pending." + ], + "readOnly": true, + "type": "string" + }, + "stateDescription": { + "description": "Output only. Explains the current state of the `AutomationRun`. Present only an explanation is needed.", + "readOnly": true, + "type": "string" + }, + "targetId": { + "description": "Output only. The ID of the target that represents the promotion stage that initiates the `AutomationRun`. The value of this field is the last segment of a target name.", + "readOnly": true, + "type": "string" + }, + "updateTime": { + "description": "Output only. Time at which the automationRun was updated.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + }, + "waitUntilTime": { + "description": "Output only. Earliest time the `AutomationRun` will attempt to resume. Wait-time is configured by `wait` in automation rule.", + "format": "google-datetime", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "AutomationRunEvent": { "description": "Payload proto for \"clouddeploy.googleapis.com/automation_run\" Platform Log event that describes the AutomationRun related events.", "id": "AutomationRunEvent", @@ -1811,6 +2431,18 @@ }, "type": "object" }, + "CancelAutomationRunRequest": { + "description": "The request object used by `CancelAutomationRun`.", + "id": "CancelAutomationRunRequest", + "properties": {}, + "type": "object" + }, + "CancelAutomationRunResponse": { + "description": "The response object from `CancelAutomationRun`.", + "id": "CancelAutomationRunResponse", + "properties": {}, + "type": "object" + }, "CancelOperationRequest": { "description": "The request message for Operations.CancelOperation.", "id": "CancelOperationRequest", @@ -2661,6 +3293,56 @@ }, "type": "object" }, + "ListAutomationRunsResponse": { + "description": "The response object from `ListAutomationRuns`.", + "id": "ListAutomationRunsResponse", + "properties": { + "automationRuns": { + "description": "The `AutomationRuns` objects.", + "items": { + "$ref": "AutomationRun" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ListAutomationsResponse": { + "description": "The response object from `ListAutomations`.", + "id": "ListAutomationsResponse", + "properties": { + "automations": { + "description": "The `Automations` objects.", + "items": { + "$ref": "Automation" + }, + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" + }, + "unreachable": { + "description": "Locations that could not be reached.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "ListDeliveryPipelinesResponse": { "description": "The response object from `ListDeliveryPipelines`.", "id": "ListDeliveryPipelinesResponse", @@ -2860,6 +3542,11 @@ "description": "Metadata includes information associated with a `Rollout`.", "id": "Metadata", "properties": { + "automation": { + "$ref": "AutomationRolloutMetadata", + "description": "Output only. AutomationRolloutMetadata contains the information about the interactions between Automation service and this rollout.", + "readOnly": true + }, "cloudRun": { "$ref": "CloudRunMetadata", "description": "Output only. The name of the Cloud Run Service that is associated with a `Rollout`.", @@ -3283,6 +3970,63 @@ }, "type": "object" }, + "PromoteReleaseOperation": { + "description": "Contains the information of an automated promote-release operation.", + "id": "PromoteReleaseOperation", + "properties": { + "phase": { + "description": "Output only. The starting phase of the rollout created by this operation.", + "readOnly": true, + "type": "string" + }, + "rollout": { + "description": "Output only. The name of the rollout that initiates the `AutomationRun`.", + "readOnly": true, + "type": "string" + }, + "targetId": { + "description": "Output only. The ID of the target that represents the promotion stage to which the release will be promoted. The value of this field is the last segment of a target name.", + "readOnly": true, + "type": "string" + }, + "wait": { + "description": "Output only. How long the operation will be paused.", + "format": "google-duration", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "PromoteReleaseRule": { + "description": "`PromoteRelease` rule will automatically promote a release from the current target to a specified target.", + "id": "PromoteReleaseRule", + "properties": { + "condition": { + "$ref": "AutomationRuleCondition", + "description": "Output only. Information around the state of the Automation rule.", + "readOnly": true + }, + "destinationPhase": { + "description": "Optional. The starting phase of the rollout created by this operation. Default to the first phase.", + "type": "string" + }, + "destinationTargetId": { + "description": "Optional. The ID of the stage in the pipeline to which this `Release` is deploying. If unspecified, default it to the next stage in the promotion flow. The value of this field could be one of the following: * The last segment of a target name. It only needs the ID to determine if the target is one of the stages in the promotion sequence defined in the pipeline. * \"@next\", the next target in the promotion sequence.", + "type": "string" + }, + "id": { + "description": "Required. ID of the rule. This id must be unique in the `Automation` resource to which this rule belongs. The format is a-z{0,62}.", + "type": "string" + }, + "wait": { + "description": "Optional. How long the release need to be paused until being promoted to the next target.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, "Release": { "description": "A `Release` resource in the Cloud Deploy API. A `Release` defines a specific Skaffold configuration instance that can be deployed.", "id": "Release", @@ -3523,6 +4267,179 @@ }, "type": "object" }, + "RepairMode": { + "description": "Configuration of the repair action.", + "id": "RepairMode", + "properties": { + "retry": { + "$ref": "Retry", + "description": "Optional. Retries a failed job." + }, + "rollback": { + "$ref": "Rollback", + "description": "Optional. Rolls back a `Rollout`." + } + }, + "type": "object" + }, + "RepairPhase": { + "description": "RepairPhase tracks the repair attempts that have been made for each `RepairMode` specified in the `Automation` resource.", + "id": "RepairPhase", + "properties": { + "retry": { + "$ref": "RetryPhase", + "description": "Output only. Records of the retry attempts for retry repair mode.", + "readOnly": true + }, + "rollback": { + "$ref": "RollbackAttempt", + "description": "Output only. Rollback attempt for rollback repair mode .", + "readOnly": true + } + }, + "type": "object" + }, + "RepairRolloutOperation": { + "description": "Contains the information for an automated `repair rollout` operation.", + "id": "RepairRolloutOperation", + "properties": { + "currentRepairModeIndex": { + "description": "Output only. The index of the current repair action in the repair sequence.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "repairPhases": { + "description": "Output only. Records of the repair attempts. Each repair phase may have multiple retry attempts or single rollback attempt.", + "items": { + "$ref": "RepairPhase" + }, + "readOnly": true, + "type": "array" + }, + "rollout": { + "description": "Output only. The name of the rollout that initiates the `AutomationRun`.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "RepairRolloutRule": { + "description": "The `RepairRolloutRule` automation rule will automatically repair a failed `Rollout`.", + "id": "RepairRolloutRule", + "properties": { + "condition": { + "$ref": "AutomationRuleCondition", + "description": "Output only. Information around the state of the 'Automation' rule.", + "readOnly": true + }, + "id": { + "description": "Required. ID of the rule. This id must be unique in the `Automation` resource to which this rule belongs. The format is a-z{0,62}.", + "type": "string" + }, + "jobs": { + "description": "Optional. Jobs to repair. Proceeds only after job name matched any one in the list, or for all jobs if unspecified or empty. The phase that includes the job must match the phase ID specified in `source_phase`. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.", + "items": { + "type": "string" + }, + "type": "array" + }, + "repairModes": { + "description": "Required. Defines the types of automatic repair actions for failed jobs.", + "items": { + "$ref": "RepairMode" + }, + "type": "array" + }, + "sourcePhases": { + "description": "Optional. Phases within which jobs are subject to automatic repair actions on failure. Proceeds only after phase name matched any one in the list, or for all phases if unspecified. This value must consist of lower-case letters, numbers, and hyphens, start with a letter and end with a letter or a number, and have a max length of 63 characters. In other words, it must match the following regex: `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "Retry": { + "description": "Retries the failed job.", + "id": "Retry", + "properties": { + "attempts": { + "description": "Required. Total number of retries. Retry will skipped if set to 0; The minimum value is 1, and the maximum value is 10.", + "format": "int64", + "type": "string" + }, + "backoffMode": { + "description": "Optional. The pattern of how wait time will be increased. Default is linear. Backoff mode will be ignored if `wait` is 0.", + "enum": [ + "BACKOFF_MODE_UNSPECIFIED", + "BACKOFF_MODE_LINEAR", + "BACKOFF_MODE_EXPONENTIAL" + ], + "enumDescriptions": [ + "No WaitMode is specified.", + "Increases the wait time linearly.", + "Increases the wait time exponentially." + ], + "type": "string" + }, + "wait": { + "description": "Optional. How long to wait for the first retry. Default is 0, and the maximum value is 14d.", + "format": "google-duration", + "type": "string" + } + }, + "type": "object" + }, + "RetryAttempt": { + "description": "RetryAttempt represents an action of retrying the failed Cloud Deploy job.", + "id": "RetryAttempt", + "properties": { + "attempt": { + "description": "Output only. The index of this retry attempt.", + "format": "int64", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. Valid state of this retry action.", + "enum": [ + "REPAIR_STATE_UNSPECIFIED", + "REPAIR_STATE_SUCCEEDED", + "REPAIR_STATE_CANCELLED", + "REPAIR_STATE_FAILED", + "REPAIR_STATE_IN_PROGRESS", + "REPAIR_STATE_PENDING", + "REPAIR_STATE_SKIPPED" + ], + "enumDescriptions": [ + "The `repair` has an unspecified state.", + "The `repair` action has succeeded.", + "The `repair` action was cancelled.", + "The `repair` action has failed.", + "The `repair` action is in progress.", + "The `repair` action is pending.", + "The `repair` action was skipped." + ], + "readOnly": true, + "type": "string" + }, + "stateDesc": { + "description": "Output only. Description of the state of the Retry.", + "readOnly": true, + "type": "string" + }, + "wait": { + "description": "Output only. How long the operation will be paused.", + "format": "google-duration", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "RetryJobRequest": { "description": "RetryJobRequest is the request object used by `RetryJob`.", "id": "RetryJobRequest", @@ -3544,6 +4461,108 @@ "properties": {}, "type": "object" }, + "RetryPhase": { + "description": "RetryPhase contains the retry attempts and the metadata for initiating a new attempt.", + "id": "RetryPhase", + "properties": { + "attempts": { + "description": "Output only. Detail of a retry action.", + "items": { + "$ref": "RetryAttempt" + }, + "readOnly": true, + "type": "array" + }, + "backoffMode": { + "description": "Output only. The pattern of how the wait time of the retry attempt is calculated.", + "enum": [ + "BACKOFF_MODE_UNSPECIFIED", + "BACKOFF_MODE_LINEAR", + "BACKOFF_MODE_EXPONENTIAL" + ], + "enumDescriptions": [ + "No WaitMode is specified.", + "Increases the wait time linearly.", + "Increases the wait time exponentially." + ], + "readOnly": true, + "type": "string" + }, + "jobId": { + "description": "Output only. The job ID for the Job to retry.", + "readOnly": true, + "type": "string" + }, + "phaseId": { + "description": "Output only. The phase ID of the phase that includes the job being retried.", + "readOnly": true, + "type": "string" + }, + "totalAttempts": { + "description": "Output only. The number of attempts that have been made.", + "format": "int64", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, + "Rollback": { + "description": "Rolls back a `Rollout`.", + "id": "Rollback", + "properties": { + "destinationPhase": { + "description": "Optional. The starting phase ID for the `Rollout`. If unspecified, the `Rollout` will start in the stable phase.", + "type": "string" + } + }, + "type": "object" + }, + "RollbackAttempt": { + "description": "RollbackAttempt represents an action of rolling back a Cloud Deploy 'Target'.", + "id": "RollbackAttempt", + "properties": { + "destinationPhase": { + "description": "Output only. The phase to which the rollout will be rolled back to.", + "readOnly": true, + "type": "string" + }, + "rolloutId": { + "description": "Output only. ID of the rollback `Rollout` to create.", + "readOnly": true, + "type": "string" + }, + "state": { + "description": "Output only. Valid state of this rollback action.", + "enum": [ + "REPAIR_STATE_UNSPECIFIED", + "REPAIR_STATE_SUCCEEDED", + "REPAIR_STATE_CANCELLED", + "REPAIR_STATE_FAILED", + "REPAIR_STATE_IN_PROGRESS", + "REPAIR_STATE_PENDING", + "REPAIR_STATE_SKIPPED" + ], + "enumDescriptions": [ + "The `repair` has an unspecified state.", + "The `repair` action has succeeded.", + "The `repair` action was cancelled.", + "The `repair` action has failed.", + "The `repair` action is in progress.", + "The `repair` action is pending.", + "The `repair` action was skipped." + ], + "readOnly": true, + "type": "string" + }, + "stateDesc": { + "description": "Output only. Description of the state of the Rollback.", + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "RollbackTargetConfig": { "description": "Configs for the Rollback rollout.", "id": "RollbackTargetConfig", @@ -3850,6 +4869,104 @@ }, "type": "object" }, + "RolloutUpdateEvent": { + "description": "Payload proto for \"clouddeploy.googleapis.com/rollout_update\" Platform Log event that describes the rollout update event.", + "id": "RolloutUpdateEvent", + "properties": { + "message": { + "description": "Debug message for when a rollout update event occurs.", + "type": "string" + }, + "pipelineUid": { + "description": "Unique identifier of the pipeline.", + "type": "string" + }, + "releaseUid": { + "description": "Unique identifier of the release.", + "type": "string" + }, + "rollout": { + "description": "The name of the rollout.", + "type": "string" + }, + "rolloutUpdateType": { + "description": "Output only. The type of the rollout update.", + "enum": [ + "ROLLOUT_UPDATE_TYPE_UNSPECIFIED", + "PENDING", + "PENDING_RELEASE", + "IN_PROGRESS", + "CANCELLING", + "CANCELLED", + "HALTED", + "SUCCEEDED", + "FAILED", + "APPROVAL_REQUIRED", + "APPROVED", + "REJECTED", + "ADVANCE_REQUIRED", + "ADVANCED" + ], + "enumDescriptions": [ + "Rollout update type unspecified.", + "rollout state updated to pending.", + "Rollout state updated to pending release.", + "Rollout state updated to in progress.", + "Rollout state updated to cancelling.", + "Rollout state updated to cancelled.", + "Rollout state updated to halted.", + "Rollout state updated to succeeded.", + "Rollout state updated to failed.", + "Rollout requires approval.", + "Rollout has been approved.", + "Rollout has been rejected.", + "Rollout requires advance to the next phase.", + "Rollout has been advanced." + ], + "readOnly": true, + "type": "string" + }, + "targetId": { + "description": "ID of the target.", + "type": "string" + }, + "type": { + "description": "Type of this notification, e.g. for a rollout update event.", + "enum": [ + "TYPE_UNSPECIFIED", + "TYPE_PUBSUB_NOTIFICATION_FAILURE", + "TYPE_RESOURCE_STATE_CHANGE", + "TYPE_PROCESS_ABORTED", + "TYPE_RESTRICTION_VIOLATED", + "TYPE_RESOURCE_DELETED", + "TYPE_ROLLOUT_UPDATE", + "TYPE_RENDER_STATUES_CHANGE" + ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + false, + true + ], + "enumDescriptions": [ + "Type is unspecified.", + "A Pub/Sub notification failed to be sent.", + "Resource state changed.", + "A process aborted.", + "Restriction check failed.", + "Resource deleted.", + "Rollout updated.", + "Deprecated: This field is never used. Use release_render log type instead." + ], + "type": "string" + } + }, + "type": "object" + }, "RuntimeConfig": { "description": "RuntimeConfig contains the runtime specific configurations for a deployment strategy.", "id": "RuntimeConfig", @@ -4185,6 +5302,24 @@ }, "type": "object" }, + "TargetAttribute": { + "description": "Contains criteria for selecting Targets. Attributes provided must match the target resource in order for policy restrictions to apply. E.g. if id \"prod\" and labels \"foo: bar\" are given the target resource must match both that id and have that label in order to be selected.", + "id": "TargetAttribute", + "properties": { + "id": { + "description": "ID of the `Target`. The value of this field could be one of the following: * The last segment of a target name. It only needs the ID to determine which target is being referred to * \"*\", all targets in a location.", + "type": "string" + }, + "labels": { + "additionalProperties": { + "type": "string" + }, + "description": "Target labels.", + "type": "object" + } + }, + "type": "object" + }, "TargetNotificationEvent": { "description": "Payload proto for \"clouddeploy.googleapis.com/target_notification\" Platform Log event that describes the failure to send target status change Pub/Sub notification.", "id": "TargetNotificationEvent", diff --git a/clouddeploy/v1/clouddeploy-gen.go b/clouddeploy/v1/clouddeploy-gen.go index 648300c10cc..8a7a87b4b60 100644 --- a/clouddeploy/v1/clouddeploy-gen.go +++ b/clouddeploy/v1/clouddeploy-gen.go @@ -183,6 +183,8 @@ type ProjectsLocationsService struct { func NewProjectsLocationsDeliveryPipelinesService(s *Service) *ProjectsLocationsDeliveryPipelinesService { rs := &ProjectsLocationsDeliveryPipelinesService{s: s} + rs.AutomationRuns = NewProjectsLocationsDeliveryPipelinesAutomationRunsService(s) + rs.Automations = NewProjectsLocationsDeliveryPipelinesAutomationsService(s) rs.Releases = NewProjectsLocationsDeliveryPipelinesReleasesService(s) return rs } @@ -190,9 +192,31 @@ func NewProjectsLocationsDeliveryPipelinesService(s *Service) *ProjectsLocations type ProjectsLocationsDeliveryPipelinesService struct { s *Service + AutomationRuns *ProjectsLocationsDeliveryPipelinesAutomationRunsService + + Automations *ProjectsLocationsDeliveryPipelinesAutomationsService + Releases *ProjectsLocationsDeliveryPipelinesReleasesService } +func NewProjectsLocationsDeliveryPipelinesAutomationRunsService(s *Service) *ProjectsLocationsDeliveryPipelinesAutomationRunsService { + rs := &ProjectsLocationsDeliveryPipelinesAutomationRunsService{s: s} + return rs +} + +type ProjectsLocationsDeliveryPipelinesAutomationRunsService struct { + s *Service +} + +func NewProjectsLocationsDeliveryPipelinesAutomationsService(s *Service) *ProjectsLocationsDeliveryPipelinesAutomationsService { + rs := &ProjectsLocationsDeliveryPipelinesAutomationsService{s: s} + return rs +} + +type ProjectsLocationsDeliveryPipelinesAutomationsService struct { + s *Service +} + func NewProjectsLocationsDeliveryPipelinesReleasesService(s *Service) *ProjectsLocationsDeliveryPipelinesReleasesService { rs := &ProjectsLocationsDeliveryPipelinesReleasesService{s: s} rs.Rollouts = NewProjectsLocationsDeliveryPipelinesReleasesRolloutsService(s) @@ -294,6 +318,48 @@ func (s *AdvanceChildRolloutJobRun) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// AdvanceRolloutOperation: Contains the information of an automated +// advance-rollout operation. +type AdvanceRolloutOperation struct { + // DestinationPhase: Output only. The phase to which the rollout will be + // advanced to. + DestinationPhase string `json:"destinationPhase,omitempty"` + + // Rollout: Output only. The name of the rollout that initiates the + // `AutomationRun`. + Rollout string `json:"rollout,omitempty"` + + // SourcePhase: Output only. The phase of a deployment that initiated + // the operation. + SourcePhase string `json:"sourcePhase,omitempty"` + + // Wait: Output only. How long the operation will be paused. + Wait string `json:"wait,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DestinationPhase") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DestinationPhase") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *AdvanceRolloutOperation) MarshalJSON() ([]byte, error) { + type NoMethod AdvanceRolloutOperation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AdvanceRolloutRequest: The request object used by `AdvanceRollout`. type AdvanceRolloutRequest struct { // PhaseId: Required. The phase ID to advance the `Rollout` to. @@ -329,6 +395,51 @@ type AdvanceRolloutResponse struct { googleapi.ServerResponse `json:"-"` } +// AdvanceRolloutRule: The `AdvanceRollout` automation rule will +// automatically advance a successful Rollout to the next phase. +type AdvanceRolloutRule struct { + // Condition: Output only. Information around the state of the + // Automation rule. + Condition *AutomationRuleCondition `json:"condition,omitempty"` + + // Id: Required. ID of the rule. This id must be unique in the + // `Automation` resource to which this rule belongs. The format is + // a-z{0,62}. + Id string `json:"id,omitempty"` + + // SourcePhases: Optional. Proceeds only after phase name matched any + // one in the list. This value must consist of lower-case letters, + // numbers, and hyphens, start with a letter and end with a letter or a + // number, and have a max length of 63 characters. In other words, it + // must match the following regex: `^a-z ([a-z0-9-]{0,61}[a-z0-9])?$`. + SourcePhases []string `json:"sourcePhases,omitempty"` + + // Wait: Optional. How long to wait after a rollout is finished. + Wait string `json:"wait,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Condition") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Condition") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *AdvanceRolloutRule) MarshalJSON() ([]byte, error) { + type NoMethod AdvanceRolloutRule + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // AnthosCluster: Information specifying an Anthos Cluster. type AnthosCluster struct { // Membership: Membership of the GKE Hub-registered cluster to which to @@ -492,37 +603,86 @@ func (s *AuditLogConfig) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AutomationEvent: Payload proto for -// "clouddeploy.googleapis.com/automation" Platform Log event that -// describes the Automation related events. -type AutomationEvent struct { - // Automation: The name of the `AutomationRun`. - Automation string `json:"automation,omitempty"` +// Automation: An `Automation` resource in the Cloud Deploy API. An +// `Automation` enables the automation of manually driven actions for a +// Delivery Pipeline, which includes Release promotion amongst Targets, +// Rollout repair and Rollout deployment strategy advancement. The +// intention of Automation is to reduce manual intervention in the +// continuous delivery process. +type Automation struct { + // Annotations: Optional. User annotations. These attributes can only be + // set and used by the user, and not by Cloud Deploy. Annotations must + // meet the following constraints: * Annotations are key/value pairs. * + // Valid annotation keys have two segments: an optional prefix and name, + // separated by a slash (/). * The name segment is required and must be + // 63 characters or less, beginning and ending with an alphanumeric + // character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), + // and alphanumerics between. * The prefix is optional. If specified, + // the prefix must be a DNS subdomain: a series of DNS labels separated + // by dots(.), not longer than 253 characters in total, followed by a + // slash (/). See + // https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set + // for more details. + Annotations map[string]string `json:"annotations,omitempty"` - // Message: Debug message for when there is an update on the - // AutomationRun. Provides further details about the resource creation - // or state change. - Message string `json:"message,omitempty"` + // CreateTime: Output only. Time at which the automation was created. + CreateTime string `json:"createTime,omitempty"` - // PipelineUid: Unique identifier of the `DeliveryPipeline`. - PipelineUid string `json:"pipelineUid,omitempty"` + // Description: Optional. Description of the `Automation`. Max length is + // 255 characters. + Description string `json:"description,omitempty"` - // Type: Type of this notification, e.g. for a Pub/Sub failure. - // - // Possible values: - // "TYPE_UNSPECIFIED" - Type is unspecified. - // "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed - // to be sent. - // "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed. - // "TYPE_PROCESS_ABORTED" - A process aborted. - // "TYPE_RESTRICTION_VIOLATED" - Restriction check failed. - // "TYPE_RESOURCE_DELETED" - Resource deleted. - // "TYPE_ROLLOUT_UPDATE" - Rollout updated. - // "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never - // used. Use release_render log type instead. - Type string `json:"type,omitempty"` + // Etag: Optional. The weak etag of the `Automation` resource. This + // checksum is computed by the server based on the value of other + // fields, and may be sent on update and delete requests to ensure the + // client has an up-to-date value before proceeding. + Etag string `json:"etag,omitempty"` - // ForceSendFields is a list of field names (e.g. "Automation") to + // Labels: Optional. Labels are attributes that can be set and used by + // both the user and by Cloud Deploy. Labels must meet the following + // constraints: * Keys and values can contain only lowercase letters, + // numeric characters, underscores, and dashes. * All characters must + // use UTF-8 encoding, and international characters are allowed. * Keys + // must start with a lowercase letter or international character. * Each + // resource is limited to a maximum of 64 labels. Both keys and values + // are additionally constrained to be <= 63 characters. + Labels map[string]string `json:"labels,omitempty"` + + // Name: Output only. Name of the `Automation`. Format is + // projects/{project}/locations/{location}/deliveryPipelines/{delivery_pi + // peline}/automations/{automation}. + Name string `json:"name,omitempty"` + + // Rules: Required. List of Automation rules associated with the + // Automation resource. Must have at least one rule and limited to 250 + // rules per Delivery Pipeline. Note: the order of the rules here is not + // the same as the order of execution. + Rules []*AutomationRule `json:"rules,omitempty"` + + // Selector: Required. Selected resources to which the automation will + // be applied. + Selector *AutomationResourceSelector `json:"selector,omitempty"` + + // ServiceAccount: Required. Email address of the user-managed IAM + // service account that creates Cloud Deploy release and rollout + // resources. + ServiceAccount string `json:"serviceAccount,omitempty"` + + // Suspended: Optional. When Suspended, automation is deactivated from + // execution. + Suspended bool `json:"suspended,omitempty"` + + // Uid: Output only. Unique identifier of the `Automation`. + Uid string `json:"uid,omitempty"` + + // UpdateTime: Output only. Time at which the automation was updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Annotations") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -530,34 +690,27 @@ type AutomationEvent struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Automation") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Annotations") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *AutomationEvent) MarshalJSON() ([]byte, error) { - type NoMethod AutomationEvent +func (s *Automation) MarshalJSON() ([]byte, error) { + type NoMethod Automation raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// AutomationRunEvent: Payload proto for -// "clouddeploy.googleapis.com/automation_run" Platform Log event that -// describes the AutomationRun related events. -type AutomationRunEvent struct { - // AutomationId: Identifier of the `Automation`. - AutomationId string `json:"automationId,omitempty"` - - // AutomationRun: The name of the `AutomationRun`. - AutomationRun string `json:"automationRun,omitempty"` - - // DestinationTargetId: ID of the `Target` to which the `AutomationRun` - // is created. - DestinationTargetId string `json:"destinationTargetId,omitempty"` +// AutomationEvent: Payload proto for +// "clouddeploy.googleapis.com/automation" Platform Log event that +// describes the Automation related events. +type AutomationEvent struct { + // Automation: The name of the `AutomationRun`. + Automation string `json:"automation,omitempty"` // Message: Debug message for when there is an update on the // AutomationRun. Provides further details about the resource creation @@ -567,9 +720,6 @@ type AutomationRunEvent struct { // PipelineUid: Unique identifier of the `DeliveryPipeline`. PipelineUid string `json:"pipelineUid,omitempty"` - // RuleId: Identifier of the `Automation` rule. - RuleId string `json:"ruleId,omitempty"` - // Type: Type of this notification, e.g. for a Pub/Sub failure. // // Possible values: @@ -585,7 +735,7 @@ type AutomationRunEvent struct { // used. Use release_render log type instead. Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. "AutomationId") to + // ForceSendFields is a list of field names (e.g. "Automation") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -593,77 +743,29 @@ type AutomationRunEvent struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AutomationId") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Automation") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *AutomationRunEvent) MarshalJSON() ([]byte, error) { - type NoMethod AutomationRunEvent +func (s *AutomationEvent) MarshalJSON() ([]byte, error) { + type NoMethod AutomationEvent raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Binding: Associates `members`, or principals, with a `role`. -type Binding struct { - // Condition: The condition that is associated with this binding. If the - // condition evaluates to `true`, then this binding applies to the - // current request. If the condition evaluates to `false`, then this - // binding does not apply to the current request. However, a different - // role binding might grant the same role to one or more of the - // principals in this binding. To learn which resources support - // conditions in their IAM policies, see the IAM documentation - // (https://cloud.google.com/iam/help/conditions/resource-policies). - Condition *Expr `json:"condition,omitempty"` - - // Members: Specifies the principals requesting access for a Google - // Cloud resource. `members` can have the following values: * - // `allUsers`: A special identifier that represents anyone who is on the - // internet; with or without a Google account. * - // `allAuthenticatedUsers`: A special identifier that represents anyone - // who is authenticated with a Google account or a service account. Does - // not include identities that come from external identity providers - // (IdPs) through identity federation. * `user:{emailid}`: An email - // address that represents a specific Google account. For example, - // `alice@example.com` . * `serviceAccount:{emailid}`: An email address - // that represents a Google service account. For example, - // `my-other-app@appspot.gserviceaccount.com`. * - // `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: - // An identifier for a Kubernetes service account - // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). - // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. - // * `group:{emailid}`: An email address that represents a Google group. - // For example, `admins@example.com`. * `domain:{domain}`: The G Suite - // domain (primary) that represents all the users of that domain. For - // example, `google.com` or `example.com`. * - // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus - // unique identifier) representing a user that has been recently - // deleted. For example, `alice@example.com?uid=123456789012345678901`. - // If the user is recovered, this value reverts to `user:{emailid}` and - // the recovered user retains the role in the binding. * - // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address - // (plus unique identifier) representing a service account that has been - // recently deleted. For example, - // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - // If the service account is undeleted, this value reverts to - // `serviceAccount:{emailid}` and the undeleted service account retains - // the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: - // An email address (plus unique identifier) representing a Google group - // that has been recently deleted. For example, - // `admins@example.com?uid=123456789012345678901`. If the group is - // recovered, this value reverts to `group:{emailid}` and the recovered - // group retains the role in the binding. - Members []string `json:"members,omitempty"` - - // Role: Role that is assigned to the list of `members`, or principals. - // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - Role string `json:"role,omitempty"` +// AutomationResourceSelector: AutomationResourceSelector contains the +// information to select the resources to which an Automation is going +// to be applied. +type AutomationResourceSelector struct { + // Targets: Contains attributes about a target. + Targets []*TargetAttribute `json:"targets,omitempty"` - // ForceSendFields is a list of field names (e.g. "Condition") to + // ForceSendFields is a list of field names (e.g. "Targets") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -671,7 +773,7 @@ type Binding struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Condition") to include in + // NullFields is a list of field names (e.g. "Targets") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -680,72 +782,37 @@ type Binding struct { NullFields []string `json:"-"` } -func (s *Binding) MarshalJSON() ([]byte, error) { - type NoMethod Binding +func (s *AutomationResourceSelector) MarshalJSON() ([]byte, error) { + type NoMethod AutomationResourceSelector raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// BuildArtifact: Description of an a image to use during Skaffold -// rendering. -type BuildArtifact struct { - // Image: Image name in Skaffold configuration. - Image string `json:"image,omitempty"` +// AutomationRolloutMetadata: AutomationRolloutMetadata contains +// Automation-related actions that were performed on a rollout. +type AutomationRolloutMetadata struct { + // AdvanceAutomationRuns: Output only. The IDs of the AutomationRuns + // initiated by an advance rollout rule. + AdvanceAutomationRuns []string `json:"advanceAutomationRuns,omitempty"` - // Tag: Image tag to use. This will generally be the full path to an - // image, such as "gcr.io/my-project/busybox:1.2.3" or - // "gcr.io/my-project/busybox@sha256:abc123". - Tag string `json:"tag,omitempty"` + // PromoteAutomationRun: Output only. The ID of the AutomationRun + // initiated by a promote release rule. + PromoteAutomationRun string `json:"promoteAutomationRun,omitempty"` - // ForceSendFields is a list of field names (e.g. "Image") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // RepairAutomationRuns: Output only. The IDs of the AutomationRuns + // initiated by a repair rollout rule. + RepairAutomationRuns []string `json:"repairAutomationRuns,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AdvanceAutomationRuns") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Image") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *BuildArtifact) MarshalJSON() ([]byte, error) { - type NoMethod BuildArtifact - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Canary: Canary represents the canary deployment strategy. -type Canary struct { - // CanaryDeployment: Configures the progressive based deployment for a - // Target. - CanaryDeployment *CanaryDeployment `json:"canaryDeployment,omitempty"` - - // CustomCanaryDeployment: Configures the progressive based deployment - // for a Target, but allows customizing at the phase level where a phase - // represents each of the percentage deployments. - CustomCanaryDeployment *CustomCanaryDeployment `json:"customCanaryDeployment,omitempty"` - - // RuntimeConfig: Optional. Runtime specific configurations for the - // deployment strategy. The runtime configuration is used to determine - // how Cloud Deploy will split traffic to enable a progressive - // deployment. - RuntimeConfig *RuntimeConfig `json:"runtimeConfig,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CanaryDeployment") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "CanaryDeployment") to + // NullFields is a list of field names (e.g. "AdvanceAutomationRuns") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -755,81 +822,27 @@ type Canary struct { NullFields []string `json:"-"` } -func (s *Canary) MarshalJSON() ([]byte, error) { - type NoMethod Canary - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// CanaryDeployment: CanaryDeployment represents the canary deployment -// configuration -type CanaryDeployment struct { - // Percentages: Required. The percentage based deployments that will - // occur as a part of a `Rollout`. List is expected in ascending order - // and each integer n is 0 <= n < 100. - Percentages []int64 `json:"percentages,omitempty"` - - // Postdeploy: Optional. Configuration for the postdeploy job of the - // last phase. If this is not configured, there will be no postdeploy - // job for this phase. - Postdeploy *Postdeploy `json:"postdeploy,omitempty"` - - // Predeploy: Optional. Configuration for the predeploy job of the first - // phase. If this is not configured, there will be no predeploy job for - // this phase. - Predeploy *Predeploy `json:"predeploy,omitempty"` - - // Verify: Whether to run verify tests after each percentage deployment. - Verify bool `json:"verify,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Percentages") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Percentages") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *CanaryDeployment) MarshalJSON() ([]byte, error) { - type NoMethod CanaryDeployment +func (s *AutomationRolloutMetadata) MarshalJSON() ([]byte, error) { + type NoMethod AutomationRolloutMetadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CancelOperationRequest: The request message for -// Operations.CancelOperation. -type CancelOperationRequest struct { -} - -// CancelRolloutRequest: The request object used by `CancelRollout`. -type CancelRolloutRequest struct { -} - -// CancelRolloutResponse: The response object from `CancelRollout`. -type CancelRolloutResponse struct { - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` -} +// AutomationRule: `AutomationRule` defines the automation activities. +type AutomationRule struct { + // AdvanceRolloutRule: Optional. The `AdvanceRolloutRule` will + // automatically advance a successful Rollout. + AdvanceRolloutRule *AdvanceRolloutRule `json:"advanceRolloutRule,omitempty"` -// ChildRolloutJobs: ChildRollouts job composition -type ChildRolloutJobs struct { - // AdvanceRolloutJobs: Output only. List of AdvanceChildRolloutJobs - AdvanceRolloutJobs []*Job `json:"advanceRolloutJobs,omitempty"` + // PromoteReleaseRule: Optional. `PromoteReleaseRule` will automatically + // promote a release from the current target to a specified target. + PromoteReleaseRule *PromoteReleaseRule `json:"promoteReleaseRule,omitempty"` - // CreateRolloutJobs: Output only. List of CreateChildRolloutJobs - CreateRolloutJobs []*Job `json:"createRolloutJobs,omitempty"` + // RepairRolloutRule: Optional. The `RepairRolloutRule` will + // automatically repair a failed rollout. + RepairRolloutRule *RepairRolloutRule `json:"repairRolloutRule,omitempty"` - // ForceSendFields is a list of field names (e.g. "AdvanceRolloutJobs") + // ForceSendFields is a list of field names (e.g. "AdvanceRolloutRule") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -837,7 +850,7 @@ type ChildRolloutJobs struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AdvanceRolloutJobs") to + // NullFields is a list of field names (e.g. "AdvanceRolloutRule") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -847,23 +860,21 @@ type ChildRolloutJobs struct { NullFields []string `json:"-"` } -func (s *ChildRolloutJobs) MarshalJSON() ([]byte, error) { - type NoMethod ChildRolloutJobs +func (s *AutomationRule) MarshalJSON() ([]byte, error) { + type NoMethod AutomationRule raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CloudRunConfig: CloudRunConfig contains the Cloud Run runtime -// configuration. -type CloudRunConfig struct { - // AutomaticTrafficControl: Whether Cloud Deploy should update the - // traffic stanza in a Cloud Run Service on the user's behalf to - // facilitate traffic splitting. This is required to be true for - // CanaryDeployments, but optional for CustomCanaryDeployments. - AutomaticTrafficControl bool `json:"automaticTrafficControl,omitempty"` +// AutomationRuleCondition: `AutomationRuleCondition` contains +// conditions relevant to an `Automation` rule. +type AutomationRuleCondition struct { + // TargetsPresentCondition: Optional. Details around targets enumerated + // in the rule. + TargetsPresentCondition *TargetsPresentCondition `json:"targetsPresentCondition,omitempty"` // ForceSendFields is a list of field names (e.g. - // "AutomaticTrafficControl") to unconditionally include in API + // "TargetsPresentCondition") to unconditionally include in API // requests. By default, fields with empty or default values are omitted // from API requests. However, any non-pointer, non-interface field // appearing in ForceSendFields will be sent to the server regardless of @@ -871,7 +882,7 @@ type CloudRunConfig struct { // fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AutomaticTrafficControl") + // NullFields is a list of field names (e.g. "TargetsPresentCondition") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the @@ -881,143 +892,105 @@ type CloudRunConfig struct { NullFields []string `json:"-"` } -func (s *CloudRunConfig) MarshalJSON() ([]byte, error) { - type NoMethod CloudRunConfig +func (s *AutomationRuleCondition) MarshalJSON() ([]byte, error) { + type NoMethod AutomationRuleCondition raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CloudRunLocation: Information specifying where to deploy a Cloud Run -// Service. -type CloudRunLocation struct { - // Location: Required. The location for the Cloud Run Service. Format - // must be `projects/{project}/locations/{location}`. - Location string `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. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Location") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} +// AutomationRun: An `AutomationRun` resource in the Cloud Deploy API. +// An `AutomationResource` represents an automation execution instance +// of an automation rule. +type AutomationRun struct { + // AdvanceRolloutOperation: Output only. Advances a rollout to the next + // phase. + AdvanceRolloutOperation *AdvanceRolloutOperation `json:"advanceRolloutOperation,omitempty"` -func (s *CloudRunLocation) MarshalJSON() ([]byte, error) { - type NoMethod CloudRunLocation - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // AutomationId: Output only. The ID of the automation that initiated + // the operation. + AutomationId string `json:"automationId,omitempty"` -// CloudRunMetadata: CloudRunMetadata contains information from a Cloud -// Run deployment. -type CloudRunMetadata struct { - // Job: Output only. The name of the Cloud Run job that is associated - // with a `Rollout`. Format is - // projects/{project}/locations/{location}/jobs/{job_name}. - Job string `json:"job,omitempty"` + // AutomationSnapshot: Output only. Snapshot of the Automation taken at + // AutomationRun creation time. + AutomationSnapshot *Automation `json:"automationSnapshot,omitempty"` - // Revision: Output only. The Cloud Run Revision id associated with a - // `Rollout`. - Revision string `json:"revision,omitempty"` + // CreateTime: Output only. Time at which the `AutomationRun` was + // created. + CreateTime string `json:"createTime,omitempty"` - // Service: Output only. The name of the Cloud Run Service that is - // associated with a `Rollout`. Format is - // projects/{project}/locations/{location}/services/{service}. - Service string `json:"service,omitempty"` + // Etag: Output only. The weak etag of the `AutomationRun` resource. + // This checksum is computed by the server based on the value of other + // fields, and may be sent on update and delete requests to ensure the + // client has an up-to-date value before proceeding. + Etag string `json:"etag,omitempty"` - // ServiceUrls: Output only. The Cloud Run Service urls that are - // associated with a `Rollout`. - ServiceUrls []string `json:"serviceUrls,omitempty"` + // ExpireTime: Output only. Time the `AutomationRun` will expire. An + // `AutomationRun` will expire after 14 days from its creation date. + ExpireTime string `json:"expireTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "Job") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` + // Name: Output only. Name of the `AutomationRun`. Format is + // projects/{project}/locations/{location}/deliveryPipelines/{delivery_pi + // peline}/automationRuns/{automation_run}. + Name string `json:"name,omitempty"` - // NullFields is a list of field names (e.g. "Job") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} + // PromoteReleaseOperation: Output only. Promotes a release to a + // specified 'Target'. + PromoteReleaseOperation *PromoteReleaseOperation `json:"promoteReleaseOperation,omitempty"` -func (s *CloudRunMetadata) MarshalJSON() ([]byte, error) { - type NoMethod CloudRunMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // RepairRolloutOperation: Output only. Repairs a failed 'Rollout'. + RepairRolloutOperation *RepairRolloutOperation `json:"repairRolloutOperation,omitempty"` -// CloudRunRenderMetadata: CloudRunRenderMetadata contains Cloud Run -// information associated with a `Release` render. -type CloudRunRenderMetadata struct { - // Service: Output only. The name of the Cloud Run Service in the - // rendered manifest. Format is - // projects/{project}/locations/{location}/services/{service}. - Service string `json:"service,omitempty"` + // RuleId: Output only. The ID of the automation rule that initiated the + // operation. + RuleId string `json:"ruleId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Service") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` + // ServiceAccount: Output only. Email address of the user-managed IAM + // service account that performs the operations against Cloud Deploy + // resources. + ServiceAccount string `json:"serviceAccount,omitempty"` - // NullFields is a list of field names (e.g. "Service") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} + // State: Output only. Current state of the `AutomationRun`. + // + // Possible values: + // "STATE_UNSPECIFIED" - The `AutomationRun` has an unspecified state. + // "SUCCEEDED" - The `AutomationRun` has succeeded. + // "CANCELLED" - The `AutomationRun` was cancelled. + // "FAILED" - The `AutomationRun` has failed. + // "IN_PROGRESS" - The `AutomationRun` is in progress. + // "PENDING" - The `AutomationRun` is pending. + State string `json:"state,omitempty"` -func (s *CloudRunRenderMetadata) MarshalJSON() ([]byte, error) { - type NoMethod CloudRunRenderMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // StateDescription: Output only. Explains the current state of the + // `AutomationRun`. Present only an explanation is needed. + StateDescription string `json:"stateDescription,omitempty"` -// Config: Service-wide configuration. -type Config struct { - // DefaultSkaffoldVersion: Default Skaffold version that is assigned - // when a Release is created without specifying a Skaffold version. - DefaultSkaffoldVersion string `json:"defaultSkaffoldVersion,omitempty"` + // TargetId: Output only. The ID of the target that represents the + // promotion stage that initiates the `AutomationRun`. The value of this + // field is the last segment of a target name. + TargetId string `json:"targetId,omitempty"` - // Name: Name of the configuration. - Name string `json:"name,omitempty"` + // UpdateTime: Output only. Time at which the automationRun was updated. + UpdateTime string `json:"updateTime,omitempty"` - // SupportedVersions: All supported versions of Skaffold. - SupportedVersions []*SkaffoldVersion `json:"supportedVersions,omitempty"` + // WaitUntilTime: Output only. Earliest time the `AutomationRun` will + // attempt to resume. Wait-time is configured by `wait` in automation + // rule. + WaitUntilTime string `json:"waitUntilTime,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. - // "DefaultSkaffoldVersion") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // "AdvanceRolloutOperation") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DefaultSkaffoldVersion") + // NullFields is a list of field names (e.g. "AdvanceRolloutOperation") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the @@ -1027,30 +1000,53 @@ type Config struct { NullFields []string `json:"-"` } -func (s *Config) MarshalJSON() ([]byte, error) { - type NoMethod Config +func (s *AutomationRun) MarshalJSON() ([]byte, error) { + type NoMethod AutomationRun raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CreateChildRolloutJob: A createChildRollout Job. -type CreateChildRolloutJob struct { -} +// AutomationRunEvent: Payload proto for +// "clouddeploy.googleapis.com/automation_run" Platform Log event that +// describes the AutomationRun related events. +type AutomationRunEvent struct { + // AutomationId: Identifier of the `Automation`. + AutomationId string `json:"automationId,omitempty"` -// CreateChildRolloutJobRun: CreateChildRolloutJobRun contains -// information specific to a createChildRollout `JobRun`. -type CreateChildRolloutJobRun struct { - // Rollout: Output only. Name of the `ChildRollout`. Format is - // projects/{project}/ - // locations/{location}/deliveryPipelines/{deliveryPipeline}/ - // releases/{release}/rollouts/a-z{0,62}. - Rollout string `json:"rollout,omitempty"` + // AutomationRun: The name of the `AutomationRun`. + AutomationRun string `json:"automationRun,omitempty"` - // RolloutPhaseId: Output only. The ID of the childRollout Phase - // initiated by this JobRun. - RolloutPhaseId string `json:"rolloutPhaseId,omitempty"` + // DestinationTargetId: ID of the `Target` to which the `AutomationRun` + // is created. + DestinationTargetId string `json:"destinationTargetId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Rollout") to + // Message: Debug message for when there is an update on the + // AutomationRun. Provides further details about the resource creation + // or state change. + Message string `json:"message,omitempty"` + + // PipelineUid: Unique identifier of the `DeliveryPipeline`. + PipelineUid string `json:"pipelineUid,omitempty"` + + // RuleId: Identifier of the `Automation` rule. + RuleId string `json:"ruleId,omitempty"` + + // Type: Type of this notification, e.g. for a Pub/Sub failure. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Type is unspecified. + // "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed + // to be sent. + // "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed. + // "TYPE_PROCESS_ABORTED" - A process aborted. + // "TYPE_RESTRICTION_VIOLATED" - Restriction check failed. + // "TYPE_RESOURCE_DELETED" - Resource deleted. + // "TYPE_ROLLOUT_UPDATE" - Rollout updated. + // "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never + // used. Use release_render log type instead. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AutomationId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1058,29 +1054,77 @@ type CreateChildRolloutJobRun struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Rollout") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "AutomationId") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *CreateChildRolloutJobRun) MarshalJSON() ([]byte, error) { - type NoMethod CreateChildRolloutJobRun +func (s *AutomationRunEvent) MarshalJSON() ([]byte, error) { + type NoMethod AutomationRunEvent raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CustomCanaryDeployment: CustomCanaryDeployment represents the custom -// canary deployment configuration. -type CustomCanaryDeployment struct { - // PhaseConfigs: Required. Configuration for each phase in the canary - // deployment in the order executed. - PhaseConfigs []*PhaseConfig `json:"phaseConfigs,omitempty"` +// Binding: Associates `members`, or principals, with a `role`. +type Binding struct { + // Condition: The condition that is associated with this binding. If the + // condition evaluates to `true`, then this binding applies to the + // current request. If the condition evaluates to `false`, then this + // binding does not apply to the current request. However, a different + // role binding might grant the same role to one or more of the + // principals in this binding. To learn which resources support + // conditions in their IAM policies, see the IAM documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). + Condition *Expr `json:"condition,omitempty"` - // ForceSendFields is a list of field names (e.g. "PhaseConfigs") to + // Members: Specifies the principals requesting access for a Google + // Cloud resource. `members` can have the following values: * + // `allUsers`: A special identifier that represents anyone who is on the + // internet; with or without a Google account. * + // `allAuthenticatedUsers`: A special identifier that represents anyone + // who is authenticated with a Google account or a service account. Does + // not include identities that come from external identity providers + // (IdPs) through identity federation. * `user:{emailid}`: An email + // address that represents a specific Google account. For example, + // `alice@example.com` . * `serviceAccount:{emailid}`: An email address + // that represents a Google service account. For example, + // `my-other-app@appspot.gserviceaccount.com`. * + // `serviceAccount:{projectid}.svc.id.goog[{namespace}/{kubernetes-sa}]`: + // An identifier for a Kubernetes service account + // (https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). + // For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. + // * `group:{emailid}`: An email address that represents a Google group. + // For example, `admins@example.com`. * `domain:{domain}`: The G Suite + // domain (primary) that represents all the users of that domain. For + // example, `google.com` or `example.com`. * + // `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus + // unique identifier) representing a user that has been recently + // deleted. For example, `alice@example.com?uid=123456789012345678901`. + // If the user is recovered, this value reverts to `user:{emailid}` and + // the recovered user retains the role in the binding. * + // `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address + // (plus unique identifier) representing a service account that has been + // recently deleted. For example, + // `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + // If the service account is undeleted, this value reverts to + // `serviceAccount:{emailid}` and the undeleted service account retains + // the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: + // An email address (plus unique identifier) representing a Google group + // that has been recently deleted. For example, + // `admins@example.com?uid=123456789012345678901`. If the group is + // recovered, this value reverts to `group:{emailid}` and the recovered + // group retains the role in the binding. + Members []string `json:"members,omitempty"` + + // Role: Role that is assigned to the list of `members`, or principals. + // For example, `roles/viewer`, `roles/editor`, or `roles/owner`. + Role string `json:"role,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1088,46 +1132,33 @@ type CustomCanaryDeployment struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "PhaseConfigs") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Condition") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *CustomCanaryDeployment) MarshalJSON() ([]byte, error) { - type NoMethod CustomCanaryDeployment +func (s *Binding) MarshalJSON() ([]byte, error) { + type NoMethod Binding raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Date: Represents a whole or partial calendar date, such as a -// birthday. The time of day and time zone are either specified -// elsewhere or are insignificant. The date is relative to the Gregorian -// Calendar. This can represent one of the following: * A full date, -// with non-zero year, month, and day values. * A month and day, with a -// zero year (for example, an anniversary). * A year on its own, with a -// zero month and a zero day. * A year and month, with a zero day (for -// example, a credit card expiration date). Related types: * -// google.type.TimeOfDay * google.type.DateTime * -// google.protobuf.Timestamp -type Date struct { - // Day: Day of a month. Must be from 1 to 31 and valid for the year and - // month, or 0 to specify a year by itself or a year and month where the - // day isn't significant. - Day int64 `json:"day,omitempty"` - - // Month: Month of a year. Must be from 1 to 12, or 0 to specify a year - // without a month and day. - Month int64 `json:"month,omitempty"` +// BuildArtifact: Description of an a image to use during Skaffold +// rendering. +type BuildArtifact struct { + // Image: Image name in Skaffold configuration. + Image string `json:"image,omitempty"` - // Year: Year of the date. Must be from 1 to 9999, or 0 to specify a - // date without a year. - Year int64 `json:"year,omitempty"` + // Tag: Image tag to use. This will generally be the full path to an + // image, such as "gcr.io/my-project/busybox:1.2.3" or + // "gcr.io/my-project/busybox@sha256:abc123". + Tag string `json:"tag,omitempty"` - // ForceSendFields is a list of field names (e.g. "Day") to + // ForceSendFields is a list of field names (e.g. "Image") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1135,7 +1166,7 @@ type Date struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Day") to include in API + // NullFields is a list of field names (e.g. "Image") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -1144,27 +1175,30 @@ type Date struct { NullFields []string `json:"-"` } -func (s *Date) MarshalJSON() ([]byte, error) { - type NoMethod Date +func (s *BuildArtifact) MarshalJSON() ([]byte, error) { + type NoMethod BuildArtifact raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DefaultPool: Execution using the default Cloud Build pool. -type DefaultPool struct { - // ArtifactStorage: Optional. Cloud Storage location where execution - // outputs should be stored. This can either be a bucket - // ("gs://my-bucket") or a path within a bucket - // ("gs://my-bucket/my-dir"). If unspecified, a default bucket located - // in the same region will be used. - ArtifactStorage string `json:"artifactStorage,omitempty"` +// Canary: Canary represents the canary deployment strategy. +type Canary struct { + // CanaryDeployment: Configures the progressive based deployment for a + // Target. + CanaryDeployment *CanaryDeployment `json:"canaryDeployment,omitempty"` - // ServiceAccount: Optional. Google service account to use for - // execution. If unspecified, the project execution service account - // (-compute@developer.gserviceaccount.com) will be used. - ServiceAccount string `json:"serviceAccount,omitempty"` + // CustomCanaryDeployment: Configures the progressive based deployment + // for a Target, but allows customizing at the phase level where a phase + // represents each of the percentage deployments. + CustomCanaryDeployment *CustomCanaryDeployment `json:"customCanaryDeployment,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArtifactStorage") to + // RuntimeConfig: Optional. Runtime specific configurations for the + // deployment strategy. The runtime configuration is used to determine + // how Cloud Deploy will split traffic to enable a progressive + // deployment. + RuntimeConfig *RuntimeConfig `json:"runtimeConfig,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CanaryDeployment") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1172,7 +1206,7 @@ type DefaultPool struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ArtifactStorage") to + // NullFields is a list of field names (e.g. "CanaryDeployment") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -1182,153 +1216,159 @@ type DefaultPool struct { NullFields []string `json:"-"` } -func (s *DefaultPool) MarshalJSON() ([]byte, error) { - type NoMethod DefaultPool +func (s *Canary) MarshalJSON() ([]byte, error) { + type NoMethod Canary raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DeliveryPipeline: A `DeliveryPipeline` resource in the Cloud Deploy -// API. A `DeliveryPipeline` defines a pipeline through which a Skaffold -// configuration can progress. -type DeliveryPipeline struct { - // Annotations: User annotations. These attributes can only be set and - // used by the user, and not by Cloud Deploy. - Annotations map[string]string `json:"annotations,omitempty"` +// CanaryDeployment: CanaryDeployment represents the canary deployment +// configuration +type CanaryDeployment struct { + // Percentages: Required. The percentage based deployments that will + // occur as a part of a `Rollout`. List is expected in ascending order + // and each integer n is 0 <= n < 100. + Percentages []int64 `json:"percentages,omitempty"` - // Condition: Output only. Information around the state of the Delivery - // Pipeline. - Condition *PipelineCondition `json:"condition,omitempty"` + // Postdeploy: Optional. Configuration for the postdeploy job of the + // last phase. If this is not configured, there will be no postdeploy + // job for this phase. + Postdeploy *Postdeploy `json:"postdeploy,omitempty"` - // CreateTime: Output only. Time at which the pipeline was created. - CreateTime string `json:"createTime,omitempty"` + // Predeploy: Optional. Configuration for the predeploy job of the first + // phase. If this is not configured, there will be no predeploy job for + // this phase. + Predeploy *Predeploy `json:"predeploy,omitempty"` - // Description: Description of the `DeliveryPipeline`. Max length is 255 - // characters. - Description string `json:"description,omitempty"` + // Verify: Whether to run verify tests after each percentage deployment. + Verify bool `json:"verify,omitempty"` - // Etag: This checksum is computed by the server based on the value of - // other fields, and may be sent on update and delete requests to ensure - // the client has an up-to-date value before proceeding. - Etag string `json:"etag,omitempty"` + // ForceSendFields is a list of field names (e.g. "Percentages") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` - // Labels: Labels are attributes that can be set and used by both the - // user and by Cloud Deploy. Labels must meet the following constraints: - // * Keys and values can contain only lowercase letters, numeric - // characters, underscores, and dashes. * All characters must use UTF-8 - // encoding, and international characters are allowed. * Keys must start - // with a lowercase letter or international character. * Each resource - // is limited to a maximum of 64 labels. Both keys and values are - // additionally constrained to be <= 128 bytes. - Labels map[string]string `json:"labels,omitempty"` + // NullFields is a list of field names (e.g. "Percentages") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} - // Name: Optional. Name of the `DeliveryPipeline`. Format is - // projects/{project}/ locations/{location}/deliveryPipelines/a-z{0,62}. - Name string `json:"name,omitempty"` +func (s *CanaryDeployment) MarshalJSON() ([]byte, error) { + type NoMethod CanaryDeployment + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} - // SerialPipeline: SerialPipeline defines a sequential set of stages for - // a `DeliveryPipeline`. - SerialPipeline *SerialPipeline `json:"serialPipeline,omitempty"` +// CancelAutomationRunRequest: The request object used by +// `CancelAutomationRun`. +type CancelAutomationRunRequest struct { +} - // Suspended: When suspended, no new releases or rollouts can be - // created, but in-progress ones will complete. - Suspended bool `json:"suspended,omitempty"` +// CancelAutomationRunResponse: The response object from +// `CancelAutomationRun`. +type CancelAutomationRunResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} - // Uid: Output only. Unique identifier of the `DeliveryPipeline`. - Uid string `json:"uid,omitempty"` +// CancelOperationRequest: The request message for +// Operations.CancelOperation. +type CancelOperationRequest struct { +} - // UpdateTime: Output only. Most recent time at which the pipeline was - // updated. - UpdateTime string `json:"updateTime,omitempty"` +// CancelRolloutRequest: The request object used by `CancelRollout`. +type CancelRolloutRequest struct { +} +// CancelRolloutResponse: The response object from `CancelRollout`. +type CancelRolloutResponse struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` +} - // ForceSendFields is a list of field names (e.g. "Annotations") to - // unconditionally include in API requests. By default, fields with +// ChildRolloutJobs: ChildRollouts job composition +type ChildRolloutJobs struct { + // AdvanceRolloutJobs: Output only. List of AdvanceChildRolloutJobs + AdvanceRolloutJobs []*Job `json:"advanceRolloutJobs,omitempty"` + + // CreateRolloutJobs: Output only. List of CreateChildRolloutJobs + CreateRolloutJobs []*Job `json:"createRolloutJobs,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AdvanceRolloutJobs") + // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Annotations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AdvanceRolloutJobs") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } -func (s *DeliveryPipeline) MarshalJSON() ([]byte, error) { - type NoMethod DeliveryPipeline +func (s *ChildRolloutJobs) MarshalJSON() ([]byte, error) { + type NoMethod ChildRolloutJobs raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DeliveryPipelineNotificationEvent: Payload proto for -// "clouddeploy.googleapis.com/deliverypipeline_notification" Platform -// Log event that describes the failure to send delivery pipeline status -// change Pub/Sub notification. -type DeliveryPipelineNotificationEvent struct { - // DeliveryPipeline: The name of the `Delivery Pipeline`. - DeliveryPipeline string `json:"deliveryPipeline,omitempty"` - - // Message: Debug message for when a notification fails to send. - Message string `json:"message,omitempty"` - - // Type: Type of this notification, e.g. for a Pub/Sub failure. - // - // Possible values: - // "TYPE_UNSPECIFIED" - Type is unspecified. - // "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed - // to be sent. - // "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed. - // "TYPE_PROCESS_ABORTED" - A process aborted. - // "TYPE_RESTRICTION_VIOLATED" - Restriction check failed. - // "TYPE_RESOURCE_DELETED" - Resource deleted. - // "TYPE_ROLLOUT_UPDATE" - Rollout updated. - // "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never - // used. Use release_render log type instead. - Type string `json:"type,omitempty"` +// CloudRunConfig: CloudRunConfig contains the Cloud Run runtime +// configuration. +type CloudRunConfig struct { + // AutomaticTrafficControl: Whether Cloud Deploy should update the + // traffic stanza in a Cloud Run Service on the user's behalf to + // facilitate traffic splitting. This is required to be true for + // CanaryDeployments, but optional for CustomCanaryDeployments. + AutomaticTrafficControl bool `json:"automaticTrafficControl,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeliveryPipeline") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. + // "AutomaticTrafficControl") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DeliveryPipeline") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the + // NullFields is a list of field names (e.g. "AutomaticTrafficControl") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` } -func (s *DeliveryPipelineNotificationEvent) MarshalJSON() ([]byte, error) { - type NoMethod DeliveryPipelineNotificationEvent +func (s *CloudRunConfig) MarshalJSON() ([]byte, error) { + type NoMethod CloudRunConfig raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DeployArtifact: The artifacts produced by a deploy operation. -type DeployArtifact struct { - // ArtifactUri: Output only. URI of a directory containing the - // artifacts. All paths are relative to this location. - ArtifactUri string `json:"artifactUri,omitempty"` - - // ManifestPaths: Output only. File paths of the manifests applied - // during the deploy operation relative to the URI. - ManifestPaths []string `json:"manifestPaths,omitempty"` +// CloudRunLocation: Information specifying where to deploy a Cloud Run +// Service. +type CloudRunLocation struct { + // Location: Required. The location for the Cloud Run Service. Format + // must be `projects/{project}/locations/{location}`. + Location string `json:"location,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArtifactUri") to + // 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. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1336,68 +1376,43 @@ type DeployArtifact struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ArtifactUri") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // 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. However, any field with an + // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *DeployArtifact) MarshalJSON() ([]byte, error) { - type NoMethod DeployArtifact +func (s *CloudRunLocation) MarshalJSON() ([]byte, error) { + type NoMethod CloudRunLocation raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DeployJob: A deploy Job. -type DeployJob struct { -} - -// DeployJobRun: DeployJobRun contains information specific to a deploy -// `JobRun`. -type DeployJobRun struct { - // Artifact: Output only. The artifact of a deploy job run, if - // available. - Artifact *DeployArtifact `json:"artifact,omitempty"` - - // Build: Output only. The resource name of the Cloud Build `Build` - // object that is used to deploy. Format is - // projects/{project}/locations/{location}/builds/{build}. - Build string `json:"build,omitempty"` +// CloudRunMetadata: CloudRunMetadata contains information from a Cloud +// Run deployment. +type CloudRunMetadata struct { + // Job: Output only. The name of the Cloud Run job that is associated + // with a `Rollout`. Format is + // projects/{project}/locations/{location}/jobs/{job_name}. + Job string `json:"job,omitempty"` - // FailureCause: Output only. The reason the deploy failed. This will - // always be unspecified while the deploy is in progress or if it - // succeeded. - // - // Possible values: - // "FAILURE_CAUSE_UNSPECIFIED" - No reason for failure is specified. - // "CLOUD_BUILD_UNAVAILABLE" - Cloud Build is not available, either - // because it is not enabled or because Cloud Deploy has insufficient - // permissions. See [Required - // permission](https://cloud.google.com/deploy/docs/cloud-deploy-service- - // account#required_permissions). - // "EXECUTION_FAILED" - The deploy operation did not complete - // successfully; check Cloud Build logs. - // "DEADLINE_EXCEEDED" - The deploy job run did not complete within - // the alloted time. - // "MISSING_RESOURCES_FOR_CANARY" - There were missing resources in - // the runtime environment required for a canary deployment. Check the - // Cloud Build logs for more information. - // "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Cloud - // Deploy's request. See failure_message for additional details. - FailureCause string `json:"failureCause,omitempty"` + // Revision: Output only. The Cloud Run Revision id associated with a + // `Rollout`. + Revision string `json:"revision,omitempty"` - // FailureMessage: Output only. Additional information about the deploy - // failure, if available. - FailureMessage string `json:"failureMessage,omitempty"` + // Service: Output only. The name of the Cloud Run Service that is + // associated with a `Rollout`. Format is + // projects/{project}/locations/{location}/services/{service}. + Service string `json:"service,omitempty"` - // Metadata: Output only. Metadata containing information about the - // deploy job run. - Metadata *DeployJobRunMetadata `json:"metadata,omitempty"` + // ServiceUrls: Output only. The Cloud Run Service urls that are + // associated with a `Rollout`. + ServiceUrls []string `json:"serviceUrls,omitempty"` - // ForceSendFields is a list of field names (e.g. "Artifact") to + // ForceSendFields is a list of field names (e.g. "Job") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1405,8 +1420,8 @@ type DeployJobRun struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Artifact") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Job") to include in API + // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -1414,20 +1429,21 @@ type DeployJobRun struct { NullFields []string `json:"-"` } -func (s *DeployJobRun) MarshalJSON() ([]byte, error) { - type NoMethod DeployJobRun +func (s *CloudRunMetadata) MarshalJSON() ([]byte, error) { + type NoMethod CloudRunMetadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DeployJobRunMetadata: DeployJobRunMetadata surfaces information -// associated with a `DeployJobRun` to the user. -type DeployJobRunMetadata struct { - // CloudRun: Output only. The name of the Cloud Run Service that is - // associated with a `DeployJobRun`. - CloudRun *CloudRunMetadata `json:"cloudRun,omitempty"` +// CloudRunRenderMetadata: CloudRunRenderMetadata contains Cloud Run +// information associated with a `Release` render. +type CloudRunRenderMetadata struct { + // Service: Output only. The name of the Cloud Run Service in the + // rendered manifest. Format is + // projects/{project}/locations/{location}/services/{service}. + Service string `json:"service,omitempty"` - // ForceSendFields is a list of field names (e.g. "CloudRun") to + // ForceSendFields is a list of field names (e.g. "Service") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1435,7 +1451,7 @@ type DeployJobRunMetadata struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CloudRun") to include in + // NullFields is a list of field names (e.g. "Service") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -1444,66 +1460,71 @@ type DeployJobRunMetadata struct { NullFields []string `json:"-"` } -func (s *DeployJobRunMetadata) MarshalJSON() ([]byte, error) { - type NoMethod DeployJobRunMetadata +func (s *CloudRunRenderMetadata) MarshalJSON() ([]byte, error) { + type NoMethod CloudRunRenderMetadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DeployParameters: DeployParameters contains deploy parameters -// information. -type DeployParameters struct { - // MatchTargetLabels: Optional. Deploy parameters are applied to targets - // with match labels. If unspecified, deploy parameters are applied to - // all targets (including child targets of a multi-target). - MatchTargetLabels map[string]string `json:"matchTargetLabels,omitempty"` - - // Values: Required. Values are deploy parameters in key-value pairs. - Values map[string]string `json:"values,omitempty"` +// Config: Service-wide configuration. +type Config struct { + // DefaultSkaffoldVersion: Default Skaffold version that is assigned + // when a Release is created without specifying a Skaffold version. + DefaultSkaffoldVersion string `json:"defaultSkaffoldVersion,omitempty"` - // ForceSendFields is a list of field names (e.g. "MatchTargetLabels") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // Name: Name of the configuration. + Name string `json:"name,omitempty"` + + // SupportedVersions: All supported versions of Skaffold. + SupportedVersions []*SkaffoldVersion `json:"supportedVersions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. + // "DefaultSkaffoldVersion") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MatchTargetLabels") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the + // NullFields is a list of field names (e.g. "DefaultSkaffoldVersion") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` } -func (s *DeployParameters) MarshalJSON() ([]byte, error) { - type NoMethod DeployParameters +func (s *Config) MarshalJSON() ([]byte, error) { + type NoMethod Config raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DeploymentJobs: Deployment job composition. -type DeploymentJobs struct { - // DeployJob: Output only. The deploy Job. This is the deploy job in the - // phase. - DeployJob *Job `json:"deployJob,omitempty"` - - // PostdeployJob: Output only. The postdeploy Job, which is the last job - // on the phase. - PostdeployJob *Job `json:"postdeployJob,omitempty"` +// CreateChildRolloutJob: A createChildRollout Job. +type CreateChildRolloutJob struct { +} - // PredeployJob: Output only. The predeploy Job, which is the first job - // on the phase. - PredeployJob *Job `json:"predeployJob,omitempty"` +// CreateChildRolloutJobRun: CreateChildRolloutJobRun contains +// information specific to a createChildRollout `JobRun`. +type CreateChildRolloutJobRun struct { + // Rollout: Output only. Name of the `ChildRollout`. Format is + // projects/{project}/ + // locations/{location}/deliveryPipelines/{deliveryPipeline}/ + // releases/{release}/rollouts/a-z{0,62}. + Rollout string `json:"rollout,omitempty"` - // VerifyJob: Output only. The verify Job. Runs after a deploy if the - // deploy succeeds. - VerifyJob *Job `json:"verifyJob,omitempty"` + // RolloutPhaseId: Output only. The ID of the childRollout Phase + // initiated by this JobRun. + RolloutPhaseId string `json:"rolloutPhaseId,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeployJob") to + // ForceSendFields is a list of field names (e.g. "Rollout") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1511,7 +1532,7 @@ type DeploymentJobs struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DeployJob") to include in + // NullFields is a list of field names (e.g. "Rollout") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -1520,129 +1541,20 @@ type DeploymentJobs struct { NullFields []string `json:"-"` } -func (s *DeploymentJobs) MarshalJSON() ([]byte, error) { - type NoMethod DeploymentJobs - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// Empty: 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); } -type Empty struct { - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` -} - -// ExecutionConfig: Configuration of the environment to use when calling -// Skaffold. -type ExecutionConfig struct { - // ArtifactStorage: Optional. Cloud Storage location in which to store - // execution outputs. This can either be a bucket ("gs://my-bucket") or - // a path within a bucket ("gs://my-bucket/my-dir"). If unspecified, a - // default bucket located in the same region will be used. - ArtifactStorage string `json:"artifactStorage,omitempty"` - - // DefaultPool: Optional. Use default Cloud Build pool. - DefaultPool *DefaultPool `json:"defaultPool,omitempty"` - - // ExecutionTimeout: Optional. Execution timeout for a Cloud Build - // Execution. This must be between 10m and 24h in seconds format. If - // unspecified, a default timeout of 1h is used. - ExecutionTimeout string `json:"executionTimeout,omitempty"` - - // PrivatePool: Optional. Use private Cloud Build pool. - PrivatePool *PrivatePool `json:"privatePool,omitempty"` - - // ServiceAccount: Optional. Google service account to use for - // execution. If unspecified, the project execution service account - // (-compute@developer.gserviceaccount.com) is used. - ServiceAccount string `json:"serviceAccount,omitempty"` - - // Usages: Required. Usages when this configuration should be applied. - // - // Possible values: - // "EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED" - Default value. This - // value is unused. - // "RENDER" - Use for rendering. - // "DEPLOY" - Use for deploying and deployment hooks. - // "VERIFY" - Use for deployment verification. - // "PREDEPLOY" - Use for predeploy job execution. - // "POSTDEPLOY" - Use for postdeploy job execution. - Usages []string `json:"usages,omitempty"` - - // WorkerPool: Optional. The resource name of the `WorkerPool`, with the - // format - // `projects/{project}/locations/{location}/workerPools/{worker_pool}`. - // If this optional field is unspecified, the default Cloud Build pool - // will be used. - WorkerPool string `json:"workerPool,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ArtifactStorage") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ArtifactStorage") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *ExecutionConfig) MarshalJSON() ([]byte, error) { - type NoMethod ExecutionConfig +func (s *CreateChildRolloutJobRun) MarshalJSON() ([]byte, error) { + type NoMethod CreateChildRolloutJobRun raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Expr: Represents a textual expression in the Common Expression -// Language (CEL) syntax. CEL is a C-like expression language. The -// syntax and semantics of CEL are documented at -// https://github.com/google/cel-spec. Example (Comparison): title: -// "Summary size limit" description: "Determines if a summary is less -// than 100 chars" expression: "document.summary.size() < 100" Example -// (Equality): title: "Requestor is owner" description: "Determines if -// requestor is the document owner" expression: "document.owner == -// request.auth.claims.email" Example (Logic): title: "Public documents" -// description: "Determine whether the document should be publicly -// visible" expression: "document.type != 'private' && document.type != -// 'internal'" Example (Data Manipulation): title: "Notification string" -// description: "Create a notification string with a timestamp." -// expression: "'New message received at ' + -// string(document.create_time)" The exact variables and functions that -// may be referenced within an expression are determined by the service -// that evaluates it. See the service documentation for additional -// information. -type Expr struct { - // Description: Optional. Description of the expression. This is a - // longer text which describes the expression, e.g. when hovered over it - // in a UI. - Description string `json:"description,omitempty"` - - // Expression: Textual representation of an expression in Common - // Expression Language syntax. - Expression string `json:"expression,omitempty"` - - // Location: Optional. String indicating the location of the expression - // for error reporting, e.g. a file name and a position in the file. - Location string `json:"location,omitempty"` - - // Title: Optional. Title for the expression, i.e. a short string - // describing its purpose. This can be used e.g. in UIs which allow to - // enter the expression. - Title string `json:"title,omitempty"` +// CustomCanaryDeployment: CustomCanaryDeployment represents the custom +// canary deployment configuration. +type CustomCanaryDeployment struct { + // PhaseConfigs: Required. Configuration for each phase in the canary + // deployment in the order executed. + PhaseConfigs []*PhaseConfig `json:"phaseConfigs,omitempty"` - // ForceSendFields is a list of field names (e.g. "Description") to + // ForceSendFields is a list of field names (e.g. "PhaseConfigs") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1650,7 +1562,7 @@ type Expr struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Description") to include + // NullFields is a list of field names (e.g. "PhaseConfigs") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as @@ -1659,31 +1571,37 @@ type Expr struct { NullFields []string `json:"-"` } -func (s *Expr) MarshalJSON() ([]byte, error) { - type NoMethod Expr +func (s *CustomCanaryDeployment) MarshalJSON() ([]byte, error) { + type NoMethod CustomCanaryDeployment raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GatewayServiceMesh: Information about the Kubernetes Gateway API -// service mesh configuration. -type GatewayServiceMesh struct { - // Deployment: Required. Name of the Kubernetes Deployment whose traffic - // is managed by the specified HTTPRoute and Service. - Deployment string `json:"deployment,omitempty"` - - // HttpRoute: Required. Name of the Gateway API HTTPRoute. - HttpRoute string `json:"httpRoute,omitempty"` +// Date: Represents a whole or partial calendar date, such as a +// birthday. The time of day and time zone are either specified +// elsewhere or are insignificant. The date is relative to the Gregorian +// Calendar. This can represent one of the following: * A full date, +// with non-zero year, month, and day values. * A month and day, with a +// zero year (for example, an anniversary). * A year on its own, with a +// zero month and a zero day. * A year and month, with a zero day (for +// example, a credit card expiration date). Related types: * +// google.type.TimeOfDay * google.type.DateTime * +// google.protobuf.Timestamp +type Date struct { + // Day: Day of a month. Must be from 1 to 31 and valid for the year and + // month, or 0 to specify a year by itself or a year and month where the + // day isn't significant. + Day int64 `json:"day,omitempty"` - // RouteUpdateWaitTime: Optional. The time to wait for route updates to - // propagate. The maximum configurable time is 3 hours, in seconds - // format. If unspecified, there is no wait time. - RouteUpdateWaitTime string `json:"routeUpdateWaitTime,omitempty"` + // Month: Month of a year. Must be from 1 to 12, or 0 to specify a year + // without a month and day. + Month int64 `json:"month,omitempty"` - // Service: Required. Name of the Kubernetes Service. - Service string `json:"service,omitempty"` + // Year: Year of the date. Must be from 1 to 9999, or 0 to specify a + // date without a year. + Year int64 `json:"year,omitempty"` - // ForceSendFields is a list of field names (e.g. "Deployment") to + // ForceSendFields is a list of field names (e.g. "Day") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1691,8 +1609,8 @@ type GatewayServiceMesh struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Deployment") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Day") to include in API + // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -1700,28 +1618,27 @@ type GatewayServiceMesh struct { NullFields []string `json:"-"` } -func (s *GatewayServiceMesh) MarshalJSON() ([]byte, error) { - type NoMethod GatewayServiceMesh +func (s *Date) MarshalJSON() ([]byte, error) { + type NoMethod Date raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// GkeCluster: Information specifying a GKE Cluster. -type GkeCluster struct { - // Cluster: Information specifying a GKE Cluster. Format is - // `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}. - Cluster string `json:"cluster,omitempty"` +// DefaultPool: Execution using the default Cloud Build pool. +type DefaultPool struct { + // ArtifactStorage: Optional. Cloud Storage location where execution + // outputs should be stored. This can either be a bucket + // ("gs://my-bucket") or a path within a bucket + // ("gs://my-bucket/my-dir"). If unspecified, a default bucket located + // in the same region will be used. + ArtifactStorage string `json:"artifactStorage,omitempty"` - // InternalIp: Optional. If true, `cluster` is accessed using the - // private IP address of the control plane endpoint. Otherwise, the - // default IP address of the control plane endpoint is used. The default - // IP address is the private IP address for clusters with private - // control-plane endpoints and the public IP address otherwise. Only - // specify this option when `cluster` is a private GKE cluster - // (https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). - InternalIp bool `json:"internalIp,omitempty"` + // ServiceAccount: Optional. Google service account to use for + // execution. If unspecified, the project execution service account + // (-compute@developer.gserviceaccount.com) will be used. + ServiceAccount string `json:"serviceAccount,omitempty"` - // ForceSendFields is a list of field names (e.g. "Cluster") to + // ForceSendFields is a list of field names (e.g. "ArtifactStorage") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1729,30 +1646,80 @@ type GkeCluster struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Cluster") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ArtifactStorage") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } -func (s *GkeCluster) MarshalJSON() ([]byte, error) { - type NoMethod GkeCluster +func (s *DefaultPool) MarshalJSON() ([]byte, error) { + type NoMethod DefaultPool raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// IgnoreJobRequest: The request object used by `IgnoreJob`. -type IgnoreJobRequest struct { - // JobId: Required. The job ID for the Job to ignore. - JobId string `json:"jobId,omitempty"` +// DeliveryPipeline: A `DeliveryPipeline` resource in the Cloud Deploy +// API. A `DeliveryPipeline` defines a pipeline through which a Skaffold +// configuration can progress. +type DeliveryPipeline struct { + // Annotations: User annotations. These attributes can only be set and + // used by the user, and not by Cloud Deploy. + Annotations map[string]string `json:"annotations,omitempty"` - // PhaseId: Required. The phase ID the Job to ignore belongs to. - PhaseId string `json:"phaseId,omitempty"` + // Condition: Output only. Information around the state of the Delivery + // Pipeline. + Condition *PipelineCondition `json:"condition,omitempty"` - // ForceSendFields is a list of field names (e.g. "JobId") to + // CreateTime: Output only. Time at which the pipeline was created. + CreateTime string `json:"createTime,omitempty"` + + // Description: Description of the `DeliveryPipeline`. Max length is 255 + // characters. + Description string `json:"description,omitempty"` + + // Etag: This checksum is computed by the server based on the value of + // other fields, and may be sent on update and delete requests to ensure + // the client has an up-to-date value before proceeding. + Etag string `json:"etag,omitempty"` + + // Labels: Labels are attributes that can be set and used by both the + // user and by Cloud Deploy. Labels must meet the following constraints: + // * Keys and values can contain only lowercase letters, numeric + // characters, underscores, and dashes. * All characters must use UTF-8 + // encoding, and international characters are allowed. * Keys must start + // with a lowercase letter or international character. * Each resource + // is limited to a maximum of 64 labels. Both keys and values are + // additionally constrained to be <= 128 bytes. + Labels map[string]string `json:"labels,omitempty"` + + // Name: Optional. Name of the `DeliveryPipeline`. Format is + // projects/{project}/ locations/{location}/deliveryPipelines/a-z{0,62}. + Name string `json:"name,omitempty"` + + // SerialPipeline: SerialPipeline defines a sequential set of stages for + // a `DeliveryPipeline`. + SerialPipeline *SerialPipeline `json:"serialPipeline,omitempty"` + + // Suspended: When suspended, no new releases or rollouts can be + // created, but in-progress ones will complete. + Suspended bool `json:"suspended,omitempty"` + + // Uid: Output only. Unique identifier of the `DeliveryPipeline`. + Uid string `json:"uid,omitempty"` + + // UpdateTime: Output only. Most recent time at which the pipeline was + // updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Annotations") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1760,235 +1727,151 @@ type IgnoreJobRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "JobId") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Annotations") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *IgnoreJobRequest) MarshalJSON() ([]byte, error) { - type NoMethod IgnoreJobRequest +func (s *DeliveryPipeline) MarshalJSON() ([]byte, error) { + type NoMethod DeliveryPipeline raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// IgnoreJobResponse: The response object from `IgnoreJob`. -type IgnoreJobResponse struct { - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` -} - -// Job: Job represents an operation for a `Rollout`. -type Job struct { - // AdvanceChildRolloutJob: Output only. An advanceChildRollout Job. - AdvanceChildRolloutJob *AdvanceChildRolloutJob `json:"advanceChildRolloutJob,omitempty"` - - // CreateChildRolloutJob: Output only. A createChildRollout Job. - CreateChildRolloutJob *CreateChildRolloutJob `json:"createChildRolloutJob,omitempty"` - - // DeployJob: Output only. A deploy Job. - DeployJob *DeployJob `json:"deployJob,omitempty"` - - // Id: Output only. The ID of the Job. - Id string `json:"id,omitempty"` - - // JobRun: Output only. The name of the `JobRun` responsible for the - // most recent invocation of this Job. - JobRun string `json:"jobRun,omitempty"` - - // PostdeployJob: Output only. A postdeploy Job. - PostdeployJob *PostdeployJob `json:"postdeployJob,omitempty"` - - // PredeployJob: Output only. A predeploy Job. - PredeployJob *PredeployJob `json:"predeployJob,omitempty"` +// DeliveryPipelineNotificationEvent: Payload proto for +// "clouddeploy.googleapis.com/deliverypipeline_notification" Platform +// Log event that describes the failure to send delivery pipeline status +// change Pub/Sub notification. +type DeliveryPipelineNotificationEvent struct { + // DeliveryPipeline: The name of the `Delivery Pipeline`. + DeliveryPipeline string `json:"deliveryPipeline,omitempty"` - // SkipMessage: Output only. Additional information on why the Job was - // skipped, if available. - SkipMessage string `json:"skipMessage,omitempty"` + // Message: Debug message for when a notification fails to send. + Message string `json:"message,omitempty"` - // State: Output only. The current state of the Job. + // Type: Type of this notification, e.g. for a Pub/Sub failure. // // Possible values: - // "STATE_UNSPECIFIED" - The Job has an unspecified state. - // "PENDING" - The Job is waiting for an earlier Phase(s) or Job(s) to - // complete. - // "DISABLED" - The Job is disabled. - // "IN_PROGRESS" - The Job is in progress. - // "SUCCEEDED" - The Job succeeded. - // "FAILED" - The Job failed. - // "ABORTED" - The Job was aborted. - // "SKIPPED" - The Job was skipped. - // "IGNORED" - The Job was ignored. - State string `json:"state,omitempty"` - - // VerifyJob: Output only. A verify Job. - VerifyJob *VerifyJob `json:"verifyJob,omitempty"` + // "TYPE_UNSPECIFIED" - Type is unspecified. + // "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed + // to be sent. + // "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed. + // "TYPE_PROCESS_ABORTED" - A process aborted. + // "TYPE_RESTRICTION_VIOLATED" - Restriction check failed. + // "TYPE_RESOURCE_DELETED" - Resource deleted. + // "TYPE_ROLLOUT_UPDATE" - Rollout updated. + // "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never + // used. Use release_render log type instead. + Type string `json:"type,omitempty"` - // ForceSendFields is a list of field names (e.g. - // "AdvanceChildRolloutJob") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. + // ForceSendFields is a list of field names (e.g. "DeliveryPipeline") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AdvanceChildRolloutJob") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the + // NullFields is a list of field names (e.g. "DeliveryPipeline") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` } -func (s *Job) MarshalJSON() ([]byte, error) { - type NoMethod Job +func (s *DeliveryPipelineNotificationEvent) MarshalJSON() ([]byte, error) { + type NoMethod DeliveryPipelineNotificationEvent raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// JobRun: A `JobRun` resource in the Cloud Deploy API. A `JobRun` -// contains information of a single `Rollout` job evaluation. -type JobRun struct { - // AdvanceChildRolloutJobRun: Output only. Information specific to an - // advanceChildRollout `JobRun` - AdvanceChildRolloutJobRun *AdvanceChildRolloutJobRun `json:"advanceChildRolloutJobRun,omitempty"` +// DeployArtifact: The artifacts produced by a deploy operation. +type DeployArtifact struct { + // ArtifactUri: Output only. URI of a directory containing the + // artifacts. All paths are relative to this location. + ArtifactUri string `json:"artifactUri,omitempty"` - // CreateChildRolloutJobRun: Output only. Information specific to a - // createChildRollout `JobRun`. - CreateChildRolloutJobRun *CreateChildRolloutJobRun `json:"createChildRolloutJobRun,omitempty"` + // ManifestPaths: Output only. File paths of the manifests applied + // during the deploy operation relative to the URI. + ManifestPaths []string `json:"manifestPaths,omitempty"` - // CreateTime: Output only. Time at which the `JobRun` was created. - CreateTime string `json:"createTime,omitempty"` + // ForceSendFields is a list of field names (e.g. "ArtifactUri") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` - // DeployJobRun: Output only. Information specific to a deploy `JobRun`. - DeployJobRun *DeployJobRun `json:"deployJobRun,omitempty"` + // NullFields is a list of field names (e.g. "ArtifactUri") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} - // EndTime: Output only. Time at which the `JobRun` ended. - EndTime string `json:"endTime,omitempty"` +func (s *DeployArtifact) MarshalJSON() ([]byte, error) { + type NoMethod DeployArtifact + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} - // Etag: Output only. This checksum is computed by the server based on - // the value of other fields, and may be sent on update and delete - // requests to ensure the client has an up-to-date value before - // proceeding. - Etag string `json:"etag,omitempty"` - - // JobId: Output only. ID of the `Rollout` job this `JobRun` corresponds - // to. - JobId string `json:"jobId,omitempty"` - - // Name: Optional. Name of the `JobRun`. Format is - // projects/{project}/locations/{location}/ - // deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/ - // {rollouts}/jobRuns/{uuid}. - Name string `json:"name,omitempty"` - - // PhaseId: Output only. ID of the `Rollout` phase this `JobRun` belongs - // in. - PhaseId string `json:"phaseId,omitempty"` - - // PostdeployJobRun: Output only. Information specific to a postdeploy - // `JobRun`. - PostdeployJobRun *PostdeployJobRun `json:"postdeployJobRun,omitempty"` +// DeployJob: A deploy Job. +type DeployJob struct { +} - // PredeployJobRun: Output only. Information specific to a predeploy - // `JobRun`. - PredeployJobRun *PredeployJobRun `json:"predeployJobRun,omitempty"` +// DeployJobRun: DeployJobRun contains information specific to a deploy +// `JobRun`. +type DeployJobRun struct { + // Artifact: Output only. The artifact of a deploy job run, if + // available. + Artifact *DeployArtifact `json:"artifact,omitempty"` - // StartTime: Output only. Time at which the `JobRun` was started. - StartTime string `json:"startTime,omitempty"` + // Build: Output only. The resource name of the Cloud Build `Build` + // object that is used to deploy. Format is + // projects/{project}/locations/{location}/builds/{build}. + Build string `json:"build,omitempty"` - // State: Output only. The current state of the `JobRun`. + // FailureCause: Output only. The reason the deploy failed. This will + // always be unspecified while the deploy is in progress or if it + // succeeded. // // Possible values: - // "STATE_UNSPECIFIED" - The `JobRun` has an unspecified state. - // "IN_PROGRESS" - The `JobRun` is in progress. - // "SUCCEEDED" - The `JobRun` has succeeded. - // "FAILED" - The `JobRun` has failed. - // "TERMINATING" - The `JobRun` is terminating. - // "TERMINATED" - The `JobRun` was terminated. - State string `json:"state,omitempty"` - - // Uid: Output only. Unique identifier of the `JobRun`. - Uid string `json:"uid,omitempty"` - - // VerifyJobRun: Output only. Information specific to a verify `JobRun`. - VerifyJobRun *VerifyJobRun `json:"verifyJobRun,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. - // "AdvanceChildRolloutJobRun") to unconditionally include in API - // requests. By default, fields with empty or default values are omitted - // from API requests. However, any non-pointer, non-interface field - // appearing in ForceSendFields will be sent to the server regardless of - // whether the field is empty or not. This may be used to include empty - // fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. - // "AdvanceChildRolloutJobRun") to include in API requests with the JSON - // null value. By default, fields with empty values are omitted from API - // requests. However, any field with an empty value appearing in - // NullFields will be sent to the server as null. It is an error if a - // field in this list has a non-empty value. This may be used to include - // null fields in Patch requests. - NullFields []string `json:"-"` -} - -func (s *JobRun) MarshalJSON() ([]byte, error) { - type NoMethod JobRun - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - -// JobRunNotificationEvent: Payload proto for -// "clouddeploy.googleapis.com/jobrun_notification" Platform Log event -// that describes the failure to send JobRun resource update Pub/Sub -// notification. -type JobRunNotificationEvent struct { - // JobRun: The name of the `JobRun`. - JobRun string `json:"jobRun,omitempty"` - - // Message: Debug message for when a notification fails to send. - Message string `json:"message,omitempty"` - - // PipelineUid: Unique identifier of the `DeliveryPipeline`. - PipelineUid string `json:"pipelineUid,omitempty"` - - // ReleaseUid: Unique identifier of the `Release`. - ReleaseUid string `json:"releaseUid,omitempty"` - - // RolloutUid: Unique identifier of the `Rollout`. - RolloutUid string `json:"rolloutUid,omitempty"` + // "FAILURE_CAUSE_UNSPECIFIED" - No reason for failure is specified. + // "CLOUD_BUILD_UNAVAILABLE" - Cloud Build is not available, either + // because it is not enabled or because Cloud Deploy has insufficient + // permissions. See [Required + // permission](https://cloud.google.com/deploy/docs/cloud-deploy-service- + // account#required_permissions). + // "EXECUTION_FAILED" - The deploy operation did not complete + // successfully; check Cloud Build logs. + // "DEADLINE_EXCEEDED" - The deploy job run did not complete within + // the alloted time. + // "MISSING_RESOURCES_FOR_CANARY" - There were missing resources in + // the runtime environment required for a canary deployment. Check the + // Cloud Build logs for more information. + // "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Cloud + // Deploy's request. See failure_message for additional details. + FailureCause string `json:"failureCause,omitempty"` - // TargetId: ID of the `Target`. - TargetId string `json:"targetId,omitempty"` + // FailureMessage: Output only. Additional information about the deploy + // failure, if available. + FailureMessage string `json:"failureMessage,omitempty"` - // Type: Type of this notification, e.g. for a Pub/Sub failure. - // - // Possible values: - // "TYPE_UNSPECIFIED" - Type is unspecified. - // "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed - // to be sent. - // "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed. - // "TYPE_PROCESS_ABORTED" - A process aborted. - // "TYPE_RESTRICTION_VIOLATED" - Restriction check failed. - // "TYPE_RESOURCE_DELETED" - Resource deleted. - // "TYPE_ROLLOUT_UPDATE" - Rollout updated. - // "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never - // used. Use release_render log type instead. - Type string `json:"type,omitempty"` + // Metadata: Output only. Metadata containing information about the + // deploy job run. + Metadata *DeployJobRunMetadata `json:"metadata,omitempty"` - // ForceSendFields is a list of field names (e.g. "JobRun") to + // ForceSendFields is a list of field names (e.g. "Artifact") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -1996,8 +1879,8 @@ type JobRunNotificationEvent struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "JobRun") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Artifact") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -2005,65 +1888,54 @@ type JobRunNotificationEvent struct { NullFields []string `json:"-"` } -func (s *JobRunNotificationEvent) MarshalJSON() ([]byte, error) { - type NoMethod JobRunNotificationEvent +func (s *DeployJobRun) MarshalJSON() ([]byte, error) { + type NoMethod DeployJobRun raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// KubernetesConfig: KubernetesConfig contains the Kubernetes runtime -// configuration. -type KubernetesConfig struct { - // GatewayServiceMesh: Kubernetes Gateway API service mesh - // configuration. - GatewayServiceMesh *GatewayServiceMesh `json:"gatewayServiceMesh,omitempty"` - - // ServiceNetworking: Kubernetes Service networking configuration. - ServiceNetworking *ServiceNetworking `json:"serviceNetworking,omitempty"` +// DeployJobRunMetadata: DeployJobRunMetadata surfaces information +// associated with a `DeployJobRun` to the user. +type DeployJobRunMetadata struct { + // CloudRun: Output only. The name of the Cloud Run Service that is + // associated with a `DeployJobRun`. + CloudRun *CloudRunMetadata `json:"cloudRun,omitempty"` - // ForceSendFields is a list of field names (e.g. "GatewayServiceMesh") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "CloudRun") to + // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "GatewayServiceMesh") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "CloudRun") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *KubernetesConfig) MarshalJSON() ([]byte, error) { - type NoMethod KubernetesConfig +func (s *DeployJobRunMetadata) MarshalJSON() ([]byte, error) { + type NoMethod DeployJobRunMetadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ListDeliveryPipelinesResponse: The response object from -// `ListDeliveryPipelines`. -type ListDeliveryPipelinesResponse struct { - // DeliveryPipelines: The `DeliveryPipeline` objects. - DeliveryPipelines []*DeliveryPipeline `json:"deliveryPipelines,omitempty"` - - // NextPageToken: A token, which can be sent as `page_token` to retrieve - // the next page. If this field is omitted, there are no subsequent - // pages. - NextPageToken string `json:"nextPageToken,omitempty"` - - // Unreachable: Locations that could not be reached. - Unreachable []string `json:"unreachable,omitempty"` +// DeployParameters: DeployParameters contains deploy parameters +// information. +type DeployParameters struct { + // MatchTargetLabels: Optional. Deploy parameters are applied to targets + // with match labels. If unspecified, deploy parameters are applied to + // all targets (including child targets of a multi-target). + MatchTargetLabels map[string]string `json:"matchTargetLabels,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // Values: Required. Values are deploy parameters in key-value pairs. + Values map[string]string `json:"values,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeliveryPipelines") + // ForceSendFields is a list of field names (e.g. "MatchTargetLabels") // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2071,7 +1943,7 @@ type ListDeliveryPipelinesResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DeliveryPipelines") to + // NullFields is a list of field names (e.g. "MatchTargetLabels") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -2081,31 +1953,31 @@ type ListDeliveryPipelinesResponse struct { NullFields []string `json:"-"` } -func (s *ListDeliveryPipelinesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListDeliveryPipelinesResponse +func (s *DeployParameters) MarshalJSON() ([]byte, error) { + type NoMethod DeployParameters raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ListJobRunsResponse: ListJobRunsResponse is the response object -// returned by `ListJobRuns`. -type ListJobRunsResponse struct { - // JobRuns: The `JobRun` objects. - JobRuns []*JobRun `json:"jobRuns,omitempty"` +// DeploymentJobs: Deployment job composition. +type DeploymentJobs struct { + // DeployJob: Output only. The deploy Job. This is the deploy job in the + // phase. + DeployJob *Job `json:"deployJob,omitempty"` - // NextPageToken: A token, which can be sent as `page_token` to retrieve - // the next page. If this field is omitted, there are no subsequent - // pages. - NextPageToken string `json:"nextPageToken,omitempty"` + // PostdeployJob: Output only. The postdeploy Job, which is the last job + // on the phase. + PostdeployJob *Job `json:"postdeployJob,omitempty"` - // Unreachable: Locations that could not be reached - Unreachable []string `json:"unreachable,omitempty"` + // PredeployJob: Output only. The predeploy Job, which is the first job + // on the phase. + PredeployJob *Job `json:"predeployJob,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // VerifyJob: Output only. The verify Job. Runs after a deploy if the + // deploy succeeds. + VerifyJob *Job `json:"verifyJob,omitempty"` - // ForceSendFields is a list of field names (e.g. "JobRuns") to + // ForceSendFields is a list of field names (e.g. "DeployJob") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2113,7 +1985,7 @@ type ListJobRunsResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "JobRuns") to include in + // NullFields is a list of field names (e.g. "DeployJob") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -2122,27 +1994,68 @@ type ListJobRunsResponse struct { NullFields []string `json:"-"` } -func (s *ListJobRunsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListJobRunsResponse +func (s *DeploymentJobs) MarshalJSON() ([]byte, error) { + type NoMethod DeploymentJobs raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ListLocationsResponse: The response message for -// Locations.ListLocations. -type ListLocationsResponse struct { - // Locations: A list of locations that matches the specified filter in - // the request. - Locations []*Location `json:"locations,omitempty"` - - // NextPageToken: The standard List next-page token. - NextPageToken string `json:"nextPageToken,omitempty"` - +// Empty: 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); } +type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` +} - // ForceSendFields is a list of field names (e.g. "Locations") to +// ExecutionConfig: Configuration of the environment to use when calling +// Skaffold. +type ExecutionConfig struct { + // ArtifactStorage: Optional. Cloud Storage location in which to store + // execution outputs. This can either be a bucket ("gs://my-bucket") or + // a path within a bucket ("gs://my-bucket/my-dir"). If unspecified, a + // default bucket located in the same region will be used. + ArtifactStorage string `json:"artifactStorage,omitempty"` + + // DefaultPool: Optional. Use default Cloud Build pool. + DefaultPool *DefaultPool `json:"defaultPool,omitempty"` + + // ExecutionTimeout: Optional. Execution timeout for a Cloud Build + // Execution. This must be between 10m and 24h in seconds format. If + // unspecified, a default timeout of 1h is used. + ExecutionTimeout string `json:"executionTimeout,omitempty"` + + // PrivatePool: Optional. Use private Cloud Build pool. + PrivatePool *PrivatePool `json:"privatePool,omitempty"` + + // ServiceAccount: Optional. Google service account to use for + // execution. If unspecified, the project execution service account + // (-compute@developer.gserviceaccount.com) is used. + ServiceAccount string `json:"serviceAccount,omitempty"` + + // Usages: Required. Usages when this configuration should be applied. + // + // Possible values: + // "EXECUTION_ENVIRONMENT_USAGE_UNSPECIFIED" - Default value. This + // value is unused. + // "RENDER" - Use for rendering. + // "DEPLOY" - Use for deploying and deployment hooks. + // "VERIFY" - Use for deployment verification. + // "PREDEPLOY" - Use for predeploy job execution. + // "POSTDEPLOY" - Use for postdeploy job execution. + Usages []string `json:"usages,omitempty"` + + // WorkerPool: Optional. The resource name of the `WorkerPool`, with the + // format + // `projects/{project}/locations/{location}/workerPools/{worker_pool}`. + // If this optional field is unspecified, the default Cloud Build pool + // will be used. + WorkerPool string `json:"workerPool,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ArtifactStorage") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2150,36 +2063,60 @@ type ListLocationsResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Locations") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "ArtifactStorage") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } -func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListLocationsResponse +func (s *ExecutionConfig) MarshalJSON() ([]byte, error) { + type NoMethod ExecutionConfig raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ListOperationsResponse: The response message for -// Operations.ListOperations. -type ListOperationsResponse struct { - // NextPageToken: The standard List next-page token. - NextPageToken string `json:"nextPageToken,omitempty"` +// Expr: Represents a textual expression in the Common Expression +// Language (CEL) syntax. CEL is a C-like expression language. The +// syntax and semantics of CEL are documented at +// https://github.com/google/cel-spec. Example (Comparison): title: +// "Summary size limit" description: "Determines if a summary is less +// than 100 chars" expression: "document.summary.size() < 100" Example +// (Equality): title: "Requestor is owner" description: "Determines if +// requestor is the document owner" expression: "document.owner == +// request.auth.claims.email" Example (Logic): title: "Public documents" +// description: "Determine whether the document should be publicly +// visible" expression: "document.type != 'private' && document.type != +// 'internal'" Example (Data Manipulation): title: "Notification string" +// description: "Create a notification string with a timestamp." +// expression: "'New message received at ' + +// string(document.create_time)" The exact variables and functions that +// may be referenced within an expression are determined by the service +// that evaluates it. See the service documentation for additional +// information. +type Expr struct { + // Description: Optional. Description of the expression. This is a + // longer text which describes the expression, e.g. when hovered over it + // in a UI. + Description string `json:"description,omitempty"` - // Operations: A list of operations that matches the specified filter in - // the request. - Operations []*Operation `json:"operations,omitempty"` + // Expression: Textual representation of an expression in Common + // Expression Language syntax. + Expression string `json:"expression,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // Location: Optional. String indicating the location of the expression + // for error reporting, e.g. a file name and a position in the file. + Location string `json:"location,omitempty"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // Title: Optional. Title for the expression, i.e. a short string + // describing its purpose. This can be used e.g. in UIs which allow to + // enter the expression. + Title string `json:"title,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2187,7 +2124,7 @@ type ListOperationsResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NextPageToken") to include + // NullFields is a list of field names (e.g. "Description") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as @@ -2196,30 +2133,31 @@ type ListOperationsResponse struct { NullFields []string `json:"-"` } -func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListOperationsResponse +func (s *Expr) MarshalJSON() ([]byte, error) { + type NoMethod Expr raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ListReleasesResponse: The response object from `ListReleases`. -type ListReleasesResponse struct { - // NextPageToken: A token, which can be sent as `page_token` to retrieve - // the next page. If this field is omitted, there are no subsequent - // pages. - NextPageToken string `json:"nextPageToken,omitempty"` +// GatewayServiceMesh: Information about the Kubernetes Gateway API +// service mesh configuration. +type GatewayServiceMesh struct { + // Deployment: Required. Name of the Kubernetes Deployment whose traffic + // is managed by the specified HTTPRoute and Service. + Deployment string `json:"deployment,omitempty"` - // Releases: The `Release` objects. - Releases []*Release `json:"releases,omitempty"` + // HttpRoute: Required. Name of the Gateway API HTTPRoute. + HttpRoute string `json:"httpRoute,omitempty"` - // Unreachable: Locations that could not be reached. - Unreachable []string `json:"unreachable,omitempty"` + // RouteUpdateWaitTime: Optional. The time to wait for route updates to + // propagate. The maximum configurable time is 3 hours, in seconds + // format. If unspecified, there is no wait time. + RouteUpdateWaitTime string `json:"routeUpdateWaitTime,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // Service: Required. Name of the Kubernetes Service. + Service string `json:"service,omitempty"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // ForceSendFields is a list of field names (e.g. "Deployment") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2227,40 +2165,37 @@ type ListReleasesResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Deployment") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *ListReleasesResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListReleasesResponse +func (s *GatewayServiceMesh) MarshalJSON() ([]byte, error) { + type NoMethod GatewayServiceMesh raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ListRolloutsResponse: ListRolloutsResponse is the response object -// reutrned by `ListRollouts`. -type ListRolloutsResponse struct { - // NextPageToken: A token, which can be sent as `page_token` to retrieve - // the next page. If this field is omitted, there are no subsequent - // pages. - NextPageToken string `json:"nextPageToken,omitempty"` - - // Rollouts: The `Rollout` objects. - Rollouts []*Rollout `json:"rollouts,omitempty"` - - // Unreachable: Locations that could not be reached. - Unreachable []string `json:"unreachable,omitempty"` +// GkeCluster: Information specifying a GKE Cluster. +type GkeCluster struct { + // Cluster: Information specifying a GKE Cluster. Format is + // `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}. + Cluster string `json:"cluster,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // InternalIp: Optional. If true, `cluster` is accessed using the + // private IP address of the control plane endpoint. Otherwise, the + // default IP address of the control plane endpoint is used. The default + // IP address is the private IP address for clusters with private + // control-plane endpoints and the public IP address otherwise. Only + // specify this option when `cluster` is a private GKE cluster + // (https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept). + InternalIp bool `json:"internalIp,omitempty"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // ForceSendFields is a list of field names (e.g. "Cluster") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2268,39 +2203,30 @@ type ListRolloutsResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Cluster") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *ListRolloutsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListRolloutsResponse +func (s *GkeCluster) MarshalJSON() ([]byte, error) { + type NoMethod GkeCluster raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ListTargetsResponse: The response object from `ListTargets`. -type ListTargetsResponse struct { - // NextPageToken: A token, which can be sent as `page_token` to retrieve - // the next page. If this field is omitted, there are no subsequent - // pages. - NextPageToken string `json:"nextPageToken,omitempty"` - - // Targets: The `Target` objects. - Targets []*Target `json:"targets,omitempty"` - - // Unreachable: Locations that could not be reached. - Unreachable []string `json:"unreachable,omitempty"` +// IgnoreJobRequest: The request object used by `IgnoreJob`. +type IgnoreJobRequest struct { + // JobId: Required. The job ID for the Job to ignore. + JobId string `json:"jobId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // PhaseId: Required. The phase ID the Job to ignore belongs to. + PhaseId string `json:"phaseId,omitempty"` - // ForceSendFields is a list of field names (e.g. "NextPageToken") to + // ForceSendFields is a list of field names (e.g. "JobId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2308,78 +2234,235 @@ type ListTargetsResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "NextPageToken") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "JobId") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *ListTargetsResponse) MarshalJSON() ([]byte, error) { - type NoMethod ListTargetsResponse +func (s *IgnoreJobRequest) MarshalJSON() ([]byte, error) { + type NoMethod IgnoreJobRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Location: A resource that represents a Google Cloud location. -type Location struct { - // DisplayName: The friendly name for this location, typically a nearby - // city name. For example, "Tokyo". - DisplayName string `json:"displayName,omitempty"` +// IgnoreJobResponse: The response object from `IgnoreJob`. +type IgnoreJobResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} - // Labels: Cross-service attributes for the location. For example - // {"cloud.googleapis.com/region": "us-east1"} - Labels map[string]string `json:"labels,omitempty"` +// Job: Job represents an operation for a `Rollout`. +type Job struct { + // AdvanceChildRolloutJob: Output only. An advanceChildRollout Job. + AdvanceChildRolloutJob *AdvanceChildRolloutJob `json:"advanceChildRolloutJob,omitempty"` - // LocationId: The canonical id for this location. For example: - // "us-east1". - LocationId string `json:"locationId,omitempty"` + // CreateChildRolloutJob: Output only. A createChildRollout Job. + CreateChildRolloutJob *CreateChildRolloutJob `json:"createChildRolloutJob,omitempty"` - // Metadata: Service-specific metadata. For example the available - // capacity at the given location. - Metadata googleapi.RawMessage `json:"metadata,omitempty"` + // DeployJob: Output only. A deploy Job. + DeployJob *DeployJob `json:"deployJob,omitempty"` - // Name: Resource name for the location, which may vary between - // implementations. For example: - // "projects/example-project/locations/us-east1" + // Id: Output only. The ID of the Job. + Id string `json:"id,omitempty"` + + // JobRun: Output only. The name of the `JobRun` responsible for the + // most recent invocation of this Job. + JobRun string `json:"jobRun,omitempty"` + + // PostdeployJob: Output only. A postdeploy Job. + PostdeployJob *PostdeployJob `json:"postdeployJob,omitempty"` + + // PredeployJob: Output only. A predeploy Job. + PredeployJob *PredeployJob `json:"predeployJob,omitempty"` + + // SkipMessage: Output only. Additional information on why the Job was + // skipped, if available. + SkipMessage string `json:"skipMessage,omitempty"` + + // State: Output only. The current state of the Job. + // + // Possible values: + // "STATE_UNSPECIFIED" - The Job has an unspecified state. + // "PENDING" - The Job is waiting for an earlier Phase(s) or Job(s) to + // complete. + // "DISABLED" - The Job is disabled. + // "IN_PROGRESS" - The Job is in progress. + // "SUCCEEDED" - The Job succeeded. + // "FAILED" - The Job failed. + // "ABORTED" - The Job was aborted. + // "SKIPPED" - The Job was skipped. + // "IGNORED" - The Job was ignored. + State string `json:"state,omitempty"` + + // VerifyJob: Output only. A verify Job. + VerifyJob *VerifyJob `json:"verifyJob,omitempty"` + + // ForceSendFields is a list of field names (e.g. + // "AdvanceChildRolloutJob") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "AdvanceChildRolloutJob") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *Job) MarshalJSON() ([]byte, error) { + type NoMethod Job + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// JobRun: A `JobRun` resource in the Cloud Deploy API. A `JobRun` +// contains information of a single `Rollout` job evaluation. +type JobRun struct { + // AdvanceChildRolloutJobRun: Output only. Information specific to an + // advanceChildRollout `JobRun` + AdvanceChildRolloutJobRun *AdvanceChildRolloutJobRun `json:"advanceChildRolloutJobRun,omitempty"` + + // CreateChildRolloutJobRun: Output only. Information specific to a + // createChildRollout `JobRun`. + CreateChildRolloutJobRun *CreateChildRolloutJobRun `json:"createChildRolloutJobRun,omitempty"` + + // CreateTime: Output only. Time at which the `JobRun` was created. + CreateTime string `json:"createTime,omitempty"` + + // DeployJobRun: Output only. Information specific to a deploy `JobRun`. + DeployJobRun *DeployJobRun `json:"deployJobRun,omitempty"` + + // EndTime: Output only. Time at which the `JobRun` ended. + EndTime string `json:"endTime,omitempty"` + + // Etag: Output only. This checksum is computed by the server based on + // the value of other fields, and may be sent on update and delete + // requests to ensure the client has an up-to-date value before + // proceeding. + Etag string `json:"etag,omitempty"` + + // JobId: Output only. ID of the `Rollout` job this `JobRun` corresponds + // to. + JobId string `json:"jobId,omitempty"` + + // Name: Optional. Name of the `JobRun`. Format is + // projects/{project}/locations/{location}/ + // deliveryPipelines/{deliveryPipeline}/releases/{releases}/rollouts/ + // {rollouts}/jobRuns/{uuid}. Name string `json:"name,omitempty"` + // PhaseId: Output only. ID of the `Rollout` phase this `JobRun` belongs + // in. + PhaseId string `json:"phaseId,omitempty"` + + // PostdeployJobRun: Output only. Information specific to a postdeploy + // `JobRun`. + PostdeployJobRun *PostdeployJobRun `json:"postdeployJobRun,omitempty"` + + // PredeployJobRun: Output only. Information specific to a predeploy + // `JobRun`. + PredeployJobRun *PredeployJobRun `json:"predeployJobRun,omitempty"` + + // StartTime: Output only. Time at which the `JobRun` was started. + StartTime string `json:"startTime,omitempty"` + + // State: Output only. The current state of the `JobRun`. + // + // Possible values: + // "STATE_UNSPECIFIED" - The `JobRun` has an unspecified state. + // "IN_PROGRESS" - The `JobRun` is in progress. + // "SUCCEEDED" - The `JobRun` has succeeded. + // "FAILED" - The `JobRun` has failed. + // "TERMINATING" - The `JobRun` is terminating. + // "TERMINATED" - The `JobRun` was terminated. + State string `json:"state,omitempty"` + + // Uid: Output only. Unique identifier of the `JobRun`. + Uid string `json:"uid,omitempty"` + + // VerifyJobRun: Output only. Information specific to a verify `JobRun`. + VerifyJobRun *VerifyJobRun `json:"verifyJobRun,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "DisplayName") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. + // "AdvanceChildRolloutJobRun") to unconditionally include in API + // requests. By default, fields with empty or default values are omitted + // from API requests. However, any non-pointer, non-interface field + // appearing in ForceSendFields will be sent to the server regardless of + // whether the field is empty or not. This may be used to include empty + // fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DisplayName") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. + // "AdvanceChildRolloutJobRun") to include in API requests with the JSON + // null value. By default, fields with empty values are omitted from API + // requests. However, any field with an empty value appearing in + // NullFields will be sent to the server as null. It is an error if a + // field in this list has a non-empty value. This may be used to include + // null fields in Patch requests. NullFields []string `json:"-"` } -func (s *Location) MarshalJSON() ([]byte, error) { - type NoMethod Location +func (s *JobRun) MarshalJSON() ([]byte, error) { + type NoMethod JobRun raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Metadata: Metadata includes information associated with a `Rollout`. -type Metadata struct { - // CloudRun: Output only. The name of the Cloud Run Service that is - // associated with a `Rollout`. - CloudRun *CloudRunMetadata `json:"cloudRun,omitempty"` +// JobRunNotificationEvent: Payload proto for +// "clouddeploy.googleapis.com/jobrun_notification" Platform Log event +// that describes the failure to send JobRun resource update Pub/Sub +// notification. +type JobRunNotificationEvent struct { + // JobRun: The name of the `JobRun`. + JobRun string `json:"jobRun,omitempty"` - // ForceSendFields is a list of field names (e.g. "CloudRun") to + // Message: Debug message for when a notification fails to send. + Message string `json:"message,omitempty"` + + // PipelineUid: Unique identifier of the `DeliveryPipeline`. + PipelineUid string `json:"pipelineUid,omitempty"` + + // ReleaseUid: Unique identifier of the `Release`. + ReleaseUid string `json:"releaseUid,omitempty"` + + // RolloutUid: Unique identifier of the `Rollout`. + RolloutUid string `json:"rolloutUid,omitempty"` + + // TargetId: ID of the `Target`. + TargetId string `json:"targetId,omitempty"` + + // Type: Type of this notification, e.g. for a Pub/Sub failure. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Type is unspecified. + // "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed + // to be sent. + // "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed. + // "TYPE_PROCESS_ABORTED" - A process aborted. + // "TYPE_RESTRICTION_VIOLATED" - Restriction check failed. + // "TYPE_RESOURCE_DELETED" - Resource deleted. + // "TYPE_ROLLOUT_UPDATE" - Rollout updated. + // "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never + // used. Use release_render log type instead. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "JobRun") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2387,8 +2470,8 @@ type Metadata struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CloudRun") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "JobRun") to include in API + // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -2396,80 +2479,65 @@ type Metadata struct { NullFields []string `json:"-"` } -func (s *Metadata) MarshalJSON() ([]byte, error) { - type NoMethod Metadata +func (s *JobRunNotificationEvent) MarshalJSON() ([]byte, error) { + type NoMethod JobRunNotificationEvent raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// MultiTarget: Information specifying a multiTarget. -type MultiTarget struct { - // TargetIds: Required. The target_ids of this multiTarget. - TargetIds []string `json:"targetIds,omitempty"` +// KubernetesConfig: KubernetesConfig contains the Kubernetes runtime +// configuration. +type KubernetesConfig struct { + // GatewayServiceMesh: Kubernetes Gateway API service mesh + // configuration. + GatewayServiceMesh *GatewayServiceMesh `json:"gatewayServiceMesh,omitempty"` - // ForceSendFields is a list of field names (e.g. "TargetIds") to - // unconditionally include in API requests. By default, fields with + // ServiceNetworking: Kubernetes Service networking configuration. + ServiceNetworking *ServiceNetworking `json:"serviceNetworking,omitempty"` + + // ForceSendFields is a list of field names (e.g. "GatewayServiceMesh") + // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "TargetIds") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "GatewayServiceMesh") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } -func (s *MultiTarget) MarshalJSON() ([]byte, error) { - type NoMethod MultiTarget +func (s *KubernetesConfig) MarshalJSON() ([]byte, error) { + type NoMethod KubernetesConfig raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Operation: This resource represents a long-running operation that is -// the result of a network API call. -type Operation struct { - // Done: If the value is `false`, it means the operation is still in - // progress. If `true`, the operation is completed, and either `error` - // or `response` is available. - Done bool `json:"done,omitempty"` - - // Error: The error result of the operation in case of failure or - // cancellation. - Error *Status `json:"error,omitempty"` - - // Metadata: Service-specific metadata associated with the operation. It - // typically contains progress information and common metadata such as - // create time. Some services might not provide such metadata. Any - // method that returns a long-running operation should document the - // metadata type, if any. - Metadata googleapi.RawMessage `json:"metadata,omitempty"` +// ListAutomationRunsResponse: The response object from +// `ListAutomationRuns`. +type ListAutomationRunsResponse struct { + // AutomationRuns: The `AutomationRuns` objects. + AutomationRuns []*AutomationRun `json:"automationRuns,omitempty"` - // Name: The server-assigned name, which is only unique within the same - // service that originally returns it. If you use the default HTTP - // mapping, the `name` should be a resource name ending with - // `operations/{unique_id}`. - Name string `json:"name,omitempty"` + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` - // Response: The normal, successful response of the operation. If the - // original method returns no data on success, such as `Delete`, the - // response is `google.protobuf.Empty`. If the original method is - // standard `Get`/`Create`/`Update`, the response should be the - // resource. For other methods, the response should have the type - // `XxxResponse`, where `Xxx` is the original method name. For example, - // if the original method name is `TakeSnapshot()`, the inferred - // response type is `TakeSnapshotResponse`. - Response googleapi.RawMessage `json:"response,omitempty"` + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Done") to + // ForceSendFields is a list of field names (e.g. "AutomationRuns") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2477,51 +2545,40 @@ type Operation struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Done") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AutomationRuns") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } -func (s *Operation) MarshalJSON() ([]byte, error) { - type NoMethod Operation +func (s *ListAutomationRunsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListAutomationRunsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// OperationMetadata: Represents the metadata of the long-running -// operation. -type OperationMetadata struct { - // ApiVersion: Output only. API version used to start the operation. - ApiVersion string `json:"apiVersion,omitempty"` - - // CreateTime: Output only. The time the operation was created. - CreateTime string `json:"createTime,omitempty"` - - // EndTime: Output only. The time the operation finished running. - EndTime string `json:"endTime,omitempty"` - - // RequestedCancellation: Output only. Identifies whether the user has - // requested cancellation of the operation. Operations that have - // successfully been cancelled have Operation.error value with a - // google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. - RequestedCancellation bool `json:"requestedCancellation,omitempty"` +// ListAutomationsResponse: The response object from `ListAutomations`. +type ListAutomationsResponse struct { + // Automations: The `Automations` objects. + Automations []*Automation `json:"automations,omitempty"` - // StatusMessage: Output only. Human-readable status of the operation, - // if any. - StatusMessage string `json:"statusMessage,omitempty"` + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` - // Target: Output only. Server-defined resource path for the target of - // the operation. - Target string `json:"target,omitempty"` + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` - // Verb: Output only. Name of the verb executed by the operation. - Verb string `json:"verb,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ApiVersion") to + // ForceSendFields is a list of field names (e.g. "Automations") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2529,59 +2586,48 @@ type OperationMetadata struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ApiVersion") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Automations") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *OperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod OperationMetadata +func (s *ListAutomationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListAutomationsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Phase: Phase represents a collection of jobs that are logically -// grouped together for a `Rollout`. -type Phase struct { - // ChildRolloutJobs: Output only. ChildRollout job composition. - ChildRolloutJobs *ChildRolloutJobs `json:"childRolloutJobs,omitempty"` - - // DeploymentJobs: Output only. Deployment job composition. - DeploymentJobs *DeploymentJobs `json:"deploymentJobs,omitempty"` +// ListDeliveryPipelinesResponse: The response object from +// `ListDeliveryPipelines`. +type ListDeliveryPipelinesResponse struct { + // DeliveryPipelines: The `DeliveryPipeline` objects. + DeliveryPipelines []*DeliveryPipeline `json:"deliveryPipelines,omitempty"` - // Id: Output only. The ID of the Phase. - Id string `json:"id,omitempty"` + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` - // SkipMessage: Output only. Additional information on why the Phase was - // skipped, if available. - SkipMessage string `json:"skipMessage,omitempty"` + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` - // State: Output only. Current state of the Phase. - // - // Possible values: - // "STATE_UNSPECIFIED" - The Phase has an unspecified state. - // "PENDING" - The Phase is waiting for an earlier Phase(s) to - // complete. - // "IN_PROGRESS" - The Phase is in progress. - // "SUCCEEDED" - The Phase has succeeded. - // "FAILED" - The Phase has failed. - // "ABORTED" - The Phase was aborted. - // "SKIPPED" - The Phase was skipped. - State string `json:"state,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "ChildRolloutJobs") to - // unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "DeliveryPipelines") + // to unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ChildRolloutJobs") to + // NullFields is a list of field names (e.g. "DeliveryPipelines") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -2591,29 +2637,31 @@ type Phase struct { NullFields []string `json:"-"` } -func (s *Phase) MarshalJSON() ([]byte, error) { - type NoMethod Phase +func (s *ListDeliveryPipelinesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListDeliveryPipelinesResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// PhaseArtifact: Contains the paths to the artifacts, relative to the -// URI, for a phase. -type PhaseArtifact struct { - // JobManifestsPath: Output only. File path of the directory of rendered - // job manifests relative to the URI. This is only set if it is - // applicable. - JobManifestsPath string `json:"jobManifestsPath,omitempty"` +// ListJobRunsResponse: ListJobRunsResponse is the response object +// returned by `ListJobRuns`. +type ListJobRunsResponse struct { + // JobRuns: The `JobRun` objects. + JobRuns []*JobRun `json:"jobRuns,omitempty"` - // ManifestPath: Output only. File path of the rendered manifest - // relative to the URI. - ManifestPath string `json:"manifestPath,omitempty"` + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` - // SkaffoldConfigPath: Output only. File path of the resolved Skaffold - // configuration relative to the URI. - SkaffoldConfigPath string `json:"skaffoldConfigPath,omitempty"` + // Unreachable: Locations that could not be reached + Unreachable []string `json:"unreachable,omitempty"` - // ForceSendFields is a list of field names (e.g. "JobManifestsPath") to + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "JobRuns") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2621,54 +2669,36 @@ type PhaseArtifact struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "JobManifestsPath") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "JobRuns") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *PhaseArtifact) MarshalJSON() ([]byte, error) { - type NoMethod PhaseArtifact +func (s *ListJobRunsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListJobRunsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// PhaseConfig: PhaseConfig represents the configuration for a phase in -// the custom canary deployment. -type PhaseConfig struct { - // Percentage: Required. Percentage deployment for the phase. - Percentage int64 `json:"percentage,omitempty"` - - // PhaseId: Required. The ID to assign to the `Rollout` phase. This - // value must consist of lower-case letters, numbers, and hyphens, start - // with a letter and end with a letter or a number, and have a max - // length of 63 characters. In other words, it must match the following - // regex: `^a-z ([a-z0-9-]{0,61}[a-z0-9])?$`. - PhaseId string `json:"phaseId,omitempty"` - - // Postdeploy: Optional. Configuration for the postdeploy job of this - // phase. If this is not configured, there will be no postdeploy job for - // this phase. - Postdeploy *Postdeploy `json:"postdeploy,omitempty"` - - // Predeploy: Optional. Configuration for the predeploy job of this - // phase. If this is not configured, there will be no predeploy job for - // this phase. - Predeploy *Predeploy `json:"predeploy,omitempty"` +// ListLocationsResponse: The response message for +// Locations.ListLocations. +type ListLocationsResponse struct { + // Locations: A list of locations that matches the specified filter in + // the request. + Locations []*Location `json:"locations,omitempty"` - // Profiles: Skaffold profiles to use when rendering the manifest for - // this phase. These are in addition to the profiles list specified in - // the `DeliveryPipeline` stage. - Profiles []string `json:"profiles,omitempty"` + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` - // Verify: Whether to run verify tests after the deployment. - Verify bool `json:"verify,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Percentage") to + // ForceSendFields is a list of field names (e.g. "Locations") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2676,7 +2706,7 @@ type PhaseConfig struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Percentage") to include in + // NullFields is a list of field names (e.g. "Locations") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -2685,64 +2715,27 @@ type PhaseConfig struct { NullFields []string `json:"-"` } -func (s *PhaseConfig) MarshalJSON() ([]byte, error) { - type NoMethod PhaseConfig +func (s *ListLocationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListLocationsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// PipelineCondition: PipelineCondition contains all conditions relevant -// to a Delivery Pipeline. -type PipelineCondition struct { - // PipelineReadyCondition: Details around the Pipeline's overall status. - PipelineReadyCondition *PipelineReadyCondition `json:"pipelineReadyCondition,omitempty"` - - // TargetsPresentCondition: Details around targets enumerated in the - // pipeline. - TargetsPresentCondition *TargetsPresentCondition `json:"targetsPresentCondition,omitempty"` - - // TargetsTypeCondition: Details on the whether the targets enumerated - // in the pipeline are of the same type. - TargetsTypeCondition *TargetsTypeCondition `json:"targetsTypeCondition,omitempty"` - - // ForceSendFields is a list of field names (e.g. - // "PipelineReadyCondition") to unconditionally include in API requests. - // By default, fields with empty or default values are omitted from API - // requests. However, any non-pointer, non-interface field appearing in - // ForceSendFields will be sent to the server regardless of whether the - // field is empty or not. This may be used to include empty fields in - // Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "PipelineReadyCondition") - // to include in API requests with the JSON null value. By default, - // fields with empty values are omitted from API requests. However, any - // field with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *PipelineCondition) MarshalJSON() ([]byte, error) { - type NoMethod PipelineCondition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} +// ListOperationsResponse: The response message for +// Operations.ListOperations. +type ListOperationsResponse struct { + // NextPageToken: The standard List next-page token. + NextPageToken string `json:"nextPageToken,omitempty"` -// PipelineReadyCondition: PipelineReadyCondition contains information -// around the status of the Pipeline. -type PipelineReadyCondition struct { - // Status: True if the Pipeline is in a valid state. Otherwise at least - // one condition in `PipelineCondition` is in an invalid state. Iterate - // over those conditions and see which condition(s) has status = false - // to find out what is wrong with the Pipeline. - Status bool `json:"status,omitempty"` + // Operations: A list of operations that matches the specified filter in + // the request. + Operations []*Operation `json:"operations,omitempty"` - // UpdateTime: Last time the condition was updated. - UpdateTime string `json:"updateTime,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Status") to + // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2750,109 +2743,39 @@ type PipelineReadyCondition struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Status") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *PipelineReadyCondition) MarshalJSON() ([]byte, error) { - type NoMethod PipelineReadyCondition +func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListOperationsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, 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 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 < 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 < -// 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/). -type Policy struct { - // AuditConfigs: Specifies cloud audit logging configuration for this - // policy. - AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"` - - // Bindings: Associates a list of `members`, or principals, with a - // `role`. Optionally, may specify a `condition` that determines how and - // when the `bindings` are applied. Each of the `bindings` must contain - // at least one principal. The `bindings` in a `Policy` can refer to up - // to 1,500 principals; up to 250 of these principals can be Google - // groups. Each occurrence of a principal counts towards these limits. - // For example, if the `bindings` grant 50 different roles to - // `user:alice@example.com`, and not to any other principal, then you - // can add another 1,450 principals to the `bindings` in the `Policy`. - Bindings []*Binding `json:"bindings,omitempty"` +// ListReleasesResponse: The response object from `ListReleases`. +type ListReleasesResponse struct { + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` - // Etag: `etag` is used for optimistic concurrency control as a way to - // help prevent simultaneous updates of a policy from overwriting each - // other. It is strongly suggested that systems make use of the `etag` - // in the read-modify-write cycle to perform policy updates in order to - // avoid race conditions: An `etag` is returned in the response to - // `getIamPolicy`, and systems are expected to put that etag in the - // request to `setIamPolicy` to ensure that their change will be applied - // to the same version of the policy. **Important:** If you use IAM - // Conditions, you must include the `etag` field whenever you call - // `setIamPolicy`. If you omit this field, then IAM allows you to - // overwrite a version `3` policy with a version `1` policy, and all of - // the conditions in the version `3` policy are lost. - Etag string `json:"etag,omitempty"` + // Releases: The `Release` objects. + Releases []*Release `json:"releases,omitempty"` - // Version: Specifies the format of the policy. Valid values are `0`, - // `1`, and `3`. Requests that specify an invalid value are rejected. - // Any operation that affects conditional role bindings must specify - // version `3`. This requirement applies to the following operations: * - // Getting a policy that includes a conditional role binding * Adding a - // conditional role binding to a policy * Changing a conditional role - // binding in a policy * Removing any role binding, with or without a - // condition, from a policy that includes conditions **Important:** If - // you use IAM Conditions, you must include the `etag` field whenever - // you call `setIamPolicy`. If you omit this field, then IAM allows you - // to overwrite a version `3` policy with a version `1` policy, and all - // of the conditions in the version `3` policy are lost. If a policy - // does not include any conditions, operations on that policy may - // specify any valid version or leave the field unset. To learn which - // resources support conditions in their IAM policies, see the IAM - // documentation - // (https://cloud.google.com/iam/help/conditions/resource-policies). - Version int64 `json:"version,omitempty"` + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "AuditConfigs") to + // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2860,7 +2783,7 @@ type Policy struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "AuditConfigs") to include + // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as @@ -2869,20 +2792,31 @@ type Policy struct { NullFields []string `json:"-"` } -func (s *Policy) MarshalJSON() ([]byte, error) { - type NoMethod Policy +func (s *ListReleasesResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListReleasesResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Postdeploy: Postdeploy contains the postdeploy job configuration -// information. -type Postdeploy struct { - // Actions: Optional. A sequence of Skaffold custom actions to invoke - // during execution of the postdeploy job. - Actions []string `json:"actions,omitempty"` +// ListRolloutsResponse: ListRolloutsResponse is the response object +// reutrned by `ListRollouts`. +type ListRolloutsResponse struct { + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` - // ForceSendFields is a list of field names (e.g. "Actions") to + // Rollouts: The `Rollout` objects. + Rollouts []*Rollout `json:"rollouts,omitempty"` + + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2890,28 +2824,39 @@ type Postdeploy struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Actions") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *Postdeploy) MarshalJSON() ([]byte, error) { - type NoMethod Postdeploy +func (s *ListRolloutsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListRolloutsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// PostdeployJob: A postdeploy Job. -type PostdeployJob struct { - // Actions: Output only. The custom actions that the postdeploy Job - // executes. - Actions []string `json:"actions,omitempty"` +// ListTargetsResponse: The response object from `ListTargets`. +type ListTargetsResponse struct { + // NextPageToken: A token, which can be sent as `page_token` to retrieve + // the next page. If this field is omitted, there are no subsequent + // pages. + NextPageToken string `json:"nextPageToken,omitempty"` - // ForceSendFields is a list of field names (e.g. "Actions") to + // Targets: The `Target` objects. + Targets []*Target `json:"targets,omitempty"` + + // Unreachable: Locations that could not be reached. + Unreachable []string `json:"unreachable,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2919,54 +2864,49 @@ type PostdeployJob struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Actions") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "NextPageToken") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *PostdeployJob) MarshalJSON() ([]byte, error) { - type NoMethod PostdeployJob +func (s *ListTargetsResponse) MarshalJSON() ([]byte, error) { + type NoMethod ListTargetsResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// PostdeployJobRun: PostdeployJobRun contains information specific to a -// postdeploy `JobRun`. -type PostdeployJobRun struct { - // Build: Output only. The resource name of the Cloud Build `Build` - // object that is used to execute the custom actions associated with the - // postdeploy Job. Format is - // projects/{project}/locations/{location}/builds/{build}. - Build string `json:"build,omitempty"` +// Location: A resource that represents a Google Cloud location. +type Location struct { + // DisplayName: The friendly name for this location, typically a nearby + // city name. For example, "Tokyo". + DisplayName string `json:"displayName,omitempty"` - // FailureCause: Output only. The reason the postdeploy failed. This - // will always be unspecified while the postdeploy is in progress or if - // it succeeded. - // - // Possible values: - // "FAILURE_CAUSE_UNSPECIFIED" - No reason for failure is specified. - // "CLOUD_BUILD_UNAVAILABLE" - Cloud Build is not available, either - // because it is not enabled or because Cloud Deploy has insufficient - // permissions. See [required - // permission](https://cloud.google.com/deploy/docs/cloud-deploy-service- - // account#required_permissions). - // "EXECUTION_FAILED" - The postdeploy operation did not complete - // successfully; check Cloud Build logs. - // "DEADLINE_EXCEEDED" - The postdeploy job run did not complete - // within the alloted time. - // "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Cloud - // Deploy's request. See failure_message for additional details. - FailureCause string `json:"failureCause,omitempty"` + // Labels: Cross-service attributes for the location. For example + // {"cloud.googleapis.com/region": "us-east1"} + Labels map[string]string `json:"labels,omitempty"` - // FailureMessage: Output only. Additional information about the - // postdeploy failure, if available. - FailureMessage string `json:"failureMessage,omitempty"` + // LocationId: The canonical id for this location. For example: + // "us-east1". + LocationId string `json:"locationId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Build") to + // Metadata: Service-specific metadata. For example the available + // capacity at the given location. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` + + // Name: Resource name for the location, which may vary between + // implementations. For example: + // "projects/example-project/locations/us-east1" + Name string `json:"name,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2974,29 +2914,33 @@ type PostdeployJobRun struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Build") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "DisplayName") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *PostdeployJobRun) MarshalJSON() ([]byte, error) { - type NoMethod PostdeployJobRun +func (s *Location) MarshalJSON() ([]byte, error) { + type NoMethod Location raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Predeploy: Predeploy contains the predeploy job configuration -// information. -type Predeploy struct { - // Actions: Optional. A sequence of Skaffold custom actions to invoke - // during execution of the predeploy job. - Actions []string `json:"actions,omitempty"` +// Metadata: Metadata includes information associated with a `Rollout`. +type Metadata struct { + // Automation: Output only. AutomationRolloutMetadata contains the + // information about the interactions between Automation service and + // this rollout. + Automation *AutomationRolloutMetadata `json:"automation,omitempty"` - // ForceSendFields is a list of field names (e.g. "Actions") to + // CloudRun: Output only. The name of the Cloud Run Service that is + // associated with a `Rollout`. + CloudRun *CloudRunMetadata `json:"cloudRun,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Automation") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3004,7 +2948,7 @@ type Predeploy struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Actions") to include in + // NullFields is a list of field names (e.g. "Automation") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -3013,19 +2957,18 @@ type Predeploy struct { NullFields []string `json:"-"` } -func (s *Predeploy) MarshalJSON() ([]byte, error) { - type NoMethod Predeploy +func (s *Metadata) MarshalJSON() ([]byte, error) { + type NoMethod Metadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// PredeployJob: A predeploy Job. -type PredeployJob struct { - // Actions: Output only. The custom actions that the predeploy Job - // executes. - Actions []string `json:"actions,omitempty"` +// MultiTarget: Information specifying a multiTarget. +type MultiTarget struct { + // TargetIds: Required. The target_ids of this multiTarget. + TargetIds []string `json:"targetIds,omitempty"` - // ForceSendFields is a list of field names (e.g. "Actions") to + // ForceSendFields is a list of field names (e.g. "TargetIds") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3033,7 +2976,7 @@ type PredeployJob struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Actions") to include in + // NullFields is a list of field names (e.g. "TargetIds") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -3042,45 +2985,52 @@ type PredeployJob struct { NullFields []string `json:"-"` } -func (s *PredeployJob) MarshalJSON() ([]byte, error) { - type NoMethod PredeployJob +func (s *MultiTarget) MarshalJSON() ([]byte, error) { + type NoMethod MultiTarget raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// PredeployJobRun: PredeployJobRun contains information specific to a -// predeploy `JobRun`. -type PredeployJobRun struct { - // Build: Output only. The resource name of the Cloud Build `Build` - // object that is used to execute the custom actions associated with the - // predeploy Job. Format is - // projects/{project}/locations/{location}/builds/{build}. - Build string `json:"build,omitempty"` +// Operation: This resource represents a long-running operation that is +// the result of a network API call. +type Operation struct { + // Done: If the value is `false`, it means the operation is still in + // progress. If `true`, the operation is completed, and either `error` + // or `response` is available. + Done bool `json:"done,omitempty"` - // FailureCause: Output only. The reason the predeploy failed. This will - // always be unspecified while the predeploy is in progress or if it - // succeeded. - // - // Possible values: - // "FAILURE_CAUSE_UNSPECIFIED" - No reason for failure is specified. - // "CLOUD_BUILD_UNAVAILABLE" - Cloud Build is not available, either - // because it is not enabled or because Cloud Deploy has insufficient - // permissions. See [required - // permission](https://cloud.google.com/deploy/docs/cloud-deploy-service- - // account#required_permissions). - // "EXECUTION_FAILED" - The predeploy operation did not complete - // successfully; check Cloud Build logs. - // "DEADLINE_EXCEEDED" - The predeploy job run did not complete within - // the alloted time. - // "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Cloud - // Deploy's request. See failure_message for additional details. - FailureCause string `json:"failureCause,omitempty"` + // Error: The error result of the operation in case of failure or + // cancellation. + Error *Status `json:"error,omitempty"` - // FailureMessage: Output only. Additional information about the - // predeploy failure, if available. - FailureMessage string `json:"failureMessage,omitempty"` + // Metadata: Service-specific metadata associated with the operation. It + // typically contains progress information and common metadata such as + // create time. Some services might not provide such metadata. Any + // method that returns a long-running operation should document the + // metadata type, if any. + Metadata googleapi.RawMessage `json:"metadata,omitempty"` - // ForceSendFields is a list of field names (e.g. "Build") to + // Name: The server-assigned name, which is only unique within the same + // service that originally returns it. If you use the default HTTP + // mapping, the `name` should be a resource name ending with + // `operations/{unique_id}`. + Name string `json:"name,omitempty"` + + // Response: The normal, successful response of the operation. If the + // original method returns no data on success, such as `Delete`, the + // response is `google.protobuf.Empty`. If the original method is + // standard `Get`/`Create`/`Update`, the response should be the + // resource. For other methods, the response should have the type + // `XxxResponse`, where `Xxx` is the original method name. For example, + // if the original method name is `TakeSnapshot()`, the inferred + // response type is `TakeSnapshotResponse`. + Response googleapi.RawMessage `json:"response,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Done") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3088,7 +3038,7 @@ type PredeployJobRun struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Build") to include in API + // NullFields is a list of field names (e.g. "Done") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -3097,32 +3047,42 @@ type PredeployJobRun struct { NullFields []string `json:"-"` } -func (s *PredeployJobRun) MarshalJSON() ([]byte, error) { - type NoMethod PredeployJobRun +func (s *Operation) MarshalJSON() ([]byte, error) { + type NoMethod Operation raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// PrivatePool: Execution using a private Cloud Build pool. -type PrivatePool struct { - // ArtifactStorage: Optional. Cloud Storage location where execution - // outputs should be stored. This can either be a bucket - // ("gs://my-bucket") or a path within a bucket - // ("gs://my-bucket/my-dir"). If unspecified, a default bucket located - // in the same region will be used. - ArtifactStorage string `json:"artifactStorage,omitempty"` +// OperationMetadata: Represents the metadata of the long-running +// operation. +type OperationMetadata struct { + // ApiVersion: Output only. API version used to start the operation. + ApiVersion string `json:"apiVersion,omitempty"` - // ServiceAccount: Optional. Google service account to use for - // execution. If unspecified, the project execution service account - // (-compute@developer.gserviceaccount.com) will be used. - ServiceAccount string `json:"serviceAccount,omitempty"` + // CreateTime: Output only. The time the operation was created. + CreateTime string `json:"createTime,omitempty"` - // WorkerPool: Required. Resource name of the Cloud Build worker pool to - // use. The format is - // `projects/{project}/locations/{location}/workerPools/{pool}`. - WorkerPool string `json:"workerPool,omitempty"` + // EndTime: Output only. The time the operation finished running. + EndTime string `json:"endTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "ArtifactStorage") to + // RequestedCancellation: Output only. Identifies whether the user has + // requested cancellation of the operation. Operations that have + // successfully been cancelled have 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"` + + // Target: Output only. Server-defined resource path for the target of + // the operation. + Target string `json:"target,omitempty"` + + // Verb: Output only. Name of the verb executed by the operation. + Verb string `json:"verb,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ApiVersion") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3130,128 +3090,146 @@ type PrivatePool struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ArtifactStorage") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "ApiVersion") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *PrivatePool) MarshalJSON() ([]byte, error) { - type NoMethod PrivatePool +func (s *OperationMetadata) MarshalJSON() ([]byte, error) { + type NoMethod OperationMetadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Release: A `Release` resource in the Cloud Deploy API. A `Release` -// defines a specific Skaffold configuration instance that can be -// deployed. -type Release struct { - // Abandoned: Output only. Indicates whether this is an abandoned - // release. - Abandoned bool `json:"abandoned,omitempty"` - - // Annotations: User annotations. These attributes can only be set and - // used by the user, and not by Cloud Deploy. See - // https://google.aip.dev/128#annotations for more details such as - // format and size limitations. - Annotations map[string]string `json:"annotations,omitempty"` +// Phase: Phase represents a collection of jobs that are logically +// grouped together for a `Rollout`. +type Phase struct { + // ChildRolloutJobs: Output only. ChildRollout job composition. + ChildRolloutJobs *ChildRolloutJobs `json:"childRolloutJobs,omitempty"` - // BuildArtifacts: List of artifacts to pass through to Skaffold - // command. - BuildArtifacts []*BuildArtifact `json:"buildArtifacts,omitempty"` + // DeploymentJobs: Output only. Deployment job composition. + DeploymentJobs *DeploymentJobs `json:"deploymentJobs,omitempty"` - // Condition: Output only. Information around the state of the Release. - Condition *ReleaseCondition `json:"condition,omitempty"` + // Id: Output only. The ID of the Phase. + Id string `json:"id,omitempty"` - // CreateTime: Output only. Time at which the `Release` was created. - CreateTime string `json:"createTime,omitempty"` + // SkipMessage: Output only. Additional information on why the Phase was + // skipped, if available. + SkipMessage string `json:"skipMessage,omitempty"` - // DeliveryPipelineSnapshot: Output only. Snapshot of the parent - // pipeline taken at release creation time. - DeliveryPipelineSnapshot *DeliveryPipeline `json:"deliveryPipelineSnapshot,omitempty"` - - // DeployParameters: Optional. The deploy parameters to use for all - // targets in this release. - DeployParameters map[string]string `json:"deployParameters,omitempty"` + // State: Output only. Current state of the Phase. + // + // Possible values: + // "STATE_UNSPECIFIED" - The Phase has an unspecified state. + // "PENDING" - The Phase is waiting for an earlier Phase(s) to + // complete. + // "IN_PROGRESS" - The Phase is in progress. + // "SUCCEEDED" - The Phase has succeeded. + // "FAILED" - The Phase has failed. + // "ABORTED" - The Phase was aborted. + // "SKIPPED" - The Phase was skipped. + State string `json:"state,omitempty"` - // Description: Description of the `Release`. Max length is 255 - // characters. - Description string `json:"description,omitempty"` + // ForceSendFields is a list of field names (e.g. "ChildRolloutJobs") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` - // Etag: This checksum is computed by the server based on the value of - // other fields, and may be sent on update and delete requests to ensure - // the client has an up-to-date value before proceeding. - Etag string `json:"etag,omitempty"` + // NullFields is a list of field names (e.g. "ChildRolloutJobs") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} - // Labels: Labels are attributes that can be set and used by both the - // user and by Cloud Deploy. Labels must meet the following constraints: - // * Keys and values can contain only lowercase letters, numeric - // characters, underscores, and dashes. * All characters must use UTF-8 - // encoding, and international characters are allowed. * Keys must start - // with a lowercase letter or international character. * Each resource - // is limited to a maximum of 64 labels. Both keys and values are - // additionally constrained to be <= 128 bytes. - Labels map[string]string `json:"labels,omitempty"` +func (s *Phase) MarshalJSON() ([]byte, error) { + type NoMethod Phase + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} - // Name: Optional. Name of the `Release`. Format is projects/{project}/ - // locations/{location}/deliveryPipelines/{deliveryPipeline}/ - // releases/a-z{0,62}. - Name string `json:"name,omitempty"` +// PhaseArtifact: Contains the paths to the artifacts, relative to the +// URI, for a phase. +type PhaseArtifact struct { + // JobManifestsPath: Output only. File path of the directory of rendered + // job manifests relative to the URI. This is only set if it is + // applicable. + JobManifestsPath string `json:"jobManifestsPath,omitempty"` - // RenderEndTime: Output only. Time at which the render completed. - RenderEndTime string `json:"renderEndTime,omitempty"` + // ManifestPath: Output only. File path of the rendered manifest + // relative to the URI. + ManifestPath string `json:"manifestPath,omitempty"` - // RenderStartTime: Output only. Time at which the render began. - RenderStartTime string `json:"renderStartTime,omitempty"` + // SkaffoldConfigPath: Output only. File path of the resolved Skaffold + // configuration relative to the URI. + SkaffoldConfigPath string `json:"skaffoldConfigPath,omitempty"` - // RenderState: Output only. Current state of the render operation. - // - // Possible values: - // "RENDER_STATE_UNSPECIFIED" - The render state is unspecified. - // "SUCCEEDED" - All rendering operations have completed successfully. - // "FAILED" - All rendering operations have completed, and one or more - // have failed. - // "IN_PROGRESS" - Rendering has started and is not complete. - RenderState string `json:"renderState,omitempty"` + // ForceSendFields is a list of field names (e.g. "JobManifestsPath") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` - // SkaffoldConfigPath: Filepath of the Skaffold config inside of the - // config URI. - SkaffoldConfigPath string `json:"skaffoldConfigPath,omitempty"` + // NullFields is a list of field names (e.g. "JobManifestsPath") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} - // SkaffoldConfigUri: Cloud Storage URI of tar.gz archive containing - // Skaffold configuration. - SkaffoldConfigUri string `json:"skaffoldConfigUri,omitempty"` +func (s *PhaseArtifact) MarshalJSON() ([]byte, error) { + type NoMethod PhaseArtifact + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} - // SkaffoldVersion: The Skaffold version to use when operating on this - // release, such as "1.20.0". Not all versions are valid; Cloud Deploy - // supports a specific set of versions. If unset, the most recent - // supported Skaffold version will be used. - SkaffoldVersion string `json:"skaffoldVersion,omitempty"` +// PhaseConfig: PhaseConfig represents the configuration for a phase in +// the custom canary deployment. +type PhaseConfig struct { + // Percentage: Required. Percentage deployment for the phase. + Percentage int64 `json:"percentage,omitempty"` - // TargetArtifacts: Output only. Map from target ID to the target - // artifacts created during the render operation. - TargetArtifacts map[string]TargetArtifact `json:"targetArtifacts,omitempty"` + // PhaseId: Required. The ID to assign to the `Rollout` phase. This + // value must consist of lower-case letters, numbers, and hyphens, start + // with a letter and end with a letter or a number, and have a max + // length of 63 characters. In other words, it must match the following + // regex: `^a-z ([a-z0-9-]{0,61}[a-z0-9])?$`. + PhaseId string `json:"phaseId,omitempty"` - // TargetRenders: Output only. Map from target ID to details of the - // render operation for that target. - TargetRenders map[string]TargetRender `json:"targetRenders,omitempty"` + // Postdeploy: Optional. Configuration for the postdeploy job of this + // phase. If this is not configured, there will be no postdeploy job for + // this phase. + Postdeploy *Postdeploy `json:"postdeploy,omitempty"` - // TargetSnapshots: Output only. Snapshot of the targets taken at - // release creation time. - TargetSnapshots []*Target `json:"targetSnapshots,omitempty"` + // Predeploy: Optional. Configuration for the predeploy job of this + // phase. If this is not configured, there will be no predeploy job for + // this phase. + Predeploy *Predeploy `json:"predeploy,omitempty"` - // Uid: Output only. Unique identifier of the `Release`. - Uid string `json:"uid,omitempty"` + // Profiles: Skaffold profiles to use when rendering the manifest for + // this phase. These are in addition to the profiles list specified in + // the `DeliveryPipeline` stage. + Profiles []string `json:"profiles,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // Verify: Whether to run verify tests after the deployment. + Verify bool `json:"verify,omitempty"` - // ForceSendFields is a list of field names (e.g. "Abandoned") to + // ForceSendFields is a list of field names (e.g. "Percentage") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3259,7 +3237,7 @@ type Release struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Abandoned") to include in + // NullFields is a list of field names (e.g. "Percentage") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -3268,24 +3246,28 @@ type Release struct { NullFields []string `json:"-"` } -func (s *Release) MarshalJSON() ([]byte, error) { - type NoMethod Release +func (s *PhaseConfig) MarshalJSON() ([]byte, error) { + type NoMethod PhaseConfig raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ReleaseCondition: ReleaseCondition contains all conditions relevant -// to a Release. -type ReleaseCondition struct { - // ReleaseReadyCondition: Details around the Releases's overall status. - ReleaseReadyCondition *ReleaseReadyCondition `json:"releaseReadyCondition,omitempty"` +// PipelineCondition: PipelineCondition contains all conditions relevant +// to a Delivery Pipeline. +type PipelineCondition struct { + // PipelineReadyCondition: Details around the Pipeline's overall status. + PipelineReadyCondition *PipelineReadyCondition `json:"pipelineReadyCondition,omitempty"` - // SkaffoldSupportedCondition: Details around the support state of the - // release's skaffold version. - SkaffoldSupportedCondition *SkaffoldSupportedCondition `json:"skaffoldSupportedCondition,omitempty"` + // TargetsPresentCondition: Details around targets enumerated in the + // pipeline. + TargetsPresentCondition *TargetsPresentCondition `json:"targetsPresentCondition,omitempty"` + + // TargetsTypeCondition: Details on the whether the targets enumerated + // in the pipeline are of the same type. + TargetsTypeCondition *TargetsTypeCondition `json:"targetsTypeCondition,omitempty"` // ForceSendFields is a list of field names (e.g. - // "ReleaseReadyCondition") to unconditionally include in API requests. + // "PipelineReadyCondition") to unconditionally include in API requests. // By default, fields with empty or default values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the @@ -3293,49 +3275,35 @@ type ReleaseCondition struct { // Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ReleaseReadyCondition") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the + // NullFields is a list of field names (e.g. "PipelineReadyCondition") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` } -func (s *ReleaseCondition) MarshalJSON() ([]byte, error) { - type NoMethod ReleaseCondition +func (s *PipelineCondition) MarshalJSON() ([]byte, error) { + type NoMethod PipelineCondition raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ReleaseNotificationEvent: Payload proto for -// "clouddeploy.googleapis.com/release_notification" Platform Log event -// that describes the failure to send release status change Pub/Sub -// notification. -type ReleaseNotificationEvent struct { - // Message: Debug message for when a notification fails to send. - Message string `json:"message,omitempty"` - - // Release: The name of the `Release`. - Release string `json:"release,omitempty"` +// PipelineReadyCondition: PipelineReadyCondition contains information +// around the status of the Pipeline. +type PipelineReadyCondition struct { + // Status: True if the Pipeline is in a valid state. Otherwise at least + // one condition in `PipelineCondition` is in an invalid state. Iterate + // over those conditions and see which condition(s) has status = false + // to find out what is wrong with the Pipeline. + Status bool `json:"status,omitempty"` - // Type: Type of this notification, e.g. for a Pub/Sub failure. - // - // Possible values: - // "TYPE_UNSPECIFIED" - Type is unspecified. - // "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed - // to be sent. - // "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed. - // "TYPE_PROCESS_ABORTED" - A process aborted. - // "TYPE_RESTRICTION_VIOLATED" - Restriction check failed. - // "TYPE_RESOURCE_DELETED" - Resource deleted. - // "TYPE_ROLLOUT_UPDATE" - Rollout updated. - // "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never - // used. Use release_render log type instead. - Type string `json:"type,omitempty"` + // UpdateTime: Last time the condition was updated. + UpdateTime string `json:"updateTime,omitempty"` - // ForceSendFields is a list of field names (e.g. "Message") to + // ForceSendFields is a list of field names (e.g. "Status") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3343,8 +3311,8 @@ type ReleaseNotificationEvent struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Message") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Status") to include in API + // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -3352,57 +3320,130 @@ type ReleaseNotificationEvent struct { NullFields []string `json:"-"` } -func (s *ReleaseNotificationEvent) MarshalJSON() ([]byte, error) { - type NoMethod ReleaseNotificationEvent +func (s *PipelineReadyCondition) MarshalJSON() ([]byte, error) { + type NoMethod PipelineReadyCondition raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ReleaseReadyCondition: ReleaseReadyCondition contains information -// around the status of the Release. If a release is not ready, you -// cannot create a rollout with the release. -type ReleaseReadyCondition struct { - // Status: True if the Release is in a valid state. Otherwise at least - // one condition in `ReleaseCondition` is in an invalid state. Iterate - // over those conditions and see which condition(s) has status = false - // to find out what is wrong with the Release. - Status bool `json:"status,omitempty"` - - // ForceSendFields is a list of field names (e.g. "Status") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any +// 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 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 < 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 < +// 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/). +type Policy struct { + // AuditConfigs: Specifies cloud audit logging configuration for this + // policy. + AuditConfigs []*AuditConfig `json:"auditConfigs,omitempty"` + + // Bindings: Associates a list of `members`, or principals, with a + // `role`. Optionally, may specify a `condition` that determines how and + // when the `bindings` are applied. Each of the `bindings` must contain + // at least one principal. The `bindings` in a `Policy` can refer to up + // to 1,500 principals; up to 250 of these principals can be Google + // groups. Each occurrence of a principal counts towards these limits. + // For example, if the `bindings` grant 50 different roles to + // `user:alice@example.com`, and not to any other principal, then you + // can add another 1,450 principals to the `bindings` in the `Policy`. + Bindings []*Binding `json:"bindings,omitempty"` + + // Etag: `etag` is used for optimistic concurrency control as a way to + // help prevent simultaneous updates of a policy from overwriting each + // other. It is strongly suggested that systems make use of the `etag` + // in the read-modify-write cycle to perform policy updates in order to + // avoid race conditions: An `etag` is returned in the response to + // `getIamPolicy`, and systems are expected to put that etag in the + // request to `setIamPolicy` to ensure that their change will be applied + // to the same version of the policy. **Important:** If you use IAM + // Conditions, you must include the `etag` field whenever you call + // `setIamPolicy`. If you omit this field, then IAM allows you to + // overwrite a version `3` policy with a version `1` policy, and all of + // the conditions in the version `3` policy are lost. + Etag string `json:"etag,omitempty"` + + // Version: Specifies the format of the policy. Valid values are `0`, + // `1`, and `3`. Requests that specify an invalid value are rejected. + // Any operation that affects conditional role bindings must specify + // version `3`. This requirement applies to the following operations: * + // Getting a policy that includes a conditional role binding * Adding a + // conditional role binding to a policy * Changing a conditional role + // binding in a policy * Removing any role binding, with or without a + // condition, from a policy that includes conditions **Important:** If + // you use IAM Conditions, you must include the `etag` field whenever + // you call `setIamPolicy`. If you omit this field, then IAM allows you + // to overwrite a version `3` policy with a version `1` policy, and all + // of the conditions in the version `3` policy are lost. If a policy + // does not include any conditions, operations on that policy may + // specify any valid version or leave the field unset. To learn which + // resources support conditions in their IAM policies, see the IAM + // documentation + // (https://cloud.google.com/iam/help/conditions/resource-policies). + Version int64 `json:"version,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "AuditConfigs") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Status") to include in API - // requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "AuditConfigs") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *ReleaseReadyCondition) MarshalJSON() ([]byte, error) { - type NoMethod ReleaseReadyCondition +func (s *Policy) MarshalJSON() ([]byte, error) { + type NoMethod Policy raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ReleaseRenderEvent: Payload proto for -// "clouddeploy.googleapis.com/release_render" Platform Log event that -// describes the render status change. -type ReleaseRenderEvent struct { - // Message: Debug message for when a render transition occurs. Provides - // further details as rendering progresses through render states. - Message string `json:"message,omitempty"` - - // Release: The name of the `Release`. - Release string `json:"release,omitempty"` +// Postdeploy: Postdeploy contains the postdeploy job configuration +// information. +type Postdeploy struct { + // Actions: Optional. A sequence of Skaffold custom actions to invoke + // during execution of the postdeploy job. + Actions []string `json:"actions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Message") to + // ForceSendFields is a list of field names (e.g. "Actions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3410,7 +3451,7 @@ type ReleaseRenderEvent struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Message") to include in + // NullFields is a list of field names (e.g. "Actions") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -3419,20 +3460,19 @@ type ReleaseRenderEvent struct { NullFields []string `json:"-"` } -func (s *ReleaseRenderEvent) MarshalJSON() ([]byte, error) { - type NoMethod ReleaseRenderEvent +func (s *Postdeploy) MarshalJSON() ([]byte, error) { + type NoMethod Postdeploy raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// RenderMetadata: RenderMetadata includes information associated with a -// `Release` render. -type RenderMetadata struct { - // CloudRun: Output only. Metadata associated with rendering for Cloud - // Run. - CloudRun *CloudRunRenderMetadata `json:"cloudRun,omitempty"` +// PostdeployJob: A postdeploy Job. +type PostdeployJob struct { + // Actions: Output only. The custom actions that the postdeploy Job + // executes. + Actions []string `json:"actions,omitempty"` - // ForceSendFields is a list of field names (e.g. "CloudRun") to + // ForceSendFields is a list of field names (e.g. "Actions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3440,7 +3480,7 @@ type RenderMetadata struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CloudRun") to include in + // NullFields is a list of field names (e.g. "Actions") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -3449,22 +3489,45 @@ type RenderMetadata struct { NullFields []string `json:"-"` } -func (s *RenderMetadata) MarshalJSON() ([]byte, error) { - type NoMethod RenderMetadata +func (s *PostdeployJob) MarshalJSON() ([]byte, error) { + type NoMethod PostdeployJob raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// RetryJobRequest: RetryJobRequest is the request object used by -// `RetryJob`. -type RetryJobRequest struct { - // JobId: Required. The job ID for the Job to retry. - JobId string `json:"jobId,omitempty"` +// PostdeployJobRun: PostdeployJobRun contains information specific to a +// postdeploy `JobRun`. +type PostdeployJobRun struct { + // Build: Output only. The resource name of the Cloud Build `Build` + // object that is used to execute the custom actions associated with the + // postdeploy Job. Format is + // projects/{project}/locations/{location}/builds/{build}. + Build string `json:"build,omitempty"` - // PhaseId: Required. The phase ID the Job to retry belongs to. - PhaseId string `json:"phaseId,omitempty"` + // FailureCause: Output only. The reason the postdeploy failed. This + // will always be unspecified while the postdeploy is in progress or if + // it succeeded. + // + // Possible values: + // "FAILURE_CAUSE_UNSPECIFIED" - No reason for failure is specified. + // "CLOUD_BUILD_UNAVAILABLE" - Cloud Build is not available, either + // because it is not enabled or because Cloud Deploy has insufficient + // permissions. See [required + // permission](https://cloud.google.com/deploy/docs/cloud-deploy-service- + // account#required_permissions). + // "EXECUTION_FAILED" - The postdeploy operation did not complete + // successfully; check Cloud Build logs. + // "DEADLINE_EXCEEDED" - The postdeploy job run did not complete + // within the alloted time. + // "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Cloud + // Deploy's request. See failure_message for additional details. + FailureCause string `json:"failureCause,omitempty"` - // ForceSendFields is a list of field names (e.g. "JobId") to + // FailureMessage: Output only. Additional information about the + // postdeploy failure, if available. + FailureMessage string `json:"failureMessage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Build") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3472,7 +3535,7 @@ type RetryJobRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "JobId") to include in API + // NullFields is a list of field names (e.g. "Build") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -3481,29 +3544,20 @@ type RetryJobRequest struct { NullFields []string `json:"-"` } -func (s *RetryJobRequest) MarshalJSON() ([]byte, error) { - type NoMethod RetryJobRequest +func (s *PostdeployJobRun) MarshalJSON() ([]byte, error) { + type NoMethod PostdeployJobRun raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// RetryJobResponse: The response object from 'RetryJob'. -type RetryJobResponse struct { - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` -} - -// RollbackTargetConfig: Configs for the Rollback rollout. -type RollbackTargetConfig struct { - // Rollout: Optional. The rollback `Rollout` to create. - Rollout *Rollout `json:"rollout,omitempty"` - - // StartingPhaseId: Optional. The starting phase ID for the `Rollout`. - // If unspecified, the `Rollout` will start in the stable phase. - StartingPhaseId string `json:"startingPhaseId,omitempty"` +// Predeploy: Predeploy contains the predeploy job configuration +// information. +type Predeploy struct { + // Actions: Optional. A sequence of Skaffold custom actions to invoke + // during execution of the predeploy job. + Actions []string `json:"actions,omitempty"` - // ForceSendFields is a list of field names (e.g. "Rollout") to + // ForceSendFields is a list of field names (e.g. "Actions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3511,7 +3565,7 @@ type RollbackTargetConfig struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Rollout") to include in + // NullFields is a list of field names (e.g. "Actions") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -3520,37 +3574,19 @@ type RollbackTargetConfig struct { NullFields []string `json:"-"` } -func (s *RollbackTargetConfig) MarshalJSON() ([]byte, error) { - type NoMethod RollbackTargetConfig +func (s *Predeploy) MarshalJSON() ([]byte, error) { + type NoMethod Predeploy raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// RollbackTargetRequest: The request object for `RollbackTarget`. -type RollbackTargetRequest struct { - // ReleaseId: Optional. ID of the `Release` to roll back to. If this - // isn't specified, the previous successful `Rollout` to the specified - // target will be used to determine the `Release`. - ReleaseId string `json:"releaseId,omitempty"` - - // RollbackConfig: Optional. Configs for the rollback `Rollout`. - RollbackConfig *RollbackTargetConfig `json:"rollbackConfig,omitempty"` - - // RolloutId: Required. ID of the rollback `Rollout` to create. - RolloutId string `json:"rolloutId,omitempty"` - - // RolloutToRollBack: Optional. If provided, this must be the latest - // `Rollout` that is on the `Target`. - RolloutToRollBack string `json:"rolloutToRollBack,omitempty"` - - // TargetId: Required. ID of the `Target` that is being rolled back. - TargetId string `json:"targetId,omitempty"` - - // ValidateOnly: Optional. If set to true, the request is validated and - // the user is provided with a `RollbackTargetResponse`. - ValidateOnly bool `json:"validateOnly,omitempty"` +// PredeployJob: A predeploy Job. +type PredeployJob struct { + // Actions: Output only. The custom actions that the predeploy Job + // executes. + Actions []string `json:"actions,omitempty"` - // ForceSendFields is a list of field names (e.g. "ReleaseId") to + // ForceSendFields is a list of field names (e.g. "Actions") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3558,7 +3594,7 @@ type RollbackTargetRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ReleaseId") to include in + // NullFields is a list of field names (e.g. "Actions") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -3567,23 +3603,45 @@ type RollbackTargetRequest struct { NullFields []string `json:"-"` } -func (s *RollbackTargetRequest) MarshalJSON() ([]byte, error) { - type NoMethod RollbackTargetRequest +func (s *PredeployJob) MarshalJSON() ([]byte, error) { + type NoMethod PredeployJob raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// RollbackTargetResponse: The response object from `RollbackTarget`. -type RollbackTargetResponse struct { - // RollbackConfig: The config of the rollback `Rollout` created or will - // be created. - RollbackConfig *RollbackTargetConfig `json:"rollbackConfig,omitempty"` +// PredeployJobRun: PredeployJobRun contains information specific to a +// predeploy `JobRun`. +type PredeployJobRun struct { + // Build: Output only. The resource name of the Cloud Build `Build` + // object that is used to execute the custom actions associated with the + // predeploy Job. Format is + // projects/{project}/locations/{location}/builds/{build}. + Build string `json:"build,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // FailureCause: Output only. The reason the predeploy failed. This will + // always be unspecified while the predeploy is in progress or if it + // succeeded. + // + // Possible values: + // "FAILURE_CAUSE_UNSPECIFIED" - No reason for failure is specified. + // "CLOUD_BUILD_UNAVAILABLE" - Cloud Build is not available, either + // because it is not enabled or because Cloud Deploy has insufficient + // permissions. See [required + // permission](https://cloud.google.com/deploy/docs/cloud-deploy-service- + // account#required_permissions). + // "EXECUTION_FAILED" - The predeploy operation did not complete + // successfully; check Cloud Build logs. + // "DEADLINE_EXCEEDED" - The predeploy job run did not complete within + // the alloted time. + // "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Cloud + // Deploy's request. See failure_message for additional details. + FailureCause string `json:"failureCause,omitempty"` - // ForceSendFields is a list of field names (e.g. "RollbackConfig") to + // FailureMessage: Output only. Additional information about the + // predeploy failure, if available. + FailureMessage string `json:"failureMessage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Build") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3591,7 +3649,49 @@ type RollbackTargetResponse struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RollbackConfig") to + // NullFields is a list of field names (e.g. "Build") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PredeployJobRun) MarshalJSON() ([]byte, error) { + type NoMethod PredeployJobRun + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PrivatePool: Execution using a private Cloud Build pool. +type PrivatePool struct { + // ArtifactStorage: Optional. Cloud Storage location where execution + // outputs should be stored. This can either be a bucket + // ("gs://my-bucket") or a path within a bucket + // ("gs://my-bucket/my-dir"). If unspecified, a default bucket located + // in the same region will be used. + ArtifactStorage string `json:"artifactStorage,omitempty"` + + // ServiceAccount: Optional. Google service account to use for + // execution. If unspecified, the project execution service account + // (-compute@developer.gserviceaccount.com) will be used. + ServiceAccount string `json:"serviceAccount,omitempty"` + + // WorkerPool: Required. Resource name of the Cloud Build worker pool to + // use. The format is + // `projects/{project}/locations/{location}/workerPools/{pool}`. + WorkerPool string `json:"workerPool,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ArtifactStorage") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ArtifactStorage") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -3601,95 +3701,147 @@ type RollbackTargetResponse struct { NullFields []string `json:"-"` } -func (s *RollbackTargetResponse) MarshalJSON() ([]byte, error) { - type NoMethod RollbackTargetResponse +func (s *PrivatePool) MarshalJSON() ([]byte, error) { + type NoMethod PrivatePool raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Rollout: A `Rollout` resource in the Cloud Deploy API. A `Rollout` -// contains information around a specific deployment to a `Target`. -type Rollout struct { +// PromoteReleaseOperation: Contains the information of an automated +// promote-release operation. +type PromoteReleaseOperation struct { + // Phase: Output only. The starting phase of the rollout created by this + // operation. + Phase string `json:"phase,omitempty"` + + // Rollout: Output only. The name of the rollout that initiates the + // `AutomationRun`. + Rollout string `json:"rollout,omitempty"` + + // TargetId: Output only. The ID of the target that represents the + // promotion stage to which the release will be promoted. The value of + // this field is the last segment of a target name. + TargetId string `json:"targetId,omitempty"` + + // Wait: Output only. How long the operation will be paused. + Wait string `json:"wait,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Phase") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Phase") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PromoteReleaseOperation) MarshalJSON() ([]byte, error) { + type NoMethod PromoteReleaseOperation + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// PromoteReleaseRule: `PromoteRelease` rule will automatically promote +// a release from the current target to a specified target. +type PromoteReleaseRule struct { + // Condition: Output only. Information around the state of the + // Automation rule. + Condition *AutomationRuleCondition `json:"condition,omitempty"` + + // DestinationPhase: Optional. The starting phase of the rollout created + // by this operation. Default to the first phase. + DestinationPhase string `json:"destinationPhase,omitempty"` + + // DestinationTargetId: Optional. The ID of the stage in the pipeline to + // which this `Release` is deploying. If unspecified, default it to the + // next stage in the promotion flow. The value of this field could be + // one of the following: * The last segment of a target name. It only + // needs the ID to determine if the target is one of the stages in the + // promotion sequence defined in the pipeline. * "@next", the next + // target in the promotion sequence. + DestinationTargetId string `json:"destinationTargetId,omitempty"` + + // Id: Required. ID of the rule. This id must be unique in the + // `Automation` resource to which this rule belongs. The format is + // a-z{0,62}. + Id string `json:"id,omitempty"` + + // Wait: Optional. How long the release need to be paused until being + // promoted to the next target. + Wait string `json:"wait,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Condition") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Condition") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *PromoteReleaseRule) MarshalJSON() ([]byte, error) { + type NoMethod PromoteReleaseRule + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Release: A `Release` resource in the Cloud Deploy API. A `Release` +// defines a specific Skaffold configuration instance that can be +// deployed. +type Release struct { + // Abandoned: Output only. Indicates whether this is an abandoned + // release. + Abandoned bool `json:"abandoned,omitempty"` + // Annotations: User annotations. These attributes can only be set and // used by the user, and not by Cloud Deploy. See // https://google.aip.dev/128#annotations for more details such as // format and size limitations. Annotations map[string]string `json:"annotations,omitempty"` - // ApprovalState: Output only. Approval state of the `Rollout`. - // - // Possible values: - // "APPROVAL_STATE_UNSPECIFIED" - The `Rollout` has an unspecified - // approval state. - // "NEEDS_APPROVAL" - The `Rollout` requires approval. - // "DOES_NOT_NEED_APPROVAL" - The `Rollout` does not require approval. - // "APPROVED" - The `Rollout` has been approved. - // "REJECTED" - The `Rollout` has been rejected. - ApprovalState string `json:"approvalState,omitempty"` - - // ApproveTime: Output only. Time at which the `Rollout` was approved. - ApproveTime string `json:"approveTime,omitempty"` + // BuildArtifacts: List of artifacts to pass through to Skaffold + // command. + BuildArtifacts []*BuildArtifact `json:"buildArtifacts,omitempty"` - // ControllerRollout: Output only. Name of the `ControllerRollout`. - // Format is projects/{project}/ - // locations/{location}/deliveryPipelines/{deliveryPipeline}/ - // releases/{release}/rollouts/a-z{0,62}. - ControllerRollout string `json:"controllerRollout,omitempty"` + // Condition: Output only. Information around the state of the Release. + Condition *ReleaseCondition `json:"condition,omitempty"` - // CreateTime: Output only. Time at which the `Rollout` was created. + // CreateTime: Output only. Time at which the `Release` was created. CreateTime string `json:"createTime,omitempty"` - // DeployEndTime: Output only. Time at which the `Rollout` finished - // deploying. - DeployEndTime string `json:"deployEndTime,omitempty"` - - // DeployFailureCause: Output only. The reason this rollout failed. This - // will always be unspecified while the rollout is in progress. - // - // Possible values: - // "FAILURE_CAUSE_UNSPECIFIED" - No reason for failure is specified. - // "CLOUD_BUILD_UNAVAILABLE" - Cloud Build is not available, either - // because it is not enabled or because Cloud Deploy has insufficient - // permissions. See [required - // permission](https://cloud.google.com/deploy/docs/cloud-deploy-service- - // account#required_permissions). - // "EXECUTION_FAILED" - The deploy operation did not complete - // successfully; check Cloud Build logs. - // "DEADLINE_EXCEEDED" - Deployment did not complete within the - // alloted time. - // "RELEASE_FAILED" - Release is in a failed state. - // "RELEASE_ABANDONED" - Release is abandoned. - // "VERIFICATION_CONFIG_NOT_FOUND" - No skaffold verify configuration - // was found. - // "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Cloud - // Deploy's request. See failure_message for additional details. - DeployFailureCause string `json:"deployFailureCause,omitempty"` - - // DeployStartTime: Output only. Time at which the `Rollout` started - // deploying. - DeployStartTime string `json:"deployStartTime,omitempty"` + // DeliveryPipelineSnapshot: Output only. Snapshot of the parent + // pipeline taken at release creation time. + DeliveryPipelineSnapshot *DeliveryPipeline `json:"deliveryPipelineSnapshot,omitempty"` - // DeployingBuild: Output only. The resource name of the Cloud Build - // `Build` object that is used to deploy the Rollout. Format is - // `projects/{project}/locations/{location}/builds/{build}`. - DeployingBuild string `json:"deployingBuild,omitempty"` + // DeployParameters: Optional. The deploy parameters to use for all + // targets in this release. + DeployParameters map[string]string `json:"deployParameters,omitempty"` - // Description: Description of the `Rollout` for user purposes. Max - // length is 255 characters. + // Description: Description of the `Release`. Max length is 255 + // characters. Description string `json:"description,omitempty"` - // EnqueueTime: Output only. Time at which the `Rollout` was enqueued. - EnqueueTime string `json:"enqueueTime,omitempty"` - // Etag: This checksum is computed by the server based on the value of // other fields, and may be sent on update and delete requests to ensure // the client has an up-to-date value before proceeding. Etag string `json:"etag,omitempty"` - // FailureReason: Output only. Additional information about the rollout - // failure, if available. - FailureReason string `json:"failureReason,omitempty"` - // Labels: Labels are attributes that can be set and used by both the // user and by Cloud Deploy. Labels must meet the following constraints: // * Keys and values can contain only lowercase letters, numeric @@ -3700,58 +3852,61 @@ type Rollout struct { // additionally constrained to be <= 128 bytes. Labels map[string]string `json:"labels,omitempty"` - // Metadata: Output only. Metadata contains information about the - // rollout. - Metadata *Metadata `json:"metadata,omitempty"` - - // Name: Optional. Name of the `Rollout`. Format is projects/{project}/ + // Name: Optional. Name of the `Release`. Format is projects/{project}/ // locations/{location}/deliveryPipelines/{deliveryPipeline}/ - // releases/{release}/rollouts/a-z{0,62}. + // releases/a-z{0,62}. Name string `json:"name,omitempty"` - // Phases: Output only. The phases that represent the workflows of this - // `Rollout`. - Phases []*Phase `json:"phases,omitempty"` - - // RollbackOfRollout: Output only. Name of the `Rollout` that is rolled - // back by this `Rollout`. Empty if this `Rollout` wasn't created as a - // rollback. - RollbackOfRollout string `json:"rollbackOfRollout,omitempty"` + // RenderEndTime: Output only. Time at which the render completed. + RenderEndTime string `json:"renderEndTime,omitempty"` - // RolledBackByRollouts: Output only. Names of `Rollouts` that rolled - // back this `Rollout`. - RolledBackByRollouts []string `json:"rolledBackByRollouts,omitempty"` + // RenderStartTime: Output only. Time at which the render began. + RenderStartTime string `json:"renderStartTime,omitempty"` - // State: Output only. Current state of the `Rollout`. + // RenderState: Output only. Current state of the render operation. // // Possible values: - // "STATE_UNSPECIFIED" - The `Rollout` has an unspecified state. - // "SUCCEEDED" - The `Rollout` has completed successfully. - // "FAILED" - The `Rollout` has failed. - // "IN_PROGRESS" - The `Rollout` is being deployed. - // "PENDING_APPROVAL" - The `Rollout` needs approval. - // "APPROVAL_REJECTED" - An approver rejected the `Rollout`. - // "PENDING" - The `Rollout` is waiting for an earlier Rollout(s) to - // complete on this `Target`. - // "PENDING_RELEASE" - The `Rollout` is waiting for the `Release` to - // be fully rendered. - // "CANCELLING" - The `Rollout` is in the process of being cancelled. - // "CANCELLED" - The `Rollout` has been cancelled. - // "HALTED" - The `Rollout` is halted. - State string `json:"state,omitempty"` + // "RENDER_STATE_UNSPECIFIED" - The render state is unspecified. + // "SUCCEEDED" - All rendering operations have completed successfully. + // "FAILED" - All rendering operations have completed, and one or more + // have failed. + // "IN_PROGRESS" - Rendering has started and is not complete. + RenderState string `json:"renderState,omitempty"` - // TargetId: Required. The ID of Target to which this `Rollout` is - // deploying. - TargetId string `json:"targetId,omitempty"` + // SkaffoldConfigPath: Filepath of the Skaffold config inside of the + // config URI. + SkaffoldConfigPath string `json:"skaffoldConfigPath,omitempty"` - // Uid: Output only. Unique identifier of the `Rollout`. + // SkaffoldConfigUri: Cloud Storage URI of tar.gz archive containing + // Skaffold configuration. + SkaffoldConfigUri string `json:"skaffoldConfigUri,omitempty"` + + // SkaffoldVersion: The Skaffold version to use when operating on this + // release, such as "1.20.0". Not all versions are valid; Cloud Deploy + // supports a specific set of versions. If unset, the most recent + // supported Skaffold version will be used. + SkaffoldVersion string `json:"skaffoldVersion,omitempty"` + + // TargetArtifacts: Output only. Map from target ID to the target + // artifacts created during the render operation. + TargetArtifacts map[string]TargetArtifact `json:"targetArtifacts,omitempty"` + + // TargetRenders: Output only. Map from target ID to details of the + // render operation for that target. + TargetRenders map[string]TargetRender `json:"targetRenders,omitempty"` + + // TargetSnapshots: Output only. Snapshot of the targets taken at + // release creation time. + TargetSnapshots []*Target `json:"targetSnapshots,omitempty"` + + // Uid: Output only. Unique identifier of the `Release`. Uid string `json:"uid,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Annotations") to + // ForceSendFields is a list of field names (e.g. "Abandoned") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3759,40 +3914,66 @@ type Rollout struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Annotations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Abandoned") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *Rollout) MarshalJSON() ([]byte, error) { - type NoMethod Rollout +func (s *Release) MarshalJSON() ([]byte, error) { + type NoMethod Release raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// RolloutNotificationEvent: Payload proto for -// "clouddeploy.googleapis.com/rollout_notification" Platform Log event -// that describes the failure to send rollout status change Pub/Sub -// notification. -type RolloutNotificationEvent struct { - // Message: Debug message for when a notification fails to send. - Message string `json:"message,omitempty"` +// ReleaseCondition: ReleaseCondition contains all conditions relevant +// to a Release. +type ReleaseCondition struct { + // ReleaseReadyCondition: Details around the Releases's overall status. + ReleaseReadyCondition *ReleaseReadyCondition `json:"releaseReadyCondition,omitempty"` - // PipelineUid: Unique identifier of the `DeliveryPipeline`. - PipelineUid string `json:"pipelineUid,omitempty"` + // SkaffoldSupportedCondition: Details around the support state of the + // release's skaffold version. + SkaffoldSupportedCondition *SkaffoldSupportedCondition `json:"skaffoldSupportedCondition,omitempty"` - // ReleaseUid: Unique identifier of the `Release`. - ReleaseUid string `json:"releaseUid,omitempty"` + // ForceSendFields is a list of field names (e.g. + // "ReleaseReadyCondition") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. + ForceSendFields []string `json:"-"` - // Rollout: The name of the `Rollout`. - Rollout string `json:"rollout,omitempty"` + // NullFields is a list of field names (e.g. "ReleaseReadyCondition") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} - // TargetId: ID of the `Target` that the rollout is deployed to. - TargetId string `json:"targetId,omitempty"` +func (s *ReleaseCondition) MarshalJSON() ([]byte, error) { + type NoMethod ReleaseCondition + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ReleaseNotificationEvent: Payload proto for +// "clouddeploy.googleapis.com/release_notification" Platform Log event +// that describes the failure to send release status change Pub/Sub +// notification. +type ReleaseNotificationEvent struct { + // Message: Debug message for when a notification fails to send. + Message string `json:"message,omitempty"` + + // Release: The name of the `Release`. + Release string `json:"release,omitempty"` // Type: Type of this notification, e.g. for a Pub/Sub failure. // @@ -3826,22 +4007,23 @@ type RolloutNotificationEvent struct { NullFields []string `json:"-"` } -func (s *RolloutNotificationEvent) MarshalJSON() ([]byte, error) { - type NoMethod RolloutNotificationEvent +func (s *ReleaseNotificationEvent) MarshalJSON() ([]byte, error) { + type NoMethod ReleaseNotificationEvent raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// RuntimeConfig: RuntimeConfig contains the runtime specific -// configurations for a deployment strategy. -type RuntimeConfig struct { - // CloudRun: Cloud Run runtime configuration. - CloudRun *CloudRunConfig `json:"cloudRun,omitempty"` - - // Kubernetes: Kubernetes runtime configuration. - Kubernetes *KubernetesConfig `json:"kubernetes,omitempty"` +// ReleaseReadyCondition: ReleaseReadyCondition contains information +// around the status of the Release. If a release is not ready, you +// cannot create a rollout with the release. +type ReleaseReadyCondition struct { + // Status: True if the Release is in a valid state. Otherwise at least + // one condition in `ReleaseCondition` is in an invalid state. Iterate + // over those conditions and see which condition(s) has status = false + // to find out what is wrong with the Release. + Status bool `json:"status,omitempty"` - // ForceSendFields is a list of field names (e.g. "CloudRun") to + // ForceSendFields is a list of field names (e.g. "Status") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3849,8 +4031,8 @@ type RuntimeConfig struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CloudRun") to include in - // API requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Status") to include in API + // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -3858,20 +4040,24 @@ type RuntimeConfig struct { NullFields []string `json:"-"` } -func (s *RuntimeConfig) MarshalJSON() ([]byte, error) { - type NoMethod RuntimeConfig +func (s *ReleaseReadyCondition) MarshalJSON() ([]byte, error) { + type NoMethod ReleaseReadyCondition raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SerialPipeline: SerialPipeline defines a sequential set of stages for -// a `DeliveryPipeline`. -type SerialPipeline struct { - // Stages: Each stage specifies configuration for a `Target`. The - // ordering of this list defines the promotion flow. - Stages []*Stage `json:"stages,omitempty"` +// ReleaseRenderEvent: Payload proto for +// "clouddeploy.googleapis.com/release_render" Platform Log event that +// describes the render status change. +type ReleaseRenderEvent struct { + // Message: Debug message for when a render transition occurs. Provides + // further details as rendering progresses through render states. + Message string `json:"message,omitempty"` - // ForceSendFields is a list of field names (e.g. "Stages") to + // Release: The name of the `Release`. + Release string `json:"release,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Message") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3879,8 +4065,8 @@ type SerialPipeline struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Stages") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Message") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -3888,29 +4074,20 @@ type SerialPipeline struct { NullFields []string `json:"-"` } -func (s *SerialPipeline) MarshalJSON() ([]byte, error) { - type NoMethod SerialPipeline +func (s *ReleaseRenderEvent) MarshalJSON() ([]byte, error) { + type NoMethod ReleaseRenderEvent raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// ServiceNetworking: Information about the Kubernetes Service -// networking configuration. -type ServiceNetworking struct { - // Deployment: Required. Name of the Kubernetes Deployment whose traffic - // is managed by the specified Service. - Deployment string `json:"deployment,omitempty"` - - // DisablePodOverprovisioning: Optional. Whether to disable Pod - // overprovisioning. If Pod overprovisioning is disabled then Cloud - // Deploy will limit the number of total Pods used for the deployment - // strategy to the number of Pods the Deployment has on the cluster. - DisablePodOverprovisioning bool `json:"disablePodOverprovisioning,omitempty"` - - // Service: Required. Name of the Kubernetes Service. - Service string `json:"service,omitempty"` +// RenderMetadata: RenderMetadata includes information associated with a +// `Release` render. +type RenderMetadata struct { + // CloudRun: Output only. Metadata associated with rendering for Cloud + // Run. + CloudRun *CloudRunRenderMetadata `json:"cloudRun,omitempty"` - // ForceSendFields is a list of field names (e.g. "Deployment") to + // ForceSendFields is a list of field names (e.g. "CloudRun") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3918,7 +4095,7 @@ type ServiceNetworking struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Deployment") to include in + // NullFields is a list of field names (e.g. "CloudRun") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -3927,27 +4104,21 @@ type ServiceNetworking struct { NullFields []string `json:"-"` } -func (s *ServiceNetworking) MarshalJSON() ([]byte, error) { - type NoMethod ServiceNetworking +func (s *RenderMetadata) MarshalJSON() ([]byte, error) { + type NoMethod RenderMetadata raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SetIamPolicyRequest: Request message for `SetIamPolicy` method. -type SetIamPolicyRequest struct { - // Policy: REQUIRED: The complete policy to be applied to the - // `resource`. The size of the policy is limited to a few 10s of KB. An - // empty policy is a valid policy but certain Google Cloud services - // (such as Projects) might reject them. - Policy *Policy `json:"policy,omitempty"` +// RepairMode: Configuration of the repair action. +type RepairMode struct { + // Retry: Optional. Retries a failed job. + Retry *Retry `json:"retry,omitempty"` - // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the - // policy to modify. Only the fields in the mask will be modified. If no - // mask is provided, the following default mask is used: `paths: - // "bindings, etag" - UpdateMask string `json:"updateMask,omitempty"` + // Rollback: Optional. Rolls back a `Rollout`. + Rollback *Rollback `json:"rollback,omitempty"` - // ForceSendFields is a list of field names (e.g. "Policy") to + // ForceSendFields is a list of field names (e.g. "Retry") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -3955,7 +4126,7 @@ type SetIamPolicyRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Policy") to include in API + // NullFields is a list of field names (e.g. "Retry") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -3964,130 +4135,121 @@ type SetIamPolicyRequest struct { NullFields []string `json:"-"` } -func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { - type NoMethod SetIamPolicyRequest +func (s *RepairMode) MarshalJSON() ([]byte, error) { + type NoMethod RepairMode raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SkaffoldSupportedCondition: SkaffoldSupportedCondition contains -// information about when support for the release's version of skaffold -// ends. -type SkaffoldSupportedCondition struct { - // MaintenanceModeTime: The time at which this release's version of - // skaffold will enter maintenance mode. - MaintenanceModeTime string `json:"maintenanceModeTime,omitempty"` - - // SkaffoldSupportState: The skaffold support state for this release's - // version of skaffold. - // - // Possible values: - // "SKAFFOLD_SUPPORT_STATE_UNSPECIFIED" - Default value. This value is - // unused. - // "SKAFFOLD_SUPPORT_STATE_SUPPORTED" - This skaffold version is - // currently supported. - // "SKAFFOLD_SUPPORT_STATE_MAINTENANCE_MODE" - This skaffold version - // is in maintenance mode. - // "SKAFFOLD_SUPPORT_STATE_UNSUPPORTED" - This skaffold version is no - // longer supported. - SkaffoldSupportState string `json:"skaffoldSupportState,omitempty"` - - // Status: True if the version of skaffold used by this release is - // supported. - Status bool `json:"status,omitempty"` +// RepairPhase: RepairPhase tracks the repair attempts that have been +// made for each `RepairMode` specified in the `Automation` resource. +type RepairPhase struct { + // Retry: Output only. Records of the retry attempts for retry repair + // mode. + Retry *RetryPhase `json:"retry,omitempty"` - // SupportExpirationTime: The time at which this release's version of - // skaffold will no longer be supported. - SupportExpirationTime string `json:"supportExpirationTime,omitempty"` + // Rollback: Output only. Rollback attempt for rollback repair mode . + Rollback *RollbackAttempt `json:"rollback,omitempty"` - // ForceSendFields is a list of field names (e.g. "MaintenanceModeTime") - // to unconditionally include in API requests. By default, fields with + // ForceSendFields is a list of field names (e.g. "Retry") to + // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be // sent to the server regardless of whether the field is empty or not. // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MaintenanceModeTime") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. - NullFields []string `json:"-"` -} - -func (s *SkaffoldSupportedCondition) MarshalJSON() ([]byte, error) { - type NoMethod SkaffoldSupportedCondition + // NullFields is a list of field names (e.g. "Retry") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RepairPhase) MarshalJSON() ([]byte, error) { + type NoMethod RepairPhase raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SkaffoldVersion: Details of a supported Skaffold version. -type SkaffoldVersion struct { - // MaintenanceModeTime: The time at which this version of skaffold will - // enter maintenance mode. - MaintenanceModeTime string `json:"maintenanceModeTime,omitempty"` - - // SupportEndDate: Date when this version is expected to no longer be - // supported. - SupportEndDate *Date `json:"supportEndDate,omitempty"` +// RepairRolloutOperation: Contains the information for an automated +// `repair rollout` operation. +type RepairRolloutOperation struct { + // CurrentRepairModeIndex: Output only. The index of the current repair + // action in the repair sequence. + CurrentRepairModeIndex int64 `json:"currentRepairModeIndex,omitempty,string"` - // SupportExpirationTime: The time at which this version of skaffold - // will no longer be supported. - SupportExpirationTime string `json:"supportExpirationTime,omitempty"` + // RepairPhases: Output only. Records of the repair attempts. Each + // repair phase may have multiple retry attempts or single rollback + // attempt. + RepairPhases []*RepairPhase `json:"repairPhases,omitempty"` - // Version: Release version number. For example, "1.20.3". - Version string `json:"version,omitempty"` + // Rollout: Output only. The name of the rollout that initiates the + // `AutomationRun`. + Rollout string `json:"rollout,omitempty"` - // ForceSendFields is a list of field names (e.g. "MaintenanceModeTime") - // to unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. + // ForceSendFields is a list of field names (e.g. + // "CurrentRepairModeIndex") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. However, any non-pointer, non-interface field appearing in + // ForceSendFields will be sent to the server regardless of whether the + // field is empty or not. This may be used to include empty fields in + // Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MaintenanceModeTime") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the + // NullFields is a list of field names (e.g. "CurrentRepairModeIndex") + // to include in API requests with the JSON null value. By default, + // fields with empty values are omitted from API requests. However, any + // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` } -func (s *SkaffoldVersion) MarshalJSON() ([]byte, error) { - type NoMethod SkaffoldVersion +func (s *RepairRolloutOperation) MarshalJSON() ([]byte, error) { + type NoMethod RepairRolloutOperation raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Stage: Stage specifies a location to which to deploy. -type Stage struct { - // DeployParameters: Optional. The deploy parameters to use for the - // target in this stage. - DeployParameters []*DeployParameters `json:"deployParameters,omitempty"` - - // Profiles: Skaffold profiles to use when rendering the manifest for - // this stage's `Target`. - Profiles []string `json:"profiles,omitempty"` +// RepairRolloutRule: The `RepairRolloutRule` automation rule will +// automatically repair a failed `Rollout`. +type RepairRolloutRule struct { + // Condition: Output only. Information around the state of the + // 'Automation' rule. + Condition *AutomationRuleCondition `json:"condition,omitempty"` - // Strategy: Optional. The strategy to use for a `Rollout` to this - // stage. - Strategy *Strategy `json:"strategy,omitempty"` + // Id: Required. ID of the rule. This id must be unique in the + // `Automation` resource to which this rule belongs. The format is + // a-z{0,62}. + Id string `json:"id,omitempty"` - // TargetId: The target_id to which this stage points. This field refers - // exclusively to the last segment of a target name. For example, this - // field would just be `my-target` (rather than - // `projects/project/locations/location/targets/my-target`). The - // location of the `Target` is inferred to be the same as the location - // of the `DeliveryPipeline` that contains this `Stage`. - TargetId string `json:"targetId,omitempty"` + // Jobs: Optional. Jobs to repair. Proceeds only after job name matched + // any one in the list, or for all jobs if unspecified or empty. The + // phase that includes the job must match the phase ID specified in + // `source_phase`. This value must consist of lower-case letters, + // numbers, and hyphens, start with a letter and end with a letter or a + // number, and have a max length of 63 characters. In other words, it + // must match the following regex: `^a-z ([a-z0-9-]{0,61}[a-z0-9])?$`. + Jobs []string `json:"jobs,omitempty"` + + // RepairModes: Required. Defines the types of automatic repair actions + // for failed jobs. + RepairModes []*RepairMode `json:"repairModes,omitempty"` + + // SourcePhases: Optional. Phases within which jobs are subject to + // automatic repair actions on failure. Proceeds only after phase name + // matched any one in the list, or for all phases if unspecified. This + // value must consist of lower-case letters, numbers, and hyphens, start + // with a letter and end with a letter or a number, and have a max + // length of 63 characters. In other words, it must match the following + // regex: `^a-z ([a-z0-9-]{0,61}[a-z0-9])?$`. + SourcePhases []string `json:"sourcePhases,omitempty"` - // ForceSendFields is a list of field names (e.g. "DeployParameters") to + // ForceSendFields is a list of field names (e.g. "Condition") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4095,36 +4257,42 @@ type Stage struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "DeployParameters") to - // include in API requests with the JSON null value. By default, fields - // with empty values are omitted from API requests. However, any field - // with an empty value appearing in NullFields will be sent to the - // server as null. It is an error if a field in this list has a - // non-empty value. This may be used to include null fields in Patch - // requests. + // NullFields is a list of field names (e.g. "Condition") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *Stage) MarshalJSON() ([]byte, error) { - type NoMethod Stage +func (s *RepairRolloutRule) MarshalJSON() ([]byte, error) { + type NoMethod RepairRolloutRule raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Standard: Standard represents the standard deployment strategy. -type Standard struct { - // Postdeploy: Optional. Configuration for the postdeploy job. If this - // is not configured, postdeploy job will not be present. - Postdeploy *Postdeploy `json:"postdeploy,omitempty"` +// Retry: Retries the failed job. +type Retry struct { + // Attempts: Required. Total number of retries. Retry will skipped if + // set to 0; The minimum value is 1, and the maximum value is 10. + Attempts int64 `json:"attempts,omitempty,string"` - // Predeploy: Optional. Configuration for the predeploy job. If this is - // not configured, predeploy job will not be present. - Predeploy *Predeploy `json:"predeploy,omitempty"` + // BackoffMode: Optional. The pattern of how wait time will be + // increased. Default is linear. Backoff mode will be ignored if `wait` + // is 0. + // + // Possible values: + // "BACKOFF_MODE_UNSPECIFIED" - No WaitMode is specified. + // "BACKOFF_MODE_LINEAR" - Increases the wait time linearly. + // "BACKOFF_MODE_EXPONENTIAL" - Increases the wait time exponentially. + BackoffMode string `json:"backoffMode,omitempty"` - // Verify: Whether to verify a deployment. - Verify bool `json:"verify,omitempty"` + // Wait: Optional. How long to wait for the first retry. Default is 0, + // and the maximum value is 14d. + Wait string `json:"wait,omitempty"` - // ForceSendFields is a list of field names (e.g. "Postdeploy") to + // ForceSendFields is a list of field names (e.g. "Attempts") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4132,7 +4300,7 @@ type Standard struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Postdeploy") to include in + // NullFields is a list of field names (e.g. "Attempts") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -4141,34 +4309,37 @@ type Standard struct { NullFields []string `json:"-"` } -func (s *Standard) MarshalJSON() ([]byte, error) { - type NoMethod Standard +func (s *Retry) MarshalJSON() ([]byte, error) { + type NoMethod Retry raw := NoMethod(*s) return gensupport.MarshalJSON(raw, 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 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). -type Status struct { - // Code: The status code, which should be an enum value of - // google.rpc.Code. - Code int64 `json:"code,omitempty"` +// RetryAttempt: RetryAttempt represents an action of retrying the +// failed Cloud Deploy job. +type RetryAttempt struct { + // Attempt: Output only. The index of this retry attempt. + Attempt int64 `json:"attempt,omitempty,string"` - // Details: A list of messages that carry the error details. There is a - // common set of message types for APIs to use. - Details []googleapi.RawMessage `json:"details,omitempty"` + // State: Output only. Valid state of this retry action. + // + // Possible values: + // "REPAIR_STATE_UNSPECIFIED" - The `repair` has an unspecified state. + // "REPAIR_STATE_SUCCEEDED" - The `repair` action has succeeded. + // "REPAIR_STATE_CANCELLED" - The `repair` action was cancelled. + // "REPAIR_STATE_FAILED" - The `repair` action has failed. + // "REPAIR_STATE_IN_PROGRESS" - The `repair` action is in progress. + // "REPAIR_STATE_PENDING" - The `repair` action is pending. + // "REPAIR_STATE_SKIPPED" - The `repair` action was skipped. + State string `json:"state,omitempty"` - // Message: A developer-facing error message, which should be in - // English. Any user-facing error message should be localized and sent - // in the google.rpc.Status.details field, or localized by the client. - Message string `json:"message,omitempty"` + // StateDesc: Output only. Description of the state of the Retry. + StateDesc string `json:"stateDesc,omitempty"` - // ForceSendFields is a list of field names (e.g. "Code") to + // Wait: Output only. How long the operation will be paused. + Wait string `json:"wait,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Attempt") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4176,8 +4347,8 @@ type Status struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Code") to include in API - // requests with the JSON null value. By default, fields with empty + // NullFields is a list of field names (e.g. "Attempt") to include in + // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. @@ -4185,23 +4356,22 @@ type Status struct { NullFields []string `json:"-"` } -func (s *Status) MarshalJSON() ([]byte, error) { - type NoMethod Status +func (s *RetryAttempt) MarshalJSON() ([]byte, error) { + type NoMethod RetryAttempt raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Strategy: Strategy contains deployment strategy information. -type Strategy struct { - // Canary: Canary deployment strategy provides progressive percentage - // based deployments to a Target. - Canary *Canary `json:"canary,omitempty"` +// RetryJobRequest: RetryJobRequest is the request object used by +// `RetryJob`. +type RetryJobRequest struct { + // JobId: Required. The job ID for the Job to retry. + JobId string `json:"jobId,omitempty"` - // Standard: Standard deployment strategy executes a single deploy and - // allows verifying the deployment. - Standard *Standard `json:"standard,omitempty"` + // PhaseId: Required. The phase ID the Job to retry belongs to. + PhaseId string `json:"phaseId,omitempty"` - // ForceSendFields is a list of field names (e.g. "Canary") to + // ForceSendFields is a list of field names (e.g. "JobId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4209,7 +4379,7 @@ type Strategy struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Canary") to include in API + // NullFields is a list of field names (e.g. "JobId") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -4218,91 +4388,46 @@ type Strategy struct { NullFields []string `json:"-"` } -func (s *Strategy) MarshalJSON() ([]byte, error) { - type NoMethod Strategy +func (s *RetryJobRequest) MarshalJSON() ([]byte, error) { + type NoMethod RetryJobRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// Target: A `Target` resource in the Cloud Deploy API. A `Target` -// defines a location to which a Skaffold configuration can be deployed. -type Target struct { - // Annotations: Optional. User annotations. These attributes can only be - // set and used by the user, and not by Cloud Deploy. See - // https://google.aip.dev/128#annotations for more details such as - // format and size limitations. - Annotations map[string]string `json:"annotations,omitempty"` - - // AnthosCluster: Optional. Information specifying an Anthos Cluster. - AnthosCluster *AnthosCluster `json:"anthosCluster,omitempty"` - - // CreateTime: Output only. Time at which the `Target` was created. - CreateTime string `json:"createTime,omitempty"` - - // DeployParameters: Optional. The deploy parameters to use for this - // target. - DeployParameters map[string]string `json:"deployParameters,omitempty"` - - // Description: Optional. Description of the `Target`. Max length is 255 - // characters. - Description string `json:"description,omitempty"` - - // Etag: Optional. This checksum is computed by the server based on the - // value of other fields, and may be sent on update and delete requests - // to ensure the client has an up-to-date value before proceeding. - Etag string `json:"etag,omitempty"` - - // ExecutionConfigs: Configurations for all execution that relates to - // this `Target`. Each `ExecutionEnvironmentUsage` value may only be - // used in a single configuration; using the same value multiple times - // is an error. When one or more configurations are specified, they must - // include the `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values. - // When no configurations are specified, execution will use the default - // specified in `DefaultPool`. - ExecutionConfigs []*ExecutionConfig `json:"executionConfigs,omitempty"` - - // Gke: Optional. Information specifying a GKE Cluster. - Gke *GkeCluster `json:"gke,omitempty"` - - // Labels: Optional. Labels are attributes that can be set and used by - // both the user and by Cloud Deploy. Labels must meet the following - // constraints: * Keys and values can contain only lowercase letters, - // numeric characters, underscores, and dashes. * All characters must - // use UTF-8 encoding, and international characters are allowed. * Keys - // must start with a lowercase letter or international character. * Each - // resource is limited to a maximum of 64 labels. Both keys and values - // are additionally constrained to be <= 128 bytes. - Labels map[string]string `json:"labels,omitempty"` - - // MultiTarget: Optional. Information specifying a multiTarget. - MultiTarget *MultiTarget `json:"multiTarget,omitempty"` - - // Name: Optional. Name of the `Target`. Format is - // projects/{project}/locations/{location}/targets/a-z{0,62}. - Name string `json:"name,omitempty"` - - // RequireApproval: Optional. Whether or not the `Target` requires - // approval. - RequireApproval bool `json:"requireApproval,omitempty"` +// RetryJobResponse: The response object from 'RetryJob'. +type RetryJobResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} - // Run: Optional. Information specifying a Cloud Run deployment target. - Run *CloudRunLocation `json:"run,omitempty"` +// RetryPhase: RetryPhase contains the retry attempts and the metadata +// for initiating a new attempt. +type RetryPhase struct { + // Attempts: Output only. Detail of a retry action. + Attempts []*RetryAttempt `json:"attempts,omitempty"` - // TargetId: Output only. Resource id of the `Target`. - TargetId string `json:"targetId,omitempty"` + // BackoffMode: Output only. The pattern of how the wait time of the + // retry attempt is calculated. + // + // Possible values: + // "BACKOFF_MODE_UNSPECIFIED" - No WaitMode is specified. + // "BACKOFF_MODE_LINEAR" - Increases the wait time linearly. + // "BACKOFF_MODE_EXPONENTIAL" - Increases the wait time exponentially. + BackoffMode string `json:"backoffMode,omitempty"` - // Uid: Output only. Unique identifier of the `Target`. - Uid string `json:"uid,omitempty"` + // JobId: Output only. The job ID for the Job to retry. + JobId string `json:"jobId,omitempty"` - // UpdateTime: Output only. Most recent time at which the `Target` was - // updated. - UpdateTime string `json:"updateTime,omitempty"` + // PhaseId: Output only. The phase ID of the phase that includes the job + // being retried. + PhaseId string `json:"phaseId,omitempty"` - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` + // TotalAttempts: Output only. The number of attempts that have been + // made. + TotalAttempts int64 `json:"totalAttempts,omitempty,string"` - // ForceSendFields is a list of field names (e.g. "Annotations") to + // ForceSendFields is a list of field names (e.g. "Attempts") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4310,41 +4435,28 @@ type Target struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Annotations") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "Attempts") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *Target) MarshalJSON() ([]byte, error) { - type NoMethod Target +func (s *RetryPhase) MarshalJSON() ([]byte, error) { + type NoMethod RetryPhase raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// TargetArtifact: The artifacts produced by a target render operation. -type TargetArtifact struct { - // ArtifactUri: Output only. URI of a directory containing the - // artifacts. This contains deployment configuration used by Skaffold - // during a rollout, and all paths are relative to this location. - ArtifactUri string `json:"artifactUri,omitempty"` +// Rollback: Rolls back a `Rollout`. +type Rollback struct { + // DestinationPhase: Optional. The starting phase ID for the `Rollout`. + // If unspecified, the `Rollout` will start in the stable phase. + DestinationPhase string `json:"destinationPhase,omitempty"` - // ManifestPath: Output only. File path of the rendered manifest - // relative to the URI. - ManifestPath string `json:"manifestPath,omitempty"` - - // PhaseArtifacts: Output only. Map from the phase ID to the phase - // artifacts for the `Target`. - PhaseArtifacts map[string]PhaseArtifact `json:"phaseArtifacts,omitempty"` - - // SkaffoldConfigPath: Output only. File path of the resolved Skaffold - // configuration relative to the URI. - SkaffoldConfigPath string `json:"skaffoldConfigPath,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ArtifactUri") to + // ForceSendFields is a list of field names (e.g. "DestinationPhase") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4352,48 +4464,48 @@ type TargetArtifact struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "ArtifactUri") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "DestinationPhase") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } -func (s *TargetArtifact) MarshalJSON() ([]byte, error) { - type NoMethod TargetArtifact +func (s *Rollback) MarshalJSON() ([]byte, error) { + type NoMethod Rollback raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// TargetNotificationEvent: Payload proto for -// "clouddeploy.googleapis.com/target_notification" Platform Log event -// that describes the failure to send target status change Pub/Sub -// notification. -type TargetNotificationEvent struct { - // Message: Debug message for when a notification fails to send. - Message string `json:"message,omitempty"` +// RollbackAttempt: RollbackAttempt represents an action of rolling back +// a Cloud Deploy 'Target'. +type RollbackAttempt struct { + // DestinationPhase: Output only. The phase to which the rollout will be + // rolled back to. + DestinationPhase string `json:"destinationPhase,omitempty"` - // Target: The name of the `Target`. - Target string `json:"target,omitempty"` + // RolloutId: Output only. ID of the rollback `Rollout` to create. + RolloutId string `json:"rolloutId,omitempty"` - // Type: Type of this notification, e.g. for a Pub/Sub failure. + // State: Output only. Valid state of this rollback action. // // Possible values: - // "TYPE_UNSPECIFIED" - Type is unspecified. - // "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed - // to be sent. - // "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed. - // "TYPE_PROCESS_ABORTED" - A process aborted. - // "TYPE_RESTRICTION_VIOLATED" - Restriction check failed. - // "TYPE_RESOURCE_DELETED" - Resource deleted. - // "TYPE_ROLLOUT_UPDATE" - Rollout updated. - // "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never - // used. Use release_render log type instead. - Type string `json:"type,omitempty"` + // "REPAIR_STATE_UNSPECIFIED" - The `repair` has an unspecified state. + // "REPAIR_STATE_SUCCEEDED" - The `repair` action has succeeded. + // "REPAIR_STATE_CANCELLED" - The `repair` action was cancelled. + // "REPAIR_STATE_FAILED" - The `repair` action has failed. + // "REPAIR_STATE_IN_PROGRESS" - The `repair` action is in progress. + // "REPAIR_STATE_PENDING" - The `repair` action is pending. + // "REPAIR_STATE_SKIPPED" - The `repair` action was skipped. + State string `json:"state,omitempty"` - // ForceSendFields is a list of field names (e.g. "Message") to + // StateDesc: Output only. Description of the state of the Rollback. + StateDesc string `json:"stateDesc,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DestinationPhase") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4401,7 +4513,40 @@ type TargetNotificationEvent struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Message") to include in + // NullFields is a list of field names (e.g. "DestinationPhase") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *RollbackAttempt) MarshalJSON() ([]byte, error) { + type NoMethod RollbackAttempt + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RollbackTargetConfig: Configs for the Rollback rollout. +type RollbackTargetConfig struct { + // Rollout: Optional. The rollback `Rollout` to create. + Rollout *Rollout `json:"rollout,omitempty"` + + // StartingPhaseId: Optional. The starting phase ID for the `Rollout`. + // If unspecified, the `Rollout` will start in the stable phase. + StartingPhaseId string `json:"startingPhaseId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Rollout") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Rollout") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as @@ -4410,62 +4555,37 @@ type TargetNotificationEvent struct { NullFields []string `json:"-"` } -func (s *TargetNotificationEvent) MarshalJSON() ([]byte, error) { - type NoMethod TargetNotificationEvent +func (s *RollbackTargetConfig) MarshalJSON() ([]byte, error) { + type NoMethod RollbackTargetConfig raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// TargetRender: Details of rendering for a single target. -type TargetRender struct { - // FailureCause: Output only. Reason this render failed. This will - // always be unspecified while the render in progress. - // - // Possible values: - // "FAILURE_CAUSE_UNSPECIFIED" - No reason for failure is specified. - // "CLOUD_BUILD_UNAVAILABLE" - Cloud Build is not available, either - // because it is not enabled or because Cloud Deploy has insufficient - // permissions. See [required - // permission](https://cloud.google.com/deploy/docs/cloud-deploy-service- - // account#required_permissions). - // "EXECUTION_FAILED" - The render operation did not complete - // successfully; check Cloud Build logs. - // "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Cloud - // Deploy's request. See failure_message for additional details. - // "VERIFICATION_CONFIG_NOT_FOUND" - The render operation did not - // complete successfully because the verification stanza required for - // verify was not found on the skaffold configuration. - // "CUSTOM_ACTION_NOT_FOUND" - The render operation did not complete - // successfully because the custom action required for predeploy or - // postdeploy was not found in the skaffold configuration. See - // failure_message for additional details. - FailureCause string `json:"failureCause,omitempty"` +// RollbackTargetRequest: The request object for `RollbackTarget`. +type RollbackTargetRequest struct { + // ReleaseId: Optional. ID of the `Release` to roll back to. If this + // isn't specified, the previous successful `Rollout` to the specified + // target will be used to determine the `Release`. + ReleaseId string `json:"releaseId,omitempty"` - // FailureMessage: Output only. Additional information about the render - // failure, if available. - FailureMessage string `json:"failureMessage,omitempty"` + // RollbackConfig: Optional. Configs for the rollback `Rollout`. + RollbackConfig *RollbackTargetConfig `json:"rollbackConfig,omitempty"` - // Metadata: Output only. Metadata related to the `Release` render for - // this Target. - Metadata *RenderMetadata `json:"metadata,omitempty"` + // RolloutId: Required. ID of the rollback `Rollout` to create. + RolloutId string `json:"rolloutId,omitempty"` - // RenderingBuild: Output only. The resource name of the Cloud Build - // `Build` object that is used to render the manifest for this target. - // Format is `projects/{project}/locations/{location}/builds/{build}`. - RenderingBuild string `json:"renderingBuild,omitempty"` + // RolloutToRollBack: Optional. If provided, this must be the latest + // `Rollout` that is on the `Target`. + RolloutToRollBack string `json:"rolloutToRollBack,omitempty"` - // RenderingState: Output only. Current state of the render operation - // for this Target. - // - // Possible values: - // "TARGET_RENDER_STATE_UNSPECIFIED" - The render operation state is - // unspecified. - // "SUCCEEDED" - The render operation has completed successfully. - // "FAILED" - The render operation has failed. - // "IN_PROGRESS" - The render operation is in progress. - RenderingState string `json:"renderingState,omitempty"` + // TargetId: Required. ID of the `Target` that is being rolled back. + TargetId string `json:"targetId,omitempty"` - // ForceSendFields is a list of field names (e.g. "FailureCause") to + // ValidateOnly: Optional. If set to true, the request is validated and + // the user is provided with a `RollbackTargetResponse`. + ValidateOnly bool `json:"validateOnly,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ReleaseId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4473,37 +4593,32 @@ type TargetRender struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "FailureCause") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as + // NullFields is a list of field names (e.g. "ReleaseId") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` } -func (s *TargetRender) MarshalJSON() ([]byte, error) { - type NoMethod TargetRender +func (s *RollbackTargetRequest) MarshalJSON() ([]byte, error) { + type NoMethod RollbackTargetRequest raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// TargetsPresentCondition: TargetsPresentCondition contains information -// on any Targets defined in the Delivery Pipeline that do not actually -// exist. -type TargetsPresentCondition struct { - // MissingTargets: The list of Target names that do not exist. For - // example, - // projects/{project_id}/locations/{location_name}/targets/{target_name}. - MissingTargets []string `json:"missingTargets,omitempty"` - - // Status: True if there aren't any missing Targets. - Status bool `json:"status,omitempty"` +// RollbackTargetResponse: The response object from `RollbackTarget`. +type RollbackTargetResponse struct { + // RollbackConfig: The config of the rollback `Rollout` created or will + // be created. + RollbackConfig *RollbackTargetConfig `json:"rollbackConfig,omitempty"` - // UpdateTime: Last time the condition was updated. - UpdateTime string `json:"updateTime,omitempty"` + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "MissingTargets") to + // ForceSendFields is a list of field names (e.g. "RollbackConfig") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4511,7 +4626,7 @@ type TargetsPresentCondition struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "MissingTargets") to + // NullFields is a list of field names (e.g. "RollbackConfig") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the @@ -4521,68 +4636,324 @@ type TargetsPresentCondition struct { NullFields []string `json:"-"` } -func (s *TargetsPresentCondition) MarshalJSON() ([]byte, error) { - type NoMethod TargetsPresentCondition +func (s *RollbackTargetResponse) MarshalJSON() ([]byte, error) { + type NoMethod RollbackTargetResponse raw := NoMethod(*s) return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// TargetsTypeCondition: TargetsTypeCondition contains information on -// whether the Targets defined in the Delivery Pipeline are of the same -// type. -type TargetsTypeCondition struct { - // ErrorDetails: Human readable error message. - ErrorDetails string `json:"errorDetails,omitempty"` +// Rollout: A `Rollout` resource in the Cloud Deploy API. A `Rollout` +// contains information around a specific deployment to a `Target`. +type Rollout struct { + // Annotations: User annotations. These attributes can only be set and + // used by the user, and not by Cloud Deploy. See + // https://google.aip.dev/128#annotations for more details such as + // format and size limitations. + Annotations map[string]string `json:"annotations,omitempty"` - // Status: True if the targets are all a comparable type. For example - // this is true if all targets are GKE clusters. This is false if some - // targets are Cloud Run targets and others are GKE clusters. - Status bool `json:"status,omitempty"` + // ApprovalState: Output only. Approval state of the `Rollout`. + // + // Possible values: + // "APPROVAL_STATE_UNSPECIFIED" - The `Rollout` has an unspecified + // approval state. + // "NEEDS_APPROVAL" - The `Rollout` requires approval. + // "DOES_NOT_NEED_APPROVAL" - The `Rollout` does not require approval. + // "APPROVED" - The `Rollout` has been approved. + // "REJECTED" - The `Rollout` has been rejected. + ApprovalState string `json:"approvalState,omitempty"` - // ForceSendFields is a list of field names (e.g. "ErrorDetails") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` + // ApproveTime: Output only. Time at which the `Rollout` was approved. + ApproveTime string `json:"approveTime,omitempty"` - // NullFields is a list of field names (e.g. "ErrorDetails") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} + // ControllerRollout: Output only. Name of the `ControllerRollout`. + // Format is projects/{project}/ + // locations/{location}/deliveryPipelines/{deliveryPipeline}/ + // releases/{release}/rollouts/a-z{0,62}. + ControllerRollout string `json:"controllerRollout,omitempty"` -func (s *TargetsTypeCondition) MarshalJSON() ([]byte, error) { - type NoMethod TargetsTypeCondition - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} + // CreateTime: Output only. Time at which the `Rollout` was created. + CreateTime string `json:"createTime,omitempty"` -// TerminateJobRunRequest: The request object used by `TerminateJobRun`. -type TerminateJobRunRequest struct { -} + // DeployEndTime: Output only. Time at which the `Rollout` finished + // deploying. + DeployEndTime string `json:"deployEndTime,omitempty"` + + // DeployFailureCause: Output only. The reason this rollout failed. This + // will always be unspecified while the rollout is in progress. + // + // Possible values: + // "FAILURE_CAUSE_UNSPECIFIED" - No reason for failure is specified. + // "CLOUD_BUILD_UNAVAILABLE" - Cloud Build is not available, either + // because it is not enabled or because Cloud Deploy has insufficient + // permissions. See [required + // permission](https://cloud.google.com/deploy/docs/cloud-deploy-service- + // account#required_permissions). + // "EXECUTION_FAILED" - The deploy operation did not complete + // successfully; check Cloud Build logs. + // "DEADLINE_EXCEEDED" - Deployment did not complete within the + // alloted time. + // "RELEASE_FAILED" - Release is in a failed state. + // "RELEASE_ABANDONED" - Release is abandoned. + // "VERIFICATION_CONFIG_NOT_FOUND" - No skaffold verify configuration + // was found. + // "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Cloud + // Deploy's request. See failure_message for additional details. + DeployFailureCause string `json:"deployFailureCause,omitempty"` + + // DeployStartTime: Output only. Time at which the `Rollout` started + // deploying. + DeployStartTime string `json:"deployStartTime,omitempty"` + + // DeployingBuild: Output only. The resource name of the Cloud Build + // `Build` object that is used to deploy the Rollout. Format is + // `projects/{project}/locations/{location}/builds/{build}`. + DeployingBuild string `json:"deployingBuild,omitempty"` + + // Description: Description of the `Rollout` for user purposes. Max + // length is 255 characters. + Description string `json:"description,omitempty"` + + // EnqueueTime: Output only. Time at which the `Rollout` was enqueued. + EnqueueTime string `json:"enqueueTime,omitempty"` + + // Etag: This checksum is computed by the server based on the value of + // other fields, and may be sent on update and delete requests to ensure + // the client has an up-to-date value before proceeding. + Etag string `json:"etag,omitempty"` + + // FailureReason: Output only. Additional information about the rollout + // failure, if available. + FailureReason string `json:"failureReason,omitempty"` + + // Labels: Labels are attributes that can be set and used by both the + // user and by Cloud Deploy. Labels must meet the following constraints: + // * Keys and values can contain only lowercase letters, numeric + // characters, underscores, and dashes. * All characters must use UTF-8 + // encoding, and international characters are allowed. * Keys must start + // with a lowercase letter or international character. * Each resource + // is limited to a maximum of 64 labels. Both keys and values are + // additionally constrained to be <= 128 bytes. + Labels map[string]string `json:"labels,omitempty"` + + // Metadata: Output only. Metadata contains information about the + // rollout. + Metadata *Metadata `json:"metadata,omitempty"` + + // Name: Optional. Name of the `Rollout`. Format is projects/{project}/ + // locations/{location}/deliveryPipelines/{deliveryPipeline}/ + // releases/{release}/rollouts/a-z{0,62}. + Name string `json:"name,omitempty"` + + // Phases: Output only. The phases that represent the workflows of this + // `Rollout`. + Phases []*Phase `json:"phases,omitempty"` + + // RollbackOfRollout: Output only. Name of the `Rollout` that is rolled + // back by this `Rollout`. Empty if this `Rollout` wasn't created as a + // rollback. + RollbackOfRollout string `json:"rollbackOfRollout,omitempty"` + + // RolledBackByRollouts: Output only. Names of `Rollouts` that rolled + // back this `Rollout`. + RolledBackByRollouts []string `json:"rolledBackByRollouts,omitempty"` + + // State: Output only. Current state of the `Rollout`. + // + // Possible values: + // "STATE_UNSPECIFIED" - The `Rollout` has an unspecified state. + // "SUCCEEDED" - The `Rollout` has completed successfully. + // "FAILED" - The `Rollout` has failed. + // "IN_PROGRESS" - The `Rollout` is being deployed. + // "PENDING_APPROVAL" - The `Rollout` needs approval. + // "APPROVAL_REJECTED" - An approver rejected the `Rollout`. + // "PENDING" - The `Rollout` is waiting for an earlier Rollout(s) to + // complete on this `Target`. + // "PENDING_RELEASE" - The `Rollout` is waiting for the `Release` to + // be fully rendered. + // "CANCELLING" - The `Rollout` is in the process of being cancelled. + // "CANCELLED" - The `Rollout` has been cancelled. + // "HALTED" - The `Rollout` is halted. + State string `json:"state,omitempty"` + + // TargetId: Required. The ID of Target to which this `Rollout` is + // deploying. + TargetId string `json:"targetId,omitempty"` + + // Uid: Output only. Unique identifier of the `Rollout`. + Uid string `json:"uid,omitempty"` -// TerminateJobRunResponse: The response object from `TerminateJobRun`. -type TerminateJobRunResponse struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Annotations") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Annotations") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` } -// TestIamPermissionsRequest: Request message for `TestIamPermissions` -// method. -type TestIamPermissionsRequest struct { - // Permissions: The set of permissions to check for the `resource`. - // Permissions with wildcards (such as `*` or `storage.*`) are not - // allowed. For more information see IAM Overview - // (https://cloud.google.com/iam/docs/overview#permissions). - Permissions []string `json:"permissions,omitempty"` +func (s *Rollout) MarshalJSON() ([]byte, error) { + type NoMethod Rollout + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} - // ForceSendFields is a list of field names (e.g. "Permissions") to +// RolloutNotificationEvent: Payload proto for +// "clouddeploy.googleapis.com/rollout_notification" Platform Log event +// that describes the failure to send rollout status change Pub/Sub +// notification. +type RolloutNotificationEvent struct { + // Message: Debug message for when a notification fails to send. + Message string `json:"message,omitempty"` + + // PipelineUid: Unique identifier of the `DeliveryPipeline`. + PipelineUid string `json:"pipelineUid,omitempty"` + + // ReleaseUid: Unique identifier of the `Release`. + ReleaseUid string `json:"releaseUid,omitempty"` + + // Rollout: The name of the `Rollout`. + Rollout string `json:"rollout,omitempty"` + + // TargetId: ID of the `Target` that the rollout is deployed to. + TargetId string `json:"targetId,omitempty"` + + // Type: Type of this notification, e.g. for a Pub/Sub failure. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Type is unspecified. + // "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed + // to be sent. + // "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed. + // "TYPE_PROCESS_ABORTED" - A process aborted. + // "TYPE_RESTRICTION_VIOLATED" - Restriction check failed. + // "TYPE_RESOURCE_DELETED" - Resource deleted. + // "TYPE_ROLLOUT_UPDATE" - Rollout updated. + // "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never + // used. Use release_render log type instead. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Message") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Message") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RolloutNotificationEvent) MarshalJSON() ([]byte, error) { + type NoMethod RolloutNotificationEvent + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RolloutUpdateEvent: Payload proto for +// "clouddeploy.googleapis.com/rollout_update" Platform Log event that +// describes the rollout update event. +type RolloutUpdateEvent struct { + // Message: Debug message for when a rollout update event occurs. + Message string `json:"message,omitempty"` + + // PipelineUid: Unique identifier of the pipeline. + PipelineUid string `json:"pipelineUid,omitempty"` + + // ReleaseUid: Unique identifier of the release. + ReleaseUid string `json:"releaseUid,omitempty"` + + // Rollout: The name of the rollout. + Rollout string `json:"rollout,omitempty"` + + // RolloutUpdateType: Output only. The type of the rollout update. + // + // Possible values: + // "ROLLOUT_UPDATE_TYPE_UNSPECIFIED" - Rollout update type + // unspecified. + // "PENDING" - rollout state updated to pending. + // "PENDING_RELEASE" - Rollout state updated to pending release. + // "IN_PROGRESS" - Rollout state updated to in progress. + // "CANCELLING" - Rollout state updated to cancelling. + // "CANCELLED" - Rollout state updated to cancelled. + // "HALTED" - Rollout state updated to halted. + // "SUCCEEDED" - Rollout state updated to succeeded. + // "FAILED" - Rollout state updated to failed. + // "APPROVAL_REQUIRED" - Rollout requires approval. + // "APPROVED" - Rollout has been approved. + // "REJECTED" - Rollout has been rejected. + // "ADVANCE_REQUIRED" - Rollout requires advance to the next phase. + // "ADVANCED" - Rollout has been advanced. + RolloutUpdateType string `json:"rolloutUpdateType,omitempty"` + + // TargetId: ID of the target. + TargetId string `json:"targetId,omitempty"` + + // Type: Type of this notification, e.g. for a rollout update event. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Type is unspecified. + // "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed + // to be sent. + // "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed. + // "TYPE_PROCESS_ABORTED" - A process aborted. + // "TYPE_RESTRICTION_VIOLATED" - Restriction check failed. + // "TYPE_RESOURCE_DELETED" - Resource deleted. + // "TYPE_ROLLOUT_UPDATE" - Rollout updated. + // "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never + // used. Use release_render log type instead. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Message") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Message") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RolloutUpdateEvent) MarshalJSON() ([]byte, error) { + type NoMethod RolloutUpdateEvent + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// RuntimeConfig: RuntimeConfig contains the runtime specific +// configurations for a deployment strategy. +type RuntimeConfig struct { + // CloudRun: Cloud Run runtime configuration. + CloudRun *CloudRunConfig `json:"cloudRun,omitempty"` + + // Kubernetes: Kubernetes runtime configuration. + Kubernetes *KubernetesConfig `json:"kubernetes,omitempty"` + + // ForceSendFields is a list of field names (e.g. "CloudRun") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4590,194 +4961,2459 @@ type TestIamPermissionsRequest struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` + // NullFields is a list of field names (e.g. "CloudRun") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *RuntimeConfig) MarshalJSON() ([]byte, error) { + type NoMethod RuntimeConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SerialPipeline: SerialPipeline defines a sequential set of stages for +// a `DeliveryPipeline`. +type SerialPipeline struct { + // Stages: Each stage specifies configuration for a `Target`. The + // ordering of this list defines the promotion flow. + Stages []*Stage `json:"stages,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Stages") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Stages") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SerialPipeline) MarshalJSON() ([]byte, error) { + type NoMethod SerialPipeline + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// ServiceNetworking: Information about the Kubernetes Service +// networking configuration. +type ServiceNetworking struct { + // Deployment: Required. Name of the Kubernetes Deployment whose traffic + // is managed by the specified Service. + Deployment string `json:"deployment,omitempty"` + + // DisablePodOverprovisioning: Optional. Whether to disable Pod + // overprovisioning. If Pod overprovisioning is disabled then Cloud + // Deploy will limit the number of total Pods used for the deployment + // strategy to the number of Pods the Deployment has on the cluster. + DisablePodOverprovisioning bool `json:"disablePodOverprovisioning,omitempty"` + + // Service: Required. Name of the Kubernetes Service. + Service string `json:"service,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Deployment") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Deployment") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *ServiceNetworking) MarshalJSON() ([]byte, error) { + type NoMethod ServiceNetworking + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SetIamPolicyRequest: Request message for `SetIamPolicy` method. +type SetIamPolicyRequest struct { + // Policy: REQUIRED: The complete policy to be applied to the + // `resource`. The size of the policy is limited to a few 10s of KB. An + // empty policy is a valid policy but certain Google Cloud services + // (such as Projects) might reject them. + Policy *Policy `json:"policy,omitempty"` + + // UpdateMask: OPTIONAL: A FieldMask specifying which fields of the + // policy to modify. Only the fields in the mask will be modified. If no + // mask is provided, the following default mask is used: `paths: + // "bindings, etag" + UpdateMask string `json:"updateMask,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Policy") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Policy") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *SetIamPolicyRequest) MarshalJSON() ([]byte, error) { + type NoMethod SetIamPolicyRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SkaffoldSupportedCondition: SkaffoldSupportedCondition contains +// information about when support for the release's version of skaffold +// ends. +type SkaffoldSupportedCondition struct { + // MaintenanceModeTime: The time at which this release's version of + // skaffold will enter maintenance mode. + MaintenanceModeTime string `json:"maintenanceModeTime,omitempty"` + + // SkaffoldSupportState: The skaffold support state for this release's + // version of skaffold. + // + // Possible values: + // "SKAFFOLD_SUPPORT_STATE_UNSPECIFIED" - Default value. This value is + // unused. + // "SKAFFOLD_SUPPORT_STATE_SUPPORTED" - This skaffold version is + // currently supported. + // "SKAFFOLD_SUPPORT_STATE_MAINTENANCE_MODE" - This skaffold version + // is in maintenance mode. + // "SKAFFOLD_SUPPORT_STATE_UNSUPPORTED" - This skaffold version is no + // longer supported. + SkaffoldSupportState string `json:"skaffoldSupportState,omitempty"` + + // Status: True if the version of skaffold used by this release is + // supported. + Status bool `json:"status,omitempty"` + + // SupportExpirationTime: The time at which this release's version of + // skaffold will no longer be supported. + SupportExpirationTime string `json:"supportExpirationTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MaintenanceModeTime") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MaintenanceModeTime") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SkaffoldSupportedCondition) MarshalJSON() ([]byte, error) { + type NoMethod SkaffoldSupportedCondition + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SkaffoldVersion: Details of a supported Skaffold version. +type SkaffoldVersion struct { + // MaintenanceModeTime: The time at which this version of skaffold will + // enter maintenance mode. + MaintenanceModeTime string `json:"maintenanceModeTime,omitempty"` + + // SupportEndDate: Date when this version is expected to no longer be + // supported. + SupportEndDate *Date `json:"supportEndDate,omitempty"` + + // SupportExpirationTime: The time at which this version of skaffold + // will no longer be supported. + SupportExpirationTime string `json:"supportExpirationTime,omitempty"` + + // Version: Release version number. For example, "1.20.3". + Version string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MaintenanceModeTime") + // to unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MaintenanceModeTime") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *SkaffoldVersion) MarshalJSON() ([]byte, error) { + type NoMethod SkaffoldVersion + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Stage: Stage specifies a location to which to deploy. +type Stage struct { + // DeployParameters: Optional. The deploy parameters to use for the + // target in this stage. + DeployParameters []*DeployParameters `json:"deployParameters,omitempty"` + + // Profiles: Skaffold profiles to use when rendering the manifest for + // this stage's `Target`. + Profiles []string `json:"profiles,omitempty"` + + // Strategy: Optional. The strategy to use for a `Rollout` to this + // stage. + Strategy *Strategy `json:"strategy,omitempty"` + + // TargetId: The target_id to which this stage points. This field refers + // exclusively to the last segment of a target name. For example, this + // field would just be `my-target` (rather than + // `projects/project/locations/location/targets/my-target`). The + // location of the `Target` is inferred to be the same as the location + // of the `DeliveryPipeline` that contains this `Stage`. + TargetId string `json:"targetId,omitempty"` + + // ForceSendFields is a list of field names (e.g. "DeployParameters") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "DeployParameters") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *Stage) MarshalJSON() ([]byte, error) { + type NoMethod Stage + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Standard: Standard represents the standard deployment strategy. +type Standard struct { + // Postdeploy: Optional. Configuration for the postdeploy job. If this + // is not configured, postdeploy job will not be present. + Postdeploy *Postdeploy `json:"postdeploy,omitempty"` + + // Predeploy: Optional. Configuration for the predeploy job. If this is + // not configured, predeploy job will not be present. + Predeploy *Predeploy `json:"predeploy,omitempty"` + + // Verify: Whether to verify a deployment. + Verify bool `json:"verify,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Postdeploy") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Postdeploy") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Standard) MarshalJSON() ([]byte, error) { + type NoMethod Standard + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, 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 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). +type Status struct { + // Code: The status code, which should be an enum value of + // google.rpc.Code. + Code int64 `json:"code,omitempty"` + + // Details: A list of messages that carry the error details. There is a + // common set of message types for APIs to use. + Details []googleapi.RawMessage `json:"details,omitempty"` + + // Message: A developer-facing error message, which should be in + // English. Any user-facing error message should be localized and sent + // in the google.rpc.Status.details field, or localized by the client. + Message string `json:"message,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Code") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Code") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Status) MarshalJSON() ([]byte, error) { + type NoMethod Status + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Strategy: Strategy contains deployment strategy information. +type Strategy struct { + // Canary: Canary deployment strategy provides progressive percentage + // based deployments to a Target. + Canary *Canary `json:"canary,omitempty"` + + // Standard: Standard deployment strategy executes a single deploy and + // allows verifying the deployment. + Standard *Standard `json:"standard,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Canary") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Canary") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Strategy) MarshalJSON() ([]byte, error) { + type NoMethod Strategy + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// Target: A `Target` resource in the Cloud Deploy API. A `Target` +// defines a location to which a Skaffold configuration can be deployed. +type Target struct { + // Annotations: Optional. User annotations. These attributes can only be + // set and used by the user, and not by Cloud Deploy. See + // https://google.aip.dev/128#annotations for more details such as + // format and size limitations. + Annotations map[string]string `json:"annotations,omitempty"` + + // AnthosCluster: Optional. Information specifying an Anthos Cluster. + AnthosCluster *AnthosCluster `json:"anthosCluster,omitempty"` + + // CreateTime: Output only. Time at which the `Target` was created. + CreateTime string `json:"createTime,omitempty"` + + // DeployParameters: Optional. The deploy parameters to use for this + // target. + DeployParameters map[string]string `json:"deployParameters,omitempty"` + + // Description: Optional. Description of the `Target`. Max length is 255 + // characters. + Description string `json:"description,omitempty"` + + // Etag: Optional. This checksum is computed by the server based on the + // value of other fields, and may be sent on update and delete requests + // to ensure the client has an up-to-date value before proceeding. + Etag string `json:"etag,omitempty"` + + // ExecutionConfigs: Configurations for all execution that relates to + // this `Target`. Each `ExecutionEnvironmentUsage` value may only be + // used in a single configuration; using the same value multiple times + // is an error. When one or more configurations are specified, they must + // include the `RENDER` and `DEPLOY` `ExecutionEnvironmentUsage` values. + // When no configurations are specified, execution will use the default + // specified in `DefaultPool`. + ExecutionConfigs []*ExecutionConfig `json:"executionConfigs,omitempty"` + + // Gke: Optional. Information specifying a GKE Cluster. + Gke *GkeCluster `json:"gke,omitempty"` + + // Labels: Optional. Labels are attributes that can be set and used by + // both the user and by Cloud Deploy. Labels must meet the following + // constraints: * Keys and values can contain only lowercase letters, + // numeric characters, underscores, and dashes. * All characters must + // use UTF-8 encoding, and international characters are allowed. * Keys + // must start with a lowercase letter or international character. * Each + // resource is limited to a maximum of 64 labels. Both keys and values + // are additionally constrained to be <= 128 bytes. + Labels map[string]string `json:"labels,omitempty"` + + // MultiTarget: Optional. Information specifying a multiTarget. + MultiTarget *MultiTarget `json:"multiTarget,omitempty"` + + // Name: Optional. Name of the `Target`. Format is + // projects/{project}/locations/{location}/targets/a-z{0,62}. + Name string `json:"name,omitempty"` + + // RequireApproval: Optional. Whether or not the `Target` requires + // approval. + RequireApproval bool `json:"requireApproval,omitempty"` + + // Run: Optional. Information specifying a Cloud Run deployment target. + Run *CloudRunLocation `json:"run,omitempty"` + + // TargetId: Output only. Resource id of the `Target`. + TargetId string `json:"targetId,omitempty"` + + // Uid: Output only. Unique identifier of the `Target`. + Uid string `json:"uid,omitempty"` + + // UpdateTime: Output only. Most recent time at which the `Target` was + // updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Annotations") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Annotations") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *Target) MarshalJSON() ([]byte, error) { + type NoMethod Target + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TargetArtifact: The artifacts produced by a target render operation. +type TargetArtifact struct { + // ArtifactUri: Output only. URI of a directory containing the + // artifacts. This contains deployment configuration used by Skaffold + // during a rollout, and all paths are relative to this location. + ArtifactUri string `json:"artifactUri,omitempty"` + + // ManifestPath: Output only. File path of the rendered manifest + // relative to the URI. + ManifestPath string `json:"manifestPath,omitempty"` + + // PhaseArtifacts: Output only. Map from the phase ID to the phase + // artifacts for the `Target`. + PhaseArtifacts map[string]PhaseArtifact `json:"phaseArtifacts,omitempty"` + + // SkaffoldConfigPath: Output only. File path of the resolved Skaffold + // configuration relative to the URI. + SkaffoldConfigPath string `json:"skaffoldConfigPath,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ArtifactUri") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ArtifactUri") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TargetArtifact) MarshalJSON() ([]byte, error) { + type NoMethod TargetArtifact + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TargetAttribute: Contains criteria for selecting Targets. Attributes +// provided must match the target resource in order for policy +// restrictions to apply. E.g. if id "prod" and labels "foo: bar" are +// given the target resource must match both that id and have that label +// in order to be selected. +type TargetAttribute struct { + // Id: ID of the `Target`. The value of this field could be one of the + // following: * The last segment of a target name. It only needs the ID + // to determine which target is being referred to * "*", all targets in + // a location. + Id string `json:"id,omitempty"` + + // Labels: Target labels. + Labels map[string]string `json:"labels,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Id") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Id") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TargetAttribute) MarshalJSON() ([]byte, error) { + type NoMethod TargetAttribute + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TargetNotificationEvent: Payload proto for +// "clouddeploy.googleapis.com/target_notification" Platform Log event +// that describes the failure to send target status change Pub/Sub +// notification. +type TargetNotificationEvent struct { + // Message: Debug message for when a notification fails to send. + Message string `json:"message,omitempty"` + + // Target: The name of the `Target`. + Target string `json:"target,omitempty"` + + // Type: Type of this notification, e.g. for a Pub/Sub failure. + // + // Possible values: + // "TYPE_UNSPECIFIED" - Type is unspecified. + // "TYPE_PUBSUB_NOTIFICATION_FAILURE" - A Pub/Sub notification failed + // to be sent. + // "TYPE_RESOURCE_STATE_CHANGE" - Resource state changed. + // "TYPE_PROCESS_ABORTED" - A process aborted. + // "TYPE_RESTRICTION_VIOLATED" - Restriction check failed. + // "TYPE_RESOURCE_DELETED" - Resource deleted. + // "TYPE_ROLLOUT_UPDATE" - Rollout updated. + // "TYPE_RENDER_STATUES_CHANGE" - Deprecated: This field is never + // used. Use release_render log type instead. + Type string `json:"type,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Message") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Message") to include in + // API requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TargetNotificationEvent) MarshalJSON() ([]byte, error) { + type NoMethod TargetNotificationEvent + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TargetRender: Details of rendering for a single target. +type TargetRender struct { + // FailureCause: Output only. Reason this render failed. This will + // always be unspecified while the render in progress. + // + // Possible values: + // "FAILURE_CAUSE_UNSPECIFIED" - No reason for failure is specified. + // "CLOUD_BUILD_UNAVAILABLE" - Cloud Build is not available, either + // because it is not enabled or because Cloud Deploy has insufficient + // permissions. See [required + // permission](https://cloud.google.com/deploy/docs/cloud-deploy-service- + // account#required_permissions). + // "EXECUTION_FAILED" - The render operation did not complete + // successfully; check Cloud Build logs. + // "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Cloud + // Deploy's request. See failure_message for additional details. + // "VERIFICATION_CONFIG_NOT_FOUND" - The render operation did not + // complete successfully because the verification stanza required for + // verify was not found on the skaffold configuration. + // "CUSTOM_ACTION_NOT_FOUND" - The render operation did not complete + // successfully because the custom action required for predeploy or + // postdeploy was not found in the skaffold configuration. See + // failure_message for additional details. + FailureCause string `json:"failureCause,omitempty"` + + // FailureMessage: Output only. Additional information about the render + // failure, if available. + FailureMessage string `json:"failureMessage,omitempty"` + + // Metadata: Output only. Metadata related to the `Release` render for + // this Target. + Metadata *RenderMetadata `json:"metadata,omitempty"` + + // RenderingBuild: Output only. The resource name of the Cloud Build + // `Build` object that is used to render the manifest for this target. + // Format is `projects/{project}/locations/{location}/builds/{build}`. + RenderingBuild string `json:"renderingBuild,omitempty"` + + // RenderingState: Output only. Current state of the render operation + // for this Target. + // + // Possible values: + // "TARGET_RENDER_STATE_UNSPECIFIED" - The render operation state is + // unspecified. + // "SUCCEEDED" - The render operation has completed successfully. + // "FAILED" - The render operation has failed. + // "IN_PROGRESS" - The render operation is in progress. + RenderingState string `json:"renderingState,omitempty"` + + // ForceSendFields is a list of field names (e.g. "FailureCause") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "FailureCause") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TargetRender) MarshalJSON() ([]byte, error) { + type NoMethod TargetRender + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TargetsPresentCondition: TargetsPresentCondition contains information +// on any Targets defined in the Delivery Pipeline that do not actually +// exist. +type TargetsPresentCondition struct { + // MissingTargets: The list of Target names that do not exist. For + // example, + // projects/{project_id}/locations/{location_name}/targets/{target_name}. + MissingTargets []string `json:"missingTargets,omitempty"` + + // Status: True if there aren't any missing Targets. + Status bool `json:"status,omitempty"` + + // UpdateTime: Last time the condition was updated. + UpdateTime string `json:"updateTime,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MissingTargets") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "MissingTargets") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. + NullFields []string `json:"-"` +} + +func (s *TargetsPresentCondition) MarshalJSON() ([]byte, error) { + type NoMethod TargetsPresentCondition + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TargetsTypeCondition: TargetsTypeCondition contains information on +// whether the Targets defined in the Delivery Pipeline are of the same +// type. +type TargetsTypeCondition struct { + // ErrorDetails: Human readable error message. + ErrorDetails string `json:"errorDetails,omitempty"` + + // Status: True if the targets are all a comparable type. For example + // this is true if all targets are GKE clusters. This is false if some + // targets are Cloud Run targets and others are GKE clusters. + Status bool `json:"status,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ErrorDetails") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ErrorDetails") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TargetsTypeCondition) MarshalJSON() ([]byte, error) { + type NoMethod TargetsTypeCondition + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TerminateJobRunRequest: The request object used by `TerminateJobRun`. +type TerminateJobRunRequest struct { +} + +// TerminateJobRunResponse: The response object from `TerminateJobRun`. +type TerminateJobRunResponse struct { + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` +} + +// TestIamPermissionsRequest: Request message for `TestIamPermissions` +// method. +type TestIamPermissionsRequest struct { + // Permissions: The set of permissions to check for the `resource`. + // Permissions with wildcards (such as `*` or `storage.*`) are not + // allowed. For more information see IAM Overview + // (https://cloud.google.com/iam/docs/overview#permissions). + Permissions []string `json:"permissions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Permissions") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Permissions") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// TestIamPermissionsResponse: Response message for `TestIamPermissions` +// method. +type TestIamPermissionsResponse struct { + // Permissions: A subset of `TestPermissionsRequest.permissions` that + // the caller is allowed. + Permissions []string `json:"permissions,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the + // server. + googleapi.ServerResponse `json:"-"` + + // ForceSendFields is a list of field names (e.g. "Permissions") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Permissions") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { + type NoMethod TestIamPermissionsResponse + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// VerifyJob: A verify Job. +type VerifyJob struct { +} + +// VerifyJobRun: VerifyJobRun contains information specific to a verify +// `JobRun`. +type VerifyJobRun struct { + // ArtifactUri: Output only. URI of a directory containing the verify + // artifacts. This contains the Skaffold event log. + ArtifactUri string `json:"artifactUri,omitempty"` + + // Build: Output only. The resource name of the Cloud Build `Build` + // object that is used to verify. Format is + // projects/{project}/locations/{location}/builds/{build}. + Build string `json:"build,omitempty"` + + // EventLogPath: Output only. File path of the Skaffold event log + // relative to the artifact URI. + EventLogPath string `json:"eventLogPath,omitempty"` + + // FailureCause: Output only. The reason the verify failed. This will + // always be unspecified while the verify is in progress or if it + // succeeded. + // + // Possible values: + // "FAILURE_CAUSE_UNSPECIFIED" - No reason for failure is specified. + // "CLOUD_BUILD_UNAVAILABLE" - Cloud Build is not available, either + // because it is not enabled or because Cloud Deploy has insufficient + // permissions. See [required + // permission](https://cloud.google.com/deploy/docs/cloud-deploy-service- + // account#required_permissions). + // "EXECUTION_FAILED" - The verify operation did not complete + // successfully; check Cloud Build logs. + // "DEADLINE_EXCEEDED" - The verify job run did not complete within + // the alloted time. + // "VERIFICATION_CONFIG_NOT_FOUND" - No Skaffold verify configuration + // was found. + // "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Cloud + // Deploy's request. See failure_message for additional details. + FailureCause string `json:"failureCause,omitempty"` + + // FailureMessage: Output only. Additional information about the verify + // failure, if available. + FailureMessage string `json:"failureMessage,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ArtifactUri") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ArtifactUri") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *VerifyJobRun) MarshalJSON() ([]byte, error) { + type NoMethod VerifyJobRun + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// method id "clouddeploy.projects.locations.get": + +type ProjectsLocationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets information about a location. +// +// - name: Resource name for the location. +func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { + c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "clouddeploy.projects.locations.get" call. +// Exactly one of *Location or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Location.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 *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, 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 := &Location{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets information about a location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", + // "httpMethod": "GET", + // "id": "clouddeploy.projects.locations.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Resource name for the location.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Location" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "clouddeploy.projects.locations.getConfig": + +type ProjectsLocationsGetConfigCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetConfig: Gets the configuration for a location. +// +// - name: Name of requested configuration. +func (r *ProjectsLocationsService) GetConfig(name string) *ProjectsLocationsGetConfigCall { + c := &ProjectsLocationsGetConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsGetConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetConfigCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsGetConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetConfigCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsGetConfigCall) Context(ctx context.Context) *ProjectsLocationsGetConfigCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsGetConfigCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsGetConfigCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "clouddeploy.projects.locations.getConfig" call. +// Exactly one of *Config or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Config.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 *ProjectsLocationsGetConfigCall) Do(opts ...googleapi.CallOption) (*Config, 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 := &Config{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the configuration for a location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/config", + // "httpMethod": "GET", + // "id": "clouddeploy.projects.locations.getConfig", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of requested configuration.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/config$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Config" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "clouddeploy.projects.locations.list": + +type ProjectsLocationsListCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists information about the supported locations for this +// service. +// +// - name: The resource that owns the locations collection, if +// applicable. +func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { + c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Filter sets the optional parameter "filter": A filter to narrow down +// results to a preferred subset. The filtering language accepts strings +// like "displayName=tokyo", and is documented in more detail in +// AIP-160 (https://google.aip.dev/160). +func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of results to return. If not set, the service selects a default. +func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token +// received from the `next_page_token` field in the response. Send that +// page token to receive the subsequent page. +func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "clouddeploy.projects.locations.list" call. +// Exactly one of *ListLocationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListLocationsResponse.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, 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 := &ListLocationsResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists information about the supported locations for this service.", + // "flatPath": "v1/projects/{projectsId}/locations", + // "httpMethod": "GET", + // "id": "clouddeploy.projects.locations.list", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "filter": { + // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", + // "location": "query", + // "type": "string" + // }, + // "name": { + // "description": "The resource that owns the locations collection, if applicable.", + // "location": "path", + // "pattern": "^projects/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of results to return. If not set, the service selects a default.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", + // "location": "query", + // "type": "string" + // } + // }, + // "path": "v1/{+name}/locations", + // "response": { + // "$ref": "ListLocationsResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// 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 *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + 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) + } +} + +// method id "clouddeploy.projects.locations.deliveryPipelines.create": + +type ProjectsLocationsDeliveryPipelinesCreateCall struct { + s *Service + parent string + deliverypipeline *DeliveryPipeline + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a new DeliveryPipeline in a given project and +// location. +// +// - parent: The parent collection in which the `DeliveryPipeline` +// should be created. Format should be +// projects/{project_id}/locations/{location_name}. +func (r *ProjectsLocationsDeliveryPipelinesService) Create(parent string, deliverypipeline *DeliveryPipeline) *ProjectsLocationsDeliveryPipelinesCreateCall { + c := &ProjectsLocationsDeliveryPipelinesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.deliverypipeline = deliverypipeline + return c +} + +// DeliveryPipelineId sets the optional parameter "deliveryPipelineId": +// Required. ID of the `DeliveryPipeline`. +func (c *ProjectsLocationsDeliveryPipelinesCreateCall) DeliveryPipelineId(deliveryPipelineId string) *ProjectsLocationsDeliveryPipelinesCreateCall { + c.urlParams_.Set("deliveryPipelineId", deliveryPipelineId) + return c +} + +// RequestId sets the optional parameter "requestId": A request ID to +// identify requests. Specify a unique request ID so that if you must +// retry your request, the server will know to ignore the request if it +// has already been completed. The server will guarantee that for at +// least 60 minutes since the first request. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsDeliveryPipelinesCreateCall) RequestId(requestId string) *ProjectsLocationsDeliveryPipelinesCreateCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": If set to +// true, the request is validated and the user is provided with an +// expected result, but no actual change is made. +func (c *ProjectsLocationsDeliveryPipelinesCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDeliveryPipelinesCreateCall { + 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 information. +func (c *ProjectsLocationsDeliveryPipelinesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsDeliveryPipelinesCreateCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsDeliveryPipelinesCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDeliveryPipelinesCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.deliverypipeline) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deliveryPipelines") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "clouddeploy.projects.locations.deliveryPipelines.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.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 *ProjectsLocationsDeliveryPipelinesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, 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 := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Creates a new DeliveryPipeline in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines", + // "httpMethod": "POST", + // "id": "clouddeploy.projects.locations.deliveryPipelines.create", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "deliveryPipelineId": { + // "description": "Required. ID of the `DeliveryPipeline`.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent collection in which the `DeliveryPipeline` should be created. Format should be projects/{project_id}/locations/{location_name}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "validateOnly": { + // "description": "Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "v1/{+parent}/deliveryPipelines", + // "request": { + // "$ref": "DeliveryPipeline" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "clouddeploy.projects.locations.deliveryPipelines.delete": + +type ProjectsLocationsDeliveryPipelinesDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Delete: Deletes a single DeliveryPipeline. +// +// - name: The name of the `DeliveryPipeline` to delete. Format should +// be +// projects/{project_id}/locations/{location_name}/deliveryPipelines/{p +// ipeline_name}. +func (r *ProjectsLocationsDeliveryPipelinesService) Delete(name string) *ProjectsLocationsDeliveryPipelinesDeleteCall { + c := &ProjectsLocationsDeliveryPipelinesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// AllowMissing sets the optional parameter "allowMissing": If set to +// true, then deleting an already deleted or non-existing +// `DeliveryPipeline` will succeed. +func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) AllowMissing(allowMissing bool) *ProjectsLocationsDeliveryPipelinesDeleteCall { + c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) + return c +} + +// Etag sets the optional parameter "etag": This checksum is computed by +// the server based on the value of other fields, and may be sent on +// update and delete requests to ensure the client has an up-to-date +// value before proceeding. +func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) Etag(etag string) *ProjectsLocationsDeliveryPipelinesDeleteCall { + c.urlParams_.Set("etag", etag) + return c +} + +// Force sets the optional parameter "force": If set to true, all child +// resources under this pipeline will also be deleted. Otherwise, the +// request will only work if the pipeline has no child resources. +func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) Force(force bool) *ProjectsLocationsDeliveryPipelinesDeleteCall { + c.urlParams_.Set("force", fmt.Sprint(force)) + return c +} + +// RequestId sets the optional parameter "requestId": A request ID to +// identify requests. Specify a unique request ID so that if you must +// retry your request, the server will know to ignore the request if it +// has already been completed. The server will guarantee that for at +// least 60 minutes after the first request. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) RequestId(requestId string) *ProjectsLocationsDeliveryPipelinesDeleteCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": If set, +// validate the request and preview the review, but do not actually post +// it. +func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDeliveryPipelinesDeleteCall { + 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 information. +func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesDeleteCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesDeleteCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "clouddeploy.projects.locations.deliveryPipelines.delete" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.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 *ProjectsLocationsDeliveryPipelinesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, 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 := &Operation{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Deletes a single DeliveryPipeline.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}", + // "httpMethod": "DELETE", + // "id": "clouddeploy.projects.locations.deliveryPipelines.delete", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "allowMissing": { + // "description": "Optional. If set to true, then deleting an already deleted or non-existing `DeliveryPipeline` will succeed.", + // "location": "query", + // "type": "boolean" + // }, + // "etag": { + // "description": "Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.", + // "location": "query", + // "type": "string" + // }, + // "force": { + // "description": "Optional. If set to true, all child resources under this pipeline will also be deleted. Otherwise, the request will only work if the pipeline has no child resources.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Required. The name of the `DeliveryPipeline` to delete. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+$", + // "required": true, + // "type": "string" + // }, + // "requestId": { + // "description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "validateOnly": { + // "description": "Optional. If set, validate the request and preview the review, but do not actually post it.", + // "location": "query", + // "type": "boolean" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "clouddeploy.projects.locations.deliveryPipelines.get": + +type ProjectsLocationsDeliveryPipelinesGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// Get: Gets details of a single DeliveryPipeline. +// +// - name: Name of the `DeliveryPipeline`. Format must be +// projects/{project_id}/locations/{location_name}/deliveryPipelines/{p +// ipeline_name}. +func (r *ProjectsLocationsDeliveryPipelinesService) Get(name string) *ProjectsLocationsDeliveryPipelinesGetCall { + c := &ProjectsLocationsDeliveryPipelinesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsDeliveryPipelinesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesGetCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsDeliveryPipelinesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeliveryPipelinesGetCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsDeliveryPipelinesGetCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesGetCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsDeliveryPipelinesGetCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDeliveryPipelinesGetCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "clouddeploy.projects.locations.deliveryPipelines.get" call. +// Exactly one of *DeliveryPipeline or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *DeliveryPipeline.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 *ProjectsLocationsDeliveryPipelinesGetCall) Do(opts ...googleapi.CallOption) (*DeliveryPipeline, 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 := &DeliveryPipeline{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets details of a single DeliveryPipeline.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}", + // "httpMethod": "GET", + // "id": "clouddeploy.projects.locations.deliveryPipelines.get", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. Name of the `DeliveryPipeline`. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+name}", + // "response": { + // "$ref": "DeliveryPipeline" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "clouddeploy.projects.locations.deliveryPipelines.getIamPolicy": + +type ProjectsLocationsDeliveryPipelinesGetIamPolicyCall struct { + s *Service + resource string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetIamPolicy: Gets the access control policy for a resource. Returns +// an empty policy if the resource exists and does not have a policy +// set. +// +// - resource: REQUIRED: The resource for which the policy is being +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsDeliveryPipelinesService) GetIamPolicy(resource string) *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall { + c := &ProjectsLocationsDeliveryPipelinesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + return c +} + +// OptionsRequestedPolicyVersion sets the optional parameter +// "options.requestedPolicyVersion": The maximum policy version that +// will be used to format the policy. Valid values are 0, 1, and 3. +// Requests specifying an invalid value will be rejected. Requests for +// policies with any conditional role bindings must specify version 3. +// Policies with no conditional role bindings may specify any valid +// value or leave the field unset. The policy in the response might use +// the policy version that you specified, or it might use a lower policy +// version. For example, if you specify version 3, but the policy has no +// conditional role bindings, the response uses version 1. To learn +// which resources support conditions in their IAM policies, see the IAM +// documentation +// (https://cloud.google.com/iam/help/conditions/resource-policies). +func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall { + c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "resource": c.resource, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "clouddeploy.projects.locations.deliveryPipelines.getIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Policy{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}:getIamPolicy", + // "httpMethod": "GET", + // "id": "clouddeploy.projects.locations.deliveryPipelines.getIamPolicy", + // "parameterOrder": [ + // "resource" + // ], + // "parameters": { + // "options.requestedPolicyVersion": { + // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+resource}:getIamPolicy", + // "response": { + // "$ref": "Policy" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + +// method id "clouddeploy.projects.locations.deliveryPipelines.list": + +type ProjectsLocationsDeliveryPipelinesListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists DeliveryPipelines in a given project and location. +// +// - parent: The parent, which owns this collection of pipelines. Format +// must be projects/{project_id}/locations/{location_name}. +func (r *ProjectsLocationsDeliveryPipelinesService) List(parent string) *ProjectsLocationsDeliveryPipelinesListCall { + c := &ProjectsLocationsDeliveryPipelinesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter pipelines to be +// returned. See https://google.aip.dev/160 for more details. +func (c *ProjectsLocationsDeliveryPipelinesListCall) Filter(filter string) *ProjectsLocationsDeliveryPipelinesListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Field to sort by. See +// https://google.aip.dev/132#ordering for more details. +func (c *ProjectsLocationsDeliveryPipelinesListCall) OrderBy(orderBy string) *ProjectsLocationsDeliveryPipelinesListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of pipelines to return. The service may return fewer than this value. +// If unspecified, at most 50 pipelines will be returned. The maximum +// value is 1000; values above 1000 will be set to 1000. +func (c *ProjectsLocationsDeliveryPipelinesListCall) PageSize(pageSize int64) *ProjectsLocationsDeliveryPipelinesListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListDeliveryPipelines` call. Provide this +// to retrieve the subsequent page. When paginating, all other provided +// parameters match the call that provided the page token. +func (c *ProjectsLocationsDeliveryPipelinesListCall) PageToken(pageToken string) *ProjectsLocationsDeliveryPipelinesListCall { + c.urlParams_.Set("pageToken", pageToken) + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse +// for more information. +func (c *ProjectsLocationsDeliveryPipelinesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesListCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsDeliveryPipelinesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeliveryPipelinesListCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. Any +// pending HTTP request will be aborted if the provided context is +// canceled. +func (c *ProjectsLocationsDeliveryPipelinesListCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesListCall { + c.ctx_ = ctx + return c +} + +// Header returns an http.Header that can be modified by the caller to +// add HTTP headers to the request. +func (c *ProjectsLocationsDeliveryPipelinesListCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsLocationsDeliveryPipelinesListCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := make(http.Header) + reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) + for k, v := range c.header_ { + reqHeaders[k] = v + } + reqHeaders.Set("User-Agent", c.s.userAgent()) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deliveryPipelines") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "clouddeploy.projects.locations.deliveryPipelines.list" call. +// Exactly one of *ListDeliveryPipelinesResponse or error will be +// non-nil. Any non-2xx status code is an error. Response headers are in +// either *ListDeliveryPipelinesResponse.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 *ProjectsLocationsDeliveryPipelinesListCall) Do(opts ...googleapi.CallOption) (*ListDeliveryPipelinesResponse, 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 := &ListDeliveryPipelinesResponse{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil + // { + // "description": "Lists DeliveryPipelines in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines", + // "httpMethod": "GET", + // "id": "clouddeploy.projects.locations.deliveryPipelines.list", + // "parameterOrder": [ + // "parent" + // ], + // "parameters": { + // "filter": { + // "description": "Filter pipelines to be returned. See https://google.aip.dev/160 for more details.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Field to sort by. See https://google.aip.dev/132#ordering for more details.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of pipelines to return. The service may return fewer than this value. If unspecified, at most 50 pipelines will be returned. The maximum value is 1000; values above 1000 will be set to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListDeliveryPipelines` call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent, which owns this collection of pipelines. Format must be projects/{project_id}/locations/{location_name}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1/{+parent}/deliveryPipelines", + // "response": { + // "$ref": "ListDeliveryPipelinesResponse" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + } -func (s *TestIamPermissionsRequest) MarshalJSON() ([]byte, error) { - type NoMethod TestIamPermissionsRequest - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +// 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 *ProjectsLocationsDeliveryPipelinesListCall) Pages(ctx context.Context, f func(*ListDeliveryPipelinesResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + 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) + } } -// TestIamPermissionsResponse: Response message for `TestIamPermissions` -// method. -type TestIamPermissionsResponse struct { - // Permissions: A subset of `TestPermissionsRequest.permissions` that - // the caller is allowed. - Permissions []string `json:"permissions,omitempty"` - - // ServerResponse contains the HTTP response code and headers from the - // server. - googleapi.ServerResponse `json:"-"` - - // ForceSendFields is a list of field names (e.g. "Permissions") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "Permissions") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` -} +// method id "clouddeploy.projects.locations.deliveryPipelines.patch": -func (s *TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { - type NoMethod TestIamPermissionsResponse - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +type ProjectsLocationsDeliveryPipelinesPatchCall struct { + s *Service + name string + deliverypipeline *DeliveryPipeline + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// VerifyJob: A verify Job. -type VerifyJob struct { +// Patch: Updates the parameters of a single DeliveryPipeline. +// +// - name: Optional. Name of the `DeliveryPipeline`. Format is +// projects/{project}/ +// locations/{location}/deliveryPipelines/a-z{0,62}. +func (r *ProjectsLocationsDeliveryPipelinesService) Patch(name string, deliverypipeline *DeliveryPipeline) *ProjectsLocationsDeliveryPipelinesPatchCall { + c := &ProjectsLocationsDeliveryPipelinesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.deliverypipeline = deliverypipeline + return c } -// VerifyJobRun: VerifyJobRun contains information specific to a verify -// `JobRun`. -type VerifyJobRun struct { - // ArtifactUri: Output only. URI of a directory containing the verify - // artifacts. This contains the Skaffold event log. - ArtifactUri string `json:"artifactUri,omitempty"` - - // Build: Output only. The resource name of the Cloud Build `Build` - // object that is used to verify. Format is - // projects/{project}/locations/{location}/builds/{build}. - Build string `json:"build,omitempty"` - - // EventLogPath: Output only. File path of the Skaffold event log - // relative to the artifact URI. - EventLogPath string `json:"eventLogPath,omitempty"` - - // FailureCause: Output only. The reason the verify failed. This will - // always be unspecified while the verify is in progress or if it - // succeeded. - // - // Possible values: - // "FAILURE_CAUSE_UNSPECIFIED" - No reason for failure is specified. - // "CLOUD_BUILD_UNAVAILABLE" - Cloud Build is not available, either - // because it is not enabled or because Cloud Deploy has insufficient - // permissions. See [required - // permission](https://cloud.google.com/deploy/docs/cloud-deploy-service- - // account#required_permissions). - // "EXECUTION_FAILED" - The verify operation did not complete - // successfully; check Cloud Build logs. - // "DEADLINE_EXCEEDED" - The verify job run did not complete within - // the alloted time. - // "VERIFICATION_CONFIG_NOT_FOUND" - No Skaffold verify configuration - // was found. - // "CLOUD_BUILD_REQUEST_FAILED" - Cloud Build failed to fulfill Cloud - // Deploy's request. See failure_message for additional details. - FailureCause string `json:"failureCause,omitempty"` - - // FailureMessage: Output only. Additional information about the verify - // failure, if available. - FailureMessage string `json:"failureMessage,omitempty"` - - // ForceSendFields is a list of field names (e.g. "ArtifactUri") to - // unconditionally include in API requests. By default, fields with - // empty or default values are omitted from API requests. However, any - // non-pointer, non-interface field appearing in ForceSendFields will be - // sent to the server regardless of whether the field is empty or not. - // This may be used to include empty fields in Patch requests. - ForceSendFields []string `json:"-"` - - // NullFields is a list of field names (e.g. "ArtifactUri") to include - // in API requests with the JSON null value. By default, fields with - // empty values are omitted from API requests. However, any field with - // an empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. - NullFields []string `json:"-"` +// AllowMissing sets the optional parameter "allowMissing": If set to +// true, updating a `DeliveryPipeline` that does not exist will result +// in the creation of a new `DeliveryPipeline`. +func (c *ProjectsLocationsDeliveryPipelinesPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsDeliveryPipelinesPatchCall { + c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) + return c } -func (s *VerifyJobRun) MarshalJSON() ([]byte, error) { - type NoMethod VerifyJobRun - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +// RequestId sets the optional parameter "requestId": A request ID to +// identify requests. Specify a unique request ID so that if you must +// retry your request, the server will know to ignore the request if it +// has already been completed. The server will guarantee that for at +// least 60 minutes since the first request. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsDeliveryPipelinesPatchCall) RequestId(requestId string) *ProjectsLocationsDeliveryPipelinesPatchCall { + c.urlParams_.Set("requestId", requestId) + return c } -// method id "clouddeploy.projects.locations.get": - -type ProjectsLocationsGetCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// UpdateMask sets the optional parameter "updateMask": Required. Field +// mask is used to specify the fields to be overwritten in the +// `DeliveryPipeline` resource by the update. The fields specified in +// the update_mask are relative to the resource, not the full request. A +// field will be overwritten if it is in the mask. If the user does not +// provide a mask then all fields will be overwritten. +func (c *ProjectsLocationsDeliveryPipelinesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDeliveryPipelinesPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c } -// Get: Gets information about a location. -// -// - name: Resource name for the location. -func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall { - c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name +// ValidateOnly sets the optional parameter "validateOnly": If set to +// true, the request is validated and the user is provided with an +// expected result, but no actual change is made. +func (c *ProjectsLocationsDeliveryPipelinesPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDeliveryPipelinesPatchCall { + 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 information. -func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall { +func (c *ProjectsLocationsDeliveryPipelinesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall { +func (c *ProjectsLocationsDeliveryPipelinesPatchCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsGetCall) Header() http.Header { +func (c *ProjectsLocationsDeliveryPipelinesPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeliveryPipelinesPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.deliverypipeline) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } @@ -4788,14 +7424,14 @@ func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "clouddeploy.projects.locations.get" call. -// Exactly one of *Location or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Location.ServerResponse.Header or (if a response was returned at +// Do executes the "clouddeploy.projects.locations.deliveryPipelines.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.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 *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, error) { +func (c *ProjectsLocationsDeliveryPipelinesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4814,7 +7450,7 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Location{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4826,25 +7462,49 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, } return ret, nil // { - // "description": "Gets information about a location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}", - // "httpMethod": "GET", - // "id": "clouddeploy.projects.locations.get", + // "description": "Updates the parameters of a single DeliveryPipeline.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}", + // "httpMethod": "PATCH", + // "id": "clouddeploy.projects.locations.deliveryPipelines.patch", // "parameterOrder": [ // "name" // ], // "parameters": { + // "allowMissing": { + // "description": "Optional. If set to true, updating a `DeliveryPipeline` that does not exist will result in the creation of a new `DeliveryPipeline`.", + // "location": "query", + // "type": "boolean" + // }, // "name": { - // "description": "Resource name for the location.", + // "description": "Optional. Name of the `DeliveryPipeline`. Format is projects/{project}/ locations/{location}/deliveryPipelines/a-z{0,62}.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+$", // "required": true, // "type": "string" + // }, + // "requestId": { + // "description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. Field mask is used to specify the fields to be overwritten in the `DeliveryPipeline` resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "validateOnly": { + // "description": "Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.", + // "location": "query", + // "type": "boolean" // } // }, // "path": "v1/{+name}", + // "request": { + // "$ref": "DeliveryPipeline" + // }, // "response": { - // "$ref": "Location" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4853,77 +7513,74 @@ func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*Location, } -// method id "clouddeploy.projects.locations.getConfig": +// method id "clouddeploy.projects.locations.deliveryPipelines.rollbackTarget": -type ProjectsLocationsGetConfigCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDeliveryPipelinesRollbackTargetCall struct { + s *Service + name string + rollbacktargetrequest *RollbackTargetRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// GetConfig: Gets the configuration for a location. +// RollbackTarget: Creates a `Rollout` to roll back the specified +// target. // -// - name: Name of requested configuration. -func (r *ProjectsLocationsService) GetConfig(name string) *ProjectsLocationsGetConfigCall { - c := &ProjectsLocationsGetConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The `DeliveryPipeline` for which the rollback `Rollout` +// should be created. Format should be +// projects/{project_id}/locations/{location_name}/deliveryPipelines/{p +// ipeline_name}. +func (r *ProjectsLocationsDeliveryPipelinesService) RollbackTarget(name string, rollbacktargetrequest *RollbackTargetRequest) *ProjectsLocationsDeliveryPipelinesRollbackTargetCall { + c := &ProjectsLocationsDeliveryPipelinesRollbackTargetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name + c.rollbacktargetrequest = rollbacktargetrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsGetConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetConfigCall { +func (c *ProjectsLocationsDeliveryPipelinesRollbackTargetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesRollbackTargetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsGetConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetConfigCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsGetConfigCall) Context(ctx context.Context) *ProjectsLocationsGetConfigCall { +func (c *ProjectsLocationsDeliveryPipelinesRollbackTargetCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesRollbackTargetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsGetConfigCall) Header() http.Header { +func (c *ProjectsLocationsDeliveryPipelinesRollbackTargetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsGetConfigCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeliveryPipelinesRollbackTargetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.rollbacktargetrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:rollbackTarget") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -4934,14 +7591,14 @@ func (c *ProjectsLocationsGetConfigCall) doRequest(alt string) (*http.Response, return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "clouddeploy.projects.locations.getConfig" call. -// Exactly one of *Config or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Config.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 *ProjectsLocationsGetConfigCall) Do(opts ...googleapi.CallOption) (*Config, error) { +// Do executes the "clouddeploy.projects.locations.deliveryPipelines.rollbackTarget" call. +// Exactly one of *RollbackTargetResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *RollbackTargetResponse.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 *ProjectsLocationsDeliveryPipelinesRollbackTargetCall) Do(opts ...googleapi.CallOption) (*RollbackTargetResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -4960,7 +7617,7 @@ func (c *ProjectsLocationsGetConfigCall) Do(opts ...googleapi.CallOption) (*Conf if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Config{ + ret := &RollbackTargetResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -4972,25 +7629,28 @@ func (c *ProjectsLocationsGetConfigCall) Do(opts ...googleapi.CallOption) (*Conf } return ret, nil // { - // "description": "Gets the configuration for a location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/config", - // "httpMethod": "GET", - // "id": "clouddeploy.projects.locations.getConfig", + // "description": "Creates a `Rollout` to roll back the specified target.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}:rollbackTarget", + // "httpMethod": "POST", + // "id": "clouddeploy.projects.locations.deliveryPipelines.rollbackTarget", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of requested configuration.", + // "description": "Required. The `DeliveryPipeline` for which the rollback `Rollout` should be created. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/config$", + // "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+name}:rollbackTarget", + // "request": { + // "$ref": "RollbackTargetRequest" + // }, // "response": { - // "$ref": "Config" + // "$ref": "RollbackTargetResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -4999,121 +7659,93 @@ func (c *ProjectsLocationsGetConfigCall) Do(opts ...googleapi.CallOption) (*Conf } -// method id "clouddeploy.projects.locations.list": +// method id "clouddeploy.projects.locations.deliveryPipelines.setIamPolicy": -type ProjectsLocationsListCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDeliveryPipelinesSetIamPolicyCall struct { + s *Service + resource string + setiampolicyrequest *SetIamPolicyRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists information about the supported locations for this -// service. +// SetIamPolicy: Sets the access control policy on the specified +// resource. Replaces any existing policy. Can return `NOT_FOUND`, +// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. // -// - name: The resource that owns the locations collection, if -// applicable. -func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall { - c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.name = name - return c -} - -// Filter sets the optional parameter "filter": A filter to narrow down -// results to a preferred subset. The filtering language accepts strings -// like "displayName=tokyo", and is documented in more detail in -// AIP-160 (https://google.aip.dev/160). -func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// PageSize sets the optional parameter "pageSize": The maximum number -// of results to return. If not set, the service selects a default. -func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) - return c -} - -// PageToken sets the optional parameter "pageToken": A page token -// received from the `next_page_token` field in the response. Send that -// page token to receive the subsequent page. -func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall { - c.urlParams_.Set("pageToken", pageToken) +// - resource: REQUIRED: The resource for which the policy is being +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsDeliveryPipelinesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall { + c := &ProjectsLocationsDeliveryPipelinesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.setiampolicyrequest = setiampolicyrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall { +func (c *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall { +func (c *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsListCall) Header() http.Header { +func (c *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/locations") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "name": c.name, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "clouddeploy.projects.locations.list" call. -// Exactly one of *ListLocationsResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *ListLocationsResponse.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 *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocationsResponse, error) { +// Do executes the "clouddeploy.projects.locations.deliveryPipelines.setIamPolicy" call. +// Exactly one of *Policy or error will be non-nil. Any non-2xx status +// code is an error. Response headers are in either +// *Policy.ServerResponse.Header or (if a response was returned at all) +// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to +// check whether the returned error was because http.StatusNotModified +// was returned. +func (c *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5132,7 +7764,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListLocationsResponse{ + ret := &Policy{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5144,41 +7776,28 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat } return ret, nil // { - // "description": "Lists information about the supported locations for this service.", - // "flatPath": "v1/projects/{projectsId}/locations", - // "httpMethod": "GET", - // "id": "clouddeploy.projects.locations.list", + // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}:setIamPolicy", + // "httpMethod": "POST", + // "id": "clouddeploy.projects.locations.deliveryPipelines.setIamPolicy", // "parameterOrder": [ - // "name" + // "resource" // ], - // "parameters": { - // "filter": { - // "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).", - // "location": "query", - // "type": "string" - // }, - // "name": { - // "description": "The resource that owns the locations collection, if applicable.", - // "location": "path", - // "pattern": "^projects/[^/]+$", - // "required": true, - // "type": "string" - // }, - // "pageSize": { - // "description": "The maximum number of results to return. If not set, the service selects a default.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.", - // "location": "query", + // "parameters": { + // "resource": { + // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+$", + // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}/locations", + // "path": "v1/{+resource}:setIamPolicy", + // "request": { + // "$ref": "SetIamPolicyRequest" + // }, // "response": { - // "$ref": "ListLocationsResponse" + // "$ref": "Policy" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -5187,87 +7806,39 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat } -// 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 *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*ListLocationsResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - 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) - } -} - -// method id "clouddeploy.projects.locations.deliveryPipelines.create": +// method id "clouddeploy.projects.locations.deliveryPipelines.testIamPermissions": -type ProjectsLocationsDeliveryPipelinesCreateCall struct { - s *Service - parent string - deliverypipeline *DeliveryPipeline - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall struct { + s *Service + resource string + testiampermissionsrequest *TestIamPermissionsRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Create: Creates a new DeliveryPipeline in a given project and -// location. +// TestIamPermissions: Returns permissions that a caller has on the +// specified resource. If the resource does not exist, this will return +// an empty set of permissions, not a `NOT_FOUND` error. Note: This +// operation is designed to be used for building permission-aware UIs +// and command-line tools, not for authorization checking. This +// operation may "fail open" without warning. // -// - parent: The parent collection in which the `DeliveryPipeline` -// should be created. Format should be -// projects/{project_id}/locations/{location_name}. -func (r *ProjectsLocationsDeliveryPipelinesService) Create(parent string, deliverypipeline *DeliveryPipeline) *ProjectsLocationsDeliveryPipelinesCreateCall { - c := &ProjectsLocationsDeliveryPipelinesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.parent = parent - c.deliverypipeline = deliverypipeline - return c -} - -// DeliveryPipelineId sets the optional parameter "deliveryPipelineId": -// Required. ID of the `DeliveryPipeline`. -func (c *ProjectsLocationsDeliveryPipelinesCreateCall) DeliveryPipelineId(deliveryPipelineId string) *ProjectsLocationsDeliveryPipelinesCreateCall { - c.urlParams_.Set("deliveryPipelineId", deliveryPipelineId) - return c -} - -// RequestId sets the optional parameter "requestId": A request ID to -// identify requests. Specify a unique request ID so that if you must -// retry your request, the server will know to ignore the request if it -// has already been completed. The server will guarantee that for at -// least 60 minutes since the first request. For example, consider a -// situation where you make an initial request and the request times -// out. If you make the request again with the same request ID, the -// server can check if original operation with the same request ID was -// received, and if so, will ignore the second request. This prevents -// clients from accidentally creating duplicate commitments. The request -// ID must be a valid UUID with the exception that zero UUID is not -// supported (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsDeliveryPipelinesCreateCall) RequestId(requestId string) *ProjectsLocationsDeliveryPipelinesCreateCall { - c.urlParams_.Set("requestId", requestId) - return c -} - -// ValidateOnly sets the optional parameter "validateOnly": If set to -// true, the request is validated and the user is provided with an -// expected result, but no actual change is made. -func (c *ProjectsLocationsDeliveryPipelinesCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDeliveryPipelinesCreateCall { - c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) +// - resource: REQUIRED: The resource for which the policy detail is +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. +func (r *ProjectsLocationsDeliveryPipelinesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall { + c := &ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.resource = resource + c.testiampermissionsrequest = testiampermissionsrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDeliveryPipelinesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesCreateCall { +func (c *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5275,21 +7846,21 @@ func (c *ProjectsLocationsDeliveryPipelinesCreateCall) Fields(s ...googleapi.Fie // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsDeliveryPipelinesCreateCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesCreateCall { +func (c *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsDeliveryPipelinesCreateCall) Header() http.Header { +func (c *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeliveryPipelinesCreateCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -5297,14 +7868,14 @@ func (c *ProjectsLocationsDeliveryPipelinesCreateCall) doRequest(alt string) (*h } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.deliverypipeline) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deliveryPipelines") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("POST", urls, body) if err != nil { @@ -5312,19 +7883,19 @@ func (c *ProjectsLocationsDeliveryPipelinesCreateCall) doRequest(alt string) (*h } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "parent": c.parent, + "resource": c.resource, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "clouddeploy.projects.locations.deliveryPipelines.create" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.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 *ProjectsLocationsDeliveryPipelinesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// Do executes the "clouddeploy.projects.locations.deliveryPipelines.testIamPermissions" call. +// Exactly one of *TestIamPermissionsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *TestIamPermissionsResponse.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 *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5343,7 +7914,7 @@ func (c *ProjectsLocationsDeliveryPipelinesCreateCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &TestIamPermissionsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5355,43 +7926,28 @@ func (c *ProjectsLocationsDeliveryPipelinesCreateCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Creates a new DeliveryPipeline in a given project and location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines", + // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}:testIamPermissions", // "httpMethod": "POST", - // "id": "clouddeploy.projects.locations.deliveryPipelines.create", + // "id": "clouddeploy.projects.locations.deliveryPipelines.testIamPermissions", // "parameterOrder": [ - // "parent" + // "resource" // ], // "parameters": { - // "deliveryPipelineId": { - // "description": "Required. ID of the `DeliveryPipeline`.", - // "location": "query", - // "type": "string" - // }, - // "parent": { - // "description": "Required. The parent collection in which the `DeliveryPipeline` should be created. Format should be projects/{project_id}/locations/{location_name}.", + // "resource": { + // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+$", // "required": true, // "type": "string" - // }, - // "requestId": { - // "description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", - // "location": "query", - // "type": "string" - // }, - // "validateOnly": { - // "description": "Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.", - // "location": "query", - // "type": "boolean" // } // }, - // "path": "v1/{+parent}/deliveryPipelines", + // "path": "v1/{+resource}:testIamPermissions", // "request": { - // "$ref": "DeliveryPipeline" + // "$ref": "TestIamPermissionsRequest" // }, // "response": { - // "$ref": "Operation" + // "$ref": "TestIamPermissionsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -5400,82 +7956,37 @@ func (c *ProjectsLocationsDeliveryPipelinesCreateCall) Do(opts ...googleapi.Call } -// method id "clouddeploy.projects.locations.deliveryPipelines.delete": +// method id "clouddeploy.projects.locations.deliveryPipelines.automationRuns.cancel": -type ProjectsLocationsDeliveryPipelinesDeleteCall struct { - s *Service - name string - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDeliveryPipelinesAutomationRunsCancelCall struct { + s *Service + name string + cancelautomationrunrequest *CancelAutomationRunRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Delete: Deletes a single DeliveryPipeline. +// Cancel: Cancels an AutomationRun. The `state` of the `AutomationRun` +// after cancelling is `CANCELLED`. `CancelAutomationRun` can be called +// on AutomationRun in the state `IN_PROGRESS` and `PENDING`; +// AutomationRun in a different state returns an `FAILED_PRECONDITION` +// error. // -// - name: The name of the `DeliveryPipeline` to delete. Format should -// be -// projects/{project_id}/locations/{location_name}/deliveryPipelines/{p -// ipeline_name}. -func (r *ProjectsLocationsDeliveryPipelinesService) Delete(name string) *ProjectsLocationsDeliveryPipelinesDeleteCall { - c := &ProjectsLocationsDeliveryPipelinesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Name of the `AutomationRun`. Format is +// projects/{project}/locations/{location}/deliveryPipelines/{delivery_ +// pipeline}/automationRuns/{automation_run}. +func (r *ProjectsLocationsDeliveryPipelinesAutomationRunsService) Cancel(name string, cancelautomationrunrequest *CancelAutomationRunRequest) *ProjectsLocationsDeliveryPipelinesAutomationRunsCancelCall { + c := &ProjectsLocationsDeliveryPipelinesAutomationRunsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - return c -} - -// AllowMissing sets the optional parameter "allowMissing": If set to -// true, then deleting an already deleted or non-existing -// `DeliveryPipeline` will succeed. -func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) AllowMissing(allowMissing bool) *ProjectsLocationsDeliveryPipelinesDeleteCall { - c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) - return c -} - -// Etag sets the optional parameter "etag": This checksum is computed by -// the server based on the value of other fields, and may be sent on -// update and delete requests to ensure the client has an up-to-date -// value before proceeding. -func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) Etag(etag string) *ProjectsLocationsDeliveryPipelinesDeleteCall { - c.urlParams_.Set("etag", etag) - return c -} - -// Force sets the optional parameter "force": If set to true, all child -// resources under this pipeline will also be deleted. Otherwise, the -// request will only work if the pipeline has no child resources. -func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) Force(force bool) *ProjectsLocationsDeliveryPipelinesDeleteCall { - c.urlParams_.Set("force", fmt.Sprint(force)) - return c -} - -// RequestId sets the optional parameter "requestId": A request ID to -// identify requests. Specify a unique request ID so that if you must -// retry your request, the server will know to ignore the request if it -// has already been completed. The server will guarantee that for at -// least 60 minutes after the first request. For example, consider a -// situation where you make an initial request and the request times -// out. If you make the request again with the same request ID, the -// server can check if original operation with the same request ID was -// received, and if so, will ignore the second request. This prevents -// clients from accidentally creating duplicate commitments. The request -// ID must be a valid UUID with the exception that zero UUID is not -// supported (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) RequestId(requestId string) *ProjectsLocationsDeliveryPipelinesDeleteCall { - c.urlParams_.Set("requestId", requestId) - return c -} - -// ValidateOnly sets the optional parameter "validateOnly": If set, -// validate the request and preview the review, but do not actually post -// it. -func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDeliveryPipelinesDeleteCall { - c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) + c.cancelautomationrunrequest = cancelautomationrunrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesDeleteCall { +func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesAutomationRunsCancelCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5483,21 +7994,21 @@ func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) Fields(s ...googleapi.Fie // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesDeleteCall { +func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsCancelCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesAutomationRunsCancelCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) Header() http.Header { +func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsCancelCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsCancelCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -5505,11 +8016,16 @@ func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) doRequest(alt string) (*h } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.cancelautomationrunrequest) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("DELETE", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -5520,14 +8036,14 @@ func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) doRequest(alt string) (*h return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "clouddeploy.projects.locations.deliveryPipelines.delete" call. -// Exactly one of *Operation or error will be non-nil. Any non-2xx -// status code is an error. Response headers are in either -// *Operation.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 *ProjectsLocationsDeliveryPipelinesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +// Do executes the "clouddeploy.projects.locations.deliveryPipelines.automationRuns.cancel" call. +// Exactly one of *CancelAutomationRunResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *CancelAutomationRunResponse.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 *ProjectsLocationsDeliveryPipelinesAutomationRunsCancelCall) Do(opts ...googleapi.CallOption) (*CancelAutomationRunResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5546,7 +8062,7 @@ func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) Do(opts ...googleapi.Call if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Operation{ + ret := &CancelAutomationRunResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5558,50 +8074,28 @@ func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) Do(opts ...googleapi.Call } return ret, nil // { - // "description": "Deletes a single DeliveryPipeline.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}", - // "httpMethod": "DELETE", - // "id": "clouddeploy.projects.locations.deliveryPipelines.delete", + // "description": "Cancels an AutomationRun. The `state` of the `AutomationRun` after cancelling is `CANCELLED`. `CancelAutomationRun` can be called on AutomationRun in the state `IN_PROGRESS` and `PENDING`; AutomationRun in a different state returns an `FAILED_PRECONDITION` error.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/automationRuns/{automationRunsId}:cancel", + // "httpMethod": "POST", + // "id": "clouddeploy.projects.locations.deliveryPipelines.automationRuns.cancel", // "parameterOrder": [ // "name" // ], // "parameters": { - // "allowMissing": { - // "description": "Optional. If set to true, then deleting an already deleted or non-existing `DeliveryPipeline` will succeed.", - // "location": "query", - // "type": "boolean" - // }, - // "etag": { - // "description": "Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.", - // "location": "query", - // "type": "string" - // }, - // "force": { - // "description": "Optional. If set to true, all child resources under this pipeline will also be deleted. Otherwise, the request will only work if the pipeline has no child resources.", - // "location": "query", - // "type": "boolean" - // }, // "name": { - // "description": "Required. The name of the `DeliveryPipeline` to delete. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.", + // "description": "Required. Name of the `AutomationRun`. Format is projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/automationRuns/[^/]+$", // "required": true, // "type": "string" - // }, - // "requestId": { - // "description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", - // "location": "query", - // "type": "string" - // }, - // "validateOnly": { - // "description": "Optional. If set, validate the request and preview the review, but do not actually post it.", - // "location": "query", - // "type": "boolean" // } // }, - // "path": "v1/{+name}", + // "path": "v1/{+name}:cancel", + // "request": { + // "$ref": "CancelAutomationRunRequest" + // }, // "response": { - // "$ref": "Operation" + // "$ref": "CancelAutomationRunResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -5610,9 +8104,9 @@ func (c *ProjectsLocationsDeliveryPipelinesDeleteCall) Do(opts ...googleapi.Call } -// method id "clouddeploy.projects.locations.deliveryPipelines.get": +// method id "clouddeploy.projects.locations.deliveryPipelines.automationRuns.get": -type ProjectsLocationsDeliveryPipelinesGetCall struct { +type ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall struct { s *Service name string urlParams_ gensupport.URLParams @@ -5621,13 +8115,13 @@ type ProjectsLocationsDeliveryPipelinesGetCall struct { header_ http.Header } -// Get: Gets details of a single DeliveryPipeline. +// Get: Gets details of a single AutomationRun. // -// - name: Name of the `DeliveryPipeline`. Format must be -// projects/{project_id}/locations/{location_name}/deliveryPipelines/{p -// ipeline_name}. -func (r *ProjectsLocationsDeliveryPipelinesService) Get(name string) *ProjectsLocationsDeliveryPipelinesGetCall { - c := &ProjectsLocationsDeliveryPipelinesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: Name of the `AutomationRun`. Format must be +// projects/{project}/locations/{location}/deliveryPipelines/{delivery_ +// pipeline}/automationRuns/{automation_run}. +func (r *ProjectsLocationsDeliveryPipelinesAutomationRunsService) Get(name string) *ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall { + c := &ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name return c } @@ -5635,7 +8129,7 @@ func (r *ProjectsLocationsDeliveryPipelinesService) Get(name string) *ProjectsLo // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDeliveryPipelinesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesGetCall { +func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5645,7 +8139,7 @@ func (c *ProjectsLocationsDeliveryPipelinesGetCall) Fields(s ...googleapi.Field) // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsDeliveryPipelinesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeliveryPipelinesGetCall { +func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall { c.ifNoneMatch_ = entityTag return c } @@ -5653,21 +8147,21 @@ func (c *ProjectsLocationsDeliveryPipelinesGetCall) IfNoneMatch(entityTag string // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsDeliveryPipelinesGetCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesGetCall { +func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsDeliveryPipelinesGetCall) Header() http.Header { +func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeliveryPipelinesGetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -5693,14 +8187,14 @@ func (c *ProjectsLocationsDeliveryPipelinesGetCall) doRequest(alt string) (*http return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "clouddeploy.projects.locations.deliveryPipelines.get" call. -// Exactly one of *DeliveryPipeline or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *DeliveryPipeline.ServerResponse.Header or (if a response was -// returned at all) in error.(*googleapi.Error).Header. Use +// Do executes the "clouddeploy.projects.locations.deliveryPipelines.automationRuns.get" call. +// Exactly one of *AutomationRun or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *AutomationRun.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 *ProjectsLocationsDeliveryPipelinesGetCall) Do(opts ...googleapi.CallOption) (*DeliveryPipeline, error) { +func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsGetCall) Do(opts ...googleapi.CallOption) (*AutomationRun, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5719,7 +8213,7 @@ func (c *ProjectsLocationsDeliveryPipelinesGetCall) Do(opts ...googleapi.CallOpt if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &DeliveryPipeline{ + ret := &AutomationRun{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5731,25 +8225,25 @@ func (c *ProjectsLocationsDeliveryPipelinesGetCall) Do(opts ...googleapi.CallOpt } return ret, nil // { - // "description": "Gets details of a single DeliveryPipeline.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}", + // "description": "Gets details of a single AutomationRun.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/automationRuns/{automationRunsId}", // "httpMethod": "GET", - // "id": "clouddeploy.projects.locations.deliveryPipelines.get", + // "id": "clouddeploy.projects.locations.deliveryPipelines.automationRuns.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. Name of the `DeliveryPipeline`. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.", + // "description": "Required. Name of the `AutomationRun`. Format must be projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automationRuns/{automation_run}.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/automationRuns/[^/]+$", // "required": true, // "type": "string" // } // }, // "path": "v1/{+name}", // "response": { - // "$ref": "DeliveryPipeline" + // "$ref": "AutomationRun" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -5758,53 +8252,64 @@ func (c *ProjectsLocationsDeliveryPipelinesGetCall) Do(opts ...googleapi.CallOpt } -// method id "clouddeploy.projects.locations.deliveryPipelines.getIamPolicy": +// method id "clouddeploy.projects.locations.deliveryPipelines.automationRuns.list": -type ProjectsLocationsDeliveryPipelinesGetIamPolicyCall struct { +type ProjectsLocationsDeliveryPipelinesAutomationRunsListCall struct { s *Service - resource string + parent string urlParams_ gensupport.URLParams ifNoneMatch_ string ctx_ context.Context header_ http.Header } -// GetIamPolicy: Gets the access control policy for a resource. Returns -// an empty policy if the resource exists and does not have a policy -// set. +// List: Lists AutomationRuns in a given project and location. // -// - resource: REQUIRED: The resource for which the policy is being -// requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsDeliveryPipelinesService) GetIamPolicy(resource string) *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall { - c := &ProjectsLocationsDeliveryPipelinesGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource +// - parent: The parent, which owns this collection of automationRuns. +// Format must be +// projects/{project}/locations/{location}/deliveryPipelines/{delivery_ +// pipeline}. +func (r *ProjectsLocationsDeliveryPipelinesAutomationRunsService) List(parent string) *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall { + c := &ProjectsLocationsDeliveryPipelinesAutomationRunsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent return c } -// OptionsRequestedPolicyVersion sets the optional parameter -// "options.requestedPolicyVersion": The maximum policy version that -// will be used to format the policy. Valid values are 0, 1, and 3. -// Requests specifying an invalid value will be rejected. Requests for -// policies with any conditional role bindings must specify version 3. -// Policies with no conditional role bindings may specify any valid -// value or leave the field unset. The policy in the response might use -// the policy version that you specified, or it might use a lower policy -// version. For example, if you specify version 3, but the policy has no -// conditional role bindings, the response uses version 1. To learn -// which resources support conditions in their IAM policies, see the IAM -// documentation -// (https://cloud.google.com/iam/help/conditions/resource-policies). -func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) OptionsRequestedPolicyVersion(optionsRequestedPolicyVersion int64) *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall { - c.urlParams_.Set("options.requestedPolicyVersion", fmt.Sprint(optionsRequestedPolicyVersion)) +// Filter sets the optional parameter "filter": Filter automationRuns to +// be returned. All fields can be used in the filter. +func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall) Filter(filter string) *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall { + c.urlParams_.Set("filter", filter) + return c +} + +// OrderBy sets the optional parameter "orderBy": Field to sort by. +func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall) OrderBy(orderBy string) *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c +} + +// PageSize sets the optional parameter "pageSize": The maximum number +// of automationRuns to return. The service may return fewer than this +// value. If unspecified, at most 50 automationRuns will be returned. +// The maximum value is 1000; values above 1000 will be set to 1000. +func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall) PageSize(pageSize int64) *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListAutomationRuns` call. Provide this to +// retrieve the subsequent page. When paginating, all other provided +// parameters match the call that provided the page token. +func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall) PageToken(pageToken string) *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall { +func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -5814,7 +8319,7 @@ func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) Fields(s ...googlea // getting updates only after the object has changed since the last // request. Use googleapi.IsNotModified to check whether the response // error from Do is the result of In-None-Match. -func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall { +func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall { c.ifNoneMatch_ = entityTag return c } @@ -5822,21 +8327,21 @@ func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) IfNoneMatch(entityT // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall { +func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -5849,7 +8354,7 @@ func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) doRequest(alt strin var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:getIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/automationRuns") urls += "?" + c.urlParams_.Encode() req, err := http.NewRequest("GET", urls, body) if err != nil { @@ -5857,19 +8362,19 @@ func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) doRequest(alt strin } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "clouddeploy.projects.locations.deliveryPipelines.getIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { +// Do executes the "clouddeploy.projects.locations.deliveryPipelines.automationRuns.list" call. +// Exactly one of *ListAutomationRunsResponse or error will be non-nil. +// Any non-2xx status code is an error. Response headers are in either +// *ListAutomationRunsResponse.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 *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall) Do(opts ...googleapi.CallOption) (*ListAutomationRunsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -5888,7 +8393,7 @@ func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Policy{ + ret := &ListAutomationRunsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -5900,31 +8405,46 @@ func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) Do(opts ...googleap } return ret, nil // { - // "description": "Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}:getIamPolicy", + // "description": "Lists AutomationRuns in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/automationRuns", // "httpMethod": "GET", - // "id": "clouddeploy.projects.locations.deliveryPipelines.getIamPolicy", + // "id": "clouddeploy.projects.locations.deliveryPipelines.automationRuns.list", // "parameterOrder": [ - // "resource" + // "parent" // ], // "parameters": { - // "options.requestedPolicyVersion": { - // "description": "Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).", + // "filter": { + // "description": "Filter automationRuns to be returned. All fields can be used in the filter.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Field to sort by.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of automationRuns to return. The service may return fewer than this value. If unspecified, at most 50 automationRuns will be returned. The maximum value is 1000; values above 1000 will be set to 1000.", // "format": "int32", // "location": "query", // "type": "integer" // }, - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "pageToken": { + // "description": "A page token, received from a previous `ListAutomationRuns` call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent, which owns this collection of automationRuns. Format must be projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+resource}:getIamPolicy", + // "path": "v1/{+parent}/automationRuns", // "response": { - // "$ref": "Policy" + // "$ref": "ListAutomationRunsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -5933,110 +8453,126 @@ func (c *ProjectsLocationsDeliveryPipelinesGetIamPolicyCall) Do(opts ...googleap } -// method id "clouddeploy.projects.locations.deliveryPipelines.list": +// 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 *ProjectsLocationsDeliveryPipelinesAutomationRunsListCall) Pages(ctx context.Context, f func(*ListAutomationRunsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type ProjectsLocationsDeliveryPipelinesListCall struct { - s *Service - parent string - urlParams_ gensupport.URLParams - ifNoneMatch_ string - ctx_ context.Context - header_ http.Header +// method id "clouddeploy.projects.locations.deliveryPipelines.automations.create": + +type ProjectsLocationsDeliveryPipelinesAutomationsCreateCall struct { + s *Service + parent string + automation *Automation + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// List: Lists DeliveryPipelines in a given project and location. +// Create: Creates a new Automation in a given project and location. // -// - parent: The parent, which owns this collection of pipelines. Format -// must be projects/{project_id}/locations/{location_name}. -func (r *ProjectsLocationsDeliveryPipelinesService) List(parent string) *ProjectsLocationsDeliveryPipelinesListCall { - c := &ProjectsLocationsDeliveryPipelinesListCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - parent: The parent collection in which the `Automation` should be +// created. Format should be +// projects/{project_id}/locations/{location_name}/deliveryPipelines/{p +// ipeline_name}. +func (r *ProjectsLocationsDeliveryPipelinesAutomationsService) Create(parent string, automation *Automation) *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall { + c := &ProjectsLocationsDeliveryPipelinesAutomationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.parent = parent + c.automation = automation return c } -// Filter sets the optional parameter "filter": Filter pipelines to be -// returned. See https://google.aip.dev/160 for more details. -func (c *ProjectsLocationsDeliveryPipelinesListCall) Filter(filter string) *ProjectsLocationsDeliveryPipelinesListCall { - c.urlParams_.Set("filter", filter) - return c -} - -// OrderBy sets the optional parameter "orderBy": Field to sort by. See -// https://google.aip.dev/132#ordering for more details. -func (c *ProjectsLocationsDeliveryPipelinesListCall) OrderBy(orderBy string) *ProjectsLocationsDeliveryPipelinesListCall { - c.urlParams_.Set("orderBy", orderBy) +// AutomationId sets the optional parameter "automationId": Required. ID +// of the `Automation`. +func (c *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall) AutomationId(automationId string) *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall { + c.urlParams_.Set("automationId", automationId) return c } -// PageSize sets the optional parameter "pageSize": The maximum number -// of pipelines to return. The service may return fewer than this value. -// If unspecified, at most 50 pipelines will be returned. The maximum -// value is 1000; values above 1000 will be set to 1000. -func (c *ProjectsLocationsDeliveryPipelinesListCall) PageSize(pageSize int64) *ProjectsLocationsDeliveryPipelinesListCall { - c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) +// RequestId sets the optional parameter "requestId": A request ID to +// identify requests. Specify a unique request ID so that if you must +// retry your request, the server will know to ignore the request if it +// has already been completed. The server will guarantee that for at +// least 60 minutes since the first request. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall) RequestId(requestId string) *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall { + c.urlParams_.Set("requestId", requestId) return c } -// PageToken sets the optional parameter "pageToken": A page token, -// received from a previous `ListDeliveryPipelines` call. Provide this -// to retrieve the subsequent page. When paginating, all other provided -// parameters match the call that provided the page token. -func (c *ProjectsLocationsDeliveryPipelinesListCall) PageToken(pageToken string) *ProjectsLocationsDeliveryPipelinesListCall { - c.urlParams_.Set("pageToken", pageToken) +// ValidateOnly sets the optional parameter "validateOnly": If set to +// true, the request is validated and the user is provided with an +// expected result, but no actual change is made. +func (c *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall { + 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 information. -func (c *ProjectsLocationsDeliveryPipelinesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesListCall { +func (c *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } -// IfNoneMatch sets the optional parameter which makes the operation -// fail if the object's ETag matches the given value. This is useful for -// getting updates only after the object has changed since the last -// request. Use googleapi.IsNotModified to check whether the response -// error from Do is the result of In-None-Match. -func (c *ProjectsLocationsDeliveryPipelinesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeliveryPipelinesListCall { - c.ifNoneMatch_ = entityTag - return c -} - // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsDeliveryPipelinesListCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesListCall { +func (c *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsDeliveryPipelinesListCall) Header() http.Header { +func (c *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeliveryPipelinesListCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - if c.ifNoneMatch_ != "" { - reqHeaders.Set("If-None-Match", c.ifNoneMatch_) - } var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.automation) + if err != nil { + return nil, err + } + reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/deliveryPipelines") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/automations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("GET", urls, body) + req, err := http.NewRequest("POST", urls, body) if err != nil { return nil, err } @@ -6047,14 +8583,14 @@ func (c *ProjectsLocationsDeliveryPipelinesListCall) doRequest(alt string) (*htt return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "clouddeploy.projects.locations.deliveryPipelines.list" call. -// Exactly one of *ListDeliveryPipelinesResponse or error will be -// non-nil. Any non-2xx status code is an error. Response headers are in -// either *ListDeliveryPipelinesResponse.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 *ProjectsLocationsDeliveryPipelinesListCall) Do(opts ...googleapi.CallOption) (*ListDeliveryPipelinesResponse, error) { +// Do executes the "clouddeploy.projects.locations.deliveryPipelines.automations.create" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.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 *ProjectsLocationsDeliveryPipelinesAutomationsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6073,7 +8609,7 @@ func (c *ProjectsLocationsDeliveryPipelinesListCall) Do(opts ...googleapi.CallOp if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &ListDeliveryPipelinesResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6085,46 +8621,43 @@ func (c *ProjectsLocationsDeliveryPipelinesListCall) Do(opts ...googleapi.CallOp } return ret, nil // { - // "description": "Lists DeliveryPipelines in a given project and location.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines", - // "httpMethod": "GET", - // "id": "clouddeploy.projects.locations.deliveryPipelines.list", + // "description": "Creates a new Automation in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/automations", + // "httpMethod": "POST", + // "id": "clouddeploy.projects.locations.deliveryPipelines.automations.create", // "parameterOrder": [ // "parent" // ], // "parameters": { - // "filter": { - // "description": "Filter pipelines to be returned. See https://google.aip.dev/160 for more details.", + // "automationId": { + // "description": "Required. ID of the `Automation`.", // "location": "query", // "type": "string" // }, - // "orderBy": { - // "description": "Field to sort by. See https://google.aip.dev/132#ordering for more details.", - // "location": "query", + // "parent": { + // "description": "Required. The parent collection in which the `Automation` should be created. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.", + // "location": "path", + // "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+$", + // "required": true, // "type": "string" // }, - // "pageSize": { - // "description": "The maximum number of pipelines to return. The service may return fewer than this value. If unspecified, at most 50 pipelines will be returned. The maximum value is 1000; values above 1000 will be set to 1000.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, - // "pageToken": { - // "description": "A page token, received from a previous `ListDeliveryPipelines` call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters match the call that provided the page token.", + // "requestId": { + // "description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", // "location": "query", // "type": "string" // }, - // "parent": { - // "description": "Required. The parent, which owns this collection of pipelines. Format must be projects/{project_id}/locations/{location_name}.", - // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+$", - // "required": true, - // "type": "string" + // "validateOnly": { + // "description": "Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "v1/{+parent}/deliveryPipelines", + // "path": "v1/{+parent}/automations", + // "request": { + // "$ref": "Automation" + // }, // "response": { - // "$ref": "ListDeliveryPipelinesResponse" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -6133,63 +8666,49 @@ func (c *ProjectsLocationsDeliveryPipelinesListCall) Do(opts ...googleapi.CallOp } -// 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 *ProjectsLocationsDeliveryPipelinesListCall) Pages(ctx context.Context, f func(*ListDeliveryPipelinesResponse) error) error { - c.ctx_ = ctx - defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point - 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) - } -} - -// method id "clouddeploy.projects.locations.deliveryPipelines.patch": +// method id "clouddeploy.projects.locations.deliveryPipelines.automations.delete": -type ProjectsLocationsDeliveryPipelinesPatchCall struct { - s *Service - name string - deliverypipeline *DeliveryPipeline - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// Patch: Updates the parameters of a single DeliveryPipeline. +// Delete: Deletes a single Automation resource. // -// - name: Optional. Name of the `DeliveryPipeline`. Format is -// projects/{project}/ -// locations/{location}/deliveryPipelines/a-z{0,62}. -func (r *ProjectsLocationsDeliveryPipelinesService) Patch(name string, deliverypipeline *DeliveryPipeline) *ProjectsLocationsDeliveryPipelinesPatchCall { - c := &ProjectsLocationsDeliveryPipelinesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// - name: The name of the `Automation` to delete. Format should be +// projects/{project_id}/locations/{location_name}/deliveryPipelines/{p +// ipeline_name}/automations/{automation_name}. +func (r *ProjectsLocationsDeliveryPipelinesAutomationsService) Delete(name string) *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall { + c := &ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.deliverypipeline = deliverypipeline return c } // AllowMissing sets the optional parameter "allowMissing": If set to -// true, updating a `DeliveryPipeline` that does not exist will result -// in the creation of a new `DeliveryPipeline`. -func (c *ProjectsLocationsDeliveryPipelinesPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsDeliveryPipelinesPatchCall { +// true, then deleting an already deleted or non-existing `Automation` +// will succeed. +func (c *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall) AllowMissing(allowMissing bool) *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall { c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) return c } +// Etag sets the optional parameter "etag": The weak etag of the +// request. This checksum is computed by the server based on the value +// of other fields, and may be sent on update and delete requests to +// ensure the client has an up-to-date value before proceeding. +func (c *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall) Etag(etag string) *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall { + c.urlParams_.Set("etag", etag) + return c +} + // RequestId sets the optional parameter "requestId": A request ID to // identify requests. Specify a unique request ID so that if you must // retry your request, the server will know to ignore the request if it // has already been completed. The server will guarantee that for at -// least 60 minutes since the first request. For example, consider a +// least 60 minutes after the first request. For example, consider a // situation where you make an initial request and the request times // out. If you make the request again with the same request ID, the // server can check if original operation with the same request ID was @@ -6197,26 +8716,15 @@ func (c *ProjectsLocationsDeliveryPipelinesPatchCall) AllowMissing(allowMissing // clients from accidentally creating duplicate commitments. The request // ID must be a valid UUID with the exception that zero UUID is not // supported (00000000-0000-0000-0000-000000000000). -func (c *ProjectsLocationsDeliveryPipelinesPatchCall) RequestId(requestId string) *ProjectsLocationsDeliveryPipelinesPatchCall { +func (c *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall) RequestId(requestId string) *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall { c.urlParams_.Set("requestId", requestId) return c } -// UpdateMask sets the optional parameter "updateMask": Required. Field -// mask is used to specify the fields to be overwritten in the -// `DeliveryPipeline` resource by the update. The fields specified in -// the update_mask are relative to the resource, not the full request. A -// field will be overwritten if it is in the mask. If the user does not -// provide a mask then all fields will be overwritten. -func (c *ProjectsLocationsDeliveryPipelinesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDeliveryPipelinesPatchCall { - c.urlParams_.Set("updateMask", updateMask) - return c -} - -// ValidateOnly sets the optional parameter "validateOnly": If set to -// true, the request is validated and the user is provided with an -// expected result, but no actual change is made. -func (c *ProjectsLocationsDeliveryPipelinesPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDeliveryPipelinesPatchCall { +// ValidateOnly sets the optional parameter "validateOnly": If set, +// validate the request and verify whether the resource exists, but do +// not actually post it. +func (c *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall { c.urlParams_.Set("validateOnly", fmt.Sprint(validateOnly)) return c } @@ -6224,7 +8732,7 @@ func (c *ProjectsLocationsDeliveryPipelinesPatchCall) ValidateOnly(validateOnly // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDeliveryPipelinesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesPatchCall { +func (c *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6232,21 +8740,21 @@ func (c *ProjectsLocationsDeliveryPipelinesPatchCall) Fields(s ...googleapi.Fiel // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsDeliveryPipelinesPatchCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesPatchCall { +func (c *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsDeliveryPipelinesPatchCall) Header() http.Header { +func (c *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeliveryPipelinesPatchCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -6254,16 +8762,11 @@ func (c *ProjectsLocationsDeliveryPipelinesPatchCall) doRequest(alt string) (*ht } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.deliverypipeline) - if err != nil { - return nil, err - } - reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("PATCH", urls, body) + req, err := http.NewRequest("DELETE", urls, body) if err != nil { return nil, err } @@ -6274,14 +8777,14 @@ func (c *ProjectsLocationsDeliveryPipelinesPatchCall) doRequest(alt string) (*ht return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "clouddeploy.projects.locations.deliveryPipelines.patch" call. +// Do executes the "clouddeploy.projects.locations.deliveryPipelines.automations.delete" call. // Exactly one of *Operation or error will be non-nil. Any non-2xx // status code is an error. Response headers are in either // *Operation.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 *ProjectsLocationsDeliveryPipelinesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { +func (c *ProjectsLocationsDeliveryPipelinesAutomationsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6312,47 +8815,43 @@ func (c *ProjectsLocationsDeliveryPipelinesPatchCall) Do(opts ...googleapi.CallO } return ret, nil // { - // "description": "Updates the parameters of a single DeliveryPipeline.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}", - // "httpMethod": "PATCH", - // "id": "clouddeploy.projects.locations.deliveryPipelines.patch", + // "description": "Deletes a single Automation resource.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/automations/{automationsId}", + // "httpMethod": "DELETE", + // "id": "clouddeploy.projects.locations.deliveryPipelines.automations.delete", // "parameterOrder": [ // "name" // ], // "parameters": { // "allowMissing": { - // "description": "Optional. If set to true, updating a `DeliveryPipeline` that does not exist will result in the creation of a new `DeliveryPipeline`.", + // "description": "Optional. If set to true, then deleting an already deleted or non-existing `Automation` will succeed.", // "location": "query", // "type": "boolean" // }, + // "etag": { + // "description": "Optional. The weak etag of the request. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.", + // "location": "query", + // "type": "string" + // }, // "name": { - // "description": "Optional. Name of the `DeliveryPipeline`. Format is projects/{project}/ locations/{location}/deliveryPipelines/a-z{0,62}.", + // "description": "Required. The name of the `Automation` to delete. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/automations/[^/]+$", // "required": true, // "type": "string" // }, // "requestId": { - // "description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", - // "location": "query", - // "type": "string" - // }, - // "updateMask": { - // "description": "Required. Field mask is used to specify the fields to be overwritten in the `DeliveryPipeline` resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", - // "format": "google-fieldmask", + // "description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", // "location": "query", // "type": "string" // }, // "validateOnly": { - // "description": "Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.", + // "description": "Optional. If set, validate the request and verify whether the resource exists, but do not actually post it.", // "location": "query", // "type": "boolean" // } // }, // "path": "v1/{+name}", - // "request": { - // "$ref": "DeliveryPipeline" - // }, // "response": { // "$ref": "Operation" // }, @@ -6363,74 +8862,79 @@ func (c *ProjectsLocationsDeliveryPipelinesPatchCall) Do(opts ...googleapi.CallO } -// method id "clouddeploy.projects.locations.deliveryPipelines.rollbackTarget": +// method id "clouddeploy.projects.locations.deliveryPipelines.automations.get": -type ProjectsLocationsDeliveryPipelinesRollbackTargetCall struct { - s *Service - name string - rollbacktargetrequest *RollbackTargetRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +type ProjectsLocationsDeliveryPipelinesAutomationsGetCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header } -// RollbackTarget: Creates a `Rollout` to roll back the specified -// target. +// Get: Gets details of a single Automation. // -// - name: The `DeliveryPipeline` for which the rollback `Rollout` -// should be created. Format should be +// - name: Name of the `Automation`. Format must be // projects/{project_id}/locations/{location_name}/deliveryPipelines/{p -// ipeline_name}. -func (r *ProjectsLocationsDeliveryPipelinesService) RollbackTarget(name string, rollbacktargetrequest *RollbackTargetRequest) *ProjectsLocationsDeliveryPipelinesRollbackTargetCall { - c := &ProjectsLocationsDeliveryPipelinesRollbackTargetCall{s: r.s, urlParams_: make(gensupport.URLParams)} +// ipeline_name}/automations/{automation_name}. +func (r *ProjectsLocationsDeliveryPipelinesAutomationsService) Get(name string) *ProjectsLocationsDeliveryPipelinesAutomationsGetCall { + c := &ProjectsLocationsDeliveryPipelinesAutomationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.name = name - c.rollbacktargetrequest = rollbacktargetrequest return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDeliveryPipelinesRollbackTargetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesRollbackTargetCall { +func (c *ProjectsLocationsDeliveryPipelinesAutomationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesAutomationsGetCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsDeliveryPipelinesAutomationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeliveryPipelinesAutomationsGetCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsDeliveryPipelinesRollbackTargetCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesRollbackTargetCall { +func (c *ProjectsLocationsDeliveryPipelinesAutomationsGetCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesAutomationsGetCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsDeliveryPipelinesRollbackTargetCall) Header() http.Header { +func (c *ProjectsLocationsDeliveryPipelinesAutomationsGetCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeliveryPipelinesRollbackTargetCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeliveryPipelinesAutomationsGetCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.rollbacktargetrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:rollbackTarget") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } @@ -6441,14 +8945,14 @@ func (c *ProjectsLocationsDeliveryPipelinesRollbackTargetCall) doRequest(alt str return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "clouddeploy.projects.locations.deliveryPipelines.rollbackTarget" call. -// Exactly one of *RollbackTargetResponse or error will be non-nil. Any -// non-2xx status code is an error. Response headers are in either -// *RollbackTargetResponse.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 *ProjectsLocationsDeliveryPipelinesRollbackTargetCall) Do(opts ...googleapi.CallOption) (*RollbackTargetResponse, error) { +// Do executes the "clouddeploy.projects.locations.deliveryPipelines.automations.get" call. +// Exactly one of *Automation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Automation.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 *ProjectsLocationsDeliveryPipelinesAutomationsGetCall) Do(opts ...googleapi.CallOption) (*Automation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6467,7 +8971,7 @@ func (c *ProjectsLocationsDeliveryPipelinesRollbackTargetCall) Do(opts ...google if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &RollbackTargetResponse{ + ret := &Automation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6479,28 +8983,25 @@ func (c *ProjectsLocationsDeliveryPipelinesRollbackTargetCall) Do(opts ...google } return ret, nil // { - // "description": "Creates a `Rollout` to roll back the specified target.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}:rollbackTarget", - // "httpMethod": "POST", - // "id": "clouddeploy.projects.locations.deliveryPipelines.rollbackTarget", + // "description": "Gets details of a single Automation.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/automations/{automationsId}", + // "httpMethod": "GET", + // "id": "clouddeploy.projects.locations.deliveryPipelines.automations.get", // "parameterOrder": [ // "name" // ], // "parameters": { // "name": { - // "description": "Required. The `DeliveryPipeline` for which the rollback `Rollout` should be created. Format should be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.", + // "description": "Required. Name of the `Automation`. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}/automations/{automation_name}.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/automations/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+name}:rollbackTarget", - // "request": { - // "$ref": "RollbackTargetRequest" - // }, + // "path": "v1/{+name}", // "response": { - // "$ref": "RollbackTargetResponse" + // "$ref": "Automation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -6509,93 +9010,129 @@ func (c *ProjectsLocationsDeliveryPipelinesRollbackTargetCall) Do(opts ...google } -// method id "clouddeploy.projects.locations.deliveryPipelines.setIamPolicy": +// method id "clouddeploy.projects.locations.deliveryPipelines.automations.list": + +type ProjectsLocationsDeliveryPipelinesAutomationsListCall struct { + s *Service + parent string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// List: Lists Automations in a given project and location. +// +// - parent: The parent, which owns this collection of automations. +// Format must be +// projects/{project_id}/locations/{location_name}/deliveryPipelines/{p +// ipeline_name}. +func (r *ProjectsLocationsDeliveryPipelinesAutomationsService) List(parent string) *ProjectsLocationsDeliveryPipelinesAutomationsListCall { + c := &ProjectsLocationsDeliveryPipelinesAutomationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + return c +} + +// Filter sets the optional parameter "filter": Filter automations to be +// returned. All fields can be used in the filter. +func (c *ProjectsLocationsDeliveryPipelinesAutomationsListCall) Filter(filter string) *ProjectsLocationsDeliveryPipelinesAutomationsListCall { + c.urlParams_.Set("filter", filter) + return c +} -type ProjectsLocationsDeliveryPipelinesSetIamPolicyCall struct { - s *Service - resource string - setiampolicyrequest *SetIamPolicyRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// OrderBy sets the optional parameter "orderBy": Field to sort by. +func (c *ProjectsLocationsDeliveryPipelinesAutomationsListCall) OrderBy(orderBy string) *ProjectsLocationsDeliveryPipelinesAutomationsListCall { + c.urlParams_.Set("orderBy", orderBy) + return c } -// SetIamPolicy: Sets the access control policy on the specified -// resource. Replaces any existing policy. Can return `NOT_FOUND`, -// `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. -// -// - resource: REQUIRED: The resource for which the policy is being -// specified. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsDeliveryPipelinesService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall { - c := &ProjectsLocationsDeliveryPipelinesSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.setiampolicyrequest = setiampolicyrequest +// PageSize sets the optional parameter "pageSize": The maximum number +// of automations to return. The service may return fewer than this +// value. If unspecified, at most 50 automations will be returned. The +// maximum value is 1000; values above 1000 will be set to 1000. +func (c *ProjectsLocationsDeliveryPipelinesAutomationsListCall) PageSize(pageSize int64) *ProjectsLocationsDeliveryPipelinesAutomationsListCall { + c.urlParams_.Set("pageSize", fmt.Sprint(pageSize)) + return c +} + +// PageToken sets the optional parameter "pageToken": A page token, +// received from a previous `ListAutomations` call. Provide this to +// retrieve the subsequent page. When paginating, all other provided +// parameters match the call that provided the page token. +func (c *ProjectsLocationsDeliveryPipelinesAutomationsListCall) PageToken(pageToken string) *ProjectsLocationsDeliveryPipelinesAutomationsListCall { + c.urlParams_.Set("pageToken", pageToken) return c } // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse // for more information. -func (c *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall { +func (c *ProjectsLocationsDeliveryPipelinesAutomationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesAutomationsListCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } +// IfNoneMatch sets the optional parameter which makes the operation +// fail if the object's ETag matches the given value. This is useful for +// getting updates only after the object has changed since the last +// request. Use googleapi.IsNotModified to check whether the response +// error from Do is the result of In-None-Match. +func (c *ProjectsLocationsDeliveryPipelinesAutomationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDeliveryPipelinesAutomationsListCall { + c.ifNoneMatch_ = entityTag + return c +} + // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall { +func (c *ProjectsLocationsDeliveryPipelinesAutomationsListCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesAutomationsListCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall) Header() http.Header { +func (c *ProjectsLocationsDeliveryPipelinesAutomationsListCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeliveryPipelinesAutomationsListCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { reqHeaders[k] = v } reqHeaders.Set("User-Agent", c.s.userAgent()) - var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.setiampolicyrequest) - if err != nil { - return nil, err + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) } - reqHeaders.Set("Content-Type", "application/json") + var body io.Reader = nil c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:setIamPolicy") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/automations") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("GET", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "parent": c.parent, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "clouddeploy.projects.locations.deliveryPipelines.setIamPolicy" call. -// Exactly one of *Policy or error will be non-nil. Any non-2xx status -// code is an error. Response headers are in either -// *Policy.ServerResponse.Header or (if a response was returned at all) -// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to -// check whether the returned error was because http.StatusNotModified -// was returned. -func (c *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall) Do(opts ...googleapi.CallOption) (*Policy, error) { +// Do executes the "clouddeploy.projects.locations.deliveryPipelines.automations.list" call. +// Exactly one of *ListAutomationsResponse or error will be non-nil. Any +// non-2xx status code is an error. Response headers are in either +// *ListAutomationsResponse.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 *ProjectsLocationsDeliveryPipelinesAutomationsListCall) Do(opts ...googleapi.CallOption) (*ListAutomationsResponse, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6614,7 +9151,7 @@ func (c *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall) Do(opts ...googleap if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &Policy{ + ret := &ListAutomationsResponse{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6626,28 +9163,46 @@ func (c *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall) Do(opts ...googleap } return ret, nil // { - // "description": "Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}:setIamPolicy", - // "httpMethod": "POST", - // "id": "clouddeploy.projects.locations.deliveryPipelines.setIamPolicy", + // "description": "Lists Automations in a given project and location.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/automations", + // "httpMethod": "GET", + // "id": "clouddeploy.projects.locations.deliveryPipelines.automations.list", // "parameterOrder": [ - // "resource" + // "parent" // ], // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "filter": { + // "description": "Filter automations to be returned. All fields can be used in the filter.", + // "location": "query", + // "type": "string" + // }, + // "orderBy": { + // "description": "Field to sort by.", + // "location": "query", + // "type": "string" + // }, + // "pageSize": { + // "description": "The maximum number of automations to return. The service may return fewer than this value. If unspecified, at most 50 automations will be returned. The maximum value is 1000; values above 1000 will be set to 1000.", + // "format": "int32", + // "location": "query", + // "type": "integer" + // }, + // "pageToken": { + // "description": "A page token, received from a previous `ListAutomations` call. Provide this to retrieve the subsequent page. When paginating, all other provided parameters match the call that provided the page token.", + // "location": "query", + // "type": "string" + // }, + // "parent": { + // "description": "Required. The parent, which owns this collection of automations. Format must be projects/{project_id}/locations/{location_name}/deliveryPipelines/{pipeline_name}.", // "location": "path", // "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+$", // "required": true, // "type": "string" // } // }, - // "path": "v1/{+resource}:setIamPolicy", - // "request": { - // "$ref": "SetIamPolicyRequest" - // }, + // "path": "v1/{+parent}/automations", // "response": { - // "$ref": "Policy" + // "$ref": "ListAutomationsResponse" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" @@ -6656,39 +9211,98 @@ func (c *ProjectsLocationsDeliveryPipelinesSetIamPolicyCall) Do(opts ...googleap } -// method id "clouddeploy.projects.locations.deliveryPipelines.testIamPermissions": +// 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 *ProjectsLocationsDeliveryPipelinesAutomationsListCall) Pages(ctx context.Context, f func(*ListAutomationsResponse) error) error { + c.ctx_ = ctx + defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point + for { + x, err := c.Do() + if err != nil { + return err + } + if err := f(x); err != nil { + return err + } + if x.NextPageToken == "" { + return nil + } + c.PageToken(x.NextPageToken) + } +} -type ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall struct { - s *Service - resource string - testiampermissionsrequest *TestIamPermissionsRequest - urlParams_ gensupport.URLParams - ctx_ context.Context - header_ http.Header +// method id "clouddeploy.projects.locations.deliveryPipelines.automations.patch": + +type ProjectsLocationsDeliveryPipelinesAutomationsPatchCall struct { + s *Service + name string + automation *Automation + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header } -// TestIamPermissions: Returns permissions that a caller has on the -// specified resource. If the resource does not exist, this will return -// an empty set of permissions, not a `NOT_FOUND` error. Note: This -// operation is designed to be used for building permission-aware UIs -// and command-line tools, not for authorization checking. This -// operation may "fail open" without warning. +// Patch: Updates the parameters of a single Automation resource. // -// - resource: REQUIRED: The resource for which the policy detail is -// being requested. See Resource names -// (https://cloud.google.com/apis/design/resource_names) for the -// appropriate value for this field. -func (r *ProjectsLocationsDeliveryPipelinesService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall { - c := &ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} - c.resource = resource - c.testiampermissionsrequest = testiampermissionsrequest +// - name: Output only. Name of the `Automation`. Format is +// projects/{project}/locations/{location}/deliveryPipelines/{delivery_ +// pipeline}/automations/{automation}. +func (r *ProjectsLocationsDeliveryPipelinesAutomationsService) Patch(name string, automation *Automation) *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall { + c := &ProjectsLocationsDeliveryPipelinesAutomationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + c.automation = automation + return c +} + +// AllowMissing sets the optional parameter "allowMissing": If set to +// true, updating a `Automation` that does not exist will result in the +// creation of a new `Automation`. +func (c *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall { + c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing)) + return c +} + +// RequestId sets the optional parameter "requestId": A request ID to +// identify requests. Specify a unique request ID so that if you must +// retry your request, the server will know to ignore the request if it +// has already been completed. The server will guarantee that for at +// least 60 minutes since the first request. For example, consider a +// situation where you make an initial request and the request times +// out. If you make the request again with the same request ID, the +// server can check if original operation with the same request ID was +// received, and if so, will ignore the second request. This prevents +// clients from accidentally creating duplicate commitments. The request +// ID must be a valid UUID with the exception that zero UUID is not +// supported (00000000-0000-0000-0000-000000000000). +func (c *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall) RequestId(requestId string) *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall { + c.urlParams_.Set("requestId", requestId) + return c +} + +// UpdateMask sets the optional parameter "updateMask": Required. Field +// mask is used to specify the fields to be overwritten in the +// `Automation` resource by the update. The fields specified in the +// update_mask are relative to the resource, not the full request. A +// field will be overwritten if it is in the mask. If the user does not +// provide a mask then all fields will be overwritten. +func (c *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall { + c.urlParams_.Set("updateMask", updateMask) + return c +} + +// ValidateOnly sets the optional parameter "validateOnly": If set to +// true, the request is validated and the user is provided with an +// expected result, but no actual change is made. +func (c *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall) ValidateOnly(validateOnly bool) *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall { + 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 information. -func (c *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall { +func (c *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall { c.urlParams_.Set("fields", googleapi.CombineFields(s)) return c } @@ -6696,21 +9310,21 @@ func (c *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall) Fields(s ...g // Context sets the context to be used in this call's Do method. Any // pending HTTP request will be aborted if the provided context is // canceled. -func (c *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall { +func (c *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall) Context(ctx context.Context) *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall { c.ctx_ = ctx return c } // Header returns an http.Header that can be modified by the caller to // add HTTP headers to the request. -func (c *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall) Header() http.Header { +func (c *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall) Header() http.Header { if c.header_ == nil { c.header_ = make(http.Header) } return c.header_ } -func (c *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall) doRequest(alt string) (*http.Response, error) { +func (c *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall) doRequest(alt string) (*http.Response, error) { reqHeaders := make(http.Header) reqHeaders.Set("x-goog-api-client", "gl-go/"+gensupport.GoVersion()+" gdcl/"+internal.Version) for k, v := range c.header_ { @@ -6718,34 +9332,34 @@ func (c *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall) doRequest(alt } reqHeaders.Set("User-Agent", c.s.userAgent()) var body io.Reader = nil - body, err := googleapi.WithoutDataWrapper.JSONReader(c.testiampermissionsrequest) + body, err := googleapi.WithoutDataWrapper.JSONReader(c.automation) if err != nil { return nil, err } reqHeaders.Set("Content-Type", "application/json") c.urlParams_.Set("alt", alt) c.urlParams_.Set("prettyPrint", "false") - urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+resource}:testIamPermissions") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}") urls += "?" + c.urlParams_.Encode() - req, err := http.NewRequest("POST", urls, body) + req, err := http.NewRequest("PATCH", urls, body) if err != nil { return nil, err } req.Header = reqHeaders googleapi.Expand(req.URL, map[string]string{ - "resource": c.resource, + "name": c.name, }) return gensupport.SendRequest(c.ctx_, c.s.client, req) } -// Do executes the "clouddeploy.projects.locations.deliveryPipelines.testIamPermissions" call. -// Exactly one of *TestIamPermissionsResponse or error will be non-nil. -// Any non-2xx status code is an error. Response headers are in either -// *TestIamPermissionsResponse.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 *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall) Do(opts ...googleapi.CallOption) (*TestIamPermissionsResponse, error) { +// Do executes the "clouddeploy.projects.locations.deliveryPipelines.automations.patch" call. +// Exactly one of *Operation or error will be non-nil. Any non-2xx +// status code is an error. Response headers are in either +// *Operation.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 *ProjectsLocationsDeliveryPipelinesAutomationsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) { gensupport.SetOptions(c.urlParams_, opts...) res, err := c.doRequest("json") if res != nil && res.StatusCode == http.StatusNotModified { @@ -6764,7 +9378,7 @@ func (c *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall) Do(opts ...go if err := googleapi.CheckResponse(res); err != nil { return nil, gensupport.WrapError(err) } - ret := &TestIamPermissionsResponse{ + ret := &Operation{ ServerResponse: googleapi.ServerResponse{ Header: res.Header, HTTPStatusCode: res.StatusCode, @@ -6776,28 +9390,49 @@ func (c *ProjectsLocationsDeliveryPipelinesTestIamPermissionsCall) Do(opts ...go } return ret, nil // { - // "description": "Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.", - // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}:testIamPermissions", - // "httpMethod": "POST", - // "id": "clouddeploy.projects.locations.deliveryPipelines.testIamPermissions", + // "description": "Updates the parameters of a single Automation resource.", + // "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/deliveryPipelines/{deliveryPipelinesId}/automations/{automationsId}", + // "httpMethod": "PATCH", + // "id": "clouddeploy.projects.locations.deliveryPipelines.automations.patch", // "parameterOrder": [ - // "resource" + // "name" // ], // "parameters": { - // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.", + // "allowMissing": { + // "description": "Optional. If set to true, updating a `Automation` that does not exist will result in the creation of a new `Automation`.", + // "location": "query", + // "type": "boolean" + // }, + // "name": { + // "description": "Output only. Name of the `Automation`. Format is projects/{project}/locations/{location}/deliveryPipelines/{delivery_pipeline}/automations/{automation}.", // "location": "path", - // "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+$", + // "pattern": "^projects/[^/]+/locations/[^/]+/deliveryPipelines/[^/]+/automations/[^/]+$", // "required": true, // "type": "string" + // }, + // "requestId": { + // "description": "Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).", + // "location": "query", + // "type": "string" + // }, + // "updateMask": { + // "description": "Required. Field mask is used to specify the fields to be overwritten in the `Automation` resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.", + // "format": "google-fieldmask", + // "location": "query", + // "type": "string" + // }, + // "validateOnly": { + // "description": "Optional. If set to true, the request is validated and the user is provided with an expected result, but no actual change is made.", + // "location": "query", + // "type": "boolean" // } // }, - // "path": "v1/{+resource}:testIamPermissions", + // "path": "v1/{+name}", // "request": { - // "$ref": "TestIamPermissionsRequest" + // "$ref": "Automation" // }, // "response": { - // "$ref": "TestIamPermissionsResponse" + // "$ref": "Operation" // }, // "scopes": [ // "https://www.googleapis.com/auth/cloud-platform" diff --git a/container/v1/container-api.json b/container/v1/container-api.json index 30652ac5a1f..93301ada2ec 100644 --- a/container/v1/container-api.json +++ b/container/v1/container-api.json @@ -2540,7 +2540,7 @@ } } }, - "revision": "20231012", + "revision": "20231024", "rootUrl": "https://container.googleapis.com/", "schemas": { "AcceleratorConfig": { @@ -3173,6 +3173,10 @@ "description": "[Output only] The IP address of this cluster's master endpoint. The endpoint can be accessed from the internet at `https://username:password@endpoint/`. See the `masterAuth` property of this resource for username and password information.", "type": "string" }, + "enterpriseConfig": { + "$ref": "EnterpriseConfig", + "description": "GKE Enterprise Configuration." + }, "etag": { "description": "This checksum is computed by the server based on the value of cluster fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding.", "type": "string" @@ -3950,6 +3954,28 @@ "properties": {}, "type": "object" }, + "EnterpriseConfig": { + "description": "EnterpriseConfig is the cluster enterprise configuration.", + "id": "EnterpriseConfig", + "properties": { + "clusterTier": { + "description": "Output only. [Output only] cluster_tier specifies the premium tier of the cluster.", + "enum": [ + "CLUSTER_TIER_UNSPECIFIED", + "STANDARD", + "ENTERPRISE" + ], + "enumDescriptions": [ + "CLUSTER_TIER_UNSPECIFIED is when cluster_tier is not set.", + "STANDARD indicates a standard GKE cluster.", + "ENTERPRISE indicates a GKE Enterprise cluster." + ], + "readOnly": true, + "type": "string" + } + }, + "type": "object" + }, "EphemeralStorageLocalSsdConfig": { "description": "EphemeralStorageLocalSsdConfig contains configuration for the node ephemeral storage using Local SSDs.", "id": "EphemeralStorageLocalSsdConfig", diff --git a/container/v1/container-gen.go b/container/v1/container-gen.go index fe589b6b999..a19de0e1edf 100644 --- a/container/v1/container-gen.go +++ b/container/v1/container-gen.go @@ -1324,6 +1324,9 @@ type Cluster struct { // of this resource for username and password information. Endpoint string `json:"endpoint,omitempty"` + // EnterpriseConfig: GKE Enterprise Configuration. + EnterpriseConfig *EnterpriseConfig `json:"enterpriseConfig,omitempty"` + // Etag: This checksum is computed by the server based on the value of // cluster fields, and may be sent on update requests to ensure the // client has an up-to-date value before proceeding. @@ -2464,6 +2467,42 @@ type Empty struct { googleapi.ServerResponse `json:"-"` } +// EnterpriseConfig: EnterpriseConfig is the cluster enterprise +// configuration. +type EnterpriseConfig struct { + // ClusterTier: Output only. [Output only] cluster_tier specifies the + // premium tier of the cluster. + // + // Possible values: + // "CLUSTER_TIER_UNSPECIFIED" - CLUSTER_TIER_UNSPECIFIED is when + // cluster_tier is not set. + // "STANDARD" - STANDARD indicates a standard GKE cluster. + // "ENTERPRISE" - ENTERPRISE indicates a GKE Enterprise cluster. + ClusterTier string `json:"clusterTier,omitempty"` + + // ForceSendFields is a list of field names (e.g. "ClusterTier") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "ClusterTier") to include + // in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. However, any field with + // an empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *EnterpriseConfig) MarshalJSON() ([]byte, error) { + type NoMethod EnterpriseConfig + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // EphemeralStorageLocalSsdConfig: EphemeralStorageLocalSsdConfig // contains configuration for the node ephemeral storage using Local // SSDs. diff --git a/datamigration/v1/datamigration-api.json b/datamigration/v1/datamigration-api.json index a3f545166ab..8399b0a0138 100644 --- a/datamigration/v1/datamigration-api.json +++ b/datamigration/v1/datamigration-api.json @@ -2097,7 +2097,7 @@ } } }, - "revision": "20231011", + "revision": "20231031", "rootUrl": "https://datamigration.googleapis.com/", "schemas": { "AlloyDbConnectionProfile": { @@ -4866,6 +4866,10 @@ "description": "Specifies connection parameters required specifically for PostgreSQL databases.", "id": "PostgreSqlConnectionProfile", "properties": { + "alloydbClusterId": { + "description": "Optional. If the destination is an AlloyDB database, use this field to provide the AlloyDB cluster ID.", + "type": "string" + }, "cloudSqlId": { "description": "If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.", "type": "string" diff --git a/datamigration/v1/datamigration-gen.go b/datamigration/v1/datamigration-gen.go index c8d63b5878e..f53d6a23f75 100644 --- a/datamigration/v1/datamigration-gen.go +++ b/datamigration/v1/datamigration-gen.go @@ -4131,6 +4131,10 @@ func (s *Position) MarshalJSON() ([]byte, error) { // PostgreSqlConnectionProfile: Specifies connection parameters required // specifically for PostgreSQL databases. type PostgreSqlConnectionProfile struct { + // AlloydbClusterId: Optional. If the destination is an AlloyDB + // database, use this field to provide the AlloyDB cluster ID. + AlloydbClusterId string `json:"alloydbClusterId,omitempty"` + // CloudSqlId: If the source is a Cloud SQL database, use this field to // provide the Cloud SQL instance ID of the source. CloudSqlId string `json:"cloudSqlId,omitempty"` @@ -4180,7 +4184,7 @@ type PostgreSqlConnectionProfile struct { // Database Migration Service. Username string `json:"username,omitempty"` - // ForceSendFields is a list of field names (e.g. "CloudSqlId") to + // ForceSendFields is a list of field names (e.g. "AlloydbClusterId") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -4188,12 +4192,13 @@ type PostgreSqlConnectionProfile struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CloudSqlId") to include in - // API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. However, any field with an - // empty value appearing in NullFields will be sent to the server as - // null. It is an error if a field in this list has a non-empty value. - // This may be used to include null fields in Patch requests. + // NullFields is a list of field names (e.g. "AlloydbClusterId") to + // include in API requests with the JSON null value. By default, fields + // with empty values are omitted from API requests. However, any field + // with an empty value appearing in NullFields will be sent to the + // server as null. It is an error if a field in this list has a + // non-empty value. This may be used to include null fields in Patch + // requests. NullFields []string `json:"-"` } diff --git a/datastream/v1/datastream-api.json b/datastream/v1/datastream-api.json index 22be5f2af49..bc2f39dd0a7 100644 --- a/datastream/v1/datastream-api.json +++ b/datastream/v1/datastream-api.json @@ -1024,17 +1024,6 @@ "name" ], "parameters": { - "cdcStrategy.specificStartPosition.mysqlLogPosition.logFile": { - "description": "Required. The binary log file name.", - "location": "query", - "type": "string" - }, - "cdcStrategy.specificStartPosition.mysqlLogPosition.logPosition": { - "description": "Optional. The position within the binary log file. Default is head of file.", - "format": "int32", - "location": "query", - "type": "integer" - }, "force": { "description": "Optional. Update the stream without validating it.", "location": "query", @@ -1261,7 +1250,7 @@ } } }, - "revision": "20230902", + "revision": "20231025", "rootUrl": "https://datastream.googleapis.com/", "schemas": { "AvroFileFormat": { diff --git a/datastream/v1/datastream-gen.go b/datastream/v1/datastream-gen.go index 9847ef2d183..fba4acbfa7e 100644 --- a/datastream/v1/datastream-gen.go +++ b/datastream/v1/datastream-gen.go @@ -7523,24 +7523,6 @@ func (r *ProjectsLocationsStreamsService) Patch(name string, stream *Stream) *Pr return c } -// CdcStrategySpecificStartPositionMysqlLogPositionLogFile sets the -// optional parameter -// "cdcStrategy.specificStartPosition.mysqlLogPosition.logFile": -// Required. The binary log file name. -func (c *ProjectsLocationsStreamsPatchCall) CdcStrategySpecificStartPositionMysqlLogPositionLogFile(cdcStrategySpecificStartPositionMysqlLogPositionLogFile string) *ProjectsLocationsStreamsPatchCall { - c.urlParams_.Set("cdcStrategy.specificStartPosition.mysqlLogPosition.logFile", cdcStrategySpecificStartPositionMysqlLogPositionLogFile) - return c -} - -// CdcStrategySpecificStartPositionMysqlLogPositionLogPosition sets the -// optional parameter -// "cdcStrategy.specificStartPosition.mysqlLogPosition.logPosition": The -// position within the binary log file. Default is head of file. -func (c *ProjectsLocationsStreamsPatchCall) CdcStrategySpecificStartPositionMysqlLogPositionLogPosition(cdcStrategySpecificStartPositionMysqlLogPositionLogPosition int64) *ProjectsLocationsStreamsPatchCall { - c.urlParams_.Set("cdcStrategy.specificStartPosition.mysqlLogPosition.logPosition", fmt.Sprint(cdcStrategySpecificStartPositionMysqlLogPositionLogPosition)) - return c -} - // Force sets the optional parameter "force": Update the stream without // validating it. func (c *ProjectsLocationsStreamsPatchCall) Force(force bool) *ProjectsLocationsStreamsPatchCall { @@ -7683,17 +7665,6 @@ func (c *ProjectsLocationsStreamsPatchCall) Do(opts ...googleapi.CallOption) (*O // "name" // ], // "parameters": { - // "cdcStrategy.specificStartPosition.mysqlLogPosition.logFile": { - // "description": "Required. The binary log file name.", - // "location": "query", - // "type": "string" - // }, - // "cdcStrategy.specificStartPosition.mysqlLogPosition.logPosition": { - // "description": "Optional. The position within the binary log file. Default is head of file.", - // "format": "int32", - // "location": "query", - // "type": "integer" - // }, // "force": { // "description": "Optional. Update the stream without validating it.", // "location": "query", diff --git a/firestore/v1/firestore-api.json b/firestore/v1/firestore-api.json index e2efb1c0bce..aba7a07e60a 100644 --- a/firestore/v1/firestore-api.json +++ b/firestore/v1/firestore-api.json @@ -1672,7 +1672,7 @@ } } }, - "revision": "20231002", + "revision": "20231031", "rootUrl": "https://firestore.googleapis.com/", "schemas": { "Aggregation": { @@ -3078,6 +3078,13 @@ "$ref": "GoogleFirestoreAdminV1Database" }, "type": "array" + }, + "unreachable": { + "description": "In the event that data about individual databases cannot be listed they will be recorded here. An example entry might be: projects/some_project/locations/some_location This can happen if the Cloud Region that the Database resides in is currently unavailable. In this case we can't fetch all the details about the database. You may be able to get a more detailed error message (or possibly fetch the resource) by sending a 'Get' request for the resource or a 'List' request for the specific location.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object" diff --git a/firestore/v1/firestore-gen.go b/firestore/v1/firestore-gen.go index 10ed2976f19..20030d0a27d 100644 --- a/firestore/v1/firestore-gen.go +++ b/firestore/v1/firestore-gen.go @@ -2593,6 +2593,16 @@ type GoogleFirestoreAdminV1ListDatabasesResponse struct { // Databases: The databases in the project. Databases []*GoogleFirestoreAdminV1Database `json:"databases,omitempty"` + // Unreachable: In the event that data about individual databases cannot + // be listed they will be recorded here. An example entry might be: + // projects/some_project/locations/some_location This can happen if the + // Cloud Region that the Database resides in is currently unavailable. + // In this case we can't fetch all the details about the database. You + // may be able to get a more detailed error message (or possibly fetch + // the resource) by sending a 'Get' request for the resource or a 'List' + // request for the specific location. + Unreachable []string `json:"unreachable,omitempty"` + // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` diff --git a/gkehub/v1/gkehub-api.json b/gkehub/v1/gkehub-api.json index 9c5f9f37ea8..de097f27e04 100644 --- a/gkehub/v1/gkehub-api.json +++ b/gkehub/v1/gkehub-api.json @@ -1834,7 +1834,7 @@ } } }, - "revision": "20231013", + "revision": "20231030", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AppDevExperienceFeatureSpec": { @@ -2014,6 +2014,14 @@ "$ref": "ConfigManagementMembershipSpec", "description": "Config Management-specific spec." }, + "identityservice": { + "$ref": "IdentityServiceMembershipSpec", + "description": "Identity Service-specific spec." + }, + "mesh": { + "$ref": "ServiceMeshMembershipSpec", + "description": "Anthos Service Mesh-specific spec" + }, "policycontroller": { "$ref": "PolicyControllerMembershipSpec", "description": "Policy Controller spec." diff --git a/gkehub/v1/gkehub-gen.go b/gkehub/v1/gkehub-gen.go index b200c1bc40a..9b6ddeb46b7 100644 --- a/gkehub/v1/gkehub-gen.go +++ b/gkehub/v1/gkehub-gen.go @@ -689,6 +689,12 @@ type CommonFleetDefaultMemberConfigSpec struct { // Configmanagement: Config Management-specific spec. Configmanagement *ConfigManagementMembershipSpec `json:"configmanagement,omitempty"` + // Identityservice: Identity Service-specific spec. + Identityservice *IdentityServiceMembershipSpec `json:"identityservice,omitempty"` + + // Mesh: Anthos Service Mesh-specific spec + Mesh *ServiceMeshMembershipSpec `json:"mesh,omitempty"` + // Policycontroller: Policy Controller spec. Policycontroller *PolicyControllerMembershipSpec `json:"policycontroller,omitempty"` diff --git a/gkehub/v1alpha/gkehub-api.json b/gkehub/v1alpha/gkehub-api.json index 3ced487c1de..4d03ef3a280 100644 --- a/gkehub/v1alpha/gkehub-api.json +++ b/gkehub/v1alpha/gkehub-api.json @@ -2414,7 +2414,7 @@ } } }, - "revision": "20231013", + "revision": "20231030", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -2999,6 +2999,10 @@ "$ref": "IdentityServiceMembershipSpec", "description": "Identity Service-specific spec." }, + "mesh": { + "$ref": "ServiceMeshMembershipSpec", + "description": "Anthos Service Mesh-specific spec" + }, "policycontroller": { "$ref": "PolicyControllerMembershipSpec", "description": "Policy Controller spec." diff --git a/gkehub/v1alpha/gkehub-gen.go b/gkehub/v1alpha/gkehub-gen.go index 90a0c4a379e..cc039eeef25 100644 --- a/gkehub/v1alpha/gkehub-gen.go +++ b/gkehub/v1alpha/gkehub-gen.go @@ -1428,6 +1428,9 @@ type CommonFleetDefaultMemberConfigSpec struct { // Identityservice: Identity Service-specific spec. Identityservice *IdentityServiceMembershipSpec `json:"identityservice,omitempty"` + // Mesh: Anthos Service Mesh-specific spec + Mesh *ServiceMeshMembershipSpec `json:"mesh,omitempty"` + // Policycontroller: Policy Controller spec. Policycontroller *PolicyControllerMembershipSpec `json:"policycontroller,omitempty"` diff --git a/gkehub/v1beta/gkehub-api.json b/gkehub/v1beta/gkehub-api.json index 179da9d1782..b19ce97a415 100644 --- a/gkehub/v1beta/gkehub-api.json +++ b/gkehub/v1beta/gkehub-api.json @@ -2340,7 +2340,7 @@ } } }, - "revision": "20231013", + "revision": "20231030", "rootUrl": "https://gkehub.googleapis.com/", "schemas": { "AnthosObservabilityFeatureSpec": { @@ -2558,6 +2558,10 @@ "$ref": "IdentityServiceMembershipSpec", "description": "Identity Service-specific spec." }, + "mesh": { + "$ref": "ServiceMeshMembershipSpec", + "description": "Anthos Service Mesh-specific spec" + }, "policycontroller": { "$ref": "PolicyControllerMembershipSpec", "description": "Policy Controller spec." diff --git a/gkehub/v1beta/gkehub-gen.go b/gkehub/v1beta/gkehub-gen.go index 64dc99c5ac2..25d03bd1ca9 100644 --- a/gkehub/v1beta/gkehub-gen.go +++ b/gkehub/v1beta/gkehub-gen.go @@ -802,6 +802,9 @@ type CommonFleetDefaultMemberConfigSpec struct { // Identityservice: Identity Service-specific spec. Identityservice *IdentityServiceMembershipSpec `json:"identityservice,omitempty"` + // Mesh: Anthos Service Mesh-specific spec + Mesh *ServiceMeshMembershipSpec `json:"mesh,omitempty"` + // Policycontroller: Policy Controller spec. Policycontroller *PolicyControllerMembershipSpec `json:"policycontroller,omitempty"` diff --git a/logging/v2/logging-api.json b/logging/v2/logging-api.json index ba33ed2b092..8d993f8e9b1 100644 --- a/logging/v2/logging-api.json +++ b/logging/v2/logging-api.json @@ -7084,7 +7084,7 @@ } } }, - "revision": "20231006", + "revision": "20231026", "rootUrl": "https://logging.googleapis.com/", "schemas": { "BigQueryDataset": { @@ -8004,6 +8004,14 @@ "description": "An individual entry in a log.", "id": "LogEntry", "properties": { + "errorGroups": { + "description": "Output only. The Error Reporting (https://cloud.google.com/error-reporting) error groups associated with this LogEntry. Error Reporting sets the values for this field during error group creation.For more information, see View error details( https://cloud.google.com/error-reporting/docs/viewing-errors#view_error_details)This field isn't available during log routing (https://cloud.google.com/logging/docs/routing/overview)", + "items": { + "$ref": "LogErrorGroup" + }, + "readOnly": true, + "type": "array" + }, "httpRequest": { "$ref": "HttpRequest", "description": "Optional. Information about the HTTP request associated with this log entry, if applicable." @@ -8160,6 +8168,17 @@ }, "type": "object" }, + "LogErrorGroup": { + "description": "Contains metadata that associates the LogEntry to Error Reporting error groups.", + "id": "LogErrorGroup", + "properties": { + "id": { + "description": "The id is a unique identifier for a particular error group; it is the last part of the error group resource name: /projects//errors/. Example: COShysOX0r_51QE The id is derived from key parts of the error-log content and is treated as Service Data. For information about how Service Data is handled, see Google Cloud Privacy Notice (https://cloud.google.com/terms/cloud-privacy-notice).", + "type": "string" + } + }, + "type": "object" + }, "LogExclusion": { "description": "Specifies a set of log entries that are filtered out by a sink. If your Google Cloud resource receives a large volume of log entries, you can use exclusions to reduce your chargeable logs. Note that exclusions on organization-level and folder-level sinks don't apply to child resources. Note also that you cannot modify the _Required sink or exclude logs from it.", "id": "LogExclusion", diff --git a/logging/v2/logging-gen.go b/logging/v2/logging-gen.go index 5d8c29163ad..4eb3d5da31b 100644 --- a/logging/v2/logging-gen.go +++ b/logging/v2/logging-gen.go @@ -2484,6 +2484,16 @@ func (s *LogBucket) MarshalJSON() ([]byte, error) { // LogEntry: An individual entry in a log. type LogEntry struct { + // ErrorGroups: Output only. The Error Reporting + // (https://cloud.google.com/error-reporting) error groups associated + // with this LogEntry. Error Reporting sets the values for this field + // during error group creation.For more information, see View error + // details( + // https://cloud.google.com/error-reporting/docs/viewing-errors#view_error_details)This + // field isn't available during log routing + // (https://cloud.google.com/logging/docs/routing/overview) + ErrorGroups []*LogErrorGroup `json:"errorGroups,omitempty"` + // HttpRequest: Optional. Information about the HTTP request associated // with this log entry, if applicable. HttpRequest *HttpRequest `json:"httpRequest,omitempty"` @@ -2646,7 +2656,7 @@ type LogEntry struct { // identifier. The default is False. TraceSampled bool `json:"traceSampled,omitempty"` - // ForceSendFields is a list of field names (e.g. "HttpRequest") to + // ForceSendFields is a list of field names (e.g. "ErrorGroups") to // unconditionally include in API requests. By default, fields with // empty or default values are omitted from API requests. However, any // non-pointer, non-interface field appearing in ForceSendFields will be @@ -2654,7 +2664,7 @@ type LogEntry struct { // This may be used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "HttpRequest") to include + // NullFields is a list of field names (e.g. "ErrorGroups") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as @@ -2754,6 +2764,40 @@ func (s *LogEntrySourceLocation) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// LogErrorGroup: Contains metadata that associates the LogEntry to +// Error Reporting error groups. +type LogErrorGroup struct { + // Id: The id is a unique identifier for a particular error group; it is + // the last part of the error group resource name: /projects//errors/. + // Example: COShysOX0r_51QE The id is derived from key parts of the + // error-log content and is treated as Service Data. For information + // about how Service Data is handled, see Google Cloud Privacy Notice + // (https://cloud.google.com/terms/cloud-privacy-notice). + Id string `json:"id,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Id") to + // unconditionally include in API requests. By default, fields with + // empty or default values are omitted from API requests. However, any + // non-pointer, non-interface field appearing in ForceSendFields will be + // sent to the server regardless of whether the field is empty or not. + // This may be used to include empty fields in Patch requests. + ForceSendFields []string `json:"-"` + + // NullFields is a list of field names (e.g. "Id") to include in API + // requests with the JSON null value. By default, fields with empty + // values are omitted from API requests. However, any field with an + // empty value appearing in NullFields will be sent to the server as + // null. It is an error if a field in this list has a non-empty value. + // This may be used to include null fields in Patch requests. + NullFields []string `json:"-"` +} + +func (s *LogErrorGroup) MarshalJSON() ([]byte, error) { + type NoMethod LogErrorGroup + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // LogExclusion: Specifies a set of log entries that are filtered out by // a sink. If your Google Cloud resource receives a large volume of log // entries, you can use exclusions to reduce your chargeable logs. Note