diff --git a/cloudbuild/v1/cloudbuild-api.json b/cloudbuild/v1/cloudbuild-api.json index 491fcb43696..7245e0a93a6 100644 --- a/cloudbuild/v1/cloudbuild-api.json +++ b/cloudbuild/v1/cloudbuild-api.json @@ -2011,7 +2011,7 @@ } } }, - "revision": "20220505", + "revision": "20220512", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -3082,27 +3082,6 @@ }, "type": "object" }, - "CreateGitLabConfigOperationMetadata": { - "description": "Metadata for `CreateGitLabConfig` operation.", - "id": "CreateGitLabConfigOperationMetadata", - "properties": { - "completeTime": { - "description": "Time the operation was completed.", - "format": "google-datetime", - "type": "string" - }, - "createTime": { - "description": "Time the operation was created.", - "format": "google-datetime", - "type": "string" - }, - "gitlabConfig": { - "description": "The resource name of the GitLabConfig to be created. Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`.", - "type": "string" - } - }, - "type": "object" - }, "CreateWorkerPoolOperationMetadata": { "description": "Metadata for the `CreateWorkerPool` operation.", "id": "CreateWorkerPoolOperationMetadata", @@ -3166,27 +3145,6 @@ }, "type": "object" }, - "DeleteGitLabConfigOperationMetadata": { - "description": "Metadata for `DeleteGitLabConfig` operation.", - "id": "DeleteGitLabConfigOperationMetadata", - "properties": { - "completeTime": { - "description": "Time the operation was completed.", - "format": "google-datetime", - "type": "string" - }, - "createTime": { - "description": "Time the operation was created.", - "format": "google-datetime", - "type": "string" - }, - "gitlabConfig": { - "description": "The resource name of the GitLabConfig to be created. Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`.", - "type": "string" - } - }, - "type": "object" - }, "DeleteWorkerPoolOperationMetadata": { "description": "Metadata for the `DeleteWorkerPool` operation.", "id": "DeleteWorkerPoolOperationMetadata", @@ -4496,27 +4454,6 @@ }, "type": "object" }, - "UpdateGitLabConfigOperationMetadata": { - "description": "Metadata for `UpdateGitLabConfig` operation.", - "id": "UpdateGitLabConfigOperationMetadata", - "properties": { - "completeTime": { - "description": "Time the operation was completed.", - "format": "google-datetime", - "type": "string" - }, - "createTime": { - "description": "Time the operation was created.", - "format": "google-datetime", - "type": "string" - }, - "gitlabConfig": { - "description": "The resource name of the GitLabConfig to be created. Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`.", - "type": "string" - } - }, - "type": "object" - }, "UpdateWorkerPoolOperationMetadata": { "description": "Metadata for the `UpdateWorkerPool` operation.", "id": "UpdateWorkerPoolOperationMetadata", diff --git a/cloudbuild/v1/cloudbuild-gen.go b/cloudbuild/v1/cloudbuild-gen.go index 2301fe7135a..d81b7f212fc 100644 --- a/cloudbuild/v1/cloudbuild-gen.go +++ b/cloudbuild/v1/cloudbuild-gen.go @@ -1831,42 +1831,6 @@ func (s *CreateGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CreateGitLabConfigOperationMetadata: Metadata for -// `CreateGitLabConfig` operation. -type CreateGitLabConfigOperationMetadata struct { - // CompleteTime: Time the operation was completed. - CompleteTime string `json:"completeTime,omitempty"` - - // CreateTime: Time the operation was created. - CreateTime string `json:"createTime,omitempty"` - - // GitlabConfig: The resource name of the GitLabConfig to be created. - // Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`. - GitlabConfig string `json:"gitlabConfig,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompleteTime") 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. "CompleteTime") 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 *CreateGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod CreateGitLabConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // CreateWorkerPoolOperationMetadata: Metadata for the // `CreateWorkerPool` operation. type CreateWorkerPoolOperationMetadata struct { @@ -1980,42 +1944,6 @@ func (s *DeleteGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DeleteGitLabConfigOperationMetadata: Metadata for -// `DeleteGitLabConfig` operation. -type DeleteGitLabConfigOperationMetadata struct { - // CompleteTime: Time the operation was completed. - CompleteTime string `json:"completeTime,omitempty"` - - // CreateTime: Time the operation was created. - CreateTime string `json:"createTime,omitempty"` - - // GitlabConfig: The resource name of the GitLabConfig to be created. - // Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`. - GitlabConfig string `json:"gitlabConfig,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompleteTime") 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. "CompleteTime") 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 *DeleteGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod DeleteGitLabConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // DeleteWorkerPoolOperationMetadata: Metadata for the // `DeleteWorkerPool` operation. type DeleteWorkerPoolOperationMetadata struct { @@ -4275,42 +4203,6 @@ func (s *UpdateGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// UpdateGitLabConfigOperationMetadata: Metadata for -// `UpdateGitLabConfig` operation. -type UpdateGitLabConfigOperationMetadata struct { - // CompleteTime: Time the operation was completed. - CompleteTime string `json:"completeTime,omitempty"` - - // CreateTime: Time the operation was created. - CreateTime string `json:"createTime,omitempty"` - - // GitlabConfig: The resource name of the GitLabConfig to be created. - // Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`. - GitlabConfig string `json:"gitlabConfig,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompleteTime") 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. "CompleteTime") 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 *UpdateGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod UpdateGitLabConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // UpdateWorkerPoolOperationMetadata: Metadata for the // `UpdateWorkerPool` operation. type UpdateWorkerPoolOperationMetadata struct { diff --git a/cloudbuild/v1alpha1/cloudbuild-api.json b/cloudbuild/v1alpha1/cloudbuild-api.json index d7e6b4b63e7..b2127ef6bf9 100644 --- a/cloudbuild/v1alpha1/cloudbuild-api.json +++ b/cloudbuild/v1alpha1/cloudbuild-api.json @@ -306,7 +306,7 @@ } } }, - "revision": "20220322", + "revision": "20220512", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -1043,27 +1043,6 @@ }, "type": "object" }, - "CreateGitLabConfigOperationMetadata": { - "description": "Metadata for `CreateGitLabConfig` operation.", - "id": "CreateGitLabConfigOperationMetadata", - "properties": { - "completeTime": { - "description": "Time the operation was completed.", - "format": "google-datetime", - "type": "string" - }, - "createTime": { - "description": "Time the operation was created.", - "format": "google-datetime", - "type": "string" - }, - "gitlabConfig": { - "description": "The resource name of the GitLabConfig to be created. Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`.", - "type": "string" - } - }, - "type": "object" - }, "CreateWorkerPoolOperationMetadata": { "description": "Metadata for the `CreateWorkerPool` operation.", "id": "CreateWorkerPoolOperationMetadata", @@ -1127,27 +1106,6 @@ }, "type": "object" }, - "DeleteGitLabConfigOperationMetadata": { - "description": "Metadata for `DeleteGitLabConfig` operation.", - "id": "DeleteGitLabConfigOperationMetadata", - "properties": { - "completeTime": { - "description": "Time the operation was completed.", - "format": "google-datetime", - "type": "string" - }, - "createTime": { - "description": "Time the operation was created.", - "format": "google-datetime", - "type": "string" - }, - "gitlabConfig": { - "description": "The resource name of the GitLabConfig to be created. Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`.", - "type": "string" - } - }, - "type": "object" - }, "DeleteWorkerPoolOperationMetadata": { "description": "Metadata for the `DeleteWorkerPool` operation.", "id": "DeleteWorkerPoolOperationMetadata", @@ -1979,27 +1937,6 @@ }, "type": "object" }, - "UpdateGitLabConfigOperationMetadata": { - "description": "Metadata for `UpdateGitLabConfig` operation.", - "id": "UpdateGitLabConfigOperationMetadata", - "properties": { - "completeTime": { - "description": "Time the operation was completed.", - "format": "google-datetime", - "type": "string" - }, - "createTime": { - "description": "Time the operation was created.", - "format": "google-datetime", - "type": "string" - }, - "gitlabConfig": { - "description": "The resource name of the GitLabConfig to be created. Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`.", - "type": "string" - } - }, - "type": "object" - }, "UpdateWorkerPoolOperationMetadata": { "description": "Metadata for the `UpdateWorkerPool` operation.", "id": "UpdateWorkerPoolOperationMetadata", diff --git a/cloudbuild/v1alpha1/cloudbuild-gen.go b/cloudbuild/v1alpha1/cloudbuild-gen.go index 85a6e770d65..3fb98fcc72a 100644 --- a/cloudbuild/v1alpha1/cloudbuild-gen.go +++ b/cloudbuild/v1alpha1/cloudbuild-gen.go @@ -1161,42 +1161,6 @@ func (s *CreateGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CreateGitLabConfigOperationMetadata: Metadata for -// `CreateGitLabConfig` operation. -type CreateGitLabConfigOperationMetadata struct { - // CompleteTime: Time the operation was completed. - CompleteTime string `json:"completeTime,omitempty"` - - // CreateTime: Time the operation was created. - CreateTime string `json:"createTime,omitempty"` - - // GitlabConfig: The resource name of the GitLabConfig to be created. - // Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`. - GitlabConfig string `json:"gitlabConfig,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompleteTime") 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. "CompleteTime") 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 *CreateGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod CreateGitLabConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // CreateWorkerPoolOperationMetadata: Metadata for the // `CreateWorkerPool` operation. type CreateWorkerPoolOperationMetadata struct { @@ -1310,42 +1274,6 @@ func (s *DeleteGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DeleteGitLabConfigOperationMetadata: Metadata for -// `DeleteGitLabConfig` operation. -type DeleteGitLabConfigOperationMetadata struct { - // CompleteTime: Time the operation was completed. - CompleteTime string `json:"completeTime,omitempty"` - - // CreateTime: Time the operation was created. - CreateTime string `json:"createTime,omitempty"` - - // GitlabConfig: The resource name of the GitLabConfig to be created. - // Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`. - GitlabConfig string `json:"gitlabConfig,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompleteTime") 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. "CompleteTime") 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 *DeleteGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod DeleteGitLabConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // DeleteWorkerPoolOperationMetadata: Metadata for the // `DeleteWorkerPool` operation. type DeleteWorkerPoolOperationMetadata struct { @@ -2765,42 +2693,6 @@ func (s *UpdateGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// UpdateGitLabConfigOperationMetadata: Metadata for -// `UpdateGitLabConfig` operation. -type UpdateGitLabConfigOperationMetadata struct { - // CompleteTime: Time the operation was completed. - CompleteTime string `json:"completeTime,omitempty"` - - // CreateTime: Time the operation was created. - CreateTime string `json:"createTime,omitempty"` - - // GitlabConfig: The resource name of the GitLabConfig to be created. - // Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`. - GitlabConfig string `json:"gitlabConfig,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompleteTime") 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. "CompleteTime") 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 *UpdateGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod UpdateGitLabConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // UpdateWorkerPoolOperationMetadata: Metadata for the // `UpdateWorkerPool` operation. type UpdateWorkerPoolOperationMetadata struct { diff --git a/cloudbuild/v1alpha2/cloudbuild-api.json b/cloudbuild/v1alpha2/cloudbuild-api.json index cb9505495df..af0308465b8 100644 --- a/cloudbuild/v1alpha2/cloudbuild-api.json +++ b/cloudbuild/v1alpha2/cloudbuild-api.json @@ -317,7 +317,7 @@ } } }, - "revision": "20220322", + "revision": "20220512", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -1054,27 +1054,6 @@ }, "type": "object" }, - "CreateGitLabConfigOperationMetadata": { - "description": "Metadata for `CreateGitLabConfig` operation.", - "id": "CreateGitLabConfigOperationMetadata", - "properties": { - "completeTime": { - "description": "Time the operation was completed.", - "format": "google-datetime", - "type": "string" - }, - "createTime": { - "description": "Time the operation was created.", - "format": "google-datetime", - "type": "string" - }, - "gitlabConfig": { - "description": "The resource name of the GitLabConfig to be created. Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`.", - "type": "string" - } - }, - "type": "object" - }, "CreateWorkerPoolOperationMetadata": { "description": "Metadata for the `CreateWorkerPool` operation.", "id": "CreateWorkerPoolOperationMetadata", @@ -1138,27 +1117,6 @@ }, "type": "object" }, - "DeleteGitLabConfigOperationMetadata": { - "description": "Metadata for `DeleteGitLabConfig` operation.", - "id": "DeleteGitLabConfigOperationMetadata", - "properties": { - "completeTime": { - "description": "Time the operation was completed.", - "format": "google-datetime", - "type": "string" - }, - "createTime": { - "description": "Time the operation was created.", - "format": "google-datetime", - "type": "string" - }, - "gitlabConfig": { - "description": "The resource name of the GitLabConfig to be created. Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`.", - "type": "string" - } - }, - "type": "object" - }, "DeleteWorkerPoolOperationMetadata": { "description": "Metadata for the `DeleteWorkerPool` operation.", "id": "DeleteWorkerPoolOperationMetadata", @@ -1982,27 +1940,6 @@ }, "type": "object" }, - "UpdateGitLabConfigOperationMetadata": { - "description": "Metadata for `UpdateGitLabConfig` operation.", - "id": "UpdateGitLabConfigOperationMetadata", - "properties": { - "completeTime": { - "description": "Time the operation was completed.", - "format": "google-datetime", - "type": "string" - }, - "createTime": { - "description": "Time the operation was created.", - "format": "google-datetime", - "type": "string" - }, - "gitlabConfig": { - "description": "The resource name of the GitLabConfig to be created. Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`.", - "type": "string" - } - }, - "type": "object" - }, "UpdateWorkerPoolOperationMetadata": { "description": "Metadata for the `UpdateWorkerPool` operation.", "id": "UpdateWorkerPoolOperationMetadata", diff --git a/cloudbuild/v1alpha2/cloudbuild-gen.go b/cloudbuild/v1alpha2/cloudbuild-gen.go index b831aaaad73..6431c877b6c 100644 --- a/cloudbuild/v1alpha2/cloudbuild-gen.go +++ b/cloudbuild/v1alpha2/cloudbuild-gen.go @@ -1161,42 +1161,6 @@ func (s *CreateGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CreateGitLabConfigOperationMetadata: Metadata for -// `CreateGitLabConfig` operation. -type CreateGitLabConfigOperationMetadata struct { - // CompleteTime: Time the operation was completed. - CompleteTime string `json:"completeTime,omitempty"` - - // CreateTime: Time the operation was created. - CreateTime string `json:"createTime,omitempty"` - - // GitlabConfig: The resource name of the GitLabConfig to be created. - // Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`. - GitlabConfig string `json:"gitlabConfig,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompleteTime") 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. "CompleteTime") 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 *CreateGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod CreateGitLabConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // CreateWorkerPoolOperationMetadata: Metadata for the // `CreateWorkerPool` operation. type CreateWorkerPoolOperationMetadata struct { @@ -1310,42 +1274,6 @@ func (s *DeleteGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DeleteGitLabConfigOperationMetadata: Metadata for -// `DeleteGitLabConfig` operation. -type DeleteGitLabConfigOperationMetadata struct { - // CompleteTime: Time the operation was completed. - CompleteTime string `json:"completeTime,omitempty"` - - // CreateTime: Time the operation was created. - CreateTime string `json:"createTime,omitempty"` - - // GitlabConfig: The resource name of the GitLabConfig to be created. - // Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`. - GitlabConfig string `json:"gitlabConfig,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompleteTime") 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. "CompleteTime") 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 *DeleteGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod DeleteGitLabConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // DeleteWorkerPoolOperationMetadata: Metadata for the // `DeleteWorkerPool` operation. type DeleteWorkerPoolOperationMetadata struct { @@ -2758,42 +2686,6 @@ func (s *UpdateGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// UpdateGitLabConfigOperationMetadata: Metadata for -// `UpdateGitLabConfig` operation. -type UpdateGitLabConfigOperationMetadata struct { - // CompleteTime: Time the operation was completed. - CompleteTime string `json:"completeTime,omitempty"` - - // CreateTime: Time the operation was created. - CreateTime string `json:"createTime,omitempty"` - - // GitlabConfig: The resource name of the GitLabConfig to be created. - // Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`. - GitlabConfig string `json:"gitlabConfig,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompleteTime") 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. "CompleteTime") 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 *UpdateGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod UpdateGitLabConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // UpdateWorkerPoolOperationMetadata: Metadata for the // `UpdateWorkerPool` operation. type UpdateWorkerPoolOperationMetadata struct { diff --git a/cloudbuild/v1beta1/cloudbuild-api.json b/cloudbuild/v1beta1/cloudbuild-api.json index 08001cea753..7da612c2071 100644 --- a/cloudbuild/v1beta1/cloudbuild-api.json +++ b/cloudbuild/v1beta1/cloudbuild-api.json @@ -322,7 +322,7 @@ } } }, - "revision": "20220322", + "revision": "20220512", "rootUrl": "https://cloudbuild.googleapis.com/", "schemas": { "ApprovalConfig": { @@ -1059,27 +1059,6 @@ }, "type": "object" }, - "CreateGitLabConfigOperationMetadata": { - "description": "Metadata for `CreateGitLabConfig` operation.", - "id": "CreateGitLabConfigOperationMetadata", - "properties": { - "completeTime": { - "description": "Time the operation was completed.", - "format": "google-datetime", - "type": "string" - }, - "createTime": { - "description": "Time the operation was created.", - "format": "google-datetime", - "type": "string" - }, - "gitlabConfig": { - "description": "The resource name of the GitLabConfig to be created. Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`.", - "type": "string" - } - }, - "type": "object" - }, "CreateWorkerPoolOperationMetadata": { "description": "Metadata for the `CreateWorkerPool` operation.", "id": "CreateWorkerPoolOperationMetadata", @@ -1143,27 +1122,6 @@ }, "type": "object" }, - "DeleteGitLabConfigOperationMetadata": { - "description": "Metadata for `DeleteGitLabConfig` operation.", - "id": "DeleteGitLabConfigOperationMetadata", - "properties": { - "completeTime": { - "description": "Time the operation was completed.", - "format": "google-datetime", - "type": "string" - }, - "createTime": { - "description": "Time the operation was created.", - "format": "google-datetime", - "type": "string" - }, - "gitlabConfig": { - "description": "The resource name of the GitLabConfig to be created. Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`.", - "type": "string" - } - }, - "type": "object" - }, "DeleteWorkerPoolOperationMetadata": { "description": "Metadata for the `DeleteWorkerPool` operation.", "id": "DeleteWorkerPoolOperationMetadata", @@ -1987,27 +1945,6 @@ }, "type": "object" }, - "UpdateGitLabConfigOperationMetadata": { - "description": "Metadata for `UpdateGitLabConfig` operation.", - "id": "UpdateGitLabConfigOperationMetadata", - "properties": { - "completeTime": { - "description": "Time the operation was completed.", - "format": "google-datetime", - "type": "string" - }, - "createTime": { - "description": "Time the operation was created.", - "format": "google-datetime", - "type": "string" - }, - "gitlabConfig": { - "description": "The resource name of the GitLabConfig to be created. Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`.", - "type": "string" - } - }, - "type": "object" - }, "UpdateWorkerPoolOperationMetadata": { "description": "Metadata for the `UpdateWorkerPool` operation.", "id": "UpdateWorkerPoolOperationMetadata", diff --git a/cloudbuild/v1beta1/cloudbuild-gen.go b/cloudbuild/v1beta1/cloudbuild-gen.go index 8c7a5adf2fe..5911665af9e 100644 --- a/cloudbuild/v1beta1/cloudbuild-gen.go +++ b/cloudbuild/v1beta1/cloudbuild-gen.go @@ -1161,42 +1161,6 @@ func (s *CreateGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// CreateGitLabConfigOperationMetadata: Metadata for -// `CreateGitLabConfig` operation. -type CreateGitLabConfigOperationMetadata struct { - // CompleteTime: Time the operation was completed. - CompleteTime string `json:"completeTime,omitempty"` - - // CreateTime: Time the operation was created. - CreateTime string `json:"createTime,omitempty"` - - // GitlabConfig: The resource name of the GitLabConfig to be created. - // Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`. - GitlabConfig string `json:"gitlabConfig,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompleteTime") 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. "CompleteTime") 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 *CreateGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod CreateGitLabConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // CreateWorkerPoolOperationMetadata: Metadata for the // `CreateWorkerPool` operation. type CreateWorkerPoolOperationMetadata struct { @@ -1310,42 +1274,6 @@ func (s *DeleteGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// DeleteGitLabConfigOperationMetadata: Metadata for -// `DeleteGitLabConfig` operation. -type DeleteGitLabConfigOperationMetadata struct { - // CompleteTime: Time the operation was completed. - CompleteTime string `json:"completeTime,omitempty"` - - // CreateTime: Time the operation was created. - CreateTime string `json:"createTime,omitempty"` - - // GitlabConfig: The resource name of the GitLabConfig to be created. - // Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`. - GitlabConfig string `json:"gitlabConfig,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompleteTime") 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. "CompleteTime") 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 *DeleteGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod DeleteGitLabConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // DeleteWorkerPoolOperationMetadata: Metadata for the // `DeleteWorkerPool` operation. type DeleteWorkerPoolOperationMetadata struct { @@ -2761,42 +2689,6 @@ func (s *UpdateGitHubEnterpriseConfigOperationMetadata) MarshalJSON() ([]byte, e return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// UpdateGitLabConfigOperationMetadata: Metadata for -// `UpdateGitLabConfig` operation. -type UpdateGitLabConfigOperationMetadata struct { - // CompleteTime: Time the operation was completed. - CompleteTime string `json:"completeTime,omitempty"` - - // CreateTime: Time the operation was created. - CreateTime string `json:"createTime,omitempty"` - - // GitlabConfig: The resource name of the GitLabConfig to be created. - // Format: `projects/{project}/locations/{location}/gitlabConfigs/{id}`. - GitlabConfig string `json:"gitlabConfig,omitempty"` - - // ForceSendFields is a list of field names (e.g. "CompleteTime") 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. "CompleteTime") 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 *UpdateGitLabConfigOperationMetadata) MarshalJSON() ([]byte, error) { - type NoMethod UpdateGitLabConfigOperationMetadata - raw := NoMethod(*s) - return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) -} - // UpdateWorkerPoolOperationMetadata: Metadata for the // `UpdateWorkerPool` operation. type UpdateWorkerPoolOperationMetadata struct { diff --git a/cloudfunctions/v2alpha/cloudfunctions-api.json b/cloudfunctions/v2alpha/cloudfunctions-api.json index b690e7146d0..c7565aaf597 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-api.json +++ b/cloudfunctions/v2alpha/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20220509", + "revision": "20220511", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -1546,6 +1546,47 @@ }, "type": "object" }, + "SecretVersion": { + "description": "Configuration for a single version.", + "id": "SecretVersion", + "properties": { + "path": { + "description": "Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as `secret_foo` would mount the secret value file at `/etc/secrets/secret_foo`.", + "type": "string" + }, + "version": { + "description": "Version of the secret (version number or the string 'latest'). It is preferable to use `latest` version with secret volumes as secret value changes are reflected immediately.", + "type": "string" + } + }, + "type": "object" + }, + "SecretVolume": { + "description": "Configuration for a secret volume. It has the information necessary to fetch the secret value from secret manager and make it available as files mounted at the requested paths within the application container.", + "id": "SecretVolume", + "properties": { + "mountPath": { + "description": "The path within the container to mount the secret volume. For example, setting the mount_path as `/etc/secrets` would mount the secret value files under the `/etc/secrets` directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets", + "type": "string" + }, + "projectId": { + "description": "Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.", + "type": "string" + }, + "secret": { + "description": "Name of the secret in secret manager (not the full resource name).", + "type": "string" + }, + "versions": { + "description": "List of secret versions to mount for this secret. If empty, the `latest` version of the secret will be made available in a file named after the secret under the mount point.", + "items": { + "$ref": "SecretVersion" + }, + "type": "array" + } + }, + "type": "object" + }, "ServiceConfig": { "description": "Describes the Service being deployed. Currently Supported : Cloud Run (fully managed).", "id": "ServiceConfig", @@ -1603,6 +1644,13 @@ }, "type": "array" }, + "secretVolumes": { + "description": "Secret volumes configuration.", + "items": { + "$ref": "SecretVolume" + }, + "type": "array" + }, "service": { "description": "Output only. Name of the service associated with a Function. The format of this field is `projects/{project}/locations/{region}/services/{service}`", "readOnly": true, diff --git a/cloudfunctions/v2alpha/cloudfunctions-gen.go b/cloudfunctions/v2alpha/cloudfunctions-gen.go index 53951ca9dc7..615b6e8f922 100644 --- a/cloudfunctions/v2alpha/cloudfunctions-gen.go +++ b/cloudfunctions/v2alpha/cloudfunctions-gen.go @@ -1683,6 +1683,93 @@ func (s *SecretEnvVar) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SecretVersion: Configuration for a single version. +type SecretVersion struct { + // Path: Relative path of the file under the mount path where the secret + // value for this version will be fetched and made available. For + // example, setting the mount_path as '/etc/secrets' and path as + // `secret_foo` would mount the secret value file at + // `/etc/secrets/secret_foo`. + Path string `json:"path,omitempty"` + + // Version: Version of the secret (version number or the string + // 'latest'). It is preferable to use `latest` version with secret + // volumes as secret value changes are reflected immediately. + Version string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Path") 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. "Path") 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 *SecretVersion) MarshalJSON() ([]byte, error) { + type NoMethod SecretVersion + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SecretVolume: Configuration for a secret volume. It has the +// information necessary to fetch the secret value from secret manager +// and make it available as files mounted at the requested paths within +// the application container. +type SecretVolume struct { + // MountPath: The path within the container to mount the secret volume. + // For example, setting the mount_path as `/etc/secrets` would mount the + // secret value files under the `/etc/secrets` directory. This directory + // will also be completely shadowed and unavailable to mount any other + // secrets. Recommended mount path: /etc/secrets + MountPath string `json:"mountPath,omitempty"` + + // ProjectId: Project identifier (preferably project number but can also + // be the project ID) of the project that contains the secret. If not + // set, it is assumed that the secret is in the same project as the + // function. + ProjectId string `json:"projectId,omitempty"` + + // Secret: Name of the secret in secret manager (not the full resource + // name). + Secret string `json:"secret,omitempty"` + + // Versions: List of secret versions to mount for this secret. If empty, + // the `latest` version of the secret will be made available in a file + // named after the secret under the mount point. + Versions []*SecretVersion `json:"versions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MountPath") 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. "MountPath") 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 *SecretVolume) MarshalJSON() ([]byte, error) { + type NoMethod SecretVolume + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ServiceConfig: Describes the Service being deployed. Currently // Supported : Cloud Run (fully managed). type ServiceConfig struct { @@ -1744,6 +1831,9 @@ type ServiceConfig struct { // configuration. SecretEnvironmentVariables []*SecretEnvVar `json:"secretEnvironmentVariables,omitempty"` + // SecretVolumes: Secret volumes configuration. + SecretVolumes []*SecretVolume `json:"secretVolumes,omitempty"` + // Service: Output only. Name of the service associated with a Function. // The format of this field is // `projects/{project}/locations/{region}/services/{service}` diff --git a/cloudfunctions/v2beta/cloudfunctions-api.json b/cloudfunctions/v2beta/cloudfunctions-api.json index 5ccc1b798d0..c9dcd466918 100644 --- a/cloudfunctions/v2beta/cloudfunctions-api.json +++ b/cloudfunctions/v2beta/cloudfunctions-api.json @@ -571,7 +571,7 @@ } } }, - "revision": "20220509", + "revision": "20220511", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -1546,6 +1546,47 @@ }, "type": "object" }, + "SecretVersion": { + "description": "Configuration for a single version.", + "id": "SecretVersion", + "properties": { + "path": { + "description": "Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as '/etc/secrets' and path as `secret_foo` would mount the secret value file at `/etc/secrets/secret_foo`.", + "type": "string" + }, + "version": { + "description": "Version of the secret (version number or the string 'latest'). It is preferable to use `latest` version with secret volumes as secret value changes are reflected immediately.", + "type": "string" + } + }, + "type": "object" + }, + "SecretVolume": { + "description": "Configuration for a secret volume. It has the information necessary to fetch the secret value from secret manager and make it available as files mounted at the requested paths within the application container.", + "id": "SecretVolume", + "properties": { + "mountPath": { + "description": "The path within the container to mount the secret volume. For example, setting the mount_path as `/etc/secrets` would mount the secret value files under the `/etc/secrets` directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: /etc/secrets", + "type": "string" + }, + "projectId": { + "description": "Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.", + "type": "string" + }, + "secret": { + "description": "Name of the secret in secret manager (not the full resource name).", + "type": "string" + }, + "versions": { + "description": "List of secret versions to mount for this secret. If empty, the `latest` version of the secret will be made available in a file named after the secret under the mount point.", + "items": { + "$ref": "SecretVersion" + }, + "type": "array" + } + }, + "type": "object" + }, "ServiceConfig": { "description": "Describes the Service being deployed. Currently Supported : Cloud Run (fully managed).", "id": "ServiceConfig", @@ -1603,6 +1644,13 @@ }, "type": "array" }, + "secretVolumes": { + "description": "Secret volumes configuration.", + "items": { + "$ref": "SecretVolume" + }, + "type": "array" + }, "service": { "description": "Output only. Name of the service associated with a Function. The format of this field is `projects/{project}/locations/{region}/services/{service}`", "readOnly": true, diff --git a/cloudfunctions/v2beta/cloudfunctions-gen.go b/cloudfunctions/v2beta/cloudfunctions-gen.go index c17d0ce75a6..b41503ff8ba 100644 --- a/cloudfunctions/v2beta/cloudfunctions-gen.go +++ b/cloudfunctions/v2beta/cloudfunctions-gen.go @@ -1683,6 +1683,93 @@ func (s *SecretEnvVar) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// SecretVersion: Configuration for a single version. +type SecretVersion struct { + // Path: Relative path of the file under the mount path where the secret + // value for this version will be fetched and made available. For + // example, setting the mount_path as '/etc/secrets' and path as + // `secret_foo` would mount the secret value file at + // `/etc/secrets/secret_foo`. + Path string `json:"path,omitempty"` + + // Version: Version of the secret (version number or the string + // 'latest'). It is preferable to use `latest` version with secret + // volumes as secret value changes are reflected immediately. + Version string `json:"version,omitempty"` + + // ForceSendFields is a list of field names (e.g. "Path") 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. "Path") 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 *SecretVersion) MarshalJSON() ([]byte, error) { + type NoMethod SecretVersion + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +// SecretVolume: Configuration for a secret volume. It has the +// information necessary to fetch the secret value from secret manager +// and make it available as files mounted at the requested paths within +// the application container. +type SecretVolume struct { + // MountPath: The path within the container to mount the secret volume. + // For example, setting the mount_path as `/etc/secrets` would mount the + // secret value files under the `/etc/secrets` directory. This directory + // will also be completely shadowed and unavailable to mount any other + // secrets. Recommended mount path: /etc/secrets + MountPath string `json:"mountPath,omitempty"` + + // ProjectId: Project identifier (preferably project number but can also + // be the project ID) of the project that contains the secret. If not + // set, it is assumed that the secret is in the same project as the + // function. + ProjectId string `json:"projectId,omitempty"` + + // Secret: Name of the secret in secret manager (not the full resource + // name). + Secret string `json:"secret,omitempty"` + + // Versions: List of secret versions to mount for this secret. If empty, + // the `latest` version of the secret will be made available in a file + // named after the secret under the mount point. + Versions []*SecretVersion `json:"versions,omitempty"` + + // ForceSendFields is a list of field names (e.g. "MountPath") 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. "MountPath") 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 *SecretVolume) MarshalJSON() ([]byte, error) { + type NoMethod SecretVolume + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // ServiceConfig: Describes the Service being deployed. Currently // Supported : Cloud Run (fully managed). type ServiceConfig struct { @@ -1744,6 +1831,9 @@ type ServiceConfig struct { // configuration. SecretEnvironmentVariables []*SecretEnvVar `json:"secretEnvironmentVariables,omitempty"` + // SecretVolumes: Secret volumes configuration. + SecretVolumes []*SecretVolume `json:"secretVolumes,omitempty"` + // Service: Output only. Name of the service associated with a Function. // The format of this field is // `projects/{project}/locations/{region}/services/{service}` diff --git a/cloudkms/v1/cloudkms-api.json b/cloudkms/v1/cloudkms-api.json index a1de6fbad09..87bbbd39e9a 100644 --- a/cloudkms/v1/cloudkms-api.json +++ b/cloudkms/v1/cloudkms-api.json @@ -1582,7 +1582,7 @@ } } }, - "revision": "20220506", + "revision": "20220513", "rootUrl": "https://cloudkms.googleapis.com/", "schemas": { "AsymmetricDecryptRequest": { @@ -2300,7 +2300,7 @@ "type": "string" }, "etag": { - "description": "This checksum is computed by the server based on the value of other fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding.", + "description": "Optional. This checksum is computed by the server based on the value of other fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding.", "type": "string" }, "name": { diff --git a/cloudkms/v1/cloudkms-gen.go b/cloudkms/v1/cloudkms-gen.go index 2a3f8083a87..2b478443380 100644 --- a/cloudkms/v1/cloudkms-gen.go +++ b/cloudkms/v1/cloudkms-gen.go @@ -1340,9 +1340,9 @@ type EkmConnection struct { // created. CreateTime string `json:"createTime,omitempty"` - // Etag: This checksum is computed by the server based on the value of - // other fields, and may be sent on update requests to ensure the client - // has an up-to-date value before proceeding. + // Etag: Optional. This checksum is computed by the server based on the + // value of other fields, and may be sent on update requests to ensure + // the client has an up-to-date value before proceeding. Etag string `json:"etag,omitempty"` // Name: Output only. The resource name for the EkmConnection in the diff --git a/cloudtrace/v2/cloudtrace-api.json b/cloudtrace/v2/cloudtrace-api.json index feac8751447..b3cab4eb165 100644 --- a/cloudtrace/v2/cloudtrace-api.json +++ b/cloudtrace/v2/cloudtrace-api.json @@ -181,7 +181,7 @@ } } }, - "revision": "20220330", + "revision": "20220512", "rootUrl": "https://cloudtrace.googleapis.com/", "schemas": { "Annotation": { @@ -376,7 +376,7 @@ }, "displayName": { "$ref": "TruncatableString", - "description": "Required. A description of the span's operation (up to 128 bytes). Cloud Trace displays the description in the Cloud Console. For example, the display name can be a qualified method name or a file name and a line number where the operation is called. A best practice is to use the same display name within an application and at the same call point. This makes it easier to correlate spans in different traces." + "description": "Required. A description of the span's operation (up to 128 bytes). Cloud Trace displays the description in the Cloud console. For example, the display name can be a qualified method name or a file name and a line number where the operation is called. A best practice is to use the same display name within an application and at the same call point. This makes it easier to correlate spans in different traces." }, "endTime": { "description": "Required. The end time of the span. On the client side, this is the time kept by the local machine where the span execution ends. On the server side, this is the time when the server application handler stops running.", diff --git a/cloudtrace/v2/cloudtrace-gen.go b/cloudtrace/v2/cloudtrace-gen.go index 1d22fb1fe16..f93aedcb152 100644 --- a/cloudtrace/v2/cloudtrace-gen.go +++ b/cloudtrace/v2/cloudtrace-gen.go @@ -510,7 +510,7 @@ type Span struct { // DisplayName: Required. A description of the span's operation (up to // 128 bytes). Cloud Trace displays the description in the Cloud - // Console. For example, the display name can be a qualified method name + // console. For example, the display name can be a qualified method name // or a file name and a line number where the operation is called. A // best practice is to use the same display name within an application // and at the same call point. This makes it easier to correlate spans diff --git a/contactcenterinsights/v1/contactcenterinsights-api.json b/contactcenterinsights/v1/contactcenterinsights-api.json index f92030af5f8..b04307f9f10 100644 --- a/contactcenterinsights/v1/contactcenterinsights-api.json +++ b/contactcenterinsights/v1/contactcenterinsights-api.json @@ -1275,7 +1275,7 @@ } } }, - "revision": "20220319", + "revision": "20220513", "rootUrl": "https://contactcenterinsights.googleapis.com/", "schemas": { "GoogleCloudContactcenterinsightsV1Analysis": { @@ -1433,7 +1433,7 @@ "type": "object" }, "queryRecord": { - "description": "Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record}", + "description": "The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}", "type": "string" }, "source": { @@ -2302,7 +2302,7 @@ "type": "object" }, "queryRecord": { - "description": "Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record}.", + "description": "The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}", "type": "string" }, "question": { @@ -2967,7 +2967,7 @@ "type": "object" }, "queryRecord": { - "description": "Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record}", + "description": "The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}", "type": "string" }, "suggestion": { @@ -2994,7 +2994,7 @@ "type": "object" }, "queryRecord": { - "description": "Name of the query record. Format: projects/{project}/locations/{location}/queryRecords/{query_record}", + "description": "The name of the answer record. Format: projects/{project}/locations/{location}/answerRecords/{answer_record}", "type": "string" }, "reply": { diff --git a/contactcenterinsights/v1/contactcenterinsights-gen.go b/contactcenterinsights/v1/contactcenterinsights-gen.go index 7c3d899dae7..8ef9dfb874a 100644 --- a/contactcenterinsights/v1/contactcenterinsights-gen.go +++ b/contactcenterinsights/v1/contactcenterinsights-gen.go @@ -471,8 +471,8 @@ type GoogleCloudContactcenterinsightsV1ArticleSuggestionData struct { // the document that it originates from. Metadata map[string]string `json:"metadata,omitempty"` - // QueryRecord: Name of the query record. Format: - // projects/{project}/locations/{location}/queryRecords/{query_record} + // QueryRecord: The name of the answer record. Format: + // projects/{project}/locations/{location}/answerRecords/{answer_record} QueryRecord string `json:"queryRecord,omitempty"` // Source: The knowledge document that this answer was extracted from. @@ -1893,8 +1893,8 @@ type GoogleCloudContactcenterinsightsV1FaqAnswerData struct { // document that it originates from. Metadata map[string]string `json:"metadata,omitempty"` - // QueryRecord: Name of the query record. Format: - // projects/{project}/locations/{location}/queryRecords/{query_record}. + // QueryRecord: The name of the answer record. Format: + // projects/{project}/locations/{location}/answerRecords/{answer_record} QueryRecord string `json:"queryRecord,omitempty"` // Question: The corresponding FAQ question. @@ -3068,8 +3068,8 @@ type GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData struct { // suggestion and the document from which it originates. Metadata map[string]string `json:"metadata,omitempty"` - // QueryRecord: Name of the query record. Format: - // projects/{project}/locations/{location}/queryRecords/{query_record} + // QueryRecord: The name of the answer record. Format: + // projects/{project}/locations/{location}/answerRecords/{answer_record} QueryRecord string `json:"queryRecord,omitempty"` // Suggestion: The content of the suggestion. @@ -3125,8 +3125,8 @@ type GoogleCloudContactcenterinsightsV1SmartReplyData struct { // document from which it originates. Metadata map[string]string `json:"metadata,omitempty"` - // QueryRecord: Name of the query record. Format: - // projects/{project}/locations/{location}/queryRecords/{query_record} + // QueryRecord: The name of the answer record. Format: + // projects/{project}/locations/{location}/answerRecords/{answer_record} QueryRecord string `json:"queryRecord,omitempty"` // Reply: The content of the reply. diff --git a/dataflow/v1b3/dataflow-api.json b/dataflow/v1b3/dataflow-api.json index ccbdd8f68ca..8f6f6511567 100644 --- a/dataflow/v1b3/dataflow-api.json +++ b/dataflow/v1b3/dataflow-api.json @@ -2225,7 +2225,7 @@ } } }, - "revision": "20220414", + "revision": "20220513", "rootUrl": "https://dataflow.googleapis.com/", "schemas": { "ApproximateProgress": { @@ -3346,7 +3346,7 @@ "type": "integer" }, "dumpHeapOnOom": { - "description": "If true, save a heap dump before killing a thread or process which is GC thrashing or out of memory. The location of the heap file will either be echoed back to the user, or the user will be given the opportunity to download the heap file.", + "description": "If true, when processing time is spent almost entirely on garbage collection (GC), saves a heap dump before ending the thread or process. If false, ends the thread or process without saving a heap dump. Does not save a heap dump when the Java Virtual Machine (JVM) has an out of memory error during processing. The location of the heap file is either echoed back to the user, or the user is given the opportunity to download the heap file.", "type": "boolean" }, "enableStreamingEngine": { @@ -3408,7 +3408,7 @@ "type": "integer" }, "saveHeapDumpsToGcsPath": { - "description": "Cloud Storage bucket (directory) to upload heap dumps to the given location. Enabling this implies that heap dumps should be generated on OOM (dump_heap_on_oom is set to true).", + "description": "Cloud Storage bucket (directory) to upload heap dumps to. Enabling this field implies that `dump_heap_on_oom` is set to true.", "type": "string" }, "sdkContainerImage": { diff --git a/dataflow/v1b3/dataflow-gen.go b/dataflow/v1b3/dataflow-gen.go index b9163e68877..d3007572321 100644 --- a/dataflow/v1b3/dataflow-gen.go +++ b/dataflow/v1b3/dataflow-gen.go @@ -2108,10 +2108,13 @@ type FlexTemplateRuntimeEnvironment struct { // DiskSizeGb: Worker disk size, in gigabytes. DiskSizeGb int64 `json:"diskSizeGb,omitempty"` - // DumpHeapOnOom: If true, save a heap dump before killing a thread or - // process which is GC thrashing or out of memory. The location of the - // heap file will either be echoed back to the user, or the user will be - // given the opportunity to download the heap file. + // DumpHeapOnOom: If true, when processing time is spent almost entirely + // on garbage collection (GC), saves a heap dump before ending the + // thread or process. If false, ends the thread or process without + // saving a heap dump. Does not save a heap dump when the Java Virtual + // Machine (JVM) has an out of memory error during processing. The + // location of the heap file is either echoed back to the user, or the + // user is given the opportunity to download the heap file. DumpHeapOnOom bool `json:"dumpHeapOnOom,omitempty"` // EnableStreamingEngine: Whether to enable Streaming Engine for the @@ -2161,8 +2164,8 @@ type FlexTemplateRuntimeEnvironment struct { NumWorkers int64 `json:"numWorkers,omitempty"` // SaveHeapDumpsToGcsPath: Cloud Storage bucket (directory) to upload - // heap dumps to the given location. Enabling this implies that heap - // dumps should be generated on OOM (dump_heap_on_oom is set to true). + // heap dumps to. Enabling this field implies that `dump_heap_on_oom` is + // set to true. SaveHeapDumpsToGcsPath string `json:"saveHeapDumpsToGcsPath,omitempty"` // SdkContainerImage: Docker registry location of container image to use diff --git a/displayvideo/v1/displayvideo-api.json b/displayvideo/v1/displayvideo-api.json index d9274c6c440..1c41af15f7c 100644 --- a/displayvideo/v1/displayvideo-api.json +++ b/displayvideo/v1/displayvideo-api.json @@ -7844,7 +7844,7 @@ } } }, - "revision": "20220429", + "revision": "20220518", "rootUrl": "https://displayvideo.googleapis.com/", "schemas": { "ActivateManualTriggerRequest": { @@ -10071,7 +10071,7 @@ "id": "ContactInfoList", "properties": { "contactInfos": { - "description": "A list of ContactInfo objects defining Customer Match audience members. The size of contact_infos mustn't be greater than 500,000.", + "description": "A list of ContactInfo objects defining Customer Match audience members. The size of members after splitting the contact_infos mustn't be greater than 500,000.", "items": { "$ref": "ContactInfo" }, @@ -10584,7 +10584,8 @@ "SDF_VERSION_5_1", "SDF_VERSION_5_2", "SDF_VERSION_5_3", - "SDF_VERSION_5_4" + "SDF_VERSION_5_4", + "SDF_VERSION_5_5" ], "enumDescriptions": [ "SDF version value is not specified or is unknown in this version.", @@ -10596,7 +10597,8 @@ "SDF version 5.1", "SDF version 5.2", "SDF version 5.3", - "SDF version 5.4" + "SDF version 5.4", + "SDF version 5.5" ], "type": "string" } @@ -11086,6 +11088,14 @@ ], "type": "string" }, + "modelReadiness": { + "description": "Output only. The custom bidding model readiness state for each advertiser who have access. This field may only include the state of the queried advertiser if the algorithm [`owner`](/display-video/api/reference/rest/v1/customBiddingAlgorithms#CustomBiddingAlgorithm.FIELDS.oneof_owner) is a partner and is being retrieved using an advertiser [`accessor`](/display-video/api/reference/rest/v1/customBiddingAlgorithms/list#body.QUERY_PARAMETERS.oneof_accessor).", + "items": { + "$ref": "CustomBiddingModelReadinessState" + }, + "readOnly": true, + "type": "array" + }, "name": { "description": "Output only. The resource name of the custom bidding algorithm.", "readOnly": true, @@ -11107,6 +11117,36 @@ }, "type": "object" }, + "CustomBiddingModelReadinessState": { + "description": "The custom bidding algorithm model readiness state for a single shared advertiser.", + "id": "CustomBiddingModelReadinessState", + "properties": { + "advertiserId": { + "description": "The unique ID of the advertiser with access to the custom bidding algorithm.", + "format": "int64", + "type": "string" + }, + "readinessState": { + "description": "The readiness state of custom bidding model.", + "enum": [ + "READINESS_STATE_UNSPECIFIED", + "READINESS_STATE_ACTIVE", + "READINESS_STATE_INSUFFICIENT_DATA", + "READINESS_STATE_TRAINING", + "READINESS_STATE_NO_VALID_SCRIPT" + ], + "enumDescriptions": [ + "State is not specified or is unknown in this version.", + "The model is trained and ready for serving.", + "There is not enough data to train the serving model.", + "The model is training and not ready for serving.", + "The model will not be trained until a valid custom bidding script linked. This state will only be applied to algorithms whose `custom_bidding_algorithm_type` is `SCRIPT_BASED`." + ], + "type": "string" + } + }, + "type": "object" + }, "CustomBiddingScript": { "description": "A single custom bidding script.", "id": "CustomBiddingScript", @@ -12925,7 +12965,7 @@ "type": "object" }, "GenderAssignedTargetingOptionDetails": { - "description": "Details for assigned gender targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARTGETING_TYPE_GENDER`.", + "description": "Details for assigned gender targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_GENDER`.", "id": "GenderAssignedTargetingOptionDetails", "properties": { "gender": { @@ -15911,7 +15951,7 @@ "type": "object" }, "ParentalStatusAssignedTargetingOptionDetails": { - "description": "Details for assigned parental status targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARTGETING_TYPE_PARENTAL_STATUS`.", + "description": "Details for assigned parental status targeting option. This will be populated in the details field of an AssignedTargetingOption when targeting_type is `TARGETING_TYPE_PARENTAL_STATUS`.", "id": "ParentalStatusAssignedTargetingOptionDetails", "properties": { "parentalStatus": { @@ -16752,7 +16792,8 @@ "SDF_VERSION_5_1", "SDF_VERSION_5_2", "SDF_VERSION_5_3", - "SDF_VERSION_5_4" + "SDF_VERSION_5_4", + "SDF_VERSION_5_5" ], "enumDescriptions": [ "SDF version value is not specified or is unknown in this version.", @@ -16764,7 +16805,8 @@ "SDF version 5.1", "SDF version 5.2", "SDF version 5.3", - "SDF version 5.4" + "SDF version 5.4", + "SDF version 5.5" ], "type": "string" } @@ -16808,7 +16850,8 @@ "SDF_VERSION_5_1", "SDF_VERSION_5_2", "SDF_VERSION_5_3", - "SDF_VERSION_5_4" + "SDF_VERSION_5_4", + "SDF_VERSION_5_5" ], "enumDescriptions": [ "SDF version value is not specified or is unknown in this version.", @@ -16820,7 +16863,8 @@ "SDF version 5.1", "SDF version 5.2", "SDF version 5.3", - "SDF version 5.4" + "SDF version 5.4", + "SDF version 5.5" ], "type": "string" } diff --git a/displayvideo/v1/displayvideo-gen.go b/displayvideo/v1/displayvideo-gen.go index d4222750b07..8d7609dae9e 100644 --- a/displayvideo/v1/displayvideo-gen.go +++ b/displayvideo/v1/displayvideo-gen.go @@ -4371,8 +4371,8 @@ func (s *ContactInfo) MarshalJSON() ([]byte, error) { // defining Customer Match audience members. type ContactInfoList struct { // ContactInfos: A list of ContactInfo objects defining Customer Match - // audience members. The size of contact_infos mustn't be greater than - // 500,000. + // audience members. The size of members after splitting the + // contact_infos mustn't be greater than 500,000. ContactInfos []*ContactInfo `json:"contactInfos,omitempty"` // ForceSendFields is a list of field names (e.g. "ContactInfos") to @@ -5195,6 +5195,7 @@ type CreateSdfDownloadTaskRequest struct { // "SDF_VERSION_5_2" - SDF version 5.2 // "SDF_VERSION_5_3" - SDF version 5.3 // "SDF_VERSION_5_4" - SDF version 5.4 + // "SDF_VERSION_5_5" - SDF version 5.5 Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "AdvertiserId") to @@ -5834,6 +5835,16 @@ type CustomBiddingAlgorithm struct { // for deletion. EntityStatus string `json:"entityStatus,omitempty"` + // ModelReadiness: Output only. The custom bidding model readiness state + // for each advertiser who have access. This field may only include the + // state of the queried advertiser if the algorithm `owner` + // (/display-video/api/reference/rest/v1/customBiddingAlgorithms#CustomBi + // ddingAlgorithm.FIELDS.oneof_owner) is a partner and is being + // retrieved using an advertiser `accessor` + // (/display-video/api/reference/rest/v1/customBiddingAlgorithms/list#bod + // y.QUERY_PARAMETERS.oneof_accessor). + ModelReadiness []*CustomBiddingModelReadinessState `json:"modelReadiness,omitempty"` + // Name: Output only. The resource name of the custom bidding algorithm. Name string `json:"name,omitempty"` @@ -5878,6 +5889,53 @@ func (s *CustomBiddingAlgorithm) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// CustomBiddingModelReadinessState: The custom bidding algorithm model +// readiness state for a single shared advertiser. +type CustomBiddingModelReadinessState struct { + // AdvertiserId: The unique ID of the advertiser with access to the + // custom bidding algorithm. + AdvertiserId int64 `json:"advertiserId,omitempty,string"` + + // ReadinessState: The readiness state of custom bidding model. + // + // Possible values: + // "READINESS_STATE_UNSPECIFIED" - State is not specified or is + // unknown in this version. + // "READINESS_STATE_ACTIVE" - The model is trained and ready for + // serving. + // "READINESS_STATE_INSUFFICIENT_DATA" - There is not enough data to + // train the serving model. + // "READINESS_STATE_TRAINING" - The model is training and not ready + // for serving. + // "READINESS_STATE_NO_VALID_SCRIPT" - The model will not be trained + // until a valid custom bidding script linked. This state will only be + // applied to algorithms whose `custom_bidding_algorithm_type` is + // `SCRIPT_BASED`. + ReadinessState string `json:"readinessState,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AdvertiserId") 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. "AdvertiserId") 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 *CustomBiddingModelReadinessState) MarshalJSON() ([]byte, error) { + type NoMethod CustomBiddingModelReadinessState + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // CustomBiddingScript: A single custom bidding script. type CustomBiddingScript struct { // Active: Output only. Whether the script is currently being used for @@ -8107,7 +8165,7 @@ func (s *FrequencyCap) MarshalJSON() ([]byte, error) { // GenderAssignedTargetingOptionDetails: Details for assigned gender // targeting option. This will be populated in the details field of an // AssignedTargetingOption when targeting_type is -// `TARTGETING_TYPE_GENDER`. +// `TARGETING_TYPE_GENDER`. type GenderAssignedTargetingOptionDetails struct { // Gender: The gender of the audience. Output only in v1. // @@ -12601,7 +12659,7 @@ func (s *ParentEntityFilter) MarshalJSON() ([]byte, error) { // ParentalStatusAssignedTargetingOptionDetails: Details for assigned // parental status targeting option. This will be populated in the // details field of an AssignedTargetingOption when targeting_type is -// `TARTGETING_TYPE_PARENTAL_STATUS`. +// `TARGETING_TYPE_PARENTAL_STATUS`. type ParentalStatusAssignedTargetingOptionDetails struct { // ParentalStatus: Output only. The parental status of the audience. // @@ -13930,6 +13988,7 @@ type SdfConfig struct { // "SDF_VERSION_5_2" - SDF version 5.2 // "SDF_VERSION_5_3" - SDF version 5.3 // "SDF_VERSION_5_4" - SDF version 5.4 + // "SDF_VERSION_5_5" - SDF version 5.5 Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "AdminEmail") to @@ -14011,6 +14070,7 @@ type SdfDownloadTaskMetadata struct { // "SDF_VERSION_5_2" - SDF version 5.2 // "SDF_VERSION_5_3" - SDF version 5.3 // "SDF_VERSION_5_4" - SDF version 5.4 + // "SDF_VERSION_5_5" - SDF version 5.5 Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "CreateTime") to diff --git a/domains/v1beta1/domains-api.json b/domains/v1beta1/domains-api.json index 9c7a381e7b5..61a164917ef 100644 --- a/domains/v1beta1/domains-api.json +++ b/domains/v1beta1/domains-api.json @@ -144,7 +144,7 @@ ], "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).", + "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" }, @@ -427,7 +427,7 @@ "type": "integer" }, "resource": { - "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + "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/[^/]+/registrations/[^/]+$", "required": true, @@ -698,7 +698,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + "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/[^/]+/registrations/[^/]+$", "required": true, @@ -726,7 +726,7 @@ ], "parameters": { "resource": { - "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + "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/[^/]+/registrations/[^/]+$", "required": true, @@ -779,11 +779,11 @@ } } }, - "revision": "20220308", + "revision": "20220517", "rootUrl": "https://domains.googleapis.com/", "schemas": { "AuditConfig": { - "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.", + "description": "Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both `allServices` and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit_configs\": [ { \"service\": \"allServices\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\", \"exempted_members\": [ \"user:jose@example.com\" ] }, { \"log_type\": \"DATA_WRITE\" }, { \"log_type\": \"ADMIN_READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\" }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\": [ \"user:aliya@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts `jose@example.com` from DATA_READ logging, and `aliya@example.com` from DATA_WRITE logging.", "id": "AuditConfig", "properties": { "auditLogConfigs": { @@ -850,7 +850,7 @@ "description": "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)." }, "members": { - "description": "Specifies the principals requesting access for a Cloud Platform 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. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@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. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", + "description": "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. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@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. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. ", "items": { "type": "string" }, @@ -1785,7 +1785,7 @@ "properties": { "policy": { "$ref": "Policy", - "description": "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 Cloud Platform services (such as Projects) might reject them." + "description": "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." }, "updateMask": { "description": "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\"`", @@ -1827,7 +1827,7 @@ "id": "TestIamPermissionsRequest", "properties": { "permissions": { - "description": "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).", + "description": "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).", "items": { "type": "string" }, diff --git a/domains/v1beta1/domains-gen.go b/domains/v1beta1/domains-gen.go index 37eff7709c4..49842ffb41b 100644 --- a/domains/v1beta1/domains-gen.go +++ b/domains/v1beta1/domains-gen.go @@ -198,8 +198,8 @@ type ProjectsLocationsRegistrationsService struct { // "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": [ // "user:aliya@example.com" ] } ] } ] } For sampleservice, this policy // enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts -// jose@example.com from DATA_READ logging, and aliya@example.com from -// DATA_WRITE logging. +// `jose@example.com` from DATA_READ logging, and `aliya@example.com` +// from DATA_WRITE logging. type AuditConfig struct { // AuditLogConfigs: The configuration for logging of each type of // permission. @@ -324,8 +324,8 @@ type Binding struct { // (https://cloud.google.com/iam/help/conditions/resource-policies). Condition *Expr `json:"condition,omitempty"` - // Members: Specifies the principals requesting access for a Cloud - // Platform resource. `members` can have the following values: * + // 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 @@ -1925,7 +1925,7 @@ func (s *SearchDomainsResponse) MarshalJSON() ([]byte, error) { 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 Cloud Platform services + // empty policy is a valid policy but certain Google Cloud services // (such as Projects) might reject them. Policy *Policy `json:"policy,omitempty"` @@ -2006,7 +2006,7 @@ func (s *Status) MarshalJSON() ([]byte, error) { // method. type TestIamPermissionsRequest struct { // Permissions: The set of permissions to check for the `resource`. - // Permissions with wildcards (such as '*' or 'storage.*') are not + // 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"` @@ -2369,8 +2369,8 @@ func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall // 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). +// 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 @@ -2499,7 +2499,7 @@ func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*ListLocat // ], // "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).", + // "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" // }, @@ -3807,8 +3807,9 @@ type ProjectsLocationsRegistrationsGetIamPolicyCall struct { // set. // // - resource: REQUIRED: The resource for which the policy is being -// requested. See the operation documentation for the appropriate -// value for this field. +// requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. func (r *ProjectsLocationsRegistrationsService) GetIamPolicy(resource string) *ProjectsLocationsRegistrationsGetIamPolicyCall { c := &ProjectsLocationsRegistrationsGetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -3947,7 +3948,7 @@ func (c *ProjectsLocationsRegistrationsGetIamPolicyCall) Do(opts ...googleapi.Ca // "type": "integer" // }, // "resource": { - // "description": "REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.", + // "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/[^/]+/registrations/[^/]+$", // "required": true, @@ -5300,8 +5301,9 @@ type ProjectsLocationsRegistrationsSetIamPolicyCall struct { // `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. // // - resource: REQUIRED: The resource for which the policy is being -// specified. See the operation documentation for the appropriate -// value for this field. +// specified. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the +// appropriate value for this field. func (r *ProjectsLocationsRegistrationsService) SetIamPolicy(resource string, setiampolicyrequest *SetIamPolicyRequest) *ProjectsLocationsRegistrationsSetIamPolicyCall { c := &ProjectsLocationsRegistrationsSetIamPolicyCall{s: r.s, urlParams_: make(gensupport.URLParams)} c.resource = resource @@ -5409,7 +5411,7 @@ func (c *ProjectsLocationsRegistrationsSetIamPolicyCall) Do(opts ...googleapi.Ca // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.", + // "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/[^/]+/registrations/[^/]+$", // "required": true, @@ -5449,7 +5451,8 @@ type ProjectsLocationsRegistrationsTestIamPermissionsCall struct { // operation may "fail open" without warning. // // - resource: REQUIRED: The resource for which the policy detail is -// being requested. See the operation documentation for the +// being requested. See Resource names +// (https://cloud.google.com/apis/design/resource_names) for the // appropriate value for this field. func (r *ProjectsLocationsRegistrationsService) TestIamPermissions(resource string, testiampermissionsrequest *TestIamPermissionsRequest) *ProjectsLocationsRegistrationsTestIamPermissionsCall { c := &ProjectsLocationsRegistrationsTestIamPermissionsCall{s: r.s, urlParams_: make(gensupport.URLParams)} @@ -5558,7 +5561,7 @@ func (c *ProjectsLocationsRegistrationsTestIamPermissionsCall) Do(opts ...google // ], // "parameters": { // "resource": { - // "description": "REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.", + // "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/[^/]+/registrations/[^/]+$", // "required": true, diff --git a/firebase/v1beta1/firebase-api.json b/firebase/v1beta1/firebase-api.json index 377042754ae..feedf9a9485 100644 --- a/firebase/v1beta1/firebase-api.json +++ b/firebase/v1beta1/firebase-api.json @@ -624,6 +624,34 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/firebase" ] + }, + "remove": { + "description": "Removes the specified AndroidApp from the project.", + "flatPath": "v1beta1/projects/{projectsId}/androidApps/{androidAppsId}:remove", + "httpMethod": "POST", + "id": "firebase.projects.androidApps.remove", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the AndroidApp, in the format: projects/ PROJECT_IDENTIFIER/androidApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/androidApps/APP_ID Refer to the AndroidApp [name](../projects.androidApps#AndroidApp.FIELDS.name) field for details about PROJECT_IDENTIFIER and APP_ID values.", + "location": "path", + "pattern": "^projects/[^/]+/androidApps/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:remove", + "request": { + "$ref": "RemoveAndroidAppRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } }, "resources": { @@ -952,6 +980,34 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/firebase" ] + }, + "remove": { + "description": "Removes the specified IosApp from the project.", + "flatPath": "v1beta1/projects/{projectsId}/iosApps/{iosAppsId}:remove", + "httpMethod": "POST", + "id": "firebase.projects.iosApps.remove", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the IosApp, in the format: projects/ PROJECT_IDENTIFIER/iosApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/iosApps/APP_ID Refer to the IosApp [name](../projects.iosApps#IosApp.FIELDS.name) field for details about PROJECT_IDENTIFIER and APP_ID values.", + "location": "path", + "pattern": "^projects/[^/]+/iosApps/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:remove", + "request": { + "$ref": "RemoveIosAppRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } }, @@ -1115,13 +1171,41 @@ "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/firebase" ] + }, + "remove": { + "description": "Removes the specified WebApp from the project.", + "flatPath": "v1beta1/projects/{projectsId}/webApps/{webAppsId}:remove", + "httpMethod": "POST", + "id": "firebase.projects.webApps.remove", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The resource name of the WebApp, in the format: projects/ PROJECT_IDENTIFIER/webApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/webApps/APP_ID Refer to the WebApp [name](../projects.webApps#WebApp.FIELDS.name) field for details about PROJECT_IDENTIFIER and APP_ID values.", + "location": "path", + "pattern": "^projects/[^/]+/webApps/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta1/{+name}:remove", + "request": { + "$ref": "RemoveWebAppRequest" + }, + "response": { + "$ref": "Operation" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform" + ] } } } } } }, - "revision": "20220319", + "revision": "20220518", "rootUrl": "https://firebase.googleapis.com/", "schemas": { "AddFirebaseRequest": { @@ -1662,6 +1746,60 @@ }, "type": "object" }, + "RemoveAndroidAppRequest": { + "id": "RemoveAndroidAppRequest", + "properties": { + "allowMissing": { + "description": "If set to true, and the App is not found, the request will succeed but no action will be taken on the server.", + "type": "boolean" + }, + "etag": { + "description": "Checksum provided in the AndroidApp entity, which if provided ensures the client has an up-to-date value before proceeding.", + "type": "string" + }, + "validateOnly": { + "description": "If set to true, only validate the request and do not delete the app.", + "type": "boolean" + } + }, + "type": "object" + }, + "RemoveIosAppRequest": { + "id": "RemoveIosAppRequest", + "properties": { + "allowMissing": { + "description": "If set to true, and the App is not found, the request will succeed but no action will be taken on the server.", + "type": "boolean" + }, + "etag": { + "description": "Checksum provided in the IosApp entity, which if provided ensures the client has an up-to-date value before proceeding.", + "type": "string" + }, + "validateOnly": { + "description": "If set to true, only validate the request and do not delete the app.", + "type": "boolean" + } + }, + "type": "object" + }, + "RemoveWebAppRequest": { + "id": "RemoveWebAppRequest", + "properties": { + "allowMissing": { + "description": "If set to true, and the App is not found, the request will succeed but no action will be taken on the server.", + "type": "boolean" + }, + "etag": { + "description": "Checksum provided in the WebApp entity, which if provided ensures the client has an up-to-date value before proceeding.", + "type": "string" + }, + "validateOnly": { + "description": "If set to true, only validate the request and do not delete the app.", + "type": "boolean" + } + }, + "type": "object" + }, "SearchFirebaseAppsResponse": { "id": "SearchFirebaseAppsResponse", "properties": { diff --git a/firebase/v1beta1/firebase-gen.go b/firebase/v1beta1/firebase-gen.go index e1d67a399d1..9524bbcd262 100644 --- a/firebase/v1beta1/firebase-gen.go +++ b/firebase/v1beta1/firebase-gen.go @@ -1402,6 +1402,114 @@ func (s *RemoveAnalyticsRequest) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +type RemoveAndroidAppRequest struct { + // AllowMissing: If set to true, and the App is not found, the request + // will succeed but no action will be taken on the server. + AllowMissing bool `json:"allowMissing,omitempty"` + + // Etag: Checksum provided in the AndroidApp entity, which if provided + // ensures the client has an up-to-date value before proceeding. + Etag string `json:"etag,omitempty"` + + // ValidateOnly: If set to true, only validate the request and do not + // delete the app. + ValidateOnly bool `json:"validateOnly,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllowMissing") 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. "AllowMissing") 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 *RemoveAndroidAppRequest) MarshalJSON() ([]byte, error) { + type NoMethod RemoveAndroidAppRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type RemoveIosAppRequest struct { + // AllowMissing: If set to true, and the App is not found, the request + // will succeed but no action will be taken on the server. + AllowMissing bool `json:"allowMissing,omitempty"` + + // Etag: Checksum provided in the IosApp entity, which if provided + // ensures the client has an up-to-date value before proceeding. + Etag string `json:"etag,omitempty"` + + // ValidateOnly: If set to true, only validate the request and do not + // delete the app. + ValidateOnly bool `json:"validateOnly,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllowMissing") 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. "AllowMissing") 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 *RemoveIosAppRequest) MarshalJSON() ([]byte, error) { + type NoMethod RemoveIosAppRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + +type RemoveWebAppRequest struct { + // AllowMissing: If set to true, and the App is not found, the request + // will succeed but no action will be taken on the server. + AllowMissing bool `json:"allowMissing,omitempty"` + + // Etag: Checksum provided in the WebApp entity, which if provided + // ensures the client has an up-to-date value before proceeding. + Etag string `json:"etag,omitempty"` + + // ValidateOnly: If set to true, only validate the request and do not + // delete the app. + ValidateOnly bool `json:"validateOnly,omitempty"` + + // ForceSendFields is a list of field names (e.g. "AllowMissing") 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. "AllowMissing") 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 *RemoveWebAppRequest) MarshalJSON() ([]byte, error) { + type NoMethod RemoveWebAppRequest + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + type SearchFirebaseAppsResponse struct { // Apps: One page of results from a call to `SearchFirebaseApps`. Apps []*FirebaseAppInfo `json:"apps,omitempty"` @@ -4542,6 +4650,154 @@ func (c *ProjectsAndroidAppsPatchCall) Do(opts ...googleapi.CallOption) (*Androi } +// method id "firebase.projects.androidApps.remove": + +type ProjectsAndroidAppsRemoveCall struct { + s *Service + nameid string + removeandroidapprequest *RemoveAndroidAppRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Remove: Removes the specified AndroidApp from the project. +// +// - name: The resource name of the AndroidApp, in the format: projects/ +// PROJECT_IDENTIFIER/androidApps/APP_ID Since an APP_ID is a unique +// identifier, the Unique Resource from Sub-Collection access pattern +// may be used here, in the format: projects/-/androidApps/APP_ID +// Refer to the AndroidApp name +// (../projects.androidApps#AndroidApp.FIELDS.name) field for details +// about PROJECT_IDENTIFIER and APP_ID values. +func (r *ProjectsAndroidAppsService) Remove(nameid string, removeandroidapprequest *RemoveAndroidAppRequest) *ProjectsAndroidAppsRemoveCall { + c := &ProjectsAndroidAppsRemoveCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.nameid = nameid + c.removeandroidapprequest = removeandroidapprequest + 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 *ProjectsAndroidAppsRemoveCall) Fields(s ...googleapi.Field) *ProjectsAndroidAppsRemoveCall { + 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 *ProjectsAndroidAppsRemoveCall) Context(ctx context.Context) *ProjectsAndroidAppsRemoveCall { + 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 *ProjectsAndroidAppsRemoveCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsAndroidAppsRemoveCall) 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.removeandroidapprequest) + 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, "v1beta1/{+name}:remove") + 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{ + "name": c.nameid, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebase.projects.androidApps.remove" 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 *ProjectsAndroidAppsRemoveCall) 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, &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, 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": "Removes the specified AndroidApp from the project.", + // "flatPath": "v1beta1/projects/{projectsId}/androidApps/{androidAppsId}:remove", + // "httpMethod": "POST", + // "id": "firebase.projects.androidApps.remove", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the AndroidApp, in the format: projects/ PROJECT_IDENTIFIER/androidApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/androidApps/APP_ID Refer to the AndroidApp [name](../projects.androidApps#AndroidApp.FIELDS.name) field for details about PROJECT_IDENTIFIER and APP_ID values.", + // "location": "path", + // "pattern": "^projects/[^/]+/androidApps/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:remove", + // "request": { + // "$ref": "RemoveAndroidAppRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "firebase.projects.androidApps.sha.create": type ProjectsAndroidAppsShaCreateCall struct { @@ -6222,6 +6478,153 @@ func (c *ProjectsIosAppsPatchCall) Do(opts ...googleapi.CallOption) (*IosApp, er } +// method id "firebase.projects.iosApps.remove": + +type ProjectsIosAppsRemoveCall struct { + s *Service + nameid string + removeiosapprequest *RemoveIosAppRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Remove: Removes the specified IosApp from the project. +// +// - name: The resource name of the IosApp, in the format: projects/ +// PROJECT_IDENTIFIER/iosApps/APP_ID Since an APP_ID is a unique +// identifier, the Unique Resource from Sub-Collection access pattern +// may be used here, in the format: projects/-/iosApps/APP_ID Refer to +// the IosApp name (../projects.iosApps#IosApp.FIELDS.name) field for +// details about PROJECT_IDENTIFIER and APP_ID values. +func (r *ProjectsIosAppsService) Remove(nameid string, removeiosapprequest *RemoveIosAppRequest) *ProjectsIosAppsRemoveCall { + c := &ProjectsIosAppsRemoveCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.nameid = nameid + c.removeiosapprequest = removeiosapprequest + 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 *ProjectsIosAppsRemoveCall) Fields(s ...googleapi.Field) *ProjectsIosAppsRemoveCall { + 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 *ProjectsIosAppsRemoveCall) Context(ctx context.Context) *ProjectsIosAppsRemoveCall { + 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 *ProjectsIosAppsRemoveCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsIosAppsRemoveCall) 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.removeiosapprequest) + 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, "v1beta1/{+name}:remove") + 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{ + "name": c.nameid, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebase.projects.iosApps.remove" 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 *ProjectsIosAppsRemoveCall) 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, &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, 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": "Removes the specified IosApp from the project.", + // "flatPath": "v1beta1/projects/{projectsId}/iosApps/{iosAppsId}:remove", + // "httpMethod": "POST", + // "id": "firebase.projects.iosApps.remove", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the IosApp, in the format: projects/ PROJECT_IDENTIFIER/iosApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/iosApps/APP_ID Refer to the IosApp [name](../projects.iosApps#IosApp.FIELDS.name) field for details about PROJECT_IDENTIFIER and APP_ID values.", + // "location": "path", + // "pattern": "^projects/[^/]+/iosApps/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:remove", + // "request": { + // "$ref": "RemoveIosAppRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} + // method id "firebase.projects.webApps.create": type ProjectsWebAppsCreateCall struct { @@ -7055,3 +7458,150 @@ func (c *ProjectsWebAppsPatchCall) Do(opts ...googleapi.CallOption) (*WebApp, er // } } + +// method id "firebase.projects.webApps.remove": + +type ProjectsWebAppsRemoveCall struct { + s *Service + nameid string + removewebapprequest *RemoveWebAppRequest + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Remove: Removes the specified WebApp from the project. +// +// - name: The resource name of the WebApp, in the format: projects/ +// PROJECT_IDENTIFIER/webApps/APP_ID Since an APP_ID is a unique +// identifier, the Unique Resource from Sub-Collection access pattern +// may be used here, in the format: projects/-/webApps/APP_ID Refer to +// the WebApp name (../projects.webApps#WebApp.FIELDS.name) field for +// details about PROJECT_IDENTIFIER and APP_ID values. +func (r *ProjectsWebAppsService) Remove(nameid string, removewebapprequest *RemoveWebAppRequest) *ProjectsWebAppsRemoveCall { + c := &ProjectsWebAppsRemoveCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.nameid = nameid + c.removewebapprequest = removewebapprequest + 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 *ProjectsWebAppsRemoveCall) Fields(s ...googleapi.Field) *ProjectsWebAppsRemoveCall { + 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 *ProjectsWebAppsRemoveCall) Context(ctx context.Context) *ProjectsWebAppsRemoveCall { + 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 *ProjectsWebAppsRemoveCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsWebAppsRemoveCall) 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.removewebapprequest) + 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, "v1beta1/{+name}:remove") + 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{ + "name": c.nameid, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebase.projects.webApps.remove" 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 *ProjectsWebAppsRemoveCall) 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, &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, 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": "Removes the specified WebApp from the project.", + // "flatPath": "v1beta1/projects/{projectsId}/webApps/{webAppsId}:remove", + // "httpMethod": "POST", + // "id": "firebase.projects.webApps.remove", + // "parameterOrder": [ + // "name" + // ], + // "parameters": { + // "name": { + // "description": "Required. The resource name of the WebApp, in the format: projects/ PROJECT_IDENTIFIER/webApps/APP_ID Since an APP_ID is a unique identifier, the Unique Resource from Sub-Collection access pattern may be used here, in the format: projects/-/webApps/APP_ID Refer to the WebApp [name](../projects.webApps#WebApp.FIELDS.name) field for details about PROJECT_IDENTIFIER and APP_ID values.", + // "location": "path", + // "pattern": "^projects/[^/]+/webApps/[^/]+$", + // "required": true, + // "type": "string" + // } + // }, + // "path": "v1beta1/{+name}:remove", + // "request": { + // "$ref": "RemoveWebAppRequest" + // }, + // "response": { + // "$ref": "Operation" + // }, + // "scopes": [ + // "https://www.googleapis.com/auth/cloud-platform" + // ] + // } + +} diff --git a/monitoring/v3/monitoring-api.json b/monitoring/v3/monitoring-api.json index 109c0cb6208..dad5faf0f50 100644 --- a/monitoring/v3/monitoring-api.json +++ b/monitoring/v3/monitoring-api.json @@ -2571,7 +2571,7 @@ } } }, - "revision": "20220507", + "revision": "20220513", "rootUrl": "https://monitoring.googleapis.com/", "schemas": { "Aggregation": { @@ -3061,6 +3061,10 @@ "description": "String, regex or JSON content to match. Maximum 1024 bytes. An empty content string indicates no content matching is to be performed.", "type": "string" }, + "jsonPathMatcher": { + "$ref": "JsonPathMatcher", + "description": "Matcher information for MATCHES_JSON_PATH and NOT_MATCHES_JSON_PATH" + }, "matcher": { "description": "The type of content matcher that will be applied to the server output, compared to the content string when the check is run.", "enum": [ @@ -3068,14 +3072,18 @@ "CONTAINS_STRING", "NOT_CONTAINS_STRING", "MATCHES_REGEX", - "NOT_MATCHES_REGEX" + "NOT_MATCHES_REGEX", + "MATCHES_JSON_PATH", + "NOT_MATCHES_JSON_PATH" ], "enumDescriptions": [ "No content matcher type specified (maintained for backward compatibility, but deprecated for future use). Treated as CONTAINS_STRING.", "Selects substring matching. The match succeeds if the output contains the content string. This is the default value for checks without a matcher option, or where the value of matcher is CONTENT_MATCHER_OPTION_UNSPECIFIED.", "Selects negation of substring matching. The match succeeds if the output does NOT contain the content string.", "Selects regular-expression matching. The match succeeds if the output matches the regular expression specified in the content string. Regex matching is only supported for HTTP/HTTPS checks.", - "Selects negation of regular-expression matching. The match succeeds if the output does NOT match the regular expression specified in the content string. Regex matching is only supported for HTTP/HTTPS checks." + "Selects negation of regular-expression matching. The match succeeds if the output does NOT match the regular expression specified in the content string. Regex matching is only supported for HTTP/HTTPS checks.", + "Selects JSONPath matching. See JsonPathMatcher for details on when the match succeeds. JSONPath matching is only supported for HTTP/HTTPS checks.", + "Selects JSONPath matching. See JsonPathMatcher for details on when the match succeeds. Succeeds when output does NOT match as specified. JSONPath is only supported for HTTP/HTTPS checks." ], "type": "string" } @@ -3734,6 +3742,31 @@ }, "type": "object" }, + "JsonPathMatcher": { + "description": "Information needed to perform a JSONPath content match. Used for ContentMatcherOption::MATCHES_JSON_PATH and ContentMatcherOption::NOT_MATCHES_JSON_PATH.", + "id": "JsonPathMatcher", + "properties": { + "jsonMatcher": { + "description": "The type of JSONPath match that will be applied to the JSON output (ContentMatcher.content)", + "enum": [ + "JSON_PATH_MATCHER_OPTION_UNSPECIFIED", + "EXACT_MATCH", + "REGEX_MATCH" + ], + "enumDescriptions": [ + "No JSONPath matcher type specified (not valid).", + "Selects 'exact string' matching. The match succeeds if the content at the json_path within the output is exactly the same as the content string.", + "Selects regular-expression matching. The match succeeds if the content at the json_path within the output matches the regular expression specified in the content string." + ], + "type": "string" + }, + "jsonPath": { + "description": "JSONPath within the response output pointing to the expected ContentMatcher::content to match against.", + "type": "string" + } + }, + "type": "object" + }, "LabelDescriptor": { "description": "A description of a label.", "id": "LabelDescriptor", diff --git a/monitoring/v3/monitoring-gen.go b/monitoring/v3/monitoring-gen.go index ae1b750aee4..d22bd2ead46 100644 --- a/monitoring/v3/monitoring-gen.go +++ b/monitoring/v3/monitoring-gen.go @@ -1353,6 +1353,10 @@ type ContentMatcher struct { // performed. Content string `json:"content,omitempty"` + // JsonPathMatcher: Matcher information for MATCHES_JSON_PATH and + // NOT_MATCHES_JSON_PATH + JsonPathMatcher *JsonPathMatcher `json:"jsonPathMatcher,omitempty"` + // Matcher: The type of content matcher that will be applied to the // server output, compared to the content string when the check is run. // @@ -1374,6 +1378,13 @@ type ContentMatcher struct { // matching. The match succeeds if the output does NOT match the regular // expression specified in the content string. Regex matching is only // supported for HTTP/HTTPS checks. + // "MATCHES_JSON_PATH" - Selects JSONPath matching. See + // JsonPathMatcher for details on when the match succeeds. JSONPath + // matching is only supported for HTTP/HTTPS checks. + // "NOT_MATCHES_JSON_PATH" - Selects JSONPath matching. See + // JsonPathMatcher for details on when the match succeeds. Succeeds when + // output does NOT match as specified. JSONPath is only supported for + // HTTP/HTTPS checks. Matcher string `json:"matcher,omitempty"` // ForceSendFields is a list of field names (e.g. "Content") to @@ -2613,6 +2624,51 @@ func (s *IstioCanonicalService) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } +// JsonPathMatcher: Information needed to perform a JSONPath content +// match. Used for ContentMatcherOption::MATCHES_JSON_PATH and +// ContentMatcherOption::NOT_MATCHES_JSON_PATH. +type JsonPathMatcher struct { + // JsonMatcher: The type of JSONPath match that will be applied to the + // JSON output (ContentMatcher.content) + // + // Possible values: + // "JSON_PATH_MATCHER_OPTION_UNSPECIFIED" - No JSONPath matcher type + // specified (not valid). + // "EXACT_MATCH" - Selects 'exact string' matching. The match succeeds + // if the content at the json_path within the output is exactly the same + // as the content string. + // "REGEX_MATCH" - Selects regular-expression matching. The match + // succeeds if the content at the json_path within the output matches + // the regular expression specified in the content string. + JsonMatcher string `json:"jsonMatcher,omitempty"` + + // JsonPath: JSONPath within the response output pointing to the + // expected ContentMatcher::content to match against. + JsonPath string `json:"jsonPath,omitempty"` + + // ForceSendFields is a list of field names (e.g. "JsonMatcher") 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. "JsonMatcher") 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 *JsonPathMatcher) MarshalJSON() ([]byte, error) { + type NoMethod JsonPathMatcher + raw := NoMethod(*s) + return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) +} + // LabelDescriptor: A description of a label. type LabelDescriptor struct { // Description: A human-readable description for the label. diff --git a/sqladmin/v1/sqladmin-api.json b/sqladmin/v1/sqladmin-api.json index f03e1029126..991a81c2f50 100644 --- a/sqladmin/v1/sqladmin-api.json +++ b/sqladmin/v1/sqladmin-api.json @@ -1877,7 +1877,7 @@ } } }, - "revision": "20220323", + "revision": "20220513", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2251,6 +2251,7 @@ "MYSQL_8_0_26", "MYSQL_8_0_27", "MYSQL_8_0_28", + "MYSQL_8_0_29", "POSTGRES_13", "POSTGRES_14", "SQLSERVER_2019_STANDARD", @@ -2277,6 +2278,7 @@ "The database major version is MySQL 8.0 and the minor version is 26.", "The database major version is MySQL 8.0 and the minor version is 27.", "The database major version is MySQL 8.0 and the minor version is 28.", + "The database major version is MySQL 8.0 and the minor version is 29.", "The database version is PostgreSQL 13.", "The database version is PostgreSQL 14.", "The database version is SQL Server 2019 Standard.", @@ -2433,6 +2435,7 @@ "MYSQL_8_0_26", "MYSQL_8_0_27", "MYSQL_8_0_28", + "MYSQL_8_0_29", "POSTGRES_13", "POSTGRES_14", "SQLSERVER_2019_STANDARD", @@ -2459,6 +2462,7 @@ "The database major version is MySQL 8.0 and the minor version is 26.", "The database major version is MySQL 8.0 and the minor version is 27.", "The database major version is MySQL 8.0 and the minor version is 28.", + "The database major version is MySQL 8.0 and the minor version is 29.", "The database version is PostgreSQL 13.", "The database version is PostgreSQL 14.", "The database version is SQL Server 2019 Standard.", @@ -2946,6 +2950,7 @@ "MYSQL_8_0_26", "MYSQL_8_0_27", "MYSQL_8_0_28", + "MYSQL_8_0_29", "POSTGRES_13", "POSTGRES_14", "SQLSERVER_2019_STANDARD", @@ -2972,6 +2977,7 @@ "The database major version is MySQL 8.0 and the minor version is 26.", "The database major version is MySQL 8.0 and the minor version is 27.", "The database major version is MySQL 8.0 and the minor version is 28.", + "The database major version is MySQL 8.0 and the minor version is 29.", "The database version is PostgreSQL 13.", "The database version is PostgreSQL 14.", "The database version is SQL Server 2019 Standard.", @@ -3678,7 +3684,8 @@ "DEFER_MAINTENANCE", "CREATE_CLONE", "RESCHEDULE_MAINTENANCE", - "START_EXTERNAL_SYNC" + "START_EXTERNAL_SYNC", + "LOG_CLEANUP" ], "enumDescriptions": [ "Unknown operation type.", @@ -3715,7 +3722,8 @@ "", "Creates clone instance.", "Reschedule maintenance to another time.", - "Starts external sync of a Cloud SQL EM replica to an external primary instance." + "Starts external sync of a Cloud SQL EM replica to an external primary instance.", + "Recovers logs from an instance's old data disk." ], "type": "string" }, @@ -4361,7 +4369,7 @@ "type": "object" }, "SqlScheduledMaintenance": { - "description": "Any scheduled maintenancce for this instance.", + "description": "Any scheduled maintenance for this instance.", "id": "SqlScheduledMaintenance", "properties": { "canDefer": { diff --git a/sqladmin/v1/sqladmin-gen.go b/sqladmin/v1/sqladmin-gen.go index ac0e4e54ec8..6dceda97427 100644 --- a/sqladmin/v1/sqladmin-gen.go +++ b/sqladmin/v1/sqladmin-gen.go @@ -788,6 +788,8 @@ type ConnectSettings struct { // minor version is 27. // "MYSQL_8_0_28" - The database major version is MySQL 8.0 and the // minor version is 28. + // "MYSQL_8_0_29" - The database major version is MySQL 8.0 and the + // minor version is 29. // "POSTGRES_13" - The database version is PostgreSQL 13. // "POSTGRES_14" - The database version is PostgreSQL 14. // "SQLSERVER_2019_STANDARD" - The database version is SQL Server 2019 @@ -1008,6 +1010,8 @@ type DatabaseInstance struct { // minor version is 27. // "MYSQL_8_0_28" - The database major version is MySQL 8.0 and the // minor version is 28. + // "MYSQL_8_0_29" - The database major version is MySQL 8.0 and the + // minor version is 29. // "POSTGRES_13" - The database version is PostgreSQL 13. // "POSTGRES_14" - The database version is PostgreSQL 14. // "SQLSERVER_2019_STANDARD" - The database version is SQL Server 2019 @@ -1780,6 +1784,8 @@ type Flag struct { // minor version is 27. // "MYSQL_8_0_28" - The database major version is MySQL 8.0 and the // minor version is 28. + // "MYSQL_8_0_29" - The database major version is MySQL 8.0 and the + // minor version is 29. // "POSTGRES_13" - The database version is PostgreSQL 13. // "POSTGRES_14" - The database version is PostgreSQL 14. // "SQLSERVER_2019_STANDARD" - The database version is SQL Server 2019 @@ -2990,6 +2996,7 @@ type Operation struct { // "RESCHEDULE_MAINTENANCE" - Reschedule maintenance to another time. // "START_EXTERNAL_SYNC" - Starts external sync of a Cloud SQL EM // replica to an external primary instance. + // "LOG_CLEANUP" - Recovers logs from an instance's old data disk. OperationType string `json:"operationType,omitempty"` // SelfLink: The URI of this resource. @@ -3903,8 +3910,7 @@ func (s *SqlOutOfDiskReport) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SqlScheduledMaintenance: Any scheduled maintenancce for this -// instance. +// SqlScheduledMaintenance: Any scheduled maintenance for this instance. type SqlScheduledMaintenance struct { CanDefer bool `json:"canDefer,omitempty"` diff --git a/sqladmin/v1beta4/sqladmin-api.json b/sqladmin/v1beta4/sqladmin-api.json index 53b6c8781d9..82ca281514e 100644 --- a/sqladmin/v1beta4/sqladmin-api.json +++ b/sqladmin/v1beta4/sqladmin-api.json @@ -1877,7 +1877,7 @@ } } }, - "revision": "20220323", + "revision": "20220513", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2251,6 +2251,7 @@ "MYSQL_8_0_26", "MYSQL_8_0_27", "MYSQL_8_0_28", + "MYSQL_8_0_29", "POSTGRES_13", "POSTGRES_14", "SQLSERVER_2019_STANDARD", @@ -2277,6 +2278,7 @@ "The database major version is MySQL 8.0 and the minor version is 26.", "The database major version is MySQL 8.0 and the minor version is 27.", "The database major version is MySQL 8.0 and the minor version is 28.", + "The database major version is MySQL 8.0 and the minor version is 29.", "The database version is PostgreSQL 13.", "The database version is PostgreSQL 14.", "The database version is SQL Server 2019 Standard.", @@ -2433,6 +2435,7 @@ "MYSQL_8_0_26", "MYSQL_8_0_27", "MYSQL_8_0_28", + "MYSQL_8_0_29", "POSTGRES_13", "POSTGRES_14", "SQLSERVER_2019_STANDARD", @@ -2459,6 +2462,7 @@ "The database major version is MySQL 8.0 and the minor version is 26.", "The database major version is MySQL 8.0 and the minor version is 27.", "The database major version is MySQL 8.0 and the minor version is 28.", + "The database major version is MySQL 8.0 and the minor version is 29.", "The database version is PostgreSQL 13.", "The database version is PostgreSQL 14.", "The database version is SQL Server 2019 Standard.", @@ -2946,6 +2950,7 @@ "MYSQL_8_0_26", "MYSQL_8_0_27", "MYSQL_8_0_28", + "MYSQL_8_0_29", "POSTGRES_13", "POSTGRES_14", "SQLSERVER_2019_STANDARD", @@ -2972,6 +2977,7 @@ "The database major version is MySQL 8.0 and the minor version is 26.", "The database major version is MySQL 8.0 and the minor version is 27.", "The database major version is MySQL 8.0 and the minor version is 28.", + "The database major version is MySQL 8.0 and the minor version is 29.", "The database version is PostgreSQL 13.", "The database version is PostgreSQL 14.", "The database version is SQL Server 2019 Standard.", @@ -3678,7 +3684,8 @@ "DEFER_MAINTENANCE", "CREATE_CLONE", "RESCHEDULE_MAINTENANCE", - "START_EXTERNAL_SYNC" + "START_EXTERNAL_SYNC", + "LOG_CLEANUP" ], "enumDescriptions": [ "Unknown operation type.", @@ -3715,7 +3722,8 @@ "", "Creates clone instance.", "Reschedule maintenance to another time.", - "Starts external sync of a Cloud SQL EM replica to an external primary instance." + "Starts external sync of a Cloud SQL EM replica to an external primary instance.", + "Recovers logs from an instance's old data disk." ], "type": "string" }, @@ -4359,7 +4367,7 @@ "type": "object" }, "SqlScheduledMaintenance": { - "description": "Any scheduled maintenancce for this instance.", + "description": "Any scheduled maintenance for this instance.", "id": "SqlScheduledMaintenance", "properties": { "canDefer": { diff --git a/sqladmin/v1beta4/sqladmin-gen.go b/sqladmin/v1beta4/sqladmin-gen.go index d10684298c2..e74581a717c 100644 --- a/sqladmin/v1beta4/sqladmin-gen.go +++ b/sqladmin/v1beta4/sqladmin-gen.go @@ -788,6 +788,8 @@ type ConnectSettings struct { // minor version is 27. // "MYSQL_8_0_28" - The database major version is MySQL 8.0 and the // minor version is 28. + // "MYSQL_8_0_29" - The database major version is MySQL 8.0 and the + // minor version is 29. // "POSTGRES_13" - The database version is PostgreSQL 13. // "POSTGRES_14" - The database version is PostgreSQL 14. // "SQLSERVER_2019_STANDARD" - The database version is SQL Server 2019 @@ -1007,6 +1009,8 @@ type DatabaseInstance struct { // minor version is 27. // "MYSQL_8_0_28" - The database major version is MySQL 8.0 and the // minor version is 28. + // "MYSQL_8_0_29" - The database major version is MySQL 8.0 and the + // minor version is 29. // "POSTGRES_13" - The database version is PostgreSQL 13. // "POSTGRES_14" - The database version is PostgreSQL 14. // "SQLSERVER_2019_STANDARD" - The database version is SQL Server 2019 @@ -1779,6 +1783,8 @@ type Flag struct { // minor version is 27. // "MYSQL_8_0_28" - The database major version is MySQL 8.0 and the // minor version is 28. + // "MYSQL_8_0_29" - The database major version is MySQL 8.0 and the + // minor version is 29. // "POSTGRES_13" - The database version is PostgreSQL 13. // "POSTGRES_14" - The database version is PostgreSQL 14. // "SQLSERVER_2019_STANDARD" - The database version is SQL Server 2019 @@ -2990,6 +2996,7 @@ type Operation struct { // "RESCHEDULE_MAINTENANCE" - Reschedule maintenance to another time. // "START_EXTERNAL_SYNC" - Starts external sync of a Cloud SQL EM // replica to an external primary instance. + // "LOG_CLEANUP" - Recovers logs from an instance's old data disk. OperationType string `json:"operationType,omitempty"` // SelfLink: The URI of this resource. @@ -3899,8 +3906,7 @@ func (s *SqlOutOfDiskReport) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields) } -// SqlScheduledMaintenance: Any scheduled maintenancce for this -// instance. +// SqlScheduledMaintenance: Any scheduled maintenance for this instance. type SqlScheduledMaintenance struct { CanDefer bool `json:"canDefer,omitempty"`