Effective June 17, 2024, Cloud Source Repositories isn't available to new customers. If your organization hasn't previously used Cloud Source Repositories, you can't enable the API or use Cloud Source Repositories. New projects not connected to an organization can't enable the Cloud Source Repositories API. Organizations that have used Cloud Source Repositories prior to June 17, 2024 are not affected by this change.
フィードバックを送信
メソッド: projects.repos.setIamPolicy
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
指定したリソースにアクセス制御ポリシーを設定します。既存のポリシーは、すべて置き換えられます。
HTTP リクエスト
POST https://sourcerepo.googleapis.com/v1/{resource=projects/*/repos/**}:setIamPolicy
この URL は Google API HTTP アノテーション 構文を使用します。
パスパラメータ
パラメータ
resource
string
必須: ポリシーが指定されているリソース。このフィールドに適切な値については、オペレーション ドキュメントをご覧ください。
リクエストの本文
リクエストの本文には、次の構造を使用したデータが含まれます。
JSON 表現
{
"policy": {
object(Policy
)
} ,
"updateMask": string
}
フィールド
policy
object(Policy
)
必須: resource
に適用する完全なポリシー。ポリシーのサイズは 10 KB 強に制限されています。空のポリシーは有効なポリシーですが、特定の Cloud Platform サービス(Projects など)では、これらが拒否される場合があります。
updateMask
string(FieldMask
形式)
省略可: 変更するポリシー フィールドを指定する FieldMask。マスク内のフィールドのみが変更されます。マスクが指定されていない場合、次のデフォルト マスクが使用されます。パス: "bindings, etag"。このフィールドは、Cloud IAM のみが使用します。
フィールドの完全修飾名のカンマ区切りリスト。例: "user.displayName,photo"
レスポンスの本文
成功した場合、レスポンスの本文には Policy
のインスタンスが含まれます。
承認スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/cloud-platform
詳しくは、Auth ガイド をご覧ください。
フィードバックを送信
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンス により使用許諾されます。コードサンプルは Apache 2.0 ライセンス により使用許諾されます。詳しくは、Google Developers サイトのポリシー をご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2018-09-25 UTC。
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻訳に関する問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"その他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"わかりやすい"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"問題の解決に役立った"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"その他"
}]
ご意見をお聞かせください