devices

PATCH /v1/devices/{devicesId}/deviceUsers/{deviceUsersId}/clientStates/{clientStatesId}

Updates the client state for the device user Note: This method is available only to customers who have one of the following SKUs: Enterprise Standard, Enterprise Plus, Enterprise for Education, and Cloud Identity Premium

Request

  • Base URL
    https://cloudidentity.googleapis.com
  • Auth
    OAuth 2 and OAuth 2
    Implicithttps://accounts.google.com/o/oauth2/auth
    Scopeshttps://www.googleapis.com/auth/cloud-identity.devices
    Authorization codehttps://accounts.google.com/o/oauth2/auth
    Token URLhttps://accounts.google.com/o/oauth2/token
    Scopeshttps://www.googleapis.com/auth/cloud-identity.devices

Path parameters

devicesId, string required
deviceUsersId, string required
clientStatesId, string required

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

key, string

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

customer, string

Optional. Resource name of the customer. If you're using this API for your own organization, use customers/my_customer If you're using this API to manage another organization, use customers/{customer}, where customer is the customer to whom the device belongs.

updateMask, string google-fieldmask

Optional. Comma-separated list of fully qualified names of fields to be updated. If not specified, all updatable fields in ClientState are updated.

Request body

GoogleAppsCloudidentityDevicesV1ClientState required

Represents the state associated with an API client calling the Devices API. Resource representing ClientState and supports updates from API users

assetTags, string[]

The caller can specify asset tags for this resource

complianceState, 'COMPLIANCE_STATE_UNSPECIFIED' | 'COMPLIANT' | 'NON_COMPLIANT'

The compliance state of the resource as specified by the API client.

createTime, string google-datetime

Output only. The time the client state data was created.

customId, string

This field may be used to store a unique identifier for the API resource within which these CustomAttributes are a field.

etag, string

The token that needs to be passed back for concurrency control in updates. Token needs to be passed back in UpdateRequest

healthScore, 'HEALTH_SCORE_UNSPECIFIED' | 'VERY_POOR' | 'POOR' | 'NEUTRAL' | 'GOOD' | 'VERY_GOOD'

The Health score of the resource. The Health score is the callers specification of the condition of the device from a usability point of view. For example, a third-party device management provider may specify a health score based on its compliance with organizational policies.

keyValuePairs, object

The map of key-value attributes stored by callers specific to a device. The total serialized length of this map may not exceed 10KB. No limit is placed on the number of attributes in a map.

lastUpdateTime, string google-datetime

Output only. The time the client state data was last updated.

managed, 'MANAGED_STATE_UNSPECIFIED' | 'MANAGED' | 'UNMANAGED'

The management state of the resource as specified by the API client.

name, string

Output only. Resource name of the ClientState in format: devices/{device}/deviceUsers/{device_user}/clientState/{partner}, where partner corresponds to the partner storing the data. For partners belonging to the "BeyondCorp Alliance", this is the partner ID specified to you by Google. For all other callers, this is a string of the form: {customer}-suffix, where customer is your customer ID. The suffix is any string the caller specifies. This string will be displayed verbatim in the administration console. This suffix is used in setting up Custom Access Levels in Context-Aware Access. Your organization's customer ID can be obtained from the URL: GET https://www.googleapis.com/admin/directory/v1/customers/my_customer The id field in the response contains the customer ID starting with the letter 'C'. The customer ID to be used in this API is the string after the letter 'C' (not including 'C')

ownerType, 'OWNER_TYPE_UNSPECIFIED' | 'OWNER_TYPE_CUSTOMER' | 'OWNER_TYPE_PARTNER'

Output only. The owner of the ClientState

scoreReason, string

A descriptive cause of the health score.

Response

Successful response

Operation required

This resource represents a long-running operation that is the result of a network API call.

done, boolean

If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.

error, Status

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.

metadata, object

Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.

name, string

The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations/{unique_id}.

response, object

The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get/Create/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.

Changes

No recorded changes to this operation across all 6 revisions of this API.