diff --git a/docs/dyn/assuredworkloads_v1.organizations.locations.workloads.html b/docs/dyn/assuredworkloads_v1.organizations.locations.workloads.html index 4978751b6b9..58cf7a903b5 100644 --- a/docs/dyn/assuredworkloads_v1.organizations.locations.workloads.html +++ b/docs/dyn/assuredworkloads_v1.organizations.locations.workloads.html @@ -97,6 +97,9 @@

Instance Methods

list_next()

Retrieves the next page of results.

+

+ mutatePartnerPermissions(name, body=None, x__xgafv=None)

+

Update the permissions settings for an existing partner workload. For force updates don't set etag field in the Workload. Only one update operation per workload can be in progress.

patch(name, body=None, updateMask=None, x__xgafv=None)

Updates an existing workload. Currently allows updating of workload display_name and labels. For force updates don't set etag field in the Workload. Only one update operation per workload can be in progress.

@@ -357,6 +360,80 @@

Method Details

+
+ mutatePartnerPermissions(name, body=None, x__xgafv=None) +
Update the permissions settings for an existing partner workload. For force updates don't set etag field in the Workload. Only one update operation per workload can be in progress.
+
+Args:
+  name: string, Required. The `name` field is used to identify the workload. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id} (required)
+  body: object, The request body.
+    The object takes the form of:
+
+{ # Request of updating permission settings for a partner workload.
+  "etag": "A String", # Optional. The etag of the workload. If this is provided, it must match the server's etag.
+  "partnerPermissions": { # Permissions granted to the AW Partner SA account for the customer workload # Required. The partner permissions to be updated.
+    "dataLogsViewer": True or False, # Allow partner to view data and logs
+    "remediateFolderViolations": True or False, # Allow partner to monitor folder and remediate violations
+    "serviceAccessApprover": True or False, # Allow partner to approve or reject Service Access requests
+  },
+  "updateMask": "A String", # Required. The list of fields to be updated. E.g. update_mask { paths: "partner_permissions.data_logs_viewer"}
+}
+
+  x__xgafv: string, V1 error format.
+    Allowed values
+      1 - v1 error format
+      2 - v2 error format
+
+Returns:
+  An object of the form:
+
+    { # A Workload object for managing highly regulated workloads of cloud customers.
+  "billingAccount": "A String", # Optional. The billing account used for the resources which are direct children of workload. This billing account is initially associated with the resources created as part of Workload creation. After the initial creation of these resources, the customer can change the assigned billing account. The resource name has the form `billingAccounts/{billing_account_id}`. For example, `billingAccounts/012345-567890-ABCDEF`.
+  "complianceRegime": "A String", # Required. Immutable. Compliance Regime associated with this workload.
+  "complianceStatus": { # Represents the Compliance Status of this workload # Output only. Count of active Violations in the Workload.
+    "acknowledgedViolationCount": 42, # Count of active Violations which are acknowledged in the Workload.
+    "activeViolationCount": 42, # Count of active Violations which haven't been acknowledged.
+  },
+  "compliantButDisallowedServices": [ # Output only. Urls for services which are compliant for this Assured Workload, but which are currently disallowed by the ResourceUsageRestriction org policy. Invoke RestrictAllowedResources endpoint to allow your project developers to use these services in their environment."
+    "A String",
+  ],
+  "createTime": "A String", # Output only. Immutable. The Workload creation timestamp.
+  "displayName": "A String", # Required. The user-assigned display name of the Workload. When present it must be between 4 to 30 characters. Allowed characters are: lowercase and uppercase letters, numbers, hyphen, and spaces. Example: My Workload
+  "enableSovereignControls": True or False, # Optional. Indicates the sovereignty status of the given workload. Currently meant to be used by Europe/Canada customers.
+  "etag": "A String", # Optional. ETag of the workload, it is calculated on the basis of the Workload contents. It will be used in Update & Delete operations.
+  "kajEnrollmentState": "A String", # Output only. Represents the KAJ enrollment state of the given workload.
+  "kmsSettings": { # Settings specific to the Key Management Service. This message is deprecated. In order to create a Keyring, callers should specify, ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field. # Input only. Settings used to create a CMEK crypto key. When set, a project with a KMS CMEK key is provisioned. This field is deprecated as of Feb 28, 2022. In order to create a Keyring, callers should specify, ENCRYPTION_KEYS_PROJECT or KEYRING in ResourceSettings.resource_type field.
+    "nextRotationTime": "A String", # Required. Input only. Immutable. The time at which the Key Management Service will automatically create a new version of the crypto key and mark it as the primary.
+    "rotationPeriod": "A String", # Required. Input only. Immutable. [next_rotation_time] will be advanced by this period when the Key Management Service automatically rotates a key. Must be at least 24 hours and at most 876,000 hours.
+  },
+  "labels": { # Optional. Labels applied to the workload.
+    "a_key": "A String",
+  },
+  "name": "A String", # Optional. The resource name of the workload. Format: organizations/{organization}/locations/{location}/workloads/{workload} Read-only.
+  "partner": "A String", # Optional. Partner regime associated with this workload.
+  "provisionedResourcesParent": "A String", # Input only. The parent resource for the resources managed by this Assured Workload. May be either empty or a folder resource which is a child of the Workload parent. If not specified all resources are created under the parent organization. Format: folders/{folder_id}
+  "resourceSettings": [ # Input only. Resource properties that are used to customize workload resources. These properties (such as custom project id) will be used to create workload resources if possible. This field is optional.
+    { # Represent the custom settings for the resources to be created.
+      "displayName": "A String", # User-assigned resource display name. If not empty it will be used to create a resource with the specified name.
+      "resourceId": "A String", # Resource identifier. For a project this represents project_id. If the project is already taken, the workload creation will fail. For KeyRing, this represents the keyring_id. For a folder, don't set this value as folder_id is assigned by Google.
+      "resourceType": "A String", # Indicates the type of resource. This field should be specified to correspond the id to the right resource type (CONSUMER_FOLDER or ENCRYPTION_KEYS_PROJECT)
+    },
+  ],
+  "resources": [ # Output only. The resources associated with this workload. These resources will be created when creating the workload. If any of the projects already exist, the workload creation will fail. Always read only.
+    { # Represent the resources that are children of this Workload.
+      "resourceId": "A String", # Resource identifier. For a project this represents project_number.
+      "resourceType": "A String", # Indicates the type of resource.
+    },
+  ],
+  "saaEnrollmentResponse": { # Signed Access Approvals (SAA) enrollment response. # Output only. Represents the SAA enrollment response of the given workload. SAA enrollment response is queried during GetWorkload call. In failure cases, user friendly error message is shown in SAA details page.
+    "setupErrors": [ # Indicates SAA enrollment setup error if any.
+      "A String",
+    ],
+    "setupStatus": "A String", # Indicates SAA enrollment status of a given workload.
+  },
+}
+
+
patch(name, body=None, updateMask=None, x__xgafv=None)
Updates an existing workload. Currently allows updating of workload display_name and labels. For force updates don't set etag field in the Workload. Only one update operation per workload can be in progress.
diff --git a/googleapiclient/discovery_cache/documents/assuredworkloads.v1.json b/googleapiclient/discovery_cache/documents/assuredworkloads.v1.json
index 48e5bba010f..2bc7e69583e 100644
--- a/googleapiclient/discovery_cache/documents/assuredworkloads.v1.json
+++ b/googleapiclient/discovery_cache/documents/assuredworkloads.v1.json
@@ -310,6 +310,34 @@
                     "https://www.googleapis.com/auth/cloud-platform"
                   ]
                 },
+                "mutatePartnerPermissions": {
+                  "description": "Update the permissions settings for an existing partner workload. For force updates don't set etag field in the Workload. Only one update operation per workload can be in progress.",
+                  "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/workloads/{workloadsId}:mutatePartnerPermissions",
+                  "httpMethod": "PATCH",
+                  "id": "assuredworkloads.organizations.locations.workloads.mutatePartnerPermissions",
+                  "parameterOrder": [
+                    "name"
+                  ],
+                  "parameters": {
+                    "name": {
+                      "description": "Required. The `name` field is used to identify the workload. Format: organizations/{org_id}/locations/{location_id}/workloads/{workload_id}",
+                      "location": "path",
+                      "pattern": "^organizations/[^/]+/locations/[^/]+/workloads/[^/]+$",
+                      "required": true,
+                      "type": "string"
+                    }
+                  },
+                  "path": "v1/{+name}:mutatePartnerPermissions",
+                  "request": {
+                    "$ref": "GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest"
+                  },
+                  "response": {
+                    "$ref": "GoogleCloudAssuredworkloadsV1Workload"
+                  },
+                  "scopes": [
+                    "https://www.googleapis.com/auth/cloud-platform"
+                  ]
+                },
                 "patch": {
                   "description": "Updates an existing workload. Currently allows updating of workload display_name and labels. For force updates don't set etag field in the Workload. Only one update operation per workload can be in progress.",
                   "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/workloads/{workloadsId}",
@@ -491,7 +519,7 @@
       }
     }
   },
