Method: projects.settings.updateValue
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
設定値を更新します。
設定または設定値が存在しない場合は、google.rpc.Code.NOT_FOUND
を指定して google.rpc.Status
を返します。設定が読み取り専用としてフラグ設定されている場合、google.rpc.Code.FAILED_PRECONDITION
で google.rpc.Status
を返します。リクエストで指定された ETag が設定値の永続的な ETag と一致しない場合、google.rpc.Code.ABORTED
を指定して google.rpc.Status
を返します。
注: 指定された設定値により、すべてのフィールドが完全に上書きされます。
HTTP リクエスト
PATCH https://resourcesettings.googleapis.com/v1alpha1/{settingValue.name=projects/*/settings/*/value}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
settingValue.name |
string
設定値のリソース名。次のいずれかの形式にする必要があります。
projects/{project_number}/settings/{setting_name}/value
folders/{folder_id}/settings/{setting_name}/value
organizations/{organization_id}/settings/{setting_name}/value
例: 「/projects/123/settings/gcp-enableMyFeature/value」
|
リクエスト本文
リクエストの本文には SettingValue
のインスタンスが含まれます。
レスポンスの本文
成功した場合、レスポンスの本文には SettingValue
のインスタンスが含まれます。
認証スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/cloud-platform
詳細については、認証の概要をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2023-05-25 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2023-05-25 UTC。"],[[["Updates a setting value, performing a full overwrite of all fields."],["Returns errors if the setting or value doesn't exist, is read-only, or the etag doesn't match."],["Requires the `https://www.googleapis.com/auth/cloud-platform` OAuth scope for authorization."],["Uses the PATCH HTTP method and provides details on the request and response body structures."],["Identifies the required path parameter `settingValue.name` with format and example."]]],["This describes how to update a setting value via a `PATCH` HTTP request to a specific URL using gRPC Transcoding. The request requires a setting value name in the URL path, formatted as a project, folder, or organization identifier followed by the setting name and \"value\". The request body should contain a `SettingValue` instance, overwriting existing fields. A successful response returns a `SettingValue`, otherwise, status codes like `NOT_FOUND`, `FAILED_PRECONDITION`, or `ABORTED` may be returned. OAuth scope `https://www.googleapis.com/auth/cloud-platform` is necessary.\n"]]