Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.DevOps.getRepositoryAuthor
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 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/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:
- Repository
Id string - Unique repository identifier.
- Ref
Name string - A filter to return only resources that match the given reference name.
- Repository
Id string - Unique repository identifier.
- Ref
Name string - A filter to return only resources that match the given reference name.
- repository
Id String - Unique repository identifier.
- ref
Name String - A filter to return only resources that match the given reference name.
- repository
Id string - Unique repository identifier.
- ref
Name 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.
- repository
Id String - Unique repository identifier.
- ref
Name 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<Get
Repository Author Item> - List of author objects.
- Repository
Id string - Ref
Name string
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
[]Get
Repository Author Item - List of author objects.
- Repository
Id string - Ref
Name string
- id String
- The provider-assigned unique ID for this managed resource.
- items
List<Get
Repository Author Item> - List of author objects.
- repository
Id String - ref
Name String
- id string
- The provider-assigned unique ID for this managed resource.
- items
Get
Repository Author Item[] - List of author objects.
- repository
Id string - ref
Name string
- id str
- The provider-assigned unique ID for this managed resource.
- items
Sequence[devops.
Get Repository Author Item] - 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.
- repository
Id String - ref
Name String
Supporting Types
GetRepositoryAuthorItem
- string
- Author name.
- Dictionary<string, object>
- 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, object>
- 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"}
- string
- Author name.
- map[string]interface{}
- 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]interface{}
- 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"}
- String
- Author name.
- Map<String,Object>
- 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,Object>
- 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"}
- string
- Author name.
- {[key: string]: any}
- 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]: any}
- 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"}
- str
- Author name.
- Mapping[str, Any]
- 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, Any]
- 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"}
- String
- Author name.
- Map<Any>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- Map<Any>
- 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.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi