Skip to content

Commit

Permalink
Adds attributes DataSource.object_type, DataSource.resource_uri and f…
Browse files Browse the repository at this point in the history
…riendly_name to BackupInstance (#11)
  • Loading branch information
rebbuh authored Jan 30, 2023
1 parent b37cc8f commit 2dcc192
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions hybridcloud/backends/azureblob.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,17 +230,20 @@ def create_or_update_bucket(self, namespace, name, spec):

backup_properties = BackupInstanceResource(
properties=BackupInstance(
policy_info=PolicyInfo(
policy_id=policy_id
),
data_source_info=Datasource(
datasource_type="Microsoft.Storage/storageAccounts/blobServices",
object_type="Datasource",
resource_id=storage_account.id,
resource_location=self._location,
resource_name=storage_account.name,
resource_type="Microsoft.Storage/storageAccounts",
resource_location=self._location,
resource_uri=""
),
friendly_name=bucket_name,
object_type="BackupInstance",
policy_info=PolicyInfo(
policy_id=policy_id
)
)
)

Expand Down

0 comments on commit 2dcc192

Please sign in to comment.