pulumi-databricks 1.74.0a1753335781__py3-none-any.whl → 1.77.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_databricks/__init__.py +185 -12
- pulumi_databricks/_inputs.py +30467 -20225
- pulumi_databricks/access_control_rule_set.py +28 -29
- pulumi_databricks/account_federation_policy.py +473 -0
- pulumi_databricks/account_network_policy.py +74 -43
- pulumi_databricks/account_setting_v2.py +759 -0
- pulumi_databricks/aibi_dashboard_embedding_access_policy_setting.py +30 -31
- pulumi_databricks/aibi_dashboard_embedding_approved_domains_setting.py +30 -31
- pulumi_databricks/alert.py +185 -186
- pulumi_databricks/alert_v2.py +369 -211
- pulumi_databricks/app.py +315 -209
- pulumi_databricks/apps_settings_custom_template.py +531 -0
- pulumi_databricks/artifact_allowlist.py +72 -73
- pulumi_databricks/automatic_cluster_update_workspace_setting.py +30 -31
- pulumi_databricks/budget.py +84 -85
- pulumi_databricks/budget_policy.py +75 -53
- pulumi_databricks/catalog.py +544 -225
- pulumi_databricks/catalog_workspace_binding.py +82 -83
- pulumi_databricks/cluster.py +561 -683
- pulumi_databricks/cluster_policy.py +115 -116
- pulumi_databricks/compliance_security_profile_workspace_setting.py +30 -31
- pulumi_databricks/config/__init__.py +1 -1
- pulumi_databricks/config/__init__.pyi +3 -2
- pulumi_databricks/config/vars.py +40 -37
- pulumi_databricks/connection.py +346 -211
- pulumi_databricks/credential.py +262 -263
- pulumi_databricks/custom_app_integration.py +175 -176
- pulumi_databricks/dashboard.py +207 -208
- pulumi_databricks/data_quality_monitor.py +453 -0
- pulumi_databricks/data_quality_refresh.py +492 -0
- pulumi_databricks/database_database_catalog.py +437 -0
- pulumi_databricks/database_instance.py +938 -137
- pulumi_databricks/database_synced_database_table.py +589 -0
- pulumi_databricks/dbfs_file.py +87 -84
- pulumi_databricks/default_namespace_setting.py +30 -31
- pulumi_databricks/directory.py +61 -62
- pulumi_databricks/disable_legacy_access_setting.py +109 -33
- pulumi_databricks/disable_legacy_dbfs_setting.py +58 -39
- pulumi_databricks/disable_legacy_features_setting.py +62 -37
- pulumi_databricks/enhanced_security_monitoring_workspace_setting.py +30 -31
- pulumi_databricks/entitlements.py +148 -149
- pulumi_databricks/entity_tag_assignment.py +409 -0
- pulumi_databricks/external_location.py +276 -290
- pulumi_databricks/external_metadata.py +726 -0
- pulumi_databricks/feature_engineering_feature.py +480 -0
- pulumi_databricks/feature_engineering_materialized_feature.py +397 -0
- pulumi_databricks/file.py +96 -97
- pulumi_databricks/get_account_federation_policies.py +127 -0
- pulumi_databricks/get_account_federation_policy.py +214 -0
- pulumi_databricks/get_account_network_policies.py +36 -7
- pulumi_databricks/get_account_network_policy.py +33 -29
- pulumi_databricks/get_account_setting_v2.py +331 -0
- pulumi_databricks/get_alert_v2.py +100 -84
- pulumi_databricks/get_alerts_v2.py +35 -17
- pulumi_databricks/get_app.py +31 -20
- pulumi_databricks/get_apps.py +26 -15
- pulumi_databricks/get_apps_settings_custom_template.py +207 -0
- pulumi_databricks/get_apps_settings_custom_templates.py +133 -0
- pulumi_databricks/get_aws_assume_role_policy.py +27 -28
- pulumi_databricks/get_aws_bucket_policy.py +39 -40
- pulumi_databricks/get_aws_cross_account_policy.py +47 -48
- pulumi_databricks/get_aws_unity_catalog_assume_role_policy.py +35 -36
- pulumi_databricks/get_aws_unity_catalog_policy.py +35 -36
- pulumi_databricks/get_budget_policies.py +74 -11
- pulumi_databricks/get_budget_policy.py +43 -39
- pulumi_databricks/get_catalog.py +35 -19
- pulumi_databricks/get_catalogs.py +32 -14
- pulumi_databricks/get_cluster.py +41 -25
- pulumi_databricks/get_cluster_policy.py +72 -54
- pulumi_databricks/get_clusters.py +41 -25
- pulumi_databricks/get_current_config.py +23 -24
- pulumi_databricks/get_current_metastore.py +29 -13
- pulumi_databricks/get_current_user.py +17 -18
- pulumi_databricks/get_dashboards.py +34 -15
- pulumi_databricks/get_data_quality_monitor.py +210 -0
- pulumi_databricks/get_data_quality_monitors.py +143 -0
- pulumi_databricks/get_data_quality_refresh.py +270 -0
- pulumi_databricks/get_data_quality_refreshes.py +207 -0
- pulumi_databricks/get_database_database_catalog.py +176 -0
- pulumi_databricks/get_database_database_catalogs.py +120 -0
- pulumi_databricks/get_database_instance.py +274 -50
- pulumi_databricks/get_database_instances.py +35 -11
- pulumi_databricks/get_database_synced_database_table.py +225 -0
- pulumi_databricks/get_database_synced_database_tables.py +120 -0
- pulumi_databricks/get_dbfs_file.py +19 -20
- pulumi_databricks/get_dbfs_file_paths.py +16 -17
- pulumi_databricks/get_directory.py +43 -25
- pulumi_databricks/get_entity_tag_assignment.py +202 -0
- pulumi_databricks/get_entity_tag_assignments.py +187 -0
- pulumi_databricks/get_external_location.py +35 -19
- pulumi_databricks/get_external_locations.py +32 -14
- pulumi_databricks/get_external_metadata.py +292 -0
- pulumi_databricks/get_external_metadatas.py +135 -0
- pulumi_databricks/get_feature_engineering_feature.py +179 -0
- pulumi_databricks/get_feature_engineering_features.py +103 -0
- pulumi_databricks/get_feature_engineering_materialized_feature.py +180 -0
- pulumi_databricks/get_feature_engineering_materialized_features.py +123 -0
- pulumi_databricks/get_functions.py +38 -24
- pulumi_databricks/get_group.py +85 -86
- pulumi_databricks/get_instance_pool.py +10 -11
- pulumi_databricks/get_instance_profiles.py +25 -9
- pulumi_databricks/get_job.py +22 -23
- pulumi_databricks/get_jobs.py +44 -26
- pulumi_databricks/get_materialized_features_feature_tag.py +102 -0
- pulumi_databricks/get_materialized_features_feature_tags.py +133 -0
- pulumi_databricks/get_metastore.py +28 -29
- pulumi_databricks/get_metastores.py +9 -10
- pulumi_databricks/get_mlflow_experiment.py +62 -46
- pulumi_databricks/get_mlflow_model.py +47 -31
- pulumi_databricks/get_mlflow_models.py +32 -14
- pulumi_databricks/get_mws_credentials.py +9 -10
- pulumi_databricks/get_mws_network_connectivity_config.py +40 -41
- pulumi_databricks/get_mws_network_connectivity_configs.py +15 -16
- pulumi_databricks/get_mws_workspaces.py +5 -6
- pulumi_databricks/get_node_type.py +123 -87
- pulumi_databricks/get_notebook.py +37 -38
- pulumi_databricks/get_notebook_paths.py +16 -17
- pulumi_databricks/get_notification_destinations.py +33 -18
- pulumi_databricks/get_online_store.py +36 -27
- pulumi_databricks/get_online_stores.py +33 -13
- pulumi_databricks/get_pipelines.py +49 -31
- pulumi_databricks/get_policy_info.py +338 -0
- pulumi_databricks/get_policy_infos.py +169 -0
- pulumi_databricks/get_quality_monitor_v2.py +21 -18
- pulumi_databricks/get_quality_monitors_v2.py +26 -8
- pulumi_databricks/get_registered_model.py +41 -27
- pulumi_databricks/get_registered_model_versions.py +29 -15
- pulumi_databricks/get_rfa_access_request_destinations.py +126 -0
- pulumi_databricks/get_schema.py +32 -16
- pulumi_databricks/get_schemas.py +38 -20
- pulumi_databricks/get_service_principal.py +80 -58
- pulumi_databricks/get_service_principal_federation_policies.py +151 -0
- pulumi_databricks/get_service_principal_federation_policy.py +220 -0
- pulumi_databricks/get_service_principals.py +16 -17
- pulumi_databricks/get_serving_endpoints.py +23 -9
- pulumi_databricks/get_share.py +130 -32
- pulumi_databricks/get_shares.py +29 -11
- pulumi_databricks/get_spark_version.py +87 -69
- pulumi_databricks/get_sql_warehouse.py +124 -110
- pulumi_databricks/get_sql_warehouses.py +37 -19
- pulumi_databricks/get_storage_credential.py +32 -16
- pulumi_databricks/get_storage_credentials.py +32 -14
- pulumi_databricks/get_table.py +30 -14
- pulumi_databricks/get_tables.py +41 -23
- pulumi_databricks/get_tag_policies.py +139 -0
- pulumi_databricks/get_tag_policy.py +175 -0
- pulumi_databricks/get_user.py +33 -34
- pulumi_databricks/get_views.py +41 -23
- pulumi_databricks/get_volume.py +32 -16
- pulumi_databricks/get_volumes.py +41 -23
- pulumi_databricks/get_workspace_network_option.py +45 -26
- pulumi_databricks/get_workspace_setting_v2.py +331 -0
- pulumi_databricks/get_zones.py +39 -21
- pulumi_databricks/git_credential.py +242 -76
- pulumi_databricks/global_init_script.py +99 -100
- pulumi_databricks/grant.py +215 -212
- pulumi_databricks/grants.py +200 -211
- pulumi_databricks/group.py +176 -177
- pulumi_databricks/group_instance_profile.py +37 -38
- pulumi_databricks/group_member.py +37 -38
- pulumi_databricks/group_role.py +37 -38
- pulumi_databricks/instance_pool.py +168 -169
- pulumi_databricks/instance_profile.py +69 -70
- pulumi_databricks/ip_access_list.py +71 -72
- pulumi_databricks/job.py +426 -346
- pulumi_databricks/lakehouse_monitor.py +199 -200
- pulumi_databricks/library.py +264 -99
- pulumi_databricks/materialized_features_feature_tag.py +213 -0
- pulumi_databricks/metastore.py +254 -255
- pulumi_databricks/metastore_assignment.py +52 -53
- pulumi_databricks/metastore_data_access.py +153 -154
- pulumi_databricks/metastore_provider.py +69 -70
- pulumi_databricks/mlflow_experiment.py +108 -109
- pulumi_databricks/mlflow_model.py +45 -46
- pulumi_databricks/mlflow_webhook.py +75 -76
- pulumi_databricks/model_serving.py +195 -74
- pulumi_databricks/model_serving_provisioned_throughput.py +100 -54
- pulumi_databricks/mount.py +103 -104
- pulumi_databricks/mws_credentials.py +99 -100
- pulumi_databricks/mws_customer_managed_keys.py +75 -76
- pulumi_databricks/mws_log_delivery.py +188 -189
- pulumi_databricks/mws_ncc_binding.py +35 -36
- pulumi_databricks/mws_ncc_private_endpoint_rule.py +312 -289
- pulumi_databricks/mws_network_connectivity_config.py +136 -98
- pulumi_databricks/mws_networks.py +159 -160
- pulumi_databricks/mws_permission_assignment.py +70 -71
- pulumi_databricks/mws_private_access_settings.py +116 -117
- pulumi_databricks/mws_storage_configurations.py +74 -75
- pulumi_databricks/mws_vpc_endpoint.py +149 -150
- pulumi_databricks/mws_workspaces.py +464 -418
- pulumi_databricks/notebook.py +143 -144
- pulumi_databricks/notification_destination.py +38 -39
- pulumi_databricks/obo_token.py +63 -64
- pulumi_databricks/online_store.py +121 -70
- pulumi_databricks/online_table.py +41 -42
- pulumi_databricks/outputs.py +47821 -30802
- pulumi_databricks/permission_assignment.py +298 -57
- pulumi_databricks/permissions.py +523 -362
- pulumi_databricks/pipeline.py +515 -480
- pulumi_databricks/policy_info.py +916 -0
- pulumi_databricks/provider.py +283 -269
- pulumi_databricks/pulumi-plugin.json +1 -1
- pulumi_databricks/quality_monitor.py +263 -217
- pulumi_databricks/quality_monitor_v2.py +49 -46
- pulumi_databricks/query.py +227 -228
- pulumi_databricks/recipient.py +208 -209
- pulumi_databricks/registered_model.py +393 -122
- pulumi_databricks/repo.py +117 -118
- pulumi_databricks/restrict_workspace_admins_setting.py +30 -31
- pulumi_databricks/rfa_access_request_destinations.py +286 -0
- pulumi_databricks/schema.py +159 -160
- pulumi_databricks/secret.py +72 -73
- pulumi_databricks/secret_acl.py +52 -53
- pulumi_databricks/secret_scope.py +55 -56
- pulumi_databricks/service_principal.py +279 -278
- pulumi_databricks/service_principal_federation_policy.py +469 -0
- pulumi_databricks/service_principal_role.py +35 -36
- pulumi_databricks/service_principal_secret.py +156 -157
- pulumi_databricks/share.py +186 -187
- pulumi_databricks/sql_alert.py +98 -99
- pulumi_databricks/sql_dashboard.py +94 -95
- pulumi_databricks/sql_endpoint.py +298 -266
- pulumi_databricks/sql_global_config.py +103 -104
- pulumi_databricks/sql_permissions.py +121 -122
- pulumi_databricks/sql_query.py +150 -151
- pulumi_databricks/sql_table.py +310 -283
- pulumi_databricks/sql_visualization.py +92 -93
- pulumi_databricks/sql_widget.py +91 -88
- pulumi_databricks/storage_credential.py +236 -184
- pulumi_databricks/system_schema.py +50 -51
- pulumi_databricks/table.py +147 -148
- pulumi_databricks/tag_policy.py +357 -0
- pulumi_databricks/token.py +83 -84
- pulumi_databricks/user.py +284 -285
- pulumi_databricks/user_instance_profile.py +35 -36
- pulumi_databricks/user_role.py +35 -36
- pulumi_databricks/vector_search_endpoint.py +117 -118
- pulumi_databricks/vector_search_index.py +86 -87
- pulumi_databricks/volume.py +129 -130
- pulumi_databricks/workspace_binding.py +82 -131
- pulumi_databricks/workspace_conf.py +18 -19
- pulumi_databricks/workspace_file.py +100 -101
- pulumi_databricks/workspace_network_option.py +89 -40
- pulumi_databricks/workspace_setting_v2.py +759 -0
- {pulumi_databricks-1.74.0a1753335781.dist-info → pulumi_databricks-1.77.0.dist-info}/METADATA +1 -1
- pulumi_databricks-1.77.0.dist-info/RECORD +250 -0
- pulumi_databricks/get_recipient_federation_policies.py +0 -83
- pulumi_databricks/get_recipient_federation_policy.py +0 -166
- pulumi_databricks/recipient_federation_policy.py +0 -347
- pulumi_databricks-1.74.0a1753335781.dist-info/RECORD +0 -205
- {pulumi_databricks-1.74.0a1753335781.dist-info → pulumi_databricks-1.77.0.dist-info}/WHEEL +0 -0
- {pulumi_databricks-1.74.0a1753335781.dist-info → pulumi_databricks-1.77.0.dist-info}/top_level.txt +0 -0
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
4
|
|
|
5
|
-
import builtins
|
|
6
|
-
import copy
|
|
5
|
+
import builtins as _builtins
|
|
7
6
|
import warnings
|
|
8
7
|
import sys
|
|
9
8
|
import pulumi
|
|
@@ -20,143 +19,239 @@ __all__ = ['GitCredentialArgs', 'GitCredential']
|
|
|
20
19
|
@pulumi.input_type
|
|
21
20
|
class GitCredentialArgs:
|
|
22
21
|
def __init__(__self__, *,
|
|
23
|
-
git_provider: pulumi.Input[
|
|
24
|
-
force: Optional[pulumi.Input[
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
git_provider: pulumi.Input[_builtins.str],
|
|
23
|
+
force: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
24
|
+
git_email: Optional[pulumi.Input[_builtins.str]] = None,
|
|
25
|
+
git_username: Optional[pulumi.Input[_builtins.str]] = None,
|
|
26
|
+
is_default_for_provider: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
27
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
28
|
+
personal_access_token: Optional[pulumi.Input[_builtins.str]] = None):
|
|
27
29
|
"""
|
|
28
30
|
The set of arguments for constructing a GitCredential resource.
|
|
29
|
-
:param pulumi.Input[
|
|
30
|
-
:param pulumi.Input[
|
|
31
|
-
:param pulumi.Input[
|
|
32
|
-
:param pulumi.Input[
|
|
31
|
+
:param pulumi.Input[_builtins.str] git_provider: case insensitive name of the Git provider. Following values are supported right now (could be a subject for a change, consult [Git Credentials API documentation](https://docs.databricks.com/dev-tools/api/latest/gitcredentials.html)): `gitHub`, `gitHubEnterprise`, `bitbucketCloud`, `bitbucketServer`, `azureDevOpsServices`, `gitLab`, `gitLabEnterpriseEdition`, `awsCodeCommit`, `azureDevOpsServicesAad`.
|
|
32
|
+
:param pulumi.Input[_builtins.bool] force: specify if settings need to be enforced (i.e., to overwrite previously set credential for service principals).
|
|
33
|
+
:param pulumi.Input[_builtins.str] git_email: The email associated with your Git provider user account. Used for authentication with the remote repository and also sets the author & committer identity for commits.
|
|
34
|
+
:param pulumi.Input[_builtins.str] git_username: user name at Git provider. For most Git providers it is only used to set the Git committer & author names for commits, however it may be required for authentication depending on your Git provider / token requirements.
|
|
35
|
+
:param pulumi.Input[_builtins.bool] is_default_for_provider: boolean flag specifying if the credential is the default for the given provider type.
|
|
36
|
+
:param pulumi.Input[_builtins.str] name: the name of the git credential, used for identification and ease of lookup.
|
|
37
|
+
:param pulumi.Input[_builtins.str] personal_access_token: The personal access token used to authenticate to the corresponding Git provider. If value is not provided, it's sourced from the first environment variable of `GITHUB_TOKEN`, `GITLAB_TOKEN`, or `AZDO_PERSONAL_ACCESS_TOKEN`, that has a non-empty value.
|
|
33
38
|
"""
|
|
34
39
|
pulumi.set(__self__, "git_provider", git_provider)
|
|
35
40
|
if force is not None:
|
|
36
41
|
pulumi.set(__self__, "force", force)
|
|
42
|
+
if git_email is not None:
|
|
43
|
+
pulumi.set(__self__, "git_email", git_email)
|
|
37
44
|
if git_username is not None:
|
|
38
45
|
pulumi.set(__self__, "git_username", git_username)
|
|
46
|
+
if is_default_for_provider is not None:
|
|
47
|
+
pulumi.set(__self__, "is_default_for_provider", is_default_for_provider)
|
|
48
|
+
if name is not None:
|
|
49
|
+
pulumi.set(__self__, "name", name)
|
|
39
50
|
if personal_access_token is not None:
|
|
40
51
|
pulumi.set(__self__, "personal_access_token", personal_access_token)
|
|
41
52
|
|
|
42
|
-
@property
|
|
53
|
+
@_builtins.property
|
|
43
54
|
@pulumi.getter(name="gitProvider")
|
|
44
|
-
def git_provider(self) -> pulumi.Input[
|
|
55
|
+
def git_provider(self) -> pulumi.Input[_builtins.str]:
|
|
45
56
|
"""
|
|
46
57
|
case insensitive name of the Git provider. Following values are supported right now (could be a subject for a change, consult [Git Credentials API documentation](https://docs.databricks.com/dev-tools/api/latest/gitcredentials.html)): `gitHub`, `gitHubEnterprise`, `bitbucketCloud`, `bitbucketServer`, `azureDevOpsServices`, `gitLab`, `gitLabEnterpriseEdition`, `awsCodeCommit`, `azureDevOpsServicesAad`.
|
|
47
58
|
"""
|
|
48
59
|
return pulumi.get(self, "git_provider")
|
|
49
60
|
|
|
50
61
|
@git_provider.setter
|
|
51
|
-
def git_provider(self, value: pulumi.Input[
|
|
62
|
+
def git_provider(self, value: pulumi.Input[_builtins.str]):
|
|
52
63
|
pulumi.set(self, "git_provider", value)
|
|
53
64
|
|
|
54
|
-
@property
|
|
65
|
+
@_builtins.property
|
|
55
66
|
@pulumi.getter
|
|
56
|
-
def force(self) -> Optional[pulumi.Input[
|
|
67
|
+
def force(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
57
68
|
"""
|
|
58
|
-
specify if settings need to be enforced
|
|
69
|
+
specify if settings need to be enforced (i.e., to overwrite previously set credential for service principals).
|
|
59
70
|
"""
|
|
60
71
|
return pulumi.get(self, "force")
|
|
61
72
|
|
|
62
73
|
@force.setter
|
|
63
|
-
def force(self, value: Optional[pulumi.Input[
|
|
74
|
+
def force(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
64
75
|
pulumi.set(self, "force", value)
|
|
65
76
|
|
|
66
|
-
@property
|
|
77
|
+
@_builtins.property
|
|
78
|
+
@pulumi.getter(name="gitEmail")
|
|
79
|
+
def git_email(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
80
|
+
"""
|
|
81
|
+
The email associated with your Git provider user account. Used for authentication with the remote repository and also sets the author & committer identity for commits.
|
|
82
|
+
"""
|
|
83
|
+
return pulumi.get(self, "git_email")
|
|
84
|
+
|
|
85
|
+
@git_email.setter
|
|
86
|
+
def git_email(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
87
|
+
pulumi.set(self, "git_email", value)
|
|
88
|
+
|
|
89
|
+
@_builtins.property
|
|
67
90
|
@pulumi.getter(name="gitUsername")
|
|
68
|
-
def git_username(self) -> Optional[pulumi.Input[
|
|
91
|
+
def git_username(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
69
92
|
"""
|
|
70
|
-
user name at Git provider.
|
|
93
|
+
user name at Git provider. For most Git providers it is only used to set the Git committer & author names for commits, however it may be required for authentication depending on your Git provider / token requirements.
|
|
71
94
|
"""
|
|
72
95
|
return pulumi.get(self, "git_username")
|
|
73
96
|
|
|
74
97
|
@git_username.setter
|
|
75
|
-
def git_username(self, value: Optional[pulumi.Input[
|
|
98
|
+
def git_username(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
76
99
|
pulumi.set(self, "git_username", value)
|
|
77
100
|
|
|
78
|
-
@property
|
|
101
|
+
@_builtins.property
|
|
102
|
+
@pulumi.getter(name="isDefaultForProvider")
|
|
103
|
+
def is_default_for_provider(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
104
|
+
"""
|
|
105
|
+
boolean flag specifying if the credential is the default for the given provider type.
|
|
106
|
+
"""
|
|
107
|
+
return pulumi.get(self, "is_default_for_provider")
|
|
108
|
+
|
|
109
|
+
@is_default_for_provider.setter
|
|
110
|
+
def is_default_for_provider(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
111
|
+
pulumi.set(self, "is_default_for_provider", value)
|
|
112
|
+
|
|
113
|
+
@_builtins.property
|
|
114
|
+
@pulumi.getter
|
|
115
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
116
|
+
"""
|
|
117
|
+
the name of the git credential, used for identification and ease of lookup.
|
|
118
|
+
"""
|
|
119
|
+
return pulumi.get(self, "name")
|
|
120
|
+
|
|
121
|
+
@name.setter
|
|
122
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
123
|
+
pulumi.set(self, "name", value)
|
|
124
|
+
|
|
125
|
+
@_builtins.property
|
|
79
126
|
@pulumi.getter(name="personalAccessToken")
|
|
80
|
-
def personal_access_token(self) -> Optional[pulumi.Input[
|
|
127
|
+
def personal_access_token(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
81
128
|
"""
|
|
82
129
|
The personal access token used to authenticate to the corresponding Git provider. If value is not provided, it's sourced from the first environment variable of `GITHUB_TOKEN`, `GITLAB_TOKEN`, or `AZDO_PERSONAL_ACCESS_TOKEN`, that has a non-empty value.
|
|
83
130
|
"""
|
|
84
131
|
return pulumi.get(self, "personal_access_token")
|
|
85
132
|
|
|
86
133
|
@personal_access_token.setter
|
|
87
|
-
def personal_access_token(self, value: Optional[pulumi.Input[
|
|
134
|
+
def personal_access_token(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
88
135
|
pulumi.set(self, "personal_access_token", value)
|
|
89
136
|
|
|
90
137
|
|
|
91
138
|
@pulumi.input_type
|
|
92
139
|
class _GitCredentialState:
|
|
93
140
|
def __init__(__self__, *,
|
|
94
|
-
force: Optional[pulumi.Input[
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
141
|
+
force: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
142
|
+
git_email: Optional[pulumi.Input[_builtins.str]] = None,
|
|
143
|
+
git_provider: Optional[pulumi.Input[_builtins.str]] = None,
|
|
144
|
+
git_username: Optional[pulumi.Input[_builtins.str]] = None,
|
|
145
|
+
is_default_for_provider: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
146
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
147
|
+
personal_access_token: Optional[pulumi.Input[_builtins.str]] = None):
|
|
98
148
|
"""
|
|
99
149
|
Input properties used for looking up and filtering GitCredential resources.
|
|
100
|
-
:param pulumi.Input[
|
|
101
|
-
:param pulumi.Input[
|
|
102
|
-
:param pulumi.Input[
|
|
103
|
-
:param pulumi.Input[
|
|
150
|
+
:param pulumi.Input[_builtins.bool] force: specify if settings need to be enforced (i.e., to overwrite previously set credential for service principals).
|
|
151
|
+
:param pulumi.Input[_builtins.str] git_email: The email associated with your Git provider user account. Used for authentication with the remote repository and also sets the author & committer identity for commits.
|
|
152
|
+
:param pulumi.Input[_builtins.str] git_provider: case insensitive name of the Git provider. Following values are supported right now (could be a subject for a change, consult [Git Credentials API documentation](https://docs.databricks.com/dev-tools/api/latest/gitcredentials.html)): `gitHub`, `gitHubEnterprise`, `bitbucketCloud`, `bitbucketServer`, `azureDevOpsServices`, `gitLab`, `gitLabEnterpriseEdition`, `awsCodeCommit`, `azureDevOpsServicesAad`.
|
|
153
|
+
:param pulumi.Input[_builtins.str] git_username: user name at Git provider. For most Git providers it is only used to set the Git committer & author names for commits, however it may be required for authentication depending on your Git provider / token requirements.
|
|
154
|
+
:param pulumi.Input[_builtins.bool] is_default_for_provider: boolean flag specifying if the credential is the default for the given provider type.
|
|
155
|
+
:param pulumi.Input[_builtins.str] name: the name of the git credential, used for identification and ease of lookup.
|
|
156
|
+
:param pulumi.Input[_builtins.str] personal_access_token: The personal access token used to authenticate to the corresponding Git provider. If value is not provided, it's sourced from the first environment variable of `GITHUB_TOKEN`, `GITLAB_TOKEN`, or `AZDO_PERSONAL_ACCESS_TOKEN`, that has a non-empty value.
|
|
104
157
|
"""
|
|
105
158
|
if force is not None:
|
|
106
159
|
pulumi.set(__self__, "force", force)
|
|
160
|
+
if git_email is not None:
|
|
161
|
+
pulumi.set(__self__, "git_email", git_email)
|
|
107
162
|
if git_provider is not None:
|
|
108
163
|
pulumi.set(__self__, "git_provider", git_provider)
|
|
109
164
|
if git_username is not None:
|
|
110
165
|
pulumi.set(__self__, "git_username", git_username)
|
|
166
|
+
if is_default_for_provider is not None:
|
|
167
|
+
pulumi.set(__self__, "is_default_for_provider", is_default_for_provider)
|
|
168
|
+
if name is not None:
|
|
169
|
+
pulumi.set(__self__, "name", name)
|
|
111
170
|
if personal_access_token is not None:
|
|
112
171
|
pulumi.set(__self__, "personal_access_token", personal_access_token)
|
|
113
172
|
|
|
114
|
-
@property
|
|
173
|
+
@_builtins.property
|
|
115
174
|
@pulumi.getter
|
|
116
|
-
def force(self) -> Optional[pulumi.Input[
|
|
175
|
+
def force(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
117
176
|
"""
|
|
118
|
-
specify if settings need to be enforced
|
|
177
|
+
specify if settings need to be enforced (i.e., to overwrite previously set credential for service principals).
|
|
119
178
|
"""
|
|
120
179
|
return pulumi.get(self, "force")
|
|
121
180
|
|
|
122
181
|
@force.setter
|
|
123
|
-
def force(self, value: Optional[pulumi.Input[
|
|
182
|
+
def force(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
124
183
|
pulumi.set(self, "force", value)
|
|
125
184
|
|
|
126
|
-
@property
|
|
185
|
+
@_builtins.property
|
|
186
|
+
@pulumi.getter(name="gitEmail")
|
|
187
|
+
def git_email(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
188
|
+
"""
|
|
189
|
+
The email associated with your Git provider user account. Used for authentication with the remote repository and also sets the author & committer identity for commits.
|
|
190
|
+
"""
|
|
191
|
+
return pulumi.get(self, "git_email")
|
|
192
|
+
|
|
193
|
+
@git_email.setter
|
|
194
|
+
def git_email(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
195
|
+
pulumi.set(self, "git_email", value)
|
|
196
|
+
|
|
197
|
+
@_builtins.property
|
|
127
198
|
@pulumi.getter(name="gitProvider")
|
|
128
|
-
def git_provider(self) -> Optional[pulumi.Input[
|
|
199
|
+
def git_provider(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
129
200
|
"""
|
|
130
201
|
case insensitive name of the Git provider. Following values are supported right now (could be a subject for a change, consult [Git Credentials API documentation](https://docs.databricks.com/dev-tools/api/latest/gitcredentials.html)): `gitHub`, `gitHubEnterprise`, `bitbucketCloud`, `bitbucketServer`, `azureDevOpsServices`, `gitLab`, `gitLabEnterpriseEdition`, `awsCodeCommit`, `azureDevOpsServicesAad`.
|
|
131
202
|
"""
|
|
132
203
|
return pulumi.get(self, "git_provider")
|
|
133
204
|
|
|
134
205
|
@git_provider.setter
|
|
135
|
-
def git_provider(self, value: Optional[pulumi.Input[
|
|
206
|
+
def git_provider(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
136
207
|
pulumi.set(self, "git_provider", value)
|
|
137
208
|
|
|
138
|
-
@property
|
|
209
|
+
@_builtins.property
|
|
139
210
|
@pulumi.getter(name="gitUsername")
|
|
140
|
-
def git_username(self) -> Optional[pulumi.Input[
|
|
211
|
+
def git_username(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
141
212
|
"""
|
|
142
|
-
user name at Git provider.
|
|
213
|
+
user name at Git provider. For most Git providers it is only used to set the Git committer & author names for commits, however it may be required for authentication depending on your Git provider / token requirements.
|
|
143
214
|
"""
|
|
144
215
|
return pulumi.get(self, "git_username")
|
|
145
216
|
|
|
146
217
|
@git_username.setter
|
|
147
|
-
def git_username(self, value: Optional[pulumi.Input[
|
|
218
|
+
def git_username(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
148
219
|
pulumi.set(self, "git_username", value)
|
|
149
220
|
|
|
150
|
-
@property
|
|
221
|
+
@_builtins.property
|
|
222
|
+
@pulumi.getter(name="isDefaultForProvider")
|
|
223
|
+
def is_default_for_provider(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
224
|
+
"""
|
|
225
|
+
boolean flag specifying if the credential is the default for the given provider type.
|
|
226
|
+
"""
|
|
227
|
+
return pulumi.get(self, "is_default_for_provider")
|
|
228
|
+
|
|
229
|
+
@is_default_for_provider.setter
|
|
230
|
+
def is_default_for_provider(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
231
|
+
pulumi.set(self, "is_default_for_provider", value)
|
|
232
|
+
|
|
233
|
+
@_builtins.property
|
|
234
|
+
@pulumi.getter
|
|
235
|
+
def name(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
236
|
+
"""
|
|
237
|
+
the name of the git credential, used for identification and ease of lookup.
|
|
238
|
+
"""
|
|
239
|
+
return pulumi.get(self, "name")
|
|
240
|
+
|
|
241
|
+
@name.setter
|
|
242
|
+
def name(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
243
|
+
pulumi.set(self, "name", value)
|
|
244
|
+
|
|
245
|
+
@_builtins.property
|
|
151
246
|
@pulumi.getter(name="personalAccessToken")
|
|
152
|
-
def personal_access_token(self) -> Optional[pulumi.Input[
|
|
247
|
+
def personal_access_token(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
153
248
|
"""
|
|
154
249
|
The personal access token used to authenticate to the corresponding Git provider. If value is not provided, it's sourced from the first environment variable of `GITHUB_TOKEN`, `GITLAB_TOKEN`, or `AZDO_PERSONAL_ACCESS_TOKEN`, that has a non-empty value.
|
|
155
250
|
"""
|
|
156
251
|
return pulumi.get(self, "personal_access_token")
|
|
157
252
|
|
|
158
253
|
@personal_access_token.setter
|
|
159
|
-
def personal_access_token(self, value: Optional[pulumi.Input[
|
|
254
|
+
def personal_access_token(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
160
255
|
pulumi.set(self, "personal_access_token", value)
|
|
161
256
|
|
|
162
257
|
|
|
@@ -166,10 +261,13 @@ class GitCredential(pulumi.CustomResource):
|
|
|
166
261
|
def __init__(__self__,
|
|
167
262
|
resource_name: str,
|
|
168
263
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
169
|
-
force: Optional[pulumi.Input[
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
264
|
+
force: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
265
|
+
git_email: Optional[pulumi.Input[_builtins.str]] = None,
|
|
266
|
+
git_provider: Optional[pulumi.Input[_builtins.str]] = None,
|
|
267
|
+
git_username: Optional[pulumi.Input[_builtins.str]] = None,
|
|
268
|
+
is_default_for_provider: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
269
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
270
|
+
personal_access_token: Optional[pulumi.Input[_builtins.str]] = None,
|
|
173
271
|
__props__=None):
|
|
174
272
|
"""
|
|
175
273
|
This resource allows you to manage credentials for [Databricks Repos](https://docs.databricks.com/repos.html) using [Git Credentials API](https://docs.databricks.com/dev-tools/api/latest/gitcredentials.html).
|
|
@@ -178,6 +276,8 @@ class GitCredential(pulumi.CustomResource):
|
|
|
178
276
|
|
|
179
277
|
## Example Usage
|
|
180
278
|
|
|
279
|
+
### Git credential that uses personal access token
|
|
280
|
+
|
|
181
281
|
You can declare Pulumi-managed Git credential using following code:
|
|
182
282
|
|
|
183
283
|
```python
|
|
@@ -190,6 +290,17 @@ class GitCredential(pulumi.CustomResource):
|
|
|
190
290
|
personal_access_token="sometoken")
|
|
191
291
|
```
|
|
192
292
|
|
|
293
|
+
### Git credential configuration for Azure Service Principal and Azure DevOps
|
|
294
|
+
|
|
295
|
+
Databricks now supports Azure service principal federation to Azure DevOps. Follow the [documentation](https://learn.microsoft.com/en-us/azure/databricks/repos/automate-with-ms-entra) on how to configure service principal federation, and after everything is configured, it could be used as simple as:
|
|
296
|
+
|
|
297
|
+
```python
|
|
298
|
+
import pulumi
|
|
299
|
+
import pulumi_databricks as databricks
|
|
300
|
+
|
|
301
|
+
ado = databricks.GitCredential("ado", git_provider="azureDevOpsServicesAad")
|
|
302
|
+
```
|
|
303
|
+
|
|
193
304
|
## Related Resources
|
|
194
305
|
|
|
195
306
|
The following resources are often used in the same context:
|
|
@@ -220,10 +331,13 @@ class GitCredential(pulumi.CustomResource):
|
|
|
220
331
|
|
|
221
332
|
:param str resource_name: The name of the resource.
|
|
222
333
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
223
|
-
:param pulumi.Input[
|
|
224
|
-
:param pulumi.Input[
|
|
225
|
-
:param pulumi.Input[
|
|
226
|
-
:param pulumi.Input[
|
|
334
|
+
:param pulumi.Input[_builtins.bool] force: specify if settings need to be enforced (i.e., to overwrite previously set credential for service principals).
|
|
335
|
+
:param pulumi.Input[_builtins.str] git_email: The email associated with your Git provider user account. Used for authentication with the remote repository and also sets the author & committer identity for commits.
|
|
336
|
+
:param pulumi.Input[_builtins.str] git_provider: case insensitive name of the Git provider. Following values are supported right now (could be a subject for a change, consult [Git Credentials API documentation](https://docs.databricks.com/dev-tools/api/latest/gitcredentials.html)): `gitHub`, `gitHubEnterprise`, `bitbucketCloud`, `bitbucketServer`, `azureDevOpsServices`, `gitLab`, `gitLabEnterpriseEdition`, `awsCodeCommit`, `azureDevOpsServicesAad`.
|
|
337
|
+
:param pulumi.Input[_builtins.str] git_username: user name at Git provider. For most Git providers it is only used to set the Git committer & author names for commits, however it may be required for authentication depending on your Git provider / token requirements.
|
|
338
|
+
:param pulumi.Input[_builtins.bool] is_default_for_provider: boolean flag specifying if the credential is the default for the given provider type.
|
|
339
|
+
:param pulumi.Input[_builtins.str] name: the name of the git credential, used for identification and ease of lookup.
|
|
340
|
+
:param pulumi.Input[_builtins.str] personal_access_token: The personal access token used to authenticate to the corresponding Git provider. If value is not provided, it's sourced from the first environment variable of `GITHUB_TOKEN`, `GITLAB_TOKEN`, or `AZDO_PERSONAL_ACCESS_TOKEN`, that has a non-empty value.
|
|
227
341
|
"""
|
|
228
342
|
...
|
|
229
343
|
@overload
|
|
@@ -238,6 +352,8 @@ class GitCredential(pulumi.CustomResource):
|
|
|
238
352
|
|
|
239
353
|
## Example Usage
|
|
240
354
|
|
|
355
|
+
### Git credential that uses personal access token
|
|
356
|
+
|
|
241
357
|
You can declare Pulumi-managed Git credential using following code:
|
|
242
358
|
|
|
243
359
|
```python
|
|
@@ -250,6 +366,17 @@ class GitCredential(pulumi.CustomResource):
|
|
|
250
366
|
personal_access_token="sometoken")
|
|
251
367
|
```
|
|
252
368
|
|
|
369
|
+
### Git credential configuration for Azure Service Principal and Azure DevOps
|
|
370
|
+
|
|
371
|
+
Databricks now supports Azure service principal federation to Azure DevOps. Follow the [documentation](https://learn.microsoft.com/en-us/azure/databricks/repos/automate-with-ms-entra) on how to configure service principal federation, and after everything is configured, it could be used as simple as:
|
|
372
|
+
|
|
373
|
+
```python
|
|
374
|
+
import pulumi
|
|
375
|
+
import pulumi_databricks as databricks
|
|
376
|
+
|
|
377
|
+
ado = databricks.GitCredential("ado", git_provider="azureDevOpsServicesAad")
|
|
378
|
+
```
|
|
379
|
+
|
|
253
380
|
## Related Resources
|
|
254
381
|
|
|
255
382
|
The following resources are often used in the same context:
|
|
@@ -293,10 +420,13 @@ class GitCredential(pulumi.CustomResource):
|
|
|
293
420
|
def _internal_init(__self__,
|
|
294
421
|
resource_name: str,
|
|
295
422
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
296
|
-
force: Optional[pulumi.Input[
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
423
|
+
force: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
424
|
+
git_email: Optional[pulumi.Input[_builtins.str]] = None,
|
|
425
|
+
git_provider: Optional[pulumi.Input[_builtins.str]] = None,
|
|
426
|
+
git_username: Optional[pulumi.Input[_builtins.str]] = None,
|
|
427
|
+
is_default_for_provider: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
428
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
429
|
+
personal_access_token: Optional[pulumi.Input[_builtins.str]] = None,
|
|
300
430
|
__props__=None):
|
|
301
431
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
302
432
|
if not isinstance(opts, pulumi.ResourceOptions):
|
|
@@ -307,10 +437,13 @@ class GitCredential(pulumi.CustomResource):
|
|
|
307
437
|
__props__ = GitCredentialArgs.__new__(GitCredentialArgs)
|
|
308
438
|
|
|
309
439
|
__props__.__dict__["force"] = force
|
|
440
|
+
__props__.__dict__["git_email"] = git_email
|
|
310
441
|
if git_provider is None and not opts.urn:
|
|
311
442
|
raise TypeError("Missing required property 'git_provider'")
|
|
312
443
|
__props__.__dict__["git_provider"] = git_provider
|
|
313
444
|
__props__.__dict__["git_username"] = git_username
|
|
445
|
+
__props__.__dict__["is_default_for_provider"] = is_default_for_provider
|
|
446
|
+
__props__.__dict__["name"] = name
|
|
314
447
|
__props__.__dict__["personal_access_token"] = personal_access_token
|
|
315
448
|
super(GitCredential, __self__).__init__(
|
|
316
449
|
'databricks:index/gitCredential:GitCredential',
|
|
@@ -322,10 +455,13 @@ class GitCredential(pulumi.CustomResource):
|
|
|
322
455
|
def get(resource_name: str,
|
|
323
456
|
id: pulumi.Input[str],
|
|
324
457
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
325
|
-
force: Optional[pulumi.Input[
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
458
|
+
force: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
459
|
+
git_email: Optional[pulumi.Input[_builtins.str]] = None,
|
|
460
|
+
git_provider: Optional[pulumi.Input[_builtins.str]] = None,
|
|
461
|
+
git_username: Optional[pulumi.Input[_builtins.str]] = None,
|
|
462
|
+
is_default_for_provider: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
463
|
+
name: Optional[pulumi.Input[_builtins.str]] = None,
|
|
464
|
+
personal_access_token: Optional[pulumi.Input[_builtins.str]] = None) -> 'GitCredential':
|
|
329
465
|
"""
|
|
330
466
|
Get an existing GitCredential resource's state with the given name, id, and optional extra
|
|
331
467
|
properties used to qualify the lookup.
|
|
@@ -333,48 +469,78 @@ class GitCredential(pulumi.CustomResource):
|
|
|
333
469
|
:param str resource_name: The unique name of the resulting resource.
|
|
334
470
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
335
471
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
336
|
-
:param pulumi.Input[
|
|
337
|
-
:param pulumi.Input[
|
|
338
|
-
:param pulumi.Input[
|
|
339
|
-
:param pulumi.Input[
|
|
472
|
+
:param pulumi.Input[_builtins.bool] force: specify if settings need to be enforced (i.e., to overwrite previously set credential for service principals).
|
|
473
|
+
:param pulumi.Input[_builtins.str] git_email: The email associated with your Git provider user account. Used for authentication with the remote repository and also sets the author & committer identity for commits.
|
|
474
|
+
:param pulumi.Input[_builtins.str] git_provider: case insensitive name of the Git provider. Following values are supported right now (could be a subject for a change, consult [Git Credentials API documentation](https://docs.databricks.com/dev-tools/api/latest/gitcredentials.html)): `gitHub`, `gitHubEnterprise`, `bitbucketCloud`, `bitbucketServer`, `azureDevOpsServices`, `gitLab`, `gitLabEnterpriseEdition`, `awsCodeCommit`, `azureDevOpsServicesAad`.
|
|
475
|
+
:param pulumi.Input[_builtins.str] git_username: user name at Git provider. For most Git providers it is only used to set the Git committer & author names for commits, however it may be required for authentication depending on your Git provider / token requirements.
|
|
476
|
+
:param pulumi.Input[_builtins.bool] is_default_for_provider: boolean flag specifying if the credential is the default for the given provider type.
|
|
477
|
+
:param pulumi.Input[_builtins.str] name: the name of the git credential, used for identification and ease of lookup.
|
|
478
|
+
:param pulumi.Input[_builtins.str] personal_access_token: The personal access token used to authenticate to the corresponding Git provider. If value is not provided, it's sourced from the first environment variable of `GITHUB_TOKEN`, `GITLAB_TOKEN`, or `AZDO_PERSONAL_ACCESS_TOKEN`, that has a non-empty value.
|
|
340
479
|
"""
|
|
341
480
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
342
481
|
|
|
343
482
|
__props__ = _GitCredentialState.__new__(_GitCredentialState)
|
|
344
483
|
|
|
345
484
|
__props__.__dict__["force"] = force
|
|
485
|
+
__props__.__dict__["git_email"] = git_email
|
|
346
486
|
__props__.__dict__["git_provider"] = git_provider
|
|
347
487
|
__props__.__dict__["git_username"] = git_username
|
|
488
|
+
__props__.__dict__["is_default_for_provider"] = is_default_for_provider
|
|
489
|
+
__props__.__dict__["name"] = name
|
|
348
490
|
__props__.__dict__["personal_access_token"] = personal_access_token
|
|
349
491
|
return GitCredential(resource_name, opts=opts, __props__=__props__)
|
|
350
492
|
|
|
351
|
-
@property
|
|
493
|
+
@_builtins.property
|
|
352
494
|
@pulumi.getter
|
|
353
|
-
def force(self) -> pulumi.Output[Optional[
|
|
495
|
+
def force(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
354
496
|
"""
|
|
355
|
-
specify if settings need to be enforced
|
|
497
|
+
specify if settings need to be enforced (i.e., to overwrite previously set credential for service principals).
|
|
356
498
|
"""
|
|
357
499
|
return pulumi.get(self, "force")
|
|
358
500
|
|
|
359
|
-
@property
|
|
501
|
+
@_builtins.property
|
|
502
|
+
@pulumi.getter(name="gitEmail")
|
|
503
|
+
def git_email(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
504
|
+
"""
|
|
505
|
+
The email associated with your Git provider user account. Used for authentication with the remote repository and also sets the author & committer identity for commits.
|
|
506
|
+
"""
|
|
507
|
+
return pulumi.get(self, "git_email")
|
|
508
|
+
|
|
509
|
+
@_builtins.property
|
|
360
510
|
@pulumi.getter(name="gitProvider")
|
|
361
|
-
def git_provider(self) -> pulumi.Output[
|
|
511
|
+
def git_provider(self) -> pulumi.Output[_builtins.str]:
|
|
362
512
|
"""
|
|
363
513
|
case insensitive name of the Git provider. Following values are supported right now (could be a subject for a change, consult [Git Credentials API documentation](https://docs.databricks.com/dev-tools/api/latest/gitcredentials.html)): `gitHub`, `gitHubEnterprise`, `bitbucketCloud`, `bitbucketServer`, `azureDevOpsServices`, `gitLab`, `gitLabEnterpriseEdition`, `awsCodeCommit`, `azureDevOpsServicesAad`.
|
|
364
514
|
"""
|
|
365
515
|
return pulumi.get(self, "git_provider")
|
|
366
516
|
|
|
367
|
-
@property
|
|
517
|
+
@_builtins.property
|
|
368
518
|
@pulumi.getter(name="gitUsername")
|
|
369
|
-
def git_username(self) -> pulumi.Output[Optional[
|
|
519
|
+
def git_username(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
370
520
|
"""
|
|
371
|
-
user name at Git provider.
|
|
521
|
+
user name at Git provider. For most Git providers it is only used to set the Git committer & author names for commits, however it may be required for authentication depending on your Git provider / token requirements.
|
|
372
522
|
"""
|
|
373
523
|
return pulumi.get(self, "git_username")
|
|
374
524
|
|
|
375
|
-
@property
|
|
525
|
+
@_builtins.property
|
|
526
|
+
@pulumi.getter(name="isDefaultForProvider")
|
|
527
|
+
def is_default_for_provider(self) -> pulumi.Output[Optional[_builtins.bool]]:
|
|
528
|
+
"""
|
|
529
|
+
boolean flag specifying if the credential is the default for the given provider type.
|
|
530
|
+
"""
|
|
531
|
+
return pulumi.get(self, "is_default_for_provider")
|
|
532
|
+
|
|
533
|
+
@_builtins.property
|
|
534
|
+
@pulumi.getter
|
|
535
|
+
def name(self) -> pulumi.Output[_builtins.str]:
|
|
536
|
+
"""
|
|
537
|
+
the name of the git credential, used for identification and ease of lookup.
|
|
538
|
+
"""
|
|
539
|
+
return pulumi.get(self, "name")
|
|
540
|
+
|
|
541
|
+
@_builtins.property
|
|
376
542
|
@pulumi.getter(name="personalAccessToken")
|
|
377
|
-
def personal_access_token(self) -> pulumi.Output[Optional[
|
|
543
|
+
def personal_access_token(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
378
544
|
"""
|
|
379
545
|
The personal access token used to authenticate to the corresponding Git provider. If value is not provided, it's sourced from the first environment variable of `GITHUB_TOKEN`, `GITLAB_TOKEN`, or `AZDO_PERSONAL_ACCESS_TOKEN`, that has a non-empty value.
|
|
380
546
|
"""
|