Skip to content

Commit

Permalink
Simplify service name to Gemini, add Acc tests and .teamcity, modif…
Browse files Browse the repository at this point in the history
…y timeouts
  • Loading branch information
JumiDeluxe committed Oct 29, 2024
1 parent 67544d1 commit 23487f1
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 13 deletions.
8 changes: 4 additions & 4 deletions mmv1/products/cloudaicompanion/CodeRepositoryIndex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ id_format: projects/{{project}}/locations/{{location}}/codeRepositoryIndexes/{{c
import_format:
- projects/{{project}}/locations/{{location}}/codeRepositoryIndexes/{{code_repository_index_id}}
examples:
- name: "geminifor_google_cloud_code_repository_index_basic"
- name: "gemini_code_repository_index_basic"
primary_resource_id: "example"
vars:
cri_id: "example-coderepositoryindex-id"
autogen_async: true
async:
operation:
timeouts:
insert_minutes: 20
update_minutes: 20
delete_minutes: 20
insert_minutes: 90
update_minutes: 90
delete_minutes: 90
path: name
base_url: '{{op_id}}'
wait_ms: 1000
Expand Down
8 changes: 4 additions & 4 deletions mmv1/products/cloudaicompanion/RepositoryGroup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ id_format: projects/{{project}}/locations/{{location}}/codeRepositoryIndexes/{{c
import_format:
- projects/{{project}}/locations/{{location}}/codeRepositoryIndexes/{{coderepositoryindex}}/repositoryGroups/{{repository_group_id}}
examples:
- name: "geminifor_google_cloud_repository_group_basic"
- name: "gemini_repository_group_basic"
primary_resource_id: "example"
vars:
repository_resource: "projects/example-location/locations/us-central1/connections/example-connection/gitRepositoryLinks/example-repo"
Expand All @@ -31,9 +31,9 @@ autogen_async: true
async:
operation:
timeouts:
insert_minutes: 20
update_minutes: 20
delete_minutes: 20
insert_minutes: 30
update_minutes: 30
delete_minutes: 30
path: name
base_url: '{{op_id}}'
wait_ms: 1000
Expand Down
2 changes: 1 addition & 1 deletion mmv1/products/cloudaicompanion/product.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# limitations under the License.

---
name: GeminiforGoogleCloud
name: Gemini
display_name: Gemini for Google Cloud
scopes:
- https://www.googleapis.com/auth/cloud-platform
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resource "google_geminifor_google_cloud_code_repository_index" "example_cri" {
resource "google_gemini_code_repository_index" "example_cri" {
location = "us-central1"
code_repository_index_id = "{{index $.Vars "cri_id"}}"
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
resource "google_geminifor_google_cloud_repository_group" "example_repository_group" {
resource "google_gemini_repository_group" "example_repository_group" {
location = "us-central1"
coderepositoryindex = google_geminifor_google_cloud_code_repository_index.example_cri.code_repository_index_id
coderepositoryindex = google_gemini_code_repository_index.example_cri.code_repository_index_id
repository_group_id = "{{index $.Vars "repository_group_id"}}"
repositories {
resource = "{{index $.Vars "repository_resource"}}"
branch_pattern = "main"
}
}

resource "google_geminifor_google_cloud_code_repository_index" "example_cri" {
resource "google_gemini_code_repository_index" "example_cri" {
code_repository_index_id = "{{index $.Vars "cri_id"}}"
location = "us-central1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ var ServicesListBeta = mapOf(
"displayName" to "Certificatemanager",
"path" to "./google-beta/services/certificatemanager"
),
"cloudaicompanion" to mapOf(
"name" to "cloudaicompanion",
"displayName" to "Cloudaicompanion",
"path" to "./google-beta/services/cloudaicompanion"
),
"cloudasset" to mapOf(
"name" to "cloudasset",
"displayName" to "Cloudasset",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ var ServicesListGa = mapOf(
"displayName" to "Certificatemanager",
"path" to "./google/services/certificatemanager"
),
"cloudaicompanion" to mapOf(
"name" to "cloudaicompanion",
"displayName" to "Cloudaicompanion",
"path" to "./google/services/cloudaicompanion"
),
"cloudasset" to mapOf(
"name" to "cloudasset",
"displayName" to "Cloudasset",
Expand Down

0 comments on commit 23487f1

Please sign in to comment.