Show / Hide Table of Contents

Class FoldersResource.SettingsResource

The "settings" collection of methods.

Inheritance
object
FoldersResource.SettingsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.ResourceSettings.v1
Assembly: Google.Apis.ResourceSettings.v1.dll
Syntax
public class FoldersResource.SettingsResource

Constructors

SettingsResource(IClientService)

Constructs a new resource.

Declaration
public SettingsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Get(string)

Returns a specified setting. Returns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the setting does not exist.

Declaration
public virtual FoldersResource.SettingsResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The name of the setting to get. See Setting for naming requirements.

Returns
Type Description
FoldersResource.SettingsResource.GetRequest

List(string)

Lists all the settings that are available on the Cloud resource parent.

Declaration
public virtual FoldersResource.SettingsResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The project, folder, or organization that is the parent resource for this setting. Must be in one of the following forms: * projects/{project_number} * projects/{project_id} * folders/{folder_id} * organizations/{organization_id}

Returns
Type Description
FoldersResource.SettingsResource.ListRequest

Patch(GoogleCloudResourcesettingsV1Setting, string)

Updates a specified setting. Returns a google.rpc.Status with google.rpc.Code.NOT_FOUND if the setting does not exist. Returns a google.rpc.Status with google.rpc.Code.FAILED_PRECONDITION if the setting is flagged as read only. Returns a google.rpc.Status with google.rpc.Code.ABORTED if the etag supplied in the request does not match the persisted etag of the setting value. On success, the response will contain only name, local_value and etag. The metadata and effective_value cannot be updated through this API. Note: the supplied setting will perform a full overwrite of the local_value field.

Declaration
public virtual FoldersResource.SettingsResource.PatchRequest Patch(GoogleCloudResourcesettingsV1Setting body, string name)
Parameters
Type Name Description
GoogleCloudResourcesettingsV1Setting body

The body of the request.

string name

The resource name of the setting. Must be in one of the following forms: * projects/{project_number}/settings/{setting_name} * folders/{folder_id}/settings/{setting_name} * organizations/{organization_id}/settings/{setting_name} For example, "/projects/123/settings/gcp-enableMyFeature"

Returns
Type Description
FoldersResource.SettingsResource.PatchRequest
In this article
Back to top Generated by DocFX