-  "revision": "20221110",
+  "revision": "20221205",
   "rootUrl": "https://assuredworkloads.googleapis.com/",
   "schemas": {
     "GoogleCloudAssuredworkloadsV1AcknowledgeViolationRequest": {
@@ -607,6 +635,26 @@
       },
       "type": "object"
     },
+    "GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest": {
+      "description": "Request of updating permission settings for a partner workload.",
+      "id": "GoogleCloudAssuredworkloadsV1MutatePartnerPermissionsRequest",
+      "properties": {
+        "etag": {
+          "description": "Optional. The etag of the workload. If this is provided, it must match the server's etag.",
+          "type": "string"
+        },
+        "partnerPermissions": {
+          "$ref": "GoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions",
+          "description": "Required. The partner permissions to be updated."
+        },
+        "updateMask": {
+          "description": "Required. The list of fields to be updated. E.g. update_mask { paths: \"partner_permissions.data_logs_viewer\"}",
+          "format": "google-fieldmask",
+          "type": "string"
+        }
+      },
+      "type": "object"
+    },
     "GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest": {
       "description": "Request for restricting list of available resources in Workload environment.",
       "id": "GoogleCloudAssuredworkloadsV1RestrictAllowedResourcesRequest",
@@ -1015,6 +1063,25 @@
       },
       "type": "object"
     },
+    "GoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions": {
+      "description": "Permissions granted to the AW Partner SA account for the customer workload",
+      "id": "GoogleCloudAssuredworkloadsV1WorkloadPartnerPermissions",
+      "properties": {
+        "dataLogsViewer": {
+          "description": "Allow partner to view data and logs",
+          "type": "boolean"
+        },
+        "remediateFolderViolations": {
+          "description": "Allow partner to monitor folder and remediate violations",
+          "type": "boolean"
+        },
+        "serviceAccessApprover": {
+          "description": "Allow partner to approve or reject Service Access requests",
+          "type": "boolean"
+        }
+      },
+      "type": "object"
+    },
     "GoogleCloudAssuredworkloadsV1WorkloadResourceInfo": {
       "description": "Represent the resources that are children of this Workload.",
       "id": "GoogleCloudAssuredworkloadsV1WorkloadResourceInfo",
diff --git a/googleapiclient/discovery_cache/documents/assuredworkloads.v1beta1.json b/googleapiclient/discovery_cache/documents/assuredworkloads.v1beta1.json
index 9b88dde9be8..40634b41a68 100644
--- a/googleapiclient/discovery_cache/documents/assuredworkloads.v1beta1.json
+++ b/googleapiclient/discovery_cache/documents/assuredworkloads.v1beta1.json
@@ -595,7 +595,7 @@
       }
     }
   },
-  "revision": "20221110",
+  "revision": "20221205",
   "rootUrl": "https://assuredworkloads.googleapis.com/",
   "schemas": {
     "GoogleCloudAssuredworkloadsV1beta1AcknowledgeViolationRequest": {