class DeploymentmanagerDeploymentsUpdateRequest(_messages.Message):
    """A DeploymentmanagerDeploymentsUpdateRequest object.

  Enums:
    CreatePolicyValueValuesEnum: Sets the policy to use for creating new
      resources.
    DeletePolicyValueValuesEnum: Sets the policy to use for deleting
      resources.

  Fields:
    createPolicy: Sets the policy to use for creating new resources.
    deletePolicy: Sets the policy to use for deleting resources.
    deployment: The name of the deployment for this request.
    deploymentResource: A Deployment resource to be passed as the request
      body.
    preview: If set to true, updates the deployment and creates and updates
      the "shell" resources but does not actually alter or instantiate these
      resources. This allows you to preview what your deployment will look
      like. You can use this intent to preview how an update would affect your
      deployment. You must provide a target.config with a configuration if
      this is set to true. After previewing a deployment, you can deploy your
      resources by making a request with the update() or you can
      cancelPreview() to remove the preview altogether. Note that the
      deployment will still exist after you cancel the preview and you must
      separately delete this deployment if you want to remove it.
    project: The project ID for this request.
  """
    class CreatePolicyValueValuesEnum(_messages.Enum):
        """Sets the policy to use for creating new resources.

    Values:
      ACQUIRE: <no description>
      CREATE_OR_ACQUIRE: <no description>
    """
        ACQUIRE = 0
        CREATE_OR_ACQUIRE = 1

    class DeletePolicyValueValuesEnum(_messages.Enum):
        """Sets the policy to use for deleting resources.

    Values:
      ABANDON: <no description>
      DELETE: <no description>
    """
        ABANDON = 0
        DELETE = 1

    createPolicy = _messages.EnumField('CreatePolicyValueValuesEnum',
                                       1,
                                       default=u'CREATE_OR_ACQUIRE')
    deletePolicy = _messages.EnumField('DeletePolicyValueValuesEnum',
                                       2,
                                       default=u'DELETE')
    deployment = _messages.StringField(3, required=True)
    deploymentResource = _messages.MessageField('Deployment', 4)
    preview = _messages.BooleanField(5, default=False)
    project = _messages.StringField(6, required=True)
예제 #2
0
class Repo(_messages.Message):
    """A repository (or repo) stores files for a version-control system.

  Enums:
    StateValueValuesEnum: The state the repo is in.
    VcsValueValuesEnum: The version control system of the repo.

  Fields:
    createTime: Timestamp when the repo was created.
    id: Randomly generated ID that uniquely identifies a repo.
    name: Human-readable, user-defined name of the repository. Names must be
      alphanumeric, lowercase, begin with a letter, and be between 3 and 63
      characters long. The - character can appear in the middle positions.
      (Names must satisfy the regular expression a-z{1,61}[a-z0-9].)
    projectId: Immutable, globally unique, DNS-compatible textual identifier.
      Examples: user-chosen-project-id, yellow-banana-33.
    repoSyncConfig: How RepoSync is configured for this repo. If missing, this
      repo is not set up for RepoSync.
    state: The state the repo is in.
    vcs: The version control system of the repo.
  """
    class StateValueValuesEnum(_messages.Enum):
        """The state the repo is in.

    Values:
      STATE_UNSPECIFIED: No state was specified.
      LIVE: The repo is live and available for use.
      DELETED: The repo has been deleted.
    """
        STATE_UNSPECIFIED = 0
        LIVE = 1
        DELETED = 2

    class VcsValueValuesEnum(_messages.Enum):
        """The version control system of the repo.

    Values:
      VCS_UNSPECIFIED: No version control system was specified.
      GIT: The Git version control system.
    """
        VCS_UNSPECIFIED = 0
        GIT = 1

    createTime = _messages.StringField(1)
    id = _messages.StringField(2)
    name = _messages.StringField(3)
    projectId = _messages.StringField(4)
    repoSyncConfig = _messages.MessageField('RepoSyncConfig', 5)
    state = _messages.EnumField('StateValueValuesEnum', 6)
    vcs = _messages.EnumField('VcsValueValuesEnum', 7)
class Zone(_messages.Message):
    """A Zone object.

  Enums:
    StatusValueValuesEnum:

  Fields:
    displayName: A string attribute.
    name: A string attribute.
    status: A StatusValueValuesEnum attribute.
  """
    class StatusValueValuesEnum(_messages.Enum):
        """StatusValueValuesEnum enum type.

    Values:
      EMERGENCY_MAINENANCE: <no description>
      OK: <no description>
      PLANNED_MAINTENANCE: <no description>
      UNKNOWN: <no description>
    """
        EMERGENCY_MAINENANCE = 0
        OK = 1
        PLANNED_MAINTENANCE = 2
        UNKNOWN = 3

    displayName = _messages.StringField(1)
    name = _messages.StringField(2)
    status = _messages.EnumField('StatusValueValuesEnum', 3)
class Cluster(_messages.Message):
    """A Cluster object.

  Enums:
    DefaultStorageTypeValueValuesEnum:

  Fields:
    currentOperation: A Operation attribute.
    defaultStorageType: A DefaultStorageTypeValueValuesEnum attribute.
    displayName: A string attribute.
    hddBytes: A string attribute.
    name: A string attribute.
    serveNodes: A integer attribute.
    ssdBytes: A string attribute.
  """
    class DefaultStorageTypeValueValuesEnum(_messages.Enum):
        """DefaultStorageTypeValueValuesEnum enum type.

    Values:
      STORAGE_HDD: <no description>
      STORAGE_SSD: <no description>
      STORAGE_UNSPECIFIED: <no description>
    """
        STORAGE_HDD = 0
        STORAGE_SSD = 1
        STORAGE_UNSPECIFIED = 2

    currentOperation = _messages.MessageField('Operation', 1)
    defaultStorageType = _messages.EnumField(
        'DefaultStorageTypeValueValuesEnum', 2)
    displayName = _messages.StringField(3)
    hddBytes = _messages.IntegerField(4)
    name = _messages.StringField(5)
    serveNodes = _messages.IntegerField(6, variant=_messages.Variant.INT32)
    ssdBytes = _messages.IntegerField(7)
예제 #5
0
class ServiceAccountKey(_messages.Message):
    """Represents a service account key.  A service account can have 0 or more
  key pairs. The private keys for these are not stored by Google.
  ServiceAccountKeys are immutable.

  Enums:
    PrivateKeyTypeValueValuesEnum: The type of the private key.

  Fields:
    name: The resource name of the service account key in the format
      "projects/{project}/serviceAccounts/{email}/keys/{key}".
    privateKeyData: The key data.
    privateKeyType: The type of the private key.
    validAfterTime: The key can be used after this timestamp.
    validBeforeTime: The key can be used before this timestamp.
  """
    class PrivateKeyTypeValueValuesEnum(_messages.Enum):
        """The type of the private key.

    Values:
      TYPE_UNSPECIFIED: Unspecified.
      TYPE_PKCS12_FILE: PKCS12 format. The password for the PKCS12 file is
        'notasecret'. For more information, see
        https://tools.ietf.org/html/rfc7292.
      TYPE_GOOGLE_CREDENTIALS_FILE: Google Credentials File format.
    """
        TYPE_UNSPECIFIED = 0
        TYPE_PKCS12_FILE = 1
        TYPE_GOOGLE_CREDENTIALS_FILE = 2

    name = _messages.StringField(1)
    privateKeyData = _messages.BytesField(2)
    privateKeyType = _messages.EnumField('PrivateKeyTypeValueValuesEnum', 3)
    validAfterTime = _messages.StringField(4)
    validBeforeTime = _messages.StringField(5)
예제 #6
0
class IamProjectsServiceAccountsKeysCreateRequest(_messages.Message):
    """A IamProjectsServiceAccountsKeysCreateRequest object.

  Enums:
    PrivateKeyTypeValueValuesEnum: The type of the key requested.
      GOOGLE_CREDENTIALS is the default key type.

  Fields:
    name: The resource name of the service account in the format
      "projects/{project}/serviceAccounts/{account}". Using '-' as a wildcard
      for the project, will infer the project from the account. The account
      value can be the email address or the unique_id of the service account.
    privateKeyType: The type of the key requested. GOOGLE_CREDENTIALS is the
      default key type.
  """
    class PrivateKeyTypeValueValuesEnum(_messages.Enum):
        """The type of the key requested. GOOGLE_CREDENTIALS is the default key
    type.

    Values:
      TYPE_UNSPECIFIED: <no description>
      TYPE_PKCS12_FILE: <no description>
      TYPE_GOOGLE_CREDENTIALS_FILE: <no description>
    """
        TYPE_UNSPECIFIED = 0
        TYPE_PKCS12_FILE = 1
        TYPE_GOOGLE_CREDENTIALS_FILE = 2

    name = _messages.StringField(1, required=True)
    privateKeyType = _messages.EnumField('PrivateKeyTypeValueValuesEnum', 2)
class Change(_messages.Message):
    """An atomic update to a collection of ResourceRecordSets.

  Enums:
    StatusValueValuesEnum: Status of the operation (output only).

  Fields:
    additions: Which ResourceRecordSets to add?
    deletions: Which ResourceRecordSets to remove? Must match existing data
      exactly.
    id: Unique identifier for the resource; defined by the server (output
      only).
    kind: Identifies what kind of resource this is. Value: the fixed string
      "dns#change".
    startTime: The time that this operation was started by the server (output
      only). This is in RFC3339 text format.
    status: Status of the operation (output only).
  """
    class StatusValueValuesEnum(_messages.Enum):
        """Status of the operation (output only).

    Values:
      done: <no description>
      pending: <no description>
    """
        done = 0
        pending = 1

    additions = _messages.MessageField('ResourceRecordSet', 1, repeated=True)
    deletions = _messages.MessageField('ResourceRecordSet', 2, repeated=True)
    id = _messages.StringField(3)
    kind = _messages.StringField(4, default=u'dns#change')
    startTime = _messages.StringField(5)
    status = _messages.EnumField('StatusValueValuesEnum', 6)
예제 #8
0
class AliasContext(_messages.Message):
    """An alias to a repo revision.

  Enums:
    KindValueValuesEnum: The alias kind.

  Fields:
    kind: The alias kind.
    name: The alias name.
  """
    class KindValueValuesEnum(_messages.Enum):
        """The alias kind.

    Values:
      ANY: Do not use.
      FIXED: Git tag
      MOVABLE: Git branch
      OTHER: OTHER is used to specify non-standard aliases, those not of the
        kinds above. For example, if a Git repo has a ref named
        "refs/foo/bar", it is considered to be of kind OTHER.
    """
        ANY = 0
        FIXED = 1
        MOVABLE = 2
        OTHER = 3

    kind = _messages.EnumField('KindValueValuesEnum', 1)
    name = _messages.StringField(2)
