Package-level declarations

Types

Link copied to clipboard
data class ApiArgs(val methods: Output<List<MethodArgs>>? = null, val mixins: Output<List<MixinArgs>>? = null, val name: Output<String>? = null, val options: Output<List<OptionArgs>>? = null, val sourceContext: Output<SourceContextArgs>? = null, val syntax: Output<ApiSyntax>? = null, val version: Output<String>? = null) : ConvertibleToJava<ApiArgs>

Api is a light-weight descriptor for an API Interface. Interfaces are also described as "protocol buffer services" in some contexts, such as by the "service" keyword in a .proto file, but they are different from API Services, which represent a concrete implementation of an interface as opposed to simply a description of methods and bindings. They are also sometimes simply referred to as "APIs" in other contexts, such as the name of this message itself. See https://cloud.google.com/apis/design/glossary for detailed terminology.

Link copied to clipboard

Builder for ApiArgs.

Link copied to clipboard
data class AuditConfigArgs(val auditLogConfigs: Output<List<AuditLogConfigArgs>>? = null, val service: Output<String>? = null) : ConvertibleToJava<AuditConfigArgs>

Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both allServices and a specific service, the union of the two AuditConfigs is used for that service: the log_types specified in each AuditConfig are enabled, and the exempted_members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { "audit_configs": [ { "service": "allServices", "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": "user:jose@example.com" }, { "log_type": "DATA_WRITE" }, { "log_type": "ADMIN_READ" } ] }, { "service": "sampleservice.googleapis.com", "audit_log_configs": [ { "log_type": "DATA_READ" }, { "log_type": "DATA_WRITE", "exempted_members": "user:aliya@example.com" } ] } ] } For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts jose@example.com from DATA_READ logging, and aliya@example.com from DATA_WRITE logging.

Link copied to clipboard
Link copied to clipboard
data class AuditLogConfigArgs(val exemptedMembers: Output<List<String>>? = null, val logType: Output<AuditLogConfigLogType>? = null) : ConvertibleToJava<AuditLogConfigArgs>

Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": "user:jose@example.com" }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from DATA_READ logging.

Link copied to clipboard
Link copied to clipboard
data class AuthenticationArgs(val providers: Output<List<AuthProviderArgs>>? = null, val rules: Output<List<AuthenticationRuleArgs>>? = null) : ConvertibleToJava<AuthenticationArgs>

Authentication defines the authentication configuration for API methods provided by an API service. Example: name: calendar.googleapis.com authentication: providers: - id: google_calendar_auth jwks_uri: https://www.googleapis.com/oauth2/v1/certs issuer: https://securetoken.google.com rules: - selector: "*" requirements: provider_id: google_calendar_auth - selector: google.calendar.Delegate oauth: canonical_scopes: https://www.googleapis.com/auth/calendar.read

Link copied to clipboard
Link copied to clipboard
data class AuthenticationRuleArgs(val allowWithoutCredential: Output<Boolean>? = null, val oauth: Output<OAuthRequirementsArgs>? = null, val requirements: Output<List<AuthRequirementArgs>>? = null, val selector: Output<String>? = null) : ConvertibleToJava<AuthenticationRuleArgs>

Authentication rules for the service. By default, if a method has any authentication requirements, every request must include a valid credential matching one of the requirements. It's an error to include more than one kind of credential in a single request. If a method doesn't have any auth requirements, request credentials will be ignored.

Link copied to clipboard
data class AuthProviderArgs(val audiences: Output<String>? = null, val authorizationUrl: Output<String>? = null, val id: Output<String>? = null, val issuer: Output<String>? = null, val jwksUri: Output<String>? = null, val jwtLocations: Output<List<JwtLocationArgs>>? = null) : ConvertibleToJava<AuthProviderArgs>

Configuration for an authentication provider, including support for JSON Web Token (JWT).

Link copied to clipboard
Link copied to clipboard
data class AuthRequirementArgs(val audiences: Output<String>? = null, val providerId: Output<String>? = null) : ConvertibleToJava<AuthRequirementArgs>

User-defined authentication requirements, including support for JSON Web Token (JWT).

Link copied to clipboard
data class BackendArgs(val rules: Output<List<BackendRuleArgs>>? = null) : ConvertibleToJava<BackendArgs>

Backend defines the backend configuration for a service.

Link copied to clipboard
Link copied to clipboard
data class BackendRuleArgs(val address: Output<String>? = null, val deadline: Output<Double>? = null, val disableAuth: Output<Boolean>? = null, val jwtAudience: Output<String>? = null, val minDeadline: Output<Double>? = null, val operationDeadline: Output<Double>? = null, val overridesByRequestProtocol: Output<Map<String, String>>? = null, val pathTranslation: Output<BackendRulePathTranslation>? = null, val protocol: Output<String>? = null, val selector: Output<String>? = null) : ConvertibleToJava<BackendRuleArgs>

A backend rule provides configuration for an individual API element.

Link copied to clipboard
Link copied to clipboard
data class BillingArgs(val consumerDestinations: Output<List<BillingDestinationArgs>>? = null) : ConvertibleToJava<BillingArgs>

Billing related configuration of the service. The following example shows how to configure monitored resources and metrics for billing, consumer_destinations is the only supported destination and the monitored resources need at least one label key cloud.googleapis.com/location to indicate the location of the billing usage, using different monitored resources between monitoring and billing is recommended so they can be evolved independently: monitored_resources: - type: library.googleapis.com/billing_branch labels: - key: cloud.googleapis.com/location description: | Predefined label to support billing location restriction. - key: city description: | Custom label to define the city where the library branch is located in. - key: name description: Custom label to define the name of the library branch. metrics: - name: library.googleapis.com/book/borrowed_count metric_kind: DELTA value_type: INT64 unit: "1" billing: consumer_destinations: - monitored_resource: library.googleapis.com/billing_branch metrics: - library.googleapis.com/book/borrowed_count

Link copied to clipboard
Link copied to clipboard
data class BillingDestinationArgs(val metrics: Output<List<String>>? = null, val monitoredResource: Output<String>? = null) : ConvertibleToJava<BillingDestinationArgs>

Configuration of a specific billing destination (Currently only support bill against consumer project).

Link copied to clipboard
data class BindingArgs(val condition: Output<ExprArgs>? = null, val members: Output<List<String>>? = null, val role: Output<String>? = null) : ConvertibleToJava<BindingArgs>

Associates members, or principals, with a role.

Link copied to clipboard
Link copied to clipboard
data class ClientLibrarySettingsArgs(val cppSettings: Output<CppSettingsArgs>? = null, val dotnetSettings: Output<DotnetSettingsArgs>? = null, val goSettings: Output<GoSettingsArgs>? = null, val javaSettings: Output<JavaSettingsArgs>? = null, val launchStage: Output<ClientLibrarySettingsLaunchStage>? = null, val nodeSettings: Output<NodeSettingsArgs>? = null, val phpSettings: Output<PhpSettingsArgs>? = null, val pythonSettings: Output<PythonSettingsArgs>? = null, val restNumericEnums: Output<Boolean>? = null, val rubySettings: Output<RubySettingsArgs>? = null, val version: Output<String>? = null) : ConvertibleToJava<ClientLibrarySettingsArgs>

Details about how and where to publish client libraries.

Link copied to clipboard
data class CommonLanguageSettingsArgs(val destinations: Output<List<CommonLanguageSettingsDestinationsItem>>? = null, val referenceDocsUri: Output<String>? = null) : ConvertibleToJava<CommonLanguageSettingsArgs>

Required information for every language.

Link copied to clipboard
data class ContextArgs(val rules: Output<List<ContextRuleArgs>>? = null) : ConvertibleToJava<ContextArgs>

Context defines which contexts an API requests. Example: context: rules: - selector: "*" requested: - google.rpc.context.ProjectContext - google.rpc.context.OriginContext The above specifies that all methods in the API request google.rpc.context.ProjectContext and google.rpc.context.OriginContext. Available context types are defined in package google.rpc.context. This also provides mechanism to allowlist any protobuf message extension that can be sent in grpc metadata using “x-goog-ext--bin” and “x-goog-ext--jspb” format. For example, list any service specific protobuf types that can appear in grpc metadata as follows in your yaml file: Example: context: rules: - selector: "google.example.library.v1.LibraryService.CreateBook" allowed_request_extensions: - google.foo.v1.NewExtension allowed_response_extensions: - google.foo.v1.NewExtension You can also specify extension ID instead of fully qualified extension name here.

Link copied to clipboard
Link copied to clipboard
data class ContextRuleArgs(val allowedRequestExtensions: Output<List<String>>? = null, val allowedResponseExtensions: Output<List<String>>? = null, val provided: Output<List<String>>? = null, val requested: Output<List<String>>? = null, val selector: Output<String>? = null) : ConvertibleToJava<ContextRuleArgs>

