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

oci.DevOps.getRepositoryAuthor

Explore with Pulumi AI

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

    This data source provides details about a specific Repository Author resource 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 testRepositoryAuthor = oci.DevOps.getRepositoryAuthor({
        repositoryId: testRepository.id,
        refName: repositoryAuthorRefName,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_repository_author = oci.DevOps.get_repository_author(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.GetRepositoryAuthor(ctx, &devops.GetRepositoryAuthorArgs{
    			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 testRepositoryAuthor = Oci.DevOps.GetRepositoryAuthor.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.GetRepositoryAuthorArgs;
    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 testRepositoryAuthor = DevOpsFunctions.getRepositoryAuthor(GetRepositoryAuthorArgs.builder()
                .repositoryId(testRepository.id())
                .refName(repositoryAuthorRefName)
                .build());
    
        }
    }
    
    variables:
      testRepositoryAuthor:
        fn::invoke:
          Function: oci:DevOps:getRepositoryAuthor
          Arguments:
            repositoryId: ${testRepository.id}
            refName: ${repositoryAuthorRefName}
    

    Using getRepositoryAuthor

    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 getRepositoryAuthor(args: GetRepositoryAuthorArgs, opts?: InvokeOptions): Promise<GetRepositoryAuthorResult>
    function getRepositoryAuthorOutput(args: GetRepositoryAuthorOutputArgs, opts?: InvokeOptions): Output<GetRepositoryAuthorResult>
    def get_repository_author(ref_name: Optional[str] = None,
                              repository_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetRepositoryAuthorResult
    def get_repository_author_output(ref_name: Optional[pulumi.Input[str]] = None,
                              repository_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetRepositoryAuthorResult]
    func GetRepositoryAuthor(ctx *Context, args *GetRepositoryAuthorArgs, opts ...InvokeOption) (*GetRepositoryAuthorResult, error)
    func GetRepositoryAuthorOutput(ctx *Context, args *GetRepositoryAuthorOutputArgs, opts ...InvokeOption) GetRepositoryAuthorResultOutput

    > Note: This function is named GetRepositoryAuthor in the Go SDK.

    public static class GetRepositoryAuthor 
    {
        public static Task<GetRepositoryAuthorResult> InvokeAsync(GetRepositoryAuthorArgs args, InvokeOptions? opts = null)
        public static Output<GetRepositoryAuthorResult> Invoke(GetRepositoryAuthorInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRepositoryAuthorResult> getRepositoryAuthor(GetRepositoryAuthorArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DevOps/getRepositoryAuthor:getRepositoryAuthor
      arguments:
        # arguments dictionary

    The following arguments are supported:

    RepositoryId string
    Unique repository identifier.
    RefName string
    A filter to return only resources that match the given reference name.
    RepositoryId string
    Unique repository identifier.
    RefName string
    A filter to return only resources that match the given reference name.
    repositoryId String
    Unique repository identifier.
    refName String
    A filter to return only resources that match the given reference name.
    repositoryId string
    Unique repository identifier.
    refName string
    A filter to return only resources that match the given reference name.
    repository_id str
    Unique repository identifier.
    ref_name str
    A filter to return only resources that match the given reference name.
    repositoryId String
    Unique repository identifier.
    refName String
    A filter to return only resources that match the given reference name.

    getRepositoryAuthor Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Items List<GetRepositoryAuthorItem>
    List of author objects.
    RepositoryId string
    RefName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Items []GetRepositoryAuthorItem
    List of author objects.
    RepositoryId string
    RefName string
    id String
    The provider-assigned unique ID for this managed resource.
    items List<GetRepositoryAuthorItem>
    List of author objects.
    repositoryId String
    refName String
    id string
    The provider-assigned unique ID for this managed resource.
    items GetRepositoryAuthorItem[]
    List of author objects.
    repositoryId string
    refName string
    id str
    The provider-assigned unique ID for this managed resource.
    items Sequence[devops.GetRepositoryAuthorItem]
    List of author objects.
    repository_id str
    ref_name str
    id String
    The provider-assigned unique ID for this managed resource.
    items List<Property Map>
    List of author objects.
    repositoryId String
    refName String

    Supporting Types

    GetRepositoryAuthorItem

    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"}
    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"}
    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"}
    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"}
    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"}
    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"}

    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