예제 #9
0
class RepoSyncConfig(_messages.Message):
    """RepoSync configuration information.

  Enums:
    StatusValueValuesEnum: The status of RepoSync.

  Fields:
    externalRepoUrl: If this repo is enabled for RepoSync, this will be the
      URL of the external repo that this repo should sync with.
    status: The status of RepoSync.
  """
    class StatusValueValuesEnum(_messages.Enum):
        """The status of RepoSync.

    Values:
      REPO_SYNC_STATUS_UNSPECIFIED: No RepoSync status was specified.
      OK: RepoSync is working.
      FAILED_AUTH: RepoSync failed because of authorization/authentication.
      FAILED_OTHER: RepoSync failed for a reason other than auth.
      FAILED_NOT_FOUND: RepoSync failed because the repository was not found.
    """
        REPO_SYNC_STATUS_UNSPECIFIED = 0
        OK = 1
        FAILED_AUTH = 2
        FAILED_OTHER = 3
        FAILED_NOT_FOUND = 4

    externalRepoUrl = _messages.StringField(1)
    status = _messages.EnumField('StatusValueValuesEnum', 2)
예제 #10
0
class WriteAction(_messages.Message):
    """Create or modify a file.

  Enums:
    ModeValueValuesEnum: The new mode of the file.

  Fields:
    contents: The new contents of the file.
    mode: The new mode of the file.
    path: The path of the file to write.
  """
    class ModeValueValuesEnum(_messages.Enum):
        """The new mode of the file.

    Values:
      FILE_MODE_UNSPECIFIED: No file mode was specified.
      NORMAL: Neither a symbolic link nor executable.
      SYMLINK: A symbolic link.
      EXECUTABLE: An executable.
    """
        FILE_MODE_UNSPECIFIED = 0
        NORMAL = 1
        SYMLINK = 2
        EXECUTABLE = 3

    contents = _messages.BytesField(1)
    mode = _messages.EnumField('ModeValueValuesEnum', 2)
    path = _messages.StringField(3)
예제 #11
0
class RepeatedMessage(messages.Message):
    """Contains all message types as repeated fields."""
    class SimpleEnum(messages.Enum):
        """Simple enumeration type."""
        VAL1 = 1
        VAL2 = 2

    double_value = messages.FloatField(1,
                                       variant=messages.Variant.DOUBLE,
                                       repeated=True)
    float_value = messages.FloatField(2,
                                      variant=messages.Variant.FLOAT,
                                      repeated=True)
    int64_value = messages.IntegerField(3,
                                        variant=messages.Variant.INT64,
                                        repeated=True)
    uint64_value = messages.IntegerField(4,
                                         variant=messages.Variant.UINT64,
                                         repeated=True)
    int32_value = messages.IntegerField(5,
                                        variant=messages.Variant.INT32,
                                        repeated=True)
    bool_value = messages.BooleanField(6,
                                       variant=messages.Variant.BOOL,
                                       repeated=True)
    string_value = messages.StringField(7,
                                        variant=messages.Variant.STRING,
                                        repeated=True)
    bytes_value = messages.BytesField(8,
                                      variant=messages.Variant.BYTES,
                                      repeated=True)
    enum_value = messages.EnumField(SimpleEnum, 10, repeated=True)
class IamProjectsServiceAccountsKeysListRequest(_messages.Message):
    """A IamProjectsServiceAccountsKeysListRequest object.

  Enums:
    KeyTypesValueValuesEnum: The type of keys the user wants to list. If
      empty, all key types are included in the response. Duplicate key types
      are not allowed.

  Fields:
    keyTypes: The type of keys the user wants to list. If empty, all key types
      are included in the response. Duplicate key types are not allowed.
    name: The resource name of the service account in the format
      "projects/{project}/serviceAccounts/{account}". Using '-' as a wildcard
      for the project, will infer the project from the account. The account
      value can be the email address or the unique_id of the service account.
  """
    class KeyTypesValueValuesEnum(_messages.Enum):
        """The type of keys the user wants to list. If empty, all key types are
    included in the response. Duplicate key types are not allowed.

    Values:
      KEY_TYPE_UNSPECIFIED: <no description>
      USER_MANAGED: <no description>
      SYSTEM_MANAGED: <no description>
    """
        KEY_TYPE_UNSPECIFIED = 0
        USER_MANAGED = 1
        SYSTEM_MANAGED = 2

    keyTypes = _messages.EnumField('KeyTypesValueValuesEnum', 1, repeated=True)
    name = _messages.StringField(2, required=True)
class CreateServiceAccountKeyRequest(_messages.Message):
    """The service account key create request.

  Enums:
    PrivateKeyTypeValueValuesEnum: The type of the private key requested.
      GOOGLE_CREDENTIALS is the default key type.

  Fields:
    privateKeyType: The type of the private key requested. GOOGLE_CREDENTIALS
      is the default key type.
  """
    class PrivateKeyTypeValueValuesEnum(_messages.Enum):
        """The type of the private key requested. GOOGLE_CREDENTIALS is the
    default key type.

    Values:
      TYPE_UNSPECIFIED: Unspecified. Defaults to Google Credentials File
        format.
      TYPE_PKCS12_FILE: PKCS12 format. The password for the PKCS12 file is
        'notasecret'. For more information, see
        https://tools.ietf.org/html/rfc7292.
      TYPE_GOOGLE_CREDENTIALS_FILE: Google Credentials File format.
    """
        TYPE_UNSPECIFIED = 0
        TYPE_PKCS12_FILE = 1
        TYPE_GOOGLE_CREDENTIALS_FILE = 2

    privateKeyType = _messages.EnumField('PrivateKeyTypeValueValuesEnum', 1)
class IamProjectsServiceAccountsKeysGetRequest(_messages.Message):
    """A IamProjectsServiceAccountsKeysGetRequest object.

  Enums:
    PublicKeyTypeValueValuesEnum: The type of the public key requested.
      X509_PEM is the default key type.

  Fields:
    name: The resource name of the service account key in the format
      "projects/{project}/serviceAccounts/{account}/keys/{key}". Using '-' as
      a wildcard for the project will infer the project from the account. The
      account value can be the email address or the unique_id of the service
      account.
    publicKeyType: The type of the public key requested. X509_PEM is the
      default key type.
  """
    class PublicKeyTypeValueValuesEnum(_messages.Enum):
        """The type of the public key requested. X509_PEM is the default key type.

    Values:
      TYPE_NONE: <no description>
      TYPE_X509_PEM_FILE: <no description>
      TYPE_RAW_PUBLIC_KEY: <no description>
    """
        TYPE_NONE = 0
        TYPE_X509_PEM_FILE = 1
        TYPE_RAW_PUBLIC_KEY = 2

    name = _messages.StringField(1, required=True)
    publicKeyType = _messages.EnumField('PublicKeyTypeValueValuesEnum', 2)
예제 #15
0
class SourceProjectsReposWorkspacesListRequest(_messages.Message):
    """A SourceProjectsReposWorkspacesListRequest object.

  Enums:
    ViewValueValuesEnum: Specifies which parts of the Workspace resource
      should be returned in the response.

  Fields:
    projectId: The ID of the project.
    repoName: The name of the repo. Leave empty for the default repo.
    uid: A server-assigned, globally unique identifier.
    view: Specifies which parts of the Workspace resource should be returned
      in the response.
  """
    class ViewValueValuesEnum(_messages.Enum):
        """Specifies which parts of the Workspace resource should be returned in
    the response.

    Values:
      STANDARD: <no description>
      MINIMAL: <no description>
      FULL: <no description>
    """
        STANDARD = 0
        MINIMAL = 1
        FULL = 2

    projectId = _messages.StringField(1, required=True)
    repoName = _messages.StringField(2, required=True)
    uid = _messages.StringField(3)
    view = _messages.EnumField('ViewValueValuesEnum', 4)
class DnsChangesListRequest(_messages.Message):
  """A DnsChangesListRequest object.

  Enums:
    SortByValueValuesEnum: Sorting criterion. The only supported value is
      change sequence.

  Fields:
    managedZone: Identifies the managed zone addressed by this request. Can be
      the managed zone name or id.
    maxResults: Optional. Maximum number of results to be returned. If
      unspecified, the server will decide how many results to return.
    pageToken: Optional. A tag returned by a previous list request that was
      truncated. Use this parameter to continue a previous list request.
    project: Identifies the project addressed by this request.
    sortBy: Sorting criterion. The only supported value is change sequence.
    sortOrder: Sorting order direction: 'ascending' or 'descending'.
  """

  class SortByValueValuesEnum(_messages.Enum):
    """Sorting criterion. The only supported value is change sequence.

    Values:
      changeSequence: <no description>
    """
    changeSequence = 0

  managedZone = _messages.StringField(1, required=True)
  maxResults = _messages.IntegerField(2, variant=_messages.Variant.INT32)
  pageToken = _messages.StringField(3)
  project = _messages.StringField(4, required=True)
  sortBy = _messages.EnumField('SortByValueValuesEnum', 5, default=u'changeSequence')
  sortOrder = _messages.StringField(6)
class Disk(_messages.Message):
  """A Google Compute Engine disk resource specification.

  Enums:
    TypeValueValuesEnum: Required. The type of the disk to create.

  Fields:
    autoDelete: Specifies whether or not to delete the disk when the pipeline
      completes. This field is applicable only for newly created disks. See ht
      tps://cloud.google.com/compute/docs/reference/latest/instances#resource
      for more details. By default, `autoDelete` is `false`. `autoDelete` will
      be enabled if set to `true` at create time or run time.
    mountPoint: Required at create time and cannot be overridden at run time.
      Specifies the path in the docker container where files on this disk
      should be located. For example, if `mountPoint` is `/mnt/disk`, and the
      parameter has `localPath` `inputs/file.txt`, the docker container can
      access the data at `/mnt/disk/inputs/file.txt`.
    name: Required. The name of the disk that can be used in the pipeline
      parameters. Must be 1 - 63 characters. The name "boot" is reserved for
      system use.
    readOnly: Specifies how a sourced-base persistent disk will be mounted.
      See https://cloud.google.com/compute/docs/disks/persistent-
      disks#use_multi_instances for more details. Can only be set at create
      time.
    sizeGb: The size of the disk. Defaults to 500 (GB). This field is not
      applicable for local SSD.
    source: The full or partial URL of the persistent disk to attach. See
      https://cloud.google.com/compute/docs/reference/latest/instances#resourc
      e and https://cloud.google.com/compute/docs/disks/persistent-
      disks#snapshots for more details.
    type: Required. The type of the disk to create.
  """

  class TypeValueValuesEnum(_messages.Enum):
    """Required. The type of the disk to create.

    Values:
      TYPE_UNSPECIFIED: Default disk type. Use one of the other options below.
      PERSISTENT_HDD: Specifies a Google Compute Engine persistent hard disk.
        See https://cloud.google.com/compute/docs/disks/persistent-
        disks#typeofdisks for details.
      PERSISTENT_SSD: Specifies a Google Compute Engine persistent solid-state
        disk. See https://cloud.google.com/compute/docs/disks/persistent-
        disks#typeofdisks for details.
      LOCAL_SSD: Specifies a Google Compute Engine local SSD. See
        https://cloud.google.com/compute/docs/disks/local-ssd for details.
    """
    TYPE_UNSPECIFIED = 0
    PERSISTENT_HDD = 1
    PERSISTENT_SSD = 2
    LOCAL_SSD = 3

  autoDelete = _messages.BooleanField(1)
  mountPoint = _messages.StringField(2)
  name = _messages.StringField(3)
  readOnly = _messages.BooleanField(4)
  sizeGb = _messages.IntegerField(5, variant=_messages.Variant.INT32)
  source = _messages.StringField(6)
  type = _messages.EnumField('TypeValueValuesEnum', 7)
class OperationMetadata(_messages.Message):
    """Metadata describing an Operation

  Enums:
    TypeValueValuesEnum: Type of operation.

  Messages:
    RequestValue: The original request that started the operation.

  Fields:
    request: The original request that started the operation.
    target: Target of the operation - for example
      projects/project-1/regions/region-1/functions/function-1
    type: Type of operation.
  """
    class TypeValueValuesEnum(_messages.Enum):
        """Type of operation.

    Values:
      OPERATION_UNSPECIFIED: Unknown operation type.
      CREATE_FUNCTION: Triggered by CreateFunction call
      UPDATE_FUNCTION: Triggered by UpdateFunction call
      DELETE_FUNCTION: Triggered by DeleteFunction call.
    """
        OPERATION_UNSPECIFIED = 0
        CREATE_FUNCTION = 1
        UPDATE_FUNCTION = 2
        DELETE_FUNCTION = 3

    @encoding.MapUnrecognizedFields('additionalProperties')
    class RequestValue(_messages.Message):
        """The original request that started the operation.

    Messages:
      AdditionalProperty: An additional property for a RequestValue object.

    Fields:
      additionalProperties: Properties of the object. Contains field @ype with
        type URL.
    """
        class AdditionalProperty(_messages.Message):
            """An additional property for a RequestValue object.

      Fields:
        key: Name of the additional property.
        value: A extra_types.JsonValue attribute.
      """

            key = _messages.StringField(1)
            value = _messages.MessageField('extra_types.JsonValue', 2)

        additionalProperties = _messages.MessageField('AdditionalProperty',
                                                      1,
                                                      repeated=True)

    request = _messages.MessageField('RequestValue', 1)
    target = _messages.StringField(2)
    type = _messages.EnumField('TypeValueValuesEnum', 3)
class HostedFunction(_messages.Message):
    """Describes a cloud function that contains user computation executed in
  response to an event. It encapsulate function and triggers configurations.

  Enums:
    StatusValueValuesEnum: [Output only] Status of the function deployment.

  Fields:
    entryPoint: The name of the function (as defined in source code) that will
      be executed. Defaults to the resource name suffix, if not specified. For
      backward compatibility, if function with given name is not found, then
      the system will try to use function named 'function'. For Node.js this
      is name of a function exported by the module specified in
      source_location.
    gcsUrl: GCS URL pointing to the zip archive which contains the function.
    latestOperation: [Output only] Name of the most recent operation modifying
      the function. If the function status is DEPLOYING or DELETING, then it
      points to the active operation.
    name: A user-defined name of the function. Function names must be unique
      globally and match pattern: projects/*/regions/*/functions/*
    oauthScopes: The set of Google API scopes to be made available to the
      function while it is being executed. Values should be in the format of
      scope developer codes, for example:
      "https://www.googleapis.com/auth/compute".
    sourceRepository: The hosted repository where the function is defined.
    status: [Output only] Status of the function deployment.
    timeout: The cloud function execution timeout. Execution is considered
      failed and can be terminated if the function is not completed at the end
      of the timeout period. Defaults to 60 seconds.
    triggers: List of triggers.
  """
    class StatusValueValuesEnum(_messages.Enum):
        """[Output only] Status of the function deployment.

    Values:
      STATUS_UNSPECIFIED: Status not specified.
      READY: Successfully deployed.
      FAILED: Not deployed correctly - behavior is undefined. The item should
        be updated or deleted to move it out of this state.
      DEPLOYING: Creation or update in progress.
      DELETING: Deletion in progress.
    """
        STATUS_UNSPECIFIED = 0
        READY = 1
        FAILED = 2
        DEPLOYING = 3
        DELETING = 4

    entryPoint = _messages.StringField(1)
    gcsUrl = _messages.StringField(2)
    latestOperation = _messages.StringField(3)
    name = _messages.StringField(4)
    oauthScopes = _messages.StringField(5, repeated=True)
    sourceRepository = _messages.MessageField('SourceRepository', 6)
    status = _messages.EnumField('StatusValueValuesEnum', 7)
    timeout = _messages.StringField(8)
    triggers = _messages.MessageField('FunctionTrigger', 9, repeated=True)