A context rule provides information about the context for an individual API element.

Link copied to clipboard
Link copied to clipboard
data class ControlArgs(val environment: Output<String>? = null) : ConvertibleToJava<ControlArgs>

Selects and configures the service controller used by the service. Example: control: environment: servicecontrol.googleapis.com

Link copied to clipboard
Link copied to clipboard
data class CppSettingsArgs(val common: Output<CommonLanguageSettingsArgs>? = null) : ConvertibleToJava<CppSettingsArgs>

Settings for C++ client libraries.

Link copied to clipboard
Link copied to clipboard
data class CustomErrorArgs(val rules: Output<List<CustomErrorRuleArgs>>? = null, val types: Output<List<String>>? = null) : ConvertibleToJava<CustomErrorArgs>

Customize service error responses. For example, list any service specific protobuf types that can appear in error detail lists of error responses. Example: custom_error: types: - google.foo.v1.CustomError - google.foo.v1.AnotherError

Link copied to clipboard
Link copied to clipboard
data class CustomErrorRuleArgs(val isErrorType: Output<Boolean>? = null, val selector: Output<String>? = null) : ConvertibleToJava<CustomErrorRuleArgs>

A custom error rule.

Link copied to clipboard
data class CustomHttpPatternArgs(val kind: Output<String>? = null, val path: Output<String>? = null) : ConvertibleToJava<CustomHttpPatternArgs>

A custom pattern is used for defining custom HTTP verb.

Link copied to clipboard
class DeleteServiceStrategyArgs : ConvertibleToJava<DeleteServiceStrategyArgs>

Strategy used to delete a service. This strategy is a placeholder only used by the system generated rollout to delete a service.

Link copied to clipboard
data class DocumentationArgs(val documentationRootUrl: Output<String>? = null, val overview: Output<String>? = null, val pages: Output<List<PageArgs>>? = null, val rules: Output<List<DocumentationRuleArgs>>? = null, val serviceRootUrl: Output<String>? = null, val summary: Output<String>? = null) : ConvertibleToJava<DocumentationArgs>

Documentation provides the information for describing a service. Example: documentation: summary: The Google Calendar API gives access to most calendar features. pages: - name: Overview content: (== include google/foo/overview.md ==) - name: Tutorial content: (== include google/foo/tutorial.md ==) subpages; - name: Java content: (== include google/foo/tutorial_java.md ==) rules: - selector: google.calendar.Calendar.Get description: ... - selector: google.calendar.Calendar.Put description: ... Documentation is provided in markdown syntax. In addition to standard markdown features, definition lists, tables and fenced code blocks are supported. Section headers can be provided and are interpreted relative to the section nesting of the context where a documentation fragment is embedded. Documentation from the IDL is merged with documentation defined via the config at normalization time, where documentation provided by config rules overrides IDL provided. A number of constructs specific to the API platform are supported in documentation text. In order to reference a proto element, the following notation can be used: fully.qualified.proto.name To override the display text used for the link, this can be used: fully.qualified.proto.name Text can be excluded from doc using the following notation: (-- internal comment --) A few directives are available in documentation. Note that directives must appear on a single line to be properly identified. The include directive includes a markdown file from an external source: (== include path/to/file ==) The resource_for directive marks a message to be the resource of a collection in REST view. If it is not specified, tools attempt to infer the resource from the operations in a collection: (== resource_for v1.shelves.books ==) The directive suppress_warning does not directly affect documentation and is documented together with service config validation.

Link copied to clipboard
Link copied to clipboard
data class DocumentationRuleArgs(val deprecationDescription: Output<String>? = null, val description: Output<String>? = null, val disableReplacementWords: Output<String>? = null, val selector: Output<String>? = null) : ConvertibleToJava<DocumentationRuleArgs>

A documentation rule provides information about individual API elements.

Link copied to clipboard
data class DotnetSettingsArgs(val common: Output<CommonLanguageSettingsArgs>? = null, val forcedNamespaceAliases: Output<List<String>>? = null, val handwrittenSignatures: Output<List<String>>? = null, val ignoredResources: Output<List<String>>? = null, val renamedResources: Output<Map<String, String>>? = null, val renamedServices: Output<Map<String, String>>? = null) : ConvertibleToJava<DotnetSettingsArgs>

Settings for Dotnet client libraries.

Link copied to clipboard
Link copied to clipboard
data class EndpointArgs(val aliases: Output<List<String>>? = null, val allowCors: Output<Boolean>? = null, val name: Output<String>? = null, val target: Output<String>? = null) : ConvertibleToJava<EndpointArgs>

Endpoint describes a network address of a service that serves a set of APIs. It is commonly known as a service endpoint. A service may expose any number of service endpoints, and all service endpoints share the same service definition, such as quota limits and monitoring metrics. Example: type: google.api.Service name: library-example.googleapis.com endpoints: # Declares network address https://library-example.googleapis.com # for service library-example.googleapis.com. The https scheme # is implicit for all service endpoints. Other schemes may be # supported in the future. - name: library-example.googleapis.com allow_cors: false - name: content-staging-library-example.googleapis.com # Allows HTTP OPTIONS calls to be passed to the API frontend, for it # to decide whether the subsequent cross-origin request is allowed # to proceed. allow_cors: true

Link copied to clipboard
Link copied to clipboard
data class EnumArgs(val edition: Output<String>? = null, val enumvalue: Output<List<EnumValueArgs>>? = null, val name: Output<String>? = null, val options: Output<List<OptionArgs>>? = null, val sourceContext: Output<SourceContextArgs>? = null, val syntax: Output<EnumSyntax>? = null) : ConvertibleToJava<EnumArgs>

Enum type definition.

Link copied to clipboard

Builder for EnumArgs.

Link copied to clipboard
data class EnumValueArgs(val name: Output<String>? = null, val number: Output<Int>? = null, val options: Output<List<OptionArgs>>? = null) : ConvertibleToJava<EnumValueArgs>

Enum value definition.

Link copied to clipboard
Link copied to clipboard
data class ExprArgs(val description: Output<String>? = null, val expression: Output<String>? = null, val location: Output<String>? = null, val title: Output<String>? = null) : ConvertibleToJava<ExprArgs>

Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.

Link copied to clipboard

Builder for ExprArgs.

Link copied to clipboard
data class FieldArgs(val cardinality: Output<FieldCardinality>? = null, val defaultValue: Output<String>? = null, val jsonName: Output<String>? = null, val kind: Output<FieldKind>? = null, val name: Output<String>? = null, val number: Output<Int>? = null, val oneofIndex: Output<Int>? = null, val options: Output<List<OptionArgs>>? = null, val packed: Output<Boolean>? = null, val typeUrl: Output<String>? = null) : ConvertibleToJava<FieldArgs>

A single field of a message type.

Link copied to clipboard

Builder for FieldArgs.

Link copied to clipboard
data class GetConfigPlainArgs(val configId: String, val serviceName: String, val view: String? = null) : ConvertibleToJava<GetConfigPlainArgs>
Link copied to clipboard
Link copied to clipboard
data class GetRolloutPlainArgs(val rolloutId: String, val serviceName: String) : ConvertibleToJava<GetRolloutPlainArgs>
Link copied to clipboard
data class GetServiceConsumerIamPolicyPlainArgs(val consumerId: String, val serviceId: String) : ConvertibleToJava<GetServiceConsumerIamPolicyPlainArgs>
Link copied to clipboard
data class GetServiceIamPolicyPlainArgs(val serviceId: String) : ConvertibleToJava<GetServiceIamPolicyPlainArgs>
Link copied to clipboard
data class GetServicePlainArgs(val serviceName: String) : ConvertibleToJava<GetServicePlainArgs>
Link copied to clipboard
data class GoSettingsArgs(val common: Output<CommonLanguageSettingsArgs>? = null) : ConvertibleToJava<GoSettingsArgs>

Settings for Go client libraries.

Link copied to clipboard
Link copied to clipboard
data class HttpArgs(val fullyDecodeReservedExpansion: Output<Boolean>? = null, val rules: Output<List<HttpRuleArgs>>? = null) : ConvertibleToJava<HttpArgs>

Defines the HTTP configuration for an API service. It contains a list of HttpRule, each specifying the mapping of an RPC method to one or more HTTP REST API methods.

Link copied to clipboard

Builder for HttpArgs.

Link copied to clipboard
data class HttpRuleArgs(val additionalBindings: Output<List<HttpRuleArgs>>? = null, val body: Output<String>? = null, val custom: Output<CustomHttpPatternArgs>? = null, val delete: Output<String>? = null, val get: Output<String>? = null, val patch: Output<String>? = null, val post: Output<String>? = null, val put: Output<String>? = null, val responseBody: Output<String>? = null, val selector: Output<String>? = null) : ConvertibleToJava<HttpRuleArgs>
Link copied to clipboard
Link copied to clipboard
data class JavaSettingsArgs(val common: Output<CommonLanguageSettingsArgs>? = null, val libraryPackage: Output<String>? = null, val serviceClassNames: Output<Map<String, String>>? = null) : ConvertibleToJava<JavaSettingsArgs>

Settings for Java client libraries.

Link copied to clipboard
Link copied to clipboard
data class JwtLocationArgs(val cookie: Output<String>? = null, val header: Output<String>? = null, val query: Output<String>? = null, val valuePrefix: Output<String>? = null) : ConvertibleToJava<JwtLocationArgs>

Specifies a location to extract JWT from an API request.

Link copied to clipboard
Link copied to clipboard
data class LabelDescriptorArgs(val description: Output<String>? = null, val key: Output<String>? = null, val valueType: Output<LabelDescriptorValueType>? = null) : ConvertibleToJava<LabelDescriptorArgs>

A description of a label.

Link copied to clipboard
data class LogDescriptorArgs(val description: Output<String>? = null, val displayName: Output<String>? = null, val labels: Output<List<LabelDescriptorArgs>>? = null, val name: Output<String>? = null) : ConvertibleToJava<LogDescriptorArgs>

A description of a log type. Example in YAML format: - name: library.googleapis.com/activity_history description: The history of borrowing and returning library items. display_name: Activity labels: - key: /customer_id description: Identifier of a library customer

Link copied to clipboard
Link copied to clipboard
data class LoggingArgs(val consumerDestinations: Output<List<LoggingDestinationArgs>>? = null, val producerDestinations: Output<List<LoggingDestinationArgs>>? = null) : ConvertibleToJava<LoggingArgs>

Logging configuration of the service. The following example shows how to configure logs to be sent to the producer and consumer projects. In the example, the activity_history log is sent to both the producer and consumer projects, whereas the purchase_history log is only sent to the producer project. monitored_resources: - type: library.googleapis.com/branch labels: - key: /city description: The city where the library branch is located in. - key: /name description: The name of the branch. logs: - name: activity_history labels: - key: /customer_id - name: purchase_history logging: producer_destinations: - monitored_resource: library.googleapis.com/branch logs: - activity_history - purchase_history consumer_destinations: - monitored_resource: library.googleapis.com/branch logs: - activity_history

Link copied to clipboard
Link copied to clipboard
data class LoggingDestinationArgs(val logs: Output<List<String>>? = null, val monitoredResource: Output<String>? = null) : ConvertibleToJava<LoggingDestinationArgs>

Configuration of a specific logging destination (the producer project or the consumer project).

Link copied to clipboard
data class LongRunningArgs(val initialPollDelay: Output<String>? = null, val maxPollDelay: Output<String>? = null, val pollDelayMultiplier: Output<Double>? = null, val totalPollTimeout: Output<String>? = null) : ConvertibleToJava<LongRunningArgs>

Describes settings to use when generating API methods that use the long-running operation pattern. All default values below are from those used in the client library generators (e.g. Java).

Link copied to clipboard
Link copied to clipboard
data class MethodArgs(val name: Output<String>? = null, val options: Output<List<OptionArgs>>? = null, val requestStreaming: Output<Boolean>? = null, val requestTypeUrl: Output<String>? = null, val responseStreaming: Output<Boolean>? = null, val responseTypeUrl: Output<String>? = null, val syntax: Output<MethodSyntax>? = null) : ConvertibleToJava<MethodArgs>

Method represents a method of an API interface.

Link copied to clipboard

Builder for MethodArgs.

Link copied to clipboard
data class MethodSettingsArgs(val longRunning: Output<LongRunningArgs>? = null, val selector: Output<String>? = null) : ConvertibleToJava<MethodSettingsArgs>

Describes the generator configuration for a method.

Link copied to clipboard
Link copied to clipboard
data class MetricDescriptorArgs(val description: Output<String>? = null, val displayName: Output<String>? = null, val labels: Output<List<LabelDescriptorArgs>>? = null, val launchStage: Output<MetricDescriptorLaunchStage>? = null, val metadata: Output<MetricDescriptorMetadataArgs>? = null, val metricKind: Output<MetricDescriptorMetricKind>? = null, val monitoredResourceTypes: Output<List<String>>? = null, val name: Output<String>? = null, val type: Output<String>? = null, val unit: Output<String>? = null, val valueType: Output<MetricDescriptorValueType>? = null) : ConvertibleToJava<MetricDescriptorArgs>

