Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compute instance reservation affinity #5163

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions mmv1/products/compute/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5687,6 +5687,37 @@ objects:
the network is in custom subnet mode, then this field
should be specified.
# networkInterfaces.kind is not necessary for convergence.
- !ruby/object:Api::Type::NestedObject
name: 'reservationAffinity'
description: |
Specifies the reservations that this instance can consume from.
properties:
- !ruby/object:Api::Type::Enum
name: 'consumeReservationType'
description: |
Specifies the type of reservation from which this instance
can consume resources: ANY_RESERVATION (default),
SPECIFIC_RESERVATION, or NO_RESERVATION.
values:
- :ANY_RESERVATION
- :SPECIFIC_RESERVATION
- :NO_RESERVATION
- !ruby/object:Api::Type::String
name: 'key'
description: |
Corresponds to the label key of a reservation resource.
To target a SPECIFIC_RESERVATION by name, specify
googleapis.com/reservation-name as the key and specify
the name of your reservation as its value.
- !ruby/object:Api::Type::Array
name: 'values'
description: |
Corresponds to the label values of a reservation resource.
This can be either a name to a reservation in the same project
or "projects/different-project/reservations/some-reservation-name"
to target a shared reservation in the same zone but in
a different project.
item_type: Api::Type::String
- !ruby/object:Api::Type::NestedObject
name: 'scheduling'
description: Sets the scheduling options for this instance.
Expand Down Expand Up @@ -6559,6 +6590,37 @@ objects:
the network is in custom subnet mode, then this field
should be specified.
# networkInterfaces.kind is not necessary for convergence.
- !ruby/object:Api::Type::NestedObject
name: 'reservationAffinity'
description: |
Specifies the reservations that this instance can consume from.
properties:
- !ruby/object:Api::Type::Enum
name: 'consumeReservationType'
description: |
Specifies the type of reservation from which this instance
can consume resources: ANY_RESERVATION (default),
SPECIFIC_RESERVATION, or NO_RESERVATION.
values:
- :ANY_RESERVATION
- :SPECIFIC_RESERVATION
- :NO_RESERVATION
- !ruby/object:Api::Type::String
name: 'key'
description: |
Corresponds to the label key of a reservation resource.
To target a SPECIFIC_RESERVATION by name, specify
googleapis.com/reservation-name as the key and specify
the name of your reservation as its value.
- !ruby/object:Api::Type::Array
name: 'values'
description: |
Corresponds to the label values of a reservation resource.
This can be either a name to a reservation in the same project
or "projects/different-project/reservations/some-reservation-name"
to target a shared reservation in the same zone but in
a different project.
item_type: Api::Type::String
- !ruby/object:Api::Type::NestedObject
name: 'scheduling'
description: Sets the scheduling options for this instance.
Expand Down