-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address Polaris GCP API changes (#87)
- Loading branch information
1 parent
758c5f0
commit 2c4bf02
Showing
13 changed files
with
141 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
19 changes: 9 additions & 10 deletions
19
pkg/polaris/graphql/gcp/queries/gcp_cloud_account_add_manual_auth_project.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
mutation RubrikPolarisSDKRequest($feature: CloudAccountFeature!, $gcpNativeProjectId: String!, $gcpProjectName: String!, $gcpProjectNumber: Long!, $organizationName: String, $serviceAccountJwtConfigOptional: String) | ||
{ | ||
gcpCloudAccountAddManualAuthProject( | ||
features: [$feature], | ||
gcpNativeProjectId: $gcpNativeProjectId, | ||
gcpProjectName: $gcpProjectName, | ||
gcpProjectNumber: $gcpProjectNumber, | ||
organizationName: $organizationName, | ||
serviceAccountJwtConfigOptional: $serviceAccountJwtConfigOptional, | ||
) | ||
mutation RubrikPolarisSDKRequest($gcpNativeProjectId: String!, $gcpProjectName: String!, $gcpProjectNumber: Long!, $organizationName: String, $serviceAccountJwtConfig: String, $feature: CloudAccountFeature!) { | ||
gcpCloudAccountAddManualAuthProject(input: { | ||
gcpNativeProjectId: $gcpNativeProjectId, | ||
gcpProjectName: $gcpProjectName, | ||
gcpProjectNumber: $gcpProjectNumber, | ||
organizationName: $organizationName, | ||
serviceAccountJwtConfig: $serviceAccountJwtConfig, | ||
features: [$feature], | ||
}) | ||
} |
3 changes: 1 addition & 2 deletions
3
pkg/polaris/graphql/gcp/queries/gcp_cloud_account_add_manual_auth_project_v0.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
pkg/polaris/graphql/gcp/queries/gcp_cloud_account_add_manual_auth_project_v1.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
mutation RubrikPolarisSDKRequest($feature: CloudAccountFeature!, $gcpNativeProjectId: String!, $gcpProjectName: String!, $gcpProjectNumber: Long!, $organizationName: String, $serviceAccountJwtConfigOptional: String) { | ||
gcpCloudAccountAddManualAuthProject( | ||
features: [$feature], | ||
gcpNativeProjectId: $gcpNativeProjectId, | ||
gcpProjectName: $gcpProjectName, | ||
gcpProjectNumber: $gcpProjectNumber, | ||
organizationName: $organizationName, | ||
serviceAccountJwtConfigOptional: $serviceAccountJwtConfigOptional, | ||
) | ||
} |
9 changes: 7 additions & 2 deletions
9
pkg/polaris/graphql/gcp/queries/gcp_cloud_account_delete_projects.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
pkg/polaris/graphql/gcp/queries/gcp_cloud_account_delete_projects_v0.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
mutation RubrikPolarisSDKRequest($nativeProtectionProjectUuids: [UUID!]!) { | ||
gcpCloudAccountDeleteProjects(nativeProtectionProjectUuids: $nativeProtectionProjectUuids, sharedVpcHostProjectUuids: [], cloudAccountsProjectUuids: [], skipResourceDeletion: true) { | ||
projectUuid | ||
success | ||
error | ||
} | ||
} |
6 changes: 5 additions & 1 deletion
6
pkg/polaris/graphql/gcp/queries/gcp_native_disable_project.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
mutation RubrikPolarisSDKRequest($projectId: UUID!, $shouldDeleteNativeSnapshots: Boolean!) { | ||
gcpNativeDisableProject(projectId: $projectId, shouldDeleteNativeSnapshots: $shouldDeleteNativeSnapshots) { | ||
gcpNativeDisableProject(input: { | ||
projectId: $projectId, | ||
shouldDeleteNativeSnapshots: $shouldDeleteNativeSnapshots | ||
}) { | ||
jobId | ||
error | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
pkg/polaris/graphql/gcp/queries/gcp_native_disable_project_v1.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
mutation RubrikPolarisSDKRequest($projectId: UUID!, $shouldDeleteNativeSnapshots: Boolean!) { | ||
gcpNativeDisableProject(projectId: $projectId, shouldDeleteNativeSnapshots: $shouldDeleteNativeSnapshots) { | ||
jobId | ||
} | ||
} |
7 changes: 5 additions & 2 deletions
7
pkg/polaris/graphql/gcp/queries/gcp_set_default_service_account_jwt_config.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
mutation RubrikPolarisSDKRequest($serviceAccountName: String!, $serviceAccountJWTConfig: String!) { | ||
gcpSetDefaultServiceAccountJwtConfig(serviceAccountJWTConfig: $serviceAccountJWTConfig, serviceAccountName: $serviceAccountName) | ||
mutation RubrikPolarisSDKRequest($serviceAccountName: String!, $serviceAccountJwtConfig: String!) { | ||
gcpSetDefaultServiceAccountJwtConfig(input: { | ||
serviceAccountJwtConfig: $serviceAccountJwtConfig, | ||
serviceAccountName: $serviceAccountName, | ||
}) | ||
} |
3 changes: 3 additions & 0 deletions
3
pkg/polaris/graphql/gcp/queries/gcp_set_default_service_account_jwt_config_v0.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
mutation RubrikPolarisSDKRequest($serviceAccountName: String!, $serviceAccountJwtConfig: String!) { | ||
gcpSetDefaultServiceAccountJwtConfig(serviceAccountJWTConfig: $serviceAccountJwtConfig, serviceAccountName: $serviceAccountName) | ||
} |