Defines a metric type and its schema. Once a metric descriptor is created, deleting or altering it stops data collection and makes the metric type's existing data unusable.

Link copied to clipboard
data class MetricDescriptorMetadataArgs(val ingestDelay: Output<String>? = null, val launchStage: Output<MetricDescriptorMetadataLaunchStage>? = null, val samplePeriod: Output<String>? = null) : ConvertibleToJava<MetricDescriptorMetadataArgs>

Additional annotations that can be used to guide the usage of a metric.

Link copied to clipboard
data class MetricRuleArgs(val metricCosts: Output<Map<String, String>>? = null, val selector: Output<String>? = null) : ConvertibleToJava<MetricRuleArgs>

Bind API methods to metrics. Binding a method to a metric causes that metric's configured quota behaviors to apply to the method call.

Link copied to clipboard
Link copied to clipboard
data class MixinArgs(val name: Output<String>? = null, val root: Output<String>? = null) : ConvertibleToJava<MixinArgs>

Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = "/v1/{resource=}:getAcl"; } } package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = "/v2/{resource=}"; } } Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in AccessControl are also declared with same name and request/response types in Storage. A documentation generator or annotation processor will see the effective Storage.GetAcl method after inherting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = "/v2/{resource=}:getAcl"; } ... } Note how the version in the path pattern changed from v1 to v2. If the root field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = "/v2/acls/{resource=}:getAcl"; } ... }

Link copied to clipboard

Builder for MixinArgs.

Link copied to clipboard
data class MonitoredResourceDescriptorArgs(val description: Output<String>? = null, val displayName: Output<String>? = null, val labels: Output<List<LabelDescriptorArgs>>, val launchStage: Output<MonitoredResourceDescriptorLaunchStage>? = null, val name: Output<String>? = null, val type: Output<String>) : ConvertibleToJava<MonitoredResourceDescriptorArgs>

An object that describes the schema of a MonitoredResource object using a type name and a set of labels. For example, the monitored resource descriptor for Google Compute Engine VM instances has a type of "gce_instance" and specifies the use of the labels "instance_id" and "zone" to identify particular VM instances. Different APIs can support different monitored resource types. APIs generally provide a list method that returns the monitored resource descriptors used by the API.

Link copied to clipboard
data class MonitoringArgs(val consumerDestinations: Output<List<MonitoringDestinationArgs>>? = null, val producerDestinations: Output<List<MonitoringDestinationArgs>>? = null) : ConvertibleToJava<MonitoringArgs>

Monitoring configuration of the service. The example below shows how to configure monitored resources and metrics for monitoring. In the example, a monitored resource and two metrics are defined. The library.googleapis.com/book/returned_count metric is sent to both producer and consumer projects, whereas the library.googleapis.com/book/num_overdue metric is only sent to the consumer project. monitored_resources: - type: library.googleapis.com/Branch display_name: "Library Branch" description: "A branch of a library." launch_stage: GA labels: - key: resource_container description: "The Cloud container (ie. project id) for the Branch." - key: location description: "The location of the library branch." - key: branch_id description: "The id of the branch." metrics: - name: library.googleapis.com/book/returned_count display_name: "Books Returned" description: "The count of books that have been returned." launch_stage: GA metric_kind: DELTA value_type: INT64 unit: "1" labels: - key: customer_id description: "The id of the customer." - name: library.googleapis.com/book/num_overdue display_name: "Books Overdue" description: "The current number of overdue books." launch_stage: GA metric_kind: GAUGE value_type: INT64 unit: "1" labels: - key: customer_id description: "The id of the customer." monitoring: producer_destinations: - monitored_resource: library.googleapis.com/Branch metrics: - library.googleapis.com/book/returned_count consumer_destinations: - monitored_resource: library.googleapis.com/Branch metrics: - library.googleapis.com/book/returned_count - library.googleapis.com/book/num_overdue

Link copied to clipboard
Link copied to clipboard
data class MonitoringDestinationArgs(val metrics: Output<List<String>>? = null, val monitoredResource: Output<String>? = null) : ConvertibleToJava<MonitoringDestinationArgs>

Configuration of a specific monitoring destination (the producer project or the consumer project).

Link copied to clipboard
data class NodeSettingsArgs(val common: Output<CommonLanguageSettingsArgs>? = null) : ConvertibleToJava<NodeSettingsArgs>

