Skip to content

Commit

Permalink
feat: Automated regeneration of compute v1 client (googleapis#19478)
Browse files Browse the repository at this point in the history
Auto-created at 2024-05-26 10:29:30 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored May 26, 2024
1 parent 5158434 commit 38d2e4b
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 6 deletions.
1 change: 1 addition & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97981,6 +97981,7 @@
"/compute:v1/DeprecationStatus/replacement": replacement
"/compute:v1/DeprecationStatus/state": state
"/compute:v1/Disk": disk
"/compute:v1/Disk/accessMode": access_mode
"/compute:v1/Disk/architecture": architecture
"/compute:v1/Disk/asyncPrimaryDisk": async_primary_disk
"/compute:v1/Disk/asyncSecondaryDisks": async_secondary_disks
Expand Down
4 changes: 2 additions & 2 deletions generated/google-apis-compute_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Release history for google-apis-compute_v1

### v0.98.0 (2024-05-19)
### v0.98.0 (2024-05-26)

* Regenerated from discovery document revision 20240507
* Regenerated from discovery document revision 20240519
* Regenerated using generator version 0.15.0

### v0.97.0 (2024-04-28)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1493,8 +1493,10 @@ class AttachedDisk
# the disk or when you attach the disk to a virtual machine instance. If you do
# not provide an encryption key, then the disk will be encrypted using an
# automatically generated key and you do not need to provide a key to use the
# disk later. Instance templates do not store customer-supplied encryption keys,
# so you cannot use your own keys to encrypt disks in a managed instance group.
# disk later. Note: Instance templates do not store customer-supplied encryption
# keys, so you cannot use your own keys to encrypt disks in a managed instance
# group. You cannot create VMs that have disks with customer-supplied keys using
# the bulk insert method.
# Corresponds to the JSON property `diskEncryptionKey`
# @return [Google::Apis::ComputeV1::CustomerEncryptionKey]
attr_accessor :disk_encryption_key
Expand Down Expand Up @@ -6295,6 +6297,16 @@ def update!(**args)
class Disk
include Google::Apis::Core::Hashable

# The access mode of the disk. - READ_WRITE_SINGLE: The default AccessMode,
# means the disk can be attached to single instance in RW mode. -
# READ_WRITE_MANY: The AccessMode means the disk can be attached to multiple
# instances in RW mode. - READ_ONLY_MANY: The AccessMode means the disk can be
# attached to multiple instances in RO mode. The AccessMode is only valid for
# Hyperdisk disk types.
# Corresponds to the JSON property `accessMode`
# @return [String]
attr_accessor :access_mode

# The architecture of the disk. Valid values are ARM64 or X86_64.
# Corresponds to the JSON property `architecture`
# @return [String]
Expand Down Expand Up @@ -6654,6 +6666,7 @@ def initialize(**args)

# Update properties of this object
def update!(**args)
@access_mode = args[:access_mode] if args.key?(:access_mode)
@architecture = args[:architecture] if args.key?(:architecture)
@async_primary_disk = args[:async_primary_disk] if args.key?(:async_primary_disk)
@async_secondary_disks = args[:async_secondary_disks] if args.key?(:async_secondary_disks)
Expand Down Expand Up @@ -17156,6 +17169,9 @@ class InstanceProperties
attr_accessor :labels

# The machine type to use for instances that are created from these properties.
# This field only accept machine types name. e.g. n2-standard-4 and does not
# accept machine type full or partial url. e.g. projects/my-l7ilb-project/zones/
# us-central1-a/machineTypes/n2-standard-4 will throw INTERNAL_ERROR.
# Corresponds to the JSON property `machineType`
# @return [String]
attr_accessor :machine_type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module ComputeV1
GENERATOR_VERSION = "0.15.0"

# Revision of the discovery document this client was generated from
REVISION = "20240507"
REVISION = "20240519"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -7902,6 +7902,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
class Disk
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :access_mode, as: 'accessMode'
property :architecture, as: 'architecture'
property :async_primary_disk, as: 'asyncPrimaryDisk', class: Google::Apis::ComputeV1::DiskAsyncReplication, decorator: Google::Apis::ComputeV1::DiskAsyncReplication::Representation

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33483,7 +33483,13 @@ def get_region(project, region, fields: nil, quota_user: nil, user_ip: nil, opti
# To exclude one or more fields, set your request's `fields` query parameter to
# only include the fields you need. For example, to only include the `id` and `
# selfLink` fields, add the query parameter `?fields=id,selfLink` to your
# request.
# request. This method fails if the quota information is unavailable for the
# region and if the organization policy constraint compute.
# requireBasicQuotaInResponse is enforced. This constraint, when enforced,
# disables the fail-open behaviour when quota information (the `items.quotas`
# field) is unavailable for the region. It is recommended to use the default
# setting for the constraint unless your application requires the fail-closed
# behaviour for this method.
# @param [String] project
# Project ID for this request.
# @param [String] filter
Expand Down

0 comments on commit 38d2e4b

Please sign in to comment.