diff --git a/services/windowsiot/mgmt/2019-06-01/windowsiot/CHANGELOG.md b/services/windowsiot/mgmt/2019-06-01/windowsiot/CHANGELOG.md deleted file mode 100644 index 0ce80d4a3fcd..000000000000 --- a/services/windowsiot/mgmt/2019-06-01/windowsiot/CHANGELOG.md +++ /dev/null @@ -1,5 +0,0 @@ -Generated from https://github.com/Azure/azure-rest-api-specs/tree/3c764635e7d442b3e74caf593029fcd440b3ef82/specification/windowsiot/resource-manager/readme.md tag: `package-2019-06` - -Code generator @microsoft.azure/autorest.go@2.1.168 - -No exported changes \ No newline at end of file diff --git a/services/windowsiot/mgmt/2019-06-01/windowsiot/models.go b/services/windowsiot/mgmt/2019-06-01/windowsiot/models.go index 6ca813dcad07..1c8ad2890d8f 100644 --- a/services/windowsiot/mgmt/2019-06-01/windowsiot/models.go +++ b/services/windowsiot/mgmt/2019-06-01/windowsiot/models.go @@ -375,6 +375,12 @@ func (dsp DeviceServiceProperties) MarshalJSON() ([]byte, error) { // ErrorDetails the details of the error. type ErrorDetails struct { + // Error - The error object. + Error *ErrorDetailsError `json:"error,omitempty"` +} + +// ErrorDetailsError the error object. +type ErrorDetailsError struct { // Code - One of a server-defined set of error codes. Code *string `json:"code,omitempty"` // Message - A human-readable representation of the error. @@ -403,6 +409,8 @@ type OperationEntity struct { Name *string `json:"name,omitempty"` // Display - The operation supported by Azure Data Catalog Service. Display *OperationDisplayInfo `json:"display,omitempty"` + // IsDataAction - Indicates whether the operation is a data action + IsDataAction *bool `json:"isDataAction,omitempty"` } // OperationListResult result of the request to list Windows IoT Device Service operations. It contains a diff --git a/services/windowsiot/mgmt/2019-06-01/windowsiot/services.go b/services/windowsiot/mgmt/2019-06-01/windowsiot/services.go index 30f65198e520..dbc69555fe6b 100644 --- a/services/windowsiot/mgmt/2019-06-01/windowsiot/services.go +++ b/services/windowsiot/mgmt/2019-06-01/windowsiot/services.go @@ -134,7 +134,7 @@ func (client ServicesClient) CheckDeviceServiceNameAvailabilityResponder(resp *h // deviceService - the Windows IoT Device Service metadata and security metadata. // ifMatch - eTag of the Windows IoT Device Service. Do not specify for creating a new Windows IoT Device // Service. Required to update an existing Windows IoT Device Service. -func (client ServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, deviceName string, deviceService DeviceServiceProperties, ifMatch string) (result DeviceService, err error) { +func (client ServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, deviceName string, deviceService DeviceService, ifMatch string) (result DeviceService, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/ServicesClient.CreateOrUpdate") defer func() { @@ -168,7 +168,7 @@ func (client ServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupNa } // CreateOrUpdatePreparer prepares the CreateOrUpdate request. -func (client ServicesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, deviceName string, deviceService DeviceServiceProperties, ifMatch string) (*http.Request, error) { +func (client ServicesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, deviceName string, deviceService DeviceService, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ "deviceName": autorest.Encode("path", deviceName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -180,7 +180,6 @@ func (client ServicesClient) CreateOrUpdatePreparer(ctx context.Context, resourc "api-version": APIVersion, } - deviceService.StartDate = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPut(), @@ -282,7 +281,7 @@ func (client ServicesClient) DeleteSender(req *http.Request) (*http.Response, er func (client ServicesClient) DeleteResponder(resp *http.Response) (result DeviceService, err error) { err = autorest.Respond( resp, - azure.WithErrorUnlessStatusCode(http.StatusOK), + azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) result.Response = autorest.Response{Response: resp} @@ -603,7 +602,7 @@ func (client ServicesClient) ListByResourceGroupComplete(ctx context.Context, re // deviceService - the Windows IoT Device Service metadata and security metadata. // ifMatch - eTag of the Windows IoT Device Service. Do not specify for creating a brand new Windows IoT Device // Service. Required to update an existing Windows IoT Device Service. -func (client ServicesClient) Update(ctx context.Context, resourceGroupName string, deviceName string, deviceService DeviceServiceProperties, ifMatch string) (result DeviceService, err error) { +func (client ServicesClient) Update(ctx context.Context, resourceGroupName string, deviceName string, deviceService DeviceService, ifMatch string) (result DeviceService, err error) { if tracing.IsEnabled() { ctx = tracing.StartSpan(ctx, fqdn+"/ServicesClient.Update") defer func() { @@ -637,7 +636,7 @@ func (client ServicesClient) Update(ctx context.Context, resourceGroupName strin } // UpdatePreparer prepares the Update request. -func (client ServicesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, deviceName string, deviceService DeviceServiceProperties, ifMatch string) (*http.Request, error) { +func (client ServicesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, deviceName string, deviceService DeviceService, ifMatch string) (*http.Request, error) { pathParameters := map[string]interface{}{ "deviceName": autorest.Encode("path", deviceName), "resourceGroupName": autorest.Encode("path", resourceGroupName), @@ -649,7 +648,6 @@ func (client ServicesClient) UpdatePreparer(ctx context.Context, resourceGroupNa "api-version": APIVersion, } - deviceService.StartDate = nil preparer := autorest.CreatePreparer( autorest.AsContentType("application/json; charset=utf-8"), autorest.AsPatch(), diff --git a/services/windowsiot/mgmt/2019-06-01/windowsiot/windowsiotapi/interfaces.go b/services/windowsiot/mgmt/2019-06-01/windowsiot/windowsiotapi/interfaces.go index d27ab6585399..e553c4c95bf6 100644 --- a/services/windowsiot/mgmt/2019-06-01/windowsiot/windowsiotapi/interfaces.go +++ b/services/windowsiot/mgmt/2019-06-01/windowsiot/windowsiotapi/interfaces.go @@ -33,14 +33,14 @@ var _ OperationsClientAPI = (*windowsiot.OperationsClient)(nil) // ServicesClientAPI contains the set of methods on the ServicesClient type. type ServicesClientAPI interface { CheckDeviceServiceNameAvailability(ctx context.Context, deviceServiceCheckNameAvailabilityParameters windowsiot.DeviceServiceCheckNameAvailabilityParameters) (result windowsiot.DeviceServiceNameAvailabilityInfo, err error) - CreateOrUpdate(ctx context.Context, resourceGroupName string, deviceName string, deviceService windowsiot.DeviceServiceProperties, ifMatch string) (result windowsiot.DeviceService, err error) + CreateOrUpdate(ctx context.Context, resourceGroupName string, deviceName string, deviceService windowsiot.DeviceService, ifMatch string) (result windowsiot.DeviceService, err error) Delete(ctx context.Context, resourceGroupName string, deviceName string) (result windowsiot.DeviceService, err error) Get(ctx context.Context, resourceGroupName string, deviceName string) (result windowsiot.DeviceService, err error) List(ctx context.Context) (result windowsiot.DeviceServiceDescriptionListResultPage, err error) ListComplete(ctx context.Context) (result windowsiot.DeviceServiceDescriptionListResultIterator, err error) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result windowsiot.DeviceServiceDescriptionListResultPage, err error) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result windowsiot.DeviceServiceDescriptionListResultIterator, err error) - Update(ctx context.Context, resourceGroupName string, deviceName string, deviceService windowsiot.DeviceServiceProperties, ifMatch string) (result windowsiot.DeviceService, err error) + Update(ctx context.Context, resourceGroupName string, deviceName string, deviceService windowsiot.DeviceService, ifMatch string) (result windowsiot.DeviceService, err error) } var _ ServicesClientAPI = (*windowsiot.ServicesClient)(nil)