"""Generated message classes for resourcesettings version v1alpha1.

The Resource Settings API allows users to control and modify the behavior of
their GCP resources (e.g., VM, firewall, Project, etc.) across the Cloud
Resource Hierarchy.
"""
# NOTE: This file is autogenerated and should not be edited by hand.

from __future__ import absolute_import

from apitools.base.protorpclite import messages as _messages
from apitools.base.py import encoding


package = 'resourcesettings'


class GoogleCloudResourcesettingsV1alpha1ListSettingsResponse(_messages.Message):
  r"""The response from ListSettings.

  Fields:
    nextPageToken: Unused. A page token used to retrieve the next page.
    settings: A list of settings that are available at the specified Cloud
      resource.
  """

  nextPageToken = _messages.StringField(1)
  settings = _messages.MessageField('GoogleCloudResourcesettingsV1alpha1Setting', 2, repeated=True)


class GoogleCloudResourcesettingsV1alpha1SearchSettingValuesResponse(_messages.Message):
  r"""The response from SearchSettingValues.

  Fields:
    nextPageToken: Unused. A page token used to retrieve the next page.
    settingValues: All setting values that exist on the specified Cloud
      resource.
  """

  nextPageToken = _messages.StringField(1)
  settingValues = _messages.MessageField('GoogleCloudResourcesettingsV1alpha1SettingValue', 2, repeated=True)


class GoogleCloudResourcesettingsV1alpha1Setting(_messages.Message):
  r"""The schema for setting values. At a given Cloud resource, a setting can
  parent at most one setting value.

  Enums:
    DataTypeValueValuesEnum: The data type for this setting.

  Fields:
    dataType: The data type for this setting.
    defaultValue: The value received by LookupEffectiveSettingValue if no
      setting value is explicitly set. Note: not all settings have a default
      value.
    description: A detailed description of what this setting does.
    displayName: The human readable name for this setting.
    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"
    readOnly: A flag indicating that values of this setting cannot be modified
      (see documentation of the specific setting for updates and reasons);
      however, it may be deleted using DeleteSettingValue if
      DeleteSettingValueRequest.ignore_read_only is set to true. Using this
      flag is considered an acknowledgement that the setting value cannot be
      recreated. See DeleteSettingValueRequest.ignore_read_only for more
      details.
  """

  class DataTypeValueValuesEnum(_messages.Enum):
    r"""The data type for this setting.

    Values:
      DATA_TYPE_UNSPECIFIED: Unspecified data type.
      BOOLEAN: A boolean setting.
      STRING: A string setting.
      STRING_SET: A string set setting.
    """
    DATA_TYPE_UNSPECIFIED = 0
    BOOLEAN = 1
    STRING = 2
    STRING_SET = 3

  dataType = _messages.EnumField('DataTypeValueValuesEnum', 1)
  defaultValue = _messages.MessageField('GoogleCloudResourcesettingsV1alpha1Value', 2)
  description = _messages.StringField(3)
  displayName = _messages.StringField(4)
  name = _messages.StringField(5)
  readOnly = _messages.BooleanField(6)


class GoogleCloudResourcesettingsV1alpha1SettingValue(_messages.Message):
  r"""The instantiation of a setting. Every setting value is parented by its
  corresponding setting.

  Fields:
    etag: A fingerprint used for optimistic concurrency. See
      UpdateSettingValue for more details.
    name: The resource name of the setting value. Must be in one of the
      following forms: *
      `projects/{project_number}/settings/{setting_name}/value` *
      `folders/{folder_id}/settings/{setting_name}/value` *
      `organizations/{organization_id}/settings/{setting_name}/value` For
      example, "/projects/123/settings/gcp-enableMyFeature/value"
    readOnly: Output only. A flag indicating that this setting value cannot be
      modified; however, it may be deleted using DeleteSettingValue if
      DeleteSettingValueRequest.ignore_read_only is set to true. Using this
      flag is considered an acknowledgement that the setting value cannot be
      recreated. This flag is inherited from its parent setting and is for
      convenience purposes. See Setting.read_only for more details.
    updateTime: Output only. The timestamp indicating when the setting value
      was last updated.
    value: The value of the setting. The data type of Value must always be
      consistent with the data type defined by the parent setting.
  """

  etag = _messages.StringField(1)
  name = _messages.StringField(2)
  readOnly = _messages.BooleanField(3)
  updateTime = _messages.StringField(4)
  value = _messages.MessageField('GoogleCloudResourcesettingsV1alpha1Value', 5)


