123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308 |
- syntax = "proto3";
- package google.cloud.resourcesettings.v1;
- import "google/api/annotations.proto";
- import "google/api/client.proto";
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- option cc_enable_arenas = true;
- option go_package = "google.golang.org/genproto/googleapis/cloud/resourcesettings/v1;resourcesettings";
- option java_multiple_files = true;
- option java_outer_classname = "ResourceSettingsProto";
- option java_package = "com.google.cloud.resourcesettings.v1";
- option csharp_namespace = "Google.Cloud.ResourceSettings.V1";
- option php_namespace = "Google\\Cloud\\ResourceSettings\\V1";
- option ruby_package = "Google::Cloud::ResourceSettings::V1";
- service ResourceSettingsService {
- option (google.api.default_host) = "resourcesettings.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
-
- rpc ListSettings(ListSettingsRequest) returns (ListSettingsResponse) {
- option (google.api.http) = {
- get: "/v1/{parent=organizations/*}/settings"
- additional_bindings {
- get: "/v1/{parent=folders/*}/settings"
- }
- additional_bindings {
- get: "/v1/{parent=projects/*}/settings"
- }
- };
- option (google.api.method_signature) = "parent";
- }
-
-
-
-
- rpc GetSetting(GetSettingRequest) returns (Setting) {
- option (google.api.http) = {
- get: "/v1/{name=organizations/*/settings/*}"
- additional_bindings {
- get: "/v1/{name=folders/*/settings/*}"
- }
- additional_bindings {
- get: "/v1/{name=projects/*/settings/*}"
- }
- };
- option (google.api.method_signature) = "name";
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- rpc UpdateSetting(UpdateSettingRequest) returns (Setting) {
- option (google.api.http) = {
- patch: "/v1/{setting.name=organizations/*/settings/*}"
- body: "setting"
- additional_bindings {
- patch: "/v1/{setting.name=folders/*/settings/*}"
- body: "setting"
- }
- additional_bindings {
- patch: "/v1/{setting.name=projects/*/settings/*}"
- body: "setting"
- }
- };
- }
- }
- message Setting {
- option (google.api.resource) = {
- type: "resourcesettings.googleapis.com/Setting"
- pattern: "projects/{project_number}/settings/{setting_name}"
- pattern: "folders/{folder}/settings/{setting_name}"
- pattern: "organizations/{organization}/settings/{setting_name}"
- };
-
-
-
-
-
-
-
- string name = 1;
-
- SettingMetadata metadata = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
- Value local_value = 8;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Value effective_value = 9 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
- string etag = 10;
- }
- message SettingMetadata {
-
-
- enum DataType {
-
- DATA_TYPE_UNSPECIFIED = 0;
-
- BOOLEAN = 1;
-
- STRING = 2;
-
- STRING_SET = 3;
-
- ENUM_VALUE = 4;
- }
-
- string display_name = 1;
-
- string description = 2;
-
-
- bool read_only = 3;
-
- DataType data_type = 4;
-
-
-
-
- Value default_value = 5;
- }
- message Value {
-
-
-
- message StringSet {
-
- repeated string values = 1;
- }
-
-
-
- message EnumValue {
-
- string value = 1;
- }
-
- oneof value {
-
- bool boolean_value = 1;
-
- string string_value = 2;
-
- StringSet string_set_value = 3;
-
- EnumValue enum_value = 4;
- }
- }
- message ListSettingsRequest {
-
-
-
-
-
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "*"
- }
- ];
-
- int32 page_size = 2;
-
- string page_token = 3;
-
- SettingView view = 4;
- }
- message ListSettingsResponse {
-
- repeated Setting settings = 1;
-
- string next_page_token = 2;
- }
- message GetSettingRequest {
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "resourcesettings.googleapis.com/Setting"
- }
- ];
-
- SettingView view = 2;
- }
- message UpdateSettingRequest {
-
- Setting setting = 1 [(google.api.field_behavior) = REQUIRED];
- }
- enum SettingView {
-
-
- SETTING_VIEW_UNSPECIFIED = 0;
-
-
- SETTING_VIEW_BASIC = 1;
-
- SETTING_VIEW_EFFECTIVE_VALUE = 2;
-
- SETTING_VIEW_LOCAL_VALUE = 3;
- }
|