Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
[AutoPR notificationhubs/resource-manager] Add missing debugsend and …
Browse files Browse the repository at this point in the history
…patch operation for NotificationHub resource (#1359) (#1369)

* Generated from 01edec5fd7a2a02c2d9855146656bfef4c7f423f

Add debugsend and NH patch operation

* Generated from 0238c4239dec40fef6679fd36f8498b82c6157c8

Fix build error due to missing parameterId

* Generated from 2f2ca999f5033c50ea6ad7ce9a493b9d1bd5c993

Fix more errors

* Generated from 3b57f480cb371a58ae1c0feb24e6a0270c671acd

Fix build errors due to mismatch parameters

* Generated from edb81a4b9052ef17263836b0b079b7204c6a33ce

Fix error with missing parameters value for DebugSend

* Generated from 3e947825fd1f50e39862de452aa599a4e4bc74b1

Change DebugSendResult from string to object

* Generated from 65b541d42b26f877d8ec658d93e103417c2db181

Fix DebugSend build errors
  • Loading branch information
AutorestCI authored and sarangan12 committed Jun 13, 2018
1 parent 11209ca commit 11503d8
Show file tree
Hide file tree
Showing 39 changed files with 1,612 additions and 568 deletions.
92 changes: 53 additions & 39 deletions azure_sdk/lib/latest/modules/notificationhubs_profile_module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,46 +7,49 @@
module Azure::Profiles::Latest
module NotificationHubs
module Mgmt
Operations = Azure::NotificationHubs::Mgmt::V2017_04_01::Operations
Namespaces = Azure::NotificationHubs::Mgmt::V2017_04_01::Namespaces
Name = Azure::NotificationHubs::Mgmt::V2017_04_01::Name
NotificationHubs = Azure::NotificationHubs::Mgmt::V2017_04_01::NotificationHubs
Hubs = Azure::NotificationHubs::Mgmt::V2017_04_01::Hubs

module Models
ResourceListKeys = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ResourceListKeys
PolicykeyResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::PolicykeyResource
CheckNameAvailabilityResponse = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResponse
Operation = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Operation
ApnsCredential = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ApnsCredential
CheckAvailabilityParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityParameters
ErrorResponse = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ErrorResponse
WnsCredential = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::WnsCredential
CheckNameAvailabilityRequestParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckNameAvailabilityRequestParameters
NamespacePatchParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespacePatchParameters
CheckAvailabilityParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityParameters
GcmCredential = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::GcmCredential
OperationDisplay = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::OperationDisplay
OperationListResult = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::OperationListResult
Sku = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Sku
SharedAccessAuthorizationRuleProperties = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleProperties
SharedAccessAuthorizationRuleCreateOrUpdateParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleCreateOrUpdateParameters
SubResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SubResource
BaiduCredential = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::BaiduCredential
NamespaceListResult = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceListResult
NotificationHubListResult = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubListResult
GcmCredential = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::GcmCredential
SharedAccessAuthorizationRuleListResult = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleListResult
MpnsCredential = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::MpnsCredential
Resource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Resource
SharedAccessAuthorizationRuleProperties = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleProperties
MpnsCredential = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::MpnsCredential
NamespacePatchParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespacePatchParameters
AdmCredential = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::AdmCredential
NamespaceListResult = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceListResult
BaiduCredential = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::BaiduCredential
CheckAvailabilityResult = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityResult
NamespaceCreateOrUpdateParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceCreateOrUpdateParameters
NamespaceResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceResource
SharedAccessAuthorizationRuleCreateOrUpdateParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleCreateOrUpdateParameters
SharedAccessAuthorizationRuleResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleResource
NotificationHubCreateOrUpdateParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubCreateOrUpdateParameters
NotificationHubPatchParameters = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubPatchParameters
NotificationHubResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubResource
DebugSendResponse = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::DebugSendResponse
PnsCredentialsResource = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::PnsCredentialsResource
SkuName = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SkuName
NamespaceType = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceType
AccessRights = Azure::NotificationHubs::Mgmt::V2017_04_01::Models::AccessRights
end

class NotificationHubsManagementClass
attr_reader :namespaces, :name, :notification_hubs, :hubs, :configurable, :base_url, :options, :model_classes
attr_reader :operations, :namespaces, :notification_hubs, :configurable, :base_url, :options, :model_classes

def initialize(configurable, base_url=nil, options=nil)
@configurable, @base_url, @options = configurable, base_url, options
Expand All @@ -56,10 +59,9 @@ def initialize(configurable, base_url=nil, options=nil)
@client_0.subscription_id = configurable.subscription_id
end
add_telemetry(@client_0)
@operations = @client_0.operations
@namespaces = @client_0.namespaces
@name = @client_0.name
@notification_hubs = @client_0.notification_hubs
@hubs = @client_0.hubs

@model_classes = ModelClasses.new
end
Expand All @@ -84,57 +86,66 @@ def resource_list_keys
def policykey_resource
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::PolicykeyResource
end
def check_name_availability_response
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckNameAvailabilityResponse
def operation
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Operation
end
def apns_credential
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ApnsCredential
end
def check_availability_parameters
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityParameters
def error_response
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::ErrorResponse
end
def wns_credential
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::WnsCredential
end
def check_name_availability_request_parameters
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckNameAvailabilityRequestParameters
def check_availability_parameters
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityParameters
end
def namespace_patch_parameters
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespacePatchParameters
def gcm_credential
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::GcmCredential
end
def operation_display
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::OperationDisplay
end
def operation_list_result
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::OperationListResult
end
def sku
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Sku
end
def shared_access_authorization_rule_properties
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleProperties
def shared_access_authorization_rule_create_or_update_parameters
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleCreateOrUpdateParameters
end
def sub_resource
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SubResource
end
def baidu_credential
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::BaiduCredential
end
def namespace_list_result
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceListResult
end
def notification_hub_list_result
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubListResult
end
def gcm_credential
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::GcmCredential
end
def shared_access_authorization_rule_list_result
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleListResult
end
def resource
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Resource
end
def shared_access_authorization_rule_properties
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleProperties
end
def mpns_credential
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::MpnsCredential
end
def resource
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::Resource
def namespace_patch_parameters
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespacePatchParameters
end
def adm_credential
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::AdmCredential
end
def namespace_list_result
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceListResult
end
def baidu_credential
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::BaiduCredential
end
def check_availability_result
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::CheckAvailabilityResult
end
Expand All @@ -144,18 +155,21 @@ def namespace_create_or_update_parameters
def namespace_resource
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NamespaceResource
end
def shared_access_authorization_rule_create_or_update_parameters
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleCreateOrUpdateParameters
end
def shared_access_authorization_rule_resource
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::SharedAccessAuthorizationRuleResource
end
def notification_hub_create_or_update_parameters
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubCreateOrUpdateParameters
end
def notification_hub_patch_parameters
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubPatchParameters
end
def notification_hub_resource
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::NotificationHubResource
end
def debug_send_response
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::DebugSendResponse
end
def pns_credentials_resource
Azure::NotificationHubs::Mgmt::V2017_04_01::Models::PnsCredentialsResource
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,39 +20,42 @@
require 'ms_rest_azure'

module Azure::NotificationHubs::Mgmt::V2017_04_01
autoload :Operations, '2017-04-01/generated/azure_mgmt_notification_hubs/operations.rb'
autoload :Namespaces, '2017-04-01/generated/azure_mgmt_notification_hubs/namespaces.rb'
autoload :Name, '2017-04-01/generated/azure_mgmt_notification_hubs/name.rb'
autoload :NotificationHubs, '2017-04-01/generated/azure_mgmt_notification_hubs/notification_hubs.rb'
autoload :Hubs, '2017-04-01/generated/azure_mgmt_notification_hubs/hubs.rb'
autoload :NotificationHubsManagementClient, '2017-04-01/generated/azure_mgmt_notification_hubs/notification_hubs_management_client.rb'

module Models
autoload :ResourceListKeys, '2017-04-01/generated/azure_mgmt_notification_hubs/models/resource_list_keys.rb'
autoload :PolicykeyResource, '2017-04-01/generated/azure_mgmt_notification_hubs/models/policykey_resource.rb'
autoload :CheckNameAvailabilityResponse, '2017-04-01/generated/azure_mgmt_notification_hubs/models/check_name_availability_response.rb'
autoload :Operation, '2017-04-01/generated/azure_mgmt_notification_hubs/models/operation.rb'
autoload :ApnsCredential, '2017-04-01/generated/azure_mgmt_notification_hubs/models/apns_credential.rb'
autoload :CheckAvailabilityParameters, '2017-04-01/generated/azure_mgmt_notification_hubs/models/check_availability_parameters.rb'
autoload :ErrorResponse, '2017-04-01/generated/azure_mgmt_notification_hubs/models/error_response.rb'
autoload :WnsCredential, '2017-04-01/generated/azure_mgmt_notification_hubs/models/wns_credential.rb'
autoload :CheckNameAvailabilityRequestParameters, '2017-04-01/generated/azure_mgmt_notification_hubs/models/check_name_availability_request_parameters.rb'
autoload :NamespacePatchParameters, '2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_patch_parameters.rb'
autoload :CheckAvailabilityParameters, '2017-04-01/generated/azure_mgmt_notification_hubs/models/check_availability_parameters.rb'
autoload :GcmCredential, '2017-04-01/generated/azure_mgmt_notification_hubs/models/gcm_credential.rb'
autoload :OperationDisplay, '2017-04-01/generated/azure_mgmt_notification_hubs/models/operation_display.rb'
autoload :OperationListResult, '2017-04-01/generated/azure_mgmt_notification_hubs/models/operation_list_result.rb'
autoload :Sku, '2017-04-01/generated/azure_mgmt_notification_hubs/models/sku.rb'
autoload :SharedAccessAuthorizationRuleProperties, '2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb'
autoload :SharedAccessAuthorizationRuleCreateOrUpdateParameters, '2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb'
autoload :SubResource, '2017-04-01/generated/azure_mgmt_notification_hubs/models/sub_resource.rb'
autoload :BaiduCredential, '2017-04-01/generated/azure_mgmt_notification_hubs/models/baidu_credential.rb'
autoload :NamespaceListResult, '2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_list_result.rb'
autoload :NotificationHubListResult, '2017-04-01/generated/azure_mgmt_notification_hubs/models/notification_hub_list_result.rb'
autoload :GcmCredential, '2017-04-01/generated/azure_mgmt_notification_hubs/models/gcm_credential.rb'
autoload :SharedAccessAuthorizationRuleListResult, '2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_list_result.rb'
autoload :MpnsCredential, '2017-04-01/generated/azure_mgmt_notification_hubs/models/mpns_credential.rb'
autoload :Resource, '2017-04-01/generated/azure_mgmt_notification_hubs/models/resource.rb'
autoload :SharedAccessAuthorizationRuleProperties, '2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_properties.rb'
autoload :MpnsCredential, '2017-04-01/generated/azure_mgmt_notification_hubs/models/mpns_credential.rb'
autoload :NamespacePatchParameters, '2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_patch_parameters.rb'
autoload :AdmCredential, '2017-04-01/generated/azure_mgmt_notification_hubs/models/adm_credential.rb'
autoload :NamespaceListResult, '2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_list_result.rb'
autoload :BaiduCredential, '2017-04-01/generated/azure_mgmt_notification_hubs/models/baidu_credential.rb'
autoload :CheckAvailabilityResult, '2017-04-01/generated/azure_mgmt_notification_hubs/models/check_availability_result.rb'
autoload :NamespaceCreateOrUpdateParameters, '2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_create_or_update_parameters.rb'
autoload :NamespaceResource, '2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_resource.rb'
autoload :SharedAccessAuthorizationRuleCreateOrUpdateParameters, '2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_create_or_update_parameters.rb'
autoload :SharedAccessAuthorizationRuleResource, '2017-04-01/generated/azure_mgmt_notification_hubs/models/shared_access_authorization_rule_resource.rb'
autoload :NotificationHubCreateOrUpdateParameters, '2017-04-01/generated/azure_mgmt_notification_hubs/models/notification_hub_create_or_update_parameters.rb'
autoload :NotificationHubPatchParameters, '2017-04-01/generated/azure_mgmt_notification_hubs/models/notification_hub_patch_parameters.rb'
autoload :NotificationHubResource, '2017-04-01/generated/azure_mgmt_notification_hubs/models/notification_hub_resource.rb'
autoload :DebugSendResponse, '2017-04-01/generated/azure_mgmt_notification_hubs/models/debug_send_response.rb'
autoload :PnsCredentialsResource, '2017-04-01/generated/azure_mgmt_notification_hubs/models/pns_credentials_resource.rb'
autoload :SkuName, '2017-04-01/generated/azure_mgmt_notification_hubs/models/sku_name.rb'
autoload :NamespaceType, '2017-04-01/generated/azure_mgmt_notification_hubs/models/namespace_type.rb'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,31 +28,27 @@ class AdmCredential
#
def self.mapper()
{
client_side_validation: true,
required: false,
serialized_name: 'AdmCredential',
type: {
name: 'Composite',
class_name: 'AdmCredential',
model_properties: {
client_id: {
client_side_validation: true,
required: false,
serialized_name: 'properties.clientId',
type: {
name: 'String'
}
},
client_secret: {
client_side_validation: true,
required: false,
serialized_name: 'properties.clientSecret',
type: {
name: 'String'
}
},
auth_token_url: {
client_side_validation: true,
required: false,
serialized_name: 'properties.authTokenUrl',
type: {
Expand Down
Loading

0 comments on commit 11503d8

Please sign in to comment.