class GoogleCloudResourcesettingsV1alpha1Value(_messages.Message):
  r"""The data in a setting value.

  Fields:
    booleanValue: Defines this value as being a boolean value.
    stringSetValue: Defines this value as being a StringSet.
    stringValue: Defines this value as being a string value.
  """

  booleanValue = _messages.BooleanField(1)
  stringSetValue = _messages.MessageField('GoogleCloudResourcesettingsV1alpha1ValueStringSet', 2)
  stringValue = _messages.StringField(3)


class GoogleCloudResourcesettingsV1alpha1ValueStringSet(_messages.Message):
  r"""A string set value that can hold a set of strings. The maximum length of
  each string is 60 characters and there can be a maximum of 50 strings in the
  string set.

  Fields:
    values: The strings in the set
  """

  values = _messages.StringField(1, repeated=True)


class GoogleProtobufEmpty(_messages.Message):
  r"""A generic empty message that you can re-use to avoid defining duplicated
  empty messages in your APIs. A typical example is to use it as the request
  or the response type of an API method. For instance: service Foo { rpc
  Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON
  representation for `Empty` is empty JSON object `{}`.
  """



class ResourcesettingsFoldersSettingsDeleteValueRequest(_messages.Message):
  r"""A ResourcesettingsFoldersSettingsDeleteValueRequest object.

  Fields:
    ignoreReadOnly: A flag that allows the deletion of the value of a
      `read_only` setting. WARNING: use at your own risk. Deleting the value
      of a read only setting is an irreversible action (i.e., it cannot be
      created again).
    name: The name of the setting value to delete. See SettingValue for naming
      requirements.
  """

  ignoreReadOnly = _messages.BooleanField(1)
  name = _messages.StringField(2, required=True)


class ResourcesettingsFoldersSettingsGetValueRequest(_messages.Message):
  r"""A ResourcesettingsFoldersSettingsGetValueRequest object.

  Fields:
    name: The name of the setting value to get. See SettingValue for naming
      requirements.
  """

  name = _messages.StringField(1, required=True)


class ResourcesettingsFoldersSettingsListRequest(_messages.Message):
  r"""A ResourcesettingsFoldersSettingsListRequest object.

  Fields:
    pageSize: Unused. The size of the page to be returned.
    pageToken: Unused. A page token used to retrieve the next page.
    parent: The Cloud resource that parents the setting. Must be in one of the
      following forms: * `projects/{project_number}` * `projects/{project_id}`
      * `folders/{folder_id}` * `organizations/{organization_id}`
  """

  pageSize = _messages.IntegerField(1, variant=_messages.Variant.INT32)
  pageToken = _messages.StringField(2)
  parent = _messages.StringField(3, required=True)


class ResourcesettingsFoldersSettingsLookupEffectiveValueRequest(_messages.Message):
  r"""A ResourcesettingsFoldersSettingsLookupEffectiveValueRequest object.

  Fields:
    parent: The setting for which an effective value will be evaluated. See
      Setting for naming requirements.
  """

  parent = _messages.StringField(1, required=True)


class ResourcesettingsFoldersSettingsSearchRequest(_messages.Message):
  r"""A ResourcesettingsFoldersSettingsSearchRequest object.

  Fields:
    pageSize: Unused. The size of the page to be returned.
    pageToken: Unused. A page token used to retrieve the next page.
    parent: The Cloud resource that parents the setting. Must be in one of the
      following forms: * `projects/{project_number}` * `projects/{project_id}`
      * `folders/{folder_id}` * `organizations/{organization_id}`
  """

  pageSize = _messages.IntegerField(1, variant=_messages.Variant.INT32)
  pageToken = _messages.StringField(2)
  parent = _messages.StringField(3, required=True)


