Skip to content

Commit

Permalink
Add InsecureDownload to FileInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
neilgierman committed Jul 10, 2024
1 parent 5ae3812 commit 1421af1
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
7 changes: 7 additions & 0 deletions v1/api/swagger/components/schemas/FileInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,10 @@ properties:
description: >-
URL of the file that should be kept secret.
If this field is set, it will be used for accessing the file and DisplayURL will be ignored.
InsecureDownload:
type: boolean
description: >-
Indicates if the web server the file is being downloaded from should have
the SSL certificate validation bypassed. Useful for downloading from an
internal webserver with either self-signed or internal CA issued SSL certificate.
example: true
7 changes: 7 additions & 0 deletions v1/pkg/client/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5895,6 +5895,13 @@ components:
is set, it will be used for accessing the file and DisplayURL will be
ignored.
type: string
InsecureDownload:
description: Indicates if the web server the file is being downloaded from
should have the SSL certificate validation bypassed. Useful for downloading
from an internal webserver with either self-signed or internal CA issued
SSL certificate.
example: true
type: boolean
required:
- Algorithm
- DisplayURL
Expand Down
1 change: 1 addition & 0 deletions v1/pkg/client/docs/FileInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Name | Type | Description | Notes
**Expand** | **bool** | Indicates if the file is compressed and should be expanded using the filename suffix in the Path as a guide. |
**DisplayURL** | **string** | URL of the file that should be returned in REST response or used for display purpose. The file is downloaded from this URL only when SecureURL is not set. |
**SecureURL** | **string** | URL of the file that should be kept secret. If this field is set, it will be used for accessing the file and DisplayURL will be ignored. |
**InsecureDownload** | **bool** | Indicates if the web server the file is being downloaded from should have the SSL certificate validation bypassed. Useful for downloading from an internal webserver with either self-signed or internal CA issued SSL certificate. | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
7 changes: 5 additions & 2 deletions v1/pkg/client/model_file_info.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
// (C) Copyright 2021-2023 Hewlett Packard Enterprise Development LP
// (C) Copyright 2021-2024 Hewlett Packard Enterprise Development LP

/*
* HPE GreenLake for bare metal API
*
* This Metal Client REST API provides access to bare metal as-a-service (BMaaS) within a single project context. Clients are able to create fully-provisioned hosts, storage volumes, and project-specific private networks in an isolated project environment. Project-owned resources that can be accessed via this API include - Host, Volume, VolumeAttachment, Network (project private), and SSH Key. Each API call is done within a single project context. The specific Project identifier must be provided within the header of for each REST call. The server will validate that the provided authentication credentials (JWTs) are valid for the referenced project before any operation is performed. If a single credential is valid for multiple projects, the client must still reference a single project in the header for each API call. Clients can also access information about available services and resources through the AvailableResources object. This object provides detailed information about the OS imaging options, the machine size options, the storage volume options, and data center locations which are needed when creating hosts and volumes.
* This Metal Client REST API provides access to bare metal as-a-service (BMaaS) within a single project context. Clients are able to create fully-provisioned hosts, storage volumes, and project-specific private networks in an isolated project environment. Project-owned resources that can be accessed via this API include - Host, Volume, VolumeAttachment, Network (project private), and SSH Key. Each API call is done within a single project context. The specific Project identifier must be provided within the header of for each REST call. The server will validate that the provided authentication credentials (JWTs) are valid for the referenced project before any operation is performed. If a single credential is valid for multiple projects, the client must still reference a single project in the header for each API call. Clients can also access information about available services and resources through the AvailableResources object. This object provides detailed information about the OS imaging options, the machine size options, the storage volume options, and data center locations which are needed when creating hosts and volumes.
*
* API version: v1
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/

package client

// FileInfo Information about the file associated with the OS service image.
type FileInfo struct {
// Unique ID of this FileInfo.
Expand All @@ -29,4 +30,6 @@ type FileInfo struct {
DisplayURL string `json:"DisplayURL"`
// URL of the file that should be kept secret. If this field is set, it will be used for accessing the file and DisplayURL will be ignored.
SecureURL string `json:"SecureURL"`
// Indicates if the web server the file is being downloaded from should have the SSL certificate validation bypassed. Useful for downloading from an internal webserver with either self-signed or internal CA issued SSL certificate.
InsecureDownload bool `json:"InsecureDownload,omitempty"`
}

0 comments on commit 1421af1

Please sign in to comment.