Settings for Node client libraries.

Link copied to clipboard
Link copied to clipboard
data class OAuthRequirementsArgs(val canonicalScopes: Output<String>? = null) : ConvertibleToJava<OAuthRequirementsArgs>

OAuth scopes are a way to define data and permissions on data. For example, there are scopes defined for "Read-only access to Google Calendar" and "Access to Cloud Platform". Users can consent to a scope for an application, giving it permission to access that data on their behalf. OAuth scope specifications should be fairly coarse grained; a user will need to see and understand the text description of what your scope means. In most cases: use one or at most two OAuth scopes for an entire family of products. If your product has multiple APIs, you should probably be sharing the OAuth scope across all of those APIs. When you need finer grained OAuth consent screens: talk with your product management about how developers will use them in practice. Please note that even though each of the canonical scopes is enough for a request to be accepted and passed to the backend, a request can still fail due to the backend requiring additional scopes or permissions.

Link copied to clipboard
data class OptionArgs(val name: Output<String>? = null, val value: Output<Map<String, String>>? = null) : ConvertibleToJava<OptionArgs>

A protocol buffer option, which can be attached to a message, field, enumeration, etc.

Link copied to clipboard

Builder for OptionArgs.

Link copied to clipboard
data class PageArgs(val content: Output<String>? = null, val name: Output<String>? = null, val subpages: Output<List<PageArgs>>? = null) : ConvertibleToJava<PageArgs>

Represents a documentation page. A page can contain subpages to represent nested documentation set structure.

Link copied to clipboard

Builder for PageArgs.

Link copied to clipboard
data class PhpSettingsArgs(val common: Output<CommonLanguageSettingsArgs>? = null) : ConvertibleToJava<PhpSettingsArgs>

Settings for Php client libraries.

Link copied to clipboard
Link copied to clipboard
data class PublishingArgs(val apiShortName: Output<String>? = null, val codeownerGithubTeams: Output<List<String>>? = null, val docTagPrefix: Output<String>? = null, val documentationUri: Output<String>? = null, val githubLabel: Output<String>? = null, val librarySettings: Output<List<ClientLibrarySettingsArgs>>? = null, val methodSettings: Output<List<MethodSettingsArgs>>? = null, val newIssueUri: Output<String>? = null, val organization: Output<PublishingOrganization>? = null, val protoReferenceDocumentationUri: Output<String>? = null) : ConvertibleToJava<PublishingArgs>

This message configures the settings for publishing Google Cloud Client libraries generated from the service config.

Link copied to clipboard
Link copied to clipboard
data class PythonSettingsArgs(val common: Output<CommonLanguageSettingsArgs>? = null) : ConvertibleToJava<PythonSettingsArgs>

Settings for Python client libraries.

Link copied to clipboard
Link copied to clipboard
data class QuotaArgs(val limits: Output<List<QuotaLimitArgs>>? = null, val metricRules: Output<List<MetricRuleArgs>>? = null) : ConvertibleToJava<QuotaArgs>

Quota configuration helps to achieve fairness and budgeting in service usage. The metric based quota configuration works this way: - The service configuration defines a set of metrics. - For API calls, the quota.metric_rules maps methods to metrics with corresponding costs. - The quota.limits defines limits on the metrics, which will be used for quota checks at runtime. An example quota configuration in yaml format: quota: limits: - name: apiWriteQpsPerProject metric: library.googleapis.com/write_calls unit: "1/min/{project}" # rate limit for consumer projects values: STANDARD: 10000 (The metric rules bind all methods to the read_calls metric, except for the UpdateBook and DeleteBook methods. These two methods are mapped to the write_calls metric, with the UpdateBook method consuming at twice rate as the DeleteBook method.) metric_rules: - selector: "*" metric_costs: library.googleapis.com/read_calls: 1 - selector: google.example.library.v1.LibraryService.UpdateBook metric_costs: library.googleapis.com/write_calls: 2 - selector: google.example.library.v1.LibraryService.DeleteBook metric_costs: library.googleapis.com/write_calls: 1 Corresponding Metric definition: metrics: - name: library.googleapis.com/read_calls display_name: Read requests metric_kind: DELTA value_type: INT64 - name: library.googleapis.com/write_calls display_name: Write requests metric_kind: DELTA value_type: INT64

Link copied to clipboard

Builder for QuotaArgs.

