/aosp_15_r20/tools/acloud/setup/ |
H A D | gcp_setup_runner.py | 16 """Gcloud setup runner.""" 152 self.gcloud_command_path = os.path.join(google_sdk_folder, "gcloud") 158 """Run gcloud command. 162 Ex: [config], then this function call "gcloud config". 166 String, return message after execute gcloud command. 205 gcloud_runner: A GcloudRunner class to run "gcloud" command. 241 "This step will walk you through gcloud SDK installation." 242 "Then configure gcloud user information." 243 "Finally enable some gcloud API services.") 296 """Setup Gcloud user information. [all …]
|
H A D | google_sdk.py | 45 GCLOUD_BIN = "gcloud" 91 raise errors.OSTypeError("no gcloud for os type: %s" % (os_type)) 97 We'll try to find where gcloud is and assume the other google sdk tools 101 Boolean, return True if gcloud is installed, False otherwise. 114 Make sure the GCloud SDK is installed. If not, this function will assist 124 """Install gcloud component. 127 gcloud_runner: A GcloudRunner class to run "gcloud" command. 128 component: String, name of gcloud component. 143 1. Builtin gcloud (usually /usr/bin), we'll return /usr/bin with the 168 self._tmp_path = tempfile.mkdtemp(prefix="gcloud")
|
/aosp_15_r20/device/google/cuttlefish/tools/ |
D | create_base_image_hostlib.sh | 26 DEFINE_string build_project "$(gcloud config get-value project)" \ 28 DEFINE_string build_zone "$(gcloud config get-value compute/zone)" \ 32 DEFINE_string dest_project "$(gcloud config get-value project)" \ 58 alive="$(gcloud compute ssh "${SSH_FLAGS[@]}" "$@" -- uptime || true)" 101 gcloud compute instances delete -q \ 104 gcloud compute disks delete -q \ 106 gcloud compute images delete -q \ 108 gcloud compute disks create \ 114 gcloud compute accelerator-types describe "${gpu_type}" "${PZ[@]}" || \ 116 gcloud compute instances create \ [all …]
|
/aosp_15_r20/external/python/google-auth-library-python/system_tests/ |
D | noxfile.py | 69 # The full path to the gcloud cli executable. 70 GCLOUD = str(CLOUD_SDK_INSTALL_DIR.join("bin", "gcloud")) variable 72 # gcloud requires Python 2 and doesn't work on 3, so we need to tell it 87 # This tells gcloud which Python interpreter to use (always use 2.7) 89 # This set the $PATH for the subprocesses so they can find the gcloud 95 # If gcloud cli executable already exists, just update it. 96 if py.path.local(GCLOUD).exists(): 97 session.run(GCLOUD, "components", "update", "-q") 145 GCLOUD, "auth", "activate-service-account", "--key-file", SERVICE_ACCOUNT_FILE 149 session.run(GCLOUD, "config", "set", "project", "example-project") [all …]
|
/aosp_15_r20/device/google/cuttlefish_vmm/ |
D | rebuild.sh | 42 DEFINE_string gce_project "$(gcloud config get-value project)" "Project to use" "p" 46 DEFINE_string gce_zone "$(gcloud config get-value compute/zone)" "Zone to use" "z" 62 alive="$(gcloud compute ssh "${SSH_FLAGS[@]}" "$@" -- uptime || true)" 203 gcloud compute instances delete -q \ 207 gcloud compute images delete -q \ 211 gcloud compute disks delete -q \ 216 gcloud compute disks create \ 221 gcloud compute images create \ 225 gcloud compute instances create \ 236 gcloud beta compute ssh "${SSH_FLAGS[@]}" \ [all …]
|
/aosp_15_r20/development/tools/repo_diff/service/repodiff/ |
H A D | Makefile | 29 RUN_COMMAND_REMOTE=gcloud compute --project $(PROJECT_NAME) ssh --zone $(GCE_ZONE) "$(REMOTE_MACHIN… 30 SCP_TO_HOST=gcloud compute --project $(PROJECT_NAME) scp --zone $(GCE_ZONE) 105 gcloud compute --project $(PROJECT_NAME) ssh --zone $(GCE_ZONE) $(REMOTE_MACHINE_NAME) 108 gcloud config set project $(PROJECT_NAME) 112 gcloud compute instances create $(REMOTE_MACHINE_NAME) \ 129 gcloud iam service-accounts keys create $(TMP_CREDENTIAL_FNAME) --iam-account $(SERVICE_ACCOUNT) 140 …&& gcloud compute firewall-rules create $(FIREWALL_NAME) --allow tcp:$(DOCKER_TARGET_PORT) 2>/dev/… 141 …&& gcloud compute firewall-rules update $(FIREWALL_NAME) --allow tcp:$(DOCKER_TARGET_PORT) --sourc… 146 …@echo "Monitor progress at http://"$(shell (gcloud compute instances list | grep $(REMOTE_MACHINE_… 149 gcloud compute instances delete $(REMOTE_MACHINE_NAME) --zone $(GCE_ZONE) --quiet [all …]
|
/aosp_15_r20/external/google-cloud-java/.cloud/helpers/ |
H A D | gcloud-create-service-account.sh | 18 # Use the project ID in gcloud set-quota-project. Clear the existing quota project directly from 20 gcloud config set project "$GOOGLE_CLOUD_PROJECT" 21 sed -i.bak '/quota_project_id/d' ~/.config/gcloud/application_default_credentials.json 22 gcloud auth application-default set-quota-project "$GOOGLE_CLOUD_PROJECT" 24 # Assign permission for current gcloud account to impersonate a service account. 25 gcloud_account=$(gcloud config get account) 26 gcloud projects add-iam-policy-binding "$GOOGLE_CLOUD_PROJECT" \ 36 gcloud iam service-accounts describe "$service_account_email" &>/dev/null 38 gcloud iam service-accounts create "$service_account_name" 46 gcloud projects add-iam-policy-binding "$GOOGLE_CLOUD_PROJECT" \ [all …]
|
H A D | gcloud-create-project.sh | 24 currentProject=$(gcloud config get project) 26 echo -n "Do you want to use the current gcloud project ($currentProject)? (Y|n): " 61 gcloud projects create --folder="$GOOGLE_CLOUD_FOLDER_ID" "$projectId" || exit 62 gcloud config set project "$projectId" 63 gcloud services enable cloudresourcemanager.googleapis.com 64 gcloud beta billing projects link "$projectId" --billing-account="$GOOGLE_CLOUD_BILLING_ACCOUNT"
|
H A D | gcloud-login.sh | 19 # Perform gcloud auth login if no current credentials are available. 20 if gcloud auth print-access-token &>/dev/null; then 23 if ! gcloud auth login; then 27 if gcloud auth application-default print-access-token &>/dev/null; then 30 if ! gcloud auth application-default login; then
|
/aosp_15_r20/external/google-cloud-java/java-assured-workloads/proto-google-cloud-assured-workloads-v1/src/main/java/com/google/cloud/assuredworkloads/v1/ |
H A D | Violation.java | 665 * Remediation instructions to resolve violation via gcloud cli 669 …* .google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions.Gcloud gcloud_instructions … 679 * Remediation instructions to resolve violation via gcloud cli 683 …* .google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions.Gcloud gcloud_instructions … 688 com.google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions.Gcloud 694 * Remediation instructions to resolve violation via gcloud cli 698 …* .google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions.Gcloud gcloud_instructions … 797 …point(interface_extends:google.cloud.assuredworkloads.v1.Violation.Remediation.Instructions.Gcloud) 804 * Gcloud command to resolve violation 816 * Gcloud command to resolve violation [all …]
|
/aosp_15_r20/external/rust/android-crates-io/crates/grpcio-sys/grpc/tools/run_tests/xds_k8s_test_driver/ |
D | README.md | 31 `kubectl` can be installed via `gcloud components install kubectl`, or system package manager: http… 40 1. If you haven't, [initialize](https://cloud.google.com/sdk/docs/install-sdk) gcloud SDK 41 2. Activate gcloud [configuration](https://cloud.google.com/sdk/docs/configurations) with your proj… 42 3. Enable gcloud services: 44 gcloud services enable \ 60 gcloud -q components update 67 export PROJECT_NUMBER=$(gcloud projects describe "${PROJECT_ID}" --format="value(projectNumber)") 86 gcloud container clusters create "${CLUSTER_NAME}" \ 104 gcloud compute firewall-rules create "${RESOURCE_PREFIX}-allow-health-checks" \ 117 gcloud iam service-accounts create "${WORKLOAD_SA_NAME}" \ [all …]
|
/aosp_15_r20/external/skia/infra/bots/gen_tasks_logic/ |
H A D | task_builder.go | 293 // "gcloud auth configure-docker", typically looks like this: 297 // "gcr.io": "gcloud", 298 // "us.gcr.io": "gcloud", 299 // "eu.gcr.io": "gcloud", 300 // "asia.gcr.io": "gcloud", 301 // "staging-k8s.gcr.io": "gcloud", 302 // "marketplace.gcr.io": "gcloud" 307 // named "docker-credential-gcloud" [2], which is part of the Google Cloud SDK. This program is 308 // a shell script that invokes the "gcloud" command, which is itself a shell script that probes 310 // /usr/lib/google-cloud-sdk/lib/gcloud.py. For some unknown reason, sometimes "gcloud" decides [all …]
|
/aosp_15_r20/external/python/google-auth-library-python/google/auth/ |
D | _cloud_sdk.py | 27 # The ~/.config subdirectory containing gcloud credentials. 28 _CONFIG_DIRECTORY = "gcloud" 29 # Windows systems store config at %APPDATA%\gcloud 35 _CLOUD_SDK_POSIX_COMMAND = "gcloud" 36 _CLOUD_SDK_WINDOWS_COMMAND = "gcloud.cmd" 59 # Non-windows systems store this at ~/.config/gcloud 62 # Windows systems store config at %APPDATA%\gcloud 106 # Ignore the stderr coming from gcloud, so it won't be mixed into the output. 124 """Load user access token with the ``gcloud auth print-access-token`` command. 135 token from gcloud.
|
/aosp_15_r20/tools/acloud/internal/script/ |
H A D | create_extradisk.sh | 20 gcloud compute disks create "${DISK_NAME}" --zone=${ZONE} --project=${PROJECT} --size="${1}GB" 21 gcloud compute instances attach-disk instance-disk-creation --disk "${DISK_NAME}" --zone=${ZONE} --… 23 gcloud compute ssh instance-disk-creation --zone=${ZONE} --project=${PROJECT} --command "sudo mkfs.… 24 gcloud compute ssh instance-disk-creation --zone=${ZONE} --project=${PROJECT} --command "sudo mount… 25 gcloud compute ssh instance-disk-creation --zone=${ZONE} --project=${PROJECT} --command "ls /mnt" 26 gcloud compute ssh instance-disk-creation --zone=${ZONE} --project=${PROJECT} --command "sudo umoun… 28 gcloud compute instances detach-disk instance-disk-creation --disk "${DISK_NAME}" --zone=${ZONE} --… 29 gcloud compute images create "${IMAGE_NAME}" --source-disk-zone=${ZONE} --source-disk "${DISK_NAME}… 30 gcloud compute disks delete "${DISK_NAME}" --zone=${ZONE} --project=${PROJECT}
|
/aosp_15_r20/external/tensorflow/tensorflow/tools/gcs_test/ |
H A D | gcs_smoke_wrapper.sh | 44 # Check that gcloud and gsutil binaries are available. 45 GCLOUD_BIN="/var/gcloud/google-cloud-sdk/bin/gcloud" 47 die "ERROR: Unable to find gcloud at path ${GCLOUD_BIN}" 50 GSUTIL_BIN="/var/gcloud/google-cloud-sdk/bin/gsutil" 55 # Check environment variable for gcloud credentials 57 die "ERROR: Required gcloud environment variable "\ 89 # First, activate gcloud service account 92 die "ERROR: Failed to activate gcloud service account with JSON key file"
|
/aosp_15_r20/external/google-auth-library-java/ |
H A D | README.md | 111 2. Credentials provided by the Google Cloud SDK `gcloud auth application-default login` command 183 The configuration file can be generated by using the [gcloud CLI](https://cloud.google.com/sdk/). 189 gcloud iam workload-identity-pools create-cred-config \ 204 …ce.html), an additional flag `--enable-imdsv2` needs to be added to the `gcloud iam workload-ident… 207 gcloud iam workload-identity-pools create-cred-config \ 234 The configuration file can be generated by using the [gcloud CLI](https://cloud.google.com/sdk/). 240 gcloud iam workload-identity-pools create-cred-config \ 272 The configuration file can be generated by using the [gcloud CLI](https://cloud.google.com/sdk/). 287 gcloud iam workload-identity-pools create-cred-config \ 317 gcloud iam workload-identity-pools create-cred-config \ [all …]
|
/aosp_15_r20/test/app_compat/csuite/test_scripts/src/main/java/com/android/webview/lib/ |
D | WebviewInstallerToolPreparer.java | 48 name = "gcloud-cli-zip-archive", 135 "Argument --gcloud-cli-zip must be used.", mGcloudCliZipArchive, null); in setUp() 148 "Unable to unzip the gcloud cli zip archive", in setUp() 152 // The 'gcloud init' command creates configuration files for gsutil and other in setUp() 153 // applications that use the gcloud sdk in the home directory. We can isolate in setUp() 155 // gcloud and gsutil executables tracked by this class by setting the home in setUp() 162 .resolve(Paths.get("google-cloud-sdk", "bin", "gcloud")) in setUp() 177 "gcloud cli initialization failed", in setUp()
|
/aosp_15_r20/external/crosvm/tools/impl/ |
H A D | vcs.py | 27 # File where to store http headers for gcloud authentication 64 if not shutil.which("gcloud"): 66 return cmd("gcloud auth print-access-token").stdout(check=False) 76 - gcloud 80 glloud for authorization can be enabled in git via `git config credential.helper gcloud.sh`. 91 if helper.endswith("gcloud.sh"): 94 raise Exception("Cannot get gcloud access token.") 95 # File where to store http headers for gcloud authentication
|
/aosp_15_r20/external/grpc-grpc-java/examples/example-gauth/ |
H A D | README.md | 20 Wherever possible, the required UI links or `gcloud` shell commands are mentioned. 29 gcloud projects list 37 topics using the "+ CREATE TOPIC" button, say `Topic1` and `Topic2`. You can also use the gcloud co… 40 gcloud pubsub topics create Topic1 50 `/path/to/JSON/file`. You can also use the `gcloud` shell commands to 51 …://cloud.google.com/iam/docs/creating-managing-service-accounts#iam-service-accounts-create-gcloud) 52 …google.com/iam/docs/creating-managing-service-account-keys#iam-service-account-keys-create-gcloud).
|
/aosp_15_r20/external/google-cloud-java/java-apikeys/proto-google-cloud-apikeys-v2/src/main/java/com/google/api/apikeys/v2/ |
H A D | ApiTarget.java | 82 * You can use [`gcloud services list`](/sdk/gcloud/reference/services/list) 108 * You can use [`gcloud services list`](/sdk/gcloud/reference/services/list) 610 * You can use [`gcloud services list`](/sdk/gcloud/reference/services/list) 635 * You can use [`gcloud services list`](/sdk/gcloud/reference/services/list) 660 * You can use [`gcloud services list`](/sdk/gcloud/reference/services/list) 684 * You can use [`gcloud services list`](/sdk/gcloud/reference/services/list) 704 * You can use [`gcloud services list`](/sdk/gcloud/reference/services/list)
|
/aosp_15_r20/external/perfetto/infra/ci/ |
H A D | Makefile | 69 gcloud compute --quiet --project=${PROJECT} \ 71 gcloud compute --quiet --project=${PROJECT} \ 101 gcloud compute --project=${PROJECT} \ macro 107 gcloud compute --quiet --project=$(PROJECT) \ macro 123 gcloud compute --quiet --project=${PROJECT} \ macro 137 gcloud compute --quiet \ 144 gcloud compute --quiet \
|
/aosp_15_r20/external/google-cloud-java/java-shell/proto-google-cloud-shell-v1/src/main/java/com/google/cloud/shell/v1/ |
H A D | StartEnvironmentRequest.java | 137 * valid, the environment will be pre-authenticated with gcloud so that the 138 * user can run gcloud commands in Cloud Shell without having to log in. This 163 * valid, the environment will be pre-authenticated with gcloud so that the 164 * user can run gcloud commands in Cloud Shell without having to log in. This 782 * valid, the environment will be pre-authenticated with gcloud so that the 783 * user can run gcloud commands in Cloud Shell without having to log in. This 807 * valid, the environment will be pre-authenticated with gcloud so that the 808 * user can run gcloud commands in Cloud Shell without having to log in. This 832 * valid, the environment will be pre-authenticated with gcloud so that the 833 * user can run gcloud commands in Cloud Shell without having to log in. This [all …]
|
/aosp_15_r20/external/python/oauth2client/tests/ |
D | test_client.py | 448 os.path.join('gcloud', client._WELL_KNOWN_CREDENTIALS_FILE)) 497 os.path.join('gcloud', client._WELL_KNOWN_CREDENTIALS_FILE)) 504 os.path.join('gcloud', client._WELL_KNOWN_CREDENTIALS_FILE)) 508 os.path.join('gcloud', 523 os.path.join('gcloud', client._WELL_KNOWN_CREDENTIALS_FILE)) 528 config_dir = os.path.join(os.path.expanduser('~'), '.config', 'gcloud') 533 'gcloud', 541 'gcloud', 546 os.path.join('gcloud', 559 os.path.join('gcloud', [all …]
|
/aosp_15_r20/external/python/google-auth-library-python/scripts/ |
D | setup_external_accounts.sh | 81 gcloud config set project $project_id 84 gcloud beta iam workload-identity-pools create $pool_id \ 90 gcloud beta iam workload-identity-pools providers create-oidc $oidc_provider_id \ 97 gcloud beta iam workload-identity-pools providers create-aws $aws_provider_id \ 103 gcloud iam service-accounts add-iam-policy-binding $service_account_email \ 107 gcloud iam service-accounts add-iam-policy-binding $service_account_email \
|
/aosp_15_r20/external/autotest/site_utils/ |
H A D | sync_cloudsql_access.py | 53 """Login to Google Cloud service for gcloud command to run. 62 # gcloud auth activate-service-account --key-file ~/key.json 63 utils.run('gcloud auth login', stdout_tee=sys.stdout, 124 utils.run('gcloud config set project %s -q' % project) 125 cmd = ('gcloud sql instances patch %s --authorized-networks %s ' 155 help='Fetch IPs without updating allowlists in gcloud.')
|