gcloud の初期化

gcloud を初期化

gcloud CLI をインストールする
を参考に続ける

gcloud -v 

を実行すると

Google Cloud SDK 477.0.0
bq 2.1.4
core 2024.05.17
gcloud-crc32c 1.0.0
gsutil 5.29
Updates are available for some Google Cloud CLI components.  To install them,
please run:
  $ gcloud components update

となる

gcloud CLI のコンポーネントの管理
によれば

gcloud components update コマンドを使用して、インストールされているすべてのコンポーネントを、使用可能な最新バージョンの gcloud CLI に更新できる

以前正常に動作していたバージョンに戻す必要があり、gcloud CLI を直接インストール(パッケージ マネージャーではなく、インタラクティブ インストーラ、静的バージョン、Windows インストーラ、Homebrew などを使用して)している場合は、gcloud components update を使用して、指定したバージョンに戻します。

gcloud components update –version VERSION

とあるので
多分失敗しても戻せるはず
ログでバージョンが判明しているので
一度更新してみる

実行すると

To help improve the quality of this product, we collect anonymized usage data 
and anonymized stacktraces when crashes are encountered; additional information 
is available at <https://cloud.google.com/sdk/usage-statistics>. This data is 
handled in accordance with our privacy policy 
<https://cloud.google.com/terms/cloud-privacy-notice>. You may choose to opt in 
this collection now (by choosing 'Y' at the below prompt), or at any time in the
 future by running the following command:

    gcloud config set disable_usage_reporting false

となるが
N
にしておく

次に

Beginning update. This process may take several minutes.


Your current Google Cloud CLI version is: 477.0.0
You will be upgraded to version: 484.0.0

┌───────────────────────────────────────────────────────────────────────────┐
│                     These components will be updated.                     │
├───────────────────────────────────────────────────┬────────────┬──────────┤
│                        Name                       │  Version   │   Size   │
├───────────────────────────────────────────────────┼────────────┼──────────┤
│ BigQuery Command Line Tool                        │      2.1.7 │  1.7 MiB │
│ Cloud Storage Command Line Tool                   │       5.30 │ 11.3 MiB │
│ Google Cloud CLI Core Libraries                   │ 2024.07.12 │ 19.1 MiB │
│ Google Cloud CRC32C Hash Tool (Platform Specific) │      1.0.0 │  1.2 MiB │
│ gcloud cli dependencies                           │ 2024.07.12 │ 16.6 MiB │
└───────────────────────────────────────────────────┴────────────┴──────────┘
┌────────────────────────────────────────────────────────────────────┐
│                These components will be installed.                 │
├─────────────────────────────────────────────┬────────────┬─────────┤
│                     Name                    │  Version   │   Size  │
├─────────────────────────────────────────────┼────────────┼─────────┤
│ gcloud cli dependencies (Platform Specific) │ 2021.04.16 │ < 1 MiB │
└─────────────────────────────────────────────┴────────────┴─────────┘

The following release notes are new in this upgrade.
Please read carefully for information about new features, breaking changes,
and bugs fixed.  The latest full release notes can be viewed at:
  https://cloud.google.com/sdk/release_notes