예제 #20
0
class FieldDescriptor(messages.Message):
    """Field definition descriptor.

    Enums:
      Variant: Wire format hint sub-types for field.
      Label: Values for optional, required and repeated fields.

    Fields:
      name: Name of field.
      number: Number of field.
      variant: Variant of field.
      type_name: Type name for message and enum fields.
      default_value: String representation of default value.
    """

    Variant = messages.Variant  # pylint:disable=invalid-name

    class Label(messages.Enum):
        """Field label."""

        OPTIONAL = 1
        REQUIRED = 2
        REPEATED = 3

    name = messages.StringField(1, required=True)
    number = messages.IntegerField(3,
                                   required=True,
                                   variant=messages.Variant.INT32)
    label = messages.EnumField(Label, 4, default=Label.OPTIONAL)
    variant = messages.EnumField(Variant, 5)
    type_name = messages.StringField(6)

    # For numeric types, contains the original text representation of
    #   the value.
    # For booleans, "true" or "false".
    # For strings, contains the default text contents (not escaped in any
    #   way).
    # For bytes, contains the C escaped value.  All bytes < 128 are that are
    #   traditionally considered unprintable are also escaped.
    default_value = messages.StringField(7)
class Rule(_messages.Message):
    """A rule to be applied in a Policy.

  Enums:
    ActionValueValuesEnum: Required

  Fields:
    action: Required
    conditions: Additional restrictions that must be met
    description: Human-readable description of the rule.
    in_: If one or more 'in' clauses are specified, the rule matches if the
      PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
    logConfig: The config returned to callers of tech.iam.IAM.CheckPolicy for
      any entries that match the LOG action.
    notIn: If one or more 'not_in' clauses are specified, the rule matches if
      the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. The format
      for in and not_in entries is the same as for members in a Binding (see
      google/iam/v1/policy.proto).
    permissions: A permission is a string of form '<service>.<resource
      type>.<verb>' (e.g., 'storage.buckets.list'). A value of '*' matches all
      permissions, and a verb part of '*' (e.g., 'storage.buckets.*') matches
      all verbs.
  """
    class ActionValueValuesEnum(_messages.Enum):
        """Required

    Values:
      NO_ACTION: Default no action.
      ALLOW: Matching 'Entries' grant access.
      ALLOW_WITH_LOG: Matching 'Entries' grant access and the caller promises
        to log the request per the returned log_configs.
      DENY: Matching 'Entries' deny access.
      DENY_WITH_LOG: Matching 'Entries' deny access and the caller promises to
        log the request per the returned log_configs.
      LOG: Matching 'Entries' tell IAM.Check callers to generate logs.
    """
        NO_ACTION = 0
        ALLOW = 1
        ALLOW_WITH_LOG = 2
        DENY = 3
        DENY_WITH_LOG = 4
        LOG = 5

    action = _messages.EnumField('ActionValueValuesEnum', 1)
    conditions = _messages.MessageField('Condition', 2, repeated=True)
    description = _messages.StringField(3)
    in_ = _messages.StringField(4, repeated=True)
    logConfig = _messages.MessageField('LogConfig', 5, repeated=True)
    notIn = _messages.StringField(6, repeated=True)
    permissions = _messages.StringField(7, repeated=True)
예제 #22
0
class OptionalMessage(messages.Message):
    """Contains all message types."""
    class SimpleEnum(messages.Enum):
        """Simple enumeration type."""
        VAL1 = 1
        VAL2 = 2

    double_value = messages.FloatField(1, variant=messages.Variant.DOUBLE)
    float_value = messages.FloatField(2, variant=messages.Variant.FLOAT)
    int64_value = messages.IntegerField(3, variant=messages.Variant.INT64)
    uint64_value = messages.IntegerField(4, variant=messages.Variant.UINT64)
    int32_value = messages.IntegerField(5, variant=messages.Variant.INT32)
    bool_value = messages.BooleanField(6, variant=messages.Variant.BOOL)
    string_value = messages.StringField(7, variant=messages.Variant.STRING)
    bytes_value = messages.BytesField(8, variant=messages.Variant.BYTES)
    enum_value = messages.EnumField(SimpleEnum, 10)
class ClouderrorreportingProjectsEventsListRequest(_messages.Message):
  """A ClouderrorreportingProjectsEventsListRequest object.

  Enums:
    TimeRangePeriodValueValuesEnum: Restricts the query to the specified time
      range.

  Fields:
    groupId: The group for which events shall be returned. Required.
    pageSize: The maximum number of results to return per response.
    pageToken: A `next_page_token` provided by a previous response.
    projectName: The resource name of the Google Cloud Platform project.
      Required. Example: projects/my-project
    serviceFilter_service: The exact value to match against
      [`ServiceContext.service`](/error-
      reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service).
    serviceFilter_version: The exact value to match against
      [`ServiceContext.version`](/error-
      reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version).
    timeRange_period: Restricts the query to the specified time range.
  """

  class TimeRangePeriodValueValuesEnum(_messages.Enum):
    """Restricts the query to the specified time range.

    Values:
      PERIOD_UNSPECIFIED: <no description>
      PERIOD_1_HOUR: <no description>
      PERIOD_6_HOURS: <no description>
      PERIOD_1_DAY: <no description>
      PERIOD_1_WEEK: <no description>
      PERIOD_30_DAYS: <no description>
    """
    PERIOD_UNSPECIFIED = 0
    PERIOD_1_HOUR = 1
    PERIOD_6_HOURS = 2
    PERIOD_1_DAY = 3
    PERIOD_1_WEEK = 4
    PERIOD_30_DAYS = 5

  groupId = _messages.StringField(1)
  pageSize = _messages.IntegerField(2, variant=_messages.Variant.INT32)
  pageToken = _messages.StringField(3)
  projectName = _messages.StringField(4, required=True)
  serviceFilter_service = _messages.StringField(5)
  serviceFilter_version = _messages.StringField(6)
  timeRange_period = _messages.EnumField('TimeRangePeriodValueValuesEnum', 7)
예제 #24
0
class TensorFlowSession(_messages.Message):
    """Represents the settings used to run a TensorFlow session.

  Enums:
    ModelToKeepValueValuesEnum: Specifies which model should be kept at the
      end of the training: the model from the latest training step or the
      model with the minimum evaluation error observed during training.
      Defaults to the model from the latest step.

  Fields:
    batchSize: The number of data instances to read or process in each
      iteration step. This parameter is used to balance how quickly the model
      can be trained. Altering this parameter often requires altering learning
      rate. Decreasing batch size may require a decrease in learning rate, and
      vice-versa. Powers of two are recommended, because they can yield in
      optimizations. Typical values are between 32 and 256. This defaults to
      64.
    enableAcceleration: Whether the session should attempt to use additional
      hardware capabilities to accelerate the execution of the graph.
    modelToKeep: Specifies which model should be kept at the end of the
      training: the model from the latest training step or the model with the
      minimum evaluation error observed during training. Defaults to the model
      from the latest step.
    replicas: The number of replicas of the graph that should run in parallel
      over the data.
    steps: The number of steps to iterate over during the execution of the
      graph.
  """
    class ModelToKeepValueValuesEnum(_messages.Enum):
        """Specifies which model should be kept at the end of the training: the
    model from the latest training step or the model with the minimum
    evaluation error observed during training. Defaults to the model from the
    latest step.

    Values:
      LATEST: The latest model.
      MIN_ERROR: The model with the minimum evaluation error.
    """
        LATEST = 0
        MIN_ERROR = 1

    batchSize = _messages.IntegerField(1, variant=_messages.Variant.INT32)
    enableAcceleration = _messages.BooleanField(2)
    modelToKeep = _messages.EnumField('ModelToKeepValueValuesEnum', 3)
    replicas = _messages.IntegerField(4, variant=_messages.Variant.INT32)
    steps = _messages.IntegerField(5, variant=_messages.Variant.INT32)
class ClouddebuggerDebuggerDebuggeesBreakpointsListRequest(_messages.Message):
    """A ClouddebuggerDebuggerDebuggeesBreakpointsListRequest object.

  Enums:
    ActionValueValueValuesEnum: Only breakpoints with the specified action
      will pass the filter.

  Fields:
    action_value: Only breakpoints with the specified action will pass the
      filter.
    clientVersion: The client version making the call. Following:
      `domain/type/version` (e.g., `google.com/intellij/v1`).
    debuggeeId: ID of the debuggee whose breakpoints to list.
    includeAllUsers: When set to `true`, the response includes the list of
      breakpoints set by any user. Otherwise, it includes only breakpoints set
      by the caller.
    includeInactive: When set to `true`, the response includes active and
      inactive breakpoints. Otherwise, it includes only active breakpoints.
    stripResults: When set to `true`, the response breakpoints are stripped of
      the results fields: `stack_frames`, `evaluated_expressions` and
      `variable_table`.
    waitToken: A wait token that, if specified, blocks the call until the
      breakpoints list has changed, or a server selected timeout has expired.
      The value should be set from the last response. The error code
      `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which
      should be called again with the same `wait_token`.
  """
    class ActionValueValueValuesEnum(_messages.Enum):
        """Only breakpoints with the specified action will pass the filter.

    Values:
      CAPTURE: <no description>
      LOG: <no description>
    """
        CAPTURE = 0
        LOG = 1

    action_value = _messages.EnumField('ActionValueValueValuesEnum', 1)
    clientVersion = _messages.StringField(2)
    debuggeeId = _messages.StringField(3, required=True)
    includeAllUsers = _messages.BooleanField(4)
    includeInactive = _messages.BooleanField(5)
    stripResults = _messages.BooleanField(6)
    waitToken = _messages.StringField(7)
