UNPKG

googleapis

Version:
930 lines (929 loc) 225 kB
/// <reference types="node" /> import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common'; import { Readable } from 'stream'; export declare namespace networkconnectivity_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; } /** * Network Connectivity API * * This API enables connectivity with and between Google Cloud resources. * * @example * ```js * const {google} = require('googleapis'); * const networkconnectivity = google.networkconnectivity('v1'); * ``` */ export class Networkconnectivity { context: APIRequestContext; projects: Resource$Projects; constructor(options: GlobalOptions, google?: GoogleConfigurable); } /** * The request for HubService.AcceptSpoke. */ export interface Schema$AcceptSpokeRequest { /** * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID, with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ requestId?: string | 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; } /** * 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`. * `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. */ members?: string[] | null; /** * Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. */ role?: string | null; } /** * Allow the producer to specify which consumers can connect to it. */ export interface Schema$ConsumerPscConfig { /** * This is used in PSC consumer ForwardingRule to control whether the PSC endpoint can be accessed from another region. */ disableGlobalAccess?: boolean | null; /** * The resource path of the consumer network where PSC connections are allowed to be created in. Note, this network does not need be in the ConsumerPscConfig.project in the case of SharedVPC. Example: projects/{projectNumOrId\}/global/networks/{networkId\}. */ network?: string | null; /** * The consumer project where PSC connections are allowed to be created in. */ project?: string | null; /** * Output only. Overall state of PSC Connections management for this consumer psc config. */ state?: string | null; } /** * PSC connection details on consumer side. */ export interface Schema$ConsumerPscConnection { /** * The most recent error during operating this connection. */ error?: Schema$GoogleRpcStatus; /** * Output only. The error info for the latest error during operating this connection. */ errorInfo?: Schema$GoogleRpcErrorInfo; /** * The error type indicates whether the error is consumer facing, producer facing or system internal. */ errorType?: string | null; /** * The URI of the consumer forwarding rule created. Example: projects/{projectNumOrId\}/regions/us-east1/networks/{resourceId\}. */ forwardingRule?: string | null; /** * The last Compute Engine operation to setup PSC connection. */ gceOperation?: string | null; /** * The IP literal allocated on the consumer network for the PSC forwarding rule that is created to connect to the producer service attachment in this service connection map. */ ip?: string | null; /** * The consumer network whose PSC forwarding rule is connected to the service attachments in this service connection map. Note that the network could be on a different project (shared VPC). */ network?: string | null; /** * The consumer project whose PSC forwarding rule is connected to the service attachments in this service connection map. */ project?: string | null; /** * The PSC connection id of the PSC forwarding rule connected to the service attachments in this service connection map. */ pscConnectionId?: string | null; /** * The URI of a service attachment which is the target of the PSC connection. */ serviceAttachmentUri?: string | null; /** * The state of the PSC connection. */ state?: string | null; } /** * A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \} */ export interface Schema$Empty { } /** * 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 Schema$Expr { /** * Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. */ description?: string | null; /** * Textual representation of an expression in Common Expression Language syntax. */ expression?: string | null; /** * Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. */ location?: string | null; /** * Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. */ title?: string | null; } /** * The request message for Operations.CancelOperation. */ export interface Schema$GoogleLongrunningCancelOperationRequest { } /** * The response message for Operations.ListOperations. */ export interface Schema$GoogleLongrunningListOperationsResponse { /** * The standard List next-page token. */ nextPageToken?: string | null; /** * A list of operations that matches the specified filter in the request. */ operations?: Schema$GoogleLongrunningOperation[]; } /** * This resource represents a long-running operation that is the result of a network API call. */ export interface Schema$GoogleLongrunningOperation { /** * If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */ done?: boolean | null; /** * The error result of the operation in case of failure or cancellation. */ error?: Schema$GoogleRpcStatus; /** * Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. */ metadata?: { [key: string]: any; } | null; /** * The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id\}`. */ name?: string | null; /** * The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. */ response?: { [key: string]: any; } | null; } /** * Describes the cause of the error with structured details. Example of an error when contacting the "pubsub.googleapis.com" API when it is not enabled: { "reason": "API_DISABLED" "domain": "googleapis.com" "metadata": { "resource": "projects/123", "service": "pubsub.googleapis.com" \} \} This response indicates that the pubsub.googleapis.com API is not enabled. Example of an error that is returned when attempting to create a Spanner instance in a region that is out of stock: { "reason": "STOCKOUT" "domain": "spanner.googleapis.com", "metadata": { "availableRegions": "us-central1,us-east2" \} \} */ export interface Schema$GoogleRpcErrorInfo { /** * The logical grouping to which the "reason" belongs. The error domain is typically the registered service name of the tool or product that generates the error. Example: "pubsub.googleapis.com". If the error is generated by some common infrastructure, the error domain must be a globally unique value that identifies the infrastructure. For Google API infrastructure, the error domain is "googleapis.com". */ domain?: string | null; /** * Additional structured details about this error. Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in length. When identifying the current value of an exceeded limit, the units should be contained in the key, not the value. For example, rather than {"instanceLimit": "100/request"\}, should be returned as, {"instanceLimitPerRequest": "100"\}, if the client exceeds the number of instances that can be created in a single (batch) request. */ metadata?: { [key: string]: string; } | null; /** * The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 characters and match a regular expression of `A-Z+[A-Z0-9]`, which represents UPPER_SNAKE_CASE. */ reason?: string | null; } /** * The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). */ export interface Schema$GoogleRpcStatus { /** * The status code, which should be an enum value of google.rpc.Code. */ code?: number | null; /** * A list of messages that carry the error details. There is a common set of message types for APIs to use. */ details?: Array<{ [key: string]: any; }> | null; /** * A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. */ message?: string | null; } /** * A group is a set of spokes to which you can apply policies. Each group of spokes has its own route table. For each group, you can also set different rules for whether spokes can be automatically attached to the hub. */ export interface Schema$Group { /** * Output only. The time the group was created. */ createTime?: string | null; /** * Optional. The description of the group. */ description?: string | null; /** * Optional. Labels in key:value format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements). */ labels?: { [key: string]: string; } | null; /** * Immutable. The name of the group. Group names must be unique. They use the following form: `projects/{project_number\}/locations/global/hubs/{hub\}/groups/{group_id\}` */ name?: string | null; /** * Output only. The current lifecycle state of this group. */ state?: string | null; /** * Output only. The Google-generated UUID for the group. This value is unique across all group resources. If a group is deleted and another with the same name is created, the new route table is assigned a different unique_id. */ uid?: string | null; /** * Output only. The time the group was last updated. */ updateTime?: string | null; } /** * A Network Connectivity Center hub is a global management resource to which you attach spokes. A single hub can contain spokes from multiple regions. However, if any of a hub's spokes use the site-to-site data transfer feature, the resources associated with those spokes must all be in the same VPC network. Spokes that do not use site-to-site data transfer can be associated with any VPC network in your project. */ export interface Schema$Hub { /** * Output only. The time the hub was created. */ createTime?: string | null; /** * An optional description of the hub. */ description?: string | null; /** * Optional labels in key:value format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements). */ labels?: { [key: string]: string; } | null; /** * Immutable. The name of the hub. Hub names must be unique. They use the following form: `projects/{project_number\}/locations/global/hubs/{hub_id\}` */ name?: string | null; /** * Output only. The route tables that belong to this hub. They use the following form: `projects/{project_number\}/locations/global/hubs/{hub_id\}/routeTables/{route_table_id\}` This field is read-only. Network Connectivity Center automatically populates it based on the route tables nested under the hub. */ routeTables?: string[] | null; /** * The VPC networks associated with this hub's spokes. This field is read-only. Network Connectivity Center automatically populates it based on the set of spokes attached to the hub. */ routingVpcs?: Schema$RoutingVPC[]; /** * Output only. A summary of the spokes associated with a hub. The summary includes a count of spokes according to type and according to state. If any spokes are inactive, the summary also lists the reasons they are inactive, including a count for each reason. */ spokeSummary?: Schema$SpokeSummary; /** * Output only. The current lifecycle state of this hub. */ state?: string | null; /** * Output only. The Google-generated UUID for the hub. This value is unique across all hub resources. If a hub is deleted and another with the same name is created, the new hub is assigned a different unique_id. */ uniqueId?: string | null; /** * Output only. The time the hub was last updated. */ updateTime?: string | null; } /** * The internal range resource for IPAM operations within a VPC network. Used to represent a private address range along with behavioral characterstics of that range (its usage and peering behavior). Networking resources can link to this range if they are created as belonging to it. */ export interface Schema$InternalRange { /** * Time when the internal range was created. */ createTime?: string | null; /** * A description of this resource. */ description?: string | null; /** * The IP range that this internal range defines. */ ipCidrRange?: string | null; /** * User-defined labels. */ labels?: { [key: string]: string; } | null; /** * Immutable. The name of an internal range. Format: projects/{project\}/locations/{location\}/internalRanges/{internal_range\} See: https://google.aip.dev/122#fields-representing-resource-names */ name?: string | null; /** * The URL or resource ID of the network in which to reserve the internal range. The network cannot be deleted if there are any reserved internal ranges referring to it. Legacy networks are not supported. This can only be specified for a global internal address. Example: - URL: /compute/v1/projects/{project\}/global/networks/{resourceId\} - ID: network123 */ network?: string | null; /** * Optional. Types of resources that are allowed to overlap with the current internal range. */ overlaps?: string[] | null; /** * The type of peering set for this internal range. */ peering?: string | null; /** * An alternate to ip_cidr_range. Can be set when trying to create a reservation that automatically finds a free range of the given size. If both ip_cidr_range and prefix_length are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size. */ prefixLength?: number | null; /** * Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the "10.0.0.0/8" address space. This can be used to search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC. */ targetCidrRange?: string[] | null; /** * Time when the internal range was updated. */ updateTime?: string | null; /** * The type of usage set for this InternalRange. */ usage?: string | null; /** * Output only. The list of resources that refer to this internal range. Resources that use the internal range for their range allocation are referred to as users of the range. Other resources mark themselves as users while doing so by creating a reference to this internal range. Having a user, based on this reference, prevents deletion of the internal range referred to. Can be empty. */ users?: string[] | null; } /** * A collection of VLAN attachment resources. These resources should be redundant attachments that all advertise the same prefixes to Google Cloud. Alternatively, in active/passive configurations, all attachments should be capable of advertising the same prefixes. */ export interface Schema$LinkedInterconnectAttachments { /** * A value that controls whether site-to-site data transfer is enabled for these resources. Data transfer is available only in [supported locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations). */ siteToSiteDataTransfer?: boolean | null; /** * The URIs of linked interconnect attachment resources */ uris?: string[] | null; /** * Output only. The VPC network where these VLAN attachments are located. */ vpcNetwork?: string | null; } /** * A collection of router appliance instances. If you configure multiple router appliance instances to receive data from the same set of sites outside of Google Cloud, we recommend that you associate those instances with the same spoke. */ export interface Schema$LinkedRouterApplianceInstances { /** * The list of router appliance instances. */ instances?: Schema$RouterApplianceInstance[]; /** * A value that controls whether site-to-site data transfer is enabled for these resources. Data transfer is available only in [supported locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations). */ siteToSiteDataTransfer?: boolean | null; /** * Output only. The VPC network where these router appliance instances are located. */ vpcNetwork?: string | null; } /** * An existing VPC network. */ export interface Schema$LinkedVpcNetwork { /** * Optional. IP ranges encompassing the subnets to be excluded from peering. */ excludeExportRanges?: string[] | null; /** * Required. The URI of the VPC network resource. */ uri?: string | null; } /** * A collection of Cloud VPN tunnel resources. These resources should be redundant HA VPN tunnels that all advertise the same prefixes to Google Cloud. Alternatively, in a passive/active configuration, all tunnels should be capable of advertising the same prefixes. */ export interface Schema$LinkedVpnTunnels { /** * A value that controls whether site-to-site data transfer is enabled for these resources. Data transfer is available only in [supported locations](https://cloud.google.com/network-connectivity/docs/network-connectivity-center/concepts/locations). */ siteToSiteDataTransfer?: boolean | null; /** * The URIs of linked VPN tunnel resources. */ uris?: string[] | null; /** * Output only. The VPC network where these VPN tunnels are located. */ vpcNetwork?: string | null; } /** * Response for HubService.ListGroups method. */ export interface Schema$ListGroupsResponse { /** * The requested groups. */ groups?: Schema$Group[]; /** * The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results. */ nextPageToken?: string | null; /** * Hubs that could not be reached. */ unreachable?: string[] | null; } /** * The response for HubService.ListHubSpokes. */ export interface Schema$ListHubSpokesResponse { /** * The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results. */ nextPageToken?: string | null; /** * The requested spokes. The spoke fields can be partially populated based on the `view` field in the request message. */ spokes?: Schema$Spoke[]; /** * Locations that could not be reached. */ unreachable?: string[] | null; } /** * Response for HubService.ListHubs method. */ export interface Schema$ListHubsResponse { /** * The requested hubs. */ hubs?: Schema$Hub[]; /** * The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results. */ nextPageToken?: string | null; /** * Locations that could not be reached. */ unreachable?: string[] | null; } /** * Response for InternalRange.ListInternalRanges */ export interface Schema$ListInternalRangesResponse { /** * Internal ranges to be returned. */ internalRanges?: Schema$InternalRange[]; /** * The next pagination token in the List response. It should be used as page_token for the following request. An empty value means no more result. */ nextPageToken?: string | null; /** * Locations that could not be reached. */ unreachable?: string[] | null; } /** * The response message for Locations.ListLocations. */ export interface Schema$ListLocationsResponse { /** * A list of locations that matches the specified filter in the request. */ locations?: Schema$Location[]; /** * The standard List next-page token. */ nextPageToken?: string | null; } /** * Response for HubService.ListRoutes method. */ export interface Schema$ListRoutesResponse { /** * The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results. */ nextPageToken?: string | null; /** * The requested routes. */ routes?: Schema$Route[]; /** * RouteTables that could not be reached. */ unreachable?: string[] | null; } /** * Response for HubService.ListRouteTables method. */ export interface Schema$ListRouteTablesResponse { /** * The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results. */ nextPageToken?: string | null; /** * The requested route tables. */ routeTables?: Schema$RouteTable[]; /** * Hubs that could not be reached. */ unreachable?: string[] | null; } /** * Response for ListServiceClasses. */ export interface Schema$ListServiceClassesResponse { /** * The next pagination token in the List response. It should be used as page_token for the following request. An empty value means no more result. */ nextPageToken?: string | null; /** * ServiceClasses to be returned. */ serviceClasses?: Schema$ServiceClass[]; /** * Locations that could not be reached. */ unreachable?: string[] | null; } /** * Response for ListServiceConnectionMaps. */ export interface Schema$ListServiceConnectionMapsResponse { /** * The next pagination token in the List response. It should be used as page_token for the following request. An empty value means no more result. */ nextPageToken?: string | null; /** * ServiceConnectionMaps to be returned. */ serviceConnectionMaps?: Schema$ServiceConnectionMap[]; /** * Locations that could not be reached. */ unreachable?: string[] | null; } /** * Response for ListServiceConnectionPolicies. */ export interface Schema$ListServiceConnectionPoliciesResponse { /** * The next pagination token in the List response. It should be used as page_token for the following request. An empty value means no more result. */ nextPageToken?: string | null; /** * ServiceConnectionPolicies to be returned. */ serviceConnectionPolicies?: Schema$ServiceConnectionPolicy[]; /** * Locations that could not be reached. */ unreachable?: string[] | null; } /** * Response for ListServiceConnectionTokens. */ export interface Schema$ListServiceConnectionTokensResponse { /** * The next pagination token in the List response. It should be used as page_token for the following request. An empty value means no more result. */ nextPageToken?: string | null; /** * ServiceConnectionTokens to be returned. */ serviceConnectionTokens?: Schema$ServiceConnectionToken[]; /** * Locations that could not be reached. */ unreachable?: string[] | null; } /** * The response for HubService.ListSpokes. */ export interface Schema$ListSpokesResponse { /** * The token for the next page of the response. To see more results, use this value as the page_token for your next request. If this value is empty, there are no more results. */ nextPageToken?: string | null; /** * The requested spokes. */ spokes?: Schema$Spoke[]; /** * Locations that could not be reached. */ unreachable?: string[] | null; } /** * A resource that represents a Google Cloud location. */ export interface Schema$Location { /** * The friendly name for this location, typically a nearby city name. For example, "Tokyo". */ displayName?: string | null; /** * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"\} */ labels?: { [key: string]: string; } | null; /** * The canonical id for this location. For example: `"us-east1"`. */ locationId?: string | null; /** * Service-specific metadata. For example the available capacity at the given location. */ metadata?: { [key: string]: any; } | null; /** * Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"` */ name?: string | null; } /** * Metadata about locations */ export interface Schema$LocationMetadata { /** * List of supported features */ locationFeatures?: string[] | null; } export interface Schema$NextHopVpcNetwork { /** * The URI of the VPC network resource */ uri?: string | null; } /** * Represents the metadata of the long-running operation. */ export interface Schema$OperationMetadata { /** * Output only. API version used to start the operation. */ apiVersion?: string | null; /** * Output only. The time the operation was created. */ createTime?: string | null; /** * Output only. The time the operation finished running. */ endTime?: string | null; /** * Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have Operation.error value with a google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`. */ requestedCancellation?: boolean | null; /** * Output only. Human-readable status of the operation, if any. */ statusMessage?: string | null; /** * Output only. Server-defined resource path for the target of the operation. */ target?: string | null; /** * Output only. Name of the verb executed by the operation. */ verb?: string | null; } /** * An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] \}, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", \} \} ], "etag": "BwWWja0YfJA=", "version": 3 \} **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). */ export interface Schema$Policy { /** * Specifies cloud audit logging configuration for this policy. */ auditConfigs?: Schema$AuditConfig[]; /** * Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`. */ bindings?: Schema$Binding[]; /** * `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. */ etag?: string | null; /** * Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). */ version?: number | null; } /** * The PSC configurations on producer side. */ export interface Schema$ProducerPscConfig { /** * The resource path of a service attachment. Example: projects/{projectNumOrId\}/regions/{region\}/serviceAttachments/{resourceId\}. */ serviceAttachmentUri?: string | null; } /** * Configuration used for Private Service Connect connections. Used when Infrastructure is PSC. */ export interface Schema$PscConfig { /** * Optional. Max number of PSC connections for this policy. */ limit?: string | null; /** * The resource paths of subnetworks to use for IP address management. Example: projects/{projectNumOrId\}/regions/{region\}/subnetworks/{resourceId\}. */ subnetworks?: string[] | null; } /** * Information about a specific Private Service Connect connection. */ export interface Schema$PscConnection { /** * The resource reference of the consumer address. */ consumerAddress?: string | null; /** * The resource reference of the PSC Forwarding Rule within the consumer VPC. */ consumerForwardingRule?: string | null; /** * The project where the PSC connection is created. */ consumerTargetProject?: string | null; /** * The most recent error during operating this connection. */ error?: Schema$GoogleRpcStatus; /** * Output only. The error info for the latest error during operating this connection. */ errorInfo?: Schema$GoogleRpcErrorInfo; /** * The error type indicates whether the error is consumer facing, producer facing or system internal. */ errorType?: string | null; /** * The last Compute Engine operation to setup PSC connection. */ gceOperation?: string | null; /** * The PSC connection id of the PSC forwarding rule. */ pscConnectionId?: string | null; /** * State of the PSC Connection */ state?: string | null; } /** * The request for HubService.RejectSpoke. */ export interface Schema$RejectSpokeRequest { /** * Optional. Additional information provided by the hub administrator in the `RejectSpoke` call. */ details?: string | null; /** * Optional. A request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server guarantees that a request doesn't result in creation of duplicate commitments for at least 60 minutes. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check to see whether the original operation was received. If it was, the server ignores the second request. This behavior prevents clients from mistakenly creating duplicate commitments. The request ID must be a valid UUID, with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). */ requestId?: string | null; } /** * A route defines a path from VM instances within a spoke to a specific destination resource. Only VPC spokes have routes. */ export interface Schema$Route { /** * Output only. The time the route was created. */ createTime?: string | null; /** * An optional description of the route. */ description?: string | null; /** * The destination IP address range. */ ipCidrRange?: string | null; /** * Optional labels in key:value format. For more information about labels, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements). */ labels?: { [key: string]: string; } | null; /** * Output only. The location of the route. Uses the following form: "projects/{project\}/locations/{location\}" Example: projects/1234/locations/us-central1 */ location?: string | null; /** * Immutable. The name of the route. Route names must be unique. Route names use the following form: `projects/{project_number\}/locations/global/hubs/{hub\}/routeTables/{route_table_id\}/routes/{route_id\}` */ name?: string | null; /** * Immutable. The destination VPC network for packets on this route. */ nextHopVpcNetwork?: Schema$NextHopVpcNetwork; /** * Immutable. The spoke that this route leads to. Example: projects/12345/locations/global/spokes/SPOKE */ spoke?: string | null; /** * Output only. The current lifecycle state of the route. */ state?: string | null; /** * Output only. The route's type. Its type is determined by the properties of its IP address range.