Skip to content

Commit

Permalink
feat: add psc_automation_configs to DeployIndex v1
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 680742448

Source-Link: googleapis/googleapis@ce31830

Source-Link: googleapis/googleapis-gen@5254135
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWFpcGxhdGZvcm0vLk93bEJvdC55YW1sIiwiaCI6IjUyNTQxMzVjZDkwODlmMzVjOWY1MzdhYmE1NjdkZDI5YWNjZTU0MTMifQ==
  • Loading branch information
gcf-owl-bot[bot] committed Oct 1, 2024
1 parent 32dd716 commit a9dadcc
Show file tree
Hide file tree
Showing 5 changed files with 429 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,12 @@ message DeployedIndex {
//
// Note: we only support up to 5 deployment groups(not including 'default').
string deployment_group = 11 [(google.api.field_behavior) = OPTIONAL];

// Optional. If set for PSC deployed index, PSC connection will be
// automatically created after deployment is done and the endpoint information
// is populated in private_endpoints.psc_automated_endpoints.
repeated PSCAutomationConfig psc_automation_configs = 19
[(google.api.field_behavior) = OPTIONAL];
}

// Used to set up the auth on the DeployedIndex's private endpoint.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,21 @@ option (google.api.resource_definition) = {
pattern: "projects/{project}/regions/{region}/networkAttachments/{networkattachment}"
};

// PSC config that is used to automatically create forwarding rule via
// ServiceConnectionMap.
message PSCAutomationConfig {
// Required. Project id used to create forwarding rule.
string project_id = 1 [(google.api.field_behavior) = REQUIRED];

// Required. The full name of the Google Compute Engine
// [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks).
// [Format](https://cloud.google.com/compute/docs/reference/rest/v1/networks/insert):
// `projects/{project}/global/networks/{network}`.
// Where {project} is a project number, as in '12345', and {network} is
// network name.
string network = 2 [(google.api.field_behavior) = REQUIRED];
}

// Represents configuration for private service connect.
message PrivateServiceConnectConfig {
// Required. If true, expose the IndexEndpoint via private service connect.
Expand Down
109 changes: 109 additions & 0 deletions owl-bot-staging/google-cloud-aiplatform/v1/protos/protos.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21721,6 +21721,109 @@ export namespace google {
public static getTypeUrl(typeUrlPrefix?: string): string;
}

/** Properties of a PSCAutomationConfig. */
interface IPSCAutomationConfig {

/** PSCAutomationConfig projectId */
projectId?: (string|null);

/** PSCAutomationConfig network */
network?: (string|null);
}

/** Represents a PSCAutomationConfig. */
class PSCAutomationConfig implements IPSCAutomationConfig {

/**
* Constructs a new PSCAutomationConfig.
* @param [properties] Properties to set
*/
constructor(properties?: google.cloud.aiplatform.v1.IPSCAutomationConfig);

/** PSCAutomationConfig projectId. */
public projectId: string;

/** PSCAutomationConfig network. */
public network: string;

/**
* Creates a new PSCAutomationConfig instance using the specified properties.
* @param [properties] Properties to set
* @returns PSCAutomationConfig instance
*/
public static create(properties?: google.cloud.aiplatform.v1.IPSCAutomationConfig): google.cloud.aiplatform.v1.PSCAutomationConfig;

/**
* Encodes the specified PSCAutomationConfig message. Does not implicitly {@link google.cloud.aiplatform.v1.PSCAutomationConfig.verify|verify} messages.
* @param message PSCAutomationConfig message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.cloud.aiplatform.v1.IPSCAutomationConfig, writer?: $protobuf.Writer): $protobuf.Writer;

/**
* Encodes the specified PSCAutomationConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.PSCAutomationConfig.verify|verify} messages.
* @param message PSCAutomationConfig message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.cloud.aiplatform.v1.IPSCAutomationConfig, writer?: $protobuf.Writer): $protobuf.Writer;

/**
* Decodes a PSCAutomationConfig message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns PSCAutomationConfig
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.PSCAutomationConfig;

/**
* Decodes a PSCAutomationConfig message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns PSCAutomationConfig
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.PSCAutomationConfig;

/**
* Verifies a PSCAutomationConfig message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);

/**
* Creates a PSCAutomationConfig message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns PSCAutomationConfig
*/
public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.PSCAutomationConfig;

/**
* Creates a plain object from a PSCAutomationConfig message. Also converts values to other types if specified.
* @param message PSCAutomationConfig
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.cloud.aiplatform.v1.PSCAutomationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };

/**
* Converts this PSCAutomationConfig to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };

/**
* Gets the default type url for PSCAutomationConfig
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}

/** Properties of a PrivateServiceConnectConfig. */
interface IPrivateServiceConnectConfig {

Expand Down Expand Up @@ -59007,6 +59110,9 @@ export namespace google {

/** DeployedIndex deploymentGroup */
deploymentGroup?: (string|null);

/** DeployedIndex pscAutomationConfigs */
pscAutomationConfigs?: (google.cloud.aiplatform.v1.IPSCAutomationConfig[]|null);
}

/** Represents a DeployedIndex. */
Expand Down Expand Up @@ -59054,6 +59160,9 @@ export namespace google {
/** DeployedIndex deploymentGroup. */
public deploymentGroup: string;

/** DeployedIndex pscAutomationConfigs. */
public pscAutomationConfigs: google.cloud.aiplatform.v1.IPSCAutomationConfig[];

/**
* Creates a new DeployedIndex instance using the specified properties.
* @param [properties] Properties to set
Expand Down
Loading

0 comments on commit a9dadcc

Please sign in to comment.