diff --git a/androidenterprise/v1/androidenterprise-api.json b/androidenterprise/v1/androidenterprise-api.json index 789a1c803e7..8537d8c2692 100644 --- a/androidenterprise/v1/androidenterprise-api.json +++ b/androidenterprise/v1/androidenterprise-api.json @@ -393,7 +393,8 @@ ], "parameters": { "deviceType": { - "description": "Whether it’s a dedicated device or a knowledge worker device.", + "deprecated": true, + "description": "Deprecated: Use enrollment_token instead. this field will be removed in the future.", "enum": [ "unknown", "dedicatedDevice", @@ -407,8 +408,34 @@ "location": "query", "type": "string" }, + "enrollmentToken.duration": { + "description": "[Optional] The length of time the enrollment token is valid, ranging from 1 minute to [`Durations.MAX_VALUE`](https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately 10,000 years. If not specified, the default duration is 1 hour.", + "format": "google-duration", + "location": "query", + "type": "string" + }, + "enrollmentToken.enrollmentTokenType": { + "description": "[Required] The type of the enrollment token.", + "enum": [ + "enrollmentTokenTypeUnspecified", + "userlessDevice", + "userDevice" + ], + "enumDescriptions": [ + "The value is unused.", + "The enrollment token is for a userless device.", + "The enrollment token is for a user device." + ], + "location": "query", + "type": "string" + }, + "enrollmentToken.token": { + "description": "The token value that's passed to the device and authorizes the device to enroll. This is a read-only field generated by the server.", + "location": "query", + "type": "string" + }, "enterpriseId": { - "description": "The ID of the enterprise.", + "description": "Required. The ID of the enterprise.", "location": "path", "required": true, "type": "string" @@ -2654,7 +2681,7 @@ } } }, - "revision": "20241028", + "revision": "20241113", "rootUrl": "https://androidenterprise.googleapis.com/", "schemas": { "Administrator": { @@ -3153,8 +3180,13 @@ "id": "CreateEnrollmentTokenResponse", "properties": { "enrollmentToken": { - "description": "Enrollment token.", + "deprecated": true, + "description": "Deprecated: Use token instead. This field will be removed in the future.", "type": "string" + }, + "token": { + "$ref": "EnrollmentToken", + "description": "[Required] The created enrollment token." } }, "type": "object" @@ -3293,6 +3325,36 @@ }, "type": "object" }, + "EnrollmentToken": { + "description": "A token used to enroll a device.", + "id": "EnrollmentToken", + "properties": { + "duration": { + "description": "[Optional] The length of time the enrollment token is valid, ranging from 1 minute to [`Durations.MAX_VALUE`](https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately 10,000 years. If not specified, the default duration is 1 hour.", + "format": "google-duration", + "type": "string" + }, + "enrollmentTokenType": { + "description": "[Required] The type of the enrollment token.", + "enum": [ + "enrollmentTokenTypeUnspecified", + "userlessDevice", + "userDevice" + ], + "enumDescriptions": [ + "The value is unused.", + "The enrollment token is for a userless device.", + "The enrollment token is for a user device." + ], + "type": "string" + }, + "token": { + "description": "The token value that's passed to the device and authorizes the device to enroll. This is a read-only field generated by the server.", + "type": "string" + } + }, + "type": "object" + }, "Enterprise": { "description": "An Enterprises resource represents the binding between an EMM and a specific organization. That binding can be instantiated in one of two different ways using this API as follows: - For Google managed domain customers, the process involves using Enterprises.enroll and Enterprises.setAccount (in conjunction with artifacts obtained from the Admin console and the Google API Console) and submitted to the EMM through a more-or-less manual process. - For managed Google Play Accounts customers, the process involves using Enterprises.generateSignupUrl and Enterprises.completeSignup in conjunction with the managed Google Play sign-up UI (Google-provided mechanism) to create the binding without manual steps. As an EMM, you can support either or both approaches in your EMM console. See Create an Enterprise for details.", "id": "Enterprise", diff --git a/androidenterprise/v1/androidenterprise-gen.go b/androidenterprise/v1/androidenterprise-gen.go index f3fb89e2b02..f4ef8c890ca 100644 --- a/androidenterprise/v1/androidenterprise-gen.go +++ b/androidenterprise/v1/androidenterprise-gen.go @@ -989,8 +989,11 @@ func (s ConfigurationVariables) MarshalJSON() ([]byte, error) { // CreateEnrollmentTokenResponse: Response message for create enrollment token. type CreateEnrollmentTokenResponse struct { - // EnrollmentToken: Enrollment token. + // EnrollmentToken: Deprecated: Use token instead. This field will be removed + // in the future. EnrollmentToken string `json:"enrollmentToken,omitempty"` + // Token: [Required] The created enrollment token. + Token *EnrollmentToken `json:"token,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` @@ -1190,6 +1193,42 @@ func (s DevicesListResponse) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// EnrollmentToken: A token used to enroll a device. +type EnrollmentToken struct { + // Duration: [Optional] The length of time the enrollment token is valid, + // ranging from 1 minute to `Durations.MAX_VALUE` + // (https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), + // approximately 10,000 years. If not specified, the default duration is 1 + // hour. + Duration string `json:"duration,omitempty"` + // EnrollmentTokenType: [Required] The type of the enrollment token. + // + // Possible values: + // "enrollmentTokenTypeUnspecified" - The value is unused. + // "userlessDevice" - The enrollment token is for a userless device. + // "userDevice" - The enrollment token is for a user device. + EnrollmentTokenType string `json:"enrollmentTokenType,omitempty"` + // Token: The token value that's passed to the device and authorizes the device + // to enroll. This is a read-only field generated by the server. + Token string `json:"token,omitempty"` + // ForceSendFields is a list of field names (e.g. "Duration") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Duration") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s EnrollmentToken) MarshalJSON() ([]byte, error) { + type NoMethod EnrollmentToken + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Enterprise: An Enterprises resource represents the binding between an EMM // and a specific organization. That binding can be instantiated in one of two // different ways using this API as follows: - For Google managed domain @@ -4264,8 +4303,8 @@ func (r *EnterprisesService) CreateEnrollmentToken(enterpriseId string) *Enterpr return c } -// DeviceType sets the optional parameter "deviceType": Whether it’s a -// dedicated device or a knowledge worker device. +// DeviceType sets the optional parameter "deviceType": Deprecated: Use +// enrollment_token instead. this field will be removed in the future. // // Possible values: // @@ -4277,6 +4316,39 @@ func (c *EnterprisesCreateEnrollmentTokenCall) DeviceType(deviceType string) *En return c } +// EnrollmentTokenDuration sets the optional parameter +// "enrollmentToken.duration": [Optional] The length of time the enrollment +// token is valid, ranging from 1 minute to `Durations.MAX_VALUE` +// (https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), +// approximately 10,000 years. If not specified, the default duration is 1 +// hour. +func (c *EnterprisesCreateEnrollmentTokenCall) EnrollmentTokenDuration(enrollmentTokenDuration string) *EnterprisesCreateEnrollmentTokenCall { + c.urlParams_.Set("enrollmentToken.duration", enrollmentTokenDuration) + return c +} + +// EnrollmentTokenEnrollmentTokenType sets the optional parameter +// "enrollmentToken.enrollmentTokenType": [Required] The type of the enrollment +// token. +// +// Possible values: +// +// "enrollmentTokenTypeUnspecified" - The value is unused. +// "userlessDevice" - The enrollment token is for a userless device. +// "userDevice" - The enrollment token is for a user device. +func (c *EnterprisesCreateEnrollmentTokenCall) EnrollmentTokenEnrollmentTokenType(enrollmentTokenEnrollmentTokenType string) *EnterprisesCreateEnrollmentTokenCall { + c.urlParams_.Set("enrollmentToken.enrollmentTokenType", enrollmentTokenEnrollmentTokenType) + return c +} + +// EnrollmentTokenToken sets the optional parameter "enrollmentToken.token": +// The token value that's passed to the device and authorizes the device to +// enroll. This is a read-only field generated by the server. +func (c *EnterprisesCreateEnrollmentTokenCall) EnrollmentTokenToken(enrollmentTokenToken string) *EnterprisesCreateEnrollmentTokenCall { + c.urlParams_.Set("enrollmentToken.token", enrollmentTokenToken) + return c +} + // Fields allows partial responses to be retrieved. See // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more // details. diff --git a/androidmanagement/v1/androidmanagement-api.json b/androidmanagement/v1/androidmanagement-api.json index 77372156419..ab19ea66caa 100644 --- a/androidmanagement/v1/androidmanagement-api.json +++ b/androidmanagement/v1/androidmanagement-api.json @@ -1168,7 +1168,7 @@ } } }, - "revision": "20241104", + "revision": "20241114", "rootUrl": "https://androidmanagement.googleapis.com/", "schemas": { "AdbShellCommandEvent": { @@ -1716,7 +1716,7 @@ "enumDescriptions": [ "Policy not specified. If no policy is specified for a permission at any level, then the PROMPT behavior is used by default.", "Prompt the user to grant a permission.", - "Automatically grant a permission.On Android 12 and above, Manifest.permission.READ_SMS (https://developer.android.com/reference/android/Manifest.permission#READ_SMS) and following sensor-related permissions can only be granted on fully managed devices: Manifest.permission.ACCESS_FINE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION) Manifest.permission.ACCESS_BACKGROUND_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION) Manifest.permission.ACCESS_COARSE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_COARSE_LOCATION) Manifest.permission.CAMERA (https://developer.android.com/reference/android/Manifest.permission#CAMERA) Manifest.permission.RECORD_AUDIO (https://developer.android.com/reference/android/Manifest.permission#RECORD_AUDIO) Manifest.permission.ACTIVITY_RECOGNITION (https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION) Manifest.permission.BODY_SENSORS (https://developer.android.com/reference/android/Manifest.permission#BODY_SENSORS)", + "Automatically grant a permission.On Android 12 and above, READ_SMS (https://developer.android.com/reference/android/Manifest.permission#READ_SMS) and following sensor-related permissions can only be granted on fully managed devices: ACCESS_FINE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION) ACCESS_BACKGROUND_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION) ACCESS_COARSE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_COARSE_LOCATION) CAMERA (https://developer.android.com/reference/android/Manifest.permission#CAMERA) RECORD_AUDIO (https://developer.android.com/reference/android/Manifest.permission#RECORD_AUDIO) ACTIVITY_RECOGNITION (https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION) BODY_SENSORS (https://developer.android.com/reference/android/Manifest.permission#BODY_SENSORS)", "Automatically deny a permission." ], "type": "string" @@ -4708,7 +4708,7 @@ "enumDescriptions": [ "Policy not specified. If no policy is specified for a permission at any level, then the PROMPT behavior is used by default.", "Prompt the user to grant a permission.", - "Automatically grant a permission.On Android 12 and above, Manifest.permission.READ_SMS (https://developer.android.com/reference/android/Manifest.permission#READ_SMS) and following sensor-related permissions can only be granted on fully managed devices: Manifest.permission.ACCESS_FINE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION) Manifest.permission.ACCESS_BACKGROUND_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION) Manifest.permission.ACCESS_COARSE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_COARSE_LOCATION) Manifest.permission.CAMERA (https://developer.android.com/reference/android/Manifest.permission#CAMERA) Manifest.permission.RECORD_AUDIO (https://developer.android.com/reference/android/Manifest.permission#RECORD_AUDIO) Manifest.permission.ACTIVITY_RECOGNITION (https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION) Manifest.permission.BODY_SENSORS (https://developer.android.com/reference/android/Manifest.permission#BODY_SENSORS)", + "Automatically grant a permission.On Android 12 and above, READ_SMS (https://developer.android.com/reference/android/Manifest.permission#READ_SMS) and following sensor-related permissions can only be granted on fully managed devices: ACCESS_FINE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION) ACCESS_BACKGROUND_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION) ACCESS_COARSE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_COARSE_LOCATION) CAMERA (https://developer.android.com/reference/android/Manifest.permission#CAMERA) RECORD_AUDIO (https://developer.android.com/reference/android/Manifest.permission#RECORD_AUDIO) ACTIVITY_RECOGNITION (https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION) BODY_SENSORS (https://developer.android.com/reference/android/Manifest.permission#BODY_SENSORS)", "Automatically deny a permission." ], "type": "string" @@ -5028,7 +5028,7 @@ "enumDescriptions": [ "Policy not specified. If no policy is specified for a permission at any level, then the PROMPT behavior is used by default.", "Prompt the user to grant a permission.", - "Automatically grant a permission.On Android 12 and above, Manifest.permission.READ_SMS (https://developer.android.com/reference/android/Manifest.permission#READ_SMS) and following sensor-related permissions can only be granted on fully managed devices: Manifest.permission.ACCESS_FINE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION) Manifest.permission.ACCESS_BACKGROUND_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION) Manifest.permission.ACCESS_COARSE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_COARSE_LOCATION) Manifest.permission.CAMERA (https://developer.android.com/reference/android/Manifest.permission#CAMERA) Manifest.permission.RECORD_AUDIO (https://developer.android.com/reference/android/Manifest.permission#RECORD_AUDIO) Manifest.permission.ACTIVITY_RECOGNITION (https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION) Manifest.permission.BODY_SENSORS (https://developer.android.com/reference/android/Manifest.permission#BODY_SENSORS)", + "Automatically grant a permission.On Android 12 and above, READ_SMS (https://developer.android.com/reference/android/Manifest.permission#READ_SMS) and following sensor-related permissions can only be granted on fully managed devices: ACCESS_FINE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION) ACCESS_BACKGROUND_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION) ACCESS_COARSE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_COARSE_LOCATION) CAMERA (https://developer.android.com/reference/android/Manifest.permission#CAMERA) RECORD_AUDIO (https://developer.android.com/reference/android/Manifest.permission#RECORD_AUDIO) ACTIVITY_RECOGNITION (https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION) BODY_SENSORS (https://developer.android.com/reference/android/Manifest.permission#BODY_SENSORS)", "Automatically deny a permission." ], "type": "string" diff --git a/androidmanagement/v1/androidmanagement-gen.go b/androidmanagement/v1/androidmanagement-gen.go index 64ea8e32448..3f5f7b545c4 100644 --- a/androidmanagement/v1/androidmanagement-gen.go +++ b/androidmanagement/v1/androidmanagement-gen.go @@ -863,22 +863,22 @@ type ApplicationPolicy struct { // default. // "PROMPT" - Prompt the user to grant a permission. // "GRANT" - Automatically grant a permission.On Android 12 and above, - // Manifest.permission.READ_SMS + // READ_SMS // (https://developer.android.com/reference/android/Manifest.permission#READ_SMS) // and following sensor-related permissions can only be granted on fully - // managed devices: Manifest.permission.ACCESS_FINE_LOCATION + // managed devices: ACCESS_FINE_LOCATION // (https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION) - // Manifest.permission.ACCESS_BACKGROUND_LOCATION + // ACCESS_BACKGROUND_LOCATION // (https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION) - // Manifest.permission.ACCESS_COARSE_LOCATION + // ACCESS_COARSE_LOCATION // (https://developer.android.com/reference/android/Manifest.permission#ACCESS_COARSE_LOCATION) - // Manifest.permission.CAMERA + // CAMERA // (https://developer.android.com/reference/android/Manifest.permission#CAMERA) - // Manifest.permission.RECORD_AUDIO + // RECORD_AUDIO // (https://developer.android.com/reference/android/Manifest.permission#RECORD_AUDIO) - // Manifest.permission.ACTIVITY_RECOGNITION + // ACTIVITY_RECOGNITION // (https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION) - // Manifest.permission.BODY_SENSORS + // BODY_SENSORS // (https://developer.android.com/reference/android/Manifest.permission#BODY_SENSORS) // "DENY" - Automatically deny a permission. DefaultPermissionPolicy string `json:"defaultPermissionPolicy,omitempty"` @@ -4562,22 +4562,22 @@ type PermissionGrant struct { // default. // "PROMPT" - Prompt the user to grant a permission. // "GRANT" - Automatically grant a permission.On Android 12 and above, - // Manifest.permission.READ_SMS + // READ_SMS // (https://developer.android.com/reference/android/Manifest.permission#READ_SMS) // and following sensor-related permissions can only be granted on fully - // managed devices: Manifest.permission.ACCESS_FINE_LOCATION + // managed devices: ACCESS_FINE_LOCATION // (https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION) - // Manifest.permission.ACCESS_BACKGROUND_LOCATION + // ACCESS_BACKGROUND_LOCATION // (https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION) - // Manifest.permission.ACCESS_COARSE_LOCATION + // ACCESS_COARSE_LOCATION // (https://developer.android.com/reference/android/Manifest.permission#ACCESS_COARSE_LOCATION) - // Manifest.permission.CAMERA + // CAMERA // (https://developer.android.com/reference/android/Manifest.permission#CAMERA) - // Manifest.permission.RECORD_AUDIO + // RECORD_AUDIO // (https://developer.android.com/reference/android/Manifest.permission#RECORD_AUDIO) - // Manifest.permission.ACTIVITY_RECOGNITION + // ACTIVITY_RECOGNITION // (https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION) - // Manifest.permission.BODY_SENSORS + // BODY_SENSORS // (https://developer.android.com/reference/android/Manifest.permission#BODY_SENSORS) // "DENY" - Automatically deny a permission. Policy string `json:"policy,omitempty"` @@ -4894,22 +4894,22 @@ type Policy struct { // default. // "PROMPT" - Prompt the user to grant a permission. // "GRANT" - Automatically grant a permission.On Android 12 and above, - // Manifest.permission.READ_SMS + // READ_SMS // (https://developer.android.com/reference/android/Manifest.permission#READ_SMS) // and following sensor-related permissions can only be granted on fully - // managed devices: Manifest.permission.ACCESS_FINE_LOCATION + // managed devices: ACCESS_FINE_LOCATION // (https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION) - // Manifest.permission.ACCESS_BACKGROUND_LOCATION + // ACCESS_BACKGROUND_LOCATION // (https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION) - // Manifest.permission.ACCESS_COARSE_LOCATION + // ACCESS_COARSE_LOCATION // (https://developer.android.com/reference/android/Manifest.permission#ACCESS_COARSE_LOCATION) - // Manifest.permission.CAMERA + // CAMERA // (https://developer.android.com/reference/android/Manifest.permission#CAMERA) - // Manifest.permission.RECORD_AUDIO + // RECORD_AUDIO // (https://developer.android.com/reference/android/Manifest.permission#RECORD_AUDIO) - // Manifest.permission.ACTIVITY_RECOGNITION + // ACTIVITY_RECOGNITION // (https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION) - // Manifest.permission.BODY_SENSORS + // BODY_SENSORS // (https://developer.android.com/reference/android/Manifest.permission#BODY_SENSORS) // "DENY" - Automatically deny a permission. DefaultPermissionPolicy string `json:"defaultPermissionPolicy,omitempty"` diff --git a/compute/v0.alpha/compute-api.json b/compute/v0.alpha/compute-api.json index b885c0fea7d..9296effc52c 100644 --- a/compute/v0.alpha/compute-api.json +++ b/compute/v0.alpha/compute-api.json @@ -47179,7 +47179,7 @@ } } }, - "revision": "20241105", + "revision": "20241112", "rootUrl": "https://compute.googleapis.com/", "schemas": { "AWSV4Signature": { @@ -75597,12 +75597,16 @@ "enum": [ "GVNIC", "IDPF", + "IRDMA", + "MRDMA", "UNSPECIFIED_NIC_TYPE", "VIRTIO_NET" ], "enumDescriptions": [ "GVNIC", "IDPF", + "IRDMA", + "MRDMA", "No type specified.", "VIRTIO" ], @@ -76226,12 +76230,16 @@ "enum": [ "GVNIC", "IDPF", + "IRDMA", + "MRDMA", "UNSPECIFIED_NIC_TYPE", "VIRTIO_NET" ], "enumDescriptions": [ "GVNIC", "IDPF", + "IRDMA", + "MRDMA", "No type specified.", "VIRTIO" ], diff --git a/compute/v0.alpha/compute-gen.go b/compute/v0.alpha/compute-gen.go index efadbfd62f5..a84e9e87c67 100644 --- a/compute/v0.alpha/compute-gen.go +++ b/compute/v0.alpha/compute-gen.go @@ -34321,6 +34321,8 @@ type NetworkInterface struct { // Possible values: // "GVNIC" - GVNIC // "IDPF" - IDPF + // "IRDMA" - IRDMA + // "MRDMA" - MRDMA // "UNSPECIFIED_NIC_TYPE" - No type specified. // "VIRTIO_NET" - VIRTIO NicType string `json:"nicType,omitempty"` @@ -34873,6 +34875,8 @@ type NetworkProfileNetworkFeatures struct { // Possible values: // "GVNIC" - GVNIC // "IDPF" - IDPF + // "IRDMA" - IRDMA + // "MRDMA" - MRDMA // "UNSPECIFIED_NIC_TYPE" - No type specified. // "VIRTIO_NET" - VIRTIO InterfaceTypes []string `json:"interfaceTypes,omitempty"` diff --git a/fcm/v1/fcm-api.json b/fcm/v1/fcm-api.json index 1af2183fe18..1e2def6669c 100644 --- a/fcm/v1/fcm-api.json +++ b/fcm/v1/fcm-api.json @@ -146,7 +146,7 @@ } } }, - "revision": "20241101", + "revision": "20241112", "rootUrl": "https://fcm.googleapis.com/", "schemas": { "AndroidConfig": { @@ -395,7 +395,7 @@ "type": "object" }, "liveActivityToken": { - "description": "Optional. [Apple Live Activity](https://developer.apple.com/design/human-interface-guidelines/live-activities) token to send updates to. This token can either be a push token or [push-to-start](https://developer.apple.com/documentation/activitykit/activity/pushtostarttoken) token from Apple.", + "description": "Optional. [Apple Live Activity](https://developer.apple.com/design/human-interface-guidelines/live-activities) token to send updates to. This token can either be a push token or [push-to-start](https://developer.apple.com/documentation/activitykit/activity/pushtostarttoken) token from Apple. To start, update, or end a live activity remotely using FCM, construct an [`aps payload`](https://developer.apple.com/documentation/activitykit/starting-and-updating-live-activities-with-activitykit-push-notifications#Construct-the-payload-that-starts-a-Live-Activity) and put it in the [`apns.payload`](https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#ApnsConfig) field.", "type": "string" }, "payload": { diff --git a/fcm/v1/fcm-gen.go b/fcm/v1/fcm-gen.go index a8a8972e965..66528b21300 100644 --- a/fcm/v1/fcm-gen.go +++ b/fcm/v1/fcm-gen.go @@ -487,7 +487,12 @@ type ApnsConfig struct { // token to send updates to. This token can either be a push token or // push-to-start // (https://developer.apple.com/documentation/activitykit/activity/pushtostarttoken) - // token from Apple. + // token from Apple. To start, update, or end a live activity remotely using + // FCM, construct an `aps payload` + // (https://developer.apple.com/documentation/activitykit/starting-and-updating-live-activities-with-activitykit-push-notifications#Construct-the-payload-that-starts-a-Live-Activity) + // and put it in the `apns.payload` + // (https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#ApnsConfig) + // field. LiveActivityToken string `json:"liveActivityToken,omitempty"` // Payload: APNs payload as a JSON object, including both `aps` dictionary and // custom payload. See Payload Key Reference diff --git a/firebasestorage/v1beta/firebasestorage-api.json b/firebasestorage/v1beta/firebasestorage-api.json index 1ccb34e769a..e677ba2ecd3 100644 --- a/firebasestorage/v1beta/firebasestorage-api.json +++ b/firebasestorage/v1beta/firebasestorage-api.json @@ -109,6 +109,60 @@ "protocol": "rest", "resources": { "projects": { + "methods": { + "deleteDefaultBucket": { + "description": "Unlinks and deletes the default bucket.", + "flatPath": "v1beta/projects/{projectsId}/defaultBucket", + "httpMethod": "DELETE", + "id": "firebasestorage.projects.deleteDefaultBucket", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the default bucket to delete, `projects/{project_id_or_number}/defaultBucket`.", + "location": "path", + "pattern": "^projects/[^/]+/defaultBucket$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}", + "response": { + "$ref": "Empty" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + }, + "getDefaultBucket": { + "description": "Gets the default bucket.", + "flatPath": "v1beta/projects/{projectsId}/defaultBucket", + "httpMethod": "GET", + "id": "firebasestorage.projects.getDefaultBucket", + "parameterOrder": [ + "name" + ], + "parameters": { + "name": { + "description": "Required. The name of the default bucket to retrieve, `projects/{project_id_or_number}/defaultBucket`.", + "location": "path", + "pattern": "^projects/[^/]+/defaultBucket$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+name}", + "response": { + "$ref": "DefaultBucket" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + } + }, "resources": { "buckets": { "methods": { @@ -234,11 +288,44 @@ ] } } + }, + "defaultBucket": { + "methods": { + "create": { + "description": "Creates a Spark tier-eligible Cloud Storage bucket and links it to your Firebase project. If the default bucket already exists, this method will re-link it to your Firebase project. See https://firebase.google.com/pricing for pricing details.", + "flatPath": "v1beta/projects/{projectsId}/defaultBucket", + "httpMethod": "POST", + "id": "firebasestorage.projects.defaultBucket.create", + "parameterOrder": [ + "parent" + ], + "parameters": { + "parent": { + "description": "Required. The parent resource where the default bucket will be created, `projects/{project_id_or_number}`.", + "location": "path", + "pattern": "^projects/[^/]+$", + "required": true, + "type": "string" + } + }, + "path": "v1beta/{+parent}/defaultBucket", + "request": { + "$ref": "DefaultBucket" + }, + "response": { + "$ref": "DefaultBucket" + }, + "scopes": [ + "https://www.googleapis.com/auth/cloud-platform", + "https://www.googleapis.com/auth/firebase" + ] + } + } } } } }, - "revision": "20230825", + "revision": "20241111", "rootUrl": "https://firebasestorage.googleapis.com/", "schemas": { "AddFirebaseRequest": { @@ -259,6 +346,30 @@ }, "type": "object" }, + "DefaultBucket": { + "description": "Spark tier-eligible Cloud Storage bucket. One per project. This resource exists if the underlying Cloud Storage bucket exists and it is linked to your Firebase project. See https://firebase.google.com/pricing for pricing details.", + "id": "DefaultBucket", + "properties": { + "bucket": { + "$ref": "Bucket", + "description": "Output only. Underlying bucket resource.", + "readOnly": true + }, + "location": { + "description": "Immutable. Location of the default bucket.", + "type": "string" + }, + "name": { + "description": "Resource name of the default bucket.", + "type": "string" + }, + "storageClass": { + "description": "Immutable. Storage class of the default bucket. Supported values are available at https://cloud.google.com/storage/docs/storage-classes#classes.", + "type": "string" + } + }, + "type": "object" + }, "Empty": { "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", "id": "Empty", diff --git a/firebasestorage/v1beta/firebasestorage-gen.go b/firebasestorage/v1beta/firebasestorage-gen.go index 1346c8fdd1c..55878c7904b 100644 --- a/firebasestorage/v1beta/firebasestorage-gen.go +++ b/firebasestorage/v1beta/firebasestorage-gen.go @@ -166,6 +166,7 @@ func (s *Service) userAgent() string { func NewProjectsService(s *Service) *ProjectsService { rs := &ProjectsService{s: s} rs.Buckets = NewProjectsBucketsService(s) + rs.DefaultBucket = NewProjectsDefaultBucketService(s) return rs } @@ -173,6 +174,8 @@ type ProjectsService struct { s *Service Buckets *ProjectsBucketsService + + DefaultBucket *ProjectsDefaultBucketService } func NewProjectsBucketsService(s *Service) *ProjectsBucketsService { @@ -184,6 +187,15 @@ type ProjectsBucketsService struct { s *Service } +func NewProjectsDefaultBucketService(s *Service) *ProjectsDefaultBucketService { + rs := &ProjectsDefaultBucketService{s: s} + return rs +} + +type ProjectsDefaultBucketService struct { + s *Service +} + // AddFirebaseRequest: The request used to link a Google Cloud Storage bucket // to a Firebase project. type AddFirebaseRequest struct { @@ -214,6 +226,42 @@ func (s Bucket) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// DefaultBucket: Spark tier-eligible Cloud Storage bucket. One per project. +// This resource exists if the underlying Cloud Storage bucket exists and it is +// linked to your Firebase project. See https://firebase.google.com/pricing for +// pricing details. +type DefaultBucket struct { + // Bucket: Output only. Underlying bucket resource. + Bucket *Bucket `json:"bucket,omitempty"` + // Location: Immutable. Location of the default bucket. + Location string `json:"location,omitempty"` + // Name: Resource name of the default bucket. + Name string `json:"name,omitempty"` + // StorageClass: Immutable. Storage class of the default bucket. Supported + // values are available at + // https://cloud.google.com/storage/docs/storage-classes#classes. + StorageClass string `json:"storageClass,omitempty"` + + // ServerResponse contains the HTTP response code and headers from the server. + googleapi.ServerResponse `json:"-"` + // ForceSendFields is a list of field names (e.g. "Bucket") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Bucket") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s DefaultBucket) MarshalJSON() ([]byte, error) { + type NoMethod DefaultBucket + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Empty: A generic empty message that you can re-use to avoid defining // duplicated empty messages in your APIs. A typical example is to use it as // the request or the response type of an API method. For instance: service Foo @@ -361,6 +409,210 @@ func (s ListBucketsResponse) MarshalJSON() ([]byte, error) { type RemoveFirebaseRequest struct { } +type ProjectsDeleteDefaultBucketCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// DeleteDefaultBucket: Unlinks and deletes the default bucket. +// +// - name: The name of the default bucket to delete, +// `projects/{project_id_or_number}/defaultBucket`. +func (r *ProjectsService) DeleteDefaultBucket(name string) *ProjectsDeleteDefaultBucketCall { + c := &ProjectsDeleteDefaultBucketCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsDeleteDefaultBucketCall) Fields(s ...googleapi.Field) *ProjectsDeleteDefaultBucketCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsDeleteDefaultBucketCall) Context(ctx context.Context) *ProjectsDeleteDefaultBucketCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsDeleteDefaultBucketCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDeleteDefaultBucketCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("DELETE", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebasestorage.projects.deleteDefaultBucket" call. +// Any non-2xx status code is an error. Response headers are in either +// *Empty.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 *ProjectsDeleteDefaultBucketCall) Do(opts ...googleapi.CallOption) (*Empty, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &Empty{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + +type ProjectsGetDefaultBucketCall struct { + s *Service + name string + urlParams_ gensupport.URLParams + ifNoneMatch_ string + ctx_ context.Context + header_ http.Header +} + +// GetDefaultBucket: Gets the default bucket. +// +// - name: The name of the default bucket to retrieve, +// `projects/{project_id_or_number}/defaultBucket`. +func (r *ProjectsService) GetDefaultBucket(name string) *ProjectsGetDefaultBucketCall { + c := &ProjectsGetDefaultBucketCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.name = name + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsGetDefaultBucketCall) Fields(s ...googleapi.Field) *ProjectsGetDefaultBucketCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// IfNoneMatch sets an optional parameter which makes the operation fail if the +// object's ETag matches the given value. This is useful for getting updates +// only after the object has changed since the last request. +func (c *ProjectsGetDefaultBucketCall) IfNoneMatch(entityTag string) *ProjectsGetDefaultBucketCall { + c.ifNoneMatch_ = entityTag + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsGetDefaultBucketCall) Context(ctx context.Context) *ProjectsGetDefaultBucketCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsGetDefaultBucketCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsGetDefaultBucketCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_) + if c.ifNoneMatch_ != "" { + reqHeaders.Set("If-None-Match", c.ifNoneMatch_) + } + var body io.Reader = nil + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("GET", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "name": c.name, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebasestorage.projects.getDefaultBucket" call. +// Any non-2xx status code is an error. Response headers are in either +// *DefaultBucket.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 *ProjectsGetDefaultBucketCall) Do(opts ...googleapi.CallOption) (*DefaultBucket, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &DefaultBucket{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} + type ProjectsBucketsAddFirebaseCall struct { s *Service bucket string @@ -822,3 +1074,108 @@ func (c *ProjectsBucketsRemoveFirebaseCall) Do(opts ...googleapi.CallOption) (*E } return ret, nil } + +type ProjectsDefaultBucketCreateCall struct { + s *Service + parent string + defaultbucket *DefaultBucket + urlParams_ gensupport.URLParams + ctx_ context.Context + header_ http.Header +} + +// Create: Creates a Spark tier-eligible Cloud Storage bucket and links it to +// your Firebase project. If the default bucket already exists, this method +// will re-link it to your Firebase project. See +// https://firebase.google.com/pricing for pricing details. +// +// - parent: The parent resource where the default bucket will be created, +// `projects/{project_id_or_number}`. +func (r *ProjectsDefaultBucketService) Create(parent string, defaultbucket *DefaultBucket) *ProjectsDefaultBucketCreateCall { + c := &ProjectsDefaultBucketCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)} + c.parent = parent + c.defaultbucket = defaultbucket + return c +} + +// Fields allows partial responses to be retrieved. See +// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more +// details. +func (c *ProjectsDefaultBucketCreateCall) Fields(s ...googleapi.Field) *ProjectsDefaultBucketCreateCall { + c.urlParams_.Set("fields", googleapi.CombineFields(s)) + return c +} + +// Context sets the context to be used in this call's Do method. +func (c *ProjectsDefaultBucketCreateCall) Context(ctx context.Context) *ProjectsDefaultBucketCreateCall { + c.ctx_ = ctx + return c +} + +// Header returns a http.Header that can be modified by the caller to add +// headers to the request. +func (c *ProjectsDefaultBucketCreateCall) Header() http.Header { + if c.header_ == nil { + c.header_ = make(http.Header) + } + return c.header_ +} + +func (c *ProjectsDefaultBucketCreateCall) doRequest(alt string) (*http.Response, error) { + reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_) + var body io.Reader = nil + body, err := googleapi.WithoutDataWrapper.JSONReader(c.defaultbucket) + if err != nil { + return nil, err + } + c.urlParams_.Set("alt", alt) + c.urlParams_.Set("prettyPrint", "false") + urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/defaultBucket") + urls += "?" + c.urlParams_.Encode() + req, err := http.NewRequest("POST", urls, body) + if err != nil { + return nil, err + } + req.Header = reqHeaders + googleapi.Expand(req.URL, map[string]string{ + "parent": c.parent, + }) + return gensupport.SendRequest(c.ctx_, c.s.client, req) +} + +// Do executes the "firebasestorage.projects.defaultBucket.create" call. +// Any non-2xx status code is an error. Response headers are in either +// *DefaultBucket.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 *ProjectsDefaultBucketCreateCall) Do(opts ...googleapi.CallOption) (*DefaultBucket, error) { + gensupport.SetOptions(c.urlParams_, opts...) + res, err := c.doRequest("json") + if res != nil && res.StatusCode == http.StatusNotModified { + if res.Body != nil { + res.Body.Close() + } + return nil, gensupport.WrapError(&googleapi.Error{ + Code: res.StatusCode, + Header: res.Header, + }) + } + if err != nil { + return nil, err + } + defer googleapi.CloseBody(res) + if err := googleapi.CheckResponse(res); err != nil { + return nil, gensupport.WrapError(err) + } + ret := &DefaultBucket{ + ServerResponse: googleapi.ServerResponse{ + Header: res.Header, + HTTPStatusCode: res.StatusCode, + }, + } + target := &ret + if err := gensupport.DecodeResponse(target, res); err != nil { + return nil, err + } + return ret, nil +} diff --git a/healthcare/v1/healthcare-api.json b/healthcare/v1/healthcare-api.json index a70cd0d25a0..934366d9106 100644 --- a/healthcare/v1/healthcare-api.json +++ b/healthcare/v1/healthcare-api.json @@ -3342,7 +3342,7 @@ "fhir": { "methods": { "Binary-create": { - "description": "Creates a FHIR Binary resource. This method can be used to create a Binary resource either by using one of the accepted FHIR JSON content types, or as a raw data stream. If a resource is created with this method using the FHIR content type this method's behavior is the same as [`fhir.create`](https://cloud.google.com/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.fhirStores.fhir/create). If a resource type other than Binary is used in the request it's treated in the same way as non-FHIR data (e.g., images, zip archives, pdf files, documents). When a non-FHIR content type is used in the request, a Binary resource will be generated, and the uploaded data will be stored in the `content` field (`DSTU2` and `STU3`), or the `data` field (`R4`). The Binary resource's `contentType` will be filled in using the value of the `Content-Type` header, and the `securityContext` field (not present in `DSTU2`) will be populated from the `X-Security-Context` header if it exists. At this time `securityContext` has no special behavior in the Cloud Healthcare API. Note: the limit on data ingested through this method is 2 GB. For best performance, use a non-FHIR data type instead of wrapping the data in a Binary resource. Some of the Healthcare API features, such as [exporting to BigQuery](https://cloud.google.com/healthcare-api/docs/how-tos/fhir-export-bigquery) or [Pub/Sub notifications](https://cloud.google.com/healthcare-api/docs/fhir-pubsub#behavior_when_a_fhir_resource_is_too_large_or_traffic_is_high) with full resource content, do not support Binary resources that are larger than 10 MB. In these cases the resource's `data` field will be omitted. Instead, the \"http://hl7.org/fhir/StructureDefinition/data-absent-reason\" extension will be present to indicate that including the data is `unsupported`. On success, an empty `201 Created` response is returned. The newly created resource's ID and version are returned in the Location header. Using `Prefer: representation=resource` is not allowed for this method. The definition of the Binary REST API can be found at https://hl7.org/fhir/binary.html#rest.", + "description": "Creates a FHIR Binary resource. This method can be used to create a Binary resource either by using one of the accepted FHIR JSON content types, or as a raw data stream. If a resource is created with this method using the FHIR content type this method's behavior is the same as [`fhir.create`](https://cloud.google.com/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.fhirStores.fhir/create). If a resource type other than Binary is used in the request it's treated in the same way as non-FHIR data (e.g., images, zip archives, pdf files, documents). When a non-FHIR content type is used in the request, a Binary resource will be generated, and the uploaded data will be stored in the `content` field (`DSTU2` and `STU3`), or the `data` field (`R4`). The Binary resource's `contentType` will be filled in using the value of the `Content-Type` header, and the `securityContext` field (not present in `DSTU2`) will be populated from the `X-Security-Context` header if it exists. At this time `securityContext` has no special behavior in the Cloud Healthcare API. Note: the limit on data ingested through this method is 1 GB. For best performance, use a non-FHIR data type instead of wrapping the data in a Binary resource. Some of the Healthcare API features, such as [exporting to BigQuery](https://cloud.google.com/healthcare-api/docs/how-tos/fhir-export-bigquery) or [Pub/Sub notifications](https://cloud.google.com/healthcare-api/docs/fhir-pubsub#behavior_when_a_fhir_resource_is_too_large_or_traffic_is_high) with full resource content, do not support Binary resources that are larger than 10 MB. In these cases the resource's `data` field will be omitted. Instead, the \"http://hl7.org/fhir/StructureDefinition/data-absent-reason\" extension will be present to indicate that including the data is `unsupported`. On success, an empty `201 Created` response is returned. The newly created resource's ID and version are returned in the Location header. Using `Prefer: representation=resource` is not allowed for this method. The definition of the Binary REST API can be found at https://hl7.org/fhir/binary.html#rest.", "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/Binary", "httpMethod": "POST", "id": "healthcare.projects.locations.datasets.fhirStores.fhir.Binary-create", @@ -4783,7 +4783,7 @@ } } }, - "revision": "20241017", + "revision": "20241107", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "ActivateConsentRequest": { @@ -5097,7 +5097,7 @@ "id": "CharacterMaskConfig", "properties": { "maskingCharacter": { - "description": "Character to mask the sensitive values. If not supplied, defaults to \"*\".", + "description": "Optional. Character to mask the sensitive values. If not supplied, defaults to \"*\".", "type": "string" } }, @@ -5410,7 +5410,7 @@ "properties": { "config": { "$ref": "DeidentifyConfig", - "description": "The configuration to use when de-identifying resources that are added to this store." + "description": "Optional. The configuration to use when de-identifying resources that are added to this store." }, "store": { "description": "Optional. The full resource name of a Cloud Healthcare FHIR store, for example, `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}`.", @@ -5425,22 +5425,22 @@ "properties": { "dicom": { "$ref": "DicomConfig", - "description": "Configures de-id of application/DICOM content." + "description": "Optional. Configures de-id of application/DICOM content." }, "fhir": { "$ref": "FhirConfig", - "description": "Configures de-id of application/FHIR content." + "description": "Optional. Configures de-id of application/FHIR content." }, "image": { "$ref": "ImageConfig", - "description": "Configures de-identification of image pixels wherever they are found in the source_dataset." + "description": "Optional. Configures de-identification of image pixels wherever they are found in the source_dataset." }, "text": { "$ref": "TextConfig", - "description": "Configures de-identification of text wherever it is found in the source_dataset." + "description": "Optional. Configures de-identification of text wherever it is found in the source_dataset." }, "useRegionalDataProcessing": { - "description": "Ensures in-flight data remains in the region of origin during de-identification. The default value is false. Using this option results in a significant reduction of throughput, and is not compatible with `LOCATION` or `ORGANIZATION_NAME` infoTypes. `LOCATION` must be excluded within TextConfig, and must also be excluded within ImageConfig if image redaction is required.", + "description": "Optional. Ensures in-flight data remains in the region of origin during de-identification. The default value is false. Using this option results in a significant reduction of throughput, and is not compatible with `LOCATION` or `ORGANIZATION_NAME` infoTypes. `LOCATION` must be excluded within TextConfig, and must also be excluded within ImageConfig if image redaction is required.", "type": "boolean" } }, @@ -5552,7 +5552,7 @@ "description": "List of tags to remove. Keep all other tags." }, "skipIdRedaction": { - "description": "If true, skip replacing StudyInstanceUID, SeriesInstanceUID, SOPInstanceUID, and MediaStorageSOPInstanceUID and leave them untouched. The Cloud Healthcare API regenerates these UIDs by default based on the DICOM Standard's reasoning: \"Whilst these UIDs cannot be mapped directly to an individual out of context, given access to the original images, or to a database of the original images containing the UIDs, it would be possible to recover the individual's identity.\" http://dicom.nema.org/medical/dicom/current/output/chtml/part15/sect_E.3.9.html", + "description": "Optional. If true, skip replacing StudyInstanceUID, SeriesInstanceUID, SOPInstanceUID, and MediaStorageSOPInstanceUID and leave them untouched. The Cloud Healthcare API regenerates these UIDs by default based on the DICOM Standard's reasoning: \"Whilst these UIDs cannot be mapped directly to an individual out of context, given access to the original images, or to a database of the original images containing the UIDs, it would be possible to recover the individual's identity.\" http://dicom.nema.org/medical/dicom/current/output/chtml/part15/sect_E.3.9.html", "type": "boolean" } }, @@ -5934,11 +5934,11 @@ "id": "FhirConfig", "properties": { "defaultKeepExtensions": { - "description": "The behaviour for handling FHIR extensions that aren't otherwise specified for de-identification. If true, all extensions are preserved during de-identification by default. If false or unspecified, all extensions are removed during de-identification by default.", + "description": "Optional. The behaviour for handling FHIR extensions that aren't otherwise specified for de-identification. If true, all extensions are preserved during de-identification by default. If false or unspecified, all extensions are removed during de-identification by default.", "type": "boolean" }, "fieldMetadataList": { - "description": "Specifies FHIR paths to match and how to transform them. Any field that is not matched by a FieldMetadata is passed through to the output dataset unmodified. All extensions will be processed according to `default_keep_extensions`.", + "description": "Optional. Specifies FHIR paths to match and how to transform them. Any field that is not matched by a FieldMetadata is passed through to the output dataset unmodified. All extensions will be processed according to `default_keep_extensions`.", "items": { "$ref": "FieldMetadata" }, @@ -6137,7 +6137,7 @@ "id": "FieldMetadata", "properties": { "action": { - "description": "Deidentify action for one field.", + "description": "Optional. Deidentify action for one field.", "enum": [ "ACTION_UNSPECIFIED", "TRANSFORM", @@ -6145,7 +6145,7 @@ "DO_NOT_TRANSFORM" ], "enumDescriptions": [ - "No action specified.", + "No action specified. Defaults to DO_NOT_TRANSFORM.", "Transform the entire field.", "Inspect and transform any found PHI.", "Do not transform." @@ -6153,7 +6153,7 @@ "type": "string" }, "paths": { - "description": "List of paths to FHIR fields to be redacted. Each path is a period-separated list where each component is either a field name or FHIR type name, for example: Patient, HumanName. For \"choice\" types (those defined in the FHIR spec with the form: field[x]) we use two separate components. For example, \"deceasedAge.unit\" is matched by \"Deceased.Age.unit\". Supported types are: AdministrativeGenderCode, Base64Binary, Boolean, Code, Date, DateTime, Decimal, HumanName, Id, Instant, Integer, LanguageCode, Markdown, Oid, PositiveInt, String, UnsignedInt, Uri, Uuid, Xhtml.", + "description": "Optional. List of paths to FHIR fields to be redacted. Each path is a period-separated list where each component is either a field name or FHIR type name, for example: Patient, HumanName. For \"choice\" types (those defined in the FHIR spec with the form: field[x]) we use two separate components. For example, \"deceasedAge.unit\" is matched by \"Deceased.Age.unit\". Supported types are: AdministrativeGenderCode, Base64Binary, Boolean, Code, Date, DateTime, Decimal, HumanName, Id, Instant, Integer, LanguageCode, Markdown, Oid, PositiveInt, String, UnsignedInt, Uri, Uuid, Xhtml.", "items": { "type": "string" }, @@ -6572,7 +6572,7 @@ "id": "ImageConfig", "properties": { "textRedactionMode": { - "description": "Determines how to redact text from image.", + "description": "Optional. Determines how to redact text from image.", "enum": [ "TEXT_REDACTION_MODE_UNSPECIFIED", "REDACT_ALL_TEXT", @@ -6680,7 +6680,7 @@ "description": "Config for date shift." }, "infoTypes": { - "description": "InfoTypes to apply this transformation to. If this is not specified, the transformation applies to any info_type.", + "description": "Optional. InfoTypes to apply this transformation to. If this is not specified, the transformation applies to any info_type.", "items": { "type": "string" }, @@ -7949,7 +7949,7 @@ "id": "TagFilterList", "properties": { "tags": { - "description": "Tags to be filtered. Tags must be DICOM Data Elements, File Meta Elements, or Directory Structuring Elements, as defined at: http://dicom.nema.org/medical/dicom/current/output/html/part06.html#table_6-1,. They may be provided by \"Keyword\" or \"Tag\". For example \"PatientID\", \"00100010\".", + "description": "Optional. Tags to be filtered. Tags must be DICOM Data Elements, File Meta Elements, or Directory Structuring Elements, as defined at: http://dicom.nema.org/medical/dicom/current/output/html/part06.html#table_6-1,. They may be provided by \"Keyword\" or \"Tag\". For example \"PatientID\", \"00100010\".", "items": { "type": "string" }, @@ -7990,21 +7990,21 @@ "id": "TextConfig", "properties": { "additionalTransformations": { - "description": "Transformations to apply to the detected data, overridden by `exclude_info_types`.", + "description": "Optional. Transformations to apply to the detected data, overridden by `exclude_info_types`.", "items": { "$ref": "InfoTypeTransformation" }, "type": "array" }, "excludeInfoTypes": { - "description": "InfoTypes to skip transforming, overriding `additional_transformations`.", + "description": "Optional. InfoTypes to skip transforming, overriding `additional_transformations`.", "items": { "type": "string" }, "type": "array" }, "transformations": { - "description": "The transformations to apply to the detected data. Deprecated. Use `additional_transformations` instead.", + "description": "Optional. The transformations to apply to the detected data. Deprecated. Use `additional_transformations` instead.", "items": { "$ref": "InfoTypeTransformation" }, diff --git a/healthcare/v1/healthcare-gen.go b/healthcare/v1/healthcare-gen.go index b907bc44fde..abefa8e12a2 100644 --- a/healthcare/v1/healthcare-gen.go +++ b/healthcare/v1/healthcare-gen.go @@ -924,8 +924,8 @@ type CancelOperationRequest struct { // CharacterMaskConfig: Mask a string by replacing its characters with a fixed // character. type CharacterMaskConfig struct { - // MaskingCharacter: Character to mask the sensitive values. If not supplied, - // defaults to "*". + // MaskingCharacter: Optional. Character to mask the sensitive values. If not + // supplied, defaults to "*". MaskingCharacter string `json:"maskingCharacter,omitempty"` // ForceSendFields is a list of field names (e.g. "MaskingCharacter") to // unconditionally include in API requests. By default, fields with empty or @@ -1377,8 +1377,8 @@ func (s DateShiftConfig) MarshalJSON() ([]byte, error) { // DeidentifiedStoreDestination: Contains configuration for streaming // de-identified FHIR export. type DeidentifiedStoreDestination struct { - // Config: The configuration to use when de-identifying resources that are - // added to this store. + // Config: Optional. The configuration to use when de-identifying resources + // that are added to this store. Config *DeidentifyConfig `json:"config,omitempty"` // Store: Optional. The full resource name of a Cloud Healthcare FHIR store, // for example, @@ -1408,19 +1408,19 @@ func (s DeidentifiedStoreDestination) MarshalJSON() ([]byte, error) { // https://tools.ietf.org/html/rfc6838 media type or subtype. Configs are // applied in a nested manner at runtime. type DeidentifyConfig struct { - // Dicom: Configures de-id of application/DICOM content. + // Dicom: Optional. Configures de-id of application/DICOM content. Dicom *DicomConfig `json:"dicom,omitempty"` - // Fhir: Configures de-id of application/FHIR content. + // Fhir: Optional. Configures de-id of application/FHIR content. Fhir *FhirConfig `json:"fhir,omitempty"` - // Image: Configures de-identification of image pixels wherever they are found - // in the source_dataset. + // Image: Optional. Configures de-identification of image pixels wherever they + // are found in the source_dataset. Image *ImageConfig `json:"image,omitempty"` - // Text: Configures de-identification of text wherever it is found in the - // source_dataset. + // Text: Optional. Configures de-identification of text wherever it is found in + // the source_dataset. Text *TextConfig `json:"text,omitempty"` - // UseRegionalDataProcessing: Ensures in-flight data remains in the region of - // origin during de-identification. The default value is false. Using this - // option results in a significant reduction of throughput, and is not + // UseRegionalDataProcessing: Optional. Ensures in-flight data remains in the + // region of origin during de-identification. The default value is false. Using + // this option results in a significant reduction of throughput, and is not // compatible with `LOCATION` or `ORGANIZATION_NAME` infoTypes. `LOCATION` must // be excluded within TextConfig, and must also be excluded within ImageConfig // if image redaction is required. @@ -1597,7 +1597,7 @@ type DicomConfig struct { KeepList *TagFilterList `json:"keepList,omitempty"` // RemoveList: List of tags to remove. Keep all other tags. RemoveList *TagFilterList `json:"removeList,omitempty"` - // SkipIdRedaction: If true, skip replacing StudyInstanceUID, + // SkipIdRedaction: Optional. If true, skip replacing StudyInstanceUID, // SeriesInstanceUID, SOPInstanceUID, and MediaStorageSOPInstanceUID and leave // them untouched. The Cloud Healthcare API regenerates these UIDs by default // based on the DICOM Standard's reasoning: "Whilst these UIDs cannot be mapped @@ -2259,15 +2259,15 @@ func (s *Feature) UnmarshalJSON(data []byte) error { // FhirConfig: Specifies how to handle de-identification of a FHIR store. type FhirConfig struct { - // DefaultKeepExtensions: The behaviour for handling FHIR extensions that - // aren't otherwise specified for de-identification. If true, all extensions - // are preserved during de-identification by default. If false or unspecified, - // all extensions are removed during de-identification by default. + // DefaultKeepExtensions: Optional. The behaviour for handling FHIR extensions + // that aren't otherwise specified for de-identification. If true, all + // extensions are preserved during de-identification by default. If false or + // unspecified, all extensions are removed during de-identification by default. DefaultKeepExtensions bool `json:"defaultKeepExtensions,omitempty"` - // FieldMetadataList: Specifies FHIR paths to match and how to transform them. - // Any field that is not matched by a FieldMetadata is passed through to the - // output dataset unmodified. All extensions will be processed according to - // `default_keep_extensions`. + // FieldMetadataList: Optional. Specifies FHIR paths to match and how to + // transform them. Any field that is not matched by a FieldMetadata is passed + // through to the output dataset unmodified. All extensions will be processed + // according to `default_keep_extensions`. FieldMetadataList []*FieldMetadata `json:"fieldMetadataList,omitempty"` // ForceSendFields is a list of field names (e.g. "DefaultKeepExtensions") to // unconditionally include in API requests. By default, fields with empty or @@ -2580,15 +2580,15 @@ func (s Field) MarshalJSON() ([]byte, error) { // FieldMetadata: Specifies FHIR paths to match, and how to handle // de-identification of matching fields. type FieldMetadata struct { - // Action: Deidentify action for one field. + // Action: Optional. Deidentify action for one field. // // Possible values: - // "ACTION_UNSPECIFIED" - No action specified. + // "ACTION_UNSPECIFIED" - No action specified. Defaults to DO_NOT_TRANSFORM. // "TRANSFORM" - Transform the entire field. // "INSPECT_AND_TRANSFORM" - Inspect and transform any found PHI. // "DO_NOT_TRANSFORM" - Do not transform. Action string `json:"action,omitempty"` - // Paths: List of paths to FHIR fields to be redacted. Each path is a + // Paths: Optional. List of paths to FHIR fields to be redacted. Each path is a // period-separated list where each component is either a field name or FHIR // type name, for example: Patient, HumanName. For "choice" types (those // defined in the FHIR spec with the form: field[x]) we use two separate @@ -3390,7 +3390,7 @@ func (s Image) MarshalJSON() ([]byte, error) { // ImageConfig: Specifies how to handle de-identification of image pixels. type ImageConfig struct { - // TextRedactionMode: Determines how to redact text from image. + // TextRedactionMode: Optional. Determines how to redact text from image. // // Possible values: // "TEXT_REDACTION_MODE_UNSPECIFIED" - No text redaction specified. Same as @@ -3540,8 +3540,8 @@ type InfoTypeTransformation struct { CryptoHashConfig *CryptoHashConfig `json:"cryptoHashConfig,omitempty"` // DateShiftConfig: Config for date shift. DateShiftConfig *DateShiftConfig `json:"dateShiftConfig,omitempty"` - // InfoTypes: InfoTypes to apply this transformation to. If this is not - // specified, the transformation applies to any info_type. + // InfoTypes: Optional. InfoTypes to apply this transformation to. If this is + // not specified, the transformation applies to any info_type. InfoTypes []string `json:"infoTypes,omitempty"` // RedactConfig: Config for text redaction. RedactConfig *RedactConfig `json:"redactConfig,omitempty"` @@ -5481,8 +5481,8 @@ func (s StudyMetrics) MarshalJSON() ([]byte, error) { // TagFilterList: List of tags to be filtered. type TagFilterList struct { - // Tags: Tags to be filtered. Tags must be DICOM Data Elements, File Meta - // Elements, or Directory Structuring Elements, as defined at: + // Tags: Optional. Tags to be filtered. Tags must be DICOM Data Elements, File + // Meta Elements, or Directory Structuring Elements, as defined at: // http://dicom.nema.org/medical/dicom/current/output/html/part06.html#table_6-1,. // They may be provided by "Keyword" or "Tag". For example "PatientID", // "00100010". @@ -5558,14 +5558,14 @@ func (s TestIamPermissionsResponse) MarshalJSON() ([]byte, error) { } type TextConfig struct { - // AdditionalTransformations: Transformations to apply to the detected data, - // overridden by `exclude_info_types`. + // AdditionalTransformations: Optional. Transformations to apply to the + // detected data, overridden by `exclude_info_types`. AdditionalTransformations []*InfoTypeTransformation `json:"additionalTransformations,omitempty"` - // ExcludeInfoTypes: InfoTypes to skip transforming, overriding + // ExcludeInfoTypes: Optional. InfoTypes to skip transforming, overriding // `additional_transformations`. ExcludeInfoTypes []string `json:"excludeInfoTypes,omitempty"` - // Transformations: The transformations to apply to the detected data. - // Deprecated. Use `additional_transformations` instead. + // Transformations: Optional. The transformations to apply to the detected + // data. Deprecated. Use `additional_transformations` instead. Transformations []*InfoTypeTransformation `json:"transformations,omitempty"` // ForceSendFields is a list of field names (e.g. "AdditionalTransformations") // to unconditionally include in API requests. By default, fields with empty or @@ -17032,7 +17032,7 @@ type ProjectsLocationsDatasetsFhirStoresFhirBinaryCreateCall struct { // `Content-Type` header, and the `securityContext` field (not present in // `DSTU2`) will be populated from the `X-Security-Context` header if it // exists. At this time `securityContext` has no special behavior in the Cloud -// Healthcare API. Note: the limit on data ingested through this method is 2 +// Healthcare API. Note: the limit on data ingested through this method is 1 // GB. For best performance, use a non-FHIR data type instead of wrapping the // data in a Binary resource. Some of the Healthcare API features, such as // exporting to BigQuery diff --git a/healthcare/v1beta1/healthcare-api.json b/healthcare/v1beta1/healthcare-api.json index 05245a7d42f..f78a82342e6 100644 --- a/healthcare/v1beta1/healthcare-api.json +++ b/healthcare/v1beta1/healthcare-api.json @@ -4079,7 +4079,7 @@ "fhir": { "methods": { "Binary-create": { - "description": "Creates a FHIR Binary resource. This method can be used to create a Binary resource either by using one of the accepted FHIR JSON content types, or as a raw data stream. If a resource is created with this method using the FHIR content type this method's behavior is the same as [`fhir.create`](https://cloud.google.com/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.fhirStores.fhir/create). If a resource type other than Binary is used in the request it's treated in the same way as non-FHIR data (e.g., images, zip archives, pdf files, documents). When a non-FHIR content type is used in the request, a Binary resource will be generated, and the uploaded data will be stored in the `content` field (`DSTU2` and `STU3`), or the `data` field (`R4`). The Binary resource's `contentType` will be filled in using the value of the `Content-Type` header, and the `securityContext` field (not present in `DSTU2`) will be populated from the `X-Security-Context` header if it exists. At this time `securityContext` has no special behavior in the Cloud Healthcare API. Note: the limit on data ingested through this method is 2 GB. For best performance, use a non-FHIR data type instead of wrapping the data in a Binary resource. Some of the Healthcare API features, such as [exporting to BigQuery](https://cloud.google.com/healthcare-api/docs/how-tos/fhir-export-bigquery) or [Pub/Sub notifications](https://cloud.google.com/healthcare-api/docs/fhir-pubsub#behavior_when_a_fhir_resource_is_too_large_or_traffic_is_high) with full resource content, do not support Binary resources that are larger than 10 MB. In these cases the resource's `data` field will be omitted. Instead, the \"http://hl7.org/fhir/StructureDefinition/data-absent-reason\" extension will be present to indicate that including the data is `unsupported`. On success, an empty `201 Created` response is returned. The newly created resource's ID and version are returned in the Location header. Using `Prefer: representation=resource` is not allowed for this method. The definition of the Binary REST API can be found at https://hl7.org/fhir/binary.html#rest.", + "description": "Creates a FHIR Binary resource. This method can be used to create a Binary resource either by using one of the accepted FHIR JSON content types, or as a raw data stream. If a resource is created with this method using the FHIR content type this method's behavior is the same as [`fhir.create`](https://cloud.google.com/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.fhirStores.fhir/create). If a resource type other than Binary is used in the request it's treated in the same way as non-FHIR data (e.g., images, zip archives, pdf files, documents). When a non-FHIR content type is used in the request, a Binary resource will be generated, and the uploaded data will be stored in the `content` field (`DSTU2` and `STU3`), or the `data` field (`R4`). The Binary resource's `contentType` will be filled in using the value of the `Content-Type` header, and the `securityContext` field (not present in `DSTU2`) will be populated from the `X-Security-Context` header if it exists. At this time `securityContext` has no special behavior in the Cloud Healthcare API. Note: the limit on data ingested through this method is 1 GB. For best performance, use a non-FHIR data type instead of wrapping the data in a Binary resource. Some of the Healthcare API features, such as [exporting to BigQuery](https://cloud.google.com/healthcare-api/docs/how-tos/fhir-export-bigquery) or [Pub/Sub notifications](https://cloud.google.com/healthcare-api/docs/fhir-pubsub#behavior_when_a_fhir_resource_is_too_large_or_traffic_is_high) with full resource content, do not support Binary resources that are larger than 10 MB. In these cases the resource's `data` field will be omitted. Instead, the \"http://hl7.org/fhir/StructureDefinition/data-absent-reason\" extension will be present to indicate that including the data is `unsupported`. On success, an empty `201 Created` response is returned. The newly created resource's ID and version are returned in the Location header. Using `Prefer: representation=resource` is not allowed for this method. The definition of the Binary REST API can be found at https://hl7.org/fhir/binary.html#rest.", "flatPath": "v1beta1/projects/{projectsId}/locations/{locationsId}/datasets/{datasetsId}/fhirStores/{fhirStoresId}/fhir/Binary", "httpMethod": "POST", "id": "healthcare.projects.locations.datasets.fhirStores.fhir.Binary-create", @@ -5858,7 +5858,7 @@ } } }, - "revision": "20241009", + "revision": "20241107", "rootUrl": "https://healthcare.googleapis.com/", "schemas": { "AccessDeterminationLogConfig": { diff --git a/healthcare/v1beta1/healthcare-gen.go b/healthcare/v1beta1/healthcare-gen.go index ed2d0e564e5..152e01a1c93 100644 --- a/healthcare/v1beta1/healthcare-gen.go +++ b/healthcare/v1beta1/healthcare-gen.go @@ -21735,7 +21735,7 @@ type ProjectsLocationsDatasetsFhirStoresFhirBinaryCreateCall struct { // `Content-Type` header, and the `securityContext` field (not present in // `DSTU2`) will be populated from the `X-Security-Context` header if it // exists. At this time `securityContext` has no special behavior in the Cloud -// Healthcare API. Note: the limit on data ingested through this method is 2 +// Healthcare API. Note: the limit on data ingested through this method is 1 // GB. For best performance, use a non-FHIR data type instead of wrapping the // data in a Binary resource. Some of the Healthcare API features, such as // exporting to BigQuery diff --git a/securitycenter/v1/securitycenter-api.json b/securitycenter/v1/securitycenter-api.json index fa5c15b940e..9bdeea25926 100644 --- a/securitycenter/v1/securitycenter-api.json +++ b/securitycenter/v1/securitycenter-api.json @@ -5893,7 +5893,7 @@ } } }, - "revision": "20241026", + "revision": "20241111", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -7293,6 +7293,17 @@ }, "type": "object" }, + "Disk": { + "description": "Contains information about the disk associated with the finding.", + "id": "Disk", + "properties": { + "name": { + "description": "The name of the disk, for example, \"https://www.googleapis.com/compute/v1/projects/project-id/zones/zone-id/disks/disk-id\".", + "type": "string" + } + }, + "type": "object" + }, "DiskPath": { "description": "Path of the file in terms of underlying disk/partition identifiers.", "id": "DiskPath", @@ -7328,6 +7339,22 @@ "description": "An EffectiveEventThreatDetectionCustomModule is the representation of an Event Threat Detection custom module at a specified level of the resource hierarchy: organization, folder, or project. If a custom module is inherited from a parent organization or folder, the value of the `enablement_state` property in EffectiveEventThreatDetectionCustomModule is set to the value that is effective in the parent, instead of `INHERITED`. For example, if the module is enabled in a parent organization or folder, the effective `enablement_state` for the module in all child folders or projects is also `enabled`. EffectiveEventThreatDetectionCustomModule is read-only.", "id": "EffectiveEventThreatDetectionCustomModule", "properties": { + "cloudProvider": { + "description": "The cloud provider of the custom module.", + "enum": [ + "CLOUD_PROVIDER_UNSPECIFIED", + "GOOGLE_CLOUD_PLATFORM", + "AMAZON_WEB_SERVICES", + "MICROSOFT_AZURE" + ], + "enumDescriptions": [ + "Unspecified cloud provider.", + "Google Cloud Platform.", + "Amazon Web Services.", + "Microsoft Azure." + ], + "type": "string" + }, "config": { "additionalProperties": { "description": "Properties of the object.", @@ -7405,6 +7432,22 @@ "readOnly": true, "type": "string" }, + "cloudProvider": { + "description": "The cloud provider of the custom module.", + "enum": [ + "CLOUD_PROVIDER_UNSPECIFIED", + "GOOGLE_CLOUD_PLATFORM", + "AMAZON_WEB_SERVICES", + "MICROSOFT_AZURE" + ], + "enumDescriptions": [ + "Unspecified cloud provider.", + "Google Cloud.", + "Amazon Web Services (AWS).", + "Microsoft Azure." + ], + "type": "string" + }, "config": { "additionalProperties": { "description": "Properties of the object.", @@ -7659,6 +7702,10 @@ "description": "Contains more details about the finding.", "type": "string" }, + "disk": { + "$ref": "Disk", + "description": "Disk associated with the finding." + }, "eventTime": { "description": "The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding is later resolved, then this time reflects when the finding was resolved. This must not be set to a value greater than the current timestamp.", "format": "google-datetime", @@ -8114,6 +8161,22 @@ "description": "An EffectiveSecurityHealthAnalyticsCustomModule is the representation of a Security Health Analytics custom module at a specified level of the resource hierarchy: organization, folder, or project. If a custom module is inherited from a parent organization or folder, the value of the `enablementState` property in EffectiveSecurityHealthAnalyticsCustomModule is set to the value that is effective in the parent, instead of `INHERITED`. For example, if the module is enabled in a parent organization or folder, the effective enablement_state for the module in all child folders or projects is also `enabled`. EffectiveSecurityHealthAnalyticsCustomModule is read-only.", "id": "GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule", "properties": { + "cloudProvider": { + "description": "The cloud provider of the custom module.", + "enum": [ + "CLOUD_PROVIDER_UNSPECIFIED", + "GOOGLE_CLOUD_PLATFORM", + "AMAZON_WEB_SERVICES", + "MICROSOFT_AZURE" + ], + "enumDescriptions": [ + "Unspecified cloud provider.", + "Google Cloud Platform.", + "Amazon Web Services.", + "Microsoft Azure." + ], + "type": "string" + }, "customConfig": { "$ref": "GoogleCloudSecuritycenterV1CustomConfig", "description": "Output only. The user-specified configuration for the module.", @@ -8472,7 +8535,7 @@ "description": "A mapping of the sensitivity on Sensitive Data Protection finding to resource values. This mapping can only be used in combination with a resource_type that is related to BigQuery, e.g. \"bigquery.googleapis.com/Dataset\"." }, "tagValues": { - "description": "Required. Tag values combined with `AND` to check against. Values in the form \"tagValues/123\" Example: `[ \"tagValues/123\", \"tagValues/456\", \"tagValues/789\" ]` https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing", + "description": "Required. Tag values combined with `AND` to check against. For Google Cloud resources, they are tag value IDs in the form of \"tagValues/123\". Example: `[ \"tagValues/123\", \"tagValues/456\", \"tagValues/789\" ]` https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing", "items": { "type": "string" }, @@ -8524,6 +8587,22 @@ "readOnly": true, "type": "string" }, + "cloudProvider": { + "description": "The cloud provider of the custom module.", + "enum": [ + "CLOUD_PROVIDER_UNSPECIFIED", + "GOOGLE_CLOUD_PLATFORM", + "AMAZON_WEB_SERVICES", + "MICROSOFT_AZURE" + ], + "enumDescriptions": [ + "Unspecified cloud provider.", + "Google Cloud.", + "Amazon Web Services (AWS).", + "Microsoft Azure." + ], + "type": "string" + }, "customConfig": { "$ref": "GoogleCloudSecuritycenterV1CustomConfig", "description": "The user specified custom configuration for the module." @@ -9884,6 +9963,17 @@ }, "type": "object" }, + "GoogleCloudSecuritycenterV2Disk": { + "description": "Contains information about the disk associated with the finding.", + "id": "GoogleCloudSecuritycenterV2Disk", + "properties": { + "name": { + "description": "The name of the disk, for example, \"https://www.googleapis.com/compute/v1/projects/project-id/zones/zone-id/disks/disk-id\".", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudSecuritycenterV2DiskPath": { "description": "Path of the file in terms of underlying disk/partition identifiers.", "id": "GoogleCloudSecuritycenterV2DiskPath", @@ -10167,6 +10257,10 @@ "description": "Contains more details about the finding.", "type": "string" }, + "disk": { + "$ref": "GoogleCloudSecuritycenterV2Disk", + "description": "Disk associated with the finding." + }, "eventTime": { "description": "The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding is later resolved, then this time reflects when the finding was resolved. This must not be set to a value greater than the current timestamp.", "format": "google-datetime", @@ -11624,7 +11718,7 @@ "description": "A mapping of the sensitivity on Sensitive Data Protection finding to resource values. This mapping can only be used in combination with a resource_type that is related to BigQuery, e.g. \"bigquery.googleapis.com/Dataset\"." }, "tagValues": { - "description": "Tag values combined with `AND` to check against. Values in the form \"tagValues/123\" Example: `[ \"tagValues/123\", \"tagValues/456\", \"tagValues/789\" ]` https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing", + "description": "Tag values combined with `AND` to check against. For Google Cloud resources, they are tag value IDs in the form of \"tagValues/123\". Example: `[ \"tagValues/123\", \"tagValues/456\", \"tagValues/789\" ]` https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing", "items": { "type": "string" }, diff --git a/securitycenter/v1/securitycenter-gen.go b/securitycenter/v1/securitycenter-gen.go index a34671fd3e5..b98e8117b88 100644 --- a/securitycenter/v1/securitycenter-gen.go +++ b/securitycenter/v1/securitycenter-gen.go @@ -2740,6 +2740,30 @@ func (s *Detection) UnmarshalJSON(data []byte) error { return nil } +// Disk: Contains information about the disk associated with the finding. +type Disk struct { + // Name: The name of the disk, for example, + // "https://www.googleapis.com/compute/v1/projects/project-id/zones/zone-id/disk + // s/disk-id". + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Disk) MarshalJSON() ([]byte, error) { + type NoMethod Disk + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // DiskPath: Path of the file in terms of underlying disk/partition // identifiers. type DiskPath struct { @@ -2806,6 +2830,14 @@ func (s DynamicMuteRecord) MarshalJSON() ([]byte, error) { // `enablement_state` for the module in all child folders or projects is also // `enabled`. EffectiveEventThreatDetectionCustomModule is read-only. type EffectiveEventThreatDetectionCustomModule struct { + // CloudProvider: The cloud provider of the custom module. + // + // Possible values: + // "CLOUD_PROVIDER_UNSPECIFIED" - Unspecified cloud provider. + // "GOOGLE_CLOUD_PLATFORM" - Google Cloud Platform. + // "AMAZON_WEB_SERVICES" - Amazon Web Services. + // "MICROSOFT_AZURE" - Microsoft Azure. + CloudProvider string `json:"cloudProvider,omitempty"` // Config: Output only. Config for the effective module. Config googleapi.RawMessage `json:"config,omitempty"` // Description: Output only. The description for the module. @@ -2835,13 +2867,13 @@ type EffectiveEventThreatDetectionCustomModule struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "Config") to unconditionally - // include in API requests. By default, fields with empty or default values are - // omitted from API requests. See + // ForceSendFields is a list of field names (e.g. "CloudProvider") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "Config") to include in API + // NullFields is a list of field names (e.g. "CloudProvider") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -2898,6 +2930,14 @@ type EventThreatDetectionCustomModule struct { // inherits the enablement state from. The format is the same as the // EventThreatDetectionCustomModule resource name. AncestorModule string `json:"ancestorModule,omitempty"` + // CloudProvider: The cloud provider of the custom module. + // + // Possible values: + // "CLOUD_PROVIDER_UNSPECIFIED" - Unspecified cloud provider. + // "GOOGLE_CLOUD_PLATFORM" - Google Cloud. + // "AMAZON_WEB_SERVICES" - Amazon Web Services (AWS). + // "MICROSOFT_AZURE" - Microsoft Azure. + CloudProvider string `json:"cloudProvider,omitempty"` // Config: Config for the module. For the resident module, its config value is // defined at this level. For the inherited module, its config value is // inherited from the ancestor module. @@ -3158,6 +3198,8 @@ type Finding struct { Database *Database `json:"database,omitempty"` // Description: Contains more details about the finding. Description string `json:"description,omitempty"` + // Disk: Disk associated with the finding. + Disk *Disk `json:"disk,omitempty"` // EventTime: The time the finding was first detected. If an existing finding // is updated, then this is the time the update occurred. For example, if the // finding represents an open firewall, this property captures the time the @@ -3693,6 +3735,14 @@ func (s GoogleCloudSecuritycenterV1CustomOutputSpec) MarshalJSON() ([]byte, erro // enablement_state for the module in all child folders or projects is also // `enabled`. EffectiveSecurityHealthAnalyticsCustomModule is read-only. type GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule struct { + // CloudProvider: The cloud provider of the custom module. + // + // Possible values: + // "CLOUD_PROVIDER_UNSPECIFIED" - Unspecified cloud provider. + // "GOOGLE_CLOUD_PLATFORM" - Google Cloud Platform. + // "AMAZON_WEB_SERVICES" - Amazon Web Services. + // "MICROSOFT_AZURE" - Microsoft Azure. + CloudProvider string `json:"cloudProvider,omitempty"` // CustomConfig: Output only. The user-specified configuration for the module. CustomConfig *GoogleCloudSecuritycenterV1CustomConfig `json:"customConfig,omitempty"` // DisplayName: Output only. The display name for the custom module. The name @@ -3718,13 +3768,13 @@ type GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule str // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` - // ForceSendFields is a list of field names (e.g. "CustomConfig") to + // ForceSendFields is a list of field names (e.g. "CloudProvider") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CustomConfig") to include in API + // NullFields is a list of field names (e.g. "CloudProvider") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -4076,8 +4126,9 @@ type GoogleCloudSecuritycenterV1ResourceValueConfig struct { // combination with a resource_type that is related to BigQuery, e.g. // "bigquery.googleapis.com/Dataset". SensitiveDataProtectionMapping *GoogleCloudSecuritycenterV1SensitiveDataProtectionMapping `json:"sensitiveDataProtectionMapping,omitempty"` - // TagValues: Required. Tag values combined with `AND` to check against. Values - // in the form "tagValues/123" Example: `[ "tagValues/123", "tagValues/456", + // TagValues: Required. Tag values combined with `AND` to check against. For + // Google Cloud resources, they are tag value IDs in the form of + // "tagValues/123". Example: `[ "tagValues/123", "tagValues/456", // "tagValues/789" ]` // https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing TagValues []string `json:"tagValues,omitempty"` @@ -4149,6 +4200,14 @@ type GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule struct { // custom module. Otherwise, `ancestor_module` specifies the organization or // folder from which the custom module is inherited. AncestorModule string `json:"ancestorModule,omitempty"` + // CloudProvider: The cloud provider of the custom module. + // + // Possible values: + // "CLOUD_PROVIDER_UNSPECIFIED" - Unspecified cloud provider. + // "GOOGLE_CLOUD_PLATFORM" - Google Cloud. + // "AMAZON_WEB_SERVICES" - Amazon Web Services (AWS). + // "MICROSOFT_AZURE" - Microsoft Azure. + CloudProvider string `json:"cloudProvider,omitempty"` // CustomConfig: The user specified custom configuration for the module. CustomConfig *GoogleCloudSecuritycenterV1CustomConfig `json:"customConfig,omitempty"` // DisplayName: The display name of the Security Health Analytics custom @@ -5898,6 +5957,31 @@ func (s *GoogleCloudSecuritycenterV2Detection) UnmarshalJSON(data []byte) error return nil } +// GoogleCloudSecuritycenterV2Disk: Contains information about the disk +// associated with the finding. +type GoogleCloudSecuritycenterV2Disk struct { + // Name: The name of the disk, for example, + // "https://www.googleapis.com/compute/v1/projects/project-id/zones/zone-id/disk + // s/disk-id". + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudSecuritycenterV2Disk) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudSecuritycenterV2Disk + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudSecuritycenterV2DiskPath: Path of the file in terms of underlying // disk/partition identifiers. type GoogleCloudSecuritycenterV2DiskPath struct { @@ -6209,6 +6293,8 @@ type GoogleCloudSecuritycenterV2Finding struct { Database *GoogleCloudSecuritycenterV2Database `json:"database,omitempty"` // Description: Contains more details about the finding. Description string `json:"description,omitempty"` + // Disk: Disk associated with the finding. + Disk *GoogleCloudSecuritycenterV2Disk `json:"disk,omitempty"` // EventTime: The time the finding was first detected. If an existing finding // is updated, then this is the time the update occurred. For example, if the // finding represents an open firewall, this property captures the time the @@ -7656,9 +7742,9 @@ type GoogleCloudSecuritycenterV2ResourceValueConfig struct { // combination with a resource_type that is related to BigQuery, e.g. // "bigquery.googleapis.com/Dataset". SensitiveDataProtectionMapping *GoogleCloudSecuritycenterV2SensitiveDataProtectionMapping `json:"sensitiveDataProtectionMapping,omitempty"` - // TagValues: Tag values combined with `AND` to check against. Values in the - // form "tagValues/123" Example: `[ "tagValues/123", "tagValues/456", - // "tagValues/789" ]` + // TagValues: Tag values combined with `AND` to check against. For Google Cloud + // resources, they are tag value IDs in the form of "tagValues/123". Example: + // `[ "tagValues/123", "tagValues/456", "tagValues/789" ]` // https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing TagValues []string `json:"tagValues,omitempty"` // UpdateTime: Output only. Timestamp this resource value configuration was diff --git a/securitycenter/v1beta1/securitycenter-api.json b/securitycenter/v1beta1/securitycenter-api.json index cfcfac820cf..0281d1b73d9 100644 --- a/securitycenter/v1beta1/securitycenter-api.json +++ b/securitycenter/v1beta1/securitycenter-api.json @@ -913,7 +913,7 @@ } } }, - "revision": "20241026", + "revision": "20241111", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -2074,6 +2074,17 @@ }, "type": "object" }, + "Disk": { + "description": "Contains information about the disk associated with the finding.", + "id": "Disk", + "properties": { + "name": { + "description": "The name of the disk, for example, \"https://www.googleapis.com/compute/v1/projects/project-id/zones/zone-id/disks/disk-id\".", + "type": "string" + } + }, + "type": "object" + }, "DiskPath": { "description": "Path of the file in terms of underlying disk/partition identifiers.", "id": "DiskPath", @@ -2326,6 +2337,10 @@ "description": "Contains more details about the finding.", "type": "string" }, + "disk": { + "$ref": "Disk", + "description": "Disk associated with the finding." + }, "eventTime": { "description": "The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding is later resolved, then this time reflects when the finding was resolved. This must not be set to a value greater than the current timestamp.", "format": "google-datetime", @@ -2781,6 +2796,22 @@ "description": "An EffectiveSecurityHealthAnalyticsCustomModule is the representation of a Security Health Analytics custom module at a specified level of the resource hierarchy: organization, folder, or project. If a custom module is inherited from a parent organization or folder, the value of the `enablementState` property in EffectiveSecurityHealthAnalyticsCustomModule is set to the value that is effective in the parent, instead of `INHERITED`. For example, if the module is enabled in a parent organization or folder, the effective enablement_state for the module in all child folders or projects is also `enabled`. EffectiveSecurityHealthAnalyticsCustomModule is read-only.", "id": "GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule", "properties": { + "cloudProvider": { + "description": "The cloud provider of the custom module.", + "enum": [ + "CLOUD_PROVIDER_UNSPECIFIED", + "GOOGLE_CLOUD_PLATFORM", + "AMAZON_WEB_SERVICES", + "MICROSOFT_AZURE" + ], + "enumDescriptions": [ + "Unspecified cloud provider.", + "Google Cloud Platform.", + "Amazon Web Services.", + "Microsoft Azure." + ], + "type": "string" + }, "customConfig": { "$ref": "GoogleCloudSecuritycenterV1CustomConfig", "description": "Output only. The user-specified configuration for the module.", @@ -3139,7 +3170,7 @@ "description": "A mapping of the sensitivity on Sensitive Data Protection finding to resource values. This mapping can only be used in combination with a resource_type that is related to BigQuery, e.g. \"bigquery.googleapis.com/Dataset\"." }, "tagValues": { - "description": "Required. Tag values combined with `AND` to check against. Values in the form \"tagValues/123\" Example: `[ \"tagValues/123\", \"tagValues/456\", \"tagValues/789\" ]` https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing", + "description": "Required. Tag values combined with `AND` to check against. For Google Cloud resources, they are tag value IDs in the form of \"tagValues/123\". Example: `[ \"tagValues/123\", \"tagValues/456\", \"tagValues/789\" ]` https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing", "items": { "type": "string" }, @@ -3191,6 +3222,22 @@ "readOnly": true, "type": "string" }, + "cloudProvider": { + "description": "The cloud provider of the custom module.", + "enum": [ + "CLOUD_PROVIDER_UNSPECIFIED", + "GOOGLE_CLOUD_PLATFORM", + "AMAZON_WEB_SERVICES", + "MICROSOFT_AZURE" + ], + "enumDescriptions": [ + "Unspecified cloud provider.", + "Google Cloud.", + "Amazon Web Services (AWS).", + "Microsoft Azure." + ], + "type": "string" + }, "customConfig": { "$ref": "GoogleCloudSecuritycenterV1CustomConfig", "description": "The user specified custom configuration for the module." @@ -4632,6 +4679,17 @@ }, "type": "object" }, + "GoogleCloudSecuritycenterV2Disk": { + "description": "Contains information about the disk associated with the finding.", + "id": "GoogleCloudSecuritycenterV2Disk", + "properties": { + "name": { + "description": "The name of the disk, for example, \"https://www.googleapis.com/compute/v1/projects/project-id/zones/zone-id/disks/disk-id\".", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudSecuritycenterV2DiskPath": { "description": "Path of the file in terms of underlying disk/partition identifiers.", "id": "GoogleCloudSecuritycenterV2DiskPath", @@ -4915,6 +4973,10 @@ "description": "Contains more details about the finding.", "type": "string" }, + "disk": { + "$ref": "GoogleCloudSecuritycenterV2Disk", + "description": "Disk associated with the finding." + }, "eventTime": { "description": "The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding is later resolved, then this time reflects when the finding was resolved. This must not be set to a value greater than the current timestamp.", "format": "google-datetime", @@ -6372,7 +6434,7 @@ "description": "A mapping of the sensitivity on Sensitive Data Protection finding to resource values. This mapping can only be used in combination with a resource_type that is related to BigQuery, e.g. \"bigquery.googleapis.com/Dataset\"." }, "tagValues": { - "description": "Tag values combined with `AND` to check against. Values in the form \"tagValues/123\" Example: `[ \"tagValues/123\", \"tagValues/456\", \"tagValues/789\" ]` https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing", + "description": "Tag values combined with `AND` to check against. For Google Cloud resources, they are tag value IDs in the form of \"tagValues/123\". Example: `[ \"tagValues/123\", \"tagValues/456\", \"tagValues/789\" ]` https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing", "items": { "type": "string" }, diff --git a/securitycenter/v1beta1/securitycenter-gen.go b/securitycenter/v1beta1/securitycenter-gen.go index 0af201442b9..33b60ff6f00 100644 --- a/securitycenter/v1beta1/securitycenter-gen.go +++ b/securitycenter/v1beta1/securitycenter-gen.go @@ -1753,6 +1753,30 @@ func (s *Detection) UnmarshalJSON(data []byte) error { return nil } +// Disk: Contains information about the disk associated with the finding. +type Disk struct { + // Name: The name of the disk, for example, + // "https://www.googleapis.com/compute/v1/projects/project-id/zones/zone-id/disk + // s/disk-id". + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Disk) MarshalJSON() ([]byte, error) { + type NoMethod Disk + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // DiskPath: Path of the file in terms of underlying disk/partition // identifiers. type DiskPath struct { @@ -2051,6 +2075,8 @@ type Finding struct { Database *Database `json:"database,omitempty"` // Description: Contains more details about the finding. Description string `json:"description,omitempty"` + // Disk: Disk associated with the finding. + Disk *Disk `json:"disk,omitempty"` // EventTime: The time the finding was first detected. If an existing finding // is updated, then this is the time the update occurred. For example, if the // finding represents an open firewall, this property captures the time the @@ -2580,6 +2606,14 @@ func (s GoogleCloudSecuritycenterV1CustomOutputSpec) MarshalJSON() ([]byte, erro // enablement_state for the module in all child folders or projects is also // `enabled`. EffectiveSecurityHealthAnalyticsCustomModule is read-only. type GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule struct { + // CloudProvider: The cloud provider of the custom module. + // + // Possible values: + // "CLOUD_PROVIDER_UNSPECIFIED" - Unspecified cloud provider. + // "GOOGLE_CLOUD_PLATFORM" - Google Cloud Platform. + // "AMAZON_WEB_SERVICES" - Amazon Web Services. + // "MICROSOFT_AZURE" - Microsoft Azure. + CloudProvider string `json:"cloudProvider,omitempty"` // CustomConfig: Output only. The user-specified configuration for the module. CustomConfig *GoogleCloudSecuritycenterV1CustomConfig `json:"customConfig,omitempty"` // DisplayName: Output only. The display name for the custom module. The name @@ -2602,13 +2636,13 @@ type GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule str // "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{c // ustomModule}" Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "CustomConfig") to + // ForceSendFields is a list of field names (e.g. "CloudProvider") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CustomConfig") to include in API + // NullFields is a list of field names (e.g. "CloudProvider") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -2954,8 +2988,9 @@ type GoogleCloudSecuritycenterV1ResourceValueConfig struct { // combination with a resource_type that is related to BigQuery, e.g. // "bigquery.googleapis.com/Dataset". SensitiveDataProtectionMapping *GoogleCloudSecuritycenterV1SensitiveDataProtectionMapping `json:"sensitiveDataProtectionMapping,omitempty"` - // TagValues: Required. Tag values combined with `AND` to check against. Values - // in the form "tagValues/123" Example: `[ "tagValues/123", "tagValues/456", + // TagValues: Required. Tag values combined with `AND` to check against. For + // Google Cloud resources, they are tag value IDs in the form of + // "tagValues/123". Example: `[ "tagValues/123", "tagValues/456", // "tagValues/789" ]` // https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing TagValues []string `json:"tagValues,omitempty"` @@ -3024,6 +3059,14 @@ type GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule struct { // custom module. Otherwise, `ancestor_module` specifies the organization or // folder from which the custom module is inherited. AncestorModule string `json:"ancestorModule,omitempty"` + // CloudProvider: The cloud provider of the custom module. + // + // Possible values: + // "CLOUD_PROVIDER_UNSPECIFIED" - Unspecified cloud provider. + // "GOOGLE_CLOUD_PLATFORM" - Google Cloud. + // "AMAZON_WEB_SERVICES" - Amazon Web Services (AWS). + // "MICROSOFT_AZURE" - Microsoft Azure. + CloudProvider string `json:"cloudProvider,omitempty"` // CustomConfig: The user specified custom configuration for the module. CustomConfig *GoogleCloudSecuritycenterV1CustomConfig `json:"customConfig,omitempty"` // DisplayName: The display name of the Security Health Analytics custom @@ -4888,6 +4931,31 @@ func (s *GoogleCloudSecuritycenterV2Detection) UnmarshalJSON(data []byte) error return nil } +// GoogleCloudSecuritycenterV2Disk: Contains information about the disk +// associated with the finding. +type GoogleCloudSecuritycenterV2Disk struct { + // Name: The name of the disk, for example, + // "https://www.googleapis.com/compute/v1/projects/project-id/zones/zone-id/disk + // s/disk-id". + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudSecuritycenterV2Disk) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudSecuritycenterV2Disk + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudSecuritycenterV2DiskPath: Path of the file in terms of underlying // disk/partition identifiers. type GoogleCloudSecuritycenterV2DiskPath struct { @@ -5199,6 +5267,8 @@ type GoogleCloudSecuritycenterV2Finding struct { Database *GoogleCloudSecuritycenterV2Database `json:"database,omitempty"` // Description: Contains more details about the finding. Description string `json:"description,omitempty"` + // Disk: Disk associated with the finding. + Disk *GoogleCloudSecuritycenterV2Disk `json:"disk,omitempty"` // EventTime: The time the finding was first detected. If an existing finding // is updated, then this is the time the update occurred. For example, if the // finding represents an open firewall, this property captures the time the @@ -6646,9 +6716,9 @@ type GoogleCloudSecuritycenterV2ResourceValueConfig struct { // combination with a resource_type that is related to BigQuery, e.g. // "bigquery.googleapis.com/Dataset". SensitiveDataProtectionMapping *GoogleCloudSecuritycenterV2SensitiveDataProtectionMapping `json:"sensitiveDataProtectionMapping,omitempty"` - // TagValues: Tag values combined with `AND` to check against. Values in the - // form "tagValues/123" Example: `[ "tagValues/123", "tagValues/456", - // "tagValues/789" ]` + // TagValues: Tag values combined with `AND` to check against. For Google Cloud + // resources, they are tag value IDs in the form of "tagValues/123". Example: + // `[ "tagValues/123", "tagValues/456", "tagValues/789" ]` // https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing TagValues []string `json:"tagValues,omitempty"` // UpdateTime: Output only. Timestamp this resource value configuration was diff --git a/securitycenter/v1beta2/securitycenter-api.json b/securitycenter/v1beta2/securitycenter-api.json index 4512d8a400e..c55a4adab68 100644 --- a/securitycenter/v1beta2/securitycenter-api.json +++ b/securitycenter/v1beta2/securitycenter-api.json @@ -2003,7 +2003,7 @@ } } }, - "revision": "20241018", + "revision": "20241111", "rootUrl": "https://securitycenter.googleapis.com/", "schemas": { "Access": { @@ -3137,6 +3137,17 @@ }, "type": "object" }, + "Disk": { + "description": "Contains information about the disk associated with the finding.", + "id": "Disk", + "properties": { + "name": { + "description": "The name of the disk, for example, \"https://www.googleapis.com/compute/v1/projects/project-id/zones/zone-id/disks/disk-id\".", + "type": "string" + } + }, + "type": "object" + }, "DiskPath": { "description": "Path of the file in terms of underlying disk/partition identifiers.", "id": "DiskPath", @@ -3423,6 +3434,10 @@ "description": "Contains more details about the finding.", "type": "string" }, + "disk": { + "$ref": "Disk", + "description": "Disk associated with the finding." + }, "eventTime": { "description": "The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding is later resolved, then this time reflects when the finding was resolved. This must not be set to a value greater than the current timestamp.", "format": "google-datetime", @@ -3855,6 +3870,22 @@ "description": "An EffectiveSecurityHealthAnalyticsCustomModule is the representation of a Security Health Analytics custom module at a specified level of the resource hierarchy: organization, folder, or project. If a custom module is inherited from a parent organization or folder, the value of the `enablementState` property in EffectiveSecurityHealthAnalyticsCustomModule is set to the value that is effective in the parent, instead of `INHERITED`. For example, if the module is enabled in a parent organization or folder, the effective enablement_state for the module in all child folders or projects is also `enabled`. EffectiveSecurityHealthAnalyticsCustomModule is read-only.", "id": "GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule", "properties": { + "cloudProvider": { + "description": "The cloud provider of the custom module.", + "enum": [ + "CLOUD_PROVIDER_UNSPECIFIED", + "GOOGLE_CLOUD_PLATFORM", + "AMAZON_WEB_SERVICES", + "MICROSOFT_AZURE" + ], + "enumDescriptions": [ + "Unspecified cloud provider.", + "Google Cloud Platform.", + "Amazon Web Services.", + "Microsoft Azure." + ], + "type": "string" + }, "customConfig": { "$ref": "GoogleCloudSecuritycenterV1CustomConfig", "description": "Output only. The user-specified configuration for the module.", @@ -4213,7 +4244,7 @@ "description": "A mapping of the sensitivity on Sensitive Data Protection finding to resource values. This mapping can only be used in combination with a resource_type that is related to BigQuery, e.g. \"bigquery.googleapis.com/Dataset\"." }, "tagValues": { - "description": "Required. Tag values combined with `AND` to check against. Values in the form \"tagValues/123\" Example: `[ \"tagValues/123\", \"tagValues/456\", \"tagValues/789\" ]` https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing", + "description": "Required. Tag values combined with `AND` to check against. For Google Cloud resources, they are tag value IDs in the form of \"tagValues/123\". Example: `[ \"tagValues/123\", \"tagValues/456\", \"tagValues/789\" ]` https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing", "items": { "type": "string" }, @@ -4265,6 +4296,22 @@ "readOnly": true, "type": "string" }, + "cloudProvider": { + "description": "The cloud provider of the custom module.", + "enum": [ + "CLOUD_PROVIDER_UNSPECIFIED", + "GOOGLE_CLOUD_PLATFORM", + "AMAZON_WEB_SERVICES", + "MICROSOFT_AZURE" + ], + "enumDescriptions": [ + "Unspecified cloud provider.", + "Google Cloud.", + "Amazon Web Services (AWS).", + "Microsoft Azure." + ], + "type": "string" + }, "customConfig": { "$ref": "GoogleCloudSecuritycenterV1CustomConfig", "description": "The user specified custom configuration for the module." @@ -5625,6 +5672,17 @@ }, "type": "object" }, + "GoogleCloudSecuritycenterV2Disk": { + "description": "Contains information about the disk associated with the finding.", + "id": "GoogleCloudSecuritycenterV2Disk", + "properties": { + "name": { + "description": "The name of the disk, for example, \"https://www.googleapis.com/compute/v1/projects/project-id/zones/zone-id/disks/disk-id\".", + "type": "string" + } + }, + "type": "object" + }, "GoogleCloudSecuritycenterV2DiskPath": { "description": "Path of the file in terms of underlying disk/partition identifiers.", "id": "GoogleCloudSecuritycenterV2DiskPath", @@ -5908,6 +5966,10 @@ "description": "Contains more details about the finding.", "type": "string" }, + "disk": { + "$ref": "GoogleCloudSecuritycenterV2Disk", + "description": "Disk associated with the finding." + }, "eventTime": { "description": "The time the finding was first detected. If an existing finding is updated, then this is the time the update occurred. For example, if the finding represents an open firewall, this property captures the time the detector believes the firewall became open. The accuracy is determined by the detector. If the finding is later resolved, then this time reflects when the finding was resolved. This must not be set to a value greater than the current timestamp.", "format": "google-datetime", @@ -7365,7 +7427,7 @@ "description": "A mapping of the sensitivity on Sensitive Data Protection finding to resource values. This mapping can only be used in combination with a resource_type that is related to BigQuery, e.g. \"bigquery.googleapis.com/Dataset\"." }, "tagValues": { - "description": "Tag values combined with `AND` to check against. Values in the form \"tagValues/123\" Example: `[ \"tagValues/123\", \"tagValues/456\", \"tagValues/789\" ]` https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing", + "description": "Tag values combined with `AND` to check against. For Google Cloud resources, they are tag value IDs in the form of \"tagValues/123\". Example: `[ \"tagValues/123\", \"tagValues/456\", \"tagValues/789\" ]` https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing", "items": { "type": "string" }, diff --git a/securitycenter/v1beta2/securitycenter-gen.go b/securitycenter/v1beta2/securitycenter-gen.go index 172a4120eba..04eccba087f 100644 --- a/securitycenter/v1beta2/securitycenter-gen.go +++ b/securitycenter/v1beta2/securitycenter-gen.go @@ -1841,6 +1841,30 @@ func (s *Detection) UnmarshalJSON(data []byte) error { return nil } +// Disk: Contains information about the disk associated with the finding. +type Disk struct { + // Name: The name of the disk, for example, + // "https://www.googleapis.com/compute/v1/projects/project-id/zones/zone-id/disk + // s/disk-id". + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s Disk) MarshalJSON() ([]byte, error) { + type NoMethod Disk + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // DiskPath: Path of the file in terms of underlying disk/partition // identifiers. type DiskPath struct { @@ -2175,6 +2199,8 @@ type Finding struct { Database *Database `json:"database,omitempty"` // Description: Contains more details about the finding. Description string `json:"description,omitempty"` + // Disk: Disk associated with the finding. + Disk *Disk `json:"disk,omitempty"` // EventTime: The time the finding was first detected. If an existing finding // is updated, then this is the time the update occurred. For example, if the // finding represents an open firewall, this property captures the time the @@ -2649,6 +2675,14 @@ func (s GoogleCloudSecuritycenterV1CustomOutputSpec) MarshalJSON() ([]byte, erro // enablement_state for the module in all child folders or projects is also // `enabled`. EffectiveSecurityHealthAnalyticsCustomModule is read-only. type GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule struct { + // CloudProvider: The cloud provider of the custom module. + // + // Possible values: + // "CLOUD_PROVIDER_UNSPECIFIED" - Unspecified cloud provider. + // "GOOGLE_CLOUD_PLATFORM" - Google Cloud Platform. + // "AMAZON_WEB_SERVICES" - Amazon Web Services. + // "MICROSOFT_AZURE" - Microsoft Azure. + CloudProvider string `json:"cloudProvider,omitempty"` // CustomConfig: Output only. The user-specified configuration for the module. CustomConfig *GoogleCloudSecuritycenterV1CustomConfig `json:"customConfig,omitempty"` // DisplayName: Output only. The display name for the custom module. The name @@ -2671,13 +2705,13 @@ type GoogleCloudSecuritycenterV1EffectiveSecurityHealthAnalyticsCustomModule str // "projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{c // ustomModule}" Name string `json:"name,omitempty"` - // ForceSendFields is a list of field names (e.g. "CustomConfig") to + // ForceSendFields is a list of field names (e.g. "CloudProvider") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "CustomConfig") to include in API + // NullFields is a list of field names (e.g. "CloudProvider") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. @@ -3023,8 +3057,9 @@ type GoogleCloudSecuritycenterV1ResourceValueConfig struct { // combination with a resource_type that is related to BigQuery, e.g. // "bigquery.googleapis.com/Dataset". SensitiveDataProtectionMapping *GoogleCloudSecuritycenterV1SensitiveDataProtectionMapping `json:"sensitiveDataProtectionMapping,omitempty"` - // TagValues: Required. Tag values combined with `AND` to check against. Values - // in the form "tagValues/123" Example: `[ "tagValues/123", "tagValues/456", + // TagValues: Required. Tag values combined with `AND` to check against. For + // Google Cloud resources, they are tag value IDs in the form of + // "tagValues/123". Example: `[ "tagValues/123", "tagValues/456", // "tagValues/789" ]` // https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing TagValues []string `json:"tagValues,omitempty"` @@ -3093,6 +3128,14 @@ type GoogleCloudSecuritycenterV1SecurityHealthAnalyticsCustomModule struct { // custom module. Otherwise, `ancestor_module` specifies the organization or // folder from which the custom module is inherited. AncestorModule string `json:"ancestorModule,omitempty"` + // CloudProvider: The cloud provider of the custom module. + // + // Possible values: + // "CLOUD_PROVIDER_UNSPECIFIED" - Unspecified cloud provider. + // "GOOGLE_CLOUD_PLATFORM" - Google Cloud. + // "AMAZON_WEB_SERVICES" - Amazon Web Services (AWS). + // "MICROSOFT_AZURE" - Microsoft Azure. + CloudProvider string `json:"cloudProvider,omitempty"` // CustomConfig: The user specified custom configuration for the module. CustomConfig *GoogleCloudSecuritycenterV1CustomConfig `json:"customConfig,omitempty"` // DisplayName: The display name of the Security Health Analytics custom @@ -4839,6 +4882,31 @@ func (s *GoogleCloudSecuritycenterV2Detection) UnmarshalJSON(data []byte) error return nil } +// GoogleCloudSecuritycenterV2Disk: Contains information about the disk +// associated with the finding. +type GoogleCloudSecuritycenterV2Disk struct { + // Name: The name of the disk, for example, + // "https://www.googleapis.com/compute/v1/projects/project-id/zones/zone-id/disk + // s/disk-id". + Name string `json:"name,omitempty"` + // ForceSendFields is a list of field names (e.g. "Name") to unconditionally + // include in API requests. By default, fields with empty or default values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Name") to include in API requests + // with the JSON null value. By default, fields with empty values are omitted + // from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s GoogleCloudSecuritycenterV2Disk) MarshalJSON() ([]byte, error) { + type NoMethod GoogleCloudSecuritycenterV2Disk + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // GoogleCloudSecuritycenterV2DiskPath: Path of the file in terms of underlying // disk/partition identifiers. type GoogleCloudSecuritycenterV2DiskPath struct { @@ -5150,6 +5218,8 @@ type GoogleCloudSecuritycenterV2Finding struct { Database *GoogleCloudSecuritycenterV2Database `json:"database,omitempty"` // Description: Contains more details about the finding. Description string `json:"description,omitempty"` + // Disk: Disk associated with the finding. + Disk *GoogleCloudSecuritycenterV2Disk `json:"disk,omitempty"` // EventTime: The time the finding was first detected. If an existing finding // is updated, then this is the time the update occurred. For example, if the // finding represents an open firewall, this property captures the time the @@ -6597,9 +6667,9 @@ type GoogleCloudSecuritycenterV2ResourceValueConfig struct { // combination with a resource_type that is related to BigQuery, e.g. // "bigquery.googleapis.com/Dataset". SensitiveDataProtectionMapping *GoogleCloudSecuritycenterV2SensitiveDataProtectionMapping `json:"sensitiveDataProtectionMapping,omitempty"` - // TagValues: Tag values combined with `AND` to check against. Values in the - // form "tagValues/123" Example: `[ "tagValues/123", "tagValues/456", - // "tagValues/789" ]` + // TagValues: Tag values combined with `AND` to check against. For Google Cloud + // resources, they are tag value IDs in the form of "tagValues/123". Example: + // `[ "tagValues/123", "tagValues/456", "tagValues/789" ]` // https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing TagValues []string `json:"tagValues,omitempty"` // UpdateTime: Output only. Timestamp this resource value configuration was diff --git a/servicemanagement/v1/servicemanagement-api.json b/servicemanagement/v1/servicemanagement-api.json index 06f683fb598..ed2f82cd0ed 100644 --- a/servicemanagement/v1/servicemanagement-api.json +++ b/servicemanagement/v1/servicemanagement-api.json @@ -830,7 +830,7 @@ } } }, - "revision": "20240927", + "revision": "20241106", "rootUrl": "https://servicemanagement.googleapis.com/", "schemas": { "Advice": { @@ -1783,6 +1783,10 @@ "description": "Experimental features to be included during client library generation. These fields will be deprecated once the feature graduates and is enabled by default.", "id": "ExperimentalFeatures", "properties": { + "protobufPythonicTypesEnabled": { + "description": "Enables generation of protobuf code using new types that are more Pythonic which are included in `protobuf\u003e=5.29.x`. This feature will be enabled by default 1 month after launching the feature in preview packages.", + "type": "boolean" + }, "restAsyncIoEnabled": { "description": "Enables generation of asynchronous REST clients if `rest` transport is enabled. By default, asynchronous REST clients will not be generated. This feature will be enabled by default 1 month after launching the feature in preview packages.", "type": "boolean" @@ -3085,7 +3089,7 @@ "type": "string" }, "unit": { - "description": "Specify the unit of the quota limit. It uses the same syntax as Metric.unit. The supported unit kinds are determined by the quota backend system. Here are some examples: * \"1/min/{project}\" for quota per minute per project. Note: the order of unit components is insignificant. The \"1\" at the beginning is required to follow the metric unit syntax.", + "description": "Specify the unit of the quota limit. It uses the same syntax as MetricDescriptor.unit. The supported unit kinds are determined by the quota backend system. Here are some examples: * \"1/min/{project}\" for quota per minute per project. Note: the order of unit components is insignificant. The \"1\" at the beginning is required to follow the metric unit syntax.", "type": "string" }, "values": { diff --git a/servicemanagement/v1/servicemanagement-gen.go b/servicemanagement/v1/servicemanagement-gen.go index 0335684a836..01afaef1962 100644 --- a/servicemanagement/v1/servicemanagement-gen.go +++ b/servicemanagement/v1/servicemanagement-gen.go @@ -1660,20 +1660,25 @@ func (s EnumValue) MarshalJSON() ([]byte, error) { // library generation. These fields will be deprecated once the feature // graduates and is enabled by default. type ExperimentalFeatures struct { + // ProtobufPythonicTypesEnabled: Enables generation of protobuf code using new + // types that are more Pythonic which are included in `protobuf>=5.29.x`. This + // feature will be enabled by default 1 month after launching the feature in + // preview packages. + ProtobufPythonicTypesEnabled bool `json:"protobufPythonicTypesEnabled,omitempty"` // RestAsyncIoEnabled: Enables generation of asynchronous REST clients if // `rest` transport is enabled. By default, asynchronous REST clients will not // be generated. This feature will be enabled by default 1 month after // launching the feature in preview packages. RestAsyncIoEnabled bool `json:"restAsyncIoEnabled,omitempty"` - // ForceSendFields is a list of field names (e.g. "RestAsyncIoEnabled") to - // unconditionally include in API requests. By default, fields with empty or - // default values are omitted from API requests. See - // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more - // details. + // ForceSendFields is a list of field names (e.g. + // "ProtobufPythonicTypesEnabled") to unconditionally include in API requests. + // By default, fields with empty or default values are omitted from API + // requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields + // for more details. ForceSendFields []string `json:"-"` - // NullFields is a list of field names (e.g. "RestAsyncIoEnabled") to include - // in API requests with the JSON null value. By default, fields with empty - // values are omitted from API requests. See + // NullFields is a list of field names (e.g. "ProtobufPythonicTypesEnabled") to + // include in API requests with the JSON null value. By default, fields with + // empty values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` } @@ -3776,10 +3781,10 @@ type QuotaLimit struct { // as well as '-'. The maximum length of the limit name is 64 characters. Name string `json:"name,omitempty"` // Unit: Specify the unit of the quota limit. It uses the same syntax as - // Metric.unit. The supported unit kinds are determined by the quota backend - // system. Here are some examples: * "1/min/{project}" for quota per minute per - // project. Note: the order of unit components is insignificant. The "1" at the - // beginning is required to follow the metric unit syntax. + // MetricDescriptor.unit. The supported unit kinds are determined by the quota + // backend system. Here are some examples: * "1/min/{project}" for quota per + // minute per project. Note: the order of unit components is insignificant. The + // "1" at the beginning is required to follow the metric unit syntax. Unit string `json:"unit,omitempty"` // Values: Tiered limit values. You must specify this as a key:value pair, with // an integer value that is the maximum number of requests allowed for the diff --git a/speech/v1/speech-api.json b/speech/v1/speech-api.json index fcf425269f0..24095c82ce7 100644 --- a/speech/v1/speech-api.json +++ b/speech/v1/speech-api.json @@ -30,6 +30,26 @@ "description": "Regional Endpoint", "endpointUrl": "https://speech.me-west1.rep.googleapis.com/", "location": "me-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://speech.europe-west1.rep.googleapis.com/", + "location": "europe-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://speech.europe-west2.rep.googleapis.com/", + "location": "europe-west2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://speech.europe-west3.rep.googleapis.com/", + "location": "europe-west3" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://speech.europe-west4.rep.googleapis.com/", + "location": "europe-west4" } ], "fullyEncodeReservedExpansion": true, @@ -541,7 +561,7 @@ } } }, - "revision": "20241024", + "revision": "20241111", "rootUrl": "https://speech.googleapis.com/", "schemas": { "ABNFGrammar": { diff --git a/speech/v1p1beta1/speech-api.json b/speech/v1p1beta1/speech-api.json index 6a93d7f15f4..b099e84eee6 100644 --- a/speech/v1p1beta1/speech-api.json +++ b/speech/v1p1beta1/speech-api.json @@ -30,6 +30,26 @@ "description": "Regional Endpoint", "endpointUrl": "https://speech.me-west1.rep.googleapis.com/", "location": "me-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://speech.europe-west1.rep.googleapis.com/", + "location": "europe-west1" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://speech.europe-west2.rep.googleapis.com/", + "location": "europe-west2" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://speech.europe-west3.rep.googleapis.com/", + "location": "europe-west3" + }, + { + "description": "Regional Endpoint", + "endpointUrl": "https://speech.europe-west4.rep.googleapis.com/", + "location": "europe-west4" } ], "fullyEncodeReservedExpansion": true, @@ -541,7 +561,7 @@ } } }, - "revision": "20241024", + "revision": "20241111", "rootUrl": "https://speech.googleapis.com/", "schemas": { "ABNFGrammar": { diff --git a/sqladmin/v1/sqladmin-api.json b/sqladmin/v1/sqladmin-api.json index 077d69b2afa..f4ca98ac472 100644 --- a/sqladmin/v1/sqladmin-api.json +++ b/sqladmin/v1/sqladmin-api.json @@ -2366,7 +2366,7 @@ } } }, - "revision": "20241011", + "revision": "20241108", "rootUrl": "https://sqladmin.googleapis.com/", "schemas": { "AclEntry": { @@ -2864,19 +2864,6 @@ "MYSQL_5_5", "MYSQL_5_6", "MYSQL_5_7", - "SQLSERVER_2017_STANDARD", - "SQLSERVER_2017_ENTERPRISE", - "SQLSERVER_2017_EXPRESS", - "SQLSERVER_2017_WEB", - "POSTGRES_9_6", - "POSTGRES_10", - "POSTGRES_11", - "POSTGRES_12", - "POSTGRES_13", - "POSTGRES_14", - "POSTGRES_15", - "POSTGRES_16", - "POSTGRES_17", "MYSQL_8_0", "MYSQL_8_0_18", "MYSQL_8_0_26", @@ -2894,7 +2881,22 @@ "MYSQL_8_0_38", "MYSQL_8_0_39", "MYSQL_8_0_40", + "MYSQL_8_0_41", + "MYSQL_8_0_42", "MYSQL_8_4", + "SQLSERVER_2017_STANDARD", + "SQLSERVER_2017_ENTERPRISE", + "SQLSERVER_2017_EXPRESS", + "SQLSERVER_2017_WEB", + "POSTGRES_9_6", + "POSTGRES_10", + "POSTGRES_11", + "POSTGRES_12", + "POSTGRES_13", + "POSTGRES_14", + "POSTGRES_15", + "POSTGRES_16", + "POSTGRES_17", "SQLSERVER_2019_STANDARD", "SQLSERVER_2019_ENTERPRISE", "SQLSERVER_2019_EXPRESS", @@ -2915,6 +2917,9 @@ false, false, false, + true, + false, + false, false, false, false, @@ -2928,7 +2933,6 @@ false, false, false, - true, false, false, false, @@ -2956,19 +2960,6 @@ "The database version is MySQL 5.5.", "The database version is MySQL 5.6.", "The database version is MySQL 5.7.", - "The database version is SQL Server 2017 Standard.", - "The database version is SQL Server 2017 Enterprise.", - "The database version is SQL Server 2017 Express.", - "The database version is SQL Server 2017 Web.", - "The database version is PostgreSQL 9.6.", - "The database version is PostgreSQL 10.", - "The database version is PostgreSQL 11.", - "The database version is PostgreSQL 12.", - "The database version is PostgreSQL 13.", - "The database version is PostgreSQL 14.", - "The database version is PostgreSQL 15.", - "The database version is PostgreSQL 16.", - "The database version is PostgreSQL 17.", "The database version is MySQL 8.", "The database major version is MySQL 8.0 and the minor version is 18.", "The database major version is MySQL 8.0 and the minor version is 26.", @@ -2986,7 +2977,22 @@ "The database major version is MySQL 8.0 and the minor version is 38.", "The database major version is MySQL 8.0 and the minor version is 39.", "The database major version is MySQL 8.0 and the minor version is 40.", + "The database major version is MySQL 8.0 and the minor version is 41.", + "The database major version is MySQL 8.0 and the minor version is 42.", "The database version is MySQL 8.4.", + "The database version is SQL Server 2017 Standard.", + "The database version is SQL Server 2017 Enterprise.", + "The database version is SQL Server 2017 Express.", + "The database version is SQL Server 2017 Web.", + "The database version is PostgreSQL 9.6.", + "The database version is PostgreSQL 10.", + "The database version is PostgreSQL 11.", + "The database version is PostgreSQL 12.", + "The database version is PostgreSQL 13.", + "The database version is PostgreSQL 14.", + "The database version is PostgreSQL 15.", + "The database version is PostgreSQL 16.", + "The database version is PostgreSQL 17.", "The database version is SQL Server 2019 Standard.", "The database version is SQL Server 2019 Enterprise.", "The database version is SQL Server 2019 Express.", @@ -3173,19 +3179,6 @@ "MYSQL_5_5", "MYSQL_5_6", "MYSQL_5_7", - "SQLSERVER_2017_STANDARD", - "SQLSERVER_2017_ENTERPRISE", - "SQLSERVER_2017_EXPRESS", - "SQLSERVER_2017_WEB", - "POSTGRES_9_6", - "POSTGRES_10", - "POSTGRES_11", - "POSTGRES_12", - "POSTGRES_13", - "POSTGRES_14", - "POSTGRES_15", - "POSTGRES_16", - "POSTGRES_17", "MYSQL_8_0", "MYSQL_8_0_18", "MYSQL_8_0_26", @@ -3203,7 +3196,22 @@ "MYSQL_8_0_38", "MYSQL_8_0_39", "MYSQL_8_0_40", + "MYSQL_8_0_41", + "MYSQL_8_0_42", "MYSQL_8_4", + "SQLSERVER_2017_STANDARD", + "SQLSERVER_2017_ENTERPRISE", + "SQLSERVER_2017_EXPRESS", + "SQLSERVER_2017_WEB", + "POSTGRES_9_6", + "POSTGRES_10", + "POSTGRES_11", + "POSTGRES_12", + "POSTGRES_13", + "POSTGRES_14", + "POSTGRES_15", + "POSTGRES_16", + "POSTGRES_17", "SQLSERVER_2019_STANDARD", "SQLSERVER_2019_ENTERPRISE", "SQLSERVER_2019_EXPRESS", @@ -3224,6 +3232,9 @@ false, false, false, + true, + false, + false, false, false, false, @@ -3237,7 +3248,6 @@ false, false, false, - true, false, false, false, @@ -3265,19 +3275,6 @@ "The database version is MySQL 5.5.", "The database version is MySQL 5.6.", "The database version is MySQL 5.7.", - "The database version is SQL Server 2017 Standard.", - "The database version is SQL Server 2017 Enterprise.", - "The database version is SQL Server 2017 Express.", - "The database version is SQL Server 2017 Web.", - "The database version is PostgreSQL 9.6.", - "The database version is PostgreSQL 10.", - "The database version is PostgreSQL 11.", - "The database version is PostgreSQL 12.", - "The database version is PostgreSQL 13.", - "The database version is PostgreSQL 14.", - "The database version is PostgreSQL 15.", - "The database version is PostgreSQL 16.", - "The database version is PostgreSQL 17.", "The database version is MySQL 8.", "The database major version is MySQL 8.0 and the minor version is 18.", "The database major version is MySQL 8.0 and the minor version is 26.", @@ -3295,7 +3292,22 @@ "The database major version is MySQL 8.0 and the minor version is 38.", "The database major version is MySQL 8.0 and the minor version is 39.", "The database major version is MySQL 8.0 and the minor version is 40.", + "The database major version is MySQL 8.0 and the minor version is 41.", + "The database major version is MySQL 8.0 and the minor version is 42.", "The database version is MySQL 8.4.", + "The database version is SQL Server 2017 Standard.", + "The database version is SQL Server 2017 Enterprise.", + "The database version is SQL Server 2017 Express.", + "The database version is SQL Server 2017 Web.", + "The database version is PostgreSQL 9.6.", + "The database version is PostgreSQL 10.", + "The database version is PostgreSQL 11.", + "The database version is PostgreSQL 12.", + "The database version is PostgreSQL 13.", + "The database version is PostgreSQL 14.", + "The database version is PostgreSQL 15.", + "The database version is PostgreSQL 16.", + "The database version is PostgreSQL 17.", "The database version is SQL Server 2019 Standard.", "The database version is SQL Server 2019 Enterprise.", "The database version is SQL Server 2019 Express.", @@ -3893,6 +3905,17 @@ }, "type": "object" }, + "ExternalSyncSelectedObject": { + "description": "The selected object that Cloud SQL migrates.", + "id": "ExternalSyncSelectedObject", + "properties": { + "database": { + "description": "The name of the database that Cloud SQL migrates.", + "type": "string" + } + }, + "type": "object" + }, "FailoverContext": { "description": "Database instance failover context.", "id": "FailoverContext", @@ -3937,19 +3960,6 @@ "MYSQL_5_5", "MYSQL_5_6", "MYSQL_5_7", - "SQLSERVER_2017_STANDARD", - "SQLSERVER_2017_ENTERPRISE", - "SQLSERVER_2017_EXPRESS", - "SQLSERVER_2017_WEB", - "POSTGRES_9_6", - "POSTGRES_10", - "POSTGRES_11", - "POSTGRES_12", - "POSTGRES_13", - "POSTGRES_14", - "POSTGRES_15", - "POSTGRES_16", - "POSTGRES_17", "MYSQL_8_0", "MYSQL_8_0_18", "MYSQL_8_0_26", @@ -3967,7 +3977,22 @@ "MYSQL_8_0_38", "MYSQL_8_0_39", "MYSQL_8_0_40", + "MYSQL_8_0_41", + "MYSQL_8_0_42", "MYSQL_8_4", + "SQLSERVER_2017_STANDARD", + "SQLSERVER_2017_ENTERPRISE", + "SQLSERVER_2017_EXPRESS", + "SQLSERVER_2017_WEB", + "POSTGRES_9_6", + "POSTGRES_10", + "POSTGRES_11", + "POSTGRES_12", + "POSTGRES_13", + "POSTGRES_14", + "POSTGRES_15", + "POSTGRES_16", + "POSTGRES_17", "SQLSERVER_2019_STANDARD", "SQLSERVER_2019_ENTERPRISE", "SQLSERVER_2019_EXPRESS", @@ -3988,6 +4013,9 @@ false, false, false, + true, + false, + false, false, false, false, @@ -4001,7 +4029,6 @@ false, false, false, - true, false, false, false, @@ -4029,19 +4056,6 @@ "The database version is MySQL 5.5.", "The database version is MySQL 5.6.", "The database version is MySQL 5.7.", - "The database version is SQL Server 2017 Standard.", - "The database version is SQL Server 2017 Enterprise.", - "The database version is SQL Server 2017 Express.", - "The database version is SQL Server 2017 Web.", - "The database version is PostgreSQL 9.6.", - "The database version is PostgreSQL 10.", - "The database version is PostgreSQL 11.", - "The database version is PostgreSQL 12.", - "The database version is PostgreSQL 13.", - "The database version is PostgreSQL 14.", - "The database version is PostgreSQL 15.", - "The database version is PostgreSQL 16.", - "The database version is PostgreSQL 17.", "The database version is MySQL 8.", "The database major version is MySQL 8.0 and the minor version is 18.", "The database major version is MySQL 8.0 and the minor version is 26.", @@ -4059,7 +4073,22 @@ "The database major version is MySQL 8.0 and the minor version is 38.", "The database major version is MySQL 8.0 and the minor version is 39.", "The database major version is MySQL 8.0 and the minor version is 40.", + "The database major version is MySQL 8.0 and the minor version is 41.", + "The database major version is MySQL 8.0 and the minor version is 42.", "The database version is MySQL 8.4.", + "The database version is SQL Server 2017 Standard.", + "The database version is SQL Server 2017 Enterprise.", + "The database version is SQL Server 2017 Express.", + "The database version is SQL Server 2017 Web.", + "The database version is PostgreSQL 9.6.", + "The database version is PostgreSQL 10.", + "The database version is PostgreSQL 11.", + "The database version is PostgreSQL 12.", + "The database version is PostgreSQL 13.", + "The database version is PostgreSQL 14.", + "The database version is PostgreSQL 15.", + "The database version is PostgreSQL 16.", + "The database version is PostgreSQL 17.", "The database version is SQL Server 2019 Standard.", "The database version is SQL Server 2019 Enterprise.", "The database version is SQL Server 2019 Express.", @@ -4899,10 +4928,33 @@ "description": "The password for connecting to on-premises instance.", "type": "string" }, + "selectedObjects": { + "description": "Optional. A list of objects that the user selects for replication from an external source instance.", + "items": { + "$ref": "SelectedObjects" + }, + "type": "array" + }, "sourceInstance": { "$ref": "InstanceReference", "description": "The reference to Cloud SQL instance if the source is Cloud SQL." }, + "sslOption": { + "description": "Optional. SSL option for replica connection to the on-premises source.", + "enum": [ + "SSL_OPTION_UNSPECIFIED", + "DISABLE", + "REQUIRE", + "VERIFY_CA" + ], + "enumDescriptions": [ + "Unknown SSL option i.e. SSL option not specified by user.", + "SSL is not used for replica connection to the on-premises source.", + "SSL is required for replica connection to the on-premises source.", + "Verify CA is required for replica connection to the on-premises source." + ], + "type": "string" + }, "username": { "description": "The username for connecting to on-premises instance.", "type": "string" @@ -5004,7 +5056,8 @@ "CLUSTER_MAINTENANCE", "SELF_SERVICE_MAINTENANCE", "SWITCHOVER_TO_REPLICA", - "MAJOR_VERSION_UPGRADE" + "MAJOR_VERSION_UPGRADE", + "ADVANCED_BACKUP" ], "enumDeprecated": [ false, @@ -5052,6 +5105,7 @@ true, true, false, + false, false ], "enumDescriptions": [ @@ -5100,7 +5154,8 @@ "Indicates that the instance, its read replicas, and its cascading replicas are in maintenance. Maintenance typically gets initiated on groups of replicas first, followed by the primary instance. For each instance, maintenance typically causes the instance to be unavailable for 1-3 minutes.", "Indicates that the instance (and any of its replicas) are currently in maintenance. This is initiated as a self-service request by using SSM. Maintenance typically causes the instance to be unavailable for 1-3 minutes.", "Switches a primary instance to a replica. This operation runs as part of a switchover operation to the original primary instance.", - "Updates the major version of a Cloud SQL instance." + "Updates the major version of a Cloud SQL instance.", + "Creates a backup for an Advanced BackupTier Cloud SQL instance." ], "type": "string" }, @@ -5502,6 +5557,17 @@ }, "type": "object" }, + "SelectedObjects": { + "description": "A list of objects that the user selects for replication from an external source instance.", + "id": "SelectedObjects", + "properties": { + "database": { + "description": "Required. The name of the database to migrate.", + "type": "string" + } + }, + "type": "object" + }, "Settings": { "description": "Database instance settings.", "id": "Settings", @@ -6051,6 +6117,13 @@ "$ref": "MySqlSyncConfig", "description": "Optional. MySQL-specific settings for start external sync." }, + "selectedObjects": { + "description": "Optional. Migrate only the specified objects from the source instance. If this field is empty, then migrate all objects.", + "items": { + "$ref": "ExternalSyncSelectedObject" + }, + "type": "array" + }, "syncMode": { "description": "External sync mode", "enum": [ diff --git a/sqladmin/v1/sqladmin-gen.go b/sqladmin/v1/sqladmin-gen.go index 6a20b2df55e..0a853e49367 100644 --- a/sqladmin/v1/sqladmin-gen.go +++ b/sqladmin/v1/sqladmin-gen.go @@ -827,22 +827,6 @@ type ConnectSettings struct { // "MYSQL_5_5" - The database version is MySQL 5.5. // "MYSQL_5_6" - The database version is MySQL 5.6. // "MYSQL_5_7" - The database version is MySQL 5.7. - // "SQLSERVER_2017_STANDARD" - The database version is SQL Server 2017 - // Standard. - // "SQLSERVER_2017_ENTERPRISE" - The database version is SQL Server 2017 - // Enterprise. - // "SQLSERVER_2017_EXPRESS" - The database version is SQL Server 2017 - // Express. - // "SQLSERVER_2017_WEB" - The database version is SQL Server 2017 Web. - // "POSTGRES_9_6" - The database version is PostgreSQL 9.6. - // "POSTGRES_10" - The database version is PostgreSQL 10. - // "POSTGRES_11" - The database version is PostgreSQL 11. - // "POSTGRES_12" - The database version is PostgreSQL 12. - // "POSTGRES_13" - The database version is PostgreSQL 13. - // "POSTGRES_14" - The database version is PostgreSQL 14. - // "POSTGRES_15" - The database version is PostgreSQL 15. - // "POSTGRES_16" - The database version is PostgreSQL 16. - // "POSTGRES_17" - The database version is PostgreSQL 17. // "MYSQL_8_0" - The database version is MySQL 8. // "MYSQL_8_0_18" - The database major version is MySQL 8.0 and the minor // version is 18. @@ -876,7 +860,27 @@ type ConnectSettings struct { // version is 39. // "MYSQL_8_0_40" - The database major version is MySQL 8.0 and the minor // version is 40. + // "MYSQL_8_0_41" - The database major version is MySQL 8.0 and the minor + // version is 41. + // "MYSQL_8_0_42" - The database major version is MySQL 8.0 and the minor + // version is 42. // "MYSQL_8_4" - The database version is MySQL 8.4. + // "SQLSERVER_2017_STANDARD" - The database version is SQL Server 2017 + // Standard. + // "SQLSERVER_2017_ENTERPRISE" - The database version is SQL Server 2017 + // Enterprise. + // "SQLSERVER_2017_EXPRESS" - The database version is SQL Server 2017 + // Express. + // "SQLSERVER_2017_WEB" - The database version is SQL Server 2017 Web. + // "POSTGRES_9_6" - The database version is PostgreSQL 9.6. + // "POSTGRES_10" - The database version is PostgreSQL 10. + // "POSTGRES_11" - The database version is PostgreSQL 11. + // "POSTGRES_12" - The database version is PostgreSQL 12. + // "POSTGRES_13" - The database version is PostgreSQL 13. + // "POSTGRES_14" - The database version is PostgreSQL 14. + // "POSTGRES_15" - The database version is PostgreSQL 15. + // "POSTGRES_16" - The database version is PostgreSQL 16. + // "POSTGRES_17" - The database version is PostgreSQL 17. // "SQLSERVER_2019_STANDARD" - The database version is SQL Server 2019 // Standard. // "SQLSERVER_2019_ENTERPRISE" - The database version is SQL Server 2019 @@ -1073,22 +1077,6 @@ type DatabaseInstance struct { // "MYSQL_5_5" - The database version is MySQL 5.5. // "MYSQL_5_6" - The database version is MySQL 5.6. // "MYSQL_5_7" - The database version is MySQL 5.7. - // "SQLSERVER_2017_STANDARD" - The database version is SQL Server 2017 - // Standard. - // "SQLSERVER_2017_ENTERPRISE" - The database version is SQL Server 2017 - // Enterprise. - // "SQLSERVER_2017_EXPRESS" - The database version is SQL Server 2017 - // Express. - // "SQLSERVER_2017_WEB" - The database version is SQL Server 2017 Web. - // "POSTGRES_9_6" - The database version is PostgreSQL 9.6. - // "POSTGRES_10" - The database version is PostgreSQL 10. - // "POSTGRES_11" - The database version is PostgreSQL 11. - // "POSTGRES_12" - The database version is PostgreSQL 12. - // "POSTGRES_13" - The database version is PostgreSQL 13. - // "POSTGRES_14" - The database version is PostgreSQL 14. - // "POSTGRES_15" - The database version is PostgreSQL 15. - // "POSTGRES_16" - The database version is PostgreSQL 16. - // "POSTGRES_17" - The database version is PostgreSQL 17. // "MYSQL_8_0" - The database version is MySQL 8. // "MYSQL_8_0_18" - The database major version is MySQL 8.0 and the minor // version is 18. @@ -1122,7 +1110,27 @@ type DatabaseInstance struct { // version is 39. // "MYSQL_8_0_40" - The database major version is MySQL 8.0 and the minor // version is 40. + // "MYSQL_8_0_41" - The database major version is MySQL 8.0 and the minor + // version is 41. + // "MYSQL_8_0_42" - The database major version is MySQL 8.0 and the minor + // version is 42. // "MYSQL_8_4" - The database version is MySQL 8.4. + // "SQLSERVER_2017_STANDARD" - The database version is SQL Server 2017 + // Standard. + // "SQLSERVER_2017_ENTERPRISE" - The database version is SQL Server 2017 + // Enterprise. + // "SQLSERVER_2017_EXPRESS" - The database version is SQL Server 2017 + // Express. + // "SQLSERVER_2017_WEB" - The database version is SQL Server 2017 Web. + // "POSTGRES_9_6" - The database version is PostgreSQL 9.6. + // "POSTGRES_10" - The database version is PostgreSQL 10. + // "POSTGRES_11" - The database version is PostgreSQL 11. + // "POSTGRES_12" - The database version is PostgreSQL 12. + // "POSTGRES_13" - The database version is PostgreSQL 13. + // "POSTGRES_14" - The database version is PostgreSQL 14. + // "POSTGRES_15" - The database version is PostgreSQL 15. + // "POSTGRES_16" - The database version is PostgreSQL 16. + // "POSTGRES_17" - The database version is PostgreSQL 17. // "SQLSERVER_2019_STANDARD" - The database version is SQL Server 2019 // Standard. // "SQLSERVER_2019_ENTERPRISE" - The database version is SQL Server 2019 @@ -1816,6 +1824,28 @@ func (s ExportContextSqlExportOptionsPostgresExportOptions) MarshalJSON() ([]byt return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// ExternalSyncSelectedObject: The selected object that Cloud SQL migrates. +type ExternalSyncSelectedObject struct { + // Database: The name of the database that Cloud SQL migrates. + Database string `json:"database,omitempty"` + // ForceSendFields is a list of field names (e.g. "Database") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Database") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s ExternalSyncSelectedObject) MarshalJSON() ([]byte, error) { + type NoMethod ExternalSyncSelectedObject + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // FailoverContext: Database instance failover context. type FailoverContext struct { // Kind: This is always `sql#failoverContext`. @@ -1865,22 +1895,6 @@ type Flag struct { // "MYSQL_5_5" - The database version is MySQL 5.5. // "MYSQL_5_6" - The database version is MySQL 5.6. // "MYSQL_5_7" - The database version is MySQL 5.7. - // "SQLSERVER_2017_STANDARD" - The database version is SQL Server 2017 - // Standard. - // "SQLSERVER_2017_ENTERPRISE" - The database version is SQL Server 2017 - // Enterprise. - // "SQLSERVER_2017_EXPRESS" - The database version is SQL Server 2017 - // Express. - // "SQLSERVER_2017_WEB" - The database version is SQL Server 2017 Web. - // "POSTGRES_9_6" - The database version is PostgreSQL 9.6. - // "POSTGRES_10" - The database version is PostgreSQL 10. - // "POSTGRES_11" - The database version is PostgreSQL 11. - // "POSTGRES_12" - The database version is PostgreSQL 12. - // "POSTGRES_13" - The database version is PostgreSQL 13. - // "POSTGRES_14" - The database version is PostgreSQL 14. - // "POSTGRES_15" - The database version is PostgreSQL 15. - // "POSTGRES_16" - The database version is PostgreSQL 16. - // "POSTGRES_17" - The database version is PostgreSQL 17. // "MYSQL_8_0" - The database version is MySQL 8. // "MYSQL_8_0_18" - The database major version is MySQL 8.0 and the minor // version is 18. @@ -1914,7 +1928,27 @@ type Flag struct { // version is 39. // "MYSQL_8_0_40" - The database major version is MySQL 8.0 and the minor // version is 40. + // "MYSQL_8_0_41" - The database major version is MySQL 8.0 and the minor + // version is 41. + // "MYSQL_8_0_42" - The database major version is MySQL 8.0 and the minor + // version is 42. // "MYSQL_8_4" - The database version is MySQL 8.4. + // "SQLSERVER_2017_STANDARD" - The database version is SQL Server 2017 + // Standard. + // "SQLSERVER_2017_ENTERPRISE" - The database version is SQL Server 2017 + // Enterprise. + // "SQLSERVER_2017_EXPRESS" - The database version is SQL Server 2017 + // Express. + // "SQLSERVER_2017_WEB" - The database version is SQL Server 2017 Web. + // "POSTGRES_9_6" - The database version is PostgreSQL 9.6. + // "POSTGRES_10" - The database version is PostgreSQL 10. + // "POSTGRES_11" - The database version is PostgreSQL 11. + // "POSTGRES_12" - The database version is PostgreSQL 12. + // "POSTGRES_13" - The database version is PostgreSQL 13. + // "POSTGRES_14" - The database version is PostgreSQL 14. + // "POSTGRES_15" - The database version is PostgreSQL 15. + // "POSTGRES_16" - The database version is PostgreSQL 16. + // "POSTGRES_17" - The database version is PostgreSQL 17. // "SQLSERVER_2019_STANDARD" - The database version is SQL Server 2019 // Standard. // "SQLSERVER_2019_ENTERPRISE" - The database version is SQL Server 2019 @@ -3062,9 +3096,25 @@ type OnPremisesConfiguration struct { Kind string `json:"kind,omitempty"` // Password: The password for connecting to on-premises instance. Password string `json:"password,omitempty"` + // SelectedObjects: Optional. A list of objects that the user selects for + // replication from an external source instance. + SelectedObjects []*SelectedObjects `json:"selectedObjects,omitempty"` // SourceInstance: The reference to Cloud SQL instance if the source is Cloud // SQL. SourceInstance *InstanceReference `json:"sourceInstance,omitempty"` + // SslOption: Optional. SSL option for replica connection to the on-premises + // source. + // + // Possible values: + // "SSL_OPTION_UNSPECIFIED" - Unknown SSL option i.e. SSL option not + // specified by user. + // "DISABLE" - SSL is not used for replica connection to the on-premises + // source. + // "REQUIRE" - SSL is required for replica connection to the on-premises + // source. + // "VERIFY_CA" - Verify CA is required for replica connection to the + // on-premises source. + SslOption string `json:"sslOption,omitempty"` // Username: The username for connecting to on-premises instance. Username string `json:"username,omitempty"` // ForceSendFields is a list of field names (e.g. "CaCertificate") to @@ -3192,6 +3242,8 @@ type Operation struct { // instance. // "MAJOR_VERSION_UPGRADE" - Updates the major version of a Cloud SQL // instance. + // "ADVANCED_BACKUP" - Creates a backup for an Advanced BackupTier Cloud SQL + // instance. OperationType string `json:"operationType,omitempty"` // SelfLink: The URI of this resource. SelfLink string `json:"selfLink,omitempty"` @@ -3710,6 +3762,29 @@ func (s RotateServerCertificateContext) MarshalJSON() ([]byte, error) { return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) } +// SelectedObjects: A list of objects that the user selects for replication +// from an external source instance. +type SelectedObjects struct { + // Database: Required. The name of the database to migrate. + Database string `json:"database,omitempty"` + // ForceSendFields is a list of field names (e.g. "Database") to + // unconditionally include in API requests. By default, fields with empty or + // default values are omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more + // details. + ForceSendFields []string `json:"-"` + // NullFields is a list of field names (e.g. "Database") to include in API + // requests with the JSON null value. By default, fields with empty values are + // omitted from API requests. See + // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. + NullFields []string `json:"-"` +} + +func (s SelectedObjects) MarshalJSON() ([]byte, error) { + type NoMethod SelectedObjects + return gensupport.MarshalJSON(NoMethod(s), s.ForceSendFields, s.NullFields) +} + // Settings: Database instance settings. type Settings struct { // ActivationPolicy: The activation policy specifies when the instance is @@ -4275,6 +4350,9 @@ type SqlInstancesVerifyExternalSyncSettingsRequest struct { MigrationType string `json:"migrationType,omitempty"` // MysqlSyncConfig: Optional. MySQL-specific settings for start external sync. MysqlSyncConfig *MySqlSyncConfig `json:"mysqlSyncConfig,omitempty"` + // SelectedObjects: Optional. Migrate only the specified objects from the + // source instance. If this field is empty, then migrate all objects. + SelectedObjects []*ExternalSyncSelectedObject `json:"selectedObjects,omitempty"` // SyncMode: External sync mode // // Possible values: diff --git a/sts/v1/sts-api.json b/sts/v1/sts-api.json index c193f24cae9..1f8ad57f7aa 100644 --- a/sts/v1/sts-api.json +++ b/sts/v1/sts-api.json @@ -6,6 +6,13 @@ "description": "The Security Token Service exchanges Google or third-party credentials for a short-lived access token to Google Cloud resources.", "discoveryVersion": "v1", "documentationLink": "http://cloud.google.com/iam/docs/workload-identity-federation", + "endpoints": [ + { + "description": "Regional Endpoint", + "endpointUrl": "https://sts.us-east7.rep.googleapis.com/", + "location": "us-east7" + } + ], "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", @@ -116,7 +123,7 @@ } } }, - "revision": "20240904", + "revision": "20241106", "rootUrl": "https://sts.googleapis.com/", "schemas": { "GoogleIamV1Binding": { @@ -226,7 +233,7 @@ "type": "string" }, "expires_in": { - "description": "The amount of time, in seconds, between the time when the access token was issued and the time when the access token will expire. This field is absent when the `subject_token` in the request is a Google-issued, short-lived access token. In this case, the access token has the same expiration time as the `subject_token`.", + "description": "The amount of time, in seconds, between the time when the access token was issued and the time when the access token will expire. This field is absent when the `subject_token` in the request is a a short-lived access token for a Cloud Identity or Google Workspace user account. In this case, the access token has the same expiration time as the `subject_token`.", "format": "int32", "type": "integer" }, diff --git a/sts/v1/sts-gen.go b/sts/v1/sts-gen.go index 57c33fd47aa..93773a6df46 100644 --- a/sts/v1/sts-gen.go +++ b/sts/v1/sts-gen.go @@ -480,9 +480,9 @@ type GoogleIdentityStsV1ExchangeTokenResponse struct { AccessToken string `json:"access_token,omitempty"` // ExpiresIn: The amount of time, in seconds, between the time when the access // token was issued and the time when the access token will expire. This field - // is absent when the `subject_token` in the request is a Google-issued, - // short-lived access token. In this case, the access token has the same - // expiration time as the `subject_token`. + // is absent when the `subject_token` in the request is a a short-lived access + // token for a Cloud Identity or Google Workspace user account. In this case, + // the access token has the same expiration time as the `subject_token`. ExpiresIn int64 `json:"expires_in,omitempty"` // IssuedTokenType: The token type. Always matches the value of // `requested_token_type` from the request. diff --git a/sts/v1beta/sts-api.json b/sts/v1beta/sts-api.json index 65748877f7d..41bcf49a137 100644 --- a/sts/v1beta/sts-api.json +++ b/sts/v1beta/sts-api.json @@ -6,6 +6,13 @@ "description": "The Security Token Service exchanges Google or third-party credentials for a short-lived access token to Google Cloud resources.", "discoveryVersion": "v1", "documentationLink": "http://cloud.google.com/iam/docs/workload-identity-federation", + "endpoints": [ + { + "description": "Regional Endpoint", + "endpointUrl": "https://sts.us-east7.rep.googleapis.com/", + "location": "us-east7" + } + ], "fullyEncodeReservedExpansion": true, "icons": { "x16": "http://www.google.com/images/icons/product/search-16.gif", @@ -116,7 +123,7 @@ } } }, - "revision": "20240425", + "revision": "20241106", "rootUrl": "https://sts.googleapis.com/", "schemas": { "GoogleIamV1Binding": {