484.0.0 (2024-07-16)
  Breaking Changes
      ▪ **(GKE Hub)** gcloud container fleet memberships get-credentials now
        requires the permission gkehub.gateway.generateCredentials
        (automatically included in roles gkehub.gatewayReader,
        gkehub.gatewayEditor, and gkehub.gatewayAdmin), as well as network
        access to *connectgateway.googleapis.com.

  AlloyDB
      ▪ Added --node-ids flag to gcloud alloydb instances restart command in
        the alpha and beta tracks. This flag allows users to allow users to
        specify a comma-separated list of read pool node IDs to perform the
        restart on. Without specifying this flag, every node in the read pool
        will be restarted.

  App Engine
      ▪ Removed Google App Engine PHP 5/5 support.

      ▪ Updated the Java SDK to version 2.0.29 build from the open source
        project
        <https://github.com/GoogleCloudPlatform/appengine-java-standard/releases/tag/v2.0.29>.

  Artifact Registry
      ▪ Fixed error codes for gcloud artifacts docker upgrade migrate.

  Batch
      ▪ Fixed the --filter flag of gcloud batch list command to match gcloud
        topic filters syntax.

  BigQuery
      ▪ Added support for non-ASCII characters in the field mask when
        updating Connections.
      ▪ Added support for configuration.authentication.profile_id in the
        field mask when updating Connections.
      ▪ Fixed a bug where bq init would be called even when --use_google_auth
        is specified.

  Cloud Build
      ▪ Add support in gcloud builds worker-pools commands for default region
        set in config.

  Cloud Data Fusion
      ▪ Added three new optional arguments to gcloud beta data-fusion
        instances create command:
        ◆ --maintenance-window-start
        ◆ --maintenance-window-end
        ◆ --maintenance-window-recurrence
        ◆ These arguments allow users to specify the start time, end time,
          and recurrence of the maintenance window for their Data Fusion
          instance.
      ▪ Add four new optional arguments to gcloud beta data-fusion instances
        update command:
        ◆ --maintenance-window-start
        ◆ --maintenance-window-end
        ◆ --maintenance-window-recurrence
        ◆ --clear-maintenance-window
        ◆ These arguments allow users to update maintenance window for their
          Data Fusion instance by specifying the start time, end time, and
          recurrence, or clear the maintenance window using
          --clear-maintenance-window.

  Cloud Run
      ▪ Allows --revision-suffix to be specified with empty string to clear
        client-set revision naming.

  Cloud SQL
      ▪ Added --[no-]enable-dataplex-integration flag to gcloud sql instances
        create and gcloud sql instances patch to support Dataplex Integration
        for Cloud SQL.
      ▪ Added support for MySQL 8.4.

  Cloud Spanner
      ▪ Promoted --type=DATABASE_CHANGE_QUORUM option in gcloud spanner
        operations list to GA.
      ▪ Fixed the DATABASE_CHANGE_QUORUM type filter string in gcloud spanner
        operations list.

  Cloud Workstations
      ▪ Adding disable_ssl_validation support for workstations
        start-tcp-tunnel and workstations ssh.

  Compute Engine
      ▪ Added gcloud compute routers add-route-policy-term which adds policy
        term to a Route Policy in Cloud Router.
      ▪ Promoted gcloud compute routers add-route-policy-term to beta.
      ▪ Added gcloud compute routers update-route-policy-term which updates
        policy term in a Route Policy in Cloud Router.
      ▪ Promoted gcloud compute routers update-route-policy-term to beta.
      ▪ Added gcloud compute routers remove-route-policy-term which removes
        policy term from Route Policy in Cloud Router.
      ▪ Promoted gcloud compute routers remove-route-policy-term to beta.
      ▪ Fixed a bug in gcloud beta compute ssh where a third-party identity
        subject bearing an '@' sign wouldn't be URL-escaped in the way the OS
        Login API expects, causing spurious rejection.
      ▪ Promoted support of flags to --detection-load-threshold,
        detection-absolute-qps, detection-relative-to-baseline-qps, and
        traffic-granularity-configs in gcloud compute security-policies
        add-layer7-ddos-defense-threshold-config to GA.

  Dataproc Metastore
      ▪ Promoted --min-scaling-factor, --max-scaling-factor, and
        --autoscaling-enabled flag of gcloud metastore services create and
        gcloud metastore services update to GA.

  Distributed Cloud Edge
      ▪ Added --offline-reboot-ttl flag to gcloud edge-cloud container
        clusters create and gcloud edge-cloud container clusters update
        commands. This flag specifies the maximum duration a node can reboot
        offline (without connection to Google) and then rejoin its cluster to
        resume its designated workloads.

  Kubernetes Engine
      ▪ Added flag option --addons=RayOperator to enable/disable the Ray
        Operator addon for GKE Standard clusters.
      ▪ Added flag --[no]-enable-ray-operator to enable/disable the Ray
        Operator addon for GKE Autopilot clusters.
      ▪ Added flag --[no]-enable-ray-cluster-logging to enable/disable
        automatic log collection for Ray clusters when the Ray Operator addon
        is enabled.
      ▪ Added flag --[no]-enable-ray-cluster-monitoring to enable/disable
        automatic metrics collection for Ray clusters when the Ray Operator
        addon is enabled.

    Subscribe to these release notes at
    https://groups.google.com/forum/#!forum/google-cloud-sdk-announce
    (https://groups.google.com/forum/#!forum/google-cloud-sdk-announce).

483.0.0 (2024-07-02)
  Google Cloud CLI
      ▪ Enabled faster component update mode by default on Linux. This avoids
        making a backup copy of the installation directory when running certain
        gcloud components commands, which should significantly improve the time
        taken by these operations (including installation and updates).
      ▪ Fixed issue where gcloud components update would leave installation
        in an unusable state when downloading certain components failed.

  AlloyDB
      ▪ Added the following flags to gcloud alloydb instances create and
        gcloud alloydb instances update in alpha and beta:
        ◆ --observability-config-enabled
        ◆ --observability-config-preserve-comments
        ◆ --observability-config-track-wait-events
        ◆ --observability-config-max-query-string-length
        ◆ --observability-config-record-application-tags
        ◆ --observability-config-query-plans-per-minute
        ◆ --observability-config-track-active-queries
      ▪ Promoted AlloyDB Cross Region Replication commands to beta and GA
        track. Modified commands include: alloydb clusters switchover.
      ▪ Added creating cross region and project backups support to gcloud
        alloydb backups create command.
      ▪ Added ability to create clusters with database_version POSTGRES_16 in
        beta track.

  Batch
      ▪ Release resource-allowances commands to the alpha track.

  Cloud Access Context Manager
      ▪ Promoted gcloud access-context-manager supported-services to GA.

  Cloud Filestore
      ▪ Enable Filestore promote-replica command in GA track.

  Cloud Functions
      ▪ Added --binary-authorization and --clear-binary-authorization flags
        for 2nd gen function in alpha and beta track.

  Cloud NetApp
      ▪ Updated psa-range comments on gcloud netapp storage-pools and gcloud
        netapp volumes to indicate that the psa-range key is not used and will
        be ignored.

  Cloud SQL
      ▪ Adding support for clean and if-exists flags to parallel import and
        single-threaded-export.

  Cloud Workstations
      ▪ Added --vm-tags flag to gcloud workstations config create to add tags
        to the workstation's underlying VM.

  Compute Engine
      ▪ Promoted --preference flag of gcloud compute backend-services
        add-backend and gcloud compute backend-services update-backend to GA.
      ▪ Promoted --service-lb-policy flag of gcloud compute backend-services
        create and gcloud compute backend-services update to GA.
      ▪ Promote gcloud compute instances ops-agents to GA.
      ▪ Added IDPF to the list of guestOsFeatures.
      ▪ Promoted --max-run-duration flag of gcloud compute instances create
        to v1.
        ◆ Allows specifying the duration of time after which the instance
          will terminate.
      ▪ Promoted --termination-time flag of gcloud compute instances create
        to v1.
        ◆ Allows specifying the timestamp that the instance will terminate.
      ▪ Promoted --discard-local-ssds-at-termination-timestamp flag of gcloud
        compute instances create to v1.
        ◆ Allows specifying the option to whether discard attached local SSDs
          when automatically stopping this VM

  Network Security
      ▪ Renamed FIREWALL_POLICY column to SOURCE_RESOURCE column in gcloud
        networksecurity address-groups list-references command.
      ▪ Added --purpose flag to gcloud alpha/beta network-security
        address-groups create/update commands.

  Secret Manager
      ▪ Added flag --location and --regional-kms-key-name for secrets to use
        the regional secrets.

    Subscribe to these release notes at
    https://groups.google.com/forum/#!forum/google-cloud-sdk-announce
    (https://groups.google.com/forum/#!forum/google-cloud-sdk-announce).

482.0.0 (2024-06-25)
  App Engine
      ▪ Removed unused python2 dependencies that have CVEs.

  Cloud Bigtable
      ▪ Adds force option to cbt setgcpolicy.

  Cloud Dataflow
      ▪ Elevate jinja variables to top-level flag in dataflow yaml run.

  Cloud Functions
      ▪ Added --clear-build-service-account flag for gcloud functions deploy.

  Cloud Key Management Service
      ▪ Added --allowed-access-reasons flag to gcloud kms keys create to
        create a key with a Key Access Justifications policy configured.
      ▪ Added --allowed-access-reasons flag to gcloud kms keys update to
        update the Key Access Justifications policy on a key.
      ▪ Added --remove-key-access-justifications-policy flag to gcloud kms
        keys update to remove the Key Access Justifications policy on a key.

  Cloud Services
      ▪ Promoted gcloud services policies add-enable-rules to beta.
      ▪ Promoted gcloud services policies remove-enable-rules to beta.
      ▪ Promoted gcloud services policies get to beta.
      ▪ Promoted gcloud services policies get-effective to beta.
      ▪ Promoted gcloud services policies test-enabled to beta.
      ▪ Promoted gcloud services groups list-ancestor-groups to beta.
      ▪ Promoted gcloud services groups list-descendant-services to beta.
      ▪ Promoted gcloud services groups list-members to beta.

  Compute Engine
      ▪ Added --size flag to gcloud compute instance-groups managed update
        for v1.
      ▪ Promoted --confidential-compute-type flag for the command gcloud
        compute instance create to GA.
      ▪ Promoted --performance-monitoring-unit flag for the command gcloud
        compute instance-templates create to GA.
      ▪ Promoted --performance-monitoring-unit flag for the command gcloud
        compute instances bulk create to GA.
      ▪ Promoted --performance-monitoring-unit flag for the command gcloud
        compute instances create  to GA.

  Kubernetes Engine
      ▪ Updated default kubectl from 1.27.14 to 1.27.15.
      ▪ Additional kubectl versions:
        ◆ kubectl.1.27 (1.27.15)
        ◆ kubectl.1.28 (1.28.11)
        ◆ kubectl.1.25 (1.29.6)
        ◆ kubectl.1.30 (1.30.2)

  Network Connectivity
      ▪ Added include-import-ranges flag to hybrid spoke creation to support
        importing hub subnets.

    Subscribe to these release notes at
    https://groups.google.com/forum/#!forum/google-cloud-sdk-announce
    (https://groups.google.com/forum/#!forum/google-cloud-sdk-announce).

481.0.0 (2024-06-18)
  Breaking Changes
      ▪ **(Cloud Dataflow)** Deprecated gcloud dataflow sql command group.
        The command group will be removed by 2025-01-31. See Beam YAML
        (https://beam.apache.org/documentation/sdks/yaml/) and Beam notebooks
        (https://cloud.google.com/dataflow/docs/guides/notebook-advanced#beam-sql)
        for alternatives.

  AlloyDB
      ▪ Added another option ASSIGN_IPV4 to flag --assign-inbound-public-ip
        to enable public IP for an instance to gcloud alloydb instances create
        and gcloud alloydb instances create-secondary.
      ▪ Added flag --authorized-external-networks to set a list of authorized
        external networks on an instance to gcloud alloydb instances create and
        gcloud alloydb instances create-secondary.
      ▪ Added switchover command.

  Artifact Registry
      ▪ Fixed a bug where gcloud artifacts files download and gcloud
        artifacts generic download would crash.

  BigQuery
      ▪ Added undelete command for datasets.
      ▪ Updated google-auth to version 2.29.0.
      ▪ Improved authentication error messaging.

  Cloud Domains
      ▪ Implemented the following commands for gcloud domains registrations
        google-domains-dns
        ◆ get-forwarding-config
        ◆ export-dns-record-sets

  Cloud Filestore
      ▪ Added --source-instance flag to gcloud filestore instances create and
        gcloud beta filestore instances create command to specify the instance
        will be created as a Standby replica of the source-instance.
      ▪ Added promote-replica verb for filestore instances. promote-replica
        promotes a standby replication instance to a regular instance.

  Cloud Functions
      ▪ Promoted --build-service-account flag for gcloud functions deploy to
        GA.

  Cloud Identity-Aware Proxy
      ▪ Promoted gcloud iap regional command to beta and GA.

  Cloud Pub/Sub
      ▪ Promoted --cloud-storage-use-topic-schema flag of gcloud pubsub
        subscriptions create to GA. Added the ability to set whether to use
        topic schemas in Cloud Pub/Sub to Cloud Storage subscriptions. For more
        information, see
        <https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription#use-topic-schema>.
      ▪ Promoted --cloud-storage-use-topic-schema flag of gcloud pubsub
        subscriptions update. to GA. Added the ability to update whether to use
        topic schemas in Cloud Pub/Sub to Cloud Storage subscriptions. For more
        information, see
        <https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription#use-topic-schema>.

  Cloud Spanner
      ▪ Added gcloud beta spanner instance-partitions command group.
      ▪ Added --instance-partition flag to gcloud beta spanner operations
        list, gcloud beta spanner operations describe, and gcloud beta spanner
        operations cancel.

  Cloud Storage
      ▪ Added commands for creating, listing, describing, and deleting
        folders in buckets with hierarchical namespace enabled:
        ◆ Added gcloud alpha storage folders create which creates folders.
        ◆ Added gcloud alpha storage folders list which lists folders in
          buckets.
        ◆ Added gcloud alpha storage folders describe which gets the folder's
          metadata.
        ◆ Added gcloud alpha storage folders delete which deletes folders.
      ▪ Updated gsutil component to 5.30.

  Compute Engine
      ▪ Promoted --confidential-compute-type flag for the command gcloud
        compute instance create to GA.
      ▪ Added --size flag to gcloud compute instance-groups managed update
        for v1.

  Network Connectivity
      ▪ Updated gcloud network-connectivity internal-ranges update to support
        setting and clearing labels.
      ▪ Added support for include-export-ranges to support include filters
        for VPC spokes.

    Subscribe to these release notes at
    https://groups.google.com/forum/#!forum/google-cloud-sdk-announce
    (https://groups.google.com/forum/#!forum/google-cloud-sdk-announce).

480.0.0 (2024-06-11)
  App Engine
      ▪ Updated the Java SDK to version 2.0.28 build from the open source
        project
        <https://github.com/GoogleCloudPlatform/appengine-java-standard/releases/tag/v2.0.28>.

  Artifact Registry
      ▪ gcloud artifacts docker upgrade migrate now automatically creates
        repos for pkg.dev-based migration.
        ◆ Added gcloud artifacts files delete command.

  Cloud Datastream
      ▪ Added --type and --sqlserver-* flags to gcloud datastream
        connection-profiles create|update and gcloud datastream objects lookup
        commands to support SQL server source.
      ▪ Added --type and --sqlserver-* flags to gcloud datastream streams
        create|update commands to support SQL server source.
      ▪ Added --sqlserver-rdbms-file flag and support for SQL Server profile
        to --connection-profile-object-file to gcloud datastream
        connection-profiles discover commands to support SQL server source.

  Cloud Domains
      ▪ Implemented the following commands for gcloud domains registrations
        ◆ renew-domain
        ◆ initiate-push-transfer

  Cloud Functions
      ▪ Added support for --execution-id flag when used together with --gen2
        flag for gcloud functions logs read.

  Cloud Healthcare
      ▪ Added beta flag --enable-history-modifications to the fhir-stores
        create and fhir-stores update commands.

  Cloud IAM
      ▪ Updated iam service-accounts keys list to return additional
        properties, namely:
        ◆ disable_reason: The reason the Service Account Key as been disabled
          (if applicable)
        ◆ extended_status: Additional metadata about the Service Account Key

  Cloud Memorystore
      ▪ Added --zone-distribution-mode and --zone flags to gcloud redis
        clusters create for creating single zone clusters.

  Cloud Pub/Sub
      ▪ Added --bigquery-service-account-email and
        --cloud-storage-service-account-email flags to gcloud pubsub
        subscriptions create to set the service account for writing messages to
        BigQuery and Cloud Storage, respectively.
      ▪ Added --bigquery-service-account-email and
        --cloud-storage-service-account-email flags to gcloud pubsub
        subscriptions create to update the service account for writing messages
        to BigQuery and Cloud Storage, respectively.

  Cloud Spanner
      ▪ Added --proto-descriptors-file to gcloud spanner databases create
        command to allow creating database with proto and enum type columns.
      ▪ Added --proto-descriptors-file to gcloud spanner databases ddl update
        command to allow updating database with proto and enum type columns.
      ▪ Added --include-proto-descriptors to gcloud spanner databases ddl
        describe command to allow proto descriptors for a database with proto
        and enum type columns.
      ▪ Promoted gcloud spanner databases change-quorum command to GA.

  Cloud Storage
      ▪ Adds support of Cross Bucket Replication Feature in alpha track of
        gcloud transfer command group.

  Cloud Workstations
      ▪ Added --allowed-ports flag to gcloud beta workstations configs create
        and gcloud beta workstations configs update commands.
      ▪ Added enable-nested-virtualization pool-size and boot-disk-size to
        --boost-configs flag in beta workstations configs create and beta
        workstations configs update.

  Compute Engine
      ▪ Added support for version=24.04 and short-name=ubuntu in --os-types
        for gcloud beta compute instances ops-agents policies [create|update].
      ▪ Promoted Tls Early Data in TargetHttpsProxy compute API to v1.
      ▪ Added gce_vm_ip_portmap Network Endpoint Group for gcloud compute
        network-endpoint-groups beta support.
      ▪ Added --access-mode flag to gcloud compute disks create and gcloud
        compute disks update.
      ▪ Added --tls-early-data flag to gcloud compute v1 target-https-proxies
        create/update to Tls Early Data field in Target Https Proxy.

  Secret Manager
      ▪ Added --version-destroy-ttl flag to gcloud secrets create to let
        users enable secret version delayed destruction on a secret.
      ▪ Added --version-destroy-ttl flag to gcloud secrets update to let
        users enable/update secret version delayed destruction on a secret.
      ▪ Added --remove-version-destroy-ttl flag to gcloud secrets update to
        let users disable secret version delayed destruction on a secret.

    Subscribe to these release notes at
    https://groups.google.com/forum/#!forum/google-cloud-sdk-announce
    (https://groups.google.com/forum/#!forum/google-cloud-sdk-announce).

479.0.0 (2024-06-04)
  Breaking Changes
      ▪ **(Cloud Dataflow)** gcloud dataflow flex-template build for Dataflow
        Flex Templates in Python with --env
        FLEX_TEMPLATE_PYTHON_REQUIREMENTS_FILE=/path/to/requirements.txt
        defined will run pip check after pip install while building the
        container image. This will break the build process if newly installed
        packages override pre-installed packages with a version that is known
        to be incompatible with other pre-installed packages. See
        <https://cloud.google.com/dataflow/docs/guides/templates/configuring-flex-templates>
        for alternative methods to build a container image without pip check.

  Artifact Registry
      ▪ Updated gcloud artifacts docker images command to include tags as
        list instead of string to enable use of --filter=tags=<SearchTerm>.

  Cloud Composer
      ▪ Added gcloud composer environments check-upgrade command. It checks
        that an environment upgrade does not fail because of PyPI module
        conflicts.
      ▪ Added gcloud composer environments list-upgrades command. It lists
        all possible target versions that an existing environment can be
        upgraded to.

  Cloud Dataproc
      ▪ Updated gcloud dataproc session-templates export to filter out
        additional output only fields.

  Cloud NetApp
      ▪ Added --administrators flag to gcloud netapp active-directories
        create and gcloud netapp active-directories update.

  Cloud SQL
      ▪ Added --preferred-secondary-zone flag to gcloud sql instances clone
        command.

  Compute Engine
      ▪ Updated import and export schemas for gcloud compute
        forwarding-rules.
      ▪ Promoted --ip-collection flag of gcloud compute forwarding-rules
        create to GA.
      ▪ Promoted --ip-collection-region flag of gcloud compute
        forwarding-rules create to GA.

  Compute OS Config
      ▪ Added --allow-missing flag to gcloud compute os-config
        os-policy-assignments update to allow for creation of a new OS policy
        assignment resource if it does not exist.

  Database Migration
      ▪ Updated gcloud database-migration connection-profiles create cloudsql
        to support POSTGRES_16 version option for Cloud SQL connection
        profiles.

  Distributed Cloud Edge
      ▪ Added add/remove exclusion window flags for gcloud edge-cloud
        container clusters update to allow users to add/remove exclusion
        windows where automatic upgrades will be blocked within.

  Service Extensions
      ▪ Added the metadata field to the DEP extensions.

    Subscribe to these release notes at
    https://groups.google.com/forum/#!forum/google-cloud-sdk-announce
    (https://groups.google.com/forum/#!forum/google-cloud-sdk-announce).

478.0.0 (2024-05-29)
  Google Cloud CLI
      ▪ Improved error message for authentication errors.
      ▪ Improved error message for service account impersonation refresh
        errors.
      ▪ Fixed issue where some commands with a --uri flag would produce no
        output.

  App Engine
      ▪ Enable fetch_instance_after_connect_error for compute
        start-iap-tunnel in GA.
      ▪ Allow IAP tunneling for instances with external IP when explicitly
        enabled via flag.

  App Engine Flexible Environment
      ▪ Enable fetch_instance_after_connect_error for compute
        start-iap-tunnel in GA.
      ▪ Allow IAP tunneling for instances with external IP when explicitly
        enabled via flag.

  Artifact Registry
      ▪ Added gcloud artifacts files describe command.

  Backup For GKE
      ▪ Added --volume-data-restore-policy-bindings flag to gcloud container
        backup-restore restore-plans create and gcloud container backup-restore
        restore-plans update to enhance volume restore flexibility.
      ▪ Added --volume-data-restore-policy-overrides-file flag to gcloud
        container backup-restore restores create to enhance volume restore
        flexibility.
      ▪ Added --permissive-mode flag to gcloud container backup-restore
        backup-plans create and gcloud container backup-restore backup-plans
        update to enable bypassing the new backup-time restorability
        enforcement.
      ▪ Added --filter-file flag to gcloud container backup-restore restores
        create to support Backup for GKE fine-grained restore.
      ▪ Added --restore-order-file flag to gcloud <alpha|beta> container
        backup-restore restore-plans create and gcloud <alpha|beta> container
        backup-restore restore-plans update to support custom ordering while
        performing restore as part of Backup for GKE.
      ▪ Added the following enum values for the flag
        --namespaced-resource-restore-mode to gcloud <alpha|beta> container
        backup-restore restore-plans create and gcloud <alpha|beta> container
        backup-restore restore-plans update to expand namespaced resource
        restore mode options:
        ◆ merge-skip-on-conflict
        ◆ merge-replace-volume-on-conflict
        ◆ merge-replace-on-conflict
      ▪ Deprecated --substitution-rules-file flag. Use
        --transformation-rules-file instead.

  BigQuery
      ▪ Added support for map_target_type with external parquet tables.
      ▪ Added support for column_name_character_map to map special characters
        in column names during load jobs.
      ▪ Added a printout of unreachable locations when datasets and jobs are
        listed and a region is down.

  Cloud Dataplex
      ▪ Promoted gcloud dataplex aspect-types command group to GA.
      ▪ Promoted gcloud dataplex entry-groups command group to GA.
      ▪ Promoted gcloud dataplex entry-types command group to GA.

  Cloud Deploy
      ▪ Fixed issue where skaffold files generated from deploy releases
        create flags did not include all profiles in the release's Delivery
        Pipeline.

  Cloud Firestore
      ▪ Promoted Cloud Firestore Backups and Restore gcloud CLI changes to
        beta.
        ◆ Promoted gcloud firestore backups list command to beta.
        ◆ Promoted gcloud firestore backups describe command to beta.
        ◆ Promoted gcloud firestore backups delete command to beta.
        ◆ Promoted gcloud firestore backups schedules create command to beta.
        ◆ Promoted gcloud firestore backups schedules update command to beta.
        ◆ Promoted gcloud firestore backups schedules describe command to
          beta.
        ◆ Promoted gcloud firestore backups schedules delete command to beta.
        ◆ Promoted gcloud firestore backups schedules list command to beta.
        ◆ Promoted gcloud firestore databases restore command to beta.
      ▪ Promoted Cloud Firestore Backups and Restore gcloud CLI changes to
        GA.
        ◆ Promoted gcloud firestore backups list command to GA.
        ◆ Promoted gcloud firestore backups describe command to GA.
        ◆ Promoted gcloud firestore backups delete command to GA.
        ◆ Promoted gcloud firestore backups schedules create command to GA.
        ◆ Promoted gcloud firestore backups schedules update command to GA.
        ◆ Promoted gcloud firestore backups schedules describe command to GA.
        ◆ Promoted gcloud firestore backups schedules delete command to GA.
        ◆ Promoted gcloud firestore backups schedules list command to GA.
        ◆ Promoted gcloud firestore databases restore command to GA.

  Cloud Firestore Emulator
      ▪ Release Cloud Firestore emulator v1.19.7
        ◆ Fixes unexpected responses from nested queries in Datastore Mode.
        ◆ Add Auth Context support for Firestore triggers (2nd gen) in
          Firestore Emulator

  Cloud Functions
      ▪ Added validation to --runtime-update-policy argument.

  Cloud SQL
      ▪ Added PostgreSQL 16 to database versions.
      ▪ Fixed issue where gcloud sql instances export and gcloud sql
        instances import would display only the operation selfLink field
        instead of the whole operation when run asynchronously with --async,
        regardless of the --format flag specified.
        ◆ This behavior is now consistent with other gcloud sql instances
          commands.
        ◆ To display only the selfLink field, use --format="value(selfLink)".

  Cloud Workstations
      ▪ Adding --env flag to gcloud workstations create.

  Compute Engine
      ▪ Added IPV6_ONLY option to --stack-type flag of gcloud compute
        vpn-gateways create command to create an IPv6-only VPN gateway.

  Config Connector
      ▪ Updated Google Cloud Config Connector to version 1.118.1. See Config
        Connector Overview for more details
        https://cloud.google.com/config-connector/docs/overview
        (https://cloud.google.com/config-connector/docs/overview).

  Database Migration
      ▪ Updated gcloud database-migrate connection-profiles update to update
        Database Migration Service connection profile for SQL Server to Cloud
        SQL-SQL Server migrations.
      ▪ Updated gcloud database-migrate migration-jobs update to update
        Database Migration Service migration job for SQL Server to Cloud
        SQL-SQL Server migrations.

  Dataproc Metastore
      ▪ Added --deletion-protection flags to gcloud metastore services create
        GA release track to allow creating a Dataproc Metastore instance with
        delete protection.
      ▪ Added --deletion-protection and --no-deletion-protection flags to
        gcloud metastore services update GA release track to allow updating a
        Dataproc Metastore instance with delete protection.

  Security Command Center
      ▪ Added --filter-modules flag in gcloud scc manage services describe
        ... api to filter response by modules.

    Subscribe to these release notes at
    https://groups.google.com/forum/#!forum/google-cloud-sdk-announce
    (https://groups.google.com/forum/#!forum/google-cloud-sdk-announce).

Once started, canceling this operation may leave your SDK installation in an 
inconsistent state.

となる
これで
Y
とすると更新される

Performing in place update...

╔════════════════════════════════════════════════════════════╗
╠═ Uninstalling: BigQuery Command Line Tool                 ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Uninstalling: Cloud Storage Command Line Tool            ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Uninstalling: Google Cloud CLI Core Libraries            ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Uninstalling: Google Cloud CRC32C Hash Tool              ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Uninstalling: gcloud cli dependencies                    ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: BigQuery Command Line Tool                   ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: Cloud Storage Command Line Tool              ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: Google Cloud CLI Core Libraries              ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: Google Cloud CRC32C Hash Tool (Platform S... ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: gcloud cli dependencies                      ═╣
╠════════════════════════════════════════════════════════════╣
╠═ Installing: gcloud cli dependencies (Platform Specific)  ═╣
╚════════════════════════════════════════════════════════════╝

Performing post processing steps...done.                                       

Update done!

To revert your CLI to the previously installed version, you may run:
  $ gcloud components update --version 477.0.0

となるのでログを翻訳

後処理ステップを実行しています…完了しました。

アップデート完了!

CLI を以前にインストールしたバージョンに戻すには、次のコマンドを実行します。
$ gcloud コンポーネントの更新 –バージョン 477.0.0
となる

つまりこのコマンドを実行すれば不具合があっても戻せるはず

とりあえず更新処理はできたので初期化をする

./google-cloud-sdk/bin/gcloud init

を実行

Welcome! This command will take you through the configuration of gcloud.

Your current configuration has been set to: [default]

You can skip diagnostics next time by using the following flag:
  gcloud init --skip-diagnostics

Network diagnostic detects and fixes local network connection issues.
Checking network connection...done.                                            
Reachability Check passed.
Network diagnostic passed (1/1 checks passed).

You must log in to continue. Would you like to log in (Y/n)?  

となるので
Y
にする

これでブラウザで認証画面になるので
ログインして処理を進めていき
最後に許可を押せばOK

Your browser has been opened to visit:


Please enter numeric choice or text value (must exactly match list item):     

となるので
今回使うのプロジェクトの番号を入力

これで

* Commands that require authentication will use snowpoollovely@gmail.com by default
* Commands will reference project `raspberrypi-ea1b6` by default
Run `gcloud help config` to learn how to change individual settings

This gcloud configuration is called [default]. You can create additional configurations if you work with multiple accounts and/or projects.
Run `gcloud topic configurations` to learn more.

Some things to try next:

* Run `gcloud --help` to see the Cloud Platform services you can interact with. And run `gcloud help COMMAND` to get help on any gcloud command.
* Run `gcloud topic --help` to learn about advanced features of the SDK like arg files and output formatting
* Run `gcloud cheat-sheet` to see a roster of go-to `gcloud` commands.

となる

gcloud config list

を実行すると
設定の確認ができる

とりあえず設定はできたので
次に
gcloudコマンドでApplication Default Credentials (ADC)の作成

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です