class ResourcesettingsFoldersSettingsUpdateValueRequest(_messages.Message):
  r"""A ResourcesettingsFoldersSettingsUpdateValueRequest object.

  Fields:
    googleCloudResourcesettingsV1alpha1SettingValue: A
      GoogleCloudResourcesettingsV1alpha1SettingValue resource to be passed as
      the request body.
    name: The resource name of the setting value. Must be in one of the
      following forms: *
      `projects/{project_number}/settings/{setting_name}/value` *
      `folders/{folder_id}/settings/{setting_name}/value` *
      `organizations/{organization_id}/settings/{setting_name}/value` For
      example, "/projects/123/settings/gcp-enableMyFeature/value"
  """

  googleCloudResourcesettingsV1alpha1SettingValue = _messages.MessageField('GoogleCloudResourcesettingsV1alpha1SettingValue', 1)
  name = _messages.StringField(2, required=True)


class ResourcesettingsFoldersSettingsValueCreateRequest(_messages.Message):
  r"""A ResourcesettingsFoldersSettingsValueCreateRequest object.

  Fields:
    googleCloudResourcesettingsV1alpha1SettingValue: A
      GoogleCloudResourcesettingsV1alpha1SettingValue resource to be passed as
      the request body.
    name: The resource name of the setting value. Must be in one of the
      following forms: *
      `projects/{project_number}/settings/{setting_name}/value` *
      `folders/{folder_id}/settings/{setting_name}/value` *
      `organizations/{organization_id}/settings/{setting_name}/value` For
      example, "/projects/123/settings/gcp-enableMyFeature/value"
  """

  googleCloudResourcesettingsV1alpha1SettingValue = _messages.MessageField('GoogleCloudResourcesettingsV1alpha1SettingValue', 1)
  name = _messages.StringField(2, required=True)


class ResourcesettingsOrganizationsSettingsDeleteValueRequest(_messages.Message):
  r"""A ResourcesettingsOrganizationsSettingsDeleteValueRequest object.

  Fields:
    ignoreReadOnly: A flag that allows the deletion of the value of a
      `read_only` setting. WARNING: use at your own risk. Deleting the value
      of a read only setting is an irreversible action (i.e., it cannot be
      created again).
    name: The name of the setting value to delete. See SettingValue for naming
      requirements.
  """

  ignoreReadOnly = _messages.BooleanField(1)
  name = _messages.StringField(2, required=True)


class ResourcesettingsOrganizationsSettingsGetValueRequest(_messages.Message):
  r"""A ResourcesettingsOrganizationsSettingsGetValueRequest object.

  Fields:
    name: The name of the setting value to get. See SettingValue for naming
      requirements.
  """

  name = _messages.StringField(1, required=True)


class ResourcesettingsOrganizationsSettingsListRequest(_messages.Message):
  r"""A ResourcesettingsOrganizationsSettingsListRequest object.

  Fields:
    pageSize: Unused. The size of the page to be returned.
    pageToken: Unused. A page token used to retrieve the next page.
    parent: The Cloud resource that parents the setting. Must be in one of the
      following forms: * `projects/{project_number}` * `projects/{project_id}`
      * `folders/{folder_id}` * `organizations/{organization_id}`
  """

  pageSize = _messages.IntegerField(1, variant=_messages.Variant.INT32)
  pageToken = _messages.StringField(2)
  parent = _messages.StringField(3, required=True)


class ResourcesettingsOrganizationsSettingsLookupEffectiveValueRequest(_messages.Message):
  r"""A ResourcesettingsOrganizationsSettingsLookupEffectiveValueRequest
  object.

  Fields:
    parent: The setting for which an effective value will be evaluated. See
      Setting for naming requirements.
  """

  parent = _messages.StringField(1, required=True)


class ResourcesettingsOrganizationsSettingsSearchRequest(_messages.Message):
  r"""A ResourcesettingsOrganizationsSettingsSearchRequest object.

  Fields:
    pageSize: Unused. The size of the page to be returned.
    pageToken: Unused. A page token used to retrieve the next page.
    parent: The Cloud resource that parents the setting. Must be in one of the
      following forms: * `projects/{project_number}` * `projects/{project_id}`
      * `folders/{folder_id}` * `organizations/{organization_id}`
  """

  pageSize = _messages.IntegerField(1, variant=_messages.Variant.INT32)
  pageToken = _messages.StringField(2)
  parent = _messages.StringField(3, required=True)


