# -*- coding: utf-8 -*- #
# Copyright 2022 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Constants for interacting with the Cloud NetApp Files API."""


API_NAME = 'netapp'
ALPHA_API_VERSION = 'v1alpha1'
BETA_API_VERSION = 'v1beta1'

BACKUPPOLICIES_COLLECTION = 'netapp.projects.locations.backupPolicies'
BACKUPVAULTS_COLLECTION = 'netapp.projects.locations.backupVaults'
BACKUPS_COLLECTION = 'netapp.projects.locations.backupVaults.backups'
VOLUMES_COLLECTION = 'netapp.projects.locations.volumes'
STORAGEPOOLS_COLLECTION = 'netapp.projects.locations.storagePools'
ACTIVEDIRECTORIES_COLLECTION = 'netapp.projects.locations.activeDirectories'
REPLICATIONS_COLLECTION = 'netapp.projects.locations.volumes.replications'
SNAPSHOTS_COLLECTION = 'netapp.projects.locations.volumes.snapshots'
KMSCONFIGS_COLLECTION = 'netapp.projects.locations.kmsConfigs'
OPERATIONS_COLLECTION = 'netapp.projects.locations.operations'
LOCATIONS_COLLECTION = 'netapp.projects.locations'
QUOTA_RULES_COLLECTION = 'netapp.projects.locations.volumes.quotaRules'
HOST_GROUPS_COLLECTION = 'netapp.projects.locations.hostGroups'
ONTAP_COLLECTION = 'netapp.projects.locations.storagePools.ontap'
TRIALS_COLLECTION = 'netapp.projects.locations.trial'

ACTIVE_DIRECTORY_RESOURCE = 'activeDirectories'
STORAGE_POOL_RESOURCE = 'storagePools'
VOLUME_RESOURCE = 'volumes'
REPLICATION_RESOURCE = 'replications'
SNAPSHOT_RESOURCE = 'snapshots'
KMS_CONFIG_RESOURCE = 'kmsConfigs'
BACKUP_POLICY_RESOURCE = 'backupPolicies'
BACKUP_VAULT_RESOURCE = 'backupVaults'
BACKUP_RESOURCE = 'backups'
QUOTA_RULE_RESOURCE = 'quotaRules'
HOST_GROUP_RESOURCE = 'hostGroups'
ONTAP_RESOURCE = 'ontap'
VOLUME_BACKUP_CONFIGS = 'volumeBackupConfigs'
TRIAL_RESOURCE = 'trial'

DEFAULT_MAX_WAIT_MS = 1800000
MAX_WAIT_MS_CREATE_STORAGE_POOL = 7200000
MAX_WAIT_MS_UPDATE_STORAGE_POOL = 3600000
