Skip to content

Commit

Permalink
Automated DCL import.
Browse files Browse the repository at this point in the history
  - 72e3896a234eab603e817c03753b255814c6c4d6 Automatic import from cloud_mmv2_dcl_20220815_1531_RC00 by DCL Team <[email protected]>

GitOrigin-RevId: 72e3896a234eab603e817c03753b255814c6c4d6
  • Loading branch information
DCL Team authored and copybara-github committed Aug 15, 2022
1 parent c56a8cf commit d8fc3a8
Show file tree
Hide file tree
Showing 40 changed files with 8,496 additions and 1 deletion.
4 changes: 4 additions & 0 deletions python/connector/connector_register.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ import (

cloudbuild_alpha_connector "github.com/GoogleCloudPlatform/declarative-resource-client-library/services/google/cloudbuild/alpha_connector"

cloudbuildv2_alpha_connector "github.com/GoogleCloudPlatform/declarative-resource-client-library/services/google/cloudbuildv2/alpha_connector"

clouddeploy_connector "github.com/GoogleCloudPlatform/declarative-resource-client-library/services/google/clouddeploy/connector"

clouddeploy_beta_connector "github.com/GoogleCloudPlatform/declarative-resource-client-library/services/google/clouddeploy/beta_connector"
Expand Down Expand Up @@ -339,6 +341,8 @@ func InitializeServer(grpcServer *grpc.Server) *connectorpb.InitializeResponse {

cloudbuild_alpha_connector.RegisterServers(grpcServer)

cloudbuildv2_alpha_connector.RegisterServers(grpcServer)

clouddeploy_connector.RegisterServers(grpcServer)

clouddeploy_beta_connector.RegisterServers(grpcServer)
Expand Down
2 changes: 1 addition & 1 deletion python/proto/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ go_proto_library(

load("//:connector_rules.bzl", "python_protos")

python_protos(packages = ["ud/graphite/mmv2/connector","apikeys","apikeys/beta","apikeys/alpha","apigee","apigee/beta","apigee/alpha","assuredworkloads","assuredworkloads/beta","assuredworkloads/alpha","billingbudgets","billingbudgets/beta","billingbudgets/alpha","bigquery","bigquery/beta","bigquery/alpha","bigqueryreservation","bigqueryreservation/beta","bigqueryreservation/alpha","binaryauthorization","binaryauthorization/beta","binaryauthorization/alpha","cloudbuild","cloudbuild/beta","cloudbuild/alpha","clouddeploy","clouddeploy/beta","clouddeploy/alpha","cloudfunctions","cloudfunctions/beta","cloudfunctions/alpha","cloudidentity","cloudidentity/beta","cloudidentity/alpha","cloudkms","cloudkms/beta","cloudkms/alpha","cloudresourcemanager","cloudresourcemanager/beta","cloudresourcemanager/alpha","cloudscheduler","cloudscheduler/beta","cloudscheduler/alpha","compute","compute/beta","compute/alpha","configcontroller/alpha","containeranalysis","containeranalysis/beta","containeranalysis/alpha","containeraws","containeraws/beta","containeraws/alpha","containerazure","containerazure/beta","containerazure/alpha","datafusion/alpha","datafusion/beta","dataplex","dataplex/beta","dataplex/alpha","dataproc","dataproc/beta","dataproc/alpha","dlp","dlp/beta","dlp/alpha","eventarc","eventarc/beta","eventarc/alpha","filestore","filestore/beta","filestore/alpha","firebase/alpha","firebase/beta","firebaserules","firebaserules/beta","firebaserules/alpha","gameservices","gameservices/beta","gameservices/alpha","gkehub/alpha","gkehub/beta","iam","iam/beta","iam/alpha","iap","iap/beta","iap/alpha","identitytoolkit","identitytoolkit/beta","identitytoolkit/alpha","logging","logging/beta","logging/alpha","monitoring","monitoring/beta","monitoring/alpha","networkconnectivity","networkconnectivity/beta","networkconnectivity/alpha","networksecurity/alpha","networksecurity/beta","networkservices/alpha","networkservices/beta","orgpolicy","orgpolicy/beta","orgpolicy/alpha","osconfig","osconfig/beta","osconfig/alpha","pubsub","pubsub/beta","pubsub/alpha","run/alpha","servicemanagement","servicemanagement/beta","servicemanagement/alpha","storage","storage/beta","storage/alpha","privateca","privateca/beta","privateca/alpha","vertexai","vertexai/beta","vertexai/alpha","vmware/alpha","vpcaccess","vpcaccess/beta","vpcaccess/alpha","recaptchaenterprise","recaptchaenterprise/beta","recaptchaenterprise/alpha"])
python_protos(packages = ["ud/graphite/mmv2/connector","apikeys","apikeys/beta","apikeys/alpha","apigee","apigee/beta","apigee/alpha","assuredworkloads","assuredworkloads/beta","assuredworkloads/alpha","billingbudgets","billingbudgets/beta","billingbudgets/alpha","bigquery","bigquery/beta","bigquery/alpha","bigqueryreservation","bigqueryreservation/beta","bigqueryreservation/alpha","binaryauthorization","binaryauthorization/beta","binaryauthorization/alpha","cloudbuild","cloudbuild/beta","cloudbuild/alpha","cloudbuildv2/alpha","clouddeploy","clouddeploy/beta","clouddeploy/alpha","cloudfunctions","cloudfunctions/beta","cloudfunctions/alpha","cloudidentity","cloudidentity/beta","cloudidentity/alpha","cloudkms","cloudkms/beta","cloudkms/alpha","cloudresourcemanager","cloudresourcemanager/beta","cloudresourcemanager/alpha","cloudscheduler","cloudscheduler/beta","cloudscheduler/alpha","compute","compute/beta","compute/alpha","configcontroller/alpha","containeranalysis","containeranalysis/beta","containeranalysis/alpha","containeraws","containeraws/beta","containeraws/alpha","containerazure","containerazure/beta","containerazure/alpha","datafusion/alpha","datafusion/beta","dataplex","dataplex/beta","dataplex/alpha","dataproc","dataproc/beta","dataproc/alpha","dlp","dlp/beta","dlp/alpha","eventarc","eventarc/beta","eventarc/alpha","filestore","filestore/beta","filestore/alpha","firebase/alpha","firebase/beta","firebaserules","firebaserules/beta","firebaserules/alpha","gameservices","gameservices/beta","gameservices/alpha","gkehub/alpha","gkehub/beta","iam","iam/beta","iam/alpha","iap","iap/beta","iap/alpha","identitytoolkit","identitytoolkit/beta","identitytoolkit/alpha","logging","logging/beta","logging/alpha","monitoring","monitoring/beta","monitoring/alpha","networkconnectivity","networkconnectivity/beta","networkconnectivity/alpha","networksecurity/alpha","networksecurity/beta","networkservices/alpha","networkservices/beta","orgpolicy","orgpolicy/beta","orgpolicy/alpha","osconfig","osconfig/beta","osconfig/alpha","pubsub","pubsub/beta","pubsub/alpha","run/alpha","servicemanagement","servicemanagement/beta","servicemanagement/alpha","storage","storage/beta","storage/alpha","privateca","privateca/beta","privateca/alpha","vertexai","vertexai/beta","vertexai/alpha","vmware/alpha","vpcaccess","vpcaccess/beta","vpcaccess/alpha","recaptchaenterprise","recaptchaenterprise/beta","recaptchaenterprise/alpha"])
16 changes: 16 additions & 0 deletions python/proto/cloudbuildv2/alpha/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2022 Google LLC. All Rights Reserved.
#
# 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.

load("//:connector_rules.bzl", "proto_package")
proto_package(name="cloudbuildv2/alpha", resources=["connection","repository"])
112 changes: 112 additions & 0 deletions python/proto/cloudbuildv2/alpha/connection.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
// Copyright 2022 Google LLC. All Rights Reserved.
//
// 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.
syntax = "proto3";
// All generated protos should be opaque, with "xxx_hidden_" prepended to their field names.


package dcl;

import "proto/connector/sdk.proto";
import "proto/empty.proto";


enum Cloudbuildv2AlphaConnectionInstallationStateStageEnum {
Cloudbuildv2AlphaConnectionInstallationStateStageEnumNO_VALUE_DO_NOT_USE = 0;
Cloudbuildv2AlphaConnectionInstallationStateStageEnumSTAGE_UNSPECIFIED = 1;
Cloudbuildv2AlphaConnectionInstallationStateStageEnumPENDING_CREATE_APP = 2;
Cloudbuildv2AlphaConnectionInstallationStateStageEnumPENDING_USER_OAUTH = 3;
Cloudbuildv2AlphaConnectionInstallationStateStageEnumPENDING_INSTALL_APP = 4;
Cloudbuildv2AlphaConnectionInstallationStateStageEnumCOMPLETE = 5;
}

message Cloudbuildv2AlphaConnection {
string name = 1;
string create_time = 2;
string update_time = 3;
Cloudbuildv2AlphaConnectionGithubConfig github_config = 4;
Cloudbuildv2AlphaConnectionGithubEnterpriseConfig github_enterprise_config = 5;
Cloudbuildv2AlphaConnectionInstallationState installation_state = 6;
bool disabled = 7;
bool reconciling = 8;
map<string, string> annotations = 9;
string etag = 10;
string project = 11;
string location = 12;
}

message Cloudbuildv2AlphaConnectionGithubConfig {
Cloudbuildv2AlphaConnectionGithubConfigAuthorizerCredential authorizer_credential = 1;
int64 app_installation_id = 2;
}

message Cloudbuildv2AlphaConnectionGithubConfigAuthorizerCredential {
string oauth_token_secret_version = 1;
string username = 2;
}

message Cloudbuildv2AlphaConnectionGithubEnterpriseConfig {
string host_uri = 1;
int64 app_id = 2;
string app_slug = 3;
string private_key_secret_version = 4;
string webhook_secret_secret_version = 5;
string oauth_secret_secret_version = 6;
string oauth_client_id_secret_version = 7;
Cloudbuildv2AlphaConnectionGithubEnterpriseConfigAuthorizerCredential authorizer_credential = 8;
int64 app_installation_id = 9;
Cloudbuildv2AlphaConnectionGithubEnterpriseConfigServiceDirectoryConfig service_directory_config = 10;
string ssl_ca = 11;
}

message Cloudbuildv2AlphaConnectionGithubEnterpriseConfigAuthorizerCredential {
string oauth_token_secret_version = 1;
string username = 2;
}

message Cloudbuildv2AlphaConnectionGithubEnterpriseConfigServiceDirectoryConfig {
string service = 1;
}

message Cloudbuildv2AlphaConnectionInstallationState {
Cloudbuildv2AlphaConnectionInstallationStateStageEnum stage = 1;
string message = 2;
string action_uri = 3;
}

message ApplyCloudbuildv2AlphaConnectionRequest {
Cloudbuildv2AlphaConnection resource = 1;
repeated LifecycleDirective lifecycle_directives = 2;
string service_account_file = 3;
}

message DeleteCloudbuildv2AlphaConnectionRequest {
string service_account_file = 1;
Cloudbuildv2AlphaConnection resource = 2;
}

message ListCloudbuildv2AlphaConnectionRequest {
string service_account_file = 1;
string Project = 2;
string Location = 3;
}

message ListCloudbuildv2AlphaConnectionResponse {
repeated Cloudbuildv2AlphaConnection items = 1;
}

service Cloudbuildv2AlphaConnectionService {
rpc ApplyCloudbuildv2AlphaConnection(ApplyCloudbuildv2AlphaConnectionRequest) returns (Cloudbuildv2AlphaConnection);
rpc DeleteCloudbuildv2AlphaConnection(DeleteCloudbuildv2AlphaConnectionRequest) returns (google.protobuf.Empty);
rpc ListCloudbuildv2AlphaConnection(ListCloudbuildv2AlphaConnectionRequest) returns (ListCloudbuildv2AlphaConnectionResponse);
}
62 changes: 62 additions & 0 deletions python/proto/cloudbuildv2/alpha/repository.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
// Copyright 2022 Google LLC. All Rights Reserved.
//
// 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.
syntax = "proto3";
// All generated protos should be opaque, with "xxx_hidden_" prepended to their field names.


package dcl;

import "proto/connector/sdk.proto";
import "proto/empty.proto";


message Cloudbuildv2AlphaRepository {
string name = 1;
string remote_uri = 2;
string create_time = 3;
string update_time = 4;
map<string, string> annotations = 5;
string etag = 6;
string project = 7;
string location = 8;
string connection = 9;
}

message ApplyCloudbuildv2AlphaRepositoryRequest {
Cloudbuildv2AlphaRepository resource = 1;
repeated LifecycleDirective lifecycle_directives = 2;
string service_account_file = 3;
}

message DeleteCloudbuildv2AlphaRepositoryRequest {
string service_account_file = 1;
Cloudbuildv2AlphaRepository resource = 2;
}

message ListCloudbuildv2AlphaRepositoryRequest {
string service_account_file = 1;
string Project = 2;
string Location = 3;
string Connection = 4;
}

message ListCloudbuildv2AlphaRepositoryResponse {
repeated Cloudbuildv2AlphaRepository items = 1;
}

service Cloudbuildv2AlphaRepositoryService {
rpc ApplyCloudbuildv2AlphaRepository(ApplyCloudbuildv2AlphaRepositoryRequest) returns (Cloudbuildv2AlphaRepository);
rpc DeleteCloudbuildv2AlphaRepository(DeleteCloudbuildv2AlphaRepositoryRequest) returns (google.protobuf.Empty);
rpc ListCloudbuildv2AlphaRepository(ListCloudbuildv2AlphaRepositoryRequest) returns (ListCloudbuildv2AlphaRepositoryResponse);
}
16 changes: 16 additions & 0 deletions python/services/cloudbuildv2/alpha/BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2022 Google LLC. All Rights Reserved.
#
# 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.

load("//:connector_rules.bzl", "connector")
connector(name="cloudbuildv2/alpha", resources=["connection","repository"])
Loading

0 comments on commit d8fc3a8

Please sign in to comment.