Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.DevOps.getRepositoryAuthors
Explore with Pulumi AI
This data source provides the list of Repository Authors in Oracle Cloud Infrastructure Devops service.
Retrieve a list of all the authors.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testRepositoryAuthors = oci.DevOps.getRepositoryAuthors({
repositoryId: testRepository.id,
refName: repositoryAuthorRefName,
});
import pulumi
import pulumi_oci as oci
test_repository_authors = oci.DevOps.get_repository_authors(repository_id=test_repository["id"],
ref_name=repository_author_ref_name)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/DevOps"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DevOps.GetRepositoryAuthors(ctx, &devops.GetRepositoryAuthorsArgs{
RepositoryId: testRepository.Id,
RefName: pulumi.StringRef(repositoryAuthorRefName),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testRepositoryAuthors = Oci.DevOps.GetRepositoryAuthors.Invoke(new()
{
RepositoryId = testRepository.Id,
RefName = repositoryAuthorRefName,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DevOps.DevOpsFunctions;
import com.pulumi.oci.DevOps.inputs.GetRepositoryAuthorsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testRepositoryAuthors = DevOpsFunctions.getRepositoryAuthors(GetRepositoryAuthorsArgs.builder()
.repositoryId(testRepository.id())
.refName(repositoryAuthorRefName)
.build());
}
}
variables:
testRepositoryAuthors:
fn::invoke:
Function: oci:DevOps:getRepositoryAuthors
Arguments:
repositoryId: ${testRepository.id}
refName: ${repositoryAuthorRefName}
Using getRepositoryAuthors
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRepositoryAuthors(args: GetRepositoryAuthorsArgs, opts?: InvokeOptions): Promise<GetRepositoryAuthorsResult>
function getRepositoryAuthorsOutput(args: GetRepositoryAuthorsOutputArgs, opts?: InvokeOptions): Output<GetRepositoryAuthorsResult>
def get_repository_authors(filters: Optional[Sequence[_devops.GetRepositoryAuthorsFilter]] = None,
ref_name: Optional[str] = None,
repository_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRepositoryAuthorsResult
def get_repository_authors_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_devops.GetRepositoryAuthorsFilterArgs]]]] = None,
ref_name: Optional[pulumi.Input[str]] = None,
repository_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRepositoryAuthorsResult]
func GetRepositoryAuthors(ctx *Context, args *GetRepositoryAuthorsArgs, opts ...InvokeOption) (*GetRepositoryAuthorsResult, error)
func GetRepositoryAuthorsOutput(ctx *Context, args *GetRepositoryAuthorsOutputArgs, opts ...InvokeOption) GetRepositoryAuthorsResultOutput
> Note: This function is named GetRepositoryAuthors
in the Go SDK.
public static class GetRepositoryAuthors
{
public static Task<GetRepositoryAuthorsResult> InvokeAsync(GetRepositoryAuthorsArgs args, InvokeOptions? opts = null)
public static Output<GetRepositoryAuthorsResult> Invoke(GetRepositoryAuthorsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRepositoryAuthorsResult> getRepositoryAuthors(GetRepositoryAuthorsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DevOps/getRepositoryAuthors:getRepositoryAuthors
arguments:
# arguments dictionary
The following arguments are supported:
- Repository
Id string - Unique repository identifier.
- Filters
List<Get
Repository Authors Filter> - Ref
Name string - A filter to return only resources that match the given reference name.
- Repository
Id string - Unique repository identifier.
- Filters
[]Get
Repository Authors Filter - Ref
Name string - A filter to return only resources that match the given reference name.
- repository
Id String - Unique repository identifier.
- filters
List<Get
Repository Authors Filter> - ref
Name String - A filter to return only resources that match the given reference name.
- repository
Id string - Unique repository identifier.
- filters
Get
Repository Authors Filter[] - ref
Name string - A filter to return only resources that match the given reference name.
- repository_
id str - Unique repository identifier.
- filters
Sequence[devops.
Get Repository Authors Filter] - ref_
name str - A filter to return only resources that match the given reference name.
- repository
Id String - Unique repository identifier.
- filters List<Property Map>
- ref
Name String - A filter to return only resources that match the given reference name.
getRepositoryAuthors Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- List<Get
Repository Authors Repository Author Collection> - The list of repository_author_collection.
- Repository
Id string - Filters
List<Get
Repository Authors Filter> - Ref
Name string
- Id string
- The provider-assigned unique ID for this managed resource.
- []Get
Repository Authors Repository Author Collection - The list of repository_author_collection.
- Repository
Id string - Filters
[]Get
Repository Authors Filter - Ref
Name string
- id String
- The provider-assigned unique ID for this managed resource.
- List<Get
Repository Authors Repository Author Collection> - The list of repository_author_collection.
- repository
Id String - filters
List<Get
Repository Authors Filter> - ref
Name String
- id string
- The provider-assigned unique ID for this managed resource.
- Get
Repository Authors Repository Author Collection[] - The list of repository_author_collection.
- repository
Id string - filters
Get
Repository Authors Filter[] - ref
Name string
- id str
- The provider-assigned unique ID for this managed resource.
- Sequence[devops.
Get Repository Authors Repository Author Collection] - The list of repository_author_collection.
- repository_
id str - filters
Sequence[devops.
Get Repository Authors Filter] - ref_
name str
- id String
- The provider-assigned unique ID for this managed resource.
- List<Property Map>
- The list of repository_author_collection.
- repository
Id String - filters List<Property Map>
- ref
Name String
Supporting Types
GetRepositoryAuthorsFilter
GetRepositoryAuthorsRepositoryAuthorCollection
- Items
List<Get
Repository Authors Repository Author Collection Item> - List of author objects.
- Items
[]Get
Repository Authors Repository Author Collection Item - List of author objects.
- items
List<Get
Repository Authors Repository Author Collection Item> - List of author objects.
- items
Get
Repository Authors Repository Author Collection Item[] - List of author objects.
- items
Sequence[devops.
Get Repository Authors Repository Author Collection Item] - List of author objects.
- items List<Property Map>
- List of author objects.
GetRepositoryAuthorsRepositoryAuthorCollectionItem
- string
- Author name.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example:
{"bar-key": "value"}
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- string
- Author name.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example:
{"bar-key": "value"}
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- String
- Author name.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example:
{"bar-key": "value"}
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- string
- Author name.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example:
{"bar-key": "value"}
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- str
- Author name.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example:
{"bar-key": "value"}
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
- String
- Author name.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example:
{"bar-key": "value"}
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example:
{"orcl-cloud.free-tier-retained": "true"}
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.