Link copied to clipboard
data class QuotaLimitArgs(val defaultLimit: Output<String>? = null, val description: Output<String>? = null, val displayName: Output<String>? = null, val duration: Output<String>? = null, val freeTier: Output<String>? = null, val maxLimit: Output<String>? = null, val metric: Output<String>? = null, val name: Output<String>? = null, val unit: Output<String>? = null, val values: Output<Map<String, String>>? = null) : ConvertibleToJava<QuotaLimitArgs>

QuotaLimit defines a specific limit that applies over a specified duration for a limit type. There can be at most one limit for a duration and limit type combination defined within a QuotaGroup.

Link copied to clipboard
Link copied to clipboard
data class RubySettingsArgs(val common: Output<CommonLanguageSettingsArgs>? = null) : ConvertibleToJava<RubySettingsArgs>

Settings for Ruby client libraries.

Link copied to clipboard
Link copied to clipboard
data class SourceContextArgs(val fileName: Output<String>? = null) : ConvertibleToJava<SourceContextArgs>

SourceContext represents information about the source of a protobuf element, like the file in which it is defined.

Link copied to clipboard
Link copied to clipboard
data class SystemParameterArgs(val httpHeader: Output<String>? = null, val name: Output<String>? = null, val urlQueryParameter: Output<String>? = null) : ConvertibleToJava<SystemParameterArgs>

Define a parameter's name and location. The parameter may be passed as either an HTTP header or a URL query parameter, and if both are passed the behavior is implementation-dependent.

Link copied to clipboard
data class SystemParameterRuleArgs(val parameters: Output<List<SystemParameterArgs>>? = null, val selector: Output<String>? = null) : ConvertibleToJava<SystemParameterRuleArgs>

Define a system parameter rule mapping system parameter definitions to methods.

Link copied to clipboard
data class SystemParametersArgs(val rules: Output<List<SystemParameterRuleArgs>>? = null) : ConvertibleToJava<SystemParametersArgs>
Link copied to clipboard
data class TrafficPercentStrategyArgs(val percentages: Output<Map<String, String>>? = null) : ConvertibleToJava<TrafficPercentStrategyArgs>

Strategy that specifies how clients of Google Service Controller want to send traffic to use different config versions. This is generally used by API proxy to split traffic based on your configured percentage for each config version. One example of how to gradually rollout a new service configuration using this strategy: Day 1 Rollout { id: "example.googleapis.com/rollout_20160206" traffic_percent_strategy { percentages: { "example.googleapis.com/20160201": 70.00 "example.googleapis.com/20160206": 30.00 } } } Day 2 Rollout { id: "example.googleapis.com/rollout_20160207" traffic_percent_strategy: { percentages: { "example.googleapis.com/20160206": 100.00 } } }

Link copied to clipboard
data class TypeArgs(val edition: Output<String>? = null, val fields: Output<List<FieldArgs>>? = null, val name: Output<String>? = null, val oneofs: Output<List<String>>? = null, val options: Output<List<OptionArgs>>? = null, val sourceContext: Output<SourceContextArgs>? = null, val syntax: Output<TypeSyntax>? = null) : ConvertibleToJava<TypeArgs>

A protocol buffer message type.

Link copied to clipboard

Builder for TypeArgs.

Link copied to clipboard
data class UsageArgs(val producerNotificationChannel: Output<String>? = null, val requirements: Output<List<String>>? = null, val rules: Output<List<UsageRuleArgs>>? = null) : ConvertibleToJava<UsageArgs>

Configuration controlling usage of a service.

Link copied to clipboard

Builder for UsageArgs.

Link copied to clipboard
data class UsageRuleArgs(val allowUnregisteredCalls: Output<Boolean>? = null, val selector: Output<String>? = null, val skipServiceControl: Output<Boolean>? = null) : ConvertibleToJava<UsageRuleArgs>

Usage configuration rules for the service. NOTE: Under development. Use this rule to configure unregistered calls for the service. Unregistered calls are calls that do not contain consumer project identity. (Example: calls that do not contain an API key). By default, API methods do not allow unregistered calls, and each method call must be identified by a consumer project identity. Use this rule to allow/disallow unregistered calls. Example of an API that wants to allow unregistered calls for entire service. usage: rules: - selector: "*" allow_unregistered_calls: true Example of a method that wants to allow unregistered calls. usage: rules: - selector: "google.example.library.v1.LibraryService.CreateBook" allow_unregistered_calls: true

Link copied to clipboard