예제 #26
0
class ChangedFileInfo(_messages.Message):
    """Represents file information.

  Enums:
    OperationValueValuesEnum: The operation type for the file.

  Fields:
    fromPath: Related file path for copies or renames.  For copies, the type
      will be ADDED and the from_path will point to the source of the copy.
      For renames, the type will be ADDED, the from_path will point to the
      source of the rename, and another ChangedFileInfo record with that path
      will appear with type DELETED. In other words, a rename is represented
      as a copy plus a delete of the old path.
    hash: A hex-encoded hash for the file. Not necessarily a hash of the
      file's contents. Two paths in the same revision with the same hash have
      the same contents with high probability. Empty if the operation is
      CONFLICTED.
    operation: The operation type for the file.
    path: The path of the file.
  """
    class OperationValueValuesEnum(_messages.Enum):
        """The operation type for the file.

    Values:
      OPERATION_UNSPECIFIED: No operation was specified.
      ADDED: The file was added.
      DELETED: The file was deleted.
      MODIFIED: The file was modified.
      CONFLICTED: The result of merging the file is a conflict. The CONFLICTED
        type only appears in Workspace.changed_files or Snapshot.changed_files
        when the workspace is in a merge state.
    """
        OPERATION_UNSPECIFIED = 0
        ADDED = 1
        DELETED = 2
        MODIFIED = 3
        CONFLICTED = 4

    fromPath = _messages.StringField(1)
    hash = _messages.StringField(2)
    operation = _messages.EnumField('OperationValueValuesEnum', 3)
    path = _messages.StringField(4)
class WebTrigger(_messages.Message):
    """Describes WebTrigger, could be used to connect web hooks to function.

  Enums:
    ProtocolValueValuesEnum: Protocol accepted by WebTrigger.

  Fields:
    protocol: Protocol accepted by WebTrigger.
    url: [Output only] The deployed url for the function.
  """
    class ProtocolValueValuesEnum(_messages.Enum):
        """Protocol accepted by WebTrigger.

    Values:
      HTTP: HTTP protocol
    """
        HTTP = 0

    protocol = _messages.EnumField('ProtocolValueValuesEnum', 1)
    url = _messages.StringField(2)
예제 #28
0
class StatusMessage(_messages.Message):
    """Represents a contextual status message. The message can indicate an error
  or informational status, and refer to specific parts of the containing
  object. For example, the `Breakpoint.status` field can indicate an error
  referring to the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not
  found`.

  Enums:
    RefersToValueValuesEnum: Reference to which the message applies.

  Fields:
    description: Status message text.
    isError: Distinguishes errors from informational messages.
    refersTo: Reference to which the message applies.
  """
    class RefersToValueValuesEnum(_messages.Enum):
        """Reference to which the message applies.

    Values:
      UNSPECIFIED: Status doesn't refer to any particular input.
      BREAKPOINT_SOURCE_LOCATION: Status applies to the breakpoint and is
        related to its location.
      BREAKPOINT_CONDITION: Status applies to the breakpoint and is related to
        its condition.
      BREAKPOINT_EXPRESSION: Status applies to the breakpoint and is related
        to its expressions.
      VARIABLE_NAME: Status applies to the entire variable.
      VARIABLE_VALUE: Status applies to variable value (variable name is
        valid).
    """
        UNSPECIFIED = 0
        BREAKPOINT_SOURCE_LOCATION = 1
        BREAKPOINT_CONDITION = 2
        BREAKPOINT_EXPRESSION = 3
        VARIABLE_NAME = 4
        VARIABLE_VALUE = 5

    description = _messages.MessageField('FormatMessage', 1)
    isError = _messages.BooleanField(2)
    refersTo = _messages.EnumField('RefersToValueValuesEnum', 3)
예제 #29
0
class Model(_messages.Message):
    """Represents a machine learning model resource that can be used to perform
  training and prediction. In order to be usable, a model must have at least
  one version trained. A model might have multiple versions, with one of them
  marked as the default. The default version cannot be deleted.

  Enums:
    ScenarioValueValuesEnum: The machine learning scenario that this model
      implements.

  Fields:
    defaultVersion: The version marked as the default. This is used when
      version is not explicitly specified in various requests.
    description: The optional, user-supplied description of the model.
    name: The user-specified name of the model. This must be unique within the
      project.
    scenario: The machine learning scenario that this model implements.
    versions: The set of versions that have been defined on this model. A
      model can have a small and finite number of versions active at any
      point.
  """
    class ScenarioValueValuesEnum(_messages.Enum):
        """The machine learning scenario that this model implements.

    Values:
      SCENARIO_UNSPECIFIED: Default model scenario, representing an invalid
        value.
      CLASSIFICATION: Classification model
      REGRESSION: Regression model
    """
        SCENARIO_UNSPECIFIED = 0
        CLASSIFICATION = 1
        REGRESSION = 2

    defaultVersion = _messages.StringField(1)
    description = _messages.StringField(2)
    name = _messages.StringField(3)
    scenario = _messages.EnumField('ScenarioValueValuesEnum', 4)
    versions = _messages.MessageField('ModelVersion', 5, repeated=True)
class StandardQueryParameters(_messages.Message):
  """Query parameters accepted by all methods.

  Enums:
    AltValueValuesEnum: Data format for the response.

  Fields:
    alt: Data format for the response.
    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. Overrides userIp if both are provided.
    trace: A tracing token of the form "token:<tokenid>" to include in api
      requests.
    userIp: IP address of the site where the request originates. Use this if
      you want to enforce per-user limits.
  """

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

    Values:
      json: Responses with Content-Type of application/json
    """
    json = 0

  alt = _messages.EnumField('AltValueValuesEnum', 1, default=u'json')
  fields = _messages.StringField(2)
  key = _messages.StringField(3)
  oauth_token = _messages.StringField(4)
  prettyPrint = _messages.BooleanField(5, default=True)
  quotaUser = _messages.StringField(6)
  trace = _messages.StringField(7)
  userIp = _messages.StringField(8)