UNPKG

@googleapis/servicemanagement

Version:
880 lines (871 loc) 270 kB
// Copyright 2020 Google LLC // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. /* eslint-disable @typescript-eslint/no-explicit-any */ /* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable @typescript-eslint/no-empty-interface */ /* eslint-disable @typescript-eslint/no-namespace */ /* eslint-disable no-irregular-whitespace */ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, createAPIRequest, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext, } from 'googleapis-common'; import {Readable} from 'stream'; export namespace servicemanagement_v1 { export interface Options extends GlobalOptions { version: 'v1'; } interface StandardParameters { /** * Auth client or API Key for the request */ auth?: | string | OAuth2Client | JWT | Compute | UserRefreshClient | BaseExternalAccountClient | GoogleAuth; /** * V1 error format. */ '$.xgafv'?: string; /** * OAuth access token. */ access_token?: string; /** * Data format for response. */ alt?: string; /** * JSONP */ callback?: string; /** * Selector specifying which fields to include in a partial response. */ fields?: string; /** * API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */ key?: string; /** * OAuth 2.0 token for the current user. */ oauth_token?: string; /** * Returns response with indentations and line breaks. */ prettyPrint?: boolean; /** * Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */ quotaUser?: string; /** * Legacy upload protocol for media (e.g. "media", "multipart"). */ uploadType?: string; /** * Upload protocol for media (e.g. "raw", "multipart"). */ upload_protocol?: string; } /** * Service Management API * * Google Service Management allows service producers to publish their services on Google Cloud Platform so that they can be discovered and used by service consumers. * * @example * ```js * const {google} = require('googleapis'); * const servicemanagement = google.servicemanagement('v1'); * ``` */ export class Servicemanagement { context: APIRequestContext; operations: Resource$Operations; services: Resource$Services; constructor(options: GlobalOptions, google?: GoogleConfigurable) { this.context = { _options: options || {}, google, }; this.operations = new Resource$Operations(this.context); this.services = new Resource$Services(this.context); } } /** * Generated advice about this change, used for providing more information about how a change will affect the existing service. */ export interface Schema$Advice { /** * Useful description for why this advice was applied and what actions should be taken to mitigate any implied risks. */ description?: string | null; } /** * 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. */ export interface Schema$Api { /** * The methods of this interface, in unspecified order. */ methods?: Schema$Method[]; /** * Included interfaces. See Mixin. */ mixins?: Schema$Mixin[]; /** * The fully qualified name of this interface, including package name followed by the interface's simple name. */ name?: string | null; /** * Any metadata attached to the interface. */ options?: Schema$Option[]; /** * Source context for the protocol buffer service represented by this message. */ sourceContext?: Schema$SourceContext; /** * The source syntax of the service. */ syntax?: string | null; /** * A version string for this interface. If specified, must have the form `major-version.minor-version`, as in `1.10`. If the minor version is omitted, it defaults to zero. If the entire version field is empty, the major version is derived from the package name, as outlined below. If the field is not empty, the version in the package name will be verified to be consistent with what is provided here. The versioning schema uses [semantic versioning](http://semver.org) where the major version number indicates a breaking change and the minor version an additive, non-breaking change. Both version numbers are signals to users what to expect from different versions, and should be carefully chosen based on the product plan. The major version is also reflected in the package name of the interface, which must end in `v`, as in `google.feature.v1`. For major versions 0 and 1, the suffix can be omitted. Zero major versions must only be used for experimental, non-GA interfaces. */ version?: string | null; } /** * Aspect represents Generic aspect. It is used to configure an aspect without making direct changes to service.proto */ export interface Schema$Aspect { /** * The type of this aspect configuration. */ kind?: string | null; /** * Content of the configuration. The underlying schema should be defined by Aspect owners as protobuf message under `google/api/configaspects/proto`. */ spec?: {[key: string]: any} | null; } /** * 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. */ export interface Schema$AuditConfig { /** * The configuration for logging of each type of permission. */ auditLogConfigs?: Schema$AuditLogConfig[]; /** * Specifies a service that will be enabled for audit logging. For example, `storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special value that covers all services. */ service?: string | null; } /** * 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. */ export interface Schema$AuditLogConfig { /** * Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members. */ exemptedMembers?: string[] | null; /** * The log type that this config enables. */ logType?: string | null; } /** * `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 */ export interface Schema$Authentication { /** * Defines a set of authentication providers that a service supports. */ providers?: Schema$AuthProvider[]; /** * A list of authentication rules that apply to individual API methods. **NOTE:** All service configuration rules follow "last one wins" order. */ rules?: Schema$AuthenticationRule[]; } /** * 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. */ export interface Schema$AuthenticationRule { /** * If true, the service accepts API keys without any other credential. This flag only applies to HTTP and gRPC requests. */ allowWithoutCredential?: boolean | null; /** * The requirements for OAuth credentials. */ oauth?: Schema$OAuthRequirements; /** * Requirements for additional authentication providers. */ requirements?: Schema$AuthRequirement[]; /** * Selects the methods to which this rule applies. Refer to selector for syntax details. */ selector?: string | null; } /** * Configuration for an authentication provider, including support for [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). */ export interface Schema$AuthProvider { /** * The list of JWT [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). that are allowed to access. A JWT containing any of these audiences will be accepted. When this setting is absent, JWTs with audiences: - "https://[service.name]/[google.protobuf.Api.name]" - "https://[service.name]/" will be accepted. For example, if no audiences are in the setting, LibraryService API will accept JWTs with the following audiences: - https://library-example.googleapis.com/google.example.library.v1.LibraryService - https://library-example.googleapis.com/ Example: audiences: bookstore_android.apps.googleusercontent.com, bookstore_web.apps.googleusercontent.com */ audiences?: string | null; /** * Redirect URL if JWT token is required but not present or is expired. Implement authorizationUrl of securityDefinitions in OpenAPI spec. */ authorizationUrl?: string | null; /** * The unique identifier of the auth provider. It will be referred to by `AuthRequirement.provider_id`. Example: "bookstore_auth". */ id?: string | null; /** * Identifies the principal that issued the JWT. See https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 Usually a URL or an email address. Example: https://securetoken.google.com Example: 1234567-compute@developer.gserviceaccount.com */ issuer?: string | null; /** * URL of the provider's public key set to validate signature of the JWT. See [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). Optional if the key set document: - can be retrieved from [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html) of the issuer. - can be inferred from the email domain of the issuer (e.g. a Google service account). Example: https://www.googleapis.com/oauth2/v1/certs */ jwksUri?: string | null; /** * Defines the locations to extract the JWT. For now it is only used by the Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations] (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations) JWT locations can be one of HTTP headers, URL query parameters or cookies. The rule is that the first match wins. If not specified, default to use following 3 locations: 1) Authorization: Bearer 2) x-goog-iap-jwt-assertion 3) access_token query parameter Default locations can be specified as followings: jwt_locations: - header: Authorization value_prefix: "Bearer " - header: x-goog-iap-jwt-assertion - query: access_token */ jwtLocations?: Schema$JwtLocation[]; } /** * User-defined authentication requirements, including support for [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). */ export interface Schema$AuthRequirement { /** * NOTE: This will be deprecated soon, once AuthProvider.audiences is implemented and accepted in all the runtime components. The list of JWT [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). that are allowed to access. A JWT containing any of these audiences will be accepted. When this setting is absent, only JWTs with audience "https://Service_name/API_name" will be accepted. For example, if no audiences are in the setting, LibraryService API will only accept JWTs with the following audience "https://library-example.googleapis.com/google.example.library.v1.LibraryService". Example: audiences: bookstore_android.apps.googleusercontent.com, bookstore_web.apps.googleusercontent.com */ audiences?: string | null; /** * id from authentication provider. Example: provider_id: bookstore_auth */ providerId?: string | null; } /** * `Backend` defines the backend configuration for a service. */ export interface Schema$Backend { /** * A list of API backend rules that apply to individual API methods. **NOTE:** All service configuration rules follow "last one wins" order. */ rules?: Schema$BackendRule[]; } /** * A backend rule provides configuration for an individual API element. */ export interface Schema$BackendRule { /** * The address of the API backend. The scheme is used to determine the backend protocol and security. The following schemes are accepted: SCHEME PROTOCOL SECURITY http:// HTTP None https:// HTTP TLS grpc:// gRPC None grpcs:// gRPC TLS It is recommended to explicitly include a scheme. Leaving out the scheme may cause constrasting behaviors across platforms. If the port is unspecified, the default is: - 80 for schemes without TLS - 443 for schemes with TLS For HTTP backends, use protocol to specify the protocol version. */ address?: string | null; /** * The number of seconds to wait for a response from a request. The default varies based on the request protocol and deployment environment. */ deadline?: number | null; /** * When disable_auth is true, a JWT ID token won't be generated and the original "Authorization" HTTP header will be preserved. If the header is used to carry the original token and is expected by the backend, this field must be set to true to preserve the header. */ disableAuth?: boolean | null; /** * The JWT audience is used when generating a JWT ID token for the backend. This ID token will be added in the HTTP "authorization" header, and sent to the backend. */ jwtAudience?: string | null; /** * The load balancing policy used for connection to the application backend. Defined as an arbitrary string to accomondate custom load balancing policies supported by the underlying channel, but suggest most users use one of the standard policies, such as the default, "RoundRobin". */ loadBalancingPolicy?: string | null; /** * Deprecated, do not use. */ minDeadline?: number | null; /** * The number of seconds to wait for the completion of a long running operation. The default is no deadline. */ operationDeadline?: number | null; /** * The map between request protocol and the backend address. */ overridesByRequestProtocol?: {[key: string]: Schema$BackendRule} | null; pathTranslation?: string | null; /** * The protocol used for sending a request to the backend. The supported values are "http/1.1" and "h2". The default value is inferred from the scheme in the address field: SCHEME PROTOCOL http:// http/1.1 https:// http/1.1 grpc:// h2 grpcs:// h2 For secure HTTP backends (https://) that support HTTP/2, set this field to "h2" for improved performance. Configuring this field to non-default values is only supported for secure HTTP backends. This field will be ignored for all other backends. See https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for more details on the supported values. */ protocol?: string | null; /** * Selects the methods to which this rule applies. Refer to selector for syntax details. */ selector?: string | null; } /** * `BatchingConfigProto` defines the batching configuration for an API method. */ export interface Schema$BatchingConfigProto { /** * The request and response fields used in batching. */ batchDescriptor?: Schema$BatchingDescriptorProto; /** * The thresholds which trigger a batched request to be sent. */ thresholds?: Schema$BatchingSettingsProto; } /** * `BatchingDescriptorProto` specifies the fields of the request message to be used for batching, and, optionally, the fields of the response message to be used for demultiplexing. */ export interface Schema$BatchingDescriptorProto { /** * The repeated field in the request message to be aggregated by batching. */ batchedField?: string | null; /** * A list of the fields in the request message. Two requests will be batched together only if the values of every field specified in `request_discriminator_fields` is equal between the two requests. */ discriminatorFields?: string[] | null; /** * Optional. When present, indicates the field in the response message to be used to demultiplex the response into multiple response messages, in correspondence with the multiple request messages originally batched together. */ subresponseField?: string | null; } /** * `BatchingSettingsProto` specifies a set of batching thresholds, each of which acts as a trigger to send a batch of messages as a request. At least one threshold must be positive nonzero. */ export interface Schema$BatchingSettingsProto { /** * The duration after which a batch should be sent, starting from the addition of the first message to that batch. */ delayThreshold?: string | null; /** * The maximum number of elements collected in a batch that could be accepted by server. */ elementCountLimit?: number | null; /** * The number of elements of a field collected into a batch which, if exceeded, causes the batch to be sent. */ elementCountThreshold?: number | null; /** * The maximum size of data allowed by flow control. */ flowControlByteLimit?: number | null; /** * The maximum number of elements allowed by flow control. */ flowControlElementLimit?: number | null; /** * The behavior to take when the flow control limit is exceeded. */ flowControlLimitExceededBehavior?: string | null; /** * The maximum size of the request that could be accepted by server. */ requestByteLimit?: number | null; /** * The aggregated size of the batched field which, if exceeded, causes the batch to be sent. This size is computed by aggregating the sizes of the request field to be batched, not of the entire request message. */ requestByteThreshold?: string | null; } /** * 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 */ export interface Schema$Billing { /** * Billing configurations for sending metrics to the consumer project. There can be multiple consumer destinations per service, each one must have a different monitored resource type. A metric can be used in at most one consumer destination. */ consumerDestinations?: Schema$BillingDestination[]; } /** * Configuration of a specific billing destination (Currently only support bill against consumer project). */ export interface Schema$BillingDestination { /** * Names of the metrics to report to this billing destination. Each name must be defined in Service.metrics section. */ metrics?: string[] | null; /** * The monitored resource type. The type must be defined in Service.monitored_resources section. */ monitoredResource?: string | null; } /** * Associates `members`, or principals, with a `role`. */ export interface Schema$Binding { /** * The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ condition?: Schema$Expr; /** * Specifies the principals requesting access for a Google Cloud resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. Does not include identities that come from external identity providers (IdPs) through identity federation. * `user:{emailid\}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid\}`: An email address that represents a Google service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `serviceAccount:{projectid\}.svc.id.goog[{namespace\}/{kubernetes-sa\}]`: An identifier for a [Kubernetes service account](https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts). For example, `my-project.svc.id.goog[my-namespace/my-kubernetes-sa]`. * `group:{emailid\}`: An email address that represents a Google group. For example, `admins@example.com`. * `domain:{domain\}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. * `principal://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/subject/{subject_attribute_value\}`: A single identity in a workforce identity pool. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/group/{group_id\}`: All workforce identities in a group. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/attribute.{attribute_name\}/{attribute_value\}`: All workforce identities with a specific attribute value. * `principalSet://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/x`: All identities in a workforce identity pool. * `principal://iam.googleapis.com/projects/{project_number\}/locations/global/workloadIdentityPools/{pool_id\}/subject/{subject_attribute_value\}`: A single identity in a workload identity pool. * `principalSet://iam.googleapis.com/projects/{project_number\}/locations/global/workloadIdentityPools/{pool_id\}/group/{group_id\}`: A workload identity pool group. * `principalSet://iam.googleapis.com/projects/{project_number\}/locations/global/workloadIdentityPools/{pool_id\}/attribute.{attribute_name\}/{attribute_value\}`: All identities in a workload identity pool with a certain attribute. * `principalSet://iam.googleapis.com/projects/{project_number\}/locations/global/workloadIdentityPools/{pool_id\}/x`: All identities in a workload identity pool. * `deleted:user:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid\}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid\}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid\}?uid={uniqueid\}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid\}` and the recovered group retains the role in the binding. * `deleted:principal://iam.googleapis.com/locations/global/workforcePools/{pool_id\}/subject/{subject_attribute_value\}`: Deleted single identity in a workforce identity pool. For example, `deleted:principal://iam.googleapis.com/locations/global/workforcePools/my-pool-id/subject/my-subject-attribute-value`. */ members?: string[] | null; /** * Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. For an overview of the IAM roles and permissions, see the [IAM documentation](https://cloud.google.com/iam/docs/roles-overview). For a list of the available pre-defined roles, see [here](https://cloud.google.com/iam/docs/understanding-roles). */ role?: string | null; } /** * Change report associated with a particular service configuration. It contains a list of ConfigChanges based on the comparison between two service configurations. */ export interface Schema$ChangeReport { /** * List of changes between two service configurations. The changes will be alphabetically sorted based on the identifier of each change. A ConfigChange identifier is a dot separated path to the configuration. Example: visibility.rules[selector='LibraryService.CreateBook'].restriction */ configChanges?: Schema$ConfigChange[]; } /** * Details about how and where to publish client libraries. */ export interface Schema$ClientLibrarySettings { /** * Settings for C++ client libraries. */ cppSettings?: Schema$CppSettings; /** * Settings for .NET client libraries. */ dotnetSettings?: Schema$DotnetSettings; /** * Settings for Go client libraries. */ goSettings?: Schema$GoSettings; /** * Settings for legacy Java features, supported in the Service YAML. */ javaSettings?: Schema$JavaSettings; /** * Launch stage of this version of the API. */ launchStage?: string | null; /** * Settings for Node client libraries. */ nodeSettings?: Schema$NodeSettings; /** * Settings for PHP client libraries. */ phpSettings?: Schema$PhpSettings; /** * Settings for Python client libraries. */ pythonSettings?: Schema$PythonSettings; /** * When using transport=rest, the client request will encode enums as numbers rather than strings. */ restNumericEnums?: boolean | null; /** * Settings for Ruby client libraries. */ rubySettings?: Schema$RubySettings; /** * Version of the API to apply these settings to. This is the full protobuf package for the API, ending in the version element. Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". */ version?: string | null; } /** * Required information for every language. */ export interface Schema$CommonLanguageSettings { /** * The destination where API teams want this client library to be published. */ destinations?: string[] | null; /** * Link to automatically generated reference documentation. Example: https://cloud.google.com/nodejs/docs/reference/asset/latest */ referenceDocsUri?: string | null; /** * Configuration for which RPCs should be generated in the GAPIC client. */ selectiveGapicGeneration?: Schema$SelectiveGapicGeneration; } /** * Output generated from semantically comparing two versions of a service configuration. Includes detailed information about a field that have changed with applicable advice about potential consequences for the change, such as backwards-incompatibility. */ export interface Schema$ConfigChange { /** * Collection of advice provided for this change, useful for determining the possible impact of this change. */ advices?: Schema$Advice[]; /** * The type for this change, either ADDED, REMOVED, or MODIFIED. */ changeType?: string | null; /** * Object hierarchy path to the change, with levels separated by a '.' character. For repeated fields, an applicable unique identifier field is used for the index (usually selector, name, or id). For maps, the term 'key' is used. If the field has no unique identifier, the numeric index is used. Examples: - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value - logging.producer_destinations[0] */ element?: string | null; /** * Value of the changed object in the new Service configuration, in JSON format. This field will not be populated if ChangeType == REMOVED. */ newValue?: string | null; /** * Value of the changed object in the old Service configuration, in JSON format. This field will not be populated if ChangeType == ADDED. */ oldValue?: string | null; } /** * Generic specification of a source configuration file */ export interface Schema$ConfigFile { /** * The bytes that constitute the file. */ fileContents?: string | null; /** * The file name of the configuration file (full or relative path). */ filePath?: string | null; /** * The type of configuration file this represents. */ fileType?: string | null; } /** * Represents a service configuration with its name and id. */ export interface Schema$ConfigRef { /** * Resource name of a service config. It must have the following format: "services/{service name\}/configs/{config id\}". */ name?: string | null; } /** * Represents a source file which is used to generate the service configuration defined by `google.api.Service`. */ export interface Schema$ConfigSource { /** * Set of source configuration files that are used to generate a service configuration (`google.api.Service`). */ files?: Schema$ConfigFile[]; /** * A unique ID for a specific instance of this message, typically assigned by the client for tracking purpose. If empty, the server may choose to generate one instead. */ id?: string | null; } /** * `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. */ export interface Schema$Context { /** * A list of RPC context rules that apply to individual API methods. **NOTE:** All service configuration rules follow "last one wins" order. */ rules?: Schema$ContextRule[]; } /** * A context rule provides information about the context for an individual API element. */ export interface Schema$ContextRule { /** * A list of full type names or extension IDs of extensions allowed in grpc side channel from client to backend. */ allowedRequestExtensions?: string[] | null; /** * A list of full type names or extension IDs of extensions allowed in grpc side channel from backend to client. */ allowedResponseExtensions?: string[] | null; /** * A list of full type names of provided contexts. It is used to support propagating HTTP headers and ETags from the response extension. */ provided?: string[] | null; /** * A list of full type names of requested contexts, only the requested context will be made available to the backend. */ requested?: string[] | null; /** * Selects the methods to which this rule applies. Refer to selector for syntax details. */ selector?: string | null; } /** * Selects and configures the service controller used by the service. Example: control: environment: servicecontrol.googleapis.com */ export interface Schema$Control { /** * The service controller environment to use. If empty, no control plane feature (like quota and billing) will be enabled. The recommended value for most services is servicecontrol.googleapis.com */ environment?: string | null; /** * Defines policies applying to the API methods of the service. */ methodPolicies?: Schema$MethodPolicy[]; } /** * Settings for C++ client libraries. */ export interface Schema$CppSettings { /** * Some settings. */ common?: Schema$CommonLanguageSettings; } /** * 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 */ export interface Schema$CustomError { /** * The list of custom error rules that apply to individual API messages. **NOTE:** All service configuration rules follow "last one wins" order. */ rules?: Schema$CustomErrorRule[]; /** * The list of custom error detail types, e.g. 'google.foo.v1.CustomError'. */ types?: string[] | null; } /** * A custom error rule. */ export interface Schema$CustomErrorRule { /** * Mark this message as possible payload in error response. Otherwise, objects of this type will be filtered when they appear in error payload. */ isErrorType?: boolean | null; /** * Selects messages to which this rule applies. Refer to selector for syntax details. */ selector?: string | null; } /** * A custom pattern is used for defining custom HTTP verb. */ export interface Schema$CustomHttpPattern { /** * The name of this custom HTTP verb. */ kind?: string | null; /** * The path matched by this custom verb. */ path?: string | null; } /** * Strategy used to delete a service. This strategy is a placeholder only used by the system generated rollout to delete a service. */ export interface Schema$DeleteServiceStrategy {} /** * Represents a diagnostic message (error or warning) */ export interface Schema$Diagnostic { /** * The kind of diagnostic information provided. */ kind?: string | null; /** * File name and line number of the error or warning. */ location?: string | null; /** * Message describing the error or warning. */ message?: string | null; } /** * `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: [display text][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. */ export interface Schema$Documentation { /** * Optional information about the IAM configuration. This is typically used to link to documentation about a product's IAM roles and permissions. */ additionalIamInfo?: string | null; /** * The URL to the root of documentation. */ documentationRootUrl?: string | null; /** * Declares a single overview page. For example: documentation: summary: ... overview: (== include overview.md ==) This is a shortcut for the following declaration (using pages style): documentation: summary: ... pages: - name: Overview content: (== include overview.md ==) Note: you cannot specify both `overview` field and `pages` field. */ overview?: string | null; /** * The top level pages for the documentation set. */ pages?: Schema$Page[]; /** * A list of documentation rules that apply to individual API elements. **NOTE:** All service configuration rules follow "last one wins" order. */ rules?: Schema$DocumentationRule[]; /** * Specifies section and content to override the boilerplate content. Currently overrides following sections: 1. rest.service.client_libraries */ sectionOverrides?: Schema$Page[]; /** * Specifies the service root url if the default one (the service name from the yaml file) is not suitable. This can be seen in any fully specified service urls as well as sections that show a base that other urls are relative to. */ serviceRootUrl?: string | null; /** * A short description of what the service does. The summary must be plain text. It becomes the overview of the service displayed in Google Cloud Console. NOTE: This field is equivalent to the standard field `description`. */ summary?: string | null; } /** * A documentation rule provides information about individual API elements. */ export interface Schema$DocumentationRule { /** * Deprecation description of the selected element(s). It can be provided if an element is marked as `deprecated`. */ deprecationDescription?: string | null; /** * Description of the selected proto element (e.g. a message, a method, a 'service' definition, or a field). Defaults to leading & trailing comments taken from the proto source definition of the proto element. */ description?: string | null; /** * String of comma or space separated case-sensitive words for which method/field name replacement will be disabled. */ disableReplacementWords?: string | null; /** * The selector is a comma-separated list of patterns for any element such as a method, a field, an enum value. Each pattern is a qualified name of the element which may end in "*", indicating a wildcard. Wildcards are only allowed at the end and for a whole component of the qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match one or more components. To specify a default for all applicable elements, the whole pattern "*" is used. */ selector?: string | null; } /** * Settings for Dotnet client libraries. */ export interface Schema$DotnetSettings { /** * Some settings. */ common?: Schema$CommonLanguageSettings; /** * Namespaces which must be aliased in snippets due to a known (but non-generator-predictable) naming collision */ forcedNamespaceAliases?: string[] | null; /** * Method signatures (in the form "service.method(signature)") which are provided separately, so shouldn't be generated. Snippets *calling* these methods are still generated, however. */ handwrittenSignatures?: string[] | null; /** * List of full resource types to ignore during generation. This is typically used for API-specific Location resources, which should be handled by the generator as if they were actually the common Location resources. Example entry: "documentai.googleapis.com/Location" */ ignoredResources?: string[] | null; /** * Map from full resource types to the effective short name for the resource. This is used when otherwise resource named from different services would cause naming collisions. Example entry: "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" */ renamedResources?: {[key: string]: string} | null; /** * Map from original service names to renamed versions. This is used when the default generated types would cause a naming conflict. (Neither name is fully-qualified.) Example: Subscriber to SubscriberServiceApi. */ renamedServices?: {[key: string]: string} | null; } /** * Operation payload for EnableService method. */ export interface Schema$EnableServiceResponse {} /** * `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 */ export interface Schema$Endpoint { /** * Aliases for this endpoint, these will be served by the same UrlMap as the parent endpoint, and will be provisioned in the GCP stack for the Regional Endpoints. */ aliases?: string[] | null; /** * Allowing [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka cross-domain traffic, would allow the backends served from this endpoint to receive and respond to HTTP OPTIONS requests. The response will be used by the browser to determine whether the subsequent cross-origin request is allowed to proceed. */ allowCors?: boolean | null; /** * The canonical name of this endpoint. */ name?: string | null; /** * The specification of an Internet routable address of API frontend that will handle requests to this [API Endpoint](https://cloud.google.com/apis/design/glossary). It should be either a valid IPv4 address or a fully-qualified domain name. For example, "8.8.8.8" or "myservice.appspot.com". */ target?: string | null; } /** * Enum type definition. */ export interface Schema$Enum { /** * The source edition string, only valid when syntax is SYNTAX_EDITIONS. */ edition?: string | null; /** * Enum value definitions. */ enumvalue?: Schema$EnumValue[]; /** * Enum type name. */ name?: string | null; /** * Protocol buffer options. */ options?: Schema$Option[]; /** * The source context. */ sourceContext?: Schema$SourceContext; /** * The source syntax. */ syntax?: string | null; } /** * Enum value definition. */ export interface Schema$EnumValue { /** * Enum value name. */ name?: string | null; /** * Enum value number. */ number?: number | null; /** * Protocol buffer options. */ options?: Schema$Option[]; } /** * Experimental features to be included during client library generation. These fields will be deprecated once the feature graduates and is enabled by default. */ export interface Schema$ExperimentalFeatures { /** * Enables generation of protobuf code using new types that are more Pythonic which are included in `protobuf\>=5.29.x`. This feature will be enabled by default 1 month after launching the feature in preview packages. */ protobufPythonicTypesEnabled?: boolean | null; /** * Enables generation of asynchronous REST clients if `rest` transport is enabled. By default, asynchronous REST clients will not be generated. This feature will be enabled by default 1 month after launching the feature in preview packages. */ restAsyncIoEnabled?: boolean | null; /** * Disables generation of an unversioned Python package for this client library. This means that the module names will need to be versioned in import statements. For example `import google.cloud.library_v2` instead of `import google.cloud.library`. */ unversionedPackageDisabled?: boolean | null; } /** * 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. */ export interface Sche