class ResourcesettingsOrganizationsSettingsUpdateValueRequest(_messages.Message):
  r"""A ResourcesettingsOrganizationsSettingsUpdateValueRequest object.

  Fields:
    googleCloudResourcesettingsV1alpha1SettingValue: A
      GoogleCloudResourcesettingsV1alpha1SettingValue resource to be passed as
      the request body.
    name: The resource name of the setting value. Must be in one of the
      following forms: *
      `projects/{project_number}/settings/{setting_name}/value` *
      `folders/{folder_id}/settings/{setting_name}/value` *
      `organizations/{organization_id}/settings/{setting_name}/value` For
      example, "/projects/123/settings/gcp-enableMyFeature/value"
  """

  googleCloudResourcesettingsV1alpha1SettingValue = _messages.MessageField('GoogleCloudResourcesettingsV1alpha1SettingValue', 1)
  name = _messages.StringField(2, required=True)


class ResourcesettingsOrganizationsSettingsValueCreateRequest(_messages.Message):
  r"""A ResourcesettingsOrganizationsSettingsValueCreateRequest object.

  Fields:
    googleCloudResourcesettingsV1alpha1SettingValue: A
      GoogleCloudResourcesettingsV1alpha1SettingValue resource to be passed as
      the request body.
    name: The resource name of the setting value. Must be in one of the
      following forms: *
      `projects/{project_number}/settings/{setting_name}/value` *
      `folders/{folder_id}/settings/{setting_name}/value` *
      `organizations/{organization_id}/settings/{setting_name}/value` For
      example, "/projects/123/settings/gcp-enableMyFeature/value"
  """

  googleCloudResourcesettingsV1alpha1SettingValue = _messages.MessageField('GoogleCloudResourcesettingsV1alpha1SettingValue', 1)
  name = _messages.StringField(2, required=True)


class ResourcesettingsProjectsSettingsDeleteValueRequest(_messages.Message):
  r"""A ResourcesettingsProjectsSettingsDeleteValueRequest object.

  Fields:
    ignoreReadOnly: A flag that allows the deletion of the value of a
      `read_only` setting. WARNING: use at your own risk. Deleting the value
      of a read only setting is an irreversible action (i.e., it cannot be
      created again).
    name: The name of the setting value to delete. See SettingValue for naming
      requirements.
  """

  ignoreReadOnly = _messages.BooleanField(1)
  name = _messages.StringField(2, required=True)


class ResourcesettingsProjectsSettingsGetValueRequest(_messages.Message):
  r"""A ResourcesettingsProjectsSettingsGetValueRequest object.

  Fields:
    name: The name of the setting value to get. See SettingValue for naming
      requirements.
  """

  name = _messages.StringField(1, required=True)


class ResourcesettingsProjectsSettingsListRequest(_messages.Message):
  r"""A ResourcesettingsProjectsSettingsListRequest object.

  Fields:
    pageSize: Unused. The size of the page to be returned.
    pageToken: Unused. A page token used to retrieve the next page.
    parent: The Cloud resource that parents the setting. Must be in one of the
      following forms: * `projects/{project_number}` * `projects/{project_id}`
      * `folders/{folder_id}` * `organizations/{organization_id}`
  """

  pageSize = _messages.IntegerField(1, variant=_messages.Variant.INT32)
  pageToken = _messages.StringField(2)
  parent = _messages.StringField(3, required=True)


class ResourcesettingsProjectsSettingsLookupEffectiveValueRequest(_messages.Message):
  r"""A ResourcesettingsProjectsSettingsLookupEffectiveValueRequest object.

  Fields:
    parent: The setting for which an effective value will be evaluated. See
      Setting for naming requirements.
  """

  parent = _messages.StringField(1, required=True)


class ResourcesettingsProjectsSettingsSearchRequest(_messages.Message):
  r"""A ResourcesettingsProjectsSettingsSearchRequest object.

  Fields:
    pageSize: Unused. The size of the page to be returned.
    pageToken: Unused. A page token used to retrieve the next page.
    parent: The Cloud resource that parents the setting. Must be in one of the
      following forms: * `projects/{project_number}` * `projects/{project_id}`
      * `folders/{folder_id}` * `organizations/{organization_id}`
  """

  pageSize = _messages.IntegerField(1, variant=_messages.Variant.INT32)
  pageToken = _messages.StringField(2)
  parent = _messages.StringField(3, required=True)


