Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b481afb

Browse files
committedJun 20, 2023
feat(baremetalsolution): update the api
#### baremetalsolution:v2 The following keys were deleted: - resources.projects.resources.locations.resources.instances.methods.create (Total Keys: 12) The following keys were added: - schemas.InstanceConfig.properties.sshKeyNames (Total Keys: 2)
1 parent 2793976 commit b481afb

File tree

3 files changed

+29
-217
lines changed

3 files changed

+29
-217
lines changed
 

‎docs/dyn/baremetalsolution_v2.projects.locations.instances.html

-188
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ <h2>Instance Methods</h2>
7777
<p class="toc_element">
7878
<code><a href="#close">close()</a></code></p>
7979
<p class="firstline">Close httplib2 connections.</p>
80-
<p class="toc_element">
81-
<code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
82-
<p class="firstline">Create an Instance.</p>
8380
<p class="toc_element">
8481
<code><a href="#detachLun">detachLun(instance, body=None, x__xgafv=None)</a></code></p>
8582
<p class="firstline">Detach LUN from Instance.</p>
@@ -119,191 +116,6 @@ <h3>Method Details</h3>
119116
<pre>Close httplib2 connections.</pre>
120117
</div>
121118

122-
<div class="method">
123-
<code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
124-
<pre>Create an Instance.
125-
126-
Args:
127-
parent: string, Required. The parent project and location. (required)
128-
body: object, The request body.
129-
The object takes the form of:
130-
131-
{ # A server.
132-
&quot;createTime&quot;: &quot;A String&quot;, # Output only. Create a time stamp.
133-
&quot;firmwareVersion&quot;: &quot;A String&quot;, # Output only. The firmware version for the instance.
134-
&quot;hyperthreadingEnabled&quot;: True or False, # True if you enable hyperthreading for the server, otherwise false. The default value is false.
135-
&quot;id&quot;: &quot;A String&quot;, # Output only. An identifier for the `Instance`, generated by the backend.
136-
&quot;interactiveSerialConsoleEnabled&quot;: True or False, # Output only. True if the interactive serial console feature is enabled for the instance, false otherwise. The default value is false.
137-
&quot;labels&quot;: { # Labels as key value pairs.
138-
&quot;a_key&quot;: &quot;A String&quot;,
139-
},
140-
&quot;logicalInterfaces&quot;: [ # List of logical interfaces for the instance. The number of logical interfaces will be the same as number of hardware bond/nic on the chosen network template. For the non-multivlan configurations (for eg, existing servers) that use existing default network template (bondaa-bondaa), both the Instance.networks field and the Instance.logical_interfaces fields will be filled to ensure backward compatibility. For the others, only Instance.logical_interfaces will be filled.
141-
{ # Each logical interface represents a logical abstraction of the underlying physical interface (for eg. bond, nic) of the instance. Each logical interface can effectively map to multiple network-IP pairs and still be mapped to one underlying physical interface.
142-
&quot;interfaceIndex&quot;: 42, # The index of the logical interface mapping to the index of the hardware bond or nic on the chosen network template. This field is deprecated.
143-
&quot;logicalNetworkInterfaces&quot;: [ # List of logical network interfaces within a logical interface.
144-
{ # Each logical network interface is effectively a network and IP pair.
145-
&quot;defaultGateway&quot;: True or False, # Whether this interface is the default gateway for the instance. Only one interface can be the default gateway for the instance.
146-
&quot;id&quot;: &quot;A String&quot;, # An identifier for the `Network`, generated by the backend.
147-
&quot;ipAddress&quot;: &quot;A String&quot;, # IP address in the network
148-
&quot;network&quot;: &quot;A String&quot;, # Name of the network
149-
&quot;networkType&quot;: &quot;A String&quot;, # Type of network.
150-
},
151-
],
152-
&quot;name&quot;: &quot;A String&quot;, # Interface name. This is of syntax or and forms part of the network template name.
153-
},
154-
],
155-
&quot;loginInfo&quot;: &quot;A String&quot;, # Output only. Text field about info for logging in.
156-
&quot;luns&quot;: [ # Immutable. List of LUNs associated with this server.
157-
{ # A storage volume logical unit number (LUN).
158-
&quot;bootLun&quot;: True or False, # Display if this LUN is a boot LUN.
159-
&quot;expireTime&quot;: &quot;A String&quot;, # Output only. Time after which LUN will be fully deleted. It is filled only for LUNs in COOL_OFF state.
160-
&quot;id&quot;: &quot;A String&quot;, # An identifier for the LUN, generated by the backend.
161-
&quot;instances&quot;: [ # Output only. Instances this Lun is attached to.
162-
&quot;A String&quot;,
163-
],
164-
&quot;multiprotocolType&quot;: &quot;A String&quot;, # The LUN multiprotocol type ensures the characteristics of the LUN are optimized for each operating system.
165-
&quot;name&quot;: &quot;A String&quot;, # Output only. The name of the LUN.
166-
&quot;shareable&quot;: True or False, # Display if this LUN can be shared between multiple physical servers.
167-
&quot;sizeGb&quot;: &quot;A String&quot;, # The size of this LUN, in gigabytes.
168-
&quot;state&quot;: &quot;A String&quot;, # The state of this storage volume.
169-
&quot;storageType&quot;: &quot;A String&quot;, # The storage type for this LUN.
170-
&quot;storageVolume&quot;: &quot;A String&quot;, # Display the storage volume for this LUN.
171-
&quot;wwid&quot;: &quot;A String&quot;, # The WWID for this LUN.
172-
},
173-
],
174-
&quot;machineType&quot;: &quot;A String&quot;, # Immutable. The server type. [Available server types](https://cloud.google.com/bare-metal/docs/bms-planning#server_configurations)
175-
&quot;name&quot;: &quot;A String&quot;, # Immutable. The resource name of this `Instance`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/instances/{instance}`
176-
&quot;networkTemplate&quot;: &quot;A String&quot;, # Instance network template name. For eg, bondaa-bondaa, bondab-nic, etc. Generally, the template name follows the syntax of &quot;bond&quot; or &quot;nic&quot;.
177-
&quot;networks&quot;: [ # Output only. List of networks associated with this server.
178-
{ # A Network.
179-
&quot;cidr&quot;: &quot;A String&quot;, # The cidr of the Network.
180-
&quot;gatewayIp&quot;: &quot;A String&quot;, # Output only. Gateway ip address.
181-
&quot;id&quot;: &quot;A String&quot;, # An identifier for the `Network`, generated by the backend.
182-
&quot;ipAddress&quot;: &quot;A String&quot;, # IP address configured.
183-
&quot;jumboFramesEnabled&quot;: True or False, # Whether network uses standard frames or jumbo ones.
184-
&quot;labels&quot;: { # Labels as key value pairs.
185-
&quot;a_key&quot;: &quot;A String&quot;,
186-
},
187-
&quot;macAddress&quot;: [ # List of physical interfaces.
188-
&quot;A String&quot;,
189-
],
190-
&quot;mountPoints&quot;: [ # Input only. List of mount points to attach the network to.
191-
{ # Mount point for a network.
192-
&quot;defaultGateway&quot;: True or False, # Network should be a default gateway.
193-
&quot;instance&quot;: &quot;A String&quot;, # Instance to attach network to.
194-
&quot;ipAddress&quot;: &quot;A String&quot;, # Ip address of the server.
195-
&quot;logicalInterface&quot;: &quot;A String&quot;, # Logical interface to detach from.
196-
},
197-
],
198-
&quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of this `Network`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/networks/{network}`
199-
&quot;pod&quot;: &quot;A String&quot;, # Output only. Pod name.
200-
&quot;reservations&quot;: [ # List of IP address reservations in this network. When updating this field, an error will be generated if a reservation conflicts with an IP address already allocated to a physical server.
201-
{ # A reservation of one or more addresses in a network.
202-
&quot;endAddress&quot;: &quot;A String&quot;, # The last address of this reservation block, inclusive. I.e., for cases when reservations are only single addresses, end_address and start_address will be the same. Must be specified as a single IPv4 address, e.g. 10.1.2.2.
203-
&quot;note&quot;: &quot;A String&quot;, # A note about this reservation, intended for human consumption.
204-
&quot;startAddress&quot;: &quot;A String&quot;, # The first address of this reservation block. Must be specified as a single IPv4 address, e.g. 10.1.2.2.
205-
},
206-
],
207-
&quot;servicesCidr&quot;: &quot;A String&quot;, # IP range for reserved for services (e.g. NFS).
208-
&quot;state&quot;: &quot;A String&quot;, # The Network state.
209-
&quot;type&quot;: &quot;A String&quot;, # The type of this network.
210-
&quot;vlanId&quot;: &quot;A String&quot;, # The vlan id of the Network.
211-
&quot;vrf&quot;: { # A network VRF. # The vrf for the Network.
212-
&quot;name&quot;: &quot;A String&quot;, # The name of the VRF.
213-
&quot;qosPolicy&quot;: { # QOS policy parameters. # The QOS policy applied to this VRF. The value is only meaningful when all the vlan attachments have the same QoS. This field should not be used for new integrations, use vlan attachment level qos instead. The field is left for backward-compatibility.
214-
&quot;bandwidthGbps&quot;: 3.14, # The bandwidth permitted by the QOS policy, in gbps.
215-
},
216-
&quot;state&quot;: &quot;A String&quot;, # The possible state of VRF.
217-
&quot;vlanAttachments&quot;: [ # The list of VLAN attachments for the VRF.
218-
{ # VLAN attachment details.
219-
&quot;id&quot;: &quot;A String&quot;, # Immutable. The identifier of the attachment within vrf.
220-
&quot;pairingKey&quot;: &quot;A String&quot;, # Input only. Pairing key.
221-
&quot;peerIp&quot;: &quot;A String&quot;, # The peer IP of the attachment.
222-
&quot;peerVlanId&quot;: &quot;A String&quot;, # The peer vlan ID of the attachment.
223-
&quot;qosPolicy&quot;: { # QOS policy parameters. # The QOS policy applied to this VLAN attachment. This value should be preferred to using qos at vrf level.
224-
&quot;bandwidthGbps&quot;: 3.14, # The bandwidth permitted by the QOS policy, in gbps.
225-
},
226-
&quot;routerIp&quot;: &quot;A String&quot;, # The router IP of the attachment.
227-
},
228-
],
229-
},
230-
},
231-
],
232-
&quot;osImage&quot;: &quot;A String&quot;, # The OS image currently installed on the server.
233-
&quot;pod&quot;: &quot;A String&quot;, # Immutable. Pod name. Pod is an independent part of infrastructure. Instance can be connected to the assets (networks, volumes) allocated in the same pod only.
234-
&quot;state&quot;: &quot;A String&quot;, # Output only. The state of the server.
235-
&quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update a time stamp.
236-
&quot;volumes&quot;: [ # Input only. List of Volumes to attach to this Instance on creation. This field won&#x27;t be populated in Get/List responses.
237-
{ # A storage volume.
238-
&quot;attached&quot;: True or False, # Output only. Is the Volume attached at at least one instance. This field is a lightweight counterpart of `instances` field. It is filled in List responses as well.
239-
&quot;autoGrownSizeGib&quot;: &quot;A String&quot;, # The size, in GiB, that this storage volume has expanded as a result of an auto grow policy. In the absence of auto-grow, the value is 0.
240-
&quot;bootVolume&quot;: True or False, # Output only. Whether this volume is a boot volume. A boot volume is one which contains a boot LUN.
241-
&quot;currentSizeGib&quot;: &quot;A String&quot;, # The current size of this storage volume, in GiB, including space reserved for snapshots. This size might be different than the requested size if the storage volume has been configured with auto grow or auto shrink.
242-
&quot;emergencySizeGib&quot;: &quot;A String&quot;, # Additional emergency size that was requested for this Volume, in GiB. current_size_gib includes this value.
243-
&quot;expireTime&quot;: &quot;A String&quot;, # Output only. Time after which volume will be fully deleted. It is filled only for volumes in COOLOFF state.
244-
&quot;id&quot;: &quot;A String&quot;, # An identifier for the `Volume`, generated by the backend.
245-
&quot;instances&quot;: [ # Output only. Instances this Volume is attached to. This field is set only in Get requests.
246-
&quot;A String&quot;,
247-
],
248-
&quot;labels&quot;: { # Labels as key value pairs.
249-
&quot;a_key&quot;: &quot;A String&quot;,
250-
},
251-
&quot;maxSizeGib&quot;: &quot;A String&quot;, # Maximum size volume can be expanded to in case of evergency, in GiB.
252-
&quot;name&quot;: &quot;A String&quot;, # Output only. The resource name of this `Volume`. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. Format: `projects/{project}/locations/{location}/volumes/{volume}`
253-
&quot;notes&quot;: &quot;A String&quot;, # Input only. User-specified notes for new Volume. Used to provision Volumes that require manual intervention.
254-
&quot;originallyRequestedSizeGib&quot;: &quot;A String&quot;, # Originally requested size, in GiB.
255-
&quot;performanceTier&quot;: &quot;A String&quot;, # Immutable. Performance tier of the Volume. Default is SHARED.
256-
&quot;pod&quot;: &quot;A String&quot;, # Immutable. Pod name.
257-
&quot;protocol&quot;: &quot;A String&quot;, # Output only. Storage protocol for the Volume.
258-
&quot;remainingSpaceGib&quot;: &quot;A String&quot;, # The space remaining in the storage volume for new LUNs, in GiB, excluding space reserved for snapshots.
259-
&quot;requestedSizeGib&quot;: &quot;A String&quot;, # The requested size of this storage volume, in GiB.
260-
&quot;snapshotAutoDeleteBehavior&quot;: &quot;A String&quot;, # The behavior to use when snapshot reserved space is full.
261-
&quot;snapshotEnabled&quot;: True or False, # Whether snapshots are enabled.
262-
&quot;snapshotReservationDetail&quot;: { # Details about snapshot space reservation and usage on the storage volume. # Details about snapshot space reservation and usage on the storage volume.
263-
&quot;reservedSpaceGib&quot;: &quot;A String&quot;, # The space on this storage volume reserved for snapshots, shown in GiB.
264-
&quot;reservedSpacePercent&quot;: 42, # Percent of the total Volume size reserved for snapshot copies. Enabling snapshots requires reserving 20% or more of the storage volume space for snapshots. Maximum reserved space for snapshots is 40%. Setting this field will effectively set snapshot_enabled to true.
265-
&quot;reservedSpaceRemainingGib&quot;: &quot;A String&quot;, # The amount, in GiB, of available space in this storage volume&#x27;s reserved snapshot space.
266-
&quot;reservedSpaceUsedPercent&quot;: 42, # The percent of snapshot space on this storage volume actually being used by the snapshot copies. This value might be higher than 100% if the snapshot copies have overflowed into the data portion of the storage volume.
267-
},
268-
&quot;snapshotSchedulePolicy&quot;: &quot;A String&quot;, # The name of the snapshot schedule policy in use for this volume, if any.
269-
&quot;state&quot;: &quot;A String&quot;, # The state of this storage volume.
270-
&quot;storageAggregatePool&quot;: &quot;A String&quot;, # Input only. Name of the storage aggregate pool to allocate the volume in. Can be used only for VOLUME_PERFORMANCE_TIER_ASSIGNED volumes.
271-
&quot;storageType&quot;: &quot;A String&quot;, # The storage type for this volume.
272-
&quot;workloadProfile&quot;: &quot;A String&quot;, # The workload profile for the volume.
273-
},
274-
],
275-
&quot;workloadProfile&quot;: &quot;A String&quot;, # The workload profile for the instance.
276-
}
277-
278-
x__xgafv: string, V1 error format.
279-
Allowed values
280-
1 - v1 error format
281-
2 - v2 error format
282-
283-
Returns:
284-
An object of the form:
285-
286-
{ # This resource represents a long-running operation that is the result of a network API call.
287-
&quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
288-
&quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
289-
&quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
290-
&quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
291-
{
292-
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
293-
},
294-
],
295-
&quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
296-
},
297-
&quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
298-
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
299-
},
300-
&quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
301-
&quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
302-
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
303-
},
304-
}</pre>
305-
</div>
306-
307119
<div class="method">
308120
<code class="details" id="detachLun">detachLun(instance, body=None, x__xgafv=None)</code>
309121
<pre>Detach LUN from Instance.

0 commit comments

Comments
 (0)
Please sign in to comment.