Method: projects.locations.userStores.batchUpdateUserLicenses

사용자 라이선스를 업데이트합니다. 이 메서드는 사용자에게 라이선스를 일괄 할당/할당 해제하는 데 사용됩니다.

HTTP 요청

POST https://discoveryengine.googleapis.com/v1beta/{parent=projects/*/locations/*/userStores/*}:batchUpdateUserLicenses

URL은 gRPC 트랜스코딩 문법을 사용합니다.

경로 매개변수

매개변수
parent

string

필수 항목입니다. 상위 [UserStore][] 리소스 이름입니다. 형식은 projects/{project}/locations/{location}/userStores/{userStoreId}입니다.

요청 본문

요청 본문에는 다음과 같은 구조의 데이터가 포함됩니다.

JSON 표현
{
  "deleteUnassignedUserLicenses": boolean,

  // Union field source can be only one of the following:
  "inlineSource": {
    object (InlineSource)
  }
  // End of list of possible types for union field source.
}
필드
deleteUnassignedUserLicenses

boolean

(선택사항) true인 경우 사용자가 연결된 라이선스 구성을 삭제하면 사용자 라이선스가 삭제됩니다. 기본값은 false이며, 사용자 라이선스가 할당 해제 상태로 업데이트됩니다.

통합 필드 source. 필수 항목입니다. 입력 소스입니다. source은 다음 중 하나여야 합니다.
inlineSource

object (InlineSource)

문서 삽입의 입력 콘텐츠에 대한 인라인 소스입니다.

응답 본문

성공한 경우 응답 본문에 Operation의 인스턴스가 포함됩니다.

승인 범위

다음 OAuth 범위 중 하나가 필요합니다.

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/discoveryengine.readwrite

자세한 내용은 Authentication Overview를 참조하세요.

IAM 권한

parent 리소스에 대해서는 다음 IAM 권한이 필요합니다.

  • discoveryengine.userStores.batchUpdateUserLicenses

자세한 내용은 IAM 문서를 참조하세요.

InlineSource

userStores.batchUpdateUserLicenses 메서드의 입력 구성에 관한 인라인 소스입니다.

JSON 표현
{
  "userLicenses": [
    {
      object (UserLicense)
    }
  ],
  "updateMask": string
}
필드
userLicenses[]

object (UserLicense)

필수 항목입니다. 업데이트할 사용자 라이선스 목록입니다. 각 사용자 라이선스에는 유효한 UserLicense.user_principal가 있어야 합니다.

updateMask

string (FieldMask format)

(선택사항) 업데이트할 필드 목록입니다.

정규화된 필드 이름의 쉼표로 구분된 목록입니다. 예: "user.displayName,photo"