class ResourcesettingsProjectsSettingsUpdateValueRequest(_messages.Message):
  r"""A ResourcesettingsProjectsSettingsUpdateValueRequest object.

  Fields:
    googleCloudResourcesettingsV1alpha1SettingValue: A
      GoogleCloudResourcesettingsV1alpha1SettingValue resource to be passed as
      the request body.
    name: The resource name of the setting value. Must be in one of the
      following forms: *
      `projects/{project_number}/settings/{setting_name}/value` *
      `folders/{folder_id}/settings/{setting_name}/value` *
      `organizations/{organization_id}/settings/{setting_name}/value` For
      example, "/projects/123/settings/gcp-enableMyFeature/value"
  """

  googleCloudResourcesettingsV1alpha1SettingValue = _messages.MessageField('GoogleCloudResourcesettingsV1alpha1SettingValue', 1)
  name = _messages.StringField(2, required=True)


class ResourcesettingsProjectsSettingsValueCreateRequest(_messages.Message):
  r"""A ResourcesettingsProjectsSettingsValueCreateRequest object.

  Fields:
    googleCloudResourcesettingsV1alpha1SettingValue: A
      GoogleCloudResourcesettingsV1alpha1SettingValue resource to be passed as
      the request body.
    name: The resource name of the setting value. Must be in one of the
      following forms: *
      `projects/{project_number}/settings/{setting_name}/value` *
      `folders/{folder_id}/settings/{setting_name}/value` *
      `organizations/{organization_id}/settings/{setting_name}/value` For
      example, "/projects/123/settings/gcp-enableMyFeature/value"
  """

  googleCloudResourcesettingsV1alpha1SettingValue = _messages.MessageField('GoogleCloudResourcesettingsV1alpha1SettingValue', 1)
  name = _messages.StringField(2, required=True)


class StandardQueryParameters(_messages.Message):
  r"""Query parameters accepted by all methods.

  Enums:
    FXgafvValueValuesEnum: V1 error format.
    AltValueValuesEnum: Data format for response.

  Fields:
    f__xgafv: V1 error format.
    access_token: OAuth access token.
    alt: Data format for response.
    callback: JSONP
    fields: Selector specifying which fields to include in a partial response.
    key: API key. Your API key identifies your project and provides you with
      API access, quota, and reports. Required unless you provide an OAuth 2.0
      token.
    oauth_token: OAuth 2.0 token for the current user.
    prettyPrint: Returns response with indentations and line breaks.
    quotaUser: Available to use for quota purposes for server-side
      applications. Can be any arbitrary string assigned to a user, but should
      not exceed 40 characters.
    trace: A tracing token of the form "token:<tokenid>" to include in api
      requests.
    uploadType: Legacy upload protocol for media (e.g. "media", "multipart").
    upload_protocol: Upload protocol for media (e.g. "raw", "multipart").
  """

  class AltValueValuesEnum(_messages.Enum):
    r"""Data format for response.

    Values:
      json: Responses with Content-Type of application/json
      media: Media download with context-dependent Content-Type
      proto: Responses with Content-Type of application/x-protobuf
    """
    json = 0
    media = 1
    proto = 2

  class FXgafvValueValuesEnum(_messages.Enum):
    r"""V1 error format.

    Values:
      _1: v1 error format
      _2: v2 error format
    """
    _1 = 0
    _2 = 1

  f__xgafv = _messages.EnumField('FXgafvValueValuesEnum', 1)
  access_token = _messages.StringField(2)
  alt = _messages.EnumField('AltValueValuesEnum', 3, default='json')
  callback = _messages.StringField(4)
  fields = _messages.StringField(5)
  key = _messages.StringField(6)
  oauth_token = _messages.StringField(7)
  prettyPrint = _messages.BooleanField(8, default=True)
  quotaUser = _messages.StringField(9)
  trace = _messages.StringField(10)
  uploadType = _messages.StringField(11)
  upload_protocol = _messages.StringField(12)


encoding.AddCustomJsonFieldMapping(
    StandardQueryParameters, 'f__xgafv', '$.xgafv')
encoding.AddCustomJsonEnumMapping(
    StandardQueryParameters.FXgafvValueValuesEnum, '_1', '1')
encoding.AddCustomJsonEnumMapping(
    StandardQueryParameters.FXgafvValueValuesEnum, '_2', '2')
