func()

in internal/provider/cloudcredentials_data_source.go [49:122]


func (d *cloudcredentialAllDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse) {
	resp.Schema = schema.Schema{
		MarkdownDescription: "This data source can be used to read information about all BackupDR Cloud Credentials. It displays the cloud credential ID as shown in the **Management console** > **Manage** > **Cloud Credentials** page.",
		Attributes: map[string]schema.Attribute{
			"items": schema.ListNestedAttribute{
				Computed: true,
				NestedObject: schema.NestedAttributeObject{
					Attributes: map[string]schema.Attribute{
						"id": schema.StringAttribute{
							Computed:            true,
							MarkdownDescription: "It displays the ID of the cloud credentials.",
						},
						"href": schema.StringAttribute{
							Computed:            true,
							MarkdownDescription: "It displays the URL to access the storage pools in the management console.",
						},
						"stale": schema.BoolAttribute{
							Computed:            true,
							MarkdownDescription: "It displays true or false if the data is synchronized with the management console or not.",
						},
						"clusterid": schema.Int64Attribute{
							Computed:            true,
							MarkdownDescription: "It displays the backup/recovery appliance ID as shown in the Management console > Manage > Appliances page.",
						},
						"serviceaccount": schema.StringAttribute{
							Computed:            true,
							MarkdownDescription: "It displays the service account associated with the cloud credential.",
						},
						"region": schema.StringAttribute{
							Computed:            true,
							MarkdownDescription: "It displays the region where the cloud credential is created.",
						},
						"cloudtype": schema.StringAttribute{
							Computed:            true,
							MarkdownDescription: "It displays the cloud type associated with the cloud credential.",
						},
						"projectid": schema.StringAttribute{
							Computed:            true,
							MarkdownDescription: "It displays the project ID associated with the cloud credential.",
						},
						"domain": schema.StringAttribute{
							Computed:            true,
							MarkdownDescription: "It displays the domain associated with the cloud credential.",
						},
						"name": schema.StringAttribute{
							Computed:            true,
							MarkdownDescription: "It displays the name of the cloud credential.",
						},
						"endpoint": schema.StringAttribute{
							Computed:            true,
							MarkdownDescription: "It displays the endpoint associated with the cloud credential.",
						},
						"clientid": schema.StringAttribute{
							Computed:            true,
							MarkdownDescription: "It displays the client ID associated with the cloud credential.",
						},
						"srcid": schema.Int64Attribute{
							Computed:            true,
							MarkdownDescription: "It displays the source ID on the appliance.",
						},
						"usedefaultsa": schema.BoolAttribute{
							Computed:            true,
							MarkdownDescription: "It displays true or false.",
						},
						"immutable": schema.BoolAttribute{
							Computed:            true,
							MarkdownDescription: "It displays the immutable values - true or false.",
						},
					},
				},
			},
		},
	}
}