1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DevOps
  5. getRepositoryAuthors
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.DevOps.getRepositoryAuthors

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

    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:

    RepositoryId string
    Unique repository identifier.
    Filters List<GetRepositoryAuthorsFilter>
    RefName string
    A filter to return only resources that match the given reference name.
    RepositoryId string
    Unique repository identifier.
    Filters []GetRepositoryAuthorsFilter
    RefName string
    A filter to return only resources that match the given reference name.
    repositoryId String
    Unique repository identifier.
    filters List<GetRepositoryAuthorsFilter>
    refName String
    A filter to return only resources that match the given reference name.
    repositoryId string
    Unique repository identifier.
    filters GetRepositoryAuthorsFilter[]
    refName string
    A filter to return only resources that match the given reference name.
    repository_id str
    Unique repository identifier.
    filters Sequence[devops.GetRepositoryAuthorsFilter]
    ref_name str
    A filter to return only resources that match the given reference name.
    repositoryId String
    Unique repository identifier.
    filters List<Property Map>
    refName 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.
    RepositoryAuthorCollections List<GetRepositoryAuthorsRepositoryAuthorCollection>
    The list of repository_author_collection.
    RepositoryId string
    Filters List<GetRepositoryAuthorsFilter>
    RefName string
    Id string
    The provider-assigned unique ID for this managed resource.
    RepositoryAuthorCollections []GetRepositoryAuthorsRepositoryAuthorCollection
    The list of repository_author_collection.
    RepositoryId string
    Filters []GetRepositoryAuthorsFilter
    RefName string
    id String
    The provider-assigned unique ID for this managed resource.
    repositoryAuthorCollections List<GetRepositoryAuthorsRepositoryAuthorCollection>
    The list of repository_author_collection.
    repositoryId String
    filters List<GetRepositoryAuthorsFilter>
    refName String
    id string
    The provider-assigned unique ID for this managed resource.
    repositoryAuthorCollections GetRepositoryAuthorsRepositoryAuthorCollection[]
    The list of repository_author_collection.
    repositoryId string
    filters GetRepositoryAuthorsFilter[]
    refName string
    id str
    The provider-assigned unique ID for this managed resource.
    repository_author_collections Sequence[devops.GetRepositoryAuthorsRepositoryAuthorCollection]
    The list of repository_author_collection.
    repository_id str
    filters Sequence[devops.GetRepositoryAuthorsFilter]
    ref_name str
    id String
    The provider-assigned unique ID for this managed resource.
    repositoryAuthorCollections List<Property Map>
    The list of repository_author_collection.
    repositoryId String
    filters List<Property Map>
    refName String

    Supporting Types

    GetRepositoryAuthorsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetRepositoryAuthorsRepositoryAuthorCollection

    items List<Property Map>
    List of author objects.

    GetRepositoryAuthorsRepositoryAuthorCollectionItem

    AuthorName string
    Author name.
    DefinedTags 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"}
    FreeformTags 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"}
    SystemTags 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"}
    AuthorName string
    Author name.
    DefinedTags 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"}
    FreeformTags 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"}
    SystemTags 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"}
    authorName String
    Author name.
    definedTags 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"}
    freeformTags 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"}
    systemTags 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"}
    authorName string
    Author name.
    definedTags {[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"}
    freeformTags {[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"}
    systemTags {[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"}
    author_name str
    Author name.
    defined_tags 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"}
    freeform_tags 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"}
    system_tags 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"}
    authorName String
    Author name.
    definedTags 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"}
    freeformTags 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"}
    systemTags 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.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi