Units
A unit is a sub-grouping within an installation. A common use case for a unit might be an individual apartment which is located within an apartment block. A unit can also often be considered a "rentable space". For example, it could be an office space located within a larger office building that contains multiple office spaces rented by different companies. Other use cases include hotel rooms (units) inside a hotel (installation).
Resource name of the unit. It must have the format installations/*/units/*, for example: installations/surelock-homes-hq/units/101.
Display name.
Time the unit was moved in.
Time the unit was moved out.
The privacy settings of the unit. Can either be enabled or disabled. If enabled, owners and installation managers can see neither events nor users that belong to the unit.
The resource names of the default access rights to be associated within this unit. For example: installations/surelock-homes-hq/access-rights/baskerville. A maximum of 5 access rights can be specified.
The resource name of the manager resource that currently controls this unit. A manager resource is any resource (such as a booking) that creates and governs the lifecycle of this unit. Example: "installations/surelock-homes-hq/bookings/watson-family-booking" If set, this unit is considered "managed" and cannot be modified directly. It behaves as a side-effect of the manager resource. For example, a unit may become managed when a booking is checked in, and unmanaged when the booking is checked out.
Output only. Resource name of the policy. It must have the format of installations/*/units/*/iam-policies, for example: installations/surelock-homes-hq/units/101/iam-policies/standard.
Specifies the identity requesting access to this resource.
The names of the roles this policy grants.
The privacy status of the unit.
The personal name, forename or given name ("first name"). It could also contain a middle name. First name is not used because the given name is not placed first in some cultures.
The access rights resource names to bind as an association to the occupant. For example: installations/surelock-homes-hq/units/101/access-rights/baskerville.
The IAM roles to bind as an association to the occupant. For example: iam-roles/unit.admin.
The surname or family name ("last name"). It could also contain more than one surname so that both matrilineal and patrilineal surnames can be included in one place. Last name is not used because the family name is not placed last in some cultures.
The email address of the occupant. It must be unique within the unit.
Representation of an IAM policy inside the API
Output only. Resource name of the policy. It must have the format of installations/*/units/*/iam-policies, for example: installations/surelock-homes-hq/units/101/iam-policies/standard.
Specifies the identity requesting access to this resource.
The names of the roles this policy grants.
Representation of a unit resource inside the API
Resource name of the unit. It must have the format installations/*/units/*, for example: installations/surelock-homes-hq/units/101.
Display name.
Time the unit was moved in.
Time the unit was moved out.
The privacy settings of the unit. Can either be enabled or disabled. If enabled, owners and installation managers can see neither events nor users that belong to the unit.
The resource names of the default access rights to be associated within this unit. For example: installations/surelock-homes-hq/access-rights/baskerville. A maximum of 5 access rights can be specified.
The resource name of the manager resource that currently controls this unit. A manager resource is any resource (such as a booking) that creates and governs the lifecycle of this unit. Example: "installations/surelock-homes-hq/bookings/watson-family-booking" If set, this unit is considered "managed" and cannot be modified directly. It behaves as a side-effect of the manager resource. For example, a unit may become managed when a booking is checked in, and unmanaged when the booking is checked out.
Create a unit
Creates a new unit.
Input
Resource name of the parent resource under which the unit is created.
The unit resource to be created. Client must not set the Unit.name field.
The unit id to use for this unit. If it's empty the server will autogenerate a unique identifier.
Output
Resource name of the unit. It must have the format installations/*/units/*,
Display name.
Time the unit was moved in.
Time the unit was moved out.
The privacy settings of the unit. Can either be enabled or disabled. If enabled, owners and installation managers can see neither events nor users that belong to the unit.
The resource names of the default access rights to be associated within this unit. For example: installations/surelock-homes-hq/access-rights/baskerville. A maximum of 5 access rights can be specified.
The resource name of the manager resource that currently controls this unit. A manager resource is any resource (such as a booking) that creates and governs the lifecycle of this unit. Example: "installations/surelock-homes-hq/bookings/watson-family-booking" If set, this unit is considered "managed" and cannot be modified directly. It behaves as a side-effect of the manager resource. For example, a unit may become managed when a booking is checked in, and unmanaged when the booking is checked out.
Get an existing unit
Retrieves an existing unit.
Input
The name of the requested unit resource.
Output
Resource name of the unit. It must have the format installations/*/units/*,
Display name.
Time the unit was moved in.
Time the unit was moved out.
The privacy settings of the unit. Can either be enabled or disabled. If enabled, owners and installation managers can see neither events nor users that belong to the unit.
The resource names of the default access rights to be associated within this unit. For example: installations/surelock-homes-hq/access-rights/baskerville. A maximum of 5 access rights can be specified.
The resource name of the manager resource that currently controls this unit. A manager resource is any resource (such as a booking) that creates and governs the lifecycle of this unit. Example: "installations/surelock-homes-hq/bookings/watson-family-booking" If set, this unit is considered "managed" and cannot be modified directly. It behaves as a side-effect of the manager resource. For example, a unit may become managed when a booking is checked in, and unmanaged when the booking is checked out.
List units
Returns a list of units that have been previously created.
Input
The parent resource name,
The maximum number of items to return.
The next_page_token value returned from a previous List request, if any.
A filter that chooses which units to return.
How the results should be sorted.
Output
The field name should match the noun units in the method name. There will be a maximum number of items returned based on the page_size field in the request.
Token to retrieve the next page of results, or empty if there are no more results in the list.
Update an existing unit
Updates an existing unit.
Input
The unit resource which replaces the resource on the server.
The update mask applied to the resource.
Output
Resource name of the unit. It must have the format installations/*/units/*,
Display name.
Time the unit was moved in.
Time the unit was moved out.
The privacy settings of the unit. Can either be enabled or disabled. If enabled, owners and installation managers can see neither events nor users that belong to the unit.
The resource names of the default access rights to be associated within this unit. For example: installations/surelock-homes-hq/access-rights/baskerville. A maximum of 5 access rights can be specified.
The resource name of the manager resource that currently controls this unit. A manager resource is any resource (such as a booking) that creates and governs the lifecycle of this unit. Example: "installations/surelock-homes-hq/bookings/watson-family-booking" If set, this unit is considered "managed" and cannot be modified directly. It behaves as a side-effect of the manager resource. For example, a unit may become managed when a booking is checked in, and unmanaged when the booking is checked out.
Delete a unit
Permanently deletes a unit. This cannot be undone.
Input
The resource name of the unit to be deleted,
Output
No return value.
Clean out a unit
Deprecated: Use MoveOutUnit
Input
The resource name of the unit to be cleaned out.
Output
Move in a unit
Moves in a unit by creating new occupants and associating them with the unit.
Input
Resource name of the parent resource where to move in the unit.
The occupants to be created inside the unit.
Output
Move out a unit
Moves out a unit by deleting all the occupants belonging to it. This process implicitly entails the blocking of the keys that were active within the unit. Moving out a unit will not delete the access rights and the associated access points that belong to the unit.
Input
The resource name of the unit to be moved out.
Output
Create a policy
Creates a new policy.
Input
Resource name of the parent resource where to create the policy.
The policy ID to use for policy. In case it's empty the server will autogenerate a unique identifier.
The policy resource to be created. Client must not set the Policy.name field.
Output
Output only. Resource name of the policy. It must have the format of installations/*/units/*/iam-policies,
Specifies the identity requesting access to this resource.
The names of the roles this policy grants.
Get an existing policy
Retrieves an existing policy.
Input
The name of the requested policy resource.
Output
Output only. Resource name of the policy. It must have the format of installations/*/units/*/iam-policies,
Specifies the identity requesting access to this resource.
The names of the roles this policy grants.
List policies
Returns a list of policies that have been previously created.
Input
The parent resource name,
The maximum number of items to return.
The next_page_token value returned from a previous List request, if any.
A filter that chooses which policies to return.
How the results should be sorted.
Output
The field name should match the noun policies in the method name. There will be a maximum number of items returned based on the page_size field in the request.
Token to retrieve the next page of results, or empty if there are no more results in the list.
Update an existing policy
Updates an existing policy.
Input
The policy resource which replaces the resource on the server.
The update mask applied to the resource.
Output
Output only. Resource name of the policy. It must have the format of installations/*/units/*/iam-policies,
Specifies the identity requesting access to this resource.
The names of the roles this policy grants.
Delete a policy
Permanently deletes a policy. This cannot be undone.
Input
The resource name of the policy to be deleted,
Output
No return value.
Test a permission
Returns permissions that a caller has on the installation. If the installation does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
Input
The resource name for which the policy detail is being requested,
The set of permissions to check for the resource_name. Permissions with wildcards (such as '' or 'nebula.access-point.') are not allowed.
Output
A subset of TestPermissionsRequest.permissions that the caller is allowed.