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

CloudDiscovery : Update Required Attributes and Designate Read-Only Fields #56

Merged
merged 3 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions clouddiscovery/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,7 @@ components:
last_sync:
description: Last sync timestamp.
format: date-time
readOnly: true
type: string
name:
description: Name of the discovery config.
Expand All @@ -919,9 +920,11 @@ components:
Status of the sync operation.
In single account case, Its the combined status of account & all the destinations statuses
In auto discover case, Its the status of the account discovery only.
readOnly: true
type: string
status_message:
description: Aggregate status message of the sync operation.
readOnly: true
type: string
sync_interval:
title: "Time between sync jobs in minutes. Default is \"Auto\". Other supported\
Expand All @@ -937,7 +940,9 @@ components:
readOnly: true
type: string
required:
- account_preference
- name
- provider_type
title: DiscoveryConfig
type: object
ddidnsrickettsIPAMConfig:
Expand Down
22 changes: 6 additions & 16 deletions clouddiscovery/docs/DiscoveryConfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**AccountPreference** | Pointer to **string** | Account preference. For ex.: single, multiple, auto-discover-multiple. | [optional]
**AccountPreference** | **string** | Account preference. For ex.: single, multiple, auto-discover-multiple. |
**AdditionalConfig** | Pointer to [**AdditionalConfig**](AdditionalConfig.md) | Additional configuration. Ex.: '{ \"excluded_object_types\": [], \"exclusion_account_list\": [], \"zone_forwarding\": \"true\" or \"false\" }'. | [optional]
**CreatedAt** | Pointer to **time.Time** | Timestamp when the object has been created. | [optional] [readonly]
**CredentialPreference** | Pointer to [**CredentialPreference**](CredentialPreference.md) | Credential preference. Ex.: '{ \"type\": \"static\" or \"delegated\", \"access_identifier_type\": \"role_arn\" or \"tenant_id\" or \"project_id\" }'. | [optional]
Expand All @@ -14,12 +14,12 @@ Name | Type | Description | Notes
**DestinationTypesEnabled** | Pointer to **[]string** | Destinations types enabled: Ex.: DNS, IPAM and ACCOUNT. | [optional]
**Destinations** | Pointer to [**[]Destination**](Destination.md) | Destinations. | [optional]
**Id** | Pointer to **string** | Auto-generated unique discovery config ID. Format BloxID. | [optional] [readonly]
**LastSync** | Pointer to **time.Time** | Last sync timestamp. | [optional]
**LastSync** | Pointer to **time.Time** | Last sync timestamp. | [optional] [readonly]
**Name** | **string** | Name of the discovery config. |
**ProviderType** | Pointer to **string** | Provider type. Ex.: Amazon Web Services, Google Cloud Platform, Microsoft Azure. | [optional]
**ProviderType** | **string** | Provider type. Ex.: Amazon Web Services, Google Cloud Platform, Microsoft Azure. |
**SourceConfigs** | Pointer to [**[]SourceConfig**](SourceConfig.md) | Source configs. | [optional]
**Status** | Pointer to **string** | Status of the sync operation. In single account case, Its the combined status of account & all the destinations statuses In auto discover case, Its the status of the account discovery only. | [optional]
**StatusMessage** | Pointer to **string** | Aggregate status message of the sync operation. | [optional]
**Status** | Pointer to **string** | Status of the sync operation. In single account case, Its the combined status of account & all the destinations statuses In auto discover case, Its the status of the account discovery only. | [optional] [readonly]
**StatusMessage** | Pointer to **string** | Aggregate status message of the sync operation. | [optional] [readonly]
**SyncInterval** | Pointer to **string** | | [optional]
**Tags** | Pointer to **map[string]interface{}** | Tagging specifics. | [optional]
**UpdatedAt** | Pointer to **time.Time** | Timestamp when the object has been updated. | [optional] [readonly]
Expand All @@ -28,7 +28,7 @@ Name | Type | Description | Notes

### NewDiscoveryConfig

`func NewDiscoveryConfig(name string, ) *DiscoveryConfig`
`func NewDiscoveryConfig(accountPreference string, name string, providerType string, ) *DiscoveryConfig`

NewDiscoveryConfig instantiates a new DiscoveryConfig object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -62,11 +62,6 @@ and a boolean to check if the value has been set.

SetAccountPreference sets AccountPreference field to given value.

### HasAccountPreference

`func (o *DiscoveryConfig) HasAccountPreference() bool`

HasAccountPreference returns a boolean if a field has been set.

### GetAdditionalConfig

Expand Down Expand Up @@ -357,11 +352,6 @@ and a boolean to check if the value has been set.

SetProviderType sets ProviderType field to given value.

### HasProviderType

`func (o *DiscoveryConfig) HasProviderType() bool`

HasProviderType returns a boolean if a field has been set.

### GetSourceConfigs

Expand Down
4 changes: 2 additions & 2 deletions clouddiscovery/docs/ProvidersAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
)

func main() {
body := *clouddiscovery.NewDiscoveryConfig("Name_example") // DiscoveryConfig |
body := *clouddiscovery.NewDiscoveryConfig("AccountPreference_example", "Name_example", "ProviderType_example") // DiscoveryConfig |

apiClient := clouddiscovery.NewAPIClient()
resp, r, err := apiClient.ProvidersAPI.Create(context.Background()).Body(body).Execute()
Expand Down Expand Up @@ -310,7 +310,7 @@ import (

func main() {
id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | Auto-generated unique discovery config ID. Format BloxID.
body := *clouddiscovery.NewDiscoveryConfig("Name_example") // DiscoveryConfig |
body := *clouddiscovery.NewDiscoveryConfig("AccountPreference_example", "Name_example", "ProviderType_example") // DiscoveryConfig |

apiClient := clouddiscovery.NewAPIClient()
resp, r, err := apiClient.ProvidersAPI.Update(context.Background(), id).Body(body).Execute()
Expand Down
70 changes: 27 additions & 43 deletions clouddiscovery/model_discovery_config.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

48 changes: 17 additions & 31 deletions clouddiscovery/test/api_providers_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading